Resource Aware ML, Version 1.4.2, July 2018 Typechecking module ... Typecheck successful. Stack-based typecheck successful. Analyzing function apply ... Trying degree: 1 == apply : ['a closure; 'a list] -> 'a list Non-zero annotations of the argument: 12.00 <-- ([Lam1(*)], []) 3.00 <-- ([Lam3(*)], []) 3.00 <-- ([], []) Non-zero annotations of result: Simplified bound: 3.00 + 3.00*K + 12.00*N where K is the number of Lam3-nodes of the 1st component of the argument N is the number of Lam1-nodes of the 1st component of the argument -- Mode: upper Metric: steps Degree: 1 Run time: 0.02 seconds #Constraints: 59 ==== Analyzing function comp ... Trying degree: 1 == comp : ['a closure; 'a closure] -> 'a closure Non-zero annotations of the argument: 4.00 <-- ([], []) Non-zero annotations of result: Simplified bound: 4.00 -- Mode: upper Metric: steps Degree: 1 Run time: 0.01 seconds #Constraints: 7 ==== Analyzing function rev2 ... Trying degree: 1 == rev2 : 'a list -> 'a list Non-zero annotations of the argument: 28.00 <-- [::(*)] 14.00 <-- [] Non-zero annotations of result: Simplified bound: 14.00 + 28.00*M where M is the number of ::-nodes of the argument -- Mode: upper Metric: steps Degree: 1 Run time: 0.02 seconds #Constraints: 108 ====