Skip to content

Assertion violation at ../src/util/mpf.cpp Line: 1192 #3199

@muchang

Description

@muchang

Hi,
For this formula:

(declare-fun x () (_ FloatingPoint 40 60))
(declare-fun y () (_ BitVec 8))
(assert (= ((_ fp.to_ubv 8) RTP x) y #x00))
(check-sat)

Z3 throws out an assertion violation:

ASSERTION VIOLATION
File: ../src/util/mpf.cpp
Line: 1192
t.exponent() < INT_MAX
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB

Renaming the variables from x and y to a and b respectively hides the bug.

OS: Ubuntu 18.04
Commit: 7d976e4

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions