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

Unreduced value in model for seq.nth_u #2640

Closed
bts opened this issue Oct 16, 2019 · 1 comment
Closed

Unreduced value in model for seq.nth_u #2640

bts opened this issue Oct 16, 2019 · 1 comment

Comments

@bts
Copy link

bts commented Oct 16, 2019

This seems to be related to #2316.

For the following input:

(declare-fun x () Int)
(define-fun y () Int (seq.nth (seq.unit 0) x))
(assert (> x 0))
(check-sat)
(get-value (y))

Z3 returns with:

$ z3 a.smt2 
sat
((y (seq.nth_u (seq.unit 0) 1)))

where I would have expected Z3 to pick an arbitrary (reduced) value for y.

@bts
Copy link
Author

bts commented Oct 17, 2019

Thanks @NikolajBjorner!

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