mirror of
https://github.com/Z3Prover/z3
synced 2025-06-13 09:26:15 +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
1 changed files with 0 additions and 6 deletions
|
@ -220,24 +220,18 @@ bool grobner_core::compute_basis_step() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
m_stats.m_compute_steps++;
|
m_stats.m_compute_steps++;
|
||||||
unsigned mem_size = m_nex_creator.size();
|
|
||||||
simplify_eq_by_using_to_superpose(*eq);
|
simplify_eq_by_using_to_superpose(*eq);
|
||||||
if (equation_is_too_complex(eq)) {
|
if (equation_is_too_complex(eq)) {
|
||||||
m_nex_creator.pop(mem_size);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
mem_size = m_nex_creator.size();
|
|
||||||
if (!simplify_to_superpose_with_eq(eq)) {
|
if (!simplify_to_superpose_with_eq(eq)) {
|
||||||
m_nex_creator.pop(mem_size);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
TRACE("grobner", tout << "eq = "; display_equation(tout, *eq););
|
TRACE("grobner", tout << "eq = "; display_equation(tout, *eq););
|
||||||
mem_size = m_nex_creator.size();
|
|
||||||
superpose(eq);
|
superpose(eq);
|
||||||
if (equation_is_too_complex(eq)) {
|
if (equation_is_too_complex(eq)) {
|
||||||
TRACE("grobner", display_equation(tout, *eq) << " is too complex: deleting it\n;";);
|
TRACE("grobner", display_equation(tout, *eq) << " is too complex: deleting it\n;";);
|
||||||
del_equation(eq);
|
del_equation(eq);
|
||||||
m_nex_creator.pop(mem_size);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
insert_to_superpose(eq);
|
insert_to_superpose(eq);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue