mirror of
https://github.com/Z3Prover/z3
synced 2026-02-05 08:46:17 +00:00
Revert "Refactor find_psort_decl() to return std::optional<psort_decl*> (#8339)"
This reverts commit 445f995c54.
This commit is contained in:
parent
0a68837ef2
commit
7a2eea6f40
4 changed files with 28 additions and 30 deletions
|
|
@ -1166,11 +1166,10 @@ func_decl * cmd_context::find_func_decl(symbol const & s, unsigned num_indices,
|
|||
throw cmd_exception("invalid function declaration reference, unknown indexed function ", s);
|
||||
}
|
||||
|
||||
std::optional<psort_decl*> cmd_context::find_psort_decl(symbol const & s) const {
|
||||
psort_decl * cmd_context::find_psort_decl(symbol const & s) const {
|
||||
psort_decl * p = nullptr;
|
||||
if (m_psort_decls.find(s, p))
|
||||
return p;
|
||||
return std::nullopt;
|
||||
m_psort_decls.find(s, p);
|
||||
return p;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue