MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / round_up_bits_no_overflow

Method round_up_bits_no_overflow

smt/expr.cpp:1154–1158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1152}
1153
1154expr expr::round_up_bits_no_overflow(const expr &nbits) const {
1155 expr power_2 = mkUInt(1, *this) << nbits.zextOrTrunc(bits());
1156 expr minus_1 = power_2 - mkUInt(1, power_2);
1157 return add_no_uoverflow(minus_1);
1158}
1159
1160#define fold_fp_neg(fn) \
1161 do { \

Callers 1

mkAxiomsMethod · 0.80

Calls 1

zextOrTruncMethod · 0.45

Tested by

no test coverage detected