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

Method fabs

smt/expr.cpp:1254–1260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1252}
1253
1254expr expr::fabs() const {
1255 if (isBV())
1256 return mkUInt(0, 1).concat(extract(bits() - 2, 0));
1257
1258 fold_fp_neg(fabs);
1259 return unop_fold(Z3_mk_fpa_abs);
1260}
1261
1262expr expr::fneg() const {
1263 if (isBV()) {

Callers 1

toSMTMethod · 0.80

Calls 1

concatMethod · 0.45

Tested by

no test coverage detected