mirror of
https://github.com/Z3Prover/z3
synced 2025-06-20 04:43:39 +00:00
remove additional push/pop on fixedpoint
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
28773c8d5c
commit
92613f26b3
1 changed files with 0 additions and 40 deletions
|
@ -479,44 +479,6 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
\brief fixedpoint-push command.
|
|
||||||
*/
|
|
||||||
class dl_push_cmd : public cmd {
|
|
||||||
ref<dl_context> m_dl_ctx;
|
|
||||||
public:
|
|
||||||
dl_push_cmd(dl_context * dl_ctx):
|
|
||||||
cmd("fixedpoint-push"),
|
|
||||||
m_dl_ctx(dl_ctx)
|
|
||||||
{}
|
|
||||||
|
|
||||||
char const * get_usage() const override { return ""; }
|
|
||||||
char const * get_descr(cmd_context & ctx) const override { return "push the fixedpoint context"; }
|
|
||||||
unsigned get_arity() const override { return 0; }
|
|
||||||
void execute(cmd_context & ctx) override {
|
|
||||||
m_dl_ctx->push();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
\brief fixedpoint-pop command.
|
|
||||||
*/
|
|
||||||
class dl_pop_cmd : public cmd {
|
|
||||||
ref<dl_context> m_dl_ctx;
|
|
||||||
public:
|
|
||||||
dl_pop_cmd(dl_context * dl_ctx):
|
|
||||||
cmd("fixedpoint-pop"),
|
|
||||||
m_dl_ctx(dl_ctx)
|
|
||||||
{}
|
|
||||||
|
|
||||||
char const * get_usage() const override { return ""; }
|
|
||||||
char const * get_descr(cmd_context & ctx) const override { return "pop the fixedpoint context"; }
|
|
||||||
unsigned get_arity() const override { return 0; }
|
|
||||||
void execute(cmd_context & ctx) override {
|
|
||||||
m_dl_ctx->pop();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
static void install_dl_cmds_aux(cmd_context& ctx, dl_collected_cmds* collected_cmds) {
|
static void install_dl_cmds_aux(cmd_context& ctx, dl_collected_cmds* collected_cmds) {
|
||||||
dl_context * dl_ctx = alloc(dl_context, ctx, collected_cmds);
|
dl_context * dl_ctx = alloc(dl_context, ctx, collected_cmds);
|
||||||
|
@ -524,8 +486,6 @@ static void install_dl_cmds_aux(cmd_context& ctx, dl_collected_cmds* collected_c
|
||||||
ctx.insert(alloc(dl_query_cmd, dl_ctx));
|
ctx.insert(alloc(dl_query_cmd, dl_ctx));
|
||||||
ctx.insert(alloc(dl_declare_rel_cmd, dl_ctx));
|
ctx.insert(alloc(dl_declare_rel_cmd, dl_ctx));
|
||||||
ctx.insert(alloc(dl_declare_var_cmd, dl_ctx));
|
ctx.insert(alloc(dl_declare_var_cmd, dl_ctx));
|
||||||
ctx.insert(alloc(dl_push_cmd, dl_ctx));
|
|
||||||
ctx.insert(alloc(dl_pop_cmd, dl_ctx));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void install_dl_cmds(cmd_context & ctx) {
|
void install_dl_cmds(cmd_context & ctx) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue