IfInstruction.first_true_instruction()
first_true_instruction() →
Instruction
The function returns the first instruction for the true-case scenario of the if-statement
Example
for the function:
The query (exec numbers are tuned here to match that exact if-statement)
Output
Interesting to note about the difference in this example and the first_false_instruction() example, is that in the case of this function and this exact if-statement
The next_instruction() is not used as it will always return an empty list of instructions. This is because no instruction can be run after a return statement, and the next_instruction() is intraprocedural.
Last updated