From bc3db83a6856016c9c838fbabdd29f962aa60769 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Fri, 19 Jul 2013 13:24:29 -0400 Subject: [PATCH] Regressions now checking models on unknown too. But quantifiers don't have to be simplified by check-model in that case. --- src/smt/smt_engine.cpp | 2 +- test/regress/run_regression | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index 927b8fe6f..4fa8e53d8 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -3571,7 +3571,7 @@ void SmtEngine::checkModel(bool hardFailure) { // but don't show up in our substitution map above. n = m->getValue(n); Notice() << "SmtEngine::checkModel(): -- model-substitutes to " << n << endl; - AlwaysAssert(n.isConst() || n.getKind() == kind::LAMBDA); + AlwaysAssert(!hardFailure || n.isConst() || n.getKind() == kind::LAMBDA); // The result should be == true. if(n != NodeManager::currentNM()->mkConst(true)) { diff --git a/test/regress/run_regression b/test/regress/run_regression index b740e8486..a67496514 100755 --- a/test/regress/run_regression +++ b/test/regress/run_regression @@ -213,7 +213,7 @@ else echo "$expected_output" >"$expoutfile" fi check_models=false -if grep '^sat$' "$expoutfile" &>/dev/null || grep '^invalid$' "$expoutfile" &>/dev/null; then +if grep '^sat$' "$expoutfile" &>/dev/null || grep '^invalid$' "$expoutfile" &>/dev/null || grep '^unknown$' "$expoptfile" &>/dev/null; then if ! expr "$CVC4_REGRESSION_ARGS $command_line" : '.*--check-models' &>/dev/null && ! expr "$CVC4_REGRESSION_ARGS $command_line" : '.*--no-check-models' &>/dev/null; then # later on, we'll run another test with --check-models on -- 2.30.2