class
ValueA generic class representing a value that can be either concrete or an abstract expression. Abstract expressions are made of constant values and/or abstract variables, optionally combined using standard arithmetic and logic operators.
❱ Constructors
❱ Attributes
❱ Methods
int as_float(Optional[ VarContext ctx])
Returns the concrete value of the expression interpreted as a floating point value
Parameters | |
---|---|
ctx | Optional context to use to concretize the expression, instead of the default one |
int as_int(Optional[ VarContext ctx])
Returns the concrete value of the expression interpreted as a signed integer
Parameters | |
---|---|
ctx | Optional context to use to concretize the expression, instead of the default one |
int as_uint(Optional[ VarContext ctx])
Returns the concrete value of the expression interpreted as an unsigned integer
Parameters | |
---|---|
ctx | Optional context to use to concretize the expression, instead of the default one |
bool is_concolic( Optional[ VarContext ctx])
Returns True if the expression is concolic
Parameters | |
---|---|
ctx | Optional context to use to check the expression status |
bool is_symbolic( Optional[ VarContext ctx])
Returns True if the expression is fully symbolic
Parameters | |
---|---|
ctx | Optional context to use to check the expression status |
bool is_concrete( Optional[ VarContext ctx])
Returns True if the expression is concrete
Parameters | |
---|---|
ctx | Optional context to use to check the expression status |
❱ Operators
Value __floordiv__(e1, e2)
Value __lshift__(e1, e2)
Value __rshift__(e1, e2)
Constraint __eq__(e1, e2)
Create the constraint e1 == e2. Parameters can be Value or int
Constraint __ne__(e1, e2)
Create the constraint e1 != e2. Parameters can be Value or int
Constraint __lt__(e1, e2)
Create the constraint e1 < e2. Parameters can be Value or int
Constraint __le__(e1, e2)
Create the constraint e1 <= e2. Parameters can be Value or int
Constraint __gt__(e1, e2)
Create the constraint e1 > e2. Parameters can be Value or int
Constraint __ge__(e1, e2)
Create the constraint e1 >= e2. Parameters can be Value or int