Skip to content

Commit 59cafed

Browse files
committed
add assertion
1 parent 2a95c52 commit 59cafed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

smt/expr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1860,6 +1860,7 @@ expr expr::extract(unsigned high, unsigned low, unsigned depth) const {
18601860
if (isAShr(a, b)) {
18611861
uint64_t shift;
18621862
if (b.isUInt(shift) && high + shift < a.bits()) {
1863+
assert(shift < a.bits());
18631864
return a.extract(high + shift, low + shift);
18641865
}
18651866
}

0 commit comments

Comments
 (0)