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

Method ule

smt/expr.cpp:1722–1733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1720}
1721
1722expr expr::ule(const expr &rhs) const {
1723 if (eq(rhs) || isZero() || rhs.isAllOnes())
1724 return true;
1725 if (rhs.isZero() || isAllOnes())
1726 return *this == rhs;
1727
1728 // 00... <= ..111 -> true
1729 if (min_leading_zeros() + rhs.min_trailing_ones() >= bits())
1730 return true;
1731
1732 return binop_fold(rhs, Z3_mk_bvule);
1733}
1734
1735expr expr::ult(const expr &rhs) const {
1736 C();

Callers 15

errorFunction · 0.80
getTypeConstraintsMethod · 0.80
mayAliasMethod · 0.80
mkNonlocalValAxiomsMethod · 0.80
mkInputMethod · 0.80
mkFnRetMethod · 0.80
mkLocalDisjAddrAxiomsMethod · 0.80
loadMethod · 0.80
blockRefinedMethod · 0.80
toSMTMethod · 0.80
isConstGlobalMethod · 0.80
isWritableGlobalMethod · 0.80

Calls 3

isAllOnesMethod · 0.80
min_trailing_onesMethod · 0.80
isZeroMethod · 0.45

Tested by

no test coverage detected