summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers
diff options
context:
space:
mode:
authorAina Niemetz <aina.niemetz@gmail.com>2021-03-10 13:28:58 -0800
committerGitHub <noreply@github.com>2021-03-10 21:28:58 +0000
commitc81140e9ab5db8bc95eb15145641be9d909d0618 (patch)
tree991c424872f4b23a06b81dab9db7b8bf8aa30a7b /src/theory/quantifiers
parentbd52deb7434b1b08a122db4513972644c11fc4aa (diff)
Move ExprManager::isNAryKind to NodeManager. (#6107)
This also renames metakind::getLowerBoundForKind and metakind::getUpperBoundForKind for consistency. Note that the NodeManager class needs to be reordered to comply to our style guidelines. This PR does not reorder but introduces a public block at the top (where the rest of the public interface of the class should go eventually).
Diffstat (limited to 'src/theory/quantifiers')
-rw-r--r--src/theory/quantifiers/extended_rewrite.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/theory/quantifiers/extended_rewrite.cpp b/src/theory/quantifiers/extended_rewrite.cpp
index ee0c172af..c201c9ffc 100644
--- a/src/theory/quantifiers/extended_rewrite.cpp
+++ b/src/theory/quantifiers/extended_rewrite.cpp
@@ -184,9 +184,10 @@ Node ExtendedRewriter::extendedRewrite(Node n)
// we may have subsumed children down to one
ret = children[0];
}
- else if (isAssoc && children.size() > kind::metakind::getUpperBoundForKind(k))
+ else if (isAssoc
+ && children.size() > kind::metakind::getMaxArityForKind(k))
{
- Assert(kind::metakind::getUpperBoundForKind(k) >= 2);
+ Assert(kind::metakind::getMaxArityForKind(k) >= 2);
// kind may require binary construction
ret = children[0];
for (unsigned i = 1, nchild = children.size(); i < nchild; i++)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback