module greed.solver.shortcuts
This module provides shortcuts to the solver API to be used in greed scripts.
function ctx_or_symbolic
Given a variable name, if the var is in the context, return it, otherwise create a new symbolic variable.
Args:
v
: The variable namectx
: The contextxid
: The transaction idnbits
: The number of bits of the symbolic variable
function concretize
Given a value, if it is concrete, return it, otherwise if the symbolic variable has only one possible solution, return it. If the symbolic variable has multiple possible solutions and force is True, add a constraint and return one of the possible solutions.
Args:
state
: The stateval
: The valueforce
: Whether to force the concretization
Returns: The concrete value or None
function BVSort
function BVV
function BVS
function Array
function If
function Equal
function NotEqual
function Or
function And
function Not
function bv_unsigned_value
function get_bv_by_name
function is_concrete
function BV_Extract
function BV_Concat
function BV_Add
function BV_Sub
function BV_Mul
function BV_UDiv
function BV_SDiv
function BV_SMod
function BV_SRem
function BV_URem
function BV_Sign_Extend
function BV_Zero_Extend
function BV_UGE
function BV_ULE
function BV_UGT
function BV_ULT
function BV_SGE
function BV_SLE
function BV_SGT
function BV_SLT
function BV_And
function BV_Or
function BV_Xor
function BV_Not
function BV_Shl
function BV_Shr
function BV_Sar
function Array_Store
function Array_Select
This file was automatically generated via lazydocs.