Instruction.forward_df()
Returns a list of all instructions following the current point in the current data flow graph.
The forward_df()
function is an intra-procedural analysis function. This means that the function does not operate recursively and instead returns instructions within the current function instruction set.
For example, in the function:
For the instruction uint256 c = a * b;
the forward data flow will return instructions:
The easy way to put this is that it will follow the nodes where the variable c
is being used directly or indirectly.
Query Example
Example Output
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