Compare commits

...

1 Commits

Author SHA1 Message Date
Leonardo de Moura
f4e62a70aa chore: broken test after update stage0 2025-04-25 16:41:43 -07:00

View File

@@ -1,7 +1,8 @@
def computeFuel (mass : Nat) : Nat :=
let rec go acc cur :=
let n := cur / 3 - 2
if n = 0 then acc + cur else go (acc + cur) n
-- TODO: investigate why we need `_ :`
if _ : n = 0 then acc + cur else go (acc + cur) n
termination_by cur
go 0 mass - mass