contract C = stateful entrypoint f(a, x:int) = if(a < x) a else x