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

Function div_ub

ir/constant.cpp:134–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134static void div_ub(const expr &a, const expr &b, State &s, bool sign) {
135 s.addPre(b != 0);
136 if (sign)
137 s.addPre(a != expr::IntSMin(b.bits()) || b != -1);
138}
139
140StateValue ConstantBinOp::toSMT(State &s) const {
141 auto &[a, ap] = s[lhs];

Callers 1

toSMTMethod · 0.70

Calls 2

addPreMethod · 0.80
bitsMethod · 0.45

Tested by

no test coverage detected