diff options
Diffstat (limited to 'src/theory/arith/arith_utilities.h')
-rw-r--r-- | src/theory/arith/arith_utilities.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/theory/arith/arith_utilities.h b/src/theory/arith/arith_utilities.h index 852550917..bc35c6941 100644 --- a/src/theory/arith/arith_utilities.h +++ b/src/theory/arith/arith_utilities.h @@ -194,17 +194,18 @@ inline Kind negateKind(Kind k){ inline Node negateConjunctionAsClause(TNode conjunction){ Assert(conjunction.getKind() == kind::AND); - NodeBuilder<> orBuilder(kind::OR); + NodeBuilder orBuilder(kind::OR); for(TNode::iterator i = conjunction.begin(), end=conjunction.end(); i != end; ++i){ TNode child = *i; - Node negatedChild = NodeBuilder<1>(kind::NOT)<<(child); + Node negatedChild = NodeBuilder(kind::NOT) << (child); orBuilder << negatedChild; } return orBuilder; } -inline Node maybeUnaryConvert(NodeBuilder<>& builder){ +inline Node maybeUnaryConvert(NodeBuilder& builder) +{ Assert(builder.getKind() == kind::OR || builder.getKind() == kind::AND || builder.getKind() == kind::PLUS || builder.getKind() == kind::MULT); Assert(builder.getNumChildren() >= 1); @@ -247,7 +248,8 @@ inline Node getIdentity(Kind k){ } } -inline Node safeConstructNary(NodeBuilder<>& nb) { +inline Node safeConstructNary(NodeBuilder& nb) +{ switch (nb.getNumChildren()) { case 0: return getIdentity(nb.getKind()); |