MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / copy_targets

Method copy_targets

src/analysis/pointsto/mod.rs:340–350  ·  view source on GitHub ↗

? = rhs rhs--|copy|-->?

(&self, rhs: &ConstraintNode<'tcx>)

Source from the content-addressed store, hash-verified

338 /// ? = rhs
339 /// rhs--|copy|-->?
340 fn copy_targets(&self, rhs: &ConstraintNode<'tcx>) -> Vec<ConstraintNode<'tcx>> {
341 let rhs = self.get_node(rhs).unwrap();
342 let mut targets = Vec::new();
343 for edge in self.graph.edges_directed(rhs, Direction::Outgoing) {
344 if *edge.weight() == ConstraintEdge::Copy {
345 let target = self.graph.node_weight(edge.target()).cloned().unwrap();
346 targets.push(target);
347 }
348 }
349 targets
350 }
351
352 /// X = Arc::clone(rhs) or X = ptr::read(rhs)
353 /// ? = &X

Callers 1

analyzeMethod · 0.80

Calls 2

get_nodeMethod · 0.80
node_weightMethod · 0.80

Tested by

no test coverage detected