Skip to content

Commit dde8da8

Browse files
fix bug introduced when fixing #2721
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent 9b72b60 commit dde8da8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/smt/theory_seq.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3793,10 +3793,10 @@ void theory_seq::add_itos_axiom(expr* e) {
37933793
app_ref stoi(m_util.str.mk_stoi(e), m);
37943794
add_axiom(~ge0, mk_preferred_eq(stoi, n));
37953795

3796-
// itos(n) does not start with "0"
3797-
// at(itos(n),0) != "0"
3796+
// itos(n) does not start with "0" when n > 0
3797+
// n = 0 or at(itos(n),0) != "0"
37983798
// alternative: n >= 0 => itos(stoi(itos(n))) = itos(n)
3799-
add_axiom(~mk_eq(m_util.str.mk_at(e,zero), m_util.str.mk_string(symbol("0")), false));
3799+
add_axiom(mk_eq(n, zero, false), ~mk_eq(m_util.str.mk_at(e,zero), m_util.str.mk_string(symbol("0")), false));
38003800
// add_axiom(~ge0, mk_preferred_eq(m_util.str.mk_itos(stoi), e));
38013801
}
38023802

0 commit comments

Comments
 (0)