Check model only when sat (#1694)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Mon, 26 Mar 2018 05:45:38 +0000 (00:45 -0500)
committerAndres Noetzli <andres.noetzli@gmail.com>
Mon, 26 Mar 2018 05:45:38 +0000 (22:45 -0700)
src/smt/smt_engine.cpp

index d3489b301a33fd51f08340ee6aacef247f319b43..8450307dbf7a2325495fda6282b462f75e4dce5b 100644 (file)
@@ -4866,9 +4866,10 @@ Result SmtEngine::checkSatisfiability(const vector<Expr>& assumptions,
 
     // Check that SAT results generate a model correctly.
     if(options::checkModels()) {
-      if(r.asSatisfiabilityResult().isSat() == Result::SAT ||
-         (r.isUnknown() && r.whyUnknown() == Result::INCOMPLETE) ){
-        checkModel(/* hard failure iff */ ! r.isUnknown());
+      // TODO (#1693) check model when unknown result?
+      if (r.asSatisfiabilityResult().isSat() == Result::SAT)
+      {
+        checkModel();
       }
     }
     // Check that UNSAT results generate a proof correctly.