FP: Remove sections guarded with undefined macro SYMFPUPROPISBOOL. (#6786)
authorAina Niemetz <aina.niemetz@gmail.com>
Wed, 23 Jun 2021 18:19:13 +0000 (11:19 -0700)
committerGitHub <noreply@github.com>
Wed, 23 Jun 2021 18:19:13 +0000 (18:19 +0000)
src/theory/fp/fp_expand_defs.cpp
src/theory/fp/theory_fp.cpp

index 11bb05c706bfcb3b79ac4e6c4220d1d7a670a93c..a499b9666be7a2a9dcb54f66ebd4493cfc4e7df0 100644 (file)
@@ -51,11 +51,7 @@ Node FpExpandDefs::minUF(Node node)
     args[1] = t;
     fun = sm->mkDummySkolem("floatingpoint_min_zero_case",
                             nm->mkFunctionType(args,
-#ifdef SYMFPUPROPISBOOL
-                                               nm->booleanType()
-#else
                                                nm->mkBitVectorType(1U)
-#endif
                                                    ),
                             "floatingpoint_min_zero_case",
                             NodeManager::SKOLEM_EXACT_NAME);
@@ -89,11 +85,7 @@ Node FpExpandDefs::maxUF(Node node)
     args[1] = t;
     fun = sm->mkDummySkolem("floatingpoint_max_zero_case",
                             nm->mkFunctionType(args,
-#ifdef SYMFPUPROPISBOOL
-                                               nm->booleanType()
-#else
                                                nm->mkBitVectorType(1U)
-#endif
                                                    ),
                             "floatingpoint_max_zero_case",
                             NodeManager::SKOLEM_EXACT_NAME);
index 77dba0724763e53275c1a289ea73d80ee6c7c57b..1c8f10f77ae9ded6642dd90d842e40b64fc547b9 100644 (file)
@@ -525,36 +525,32 @@ void TheoryFp::convertAndEquateTerm(TNode node) {
   size_t newAdditionalAssertions = d_conv->d_additionalAssertions.size();
   Assert(oldAdditionalAssertions <= newAdditionalAssertions);
 
-  while (oldAdditionalAssertions < newAdditionalAssertions) {
+  while (oldAdditionalAssertions < newAdditionalAssertions)
+  {
     Node addA = d_conv->d_additionalAssertions[oldAdditionalAssertions];
 
     Debug("fp-convertTerm") << "TheoryFp::convertTerm(): additional assertion  "
                             << addA << std::endl;
 
-#ifdef SYMFPUPROPISBOOL
-    handleLemma(addA, false, true);
-#else
-    NodeManager *nm = NodeManager::currentNM();
+    NodeManager* nm = NodeManager::currentNM();
 
     handleLemma(
         nm->mkNode(kind::EQUAL, addA, nm->mkConst(::cvc5::BitVector(1U, 1U))),
         InferenceId::FP_EQUATE_TERM);
-#endif
 
     ++oldAdditionalAssertions;
   }
 
   // Equate the floating-point atom and the converted one.
   // Also adds the bit-vectors to the bit-vector solver.
-  if (node.getType().isBoolean()) {
-    if (converted != node) {
+  if (node.getType().isBoolean())
+  {
+    if (converted != node)
+    {
       Assert(converted.getType().isBitVector());
 
-      NodeManager *nm = NodeManager::currentNM();
+      NodeManagernm = NodeManager::currentNM();
 
-#ifdef SYMFPUPROPISBOOL
-      handleLemma(nm->mkNode(kind::EQUAL, node, converted));
-#else
       handleLemma(
           nm->mkNode(kind::EQUAL,
                      node,
@@ -562,13 +558,14 @@ void TheoryFp::convertAndEquateTerm(TNode node) {
                                 converted,
                                 nm->mkConst(::cvc5::BitVector(1U, 1U)))),
           InferenceId::FP_EQUATE_TERM);
-#endif
-
-    } else {
+    }
+    else
+    {
       Assert((node.getKind() == kind::EQUAL));
     }
-
-  } else if (node.getType().isBitVector()) {
+  }
+  else if (node.getType().isBitVector())
+  {
     if (converted != node) {
       Assert(converted.getType().isBitVector());