Check if expression is nat zero (literal 0 or Nat.zero constructor).
(&self, e: &KExpr<M>)
| 914 | } else { |
| 915 | match self.try_get_const(&ctors[0])? { |
| 916 | Some(KConst::Ctor { fields, .. }) => fields == 0, |
| 917 | _ => false, |
| 918 | } |
| 919 | } |
| 920 | }, |
| 921 | _ => return Ok(false), |
| 922 | }; |
| 923 | if !is_unit { |
| 924 | return Ok(false); |
| 925 | } |
no test coverage detected