mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
missing initialization of List for cmd interpreter
This commit is contained in:
parent
b68af0c1e5
commit
9dd529bb12
|
@ -231,11 +231,13 @@ extern "C" {
|
||||||
Z3_TRY;
|
Z3_TRY;
|
||||||
LOG_Z3_eval_smtlib2_string(c, str);
|
LOG_Z3_eval_smtlib2_string(c, str);
|
||||||
if (!mk_c(c)->cmd()) {
|
if (!mk_c(c)->cmd()) {
|
||||||
mk_c(c)->cmd() = alloc(cmd_context, false, &(mk_c(c)->m()));
|
auto* ctx = alloc(cmd_context, false, &(mk_c(c)->m()));
|
||||||
install_dl_cmds(*mk_c(c)->cmd());
|
mk_c(c)->cmd() = ctx;
|
||||||
install_opt_cmds(*mk_c(c)->cmd());
|
install_dl_cmds(*ctx);
|
||||||
install_smt2_extra_cmds(*mk_c(c)->cmd());
|
install_opt_cmds(*ctx);
|
||||||
mk_c(c)->cmd()->set_solver_factory(mk_smt_strategic_solver_factory());
|
install_smt2_extra_cmds(*ctx);
|
||||||
|
ctx->register_plist();
|
||||||
|
ctx->set_solver_factory(mk_smt_strategic_solver_factory());
|
||||||
}
|
}
|
||||||
scoped_ptr<cmd_context>& ctx = mk_c(c)->cmd();
|
scoped_ptr<cmd_context>& ctx = mk_c(c)->cmd();
|
||||||
std::string s(str);
|
std::string s(str);
|
||||||
|
|
Loading…
Reference in a new issue