summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2018-04-30 12:17:13 -0700
committerGitHub <noreply@github.com>2018-04-30 12:17:13 -0700
commit859b55b3ba0d6aa43b71e05bdc83480313c107ac (patch)
tree8420b3514f830c176cc8cf7b599e9530e46e6f7b
parenta6ef5fbd9ac3a6a247c6ecbcac2fc9e518be6f1c (diff)
Remove dead code in bv-to-bool preprocessing pass (#1828)
Fixes Coverity issue 1468436. As Coverity correctly detects, kind::BITVECTOR_XOR is dealt with in an if-statement before the switch statement on kind. This is because kind::XOR is binary while kind::BITVECTOR_XOR is n-ary (as a comment in the code correctly indicates).
-rw-r--r--src/preprocessing/passes/bv_to_bool.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/preprocessing/passes/bv_to_bool.cpp b/src/preprocessing/passes/bv_to_bool.cpp
index b01a60031..745a16979 100644
--- a/src/preprocessing/passes/bv_to_bool.cpp
+++ b/src/preprocessing/passes/bv_to_bool.cpp
@@ -214,7 +214,6 @@ Node BVToBool::convertBvTerm(TNode node)
{
case kind::BITVECTOR_OR: new_kind = kind::OR; break;
case kind::BITVECTOR_AND: new_kind = kind::AND; break;
- case kind::BITVECTOR_XOR: new_kind = kind::XOR; break;
case kind::BITVECTOR_NOT: new_kind = kind::NOT; break;
default: Unhandled();
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback