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

Method store_sources

src/analysis/pointsto/mod.rs:312–322  ·  view source on GitHub ↗

lhs = ? ?--|store|-->lhs

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

Source from the content-addressed store, hash-verified

310 /// *lhs = ?
311 /// ?--|store|-->lhs
312 fn store_sources(&self, lhs: &ConstraintNode<'tcx>) -> Vec<ConstraintNode<'tcx>> {
313 let lhs = self.get_node(lhs).unwrap();
314 let mut sources = Vec::new();
315 for edge in self.graph.edges_directed(lhs, Direction::Incoming) {
316 if *edge.weight() == ConstraintEdge::Store {
317 let source = self.graph.node_weight(edge.source()).cloned().unwrap();
318 sources.push(source);
319 }
320 }
321 sources
322 }
323
324 /// ? = *rhs
325 /// rhs--|load|-->?

Callers 1

analyzeMethod · 0.80

Calls 2

get_nodeMethod · 0.80
node_weightMethod · 0.80

Tested by

no test coverage detected