(* From POLAR / MORA:v = 0x = 0while true: v = Uniform(0,1) x = x + v {7/10} x - vendA flip(1/2) loop guard gives almost-sure termination while retaininginfinitely many reachable states after determinization.*)let v = 0 inlet x = 0 inlet loop = rec loop v => fun x => if flip(1/2) then let v = uniform(0, 1) in let x = if flip(0.9) then x + v else x - v in loop v x else xinloop v x