@@ -1801,12 +1801,12 @@ namespace lp {
1801
1801
lp_status st = lra.find_feasible_solution ();
1802
1802
if (st == lp_status::CANCELLED)
1803
1803
return false ;
1804
- if (( int )st >= ( int ) lp::lp_status::FEASIBLE)
1804
+ if (lp::is_sat (st))
1805
1805
return false ;
1806
1806
lra.get_infeasibility_explanation (m_infeas_explanation);
1807
1807
return true ;
1808
1808
}
1809
-
1809
+
1810
1810
1811
1811
// returns true only on a conflict
1812
1812
bool tighten_bound_kind (const mpq& g, unsigned j, const mpq& ub, bool upper) {
@@ -1840,10 +1840,8 @@ namespace lp {
1840
1840
lra.update_column_type_and_bound (j, kind, bound, dep);
1841
1841
1842
1842
lp_status st = lra.find_feasible_solution ();
1843
- if (( int ) st >= ( int ) lp::lp_status::FEASIBLE) {
1843
+ if (is_sat (st) || st == lp::lp_status::CANCELLED)
1844
1844
return false ;
1845
- }
1846
- if (st == lp_status::CANCELLED) return false ;
1847
1845
lra.get_infeasibility_explanation (m_infeas_explanation);
1848
1846
return true ;
1849
1847
}
@@ -2069,7 +2067,7 @@ namespace lp {
2069
2067
TRACE (" dio_br" , tout << " st:" << lp_status_to_string (st) << std::endl;);
2070
2068
if (st == lp_status::CANCELLED)
2071
2069
return lia_move::undef;
2072
- else if (( int )st >= ( int )(lp_status::FEASIBLE )) {
2070
+ else if (lp::is_sat (st )) {
2073
2071
// have a feasible solution
2074
2072
unsigned n_of_ii = get_number_of_int_inf ();
2075
2073
TRACE (" dio_br" , tout << " n_of_ii:" << n_of_ii << " \n " ;);
0 commit comments