mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
update goal2sat interface to use explicit initialization
This commit is contained in:
parent
500626e814
commit
82d9e4a4fc
5 changed files with 29 additions and 10 deletions
|
@ -18,6 +18,7 @@ Author:
|
|||
#pragma once
|
||||
|
||||
#include "ast/ast.h"
|
||||
#include "ast/ast_translation.h"
|
||||
|
||||
class dependent_expr {
|
||||
ast_manager& m;
|
||||
|
@ -32,6 +33,15 @@ public:
|
|||
m.inc_ref(fml);
|
||||
m.inc_ref(d);
|
||||
}
|
||||
|
||||
dependent_expr(ast_translation& tr, dependent_expr const& src) :
|
||||
m(tr.to()) {
|
||||
m_fml = tr(src.fml());
|
||||
m.inc_ref(m_fml);
|
||||
expr_dependency_translation dtr(tr);
|
||||
m_dep = dtr(src.dep());
|
||||
m.inc_ref(m_dep);
|
||||
}
|
||||
|
||||
dependent_expr& operator=(dependent_expr const& other) {
|
||||
SASSERT(&m == &other.m);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue