Skip to content

unsatisfiable string formula reported satisfiable #2531

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wintered opened this issue Sep 2, 2019 · 0 comments
Closed

unsatisfiable string formula reported satisfiable #2531

wintered opened this issue Sep 2, 2019 · 0 comments

Comments

@wintered
Copy link

wintered commented Sep 2, 2019

Hi,
the following unsatisfiable formula is reported satisfiable by z3

(declare-fun x () String)
(declare-fun y () String)
(declare-fun z () String)
(assert
  (not
    (=
      (str.contains y (str.replace "A" (str.replace (str.++ x z) x "") z))
      (str.contains y "A")
    )
  )
)
(check-sat)     

We have double-checked the formula with CVC4 which gives unsat. We fed the model to the formula which is unsat as well.

Revision: 000e485
OS: Ubuntu 18.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant