Reach.IR (Reach v2.5.0)

Copy Markdown View Source

Internal Representation tree utilities.

Provides functions for traversing and querying IR node trees. To build IR from source, use Reach.string_to_graph/2 or Reach.file_to_graph/2.

Summary

Functions

Collects all nodes in the IR tree (pre-order depth-first).

Functions

all_nodes(nodes)

@spec all_nodes(Reach.IR.Node.t() | [Reach.IR.Node.t()]) :: [Reach.IR.Node.t()]

Collects all nodes in the IR tree (pre-order depth-first).