3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-21 02:30:23 +00:00

add virtual destructor to fix build

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-08-25 18:37:24 -07:00
parent 1894c86ee0
commit 1ffbe23ee3
3 changed files with 16 additions and 9 deletions

View file

@ -61,7 +61,8 @@ namespace sat {
class clause;
struct print_clause {
virtual void on_clause(unsigned, literal const*, status) = 0;
virtual ~print_clause() {}
virtual void on_clause(unsigned, literal const*, status) = 0;
};
class drat {
@ -150,12 +151,12 @@ namespace sat {
// support for SMT - connect Boolean variables with AST nodes
// associate AST node id with Boolean variable v
void bool_def(bool_var v, unsigned n);
// declare AST node n with 'name' and arguments arg
void def_begin(char id, unsigned n, std::string const& name);
void def_add_arg(unsigned arg);
void def_end();
void bool_def(bool_var v, unsigned n);
// ad-hoc logging until a format is developed
void log_adhoc(std::function<void(std::ostream&)>& fn);