mirror of
https://github.com/Z3Prover/z3
synced 2025-06-28 08:58:44 +00:00
add quota to Grobner
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
7ad95aa5d2
commit
f2884088cc
1 changed files with 9 additions and 1 deletions
|
@ -1397,6 +1397,10 @@ std::ostream& core::print_term( const lp::lar_term& t, std::ostream& out) const
|
||||||
|
|
||||||
|
|
||||||
void core::run_grobner() {
|
void core::run_grobner() {
|
||||||
|
static unsigned quota = 8;
|
||||||
|
if (quota == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
lp_settings().stats().m_grobner_calls++;
|
lp_settings().stats().m_grobner_calls++;
|
||||||
configure_grobner();
|
configure_grobner();
|
||||||
m_pdd_grobner.saturate();
|
m_pdd_grobner.saturate();
|
||||||
|
@ -1414,7 +1418,11 @@ void core::run_grobner() {
|
||||||
IF_VERBOSE(2, verbose_stream() << "grobner conflict\n");
|
IF_VERBOSE(2, verbose_stream() << "grobner conflict\n");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
IF_VERBOSE(2, verbose_stream() << "grobner miss\n");
|
if (quota == 1)
|
||||||
|
quota = 0;
|
||||||
|
else
|
||||||
|
quota /= 2;
|
||||||
|
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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue