mirror of
https://github.com/Z3Prover/z3
synced 2026-01-27 20:38:42 +00:00
Refactor seq_offset_eq::find to use std::optional (#8300)
* Initial plan * Refactor seq_offset_eq::find to use std::optional 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
b778bf09f9
commit
2a5bfb818b
3 changed files with 13 additions and 8 deletions
|
|
@ -150,7 +150,8 @@ bool theory_seq::has_len_offset(expr_ref_vector const& ls, expr_ref_vector const
|
|||
return true;
|
||||
}
|
||||
|
||||
if (m_offset_eq.find(root1, root2, offset)) {
|
||||
if (auto opt_offset = m_offset_eq.find(root1, root2)) {
|
||||
offset = *opt_offset;
|
||||
TRACE(seq, tout << "(" << mk_pp(l_fst, m) << ", " << mk_pp(r_fst,m) << " " << offset << ")\n";);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue