Expand description
Generic node types for the e-graph node stores.
Three structs cover all ten node kinds:
FixedArityNode<G, O, K>— Plain0/1/2/3 and CommutativeVariableArityNode<G, O>— PlainN, A, AC, ACILitNode<G, O, V>— literal leaves
global_id and op are stored as Repr types so the tag bits
can be manipulated directly via Tagged without unsafe casts.
global_id MSB = VecI capture tag, op MSB = has_history flag.
flags is a per-node u8 bitfield for control bits (subsumption, etc).
Structs§
- Fixed
Arity Node - LitNode
- Variable
Arity Node - A node whose children live in a shared side pool, addressed by a
[start, end)span.
Constants§
- FLAG_
AC_ COLLAPSED - FLAG_
CONSTRUCTOR - FLAG_
SUBSUMED - Per-node control flags stored in the
flagsfield.