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);
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);
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();
+ NodeManager* nm = NodeManager::currentNM();
-#ifdef SYMFPUPROPISBOOL
- handleLemma(nm->mkNode(kind::EQUAL, node, converted));
-#else
handleLemma(
nm->mkNode(kind::EQUAL,
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());