| 340 | } |
| 341 | |
| 342 | int ModuleGraph::DisconnectModule(Module *module, gate_idx_t ogate_idx) { |
| 343 | if (ogate_idx >= module->module_builder()->NumOGates()) { |
| 344 | return -EINVAL; |
| 345 | } |
| 346 | |
| 347 | changes_made_ = true; |
| 348 | |
| 349 | module->DisconnectGate(ogate_idx); |
| 350 | |
| 351 | return 0; |
| 352 | } |
| 353 | |
| 354 | std::string ModuleGraph::GenerateDefaultName( |
| 355 | const std::string &class_name, const std::string &default_template) { |
nothing calls this directly
no test coverage detected