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

Incorrect answer on QF_FP formula with fp.roundToIntegral and RoundingMode #3197

Closed
muchang opened this issue Mar 7, 2020 · 1 comment
Closed
Assignees

Comments

@muchang
Copy link

muchang commented Mar 7, 2020

Hi,
For this formula:

(declare-fun a () (_ FloatingPoint 2 10))
(declare-fun b () RoundingMode)
(assert (distinct (fp.roundToIntegral b (fp.roundToIntegral b a)) (fp.roundToIntegral b a)))
(check-sat)

Z3 incorrectly gives sat, while this formula should be unsat.

OS: Ubuntu 18.04
Commit: 7d976e4

@wintersteiger
Copy link
Contributor

Duplicate of #2894

@wintersteiger wintersteiger marked this as a duplicate of #2894 Mar 9, 2020
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