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

Function disjoint

ir/pointer.cpp:48–51  ·  view source on GitHub ↗

Assumes that both begin + len don't overflow

Source from the content-addressed store, hash-verified

46
47// Assumes that both begin + len don't overflow
48static expr disjoint(const expr &begin1, const expr &len1, const expr &begin2,
49 const expr &len2) {
50 return begin1.uge(begin2 + len2) || begin2.uge(begin1 + len1);
51}
52
53static expr attr_to_bitvec(const ParamAttrs &attrs) {
54 if (!bits_for_ptrattrs)

Callers 1

isDisjointOrEqualMethod · 0.70

Calls 1

ugeMethod · 0.80

Tested by

no test coverage detected