Issue #2540: Regex engines tested against regex::dynamic, fuzzed, and counted in benches/regex/

Open and answer this issue on GitHub.

ready · opened 2026-11-21 · updated 2026-11-21 · 0 comments

Part of #673 After #2536

What it is

The check that an engine never changes the match, and the figures that set its limits (ADR-regex-1 D5): every engine that accepts a pattern is tested against regex::dynamic (D5.1), a fuzz driver written in Nikaia feeds them, and benches/regex/ counts instructions against a tuned Rust program on the crate. This is step 5 of #673; it needs a second engine (regex::Dfa, step 4, #2536).

To build

  1. Differential test: every engine that accepts a pattern against regex::dynamic on the same texts (D5.1), as a test program in tests/compiler/tests/.
  2. A fuzz driver in Nikaia over patterns and texts (a Found: if std lacks what it needs).
  3. benches/regex/ with instruction counts (callgrind, docs/measuring.md) against a tuned Rust program on the crate, same output first; its figures set the default limits.

Done when

The differential test passes for every engine, the fuzz driver runs, and benches/regex/ gives counted rows for each engine and the Rust program with the same output, the default limits set from them; the commit of item 3 says Fixes #N.

Split from #673 by Claude Code

Back to Open Issues