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

Method canOnlyRead

ir/state.cpp:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43expr SMTMemoryAccess::canOnlyRead(AccessType ty) const {
44 AndExpr ret;
45 for (unsigned i = 0; i < AccessType::NumTypes; ++i) {
46 ret.add(canRead(AccessType(i)) == expr(i == ty));
47 }
48 return ret();
49}
50
51expr SMTMemoryAccess::canOnlyWrite(AccessType ty) const {
52 AndExpr ret;

Callers 4

overlapsMethod · 0.45
refinedByMethod · 0.45
addFnCallMethod · 0.45

Calls 3

AccessTypeEnum · 0.85
exprClass · 0.70
addMethod · 0.45

Tested by

no test coverage detected