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

Method less_or_equal

src/analysis/memory/symbolic_value.rs:1021–1031  ·  view source on GitHub ↗

Returns an element that is "self <= other".

(&self, other: Rc<SymbolicValue>)

Source from the content-addressed store, hash-verified

1019
1020 /// Returns an element that is "self <= other".
1021 fn less_or_equal(&self, other: Rc<SymbolicValue>) -> Rc<SymbolicValue> {
1022 if let (Expression::CompileTimeConstant(v1), Expression::CompileTimeConstant(v2)) =
1023 (&self.expression, &other.expression)
1024 {
1025 return Rc::new(v1.less_or_equal(v2).into());
1026 };
1027 SymbolicValue::make_binary(self.clone(), other, |left, right| Expression::LessOrEqual {
1028 left,
1029 right,
1030 })
1031 }
1032
1033 /// Returns an element that is self < other
1034 fn less_than(&self, other: Rc<SymbolicValue>) -> Rc<SymbolicValue> {

Callers 4

refine_pathsMethod · 0.45
refine_parametersMethod · 0.45
logical_notMethod · 0.45
refine_withMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected