From: Haniel Barbosa Date: Tue, 18 Sep 2018 13:07:21 +0000 (-0500) Subject: fix assertion error (#2487) X-Git-Tag: cvc5-1.0.0~4634 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d718da758b27c2824d2aff44faf71971133217ab;p=cvc5.git fix assertion error (#2487) --- 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;