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

Method mul_no_uoverflow

smt/expr.cpp:902–905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

900}
901
902expr expr::mul_no_uoverflow(const expr &rhs) const {
903 auto bw = bits();
904 return (zext(bw) * rhs.zext(bw)).extract(2*bw - 1, bw) == 0;
905}
906
907expr expr::sdiv_exact(const expr &rhs) const {
908 return sdiv(rhs) * rhs == *this;

Callers 3

computeAllocSizeMethod · 0.80
toSMTMethod · 0.80
toSMTMethod · 0.80

Calls 2

extractMethod · 0.45
zextMethod · 0.45

Tested by

no test coverage detected