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

SymFPU assertion failure during conversion from signed bit-vector. #2

Open
aniemetz opened this issue Apr 12, 2021 · 0 comments
Open

Comments

@aniemetz
Copy link

aniemetz commented Apr 12, 2021

SymFPU fails with an assertion failure when converting a bit-vector of size 113 to a floating-point of sort Float128 with to_fp.
This can be triggered both with cvc5 and Bitwuzla.

cvc5 version/commit: af398235ef9f3a90999
SymFPU version/commit: 8fbe139 on cvc5 with working copy patch

cvc5 configure.sh options
debug --symfpu

Input file:

(set-logic ALL)
(assert (= (_ +zero 15 113) ((_ to_fp 15 113) RTZ #b01111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111)))
(check-sat)

Fails at rounder.h:330:
PRECONDITION(sigWidth >= targetSignificandWidth + 2);
with sigWidth = 114 and targetSignificandWidth = 113.

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