From 13ef9140d1ba6740ccb2c1f29bd2d243de6872c2 Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Thu, 30 Jan 2020 03:32:47 -0600 Subject: Do not debug check model for models with approximations (#3673) We don't run check-model for models with approximate values, however we were still running the internal debugCheckModel method, which leads to assertion failures. This disables this check. Fixes #3652. --- src/theory/theory_model_builder.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/theory/theory_model_builder.cpp b/src/theory/theory_model_builder.cpp index 11758f1e9..02dded8b3 100644 --- a/src/theory/theory_model_builder.cpp +++ b/src/theory/theory_model_builder.cpp @@ -1127,6 +1127,11 @@ void TheoryEngineModelBuilder::debugCheckModel(TheoryModel* tm) { #ifdef CVC4_ASSERTIONS Assert(tm->isBuilt()); + if (tm->hasApproximations()) + { + // models with approximations may fail the assertions below + return; + } eq::EqClassesIterator eqcs_i = eq::EqClassesIterator(tm->d_equalityEngine); std::map::iterator itMap; // Check that every term evaluates to its representative in the model -- cgit v1.2.3