UniTO/tesi/traces/guards2.ml

9 lines
198 B
OCaml
Raw Normal View History

2020-06-30 19:31:56 +02:00
[@@@warning "-20"]
external observe : 'a -> 'b = "observe"
external guard : 'a -> 'b = "guard"
let ff = function
| x when guard () -> observe 1
| _ when guard 1 -> observe 2
| _ -> observe 3