other means offset while self means base
(&self, other: Rc<SymbolicValue>)
| 500 | |
| 501 | // other means offset while self means base |
| 502 | fn offset(&self, other: Rc<SymbolicValue>) -> Rc<SymbolicValue> { |
| 503 | if let Expression::Offset { left, right } = &self.expression { |
| 504 | left.offset(right.add(other)) |
| 505 | } else { |
| 506 | SymbolicValue::make_binary(self.clone(), other, |left, right| Expression::Offset { |
| 507 | left, |
| 508 | right, |
| 509 | }) |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | fn add(&self, other: Self) -> Self { |
| 514 | if let (Expression::CompileTimeConstant(v1), Expression::CompileTimeConstant(v2)) = |
no test coverage detected