diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-22 17:56:44 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-22 18:26:17 -0300 |
| commit | f60f51fe89f1d3737389047cb2f3671b1b21e56d (patch) | |
| tree | 527d26a7532f1d4bf36e9726c4830fa109fef18b /runtime/root.zig | |
| parent | 9863a63b614d200852853825031189364dcacfdc (diff) | |
| download | pardes-f60f51fe89f1d3737389047cb2f3671b1b21e56d.tar.gz pardes-f60f51fe89f1d3737389047cb2f3671b1b21e56d.zip | |
tests: what mvzr compiles it can walk: core/regexp.zig's test of that name searches `()a` on `b` and `a()b` on `a` (no match) and on `ba` and `xab` (what they match), expects `a|*` `|+` `(|?)` `|??` `^*` `^+?` `a|{2}` `({1))` `a{1b` refused, and searches every pattern up to five characters over `()|*+?a` and four over `()|*+?a^{1}` from every offset of `aa\n\na`: refused, or answered inside the budget (Debug: its test program runs in 50 ms); on this base it aborts at its first case, `()a` on `b` (index out of bounds, index 0 of len 0, mvzr.zig:999 `patternAcceptsEmpty` from `groupAcceptsEmpty` :1040 from `matchPattern` :333 of the build's patched copy: the frames of the abort in .scratch/sketch/reorg/merge57/replicas-2.log, where the soak's random typist, narrowing a selection by a regex (`s`) a key at a time, took its session down); outside the tree (.scratch/sketch/reorg/pardes-regex-2/enum: this core/regexp.zig over the build's patched mvzr in a safe build, a forked child per panic) 18,746 of the 960,799 patterns up to seven characters over `()|*+?a` panic, every one indexing an empty slice: `patternAcceptsEmpty` (an empty group with more after it: `()a`, `a()b`), `thisPattern` and `nextPattern` (a repeat right after `|`: `a|*`, `|*`, `|??`); over wider alphabets two more kinds, a repeat right after `^` (`^*`: reached unreachable code) and a count ending in neither `,` nor `}` (`({1))`: index 1 of len 1): 68,627 of 5,229,042 up to six over `()|*+?a^$.{}1`, 40,135 of 5,399,042 up to five over `()[]{},*+?|\^$.-a1xnbf`; the next change is the fix
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'runtime/root.zig')
0 files changed, 0 insertions, 0 deletions
