mirror of
https://github.com/Z3Prover/z3
synced 2025-06-21 21:33:39 +00:00
initialize manager to avoid unrelated error message, issue #604
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7fb30c38ae
commit
e5ca676251
2 changed files with 5 additions and 3 deletions
|
@ -188,9 +188,8 @@ namespace datalog {
|
||||||
if (m_trail.get_num_scopes() == 0) {
|
if (m_trail.get_num_scopes() == 0) {
|
||||||
throw default_exception("there are no backtracking points to pop to");
|
throw default_exception("there are no backtracking points to pop to");
|
||||||
}
|
}
|
||||||
if(m_engine.get()){
|
if (m_engine.get() && get_engine() != DUALITY_ENGINE) {
|
||||||
if(get_engine() != DUALITY_ENGINE)
|
throw default_exception("pop operation is only supported by duality engine");
|
||||||
throw default_exception("operation is not supported by engine");
|
|
||||||
}
|
}
|
||||||
m_trail.pop_scope(1);
|
m_trail.pop_scope(1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -229,6 +229,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void prepare(cmd_context & ctx) {
|
virtual void prepare(cmd_context & ctx) {
|
||||||
|
ctx.m(); // ensure manager is initialized.
|
||||||
parametric_cmd::prepare(ctx);
|
parametric_cmd::prepare(ctx);
|
||||||
m_target = 0;
|
m_target = 0;
|
||||||
}
|
}
|
||||||
|
@ -390,6 +391,7 @@ public:
|
||||||
virtual unsigned get_arity() const { return VAR_ARITY; }
|
virtual unsigned get_arity() const { return VAR_ARITY; }
|
||||||
|
|
||||||
virtual void prepare(cmd_context & ctx) {
|
virtual void prepare(cmd_context & ctx) {
|
||||||
|
ctx.m(); // ensure manager is initialized.
|
||||||
m_arg_idx = 0;
|
m_arg_idx = 0;
|
||||||
m_query_arg_idx = 0;
|
m_query_arg_idx = 0;
|
||||||
m_domain = 0;
|
m_domain = 0;
|
||||||
|
@ -450,6 +452,7 @@ public:
|
||||||
virtual unsigned get_arity() const { return 2; }
|
virtual unsigned get_arity() const { return 2; }
|
||||||
|
|
||||||
virtual void prepare(cmd_context & ctx) {
|
virtual void prepare(cmd_context & ctx) {
|
||||||
|
ctx.m(); // ensure manager is initialized.
|
||||||
m_arg_idx = 0;
|
m_arg_idx = 0;
|
||||||
}
|
}
|
||||||
virtual cmd_arg_kind next_arg_kind(cmd_context & ctx) const {
|
virtual cmd_arg_kind next_arg_kind(cmd_context & ctx) const {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue