Skip to content

Assertion violation error at mpz.cpp #2761

Description

@aqjune

I see ASSERTION VIOLATION error when running with TRACE=true.

$ cat a.smt2
(declare-fun ty_%a () (_ BitVec 2))                                                                                                                                                                             
(declare-fun undef!1 () (_ FloatingPoint 8 24))                                                                                                                                                                 
(assert (and (forall ((undef!0 (_ FloatingPoint 8 24)))                                                                                                                                                         
       (let ((a!1 (fp.isNaN (fp.add roundNearestTiesToEven                                      
                                    ((_ to_fp 8 24) (fp.to_ieee_bv undef!0))                                                                                                                                    
                                    (_ +zero 8 24))))                                                                                                                                                           
             (a!2 (= (fp.add roundNearestTiesToEven                                                     
                             ((_ to_fp 8 24) (fp.to_ieee_bv undef!0))                                
                             (_ +zero 8 24))                                                                                                                                                                    
                     (fp.add roundNearestTiesToEven                                                     
                             ((_ to_fp 8 24) (fp.to_ieee_bv undef!1))
                             (_ +zero 8 24)))))
         (not (or a!1 a!2))))
     (= ty_%a #b01)))   
(check-sat)
$ z3 a.smt2 TRACE=true
ASSERTION VIOLATION
File: ../src/util/mpz.cpp
Line: 1791
numBits <= sizeof(unsigned)*8
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB
^C

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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