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

Method copysign

smt/expr.cpp:1271–1274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1269}
1270
1271expr expr::copysign(const expr &sign) const {
1272 auto sign_bit = sign.bits() - 1;
1273 return sign.extract(sign_bit, sign_bit).concat(extract(bits() - 2, 0));
1274}
1275
1276expr expr::sqrt(const expr &rm) const {
1277 C(rm);

Callers 1

toSMTMethod · 0.80

Calls 3

bitsMethod · 0.45
concatMethod · 0.45
extractMethod · 0.45

Tested by

no test coverage detected