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

Method process_operand

src/analysis/pointsto/mod.rs:495–506  ·  view source on GitHub ↗
(operand: &Operand<'tcx>)

Source from the content-addressed store, hash-verified

493 }
494
495 fn process_operand(operand: &Operand<'tcx>) -> Option<AccessPattern<'tcx>> {
496 match operand {
497 Operand::Move(place) | Operand::Copy(place) => {
498 Some(AccessPattern::Direct(place.as_ref()))
499 }
500 Operand::Constant(box ConstOperand {
501 span: _,
502 user_ty: _,
503 const_,
504 }) => Some(AccessPattern::Constant(*const_)),
505 Operand::RuntimeChecks(_) => None,
506 }
507 }
508
509 fn process_rvalue(rvalue: &Rvalue<'tcx>) -> Vec<Option<AccessPattern<'tcx>>> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected