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

Function prepend_if

ir/pointer.cpp:39–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39static expr prepend_if(const expr &pre, expr &&e, bool prepend) {
40 return prepend ? pre.concat(e) : std::move(e);
41}
42
43static string local_name(const State *s, const char *name) {
44 return string(name) + (s->isSource() ? "_src" : "_tgt");

Callers 1

PointerMethod · 0.85

Calls 1

concatMethod · 0.45

Tested by

no test coverage detected