[proof-new] Fix arity check when building equality engine proofs (#6133)
authorHaniel Barbosa <hanielbbarbosa@gmail.com>
Fri, 12 Mar 2021 18:03:41 +0000 (15:03 -0300)
committerGitHub <noreply@github.com>
Fri, 12 Mar 2021 18:03:41 +0000 (18:03 +0000)
Broken in dc679ed.

src/theory/uf/equality_engine.cpp

index 1c5419977d34d70725b72cec4f9884fff2af4cd2..8b44cc4d99130f803cb3ee2ca4a84c1b223085a0 100644 (file)
@@ -1076,7 +1076,7 @@ void EqualityEngine::buildEqConclusion(EqualityNodeId id1,
         << id2 << "} " << d_nodes[id2] << "\n";
     // if has at least as many children as the minimal
     // number of children of the n-ary kind, build the node
-    if (numChildren >= kind::metakind::getMaxArityForKind(k1))
+    if (numChildren >= kind::metakind::getMinArityForKind(k1))
     {
       std::vector<Node> children;
       for (unsigned j = 0; j < numChildren; ++j)