mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
simplify last_index function
This commit is contained in:
parent
31c91e1674
commit
643512613a
1 changed files with 4 additions and 0 deletions
|
@ -1716,6 +1716,10 @@ br_status seq_rewriter::mk_seq_last_index(expr* a, expr* b, expr_ref& result) {
|
|||
result = m_autil.mk_numeral(rational(idx), true);
|
||||
return BR_DONE;
|
||||
}
|
||||
if (a == b) {
|
||||
result = m_autil.mk_int(0);
|
||||
return BR_DONE;
|
||||
}
|
||||
return BR_FAILED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue