Instruction.backward_df()
Returns a list of all previous instructions/arguments/variables of the current point in the data flow graph.
The backward_df()
function is an intra-procedural analysis function. This means that the function does not operate recursively and instead returns instruction/argument/variable
within the current function instruction set.
The function returns the derived classes from Point, such as ArgumentPoint, VarValue, Instruction, etc.
Query Example
Output Example
For the same contract, this query showcases that the return list elements are type-casted from Point:
The function returns APISet, instead of APIList, in case the result of the function is used as the return value of the query it must be casted to list()
Last updated