Remove spurious assertion involving constants for arguments to UF from FMF (#8168)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Fri, 25 Feb 2022 16:27:16 +0000 (10:27 -0600)
committerGitHub <noreply@github.com>
Fri, 25 Feb 2022 16:27:16 +0000 (16:27 +0000)
Fixes #8163.

src/theory/quantifiers/fmf/full_model_check.cpp
test/regress/CMakeLists.txt
test/regress/regress1/fmf/issue8163-nconst-arg.smt2 [new file with mode: 0644]

index 2b0108140bf9d1cd8bad82f0d9736a2a18bd7bb1..42901b95875e47b09c48fb092fc78be8ecf4ffd5 100644 (file)
@@ -478,7 +478,6 @@ bool FullModelChecker::processBuildModel(TheoryModel* m){
           Trace("fmc-warn") << "Warning : model for " << op
                             << " has non-constant argument in model " << ri
                             << " (from " << ci << ")" << std::endl;
-          Assert(false);
         }
         entry_children.push_back(ri);
       }
index 3afba62b7f260a03cc07fa7f1393a28758e46823..64e933ff919079d2a83095d136fc6275abc24355 100644 (file)
@@ -1822,6 +1822,7 @@ set(regress_1_tests
   regress1/fmf/issue6744-2-unc-bool-var.smt2
   regress1/fmf/issue6744-3-unc-bool-var.smt2
   regress1/fmf/issue8096-non-const-rep.smt2
+  regress1/fmf/issue8163-nconst-arg.smt2
   regress1/fmf/issue916-fmf-or.smt2
   regress1/fmf/jasmin-cdt-crash.smt2
   regress1/fmf/ko-bound-set.cvc.smt2
diff --git a/test/regress/regress1/fmf/issue8163-nconst-arg.smt2 b/test/regress/regress1/fmf/issue8163-nconst-arg.smt2
new file mode 100644 (file)
index 0000000..4d8c03e
--- /dev/null
@@ -0,0 +1,5 @@
+(set-logic ALL)
+(set-info :status sat)
+(declare-fun b (Real) Real)
+(assert (forall ((_2 Bool)) (= _2 (and _2 (= 0.0 (b (exp 1.0)))))))
+(check-sat)