let
of_int x =
if
(0 <= x)
&&
(x <= 65535)
then
Ok
x
else
error
"flag out of range"
x sexp_of_int