return;
}
- Node lemma = utils::mkOr(equalities);
- d_bv->lemma(lemma);
- Debug("bv-core") << " lemma: " << lemma << "\n";
+ if (equalities.size() == 0)
+ {
+ Debug("bv-core") << " lemma: true (no equalities)" << std::endl;
+ }
+ else
+ {
+ Node lemma = utils::mkOr(equalities);
+ d_bv->lemma(lemma);
+ Debug("bv-core") << " lemma: " << lemma << std::endl;
+ }
return;
}
Node mkAnd(const std::vector<NodeTemplate<ref_count>>& conjunctions)
{
std::set<TNode> all(conjunctions.begin(), conjunctions.end());
-
- if (all.size() == 0) { return mkTrue(); }
+ Assert(all.size() > 0);
/* All the same, or just one */
if (all.size() == 1) { return conjunctions[0]; }
Node mkOr(const std::vector<NodeTemplate<ref_count>>& nodes)
{
std::set<TNode> all(nodes.begin(), nodes.end());
-
- if (all.size() == 0) { return mkTrue(); }
+ Assert(all.size() > 0);
/* All the same, or just one */
if (all.size() == 1) { return nodes[0]; }