Returns an element that is "self <= other".
(&self, other: Rc<SymbolicValue>)
| 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> { |
no outgoing calls
no test coverage detected