MCPcopy Create free account
hub / github.com/Rust-API/Rust-API-Bypass-Checker / offset

Method offset

src/analysis/memory/symbolic_value.rs:502–511  ·  view source on GitHub ↗

other means offset while self means base

(&self, other: Rc<SymbolicValue>)

Source from the content-addressed store, hash-verified

500
501 // other means offset while self means base
502 fn offset(&self, other: Rc<SymbolicValue>) -> Rc<SymbolicValue> {
503 if let Expression::Offset { left, right } = &self.expression {
504 left.offset(right.add(other))
505 } else {
506 SymbolicValue::make_binary(self.clone(), other, |left, right| Expression::Offset {
507 left,
508 right,
509 })
510 }
511 }
512
513 fn add(&self, other: Self) -> Self {
514 if let (Expression::CompileTimeConstant(v1), Expression::CompileTimeConstant(v2)) =

Callers 3

refine_pathsMethod · 0.80
refine_parametersMethod · 0.80
refine_withMethod · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected