Constructs and returns procedure graph of the function/modifier.
get_pg() β ProcedureGraph
The ProcedureGraph is an internal data structure for representing CFG/DFG graphs of the code. There is low probability that anyone will need to directly access it while writing queries.
Example
from glider import*defquery(): functions =Functions().without_modifier_names(["onlyOwner"]).exec(100) state_variables = []for function in functions:# For each function without an "onlyOwner" modifier, return all state variables in the procedure graphfor state_var in function.get_pg().get_state_variables(): state_variables.append(state_var.to_json())return state_variables