From: Morgan Deters Date: Wed, 13 Mar 2013 22:27:11 +0000 (-0400) Subject: Better error in case of nonlinear assertions while in linear logic X-Git-Tag: cvc5-1.0.0~7373 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a2c5102e10a8b3f1091bc50916fda5e766b5d4a;p=cvc5.git Better error in case of nonlinear assertions while in linear logic --- diff --git a/src/theory/arith/arith_rewriter.cpp b/src/theory/arith/arith_rewriter.cpp index 823b61df5..ee9ff9e1b 100644 --- a/src/theory/arith/arith_rewriter.cpp +++ b/src/theory/arith/arith_rewriter.cpp @@ -86,7 +86,7 @@ RewriteResponse ArithRewriter::preRewriteTerm(TNode t){ }else if(t.isVar()){ return rewriteVariable(t); }else{ - switch(t.getKind()){ + switch(Kind k = t.getKind()){ case kind::MINUS: return rewriteMinus(t, true); case kind::UMINUS: @@ -104,7 +104,7 @@ RewriteResponse ArithRewriter::preRewriteTerm(TNode t){ case kind::INTS_MODULUS_TOTAL: return rewriteIntsDivModTotal(t,true); default: - Unreachable(); + Unhandled(k); } } } diff --git a/src/theory/arith/normal_form.cpp b/src/theory/arith/normal_form.cpp index fd6f04ca8..9bd0a3b6c 100644 --- a/src/theory/arith/normal_form.cpp +++ b/src/theory/arith/normal_form.cpp @@ -28,8 +28,8 @@ namespace arith { bool Variable::isDivMember(Node n){ switch(n.getKind()){ case kind::DIVISION: - //case kind::INTS_DIVISION: - //case kind::INTS_MODULUS: + case kind::INTS_DIVISION: + case kind::INTS_MODULUS: case kind::DIVISION_TOTAL: case kind::INTS_DIVISION_TOTAL: case kind::INTS_MODULUS_TOTAL: