fix assertion error (#2487)
authorHaniel Barbosa <hanielbbarbosa@gmail.com>
Tue, 18 Sep 2018 13:07:21 +0000 (08:07 -0500)
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>
Tue, 18 Sep 2018 13:07:21 +0000 (08:07 -0500)
src/smt/model_core_builder.cpp

index dbc6c5c9ea104e3ca8897c49d06bc3ad5ac1396f..1cbc18c1a3eb4fe5a80808d8fbce6a50f6e892ff 100644 (file)
@@ -40,7 +40,7 @@ bool ModelCoreBuilder::setModelCore(const std::vector<Expr>& assertions,
   }
   NodeManager* nm = NodeManager::currentNM();
 
-  Node formula = nm->mkNode(AND, asserts);
+  Node formula = asserts.size() > 1? nm->mkNode(AND, asserts) : asserts[0];
   std::vector<Node> vars;
   std::vector<Node> subs;
   Trace("model-core") << "Assignments: " << std::endl;