summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2017-12-10 17:01:25 -0800
committerAndres Noetzli <andres.noetzli@gmail.com>2017-12-10 17:01:25 -0800
commitedb3c9c0dc95349a3136f8b83271e1a704c5f799 (patch)
tree64290b1d9a3570aa41b058d5bc0ec3b9cea54b98
parent3b990491ae4f98de714f6d3702929c3307c2cbbe (diff)
minor fixudiv_const
-rw-r--r--src/theory/bv/theory_bv_rewrite_rules_simplification.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/theory/bv/theory_bv_rewrite_rules_simplification.h b/src/theory/bv/theory_bv_rewrite_rules_simplification.h
index 91a70c812..ee9953b23 100644
--- a/src/theory/bv/theory_bv_rewrite_rules_simplification.h
+++ b/src/theory/bv/theory_bv_rewrite_rules_simplification.h
@@ -19,7 +19,6 @@
#pragma once
-#include "options/bv_options.h"
#include "theory/bv/theory_bv_rewrite_rules.h"
#include "theory/bv/theory_bv_utils.h"
#include "theory/rewriter.h"
@@ -953,8 +952,7 @@ inline Node RewriteRule<UdivOne>::apply(TNode node) {
template <>
inline bool RewriteRule<UdivConst>::applies(TNode node) {
- return (!options::bitvectorDivByZeroConst() &&
- node.getKind() == kind::BITVECTOR_UDIV_TOTAL &&
+ return (node.getKind() == kind::BITVECTOR_UDIV_TOTAL &&
node[1].getKind() == kind::CONST_BITVECTOR &&
node[1] != utils::mkConst(utils::getSize(node[1]), 0));
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback