For the complete documentation index, see llms.txt. This page is also available as Markdown.

Value.get_state_vars()

Returns a list of VarValue objects of current value whose corresponding object is a StateVariable.

get_state_vars() ->APIList[VarValue]

The function returns all the state variables used (read/written) inside the Value.

Query Example

from glider import *


def query():
    instructions = (
        Functions()
        .with_one_property([MethodProp.HAS_STATE_VARIABLES_READ,MethodProp.HAS_STATE_VARIABLES_WRITTEN])
        .instructions()
        .exec(1, 5)
    )

    for instruction in instructions:
        print(instruction.get_components().get_state_vars().expression)

    return instructions

Example Output

Last updated