Strip Mdata wrappers from an expression.
(e: &Expr)
| 335 | |
| 336 | /// Strip Mdata wrappers from an expression. |
| 337 | pub fn strip_mdata(e: &Expr) -> &Expr { |
| 338 | let mut cur = e; |
| 339 | while let ExprData::Mdata(_, inner, _) = cur.as_data() { |
| 340 | cur = inner; |
| 341 | } |
| 342 | cur |
| 343 | } |
| 344 | |
| 345 | pub fn check_nat_eq(a: &Nat, b: &Nat, field: &str) -> Result<(), String> { |
| 346 | let av = a.to_u64().unwrap_or(u64::MAX); |
no test coverage detected