chc.app.CInstr module

Base class and subclasses:

chc.app.CInstr.CInstr(parent, xnode)

Base class for instructions.

chc.app.CInstr.CCallInstr(parent, xnode)

Call instruction.

chc.app.CInstr.CAssignInstr(parent, xnode)

Assignment instruction.

chc.app.CInstr.CAsmInstr(parent, xnode)

Instruction representing inserted assembly code.

C instruction (assignment, call, or inserted assembly code).

class chc.app.CInstr.CAsmInput(parent: chc.app.CInstr.CAsmInstr, xnode: xml.etree.ElementTree.Element)[source]

Bases: object

property constraint: str
property exp: CExp
property parent: chc.app.CInstr.CAsmInstr
class chc.app.CInstr.CAsmInstr(parent: CStmt, xnode: xml.etree.ElementTree.Element)[source]

Bases: chc.app.CInstr.CInstr

Instruction representing inserted assembly code.

property asminputs: List[chc.app.CInstr.CAsmInput]
property asmoutputs: List[chc.app.CInstr.CAsmOutput]
property is_asm: bool
property templates: List[str]
class chc.app.CInstr.CAsmOutput(parent: chc.app.CInstr.CAsmInstr, xnode: xml.etree.ElementTree.Element)[source]

Bases: object

property constraint: str
property lhs: CLval
property parent: chc.app.CInstr.CAsmInstr
class chc.app.CInstr.CAssignInstr(parent: CStmt, xnode: xml.etree.ElementTree.Element)[source]

Bases: chc.app.CInstr.CInstr

Assignment instruction.

get_variable_uses(vid: int) int[source]
property is_assign: bool
property lhs: CLval
property rhs: CExp
property strings: List[str]
class chc.app.CInstr.CCallInstr(parent: CStmt, xnode: xml.etree.ElementTree.Element)[source]

Bases: chc.app.CInstr.CInstr

Call instruction.

property callargs: List[CExp]
property callee: CExp
get_variable_uses(vid: int) int[source]
has_lhs() bool[source]
property is_call: bool
property lhs: CLval
property strings: List[str]
class chc.app.CInstr.CInstr(parent: CStmt, xnode: xml.etree.ElementTree.Element)[source]

Bases: object

Base class for instructions.

property cdictionary: CFileDictionary
property cfun: CFunction
get_variable_uses(vid: int) int[source]
property is_asm: bool
property is_assign: bool
property is_call: bool
property parent: CStmt
property strings: List[str]