chc.app.CLHost module

Base class and subclasses:

chc.app.CLHost.CLHost(cd, ixval)

Base class for variable and dereference.

chc.app.CLHost.CLHostVar(cd, ixval)

Variable.

chc.app.CLHost.CLHostMem(cd, ixval)

Memory reference.

Left-hand side base (storage location for variable).

class chc.app.CLHost.CLHost(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CDictionaryRecord.CDictionaryRecord

Base class for variable and dereference.

get_strings() List[str][source]
get_variable_uses(vid: int) int[source]
has_ref_type() bool[source]
has_variable(vid: int) bool[source]
has_variable_deref(vid: int) bool[source]
property is_mem: bool
property is_tmpvar: bool
property is_var: bool
to_dict() Dict[str, object][source]
class chc.app.CLHost.CLHostMem(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CLHost.CLHost

Memory reference.

  • args[0]: index of address expression in cdictionary

property exp: CExp
get_strings() List[str][source]
get_variable_uses(vid: int) int[source]
has_variable(vid: int) bool[source]
has_variable_deref(vid: int) bool[source]
property is_mem: bool
to_dict() Dict[str, object][source]
class chc.app.CLHost.CLHostVar(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CLHost.CLHost

Variable.

  • tags[1]: vname (name of variable)

  • args[0]: vid (variable id)

get_variable_uses(vid: int) int[source]
has_variable(vid: int) bool[source]
property is_tmpvar: bool
property is_var: bool
property name: str
to_dict() Dict[str, object][source]
property vid: int