projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4316ad4
)
Removing an always true comparison (unsigned) >= 0u. (#1582)
author
Tim King
<taking@cs.nyu.edu>
Fri, 9 Feb 2018 23:14:48 +0000
(15:14 -0800)
committer
Andrew Reynolds
<andrew.j.reynolds@gmail.com>
Fri, 9 Feb 2018 23:14:48 +0000
(17:14 -0600)
src/theory/bv/bvgauss.cpp
patch
|
blob
|
history
diff --git
a/src/theory/bv/bvgauss.cpp
b/src/theory/bv/bvgauss.cpp
index d0e2266a79f65218cc6f47c1bf982210923817e8..0e20885417b78912b6b1ed36e2ee48a0bf036279 100644
(file)
--- a/
src/theory/bv/bvgauss.cpp
+++ b/
src/theory/bv/bvgauss.cpp
@@
-88,9
+88,11
@@
unsigned BVGaussElim::getMinBwExpr(Node expr)
{
case kind::BITVECTOR_EXTRACT:
{
- unsigned w = utils::getSize(n);
+ const unsigned size = utils::getSize(n);
+ const unsigned low = utils::getExtractLow(n);
+ const unsigned child_min_width = visited[n[0]];
visited[n] = std::min(
-
w, std::max(visited[n[0]] - utils::getExtractLow(n), 0u)
);
+
size, child_min_width >= low ? child_min_width - low : 0u
);
Assert(visited[n] <= visited[n[0]]);
break;
}