@@ -1801,12 +1801,12 @@ namespace lp {
18011801            lp_status st = lra.find_feasible_solution ();
18021802            if  (st == lp_status::CANCELLED)
18031803                return  false ;
1804-             if  (( int )st >= ( int ) lp::lp_status::FEASIBLE)  
1804+             if  (lp::is_sat  (st)) 
18051805                return  false ;            
18061806            lra.get_infeasibility_explanation (m_infeas_explanation);
18071807            return  true ;
18081808        }
1809- 
1809+          
18101810
18111811//  returns true only on a conflict
18121812        bool  tighten_bound_kind (const  mpq& g, unsigned  j, const  mpq& ub, bool  upper) {
@@ -1840,10 +1840,8 @@ namespace lp {
18401840            lra.update_column_type_and_bound (j, kind, bound, dep);
18411841
18421842            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) 
18441844                return  false ;
1845-             }
1846-             if  (st == lp_status::CANCELLED) return  false ;
18471845            lra.get_infeasibility_explanation (m_infeas_explanation);
18481846            return  true ;
18491847        }
@@ -2069,7 +2067,7 @@ namespace lp {
20692067                TRACE (" dio_br"  , tout << " st:"   << lp_status_to_string (st) << std::endl;);
20702068                if  (st == lp_status::CANCELLED)
20712069                    return  lia_move::undef;
2072-                 else  if  (( int )st >= ( int )(lp_status::FEASIBLE )) {
2070+                 else  if  (lp::is_sat (st )) {
20732071                    //  have a feasible solution
20742072                    unsigned  n_of_ii = get_number_of_int_inf ();
20752073                    TRACE (" dio_br"  , tout << " n_of_ii:"   << n_of_ii << " \n "  ;);
0 commit comments