Files
why3/bench/java/if_then_else.mlw
2024-10-02 11:28:58 +02:00

11 lines
229 B
Plaintext

module IfThenElse
use mach.java.lang.Integer
let test_ite (b0 : bool) (b1 : bool) : integer =
let x = if b0 then
if b1 then 2 else 0
else
if b1 then 3 else 1 in
2 * x
end