3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-20 03:12:03 +00:00

allow unlimited number of Grobner calls

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2020-01-11 08:44:03 -08:00
parent b577544830
commit 45c0f2225c

View file

@ -1398,7 +1398,7 @@ std::ostream& core::print_term( const lp::lar_term& t, std::ostream& out) const
void core::run_grobner() { void core::run_grobner() {
unsigned& quota = m_grobner_quota; unsigned& quota = m_grobner_quota;
if (quota == 0) { if (quota == 1) {
return; return;
} }
lp_settings().stats().m_grobner_calls++; lp_settings().stats().m_grobner_calls++;
@ -1418,7 +1418,8 @@ void core::run_grobner() {
IF_VERBOSE(2, verbose_stream() << "grobner conflict\n"); IF_VERBOSE(2, verbose_stream() << "grobner conflict\n");
} }
else { else {
quota >>= 1; if (quota > 1)
quota--;
IF_VERBOSE(2, verbose_stream() << "grobner miss, quota " << quota << "\n"); IF_VERBOSE(2, verbose_stream() << "grobner miss, quota " << quota << "\n");
IF_VERBOSE(4, diagnose_pdd_miss(verbose_stream())); IF_VERBOSE(4, diagnose_pdd_miss(verbose_stream()));
} }