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

Method abs

smt/expr.cpp:1139–1143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

toSMTMethod · 0.80
toSMTMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected