3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-15 17:49:59 +00:00
z3/src
Lev Nachmanson 8e47c0d842 Fixed the assertion violation in mpz.cpp:602 when running with -tr:arith.
**Root cause**: `vector::resize(SZ s, Args args...)` in `src/util/vector.h` took `args` by value and used `std::forward<Args>(args)` in a loop. The first iteration moved from `args`, leaving all subsequent elements with a moved-from state (`rational{0/0}` instead of
`rational{0/1}`). This corrupted the coefficient vector in the pretty printer, causing a division-by-zero assertion when multiplying.

**Fix**: Changed `resize` to take `Args const& args` and copy-construct each element instead of forwarding/moving.
2026-03-11 12:43:59 -10:00
..
ackermannization Fix off-by-one vulnerabilities: use range-based for on goals; cache loop bound 2026-02-19 22:37:22 +00:00
api Go: Add MkBVRotateLeft, MkBVRotateRight, MkRepeat to bitvec.go 2026-03-09 16:20:13 +00:00
ast Code simplifications in sls_euf_plugin.cpp and realclosure.cpp 2026-03-10 16:17:24 +00:00
cmd_context Remove redundant default constructors when they're the only constructor (#8461) 2026-02-18 20:58:01 -08:00
math Code simplifications in sls_euf_plugin.cpp and realclosure.cpp 2026-03-10 16:17:24 +00:00
model Remove redundant default constructors when they're the only constructor (#8461) 2026-02-18 20:58:01 -08:00
muz Refactor sls_euf_plugin.cpp validate_model and add SASSERT in udoc_relation.cpp 2026-03-09 16:57:59 +00:00
nlsat remove an unnecessary template from levelwise 2026-02-25 07:03:23 -10:00
opt Refactor optimization and model to use C++17 structured bindings for pairs (#8426) 2026-02-18 20:57:59 -08:00
params update params 2026-02-19 19:06:06 -08:00
parsers Revert "Refactor find_psort_decl() to return std::optional<psort_decl*> (#8339)" 2026-02-18 20:57:56 -08:00
qe Fix true positive critical bugs from static analysis discussion #8764 2026-02-25 00:41:59 +00:00
sat Fix assertion violation in q_mbi diagnostic output 2026-02-28 11:15:28 -10:00
shell Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
smt allow calling lp().restore_x() only in case the number of column in lp() remained the same: it might grow 2026-03-09 10:51:31 -10:00
solver Remove copies (#8583) 2026-02-18 21:02:22 -08:00
tactic Merge pull request #8779 from Z3Prover/copilot/convert-bv1-blast-to-simplifier 2026-02-26 15:52:18 -08:00
test fix: fix memory leaks detected by ASan in test code 2026-03-09 16:48:17 +00:00
util Fixed the assertion violation in mpz.cpp:602 when running with -tr:arith. 2026-03-11 12:43:59 -10:00
CMakeLists.txt git bindings v1.0 2026-02-18 21:02:25 -08:00