Skip to content
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

Soundness bug in string formula #2721

Closed
wintered opened this issue Nov 18, 2019 · 1 comment
Closed

Soundness bug in string formula #2721

wintered opened this issue Nov 18, 2019 · 1 comment

Comments

@wintered
Copy link

Hi,

The following should be unsatisfiable but Z3 gives sat on it.

(declare-fun a () String)
(declare-fun b () Int)
(assert (> b 0))
(assert (= (int.to.str b) (str.++ "0" a)))
(check-sat)

Revision: 05ad90c
OS: Ubuntu 18.04

NikolajBjorner added a commit that referenced this issue Nov 18, 2019
Signed-off-by: Nikolaj Bjorner <[email protected]>
NikolajBjorner added a commit that referenced this issue Nov 18, 2019
Signed-off-by: Nikolaj Bjorner <[email protected]>
@wintered
Copy link
Author

Z3 now hangs on this formula. Is this expected?

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

2 participants