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

Bug in z3py IndexOf #2159

Closed
LeventErkok opened this issue Feb 28, 2019 · 0 comments
Closed

Bug in z3py IndexOf #2159

LeventErkok opened this issue Feb 28, 2019 · 0 comments

Comments

@LeventErkok
Copy link

There's a bug in this line: https://github.com/Z3Prover/z3/blob/master/src/api/python/z3/z3.py#L10150

It reads:

return SeqRef(Z3_mk_seq_index(s.ctx_ref(), s.as_ast(), substr.as_ast(), offset.as_ast()), s.ctx)

Instead, it should say:

return ArithRef(Z3_mk_seq_index(s.ctx_ref(), s.as_ast(), substr.as_ast(), offset.as_ast()), s.ctx)

(First reported at stackoverflow: https://stackoverflow.com/questions/54914474/how-do-i-add-an-offset-ot-an-indexof-result-in-z3)

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