Skip to content

(z3str3) Soundness bug on QF_S formula with re.comp str.to_re #4410

@muchang

Description

@muchang

Hi,
For this case, Z3 gives an incorrect answer:

[573] % z3 smt.string_solver=z3str3 small.smt2 
sat
[574] % z3 small.smt2 
unsat
[575] % 
[575] % cat small.smt2 
(set-logic QF_S)
(assert (= (re.comp (str.to_re "")) (str.to_re "")))
(check-sat)
[576] %

OS: Ubuntu 18.04
Commit: f2d3160

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions