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

Method smul_fix_sat

smt/expr.cpp:994–1000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

992}
993
994expr expr::smul_fix_sat(const expr &a, const expr &b, const expr &c) {
995 expr r = smul_fix_helper(a, b, c);
996 auto width = a.bits();
997 return mkIf(smul_fix_no_soverflow(a, b, c),
998 smul_fix(a, b, c),
999 mkIf(r.isNegative(), IntSMin(width), IntSMax(width)));
1000}
1001
1002static expr umul_fix_helper(const expr &a, const expr &b, const expr &c) {
1003 auto width = a.bits();

Callers

nothing calls this directly

Calls 3

smul_fix_helperFunction · 0.85
isNegativeMethod · 0.80
bitsMethod · 0.45

Tested by

no test coverage detected