| 1137 | } |
| 1138 | |
| 1139 | expr expr::abs() const { |
| 1140 | C(); |
| 1141 | auto s = sort(); |
| 1142 | return mkIf(sge(mkUInt(0, s)), *this, mkInt(-1, s) * *this); |
| 1143 | } |
| 1144 | |
| 1145 | expr expr::round_up(const expr &power_of_two) const { |
| 1146 | expr minus_1 = power_of_two - mkUInt(1, power_of_two); |