@@ -408,6 +408,8 @@ public void specialValueFunctionsFrom64Bits() throws SolverException, Interrupte
408
408
@ Test
409
409
public void specialValueFunctionsFrom32Bits2 () throws SolverException , InterruptedException {
410
410
requireBitvectors ();
411
+ requireFPToBitvector ();
412
+
411
413
FloatingPointFormula x = fpmgr .makeVariable ("x32" , singlePrecType );
412
414
413
415
assertThatFormula (fpmgr .isInfinity (x ))
@@ -465,6 +467,8 @@ public void specialValueFunctionsFrom32Bits2() throws SolverException, Interrupt
465
467
@ Test
466
468
public void specialValueFunctionsFrom64Bits2 () throws SolverException , InterruptedException {
467
469
requireBitvectors ();
470
+ requireFPToBitvector ();
471
+
468
472
FloatingPointFormula x = fpmgr .makeVariable ("x64" , doublePrecType );
469
473
470
474
assertThatFormula (fpmgr .isInfinity (x ))
@@ -980,10 +984,7 @@ public void fpTraversalWithRoundingMode() {
980
984
981
985
@ Test
982
986
public void fpIeeeConversionTypes () {
983
- assume ()
984
- .withMessage ("FP-to-BV conversion not available for CVC4 and CVC5" )
985
- .that (solverToUse ())
986
- .isNoneOf (Solvers .CVC4 , Solvers .CVC5 );
987
+ requireFPToBitvector ();
987
988
988
989
FloatingPointFormula var = fpmgr .makeVariable ("var" , singlePrecType );
989
990
assertThat (mgr .getFormulaType (fpmgr .toIeeeBitvector (var )))
@@ -992,10 +993,7 @@ public void fpIeeeConversionTypes() {
992
993
993
994
@ Test
994
995
public void fpIeeeConversion () throws SolverException , InterruptedException {
995
- assume ()
996
- .withMessage ("FP-to-BV conversion not available for CVC4 and CVC5" )
997
- .that (solverToUse ())
998
- .isNoneOf (Solvers .CVC4 , Solvers .CVC5 );
996
+ requireFPToBitvector ();
999
997
1000
998
FloatingPointFormula var = fpmgr .makeVariable ("var" , singlePrecType );
1001
999
assertThatFormula (
@@ -1006,10 +1004,7 @@ public void fpIeeeConversion() throws SolverException, InterruptedException {
1006
1004
1007
1005
@ Test
1008
1006
public void ieeeFpConversion () throws SolverException , InterruptedException {
1009
- assume ()
1010
- .withMessage ("FP-to-BV conversion not available for CVC4 and CVC5" )
1011
- .that (solverToUse ())
1012
- .isNoneOf (Solvers .CVC4 , Solvers .CVC5 );
1007
+ requireFPToBitvector ();
1013
1008
1014
1009
BitvectorFormula var = bvmgr .makeBitvector (32 , 123456789 );
1015
1010
assertThatFormula (
@@ -1079,10 +1074,7 @@ public void checkIeeeBv2FpConversion64() throws SolverException, InterruptedExce
1079
1074
1080
1075
@ Test
1081
1076
public void checkIeeeFp2BvConversion32 () throws SolverException , InterruptedException {
1082
- assume ()
1083
- .withMessage ("FP-to-BV conversion not available for CVC4 and CVC5" )
1084
- .that (solverToUse ())
1085
- .isNoneOf (Solvers .CVC4 , Solvers .CVC5 );
1077
+ requireFPToBitvector ();
1086
1078
1087
1079
proveForAll (
1088
1080
// makeBV(value.bits) == fromFP(makeFP(value.float))
@@ -1095,10 +1087,7 @@ public void checkIeeeFp2BvConversion32() throws SolverException, InterruptedExce
1095
1087
1096
1088
@ Test
1097
1089
public void checkIeeeFp2BvConversion64 () throws SolverException , InterruptedException {
1098
- assume ()
1099
- .withMessage ("FP-to-BV conversion not available for CVC4 and CVC5" )
1100
- .that (solverToUse ())
1101
- .isNoneOf (Solvers .CVC4 , Solvers .CVC5 );
1090
+ requireFPToBitvector ();
1102
1091
1103
1092
proveForAll (
1104
1093
// makeBV(value.bits) == fromFP(makeFP(value.float))
0 commit comments