Skip to content

Commit 1b94d43

Browse files
fix build
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent fad4283 commit 1b94d43

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

src/nlsat/nlsat_evaluator.cpp

+6-7
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ namespace nlsat {
488488
return sign;
489489
}
490490

491-
interval_set_ref infeasible_intervals(ineq_atom * a, bool is_int, bool neg, clause const* cls) {
491+
interval_set_ref infeasible_intervals(ineq_atom * a, bool neg, clause const* cls) {
492492
sign_table & table = m_sign_table_tmp;
493493
table.reset();
494494
TRACE("nlsat_evaluator", m_solver.display(tout, *a) << "\n";);
@@ -593,8 +593,7 @@ namespace nlsat {
593593
return result;
594594
}
595595

596-
interval_set_ref infeasible_intervals(root_atom * a, bool is_int, bool neg, clause const* cls) {
597-
(void) is_int;
596+
interval_set_ref infeasible_intervals(root_atom * a, bool neg, clause const* cls) {
598597
atom::kind k = a->get_kind();
599598
unsigned i = a->i();
600599
SASSERT(i > 0);
@@ -665,8 +664,8 @@ namespace nlsat {
665664
return result;
666665
}
667666

668-
interval_set_ref infeasible_intervals(atom * a, bool is_int, bool neg, clause const* cls) {
669-
return a->is_ineq_atom() ? infeasible_intervals(to_ineq_atom(a), is_int, neg, cls) : infeasible_intervals(to_root_atom(a), is_int, neg, cls);
667+
interval_set_ref infeasible_intervals(atom * a, bool neg, clause const* cls) {
668+
return a->is_ineq_atom() ? infeasible_intervals(to_ineq_atom(a), neg, cls) : infeasible_intervals(to_root_atom(a), neg, cls);
670669
}
671670
};
672671

@@ -686,8 +685,8 @@ namespace nlsat {
686685
return m_imp->eval(a, neg);
687686
}
688687

689-
interval_set_ref evaluator::infeasible_intervals(atom * a, bool is_int, bool neg, clause const* cls) {
690-
return m_imp->infeasible_intervals(a, is_int, neg, cls);
688+
interval_set_ref evaluator::infeasible_intervals(atom * a, bool neg, clause const* cls) {
689+
return m_imp->infeasible_intervals(a, neg, cls);
691690
}
692691

693692
void evaluator::push() {

src/nlsat/nlsat_evaluator.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace nlsat {
5151
Let x be a->max_var(). Then, the resultant set specifies which
5252
values of x falsify the given literal.
5353
*/
54-
interval_set_ref infeasible_intervals(atom * a, bool is_int, bool neg, clause const* cls);
54+
interval_set_ref infeasible_intervals(atom * a, bool neg, clause const* cls);
5555

5656
void push();
5757
void pop(unsigned num_scopes);

src/nlsat/nlsat_explain.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ namespace nlsat {
14391439
literal l = core[i];
14401440
atom * a = m_atoms[l.var()];
14411441
SASSERT(a != 0);
1442-
interval_set_ref inf = m_evaluator.infeasible_intervals(a, m_solver.is_int(a->max_var()), l.sign(), nullptr);
1442+
interval_set_ref inf = m_evaluator.infeasible_intervals(a, l.sign(), nullptr);
14431443
r = ism.mk_union(inf, r);
14441444
if (ism.is_full(r)) {
14451445
// Done
@@ -1458,7 +1458,7 @@ namespace nlsat {
14581458
literal l = todo[i];
14591459
atom * a = m_atoms[l.var()];
14601460
SASSERT(a != 0);
1461-
interval_set_ref inf = m_evaluator.infeasible_intervals(a, m_solver.is_int(a->max_var()), l.sign(), nullptr);
1461+
interval_set_ref inf = m_evaluator.infeasible_intervals(a, l.sign(), nullptr);
14621462
r = ism.mk_union(inf, r);
14631463
if (ism.is_full(r)) {
14641464
// literal l must be in the core

src/nlsat/nlsat_solver.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ namespace nlsat {
827827
// need to translate Boolean variables and literals
828828
scoped_bool_vars tr(checker);
829829
for (var x = 0; x < m_is_int.size(); ++x) {
830-
checker.register_var(x, m_is_int[x]);
830+
checker.register_var(x, is_int(x));
831831
}
832832
bool_var bv = 0;
833833
tr.push_back(bv);
@@ -1357,7 +1357,7 @@ namespace nlsat {
13571357
atom * a = m_atoms[b];
13581358
SASSERT(a != nullptr);
13591359
interval_set_ref curr_set(m_ism);
1360-
curr_set = m_evaluator.infeasible_intervals(a, is_int(m_xk), l.sign(), &cls);
1360+
curr_set = m_evaluator.infeasible_intervals(a, l.sign(), &cls);
13611361
TRACE("nlsat_inf_set", tout << "infeasible set for literal: "; display(tout, l); tout << "\n"; m_ism.display(tout, curr_set); tout << "\n";
13621362
display(tout, cls) << "\n";);
13631363
if (m_ism.is_empty(curr_set)) {
@@ -1470,7 +1470,7 @@ namespace nlsat {
14701470
void select_witness() {
14711471
scoped_anum w(m_am);
14721472
SASSERT(!m_ism.is_full(m_infeasible[m_xk]));
1473-
m_ism.peek_in_complement(m_infeasible[m_xk], m_is_int[m_xk], w, m_randomize);
1473+
m_ism.peek_in_complement(m_infeasible[m_xk], is_int(m_xk), w, m_randomize);
14741474
TRACE("nlsat",
14751475
tout << "infeasible intervals: "; m_ism.display(tout, m_infeasible[m_xk]); tout << "\n";
14761476
tout << "assigning "; m_display_var(tout, m_xk) << "(x" << m_xk << ") -> " << w << "\n";);
@@ -1576,7 +1576,7 @@ namespace nlsat {
15761576
vector<std::pair<var, rational>> bounds;
15771577

15781578
for (var x = 0; x < num_vars(); x++) {
1579-
if (m_is_int[x] && m_assignment.is_assigned(x) && !m_am.is_int(m_assignment.value(x))) {
1579+
if (is_int(x) && m_assignment.is_assigned(x) && !m_am.is_int(m_assignment.value(x))) {
15801580
scoped_anum v(m_am), vlo(m_am);
15811581
v = m_assignment.value(x);
15821582
rational lo;

0 commit comments

Comments
 (0)