diff options
author | Tim King <taking@google.com> | 2017-01-10 17:51:14 -0800 |
---|---|---|
committer | Tim King <taking@google.com> | 2017-01-10 18:21:15 -0800 |
commit | 1e7807069e07a710bafa83fc7412c3ac164249b8 (patch) | |
tree | 3301a132c17645a33abe8e5bb331fa3d721af33d /src/theory/arith/arith_rewriter.cpp | |
parent | ff498bb43b3d3785bdb894974678e65926de62ab (diff) |
Adding regression test scrubbing.
Diffstat (limited to 'src/theory/arith/arith_rewriter.cpp')
-rw-r--r-- | src/theory/arith/arith_rewriter.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/theory/arith/arith_rewriter.cpp b/src/theory/arith/arith_rewriter.cpp index e53e2ee97..642216b40 100644 --- a/src/theory/arith/arith_rewriter.cpp +++ b/src/theory/arith/arith_rewriter.cpp @@ -19,7 +19,7 @@ #include <stack> #include <vector> -#include "base/output.h" +#include "smt/logic_exception.h" #include "theory/arith/arith_rewriter.h" #include "theory/arith/arith_utilities.h" #include "theory/arith/normal_form.h" @@ -31,7 +31,8 @@ namespace arith { bool ArithRewriter::isAtom(TNode n) { Kind k = n.getKind(); - return arith::isRelationOperator(k) || k == kind::IS_INTEGER || k == kind::DIVISIBLE; + return arith::isRelationOperator(k) || k == kind::IS_INTEGER + || k == kind::DIVISIBLE; } RewriteResponse ArithRewriter::rewriteConstant(TNode t){ @@ -211,7 +212,7 @@ RewriteResponse ArithRewriter::postRewriteTerm(TNode t){ ss << "The POW(^) operator can only be used with a natural number "; ss << "in the exponent. Exception occured in:" << std::endl; ss << " " << t; - throw Exception(ss.str()); + throw LogicException(ss.str()); } default: Unreachable(); |