3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 12:28:44 +00:00

Take into account number of monomials for rlimit counting

Should fix issue #611
This commit is contained in:
Johannes Kanig 2016-06-08 11:17:26 +09:00
parent 47f97dde89
commit 9bfa73ee06

View file

@ -446,6 +446,7 @@ void grobner::merge_monomials(ptr_vector<monomial> & monomials) {
SASSERT(&m_del_monomials != &monomials);
ptr_vector<monomial>& to_delete = m_del_monomials;
to_delete.reset();
m_manager.limit().inc(sz);
for (unsigned i = 1; i < sz; ++i) {
monomial * m1 = monomials[j];
monomial * m2 = monomials[i];