mirror of
https://github.com/Z3Prover/z3
synced 2026-02-23 00:37:36 +00:00
Revert "Refactor find_tactic_cmd to use std::optional<tactic_cmd*> (#8331)"
This reverts commit 7b182c9440.
This commit is contained in:
parent
3f26d42215
commit
76d46ee48a
4 changed files with 13 additions and 15 deletions
|
|
@ -654,9 +654,9 @@ static tactic * mk_skip_if_failed(cmd_context & ctx, sexpr * n) {
|
|||
|
||||
tactic * sexpr2tactic(cmd_context & ctx, sexpr * n) {
|
||||
if (n->is_symbol()) {
|
||||
auto cmd = ctx.find_tactic_cmd(n->get_symbol());
|
||||
if (cmd)
|
||||
return (*cmd)->mk(ctx.m());
|
||||
tactic_cmd * cmd = ctx.find_tactic_cmd(n->get_symbol());
|
||||
if (cmd != nullptr)
|
||||
return cmd->mk(ctx.m());
|
||||
sexpr * decl = ctx.find_user_tactic(n->get_symbol());
|
||||
if (decl != nullptr)
|
||||
return sexpr2tactic(ctx, decl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue