Callable.end_loop_instructions()

Returns end_loop instructions of the function/modifier.

end_loop_instructions() → Instructions

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

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

Example

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

  loop = []
  for function in functions:
    for loop_instruction in function.end_loop_instructions().exec():
      # For each function, return the loop instructions
      loop.append(loop_instruction)

  return loop

Example output

Last updated