Returns an element that is "self != other".
(&self, other: Rc<SymbolicValue>)
| 1097 | |
| 1098 | /// Returns an element that is "self != other". |
| 1099 | fn not_equals(&self, other: Rc<SymbolicValue>) -> Rc<SymbolicValue> { |
| 1100 | if let (Expression::CompileTimeConstant(v1), Expression::CompileTimeConstant(v2)) = |
| 1101 | (&self.expression, &other.expression) |
| 1102 | { |
| 1103 | return Rc::new(v1.not_equals(v2).into()); |
| 1104 | }; |
| 1105 | SymbolicValue::make_binary(self.clone(), other, |left, right| Expression::Ne { |
| 1106 | left, |
| 1107 | right, |
| 1108 | }) |
| 1109 | } |
| 1110 | |
| 1111 | /// Returns the product of two symbolic values. |
| 1112 | fn mul(&self, other: Rc<SymbolicValue>) -> Rc<SymbolicValue> { |
no outgoing calls
no test coverage detected