Dataflow Facts, Orders, and Joins
Choose the order that represents information, then distinguish may and must facts at a control-flow merge.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
The merge must agree with the analysis question
At a join, a variable may be assigned on at least one incoming path or definitely assigned on every path. For the first question combine assigned sets by union. For the second combine them by intersection. If one branch assigns \(x\) and another assigns \(y\), the possible set is \(\{x,y\}\) and the definite set is empty. The transfer on an assignment can add its variable to either set.
Choose an order consistent with iteration
For may facts, ordinary subset order makes union its least upper bound. For must facts ordered by reverse inclusion, intersection is the least upper bound. Monotone transfers preserve the chosen direction of information growth. Handling unreachable states may require boundary initialization distinct from a reachable state with no definite facts. Worklist iteration solves the resulting equations. Liveness analysis tracks a different may fact backward through the same control graph.[1][2]