mirror of
https://github.com/Z3Prover/z3
synced 2026-07-25 08:22:35 +00:00
Refactor find_tactic_cmd to use std::optional<tactic_cmd*> (#8331)
* Initial plan * Refactor find_tactic_cmd to use std::optional<tactic_cmd*> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
944777afc0
commit
7b182c9440
4 changed files with 15 additions and 13 deletions
|
|
@ -20,6 +20,7 @@ Notes:
|
|||
#include "cmd_context/tactic_cmds.h"
|
||||
#include "cmd_context/simplifier_cmds.h"
|
||||
#include "util/dictionary.h"
|
||||
#include <optional>
|
||||
|
||||
class tactic_manager {
|
||||
protected:
|
||||
|
|
@ -36,7 +37,7 @@ public:
|
|||
void insert(tactic_cmd * c);
|
||||
void insert(simplifier_cmd* c);
|
||||
void insert(probe_info * p);
|
||||
tactic_cmd * find_tactic_cmd(symbol const & s) const;
|
||||
std::optional<tactic_cmd*> find_tactic_cmd(symbol const & s) const;
|
||||
probe_info * find_probe(symbol const & s) const;
|
||||
simplifier_cmd* find_simplifier_cmd(symbol const& s) const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue