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