Do not debug check models when unknown (#1748)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Wed, 4 Apr 2018 16:56:59 +0000 (11:56 -0500)
committerGitHub <noreply@github.com>
Wed, 4 Apr 2018 16:56:59 +0000 (11:56 -0500)
src/theory/theory_engine.cpp

index 375027d34583972e6e585215c4af2b0773444ab6..f3489f5ade63b2bc9afe3daa6a8a88698e4d7e6c 100644 (file)
@@ -639,7 +639,12 @@ void TheoryEngine::check(Theory::Effort effort) {
         AlwaysAssert(d_curr_model->isBuiltSuccess());
         if (options::produceModels())
         {
-          d_curr_model_builder->debugCheckModel(d_curr_model);
+          // if we are incomplete, there is no guarantee on the model.
+          // thus, we do not check the model here. (related to #1693)
+          if (!d_incomplete)
+          {
+            d_curr_model_builder->debugCheckModel(d_curr_model);
+          }
           // Do post-processing of model from the theories (used for THEORY_SEP
           // to construct heap model)
           postProcessModel(d_curr_model);