Callable.start_loop_instructions()

Returns start_loop instructions of the function/modifier.

start_loop_instructions() → Instructions

The functions will return start_loop instructions for all types of loops e.g. while/for.

start_loop instruction is not a "real" instruction but rather an abstract one representing the start of the loop.

Example

from glider import *
def query():
  functions = Functions().exec(100)

  loop_instructions = []
  for function in functions:
    for instruction in function.start_loop_instructions().exec():
      # Return the starting loop instructions for each function
      loop_instructions.append(instruction)

  return loop_instructions

Example output

Last updated