MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / unassign_nodes

Function unassign_nodes

ciphercore-base/src/inline/inline_ops.rs:325–337  ·  view source on GitHub ↗
(graph: Graph, inlining_context: &mut InliningContext)

Source from the content-addressed store, hash-verified

323}
324
325fn unassign_nodes(graph: Graph, inlining_context: &mut InliningContext) -> Result<()> {
326 for node in graph.get_nodes() {
327 // The context mapping can be missing the node if it is not reachable
328 // from the output node.
329 if inlining_context
330 .ephemeral_context_mapping
331 .contains_node(node.clone())
332 {
333 inlining_context.remove_ephemeral_node(node);
334 }
335 }
336 Ok(())
337}
338
339fn inline_call(
340 graph: Graph,

Callers 2

unassign_nodesMethod · 0.85
inline_callFunction · 0.85

Calls 4

contains_nodeMethod · 0.80
cloneMethod · 0.80
remove_ephemeral_nodeMethod · 0.80
get_nodesMethod · 0.45

Tested by

no test coverage detected