Instruction.next_instruction()
Returns a list of immediate following instructions in the control flow graph.
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}uint256 c = a + b;require(c >= a, "SafeMath: addition overflow");Query Example
from glider import *
def query():
instructions = Functions().with_name("sub").exec(1,1).instructions().exec(1,1)
return instructions + instructions[0].next_instruction()Example Output

Last updated