Skip to content

Invalid model in string formula #5140

@jiwonparc

Description

@jiwonparc

commit: c629f09

$ z3release model_validate=true small.smt2
sat
(error "line 13 column 10: an invalid model was generated")
$ cat small.smt2
(declare-fun a () String)
(assert
 (str.in_re a
 (re.++
  (re.diff
  (re.++ (re.* (re.union (str.to_re "a") (str.to_re "b"))) (str.to_re "b"))
  (re.++
   (re.inter
   (re.++ (re.++ (re.* (re.union (str.to_re "a") (str.to_re "b"))) (str.to_re "b")) (str.to_re a))
   (re.++ (re.* (re.union (str.to_re "a") (str.to_re "b")))))
   (str.to_re "a")))
  (str.to_re (ite (str.in_re a (re.union (str.to_re "b"))) "b" "a""b")))))
(check-sat)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions