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

Method add_alloc

src/analysis/pointsto/mod.rs:220–226  ·  view source on GitHub ↗
(&mut self, place: PlaceRef<'tcx>)

Source from the content-addressed store, hash-verified

218 }
219
220 fn add_alloc(&mut self, place: PlaceRef<'tcx>) {
221 let lhs = ConstraintNode::Place(place);
222 let rhs = ConstraintNode::Alloc(place);
223 let lhs = self.get_or_insert_node(lhs);
224 let rhs = self.get_or_insert_node(rhs);
225 self.graph.add_edge(rhs, lhs, ConstraintEdge::Address);
226 }
227
228 fn add_constant(&mut self, constant: Const<'tcx>) {
229 let lhs = ConstraintNode::Constant(constant);

Callers 1

analyzeMethod · 0.80

Calls 2

get_or_insert_nodeMethod · 0.80
add_edgeMethod · 0.80

Tested by

no test coverage detected