| 220 | } |
| 221 | |
| 222 | static SymbolVar make(const VarNodeArrayView& inp) { |
| 223 | mgb_assert(!inp.empty()); |
| 224 | return SymbolVar{inp[0]} |
| 225 | .node() |
| 226 | ->owner_graph() |
| 227 | ->insert_opr(std::make_unique<CallbackCaller>(inp)) |
| 228 | ->output(0); |
| 229 | } |
| 230 | |
| 231 | void add_callback(const ComputingGraph::Callback& cb, size_t i = 0) { |
| 232 | mgb_assert(cb && i < m_cb.size()); |
no test coverage detected