mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 18:05:21 +00:00
fix #2122 for code that isn't exception safe
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a76107e50d
commit
9fde9fe3a2
|
@ -524,11 +524,11 @@ namespace upolynomial {
|
|||
set(sz1, p1, buffer);
|
||||
if (sz1 <= 1)
|
||||
return;
|
||||
|
||||
numeral const & b_n = p2[sz2-1];
|
||||
SASSERT(!m().is_zero(b_n));
|
||||
scoped_numeral a_m(m());
|
||||
while (true) {
|
||||
checkpoint();
|
||||
while (m_limit.inc()) {
|
||||
TRACE("rem_bug", tout << "rem loop, p2:\n"; display(tout, sz2, p2); tout << "\nbuffer:\n"; display(tout, buffer); tout << "\n";);
|
||||
sz1 = buffer.size();
|
||||
if (sz1 < sz2) {
|
||||
|
|
Loading…
Reference in a new issue