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 @@ -1405,6 +1405,19 @@ void smt2_parsert::setup_sorts()
1405
1405
sorts[" Int" ] = [] { return integer_typet (); };
1406
1406
sorts[" Real" ] = [] { return real_typet (); };
1407
1407
1408
+ sorts[" Float16" ] = [] {
1409
+ return ieee_float_spect::half_precision ().to_type ();
1410
+ };
1411
+ sorts[" Float32" ] = [] {
1412
+ return ieee_float_spect::single_precision ().to_type ();
1413
+ };
1414
+ sorts[" Float64" ] = [] {
1415
+ return ieee_float_spect::double_precision ().to_type ();
1416
+ };
1417
+ sorts[" Float128" ] = [] {
1418
+ return ieee_float_spect::quadruple_precision ().to_type ();
1419
+ };
1420
+
1408
1421
sorts[" BitVec" ] = [this ] {
1409
1422
if (next_token () != smt2_tokenizert::NUMERAL)
1410
1423
throw error (" expected numeral as bit-width" );
You can’t perform that action at this time.
0 commit comments