Documentation

CslibFrontier.Algorithms.WordRAM.AhoCorasick.Phase4Scan

Phase 4b: Output Emission and Full Text Scan (scanCode) #

Verifies emitCode, the full text-scanning loop scanStepCode, and scanCode, establishing that the length-prefixed word list written at Reg.out equals encodeOccurrences (occurrences inp.patterns inp.text) in at most 38 * inp.text.length + 10 * (occurrences inp.patterns inp.text).length + 8 instructions.

Main results #