From 7c249b3efdeeb51fd3dfc2571bc529c55880cf5c Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Fri, 16 Oct 2020 13:32:42 -0500 Subject: Refactor SMT-level model object (#5277) This refactors the SMT-level model object so that it is a wrapper around TheoryModel instead of a base class. This inheritance was unnecessary. Moreover, it removes the virtual base models of the SMT-level model which were based on Expr. Now the interface is more minimal and in terms of Node only. This PR further simplifies a few places in the code that interface with the SmtEngine with things related to models. --- src/printer/ast/ast_printer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/printer/ast/ast_printer.cpp') diff --git a/src/printer/ast/ast_printer.cpp b/src/printer/ast/ast_printer.cpp index 062ebf037..1ed9d146c 100644 --- a/src/printer/ast/ast_printer.cpp +++ b/src/printer/ast/ast_printer.cpp @@ -150,13 +150,13 @@ void AstPrinter::toStream(std::ostream& out, const CommandStatus* s) const }/* AstPrinter::toStream(CommandStatus*) */ -void AstPrinter::toStream(std::ostream& out, const Model& m) const +void AstPrinter::toStream(std::ostream& out, const smt::Model& m) const { out << "Model()"; } void AstPrinter::toStream(std::ostream& out, - const Model& m, + const smt::Model& m, const NodeCommand* c) const { // shouldn't be called; only the non-Command* version above should be -- cgit v1.2.3