From d718da758b27c2824d2aff44faf71971133217ab Mon Sep 17 00:00:00 2001 From: Haniel Barbosa Date: Tue, 18 Sep 2018 08:07:21 -0500 Subject: [PATCH] fix assertion error (#2487) --- src/smt/model_core_builder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smt/model_core_builder.cpp b/src/smt/model_core_builder.cpp index dbc6c5c9e..1cbc18c1a 100644 --- a/src/smt/model_core_builder.cpp +++ b/src/smt/model_core_builder.cpp @@ -40,7 +40,7 @@ bool ModelCoreBuilder::setModelCore(const std::vector& assertions, } NodeManager* nm = NodeManager::currentNM(); - Node formula = nm->mkNode(AND, asserts); + Node formula = asserts.size() > 1? nm->mkNode(AND, asserts) : asserts[0]; std::vector vars; std::vector subs; Trace("model-core") << "Assignments: " << std::endl; -- 2.30.2