Worklist Iteration and Dataflow Fixed Points
Propagate changed facts along dependencies and use finite lattice height to prove termination of an incremental solver.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Revisit only equations that can change
Initialize facts at the bottom of a finite-height order, respecting the known entry boundary. Evaluate a node’s equation from current predecessor facts. On a strict change, enqueue dependent nodes that might see new inputs. With monotone transfers and joins, the facts only move upward. As long as every queued equation eventually runs, an empty worklist means all affected equations have stabilized.
Height bounds updates, not necessarily total runtime tightly
For \(m\) possible bits in a union-based set analysis, a node can add each bit at most once. A cyclic dependency introduces repeated visits, but cannot produce infinitely many additions. The number of edges and the cost of evaluating each transfer matter for implementation. Dataflow lattices explain why the order changes for must facts. Widening handles domains with infinitely ascending chains, where the same termination proof no longer applies.[1][2]