Returns an element that is self < other
(&self, other: Rc<SymbolicValue>)
| 1032 | |
| 1033 | /// Returns an element that is self < other |
| 1034 | fn less_than(&self, other: Rc<SymbolicValue>) -> Rc<SymbolicValue> { |
| 1035 | if let (Expression::CompileTimeConstant(v1), Expression::CompileTimeConstant(v2)) = |
| 1036 | (&self.expression, &other.expression) |
| 1037 | { |
| 1038 | return Rc::new(v1.less_than(v2).into()); |
| 1039 | }; |
| 1040 | SymbolicValue::make_binary(self.clone(), other, |left, right| Expression::LessThan { |
| 1041 | left, |
| 1042 | right, |
| 1043 | }) |
| 1044 | } |
| 1045 | |
| 1046 | /// Returns an element that is "!self" where self is a bool. |
| 1047 | fn logical_not(&self) -> Rc<SymbolicValue> { |
no outgoing calls
no test coverage detected