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

Fatal failure at CVC4/src/theory/fp/fp_converter.cpp:160 #3620

Closed
muchang opened this issue Jan 19, 2020 · 3 comments
Closed

Fatal failure at CVC4/src/theory/fp/fp_converter.cpp:160 #3620

muchang opened this issue Jan 19, 2020 · 3 comments
Assignees

Comments

@muchang
Copy link

muchang commented Jan 19, 2020

Hi,
For this formula

(declare-fun a () (_ FloatingPoint 2 6))
(assert (= (fp.div RTZ a a) a))
(check-sat)

cvc4 --fp-exp throws a fatal failure:

Fatal failure within static void CVC4::theory::fp::symfpuSymbolic::traits::precondition(bool) at CVC4/src/theory/fp/fp_converter.cpp:160
Check failure
 b
Aborted

cvc4-1.7 does not have this fatal failure.

OS: Ubuntu 18.04
Revision: c3bc4ac

@martin-cs
Copy link
Member

Yes, this is kind of a known limitation, hence why there is the --fp-exp flag. I want to get this fixed but having all of the weird and wacky floating-point formats working is a lot of work for not many users. Do you have a specific application for this or is this something generated by fuzzing / similar?

@muchang
Copy link
Author

muchang commented Jan 20, 2020

Hi Martin,

Thank you for your fixes and comments! The bugs were found by our fuzzer. We are developing new techniques for testing SMT solvers to help the advanced solvers, like CVC4, become better.

For such limitations of --fp-exp, it could be better at least giving a user-friendly message rather than throwing out a fatal failure.

@aniemetz aniemetz self-assigned this Feb 3, 2020
@aniemetz
Copy link
Member

aniemetz commented Feb 3, 2020

Duplicate of #3623.

@aniemetz aniemetz closed this as completed Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants