MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / operator*

Method operator*

smt/expr.cpp:738–745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736}
737
738expr expr::operator*(const expr &rhs) const {
739 unsigned power;
740 if (rhs.isConst() && is_power2(rhs, power))
741 return *this << mkUInt(power, sort());
742 if (isConst() && is_power2(*this, power))
743 return rhs << mkUInt(power, sort());
744 return binopc(Z3_mk_bvmul, operator*, Z3_OP_BMUL, isOne, isZero);
745}
746
747expr expr::sdiv(const expr &rhs) const {
748 if (eq(rhs))

Callers

nothing calls this directly

Calls 2

is_power2Function · 0.70
isConstMethod · 0.45

Tested by

no test coverage detected