aeneas icon indicating copy to clipboard operation
aeneas copied to clipboard

Matches on integers don't work in coq

Open Nadrieril opened this issue 1 year ago • 0 comments
trafficstars

Example:

fn match_u32(x: u32) -> u32 {
    match x {
        0 => 0,
        1 => 1,
        _ => 2,
    }
}

gives:

Definition match_u32 (x : u32) : result u32 :=
  match x with | 0%u32 => Ok 0%u32 | 1%u32 => Ok 1%u32 | _ => Ok 2%u32 end
.

Nadrieril avatar May 28 '24 09:05 Nadrieril