The function returns all the arguments' vars used inside the Value.
Example
from glider import*defquery():# lets get some functions with exactly 3 arguments functions =Functions()\.with_arg_count(3)\.exec(2,20)for function in functions:for instruction in function.instructions().exec():for operand in instruction.get_operands(): arg_vars = operand.get_arg_vars()iflen(arg_vars)>0:print([x.expression for x in arg_vars])return functions
Example Output
"root":{3 items"contract":string"0xe5fA13058EdE558a2bFA675043f175148858A5F6""contract_name":string"SafeMath""sol_function":solidityfunctionsub(uint256 a,uint256 b,stringmemory errorMessage) internalpurereturns (uint256) {require(b <= a,errorMessage);uint256 c = a - b;return c; }}"root":{3 items"contract":string"0xe5fA13058EdE558a2bFA675043f175148858A5F6""contract_name":string"SafeMath""sol_function":solidityfunctiondiv(uint256 a,uint256 b,stringmemory errorMessage) internalpurereturns (uint256) {require(b >0,errorMessage);uint256 c = a / b;return c; }}"root":{1 item"print_output":[6 items0:string"['b', 'a', 'errorMessage']"1:string"['a']"2:string"['b']"3:string"['b', 'errorMessage']"4:string"['a']"5:string"['b']"]}