mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
add shorthand for translating models #1407
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
8dadd30db5
commit
f0a30ded7d
5 changed files with 48 additions and 7 deletions
|
@ -3218,9 +3218,10 @@ void theory_seq::add_indexof_axiom(expr* i) {
|
|||
literal t_eq_empty = mk_eq_empty(t);
|
||||
|
||||
// |t| = 0 => |s| = 0 or indexof(t,s,offset) = -1
|
||||
// ~contains(t,s) => indexof(t,s,offset) = -1
|
||||
// ~contains(t,s) <=> indexof(t,s,offset) = -1
|
||||
|
||||
add_axiom(cnt, i_eq_m1);
|
||||
add_axiom(~cnt, ~i_eq_m1);
|
||||
add_axiom(~t_eq_empty, s_eq_empty, i_eq_m1);
|
||||
|
||||
if (!offset || (m_autil.is_numeral(offset, r) && r.is_zero())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue