Skip to content

(rewriter.flat=false smt.threads=2) Invalid model on QF_S formula  #4124

@muchang

Description

@muchang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions