mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
revert the last commit with freeing the memory
Signed-off-by: Lev Nachmanson <levnach@microsoft.com>
This commit is contained in:
parent
13ff96b40b
commit
919946b567
|
@ -220,24 +220,18 @@ bool grobner_core::compute_basis_step() {
|
|||
return true;
|
||||
}
|
||||
m_stats.m_compute_steps++;
|
||||
unsigned mem_size = m_nex_creator.size();
|
||||
simplify_eq_by_using_to_superpose(*eq);
|
||||
if (equation_is_too_complex(eq)) {
|
||||
m_nex_creator.pop(mem_size);
|
||||
return false;
|
||||
}
|
||||
mem_size = m_nex_creator.size();
|
||||
if (!simplify_to_superpose_with_eq(eq)) {
|
||||
m_nex_creator.pop(mem_size);
|
||||
return false;
|
||||
}
|
||||
TRACE("grobner", tout << "eq = "; display_equation(tout, *eq););
|
||||
mem_size = m_nex_creator.size();
|
||||
superpose(eq);
|
||||
if (equation_is_too_complex(eq)) {
|
||||
TRACE("grobner", display_equation(tout, *eq) << " is too complex: deleting it\n;";);
|
||||
del_equation(eq);
|
||||
m_nex_creator.pop(mem_size);
|
||||
return false;
|
||||
}
|
||||
insert_to_superpose(eq);
|
||||
|
|
Loading…
Reference in a new issue