chc.api.STerm
Base class and subclasses:
|
|
|
Argument value passed to a function. |
|
Local variable used in external predicate. |
|
Return value, as used in post conditions. |
|
Named constant with unspecified value. |
|
Constant with given numerical value. |
|
Size term expressed in units of array index. |
|
Size term expressed in bytes. |
|
The value addressed by an argument. |
|
The position of the null-terminator in a string term. |
|
Size of argument type, in bytes. |
|
Binary arithmetic expression on terms. |
|
The size of a string formed via a format string. |
|
A memory region. |
|
A value that is determined at runtime. |
|
Any value between an optional lowerbound and upperbound. |
Object representation of sum type s_term (term in an external predicate).
Object representation of the corresponding OCaml sumtype: s_term_t: a term that solely refers to entities that are visible outside of a function, such as its parameters or return value.
The properties of a term are constructed from its indexed value in the InterfaceDictionary.
- class chc.api.STerm.STArgAddressedValue(ifd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.STerm.STermThe value addressed by an argument.
args[0]: index of term in interface dictionary
args[1]: index of term offset in interface dictionary
- property is_arg_addressed_value: bool
- property offset: SOffset
- property term: chc.api.STerm.STerm
- class chc.api.STerm.STArgNullTerminatorPos(ifd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.STerm.STermThe position of the null-terminator in a string term.
args[0]: index of term in interface dictionary
- property is_arg_null_terminator_pos: bool
- property term: chc.api.STerm.STerm
- class chc.api.STerm.STArgSizeOfType(ifd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.STerm.STermSize of argument type, in bytes.
args[0]: index of term in interface dictionary
- property is_arg_size_of_type: bool
- property term: chc.api.STerm.STerm
- class chc.api.STerm.STArgValue(cd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.STerm.STermArgument value passed to a function.
args[0]: index of api parameter in interface dictionary
args[1]: index of s_term offset in interface dictionary
- property offset: SOffset
- property parameter: ApiParameter
- class chc.api.STerm.STArithmeticExpr(ifd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.STerm.STermBinary arithmetic expression on terms.
tags[1]: binary operator
args[0]: index of first term in interface dictionary
args[1]: index of second term in interface dictionary
- property is_arithmetic_expr: bool
- property op: str
- property term1: chc.api.STerm.STerm
- property term2: chc.api.STerm.STerm
- class chc.api.STerm.STByteSize(ifd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.STerm.STermSize term expressed in bytes.
args[0]: index of term in interface dictionary
- property is_byte_size: bool
- property term: chc.api.STerm.STerm
- class chc.api.STerm.STChoiceValue(ifd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.STerm.STermAny value between an optional lowerbound and upperbound.
args[0]: index of optional lower bound in interface dictionary
args[1]: index of optional upper bound in interface dictionary
- property is_choice_value: bool
- property termlb: Optional[chc.api.STerm.STerm]
- property termub: Optional[chc.api.STerm.STerm]
- class chc.api.STerm.STFormattedOutputSize(ifd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.STerm.STermThe size of a string formed via a format string.
args[0]: index of term in interface dictionary
- property is_formatted_output_size: bool
- property term: chc.api.STerm.STerm
- class chc.api.STerm.STIndexSize(ifd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.STerm.STermSize term expressed in units of array index.
For example, an index-size of 1 corresponds to 4 bytes in an int-array.
args[0]: index of term in interface dictionary
- property is_index_size: bool
- property term: chc.api.STerm.STerm
- class chc.api.STerm.STLocalVariable(ifd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.STerm.STermLocal variable used in external predicate.
tags[1]: name
- property is_local_var: bool
- property name: str
- class chc.api.STerm.STNamedConstant(ifd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.STerm.STermNamed constant with unspecified value.
tags[1]: name
- property is_named_constant: bool
- property name: str
- class chc.api.STerm.STNumConstant(ifd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.STerm.STermConstant with given numerical value.
- property constantvalue: int
- property is_num_constant: bool
- class chc.api.STerm.STRegion(ifd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.STerm.STermA memory region.
args[0]: index of term in interface dictionary
- property is_region: bool
- property term: chc.api.STerm.STerm
- class chc.api.STerm.STReturnValue(ifd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.STerm.STermReturn value, as used in post conditions.
- property is_return_value: bool
- class chc.api.STerm.STRuntimeValue(ifd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.STerm.STermA value that is determined at runtime.
- property is_runtime_value: bool
- class chc.api.STerm.STerm(ifd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.InterfaceDictionaryRecord.InterfaceDictionaryRecord- get_iterm(argix: int) chc.api.STerm.STerm[source]
- property is_arg_addressed_value: bool
- property is_arg_null_terminator_pos: bool
- property is_arg_size_of_type: bool
- property is_arg_value: bool
- property is_arithmetic_expr: bool
- property is_byte_size: bool
- property is_choice_value: bool
- property is_formatted_output_size: bool
- property is_index_size: bool
- property is_local_var: bool
- property is_named_constant: bool
- property is_num_constant: bool
- property is_region: bool
- property is_return_value: bool
- property is_runtime_value: bool