liquidhaskell-0.8.10.7: tests/ple/neg/ple_sum.hs
{-@ LIQUID "--reflection" @-}
{-@ LIQUID "--ple" @-}
{-@ LIQUID "--fuel=4" @-}
module PleSum where
{-@ reflect sumTo @-}
sumTo :: Int -> Int
sumTo n = if n <= 0 then 0 else n + sumTo (n-1)
{-@ test :: () -> { sumTo 5 == 15 } @-}
test :: () -> ()
test _ = ()