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

Method load_targets

src/analysis/pointsto/mod.rs:326–336  ·  view source on GitHub ↗

? = *rhs rhs--|load|-->?

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

Source from the content-addressed store, hash-verified

324 /// ? = *rhs
325 /// rhs--|load|-->?
326 fn load_targets(&self, rhs: &ConstraintNode<'tcx>) -> Vec<ConstraintNode<'tcx>> {
327 let rhs = self.get_node(rhs).unwrap();
328 let mut targets = Vec::new();
329 for edge in self.graph.edges_directed(rhs, Direction::Outgoing) {
330 if *edge.weight() == ConstraintEdge::Load {
331 let target = self.graph.node_weight(edge.target()).cloned().unwrap();
332 targets.push(target);
333 }
334 }
335 targets
336 }
337
338 /// ? = rhs
339 /// rhs--|copy|-->?

Callers 1

analyzeMethod · 0.80

Calls 2

get_nodeMethod · 0.80
node_weightMethod · 0.80

Tested by

no test coverage detected