Skip to content

Commit

Permalink
add assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Oct 31, 2024
1 parent 2a95c52 commit 59cafed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions smt/expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1860,6 +1860,7 @@ expr expr::extract(unsigned high, unsigned low, unsigned depth) const {
if (isAShr(a, b)) {
uint64_t shift;
if (b.isUInt(shift) && high + shift < a.bits()) {
assert(shift < a.bits());
return a.extract(high + shift, low + shift);
}
}
Expand Down

0 comments on commit 59cafed

Please sign in to comment.