bool Model::hasApproximations() const { return d_tmodel->hasApproximations(); }
-void Model::clearModelDeclarations() { d_declareSorts.clear(); }
+void Model::clearModelDeclarations()
+{
+ d_declareTerms.clear();
+ d_declareSorts.clear();
+}
void Model::addDeclarationSort(TypeNode tn) { d_declareSorts.push_back(tn); }
d_absValues.reset(nullptr);
d_asserts.reset(nullptr);
d_dumpm.reset(nullptr);
+ d_model.reset(nullptr);
d_sygusSolver.reset(nullptr);
regress0/issue5099-model-1.smt2
regress0/issue5099-model-2.smt2
regress0/issue5144-resetAssertions.smt2
+ regress0/issue5540-2-dump-model.smt2
+ regress0/issue5540-model-decls.smt2
regress0/ite.cvc
regress0/ite2.smt2
regress0/ite3.smt2
--- /dev/null
+; SCRUBBER: sed -e 's/Bool.*$/Bool/'
+; COMMAND-LINE: --dump-models
+; EXPECT: sat
+; EXPECT: (
+; EXPECT: (define-fun v16 () Bool
+; EXPECT: )
+(set-logic UFLIA)
+(declare-fun v16 () Bool)
+(check-sat)
--- /dev/null
+; SCRUBBER: sed -e 's/Bool.*$/Bool/'
+; COMMAND-LINE: --dump-models -i
+; EXPECT:sat
+; EXPECT: (
+; EXPECT: (define-fun a () Bool
+; EXPECT: )
+; EXPECT: sat
+; EXPECT: (
+; EXPECT: (define-fun a () Bool
+; EXPECT: )
+; EXPECT: sat
+; EXPECT: (
+; EXPECT: (define-fun a () Bool
+; EXPECT: )
+(set-logic ALL)
+(declare-fun a () Bool)
+(check-sat)
+(check-sat)
+(check-sat)