Internal workspace predicates and setup helpers for word-RAM Hopcroft–Karp #
Scratch registers (19 .. 33), value encodings (encodeOptFin, encodeDist), in-memory
matching/distance predicates (MateMem, DistMem), and shared subroutines (clearAt,
initBaseRegsFromCSR) used privately by the HopcroftKarp sub-modules (BFS, DFSStep, DFS,
MatrixCSR, and HopcroftKarp). This module is imported privately by the umbrella module
CslibFrontier.Algorithms.WordRAM.HopcroftKarp so its declarations do not leak into the public
surface.
Scratch register 19: outer phase-loop active flag.
Scratch register 20: current augmenting-path layer depth k.
Scratch register 21: flag set when BFS reaches an unmatched right vertex.
Scratch register 22: BFS queue head cursor / DFS root scan cursor.
Scratch register 23: BFS queue tail index.
Scratch register 24: end index of the current BFS layer in the queue.
Scratch register 25: current BFS distance / explicit DFS stack depth.
Scratch register 26: number of disjoint augmenting paths collected in the phase.
Scratch register 27 (Reg.acc): inner loop-active flag for bfsCode and dfsLoop.
Scratch register 28: general loop and CSR edge index.
Scratch register 29: general loop upper-bound register.
Scratch register 30: scratch memory-address register.
Scratch register 31: primary scratch value register.
Scratch register 32: secondary scratch value register.
Scratch register 33: general temporary scratch value register.
Zero-fill [x.regs baseReg, x.regs baseReg + x.regs lenReg) via Cslib.WordRAM.zeroFill.
Populate bEdgesReg .. outBase from zero, one, two, rm, rr, rE, bOffReg.