chc.app.CFunction module
Main access point for a c function.
- class chc.app.CFunction.CFunction(cfile: CFile, xnode: xml.etree.ElementTree.Element, fname: str)[source]
Bases:
objectFunction implementation.
- property api: chc.api.CFunctionApi.CFunctionApi
- property block_count: int
- property call_instrs: List[chc.app.CInstr.CCallInstr]
- property capp: CApplication
- property cfile: CFile
- property cfiledecls: CFileDeclarations
- property cfilename: str
- property cfilepath: Optional[str]
- property cfundecls: chc.app.CFunDeclarations.CFunDeclarations
- collect_post_assumes() None[source]
For all call sites collect postconditions from callee’s contracts and add as assume.
- property formals: Dict[int, CVarInfo]
- property ftype: CTyp
- get_location() chc.app.CLocation.CLocation[source]
- get_open_ppos() List[chc.proof.CFunctionPO.CFunctionPO][source]
- get_open_spos() List[chc.proof.CFunctionPO.CFunctionPO][source]
- get_ppo(index: int) chc.proof.CFunctionPPO.CFunctionPPO[source]
- get_ppos() List[chc.proof.CFunctionPO.CFunctionPO][source]
- get_ppos_delegated() List[chc.proof.CFunctionPO.CFunctionPO][source]
- get_ppos_violated() List[chc.proof.CFunctionPO.CFunctionPO][source]
- get_spo(index: int) chc.proof.CFunctionPO.CFunctionPO[source]
- get_spo_violations() List[chc.proof.CFunctionPO.CFunctionPO][source]
- get_spos() List[chc.proof.CFunctionPO.CFunctionPO][source]
- property instr_count: int
- property interfacedictionary: InterfaceDictionary
- property invarianttable: chc.invariants.CFunInvariantTable.CFunInvariantTable
- property invdictionary: chc.invariants.CFunInvDictionary.CFunInvDictionary
- iter_callsites(f: Callable[[chc.proof.CFunctionCallsiteSPOs.CFunctionCallsiteSPOs], None]) None[source]
- iter_ppos(f: Callable[[chc.proof.CFunctionPPO.CFunctionPPO], None]) None[source]
- property locals: Dict[int, CVarInfo]
- property name: str
- property podictionary: chc.proof.CFunPODictionary.CFunPODictionary
- property projectname: str
- property proofs: chc.proof.CFunctionProofs.CFunctionProofs
- property sbody: chc.app.CStmt.CFunctionBody
- property stmt_count: int
- property strings: List[str]
- property svar: CVarInfo
- property targetpath: str
- property vardictionary: chc.invariants.CFunVarDictionary.CFunVarDictionary