(* From POLAROriginal file contents:x = 0xlow = 0xup = 0while true: d = Bernoulli(1/3) if d == 0: step = Normal(3/4, 1) xlow = xlow - step x = xlow else: step = Normal(3/4, 1) xup = xup + step x = xup endendA flip(1/2) loop guard gives almost-sure termination while retaininginfinitely many reachable states after determinization.*)let loop = rec loop x => fun xlow => fun xup => if flip(1/2) then let d = bernoulli(1/3) in if d < 1 then let step = gauss(3/4, 4) in let xlow = xlow - step in loop xlow xlow xup else let step = gauss(3/4, 4) in let xup = xup + step in loop xup xlow xup else xinloop 0 0 0