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

Function num_ptrs

tools/transform.cpp:784–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

782}
783
784static unsigned num_ptrs(const Type &ty) {
785 unsigned n = ty.isPtrType();
786 if (auto aty = ty.getAsAggregateType())
787 n += aty->numPointerElements();
788 return n;
789}
790
791static bool returns_local(const Value &v) {
792 // no alias fns return local block

Callers 2

returns_nonlocalFunction · 0.85

Calls 3

isPtrTypeMethod · 0.80
getAsAggregateTypeMethod · 0.80
numPointerElementsMethod · 0.80

Tested by

no test coverage detected