mirror of
https://github.com/Z3Prover/z3
synced 2026-01-28 21:08:43 +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
|
|
@ -57,10 +57,11 @@ void tactic_manager::insert(probe_info * p) {
|
|||
m_probes.push_back(p);
|
||||
}
|
||||
|
||||
tactic_cmd * tactic_manager::find_tactic_cmd(symbol const & s) const {
|
||||
std::optional<tactic_cmd*> tactic_manager::find_tactic_cmd(symbol const & s) const {
|
||||
tactic_cmd * c = nullptr;
|
||||
m_name2tactic.find(s, c);
|
||||
return c;
|
||||
if (m_name2tactic.find(s, c))
|
||||
return c;
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
simplifier_cmd * tactic_manager::find_simplifier_cmd(symbol const & s) const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue