This function assumes that both begin + len don't overflow
| 732 | |
| 733 | // This function assumes that both begin + len don't overflow |
| 734 | void Pointer::isDisjointOrEqual(const expr &len1, const Pointer &ptr2, |
| 735 | const expr &len2) const { |
| 736 | auto off = getOffsetSizet(); |
| 737 | auto off2 = ptr2.getOffsetSizet(); |
| 738 | unsigned bits = off.bits(); |
| 739 | m.state->addUB(getBid() != ptr2.getBid() || |
| 740 | off == off2 || |
| 741 | disjoint(off, len1.zextOrTrunc(bits), off2, |
| 742 | len2.zextOrTrunc(bits))); |
| 743 | } |
| 744 | |
| 745 | expr Pointer::isBlockAlive() const { |
| 746 | // NULL block is dead |
no test coverage detected