mirror of
https://github.com/Z3Prover/z3
synced 2026-06-19 15:16:29 +00:00
This bug was discovered by claude analyzing the descrepency of outputs in https://github.com/Z3Prover/bench/discussions/2516. The benchmark was edited - a line required stats was commented out - and this exposed the scanner inconsistent behavior. read_comment and read_multiline_comment handled end-of-line newlines as new_line(); next();, the reverse of the main scan() loop's next(); new_line();. This left m_spos one higher on the line following a comment, shifting every reported column on that line by +1 (e.g. a (pop) error reported column 5 instead of 4 when the previous line was a comment). Reorder both comment readers to match scan() so column numbers are consistent regardless of whether the preceding line is a comment. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| smt2 | ||
| util | ||