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

Point.has_global_df_recursive()

Returns true if the point has a dependency on external variables in the current data flow graph and outside of that, false otherwise.

has_global_df_recursive() → bool

Query Example

from glider import *


def query():
  recursive_instructions = (
    Instructions()
    .exec(10, 10)
    .filter(lambda x: x.has_global_df_recursive())
  )

  print(len(recursive_instructions))

  return recursive_instructions

Example Output

has_global_df_recursive vs has_global_df

Let's dive into the difference between has_global_df_recursive() and has_global_df().

The function has_global_df_recursive() works recursively, whereas has_global_df() does not. In the previous example, as well as in the example using has_global_df(), no significant differences were observed. However, in the example below, we can clearly see the distinction between the two functions.

The following query demonstrates the difference: has_global_df() returns 259 instructions, while has_global_df_recursive() returns 261 instructions.

Here is a query to highlight the difference:

Here is the output:

Last updated