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

Method addInput

ir/function.cpp:287–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285}
286
287void Function::addInput(unique_ptr<Value> &&i) {
288 assert(dynamic_cast<Input *>(i.get()) ||
289 dynamic_cast<ConstantInput*>(i.get()));
290 inputs.emplace_back(std::move(i));
291}
292
293void Function::replaceInput(std::unique_ptr<Value> &&c, unsigned idx) {
294 inputs[idx] = std::move(c);

Callers 3

alive_parser.cppFile · 0.80
parseFunction · 0.80
runMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected