Hi,
For this case, Z3 gives an invalid model:
[925] % z3release rewriter.flat=false smt.threads=2 model_validate=true small.smt2
sat
(error "line 10 column 10: an invalid model was generated")
[926] %
[926] % cat small.smt2
(declare-fun a () String)
(declare-fun b () String)
(declare-fun c () String)
(assert
(xor (= (str.substr (str.++ a "abc" b) 5 (+ 1)) (str.++ a "a"))
(distinct (str.substr (str.++ a "abc" b) (+ (str.len a) 1) (+ (str.len b) 3))
(str.++ "bc" b))
(distinct (str.substr (str.++ a b) 0 (+ (str.len c)))
(str.substr (str.++ a b) 0 (+ (str.len a) (str.len b))))))
(check-sat)
[927] %
OS: Ubuntu 18.04
Commit: a0de244
Hi,
For this case, Z3 gives an invalid model:
OS: Ubuntu 18.04
Commit: a0de244