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

Function check_return_value

ir/instr.cpp:2548–2555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2546}
2547
2548static StateValue
2549check_return_value(State &s, StateValue &&val, const Type &ty,
2550 const FnAttrs &attrs,
2551 const vector<pair<Value*, ParamAttrs>> &args) {
2552 auto [allocsize, np] = attrs.computeAllocSize(s, args);
2553 s.addUB(std::move(np));
2554 return attrs.encode(s, std::move(val), ty, allocsize, get_align_arg(args));
2555}
2556
2557static StateValue
2558pack_return(State &s, Type &ty, StateValue &&val, const FnAttrs &attrs,

Callers 2

pack_returnFunction · 0.85
check_ret_attributesFunction · 0.85

Calls 4

get_align_argFunction · 0.85
computeAllocSizeMethod · 0.80
addUBMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected