mirror of
https://github.com/Z3Prover/z3
synced 2025-04-30 12:25:51 +00:00
Throttle nra solver when progress is being made by linearization
This commit is contained in:
parent
08f55f9d1f
commit
c6eb55537a
3 changed files with 18 additions and 2 deletions
|
@ -1523,8 +1523,14 @@ lbool core::check(vector<lemma>& l_vec) {
|
|||
{ 1, check3 }};
|
||||
check_weighted(3, checks);
|
||||
|
||||
if (!conflict_found() && m_nla_settings.run_nra() && random() % 30 == 0) {
|
||||
ret = m_nra.check();
|
||||
if (!conflict_found() && m_nla_settings.run_nra() && random() % 50 == 0 &&
|
||||
lp_settings().stats().m_nla_calls > 500) {
|
||||
params_ref p;
|
||||
p.set_uint("max_conflicts", 100);
|
||||
m_nra.updt_params(p);
|
||||
ret = m_nra.check();
|
||||
p.set_uint("max_conflicts", UINT_MAX);
|
||||
m_nra.updt_params(p);
|
||||
m_stats.m_nra_calls++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue