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

Method mul_no_soverflow

smt/expr.cpp:897–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

895}
896
897expr expr::mul_no_soverflow(const expr &rhs) const {
898 auto bw = bits();
899 return sext(bw) * rhs.sext(bw) == (*this * rhs).sext(bw);
900}
901
902expr expr::mul_no_uoverflow(const expr &rhs) const {
903 auto bw = bits();

Callers 2

toSMTMethod · 0.80
toSMTMethod · 0.80

Calls 1

sextMethod · 0.80

Tested by

no test coverage detected