Skip to content

Commit

Permalink
fix #5362
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Jun 22, 2021
1 parent f3737f6 commit 55daa24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/math/lp/nla_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ core::core(lp::lar_solver& s, reslimit & lim) :
m_emons(m_evars),
m_reslim(lim),
m_use_nra_model(false),
m_nra(s, lim, *this)
m_nra(s, m_nra_lim, *this)
{
m_nlsat_delay = lp_settings().nlsat_delay();
}
Expand Down Expand Up @@ -1563,10 +1563,15 @@ bool core::should_run_bounded_nlsat() {

lbool core::bounded_nlsat() {
params_ref p;
lbool ret;
p.set_uint("max_conflicts", 100);
scoped_rlimit sr(m_reslim, 100000);
m_nra.updt_params(p);
lbool ret = m_nra.check();
{
scoped_limits sl(m_reslim);
sl.push_child(&m_nra_lim);
scoped_rlimit sr(m_nra_lim, 100000);
ret = m_nra.check();
}
p.set_uint("max_conflicts", UINT_MAX);
m_nra.updt_params(p);
m_stats.m_nra_calls++;
Expand Down
1 change: 1 addition & 0 deletions src/math/lp/nla_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ class core {
svector<lpvar> m_add_buffer;
mutable lp::u_set m_active_var_set;
lp::u_set m_rows;
reslimit m_nra_lim;
public:
reslimit& m_reslim;
bool m_use_nra_model;
Expand Down

0 comments on commit 55daa24

Please sign in to comment.