File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed
regression/smt2_solver/fp Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ CORE
2
+ basic-fp3.smt2
3
+
4
+ ^EXIT=0$
5
+ ^SIGNAL=0$
6
+ \(define-fun a \(\) \(_ FloatingPoint 5 11\) .*\)
7
+ \(define-fun b \(\) \(_ FloatingPoint 8 24\) .*\)
8
+ \(define-fun c \(\) \(_ FloatingPoint 11 53\) .*\)
9
+ \(define-fun d \(\) \(_ FloatingPoint 15 113\) .*\)
10
+ --
Original file line number Diff line number Diff line change
1
+ (set-logic FP)
2
+
3
+ (declare-fun a () Float16)
4
+ (declare-fun b () Float32)
5
+ (declare-fun c () Float64)
6
+ (declare-fun d () Float128)
7
+
8
+ (check-sat )
9
+ (get-model )
Original file line number Diff line number Diff line change @@ -1395,6 +1395,19 @@ void smt2_parsert::setup_sorts()
1395
1395
sorts[" Int" ] = [] { return integer_typet (); };
1396
1396
sorts[" Real" ] = [] { return real_typet (); };
1397
1397
1398
+ sorts[" Float16" ] = [] {
1399
+ return ieee_float_spect::half_precision ().to_type ();
1400
+ };
1401
+ sorts[" Float32" ] = [] {
1402
+ return ieee_float_spect::single_precision ().to_type ();
1403
+ };
1404
+ sorts[" Float64" ] = [] {
1405
+ return ieee_float_spect::double_precision ().to_type ();
1406
+ };
1407
+ sorts[" Float128" ] = [] {
1408
+ return ieee_float_spect::quadruple_precision ().to_type ();
1409
+ };
1410
+
1398
1411
sorts[" BitVec" ] = [this ] {
1399
1412
if (next_token () != smt2_tokenizert::NUMERAL)
1400
1413
throw error (" expected numeral as bit-width" );
You can’t perform that action at this time.
0 commit comments