Reach.ControlDependence (Reach v2.3.4)

Copy Markdown View Source

Computes control dependence from CFG and post-dominators.

Summary

Functions

Builds a control dependence graph from a control flow graph.

Functions

build(cfg)

@spec build(Graph.t()) :: Graph.t()

Builds a control dependence graph from a control flow graph.

The control flow graph must have :entry and :exit vertices. Returns a Graph.t() where edges represent control dependence with labels indicating the branch condition.