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

Method Pointer

ir/pointer.cpp:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69namespace IR {
70
71Pointer::Pointer(const Memory &m, const expr &bid, const expr &offset,
72 const expr &attr) : m(const_cast<Memory&>(m)),
73 p(prepend_if(expr::mkUInt(0, 1 + padding_logical()),
74 bid.concat(offset), hasLogicalBit())) {
75 if (bits_for_ptrattrs)
76 p = p.concat(attr);
77 assert(!bid.isValid() || !offset.isValid() || p.bits() == totalBits());
78}
79
80Pointer::Pointer(const Memory &m, const char *var_name,
81 const ParamAttrs &attr) : m(const_cast<Memory&>(m)) {

Callers

nothing calls this directly

Calls 11

prepend_ifFunction · 0.85
padding_logicalFunction · 0.85
hasLogicalBitFunction · 0.85
mkVarFunction · 0.85
attr_to_bitvecFunction · 0.85
concat_zerosMethod · 0.80
numLocalsMethod · 0.80
concatMethod · 0.45
isValidMethod · 0.45
bitsMethod · 0.45
zextMethod · 0.45

Tested by

no test coverage detected