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

Method udiv

smt/expr.cpp:763–774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761}
762
763expr expr::udiv(const expr &rhs) const {
764 if (eq(rhs))
765 return mkUInt(1, sort());
766
767 if (rhs.isZero())
768 return rhs;
769
770 if (isZero() || rhs.isOne())
771 return *this;
772
773 return binop_fold(rhs, Z3_mk_bvudiv);
774}
775
776expr expr::srem(const expr &rhs) const {
777 if (eq(rhs) || isZero() || (isSMin() && rhs.isAllOnes()))

Callers 5

toSMTMethod · 0.80
hasStoredMethod · 0.80
record_storeMethod · 0.80
toSMTMethod · 0.80

Calls 2

isOneMethod · 0.80
isZeroMethod · 0.45

Tested by

no test coverage detected