A Worklist Check on a Small Dependency Graph

When checking reachability or propagating facts, a worklist retains pending nodes. Processing can add later work depending on what changed.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace two reachable edges
  2. Choose the rescheduling rule

Trace two reachable edges

Start with A pending. Process A and discover B, then process B and discover C. Record each discovered identity so a back-edge does not require the same expansion again. See visited sets.

Choose the rescheduling rule

Another analysis might revisit a node when its input summary grows. Worklist fixed points describe the changed-state reasoning for that case.[1]

References

  1. Benjamin C. Pierce et al., Software Foundations ↩