0.03/0.08 WORST_CASE(?,O(n^1)) 0.03/0.08 0.03/0.08 Preprocessing Cost Relations 0.03/0.08 ===================================== 0.03/0.08 0.03/0.08 #### Computed strongly connected components 0.03/0.08 0. recursive : [eval/3] 0.03/0.08 1. non_recursive : [exit_location/1] 0.03/0.08 2. non_recursive : [eval_loop_cont/2] 0.03/0.08 3. non_recursive : [start/3] 0.03/0.08 0.03/0.08 #### Obtained direct recursion through partial evaluation 0.03/0.08 0. SCC is partially evaluated into eval/3 0.03/0.08 1. SCC is completely evaluated into other SCCs 0.03/0.08 2. SCC is completely evaluated into other SCCs 0.03/0.08 3. SCC is partially evaluated into start/3 0.03/0.09 0.03/0.09 Control-Flow Refinement of Cost Relations 0.03/0.09 ===================================== 0.03/0.09 0.03/0.09 ### Specialization of cost equations eval/3 0.03/0.09 * CE 3 is refined into CE [4] 0.03/0.09 * CE 2 is refined into CE [5] 0.03/0.09 0.03/0.09 0.03/0.09 ### Cost equations --> "Loop" of eval/3 0.03/0.09 * CEs [5] --> Loop 4 0.03/0.09 * CEs [4] --> Loop 5 0.03/0.09 0.03/0.09 ### Ranking functions of CR eval(A,B,C) 0.03/0.09 * RF of phase [4]: [A/2-B/2] 0.03/0.09 0.03/0.09 #### Partial ranking functions of CR eval(A,B,C) 0.03/0.09 * Partial RF of phase [4]: 0.03/0.09 - RF of loop [4:1]: 0.03/0.09 A/2-B/2 0.03/0.09 0.03/0.09 0.03/0.09 ### Specialization of cost equations start/3 0.03/0.09 * CE 1 is refined into CE [6,7] 0.03/0.09 0.03/0.09 0.03/0.09 ### Cost equations --> "Loop" of start/3 0.03/0.09 * CEs [7] --> Loop 6 0.03/0.09 * CEs [6] --> Loop 7 0.03/0.09 0.03/0.09 ### Ranking functions of CR start(A,B,C) 0.03/0.09 0.03/0.09 #### Partial ranking functions of CR start(A,B,C) 0.03/0.09 0.03/0.09 0.03/0.09 Computing Bounds 0.03/0.09 ===================================== 0.03/0.09 0.03/0.09 #### Cost of chains of eval(A,B,C): 0.03/0.09 * Chain [[4],5]: 1*it(4)+0 0.03/0.09 Such that:it(4) =< A/2-B/2 0.03/0.09 0.03/0.09 with precondition: [C=2,A>=B+1] 0.03/0.09 0.03/0.09 * Chain [5]: 0 0.03/0.09 with precondition: [C=2] 0.03/0.09 0.03/0.09 0.03/0.09 #### Cost of chains of start(A,B,C): 0.03/0.09 * Chain [7]: 0 0.03/0.09 with precondition: [] 0.03/0.09 0.03/0.09 * Chain [6]: 1*s(1)+0 0.03/0.09 Such that:s(1) =< A/2-B/2 0.03/0.09 0.03/0.09 with precondition: [A>=B+1] 0.03/0.09 0.03/0.09 0.03/0.09 Closed-form bounds of start(A,B,C): 0.03/0.09 ------------------------------------- 0.03/0.09 * Chain [7] with precondition: [] 0.03/0.09 - Upper bound: 0 0.03/0.09 - Complexity: constant 0.03/0.09 * Chain [6] with precondition: [A>=B+1] 0.03/0.09 - Upper bound: A/2-B/2 0.03/0.09 - Complexity: n 0.03/0.09 0.03/0.09 ### Maximum cost of start(A,B,C): nat(A/2-B/2) 0.03/0.09 Asymptotic class: n 0.03/0.09 * Total analysis performed in 30 ms. 0.03/0.09 0.03/0.09 EOF