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

Method add

src/analysis/memory/symbolic_value.rs:513–523  ·  view source on GitHub ↗
(&self, other: Self)

Source from the content-addressed store, hash-verified

511 }
512
513 fn add(&self, other: Self) -> Self {
514 if let (Expression::CompileTimeConstant(v1), Expression::CompileTimeConstant(v2)) =
515 (&self.expression, &other.expression)
516 {
517 return Rc::new(v1.add(v2).into());
518 };
519 SymbolicValue::make_binary(self.clone(), other, |left, right| Expression::Add {
520 left,
521 right,
522 })
523 }
524
525 fn sub(&self, other: Self) -> Self {
526 if let (Expression::CompileTimeConstant(v1), Expression::CompileTimeConstant(v2)) =

Callers 4

refine_pathsMethod · 0.45
refine_parametersMethod · 0.45
offsetMethod · 0.45
refine_withMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected