The function works similarly to Instruction.forward_df(); the main difference is that in case of Instruction.forward_df() the function will return forward-dataflow point for every point in the instruction, while Var.forward_df() returns only those connected with the current Var.
Example
from glider import*defquery(): functions =Functions()\.with_one_property([MethodProp.HAS_STATE_VARIABLES_WRITTEN])\.exec(50,50)for function in functions:for instruction in function.instructions().exec():for operand in instruction.get_operands():vars= operand.get_local_vars()iflen(vars)>0:for point invars[0].forward_df():print("Var: "+vars[0].expression)# print(point.source_code())returnvars[0].forward_df()return []
For the local variable (Var) uint i=0; in the function: