Files
why3/bench/extraction/optimize_record.mlw
François Bobot 28f1ac4dd2 [Extract] Add example for extraction error
optimization for unary record as the wrong type
2022-11-24 17:14:27 +01:00

13 lines
197 B
Plaintext

module T
use int.Int
type t = { x : int }
invariant { 0 < x }
by { x = 1 }
let f b =
if b then let y = { x = 1 } in y
else { x = 2 }
end