sig val main : unit -> unit exception Term of int end