Fixes cvc5/cvc5-projects#401.
// Ensure it's a value (constant or const-ish like real algebraic
// numbers), or a lambda (for uninterpreted functions). This assertion only
// holds for models that do not have approximate values.
- Assert(m->hasApproximations() || TheoryModel::isValue(resultNode));
+ if (!TheoryModel::isValue(resultNode))
+ {
+ d_env->warning() << "Could not evaluate " << resultNode
+ << " in getValue." << std::endl;
+ }
if (d_env->getOptions().smt.abstractValues && resultNode.getType().isArray())
{
regress0/fuzz_3.smtv1.smt2
regress0/get-value-incremental.smt2
regress0/get-value-ints.smt2
+ regress0/get-value-no-evaluate.smt2
regress0/get-value-reals-ints.smt2
regress0/get-value-reals.smt2
regress0/ho/apply-collapse-sat.smt2
--- /dev/null
+; COMMAND-LINE: -q
+; SCRUBBER: sed 's/(.*//g'
+; EXPECT: sat
+(set-logic ALL)
+(set-option :global-declarations true)
+(set-option :produce-models true)
+(declare-const _x29 Real)
+(check-sat)
+(get-value ((forall ((_x56 Real)) (=> (>= _x29 _x56 _x29) (>= _x29 _x56 _x29)))))
\ No newline at end of file