(* Baseline: option type + pattern matching *) let safe_div a b = if b = 0 then None else Some (a / b) ;; let result = match safe_div 20 4 with | None -> 0 | Some x -> x ;; result