From f95c6698e5d57b7142b76f29e977168b5bb5ac8c Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Sun, 30 Sep 2012 23:20:49 +0000 Subject: [PATCH] minor changes to arithmetic assertions involving nonlinearity and models (related to bug 405) --- src/theory/arith/theory_arith.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/theory/arith/theory_arith.cpp b/src/theory/arith/theory_arith.cpp index 2b0d9149d..17c2b51f3 100644 --- a/src/theory/arith/theory_arith.cpp +++ b/src/theory/arith/theory_arith.cpp @@ -1949,8 +1949,8 @@ bool TheoryArith::getDeltaAtomValue(TNode n) { DeltaRational TheoryArith::getDeltaValue(TNode n) { - Assert(d_qflraStatus != Result::SAT_UNKNOWN); - Assert(!d_nlIncomplete); + AlwaysAssert(d_qflraStatus != Result::SAT_UNKNOWN); + AlwaysAssert(!d_nlIncomplete); Debug("arith::value") << n << std::endl; switch(n.getKind()) { @@ -2007,8 +2007,8 @@ DeltaRational TheoryArith::getDeltaValue(TNode n) { } DeltaRational TheoryArith::getDeltaValueWithNonlinear(TNode n, bool& failed) { - Assert(d_qflraStatus != Result::SAT_UNKNOWN); - Assert(d_nlIncomplete); + AlwaysAssert(d_qflraStatus != Result::SAT_UNKNOWN); + AlwaysAssert(d_nlIncomplete); Debug("arith::value") << n << std::endl; @@ -2074,8 +2074,8 @@ DeltaRational TheoryArith::getDeltaValueWithNonlinear(TNode n, bool& failed) { } void TheoryArith::collectModelInfo( TheoryModel* m, bool fullModel ){ - Assert(d_qflraStatus == Result::SAT); - Assert(!d_nlIncomplete); + AlwaysAssert(d_qflraStatus == Result::SAT); + AlwaysAssert(!d_nlIncomplete, "Arithmetic solver cannot currently produce models for input with nonlinear arithmetic constraints"); Debug("arith::collectModelInfo") << "collectModelInfo() begin " << endl; -- 2.30.2