0.06/0.34 WORST_CASE(?,O(n^1)) 0.06/0.34 0.06/0.34 Preprocessing Cost Relations 0.06/0.34 ===================================== 0.06/0.34 0.06/0.34 #### Computed strongly connected components 0.06/0.34 0. recursive : [eval_speedNestedMultiple_0/4,eval_speedNestedMultiple_1/5,eval_speedNestedMultiple_bb2_in/4,eval_speedNestedMultiple_bb3_in/4,eval_speedNestedMultiple_bb4_in/5] 0.06/0.34 1. recursive : [eval_speedNestedMultiple__critedge_in/6,eval_speedNestedMultiple_bb1_in/5,eval_speedNestedMultiple_bb2_in_loop_cont/7] 0.06/0.34 2. non_recursive : [eval_speedNestedMultiple_stop/1] 0.06/0.34 3. non_recursive : [eval_speedNestedMultiple_bb5_in/1] 0.06/0.34 4. non_recursive : [eval_speedNestedMultiple_bb1_in_loop_cont/2] 0.06/0.34 5. non_recursive : [eval_speedNestedMultiple_bb0_in/5] 0.06/0.34 6. non_recursive : [eval_speedNestedMultiple_start/5] 0.06/0.34 0.06/0.34 #### Obtained direct recursion through partial evaluation 0.06/0.34 0. SCC is partially evaluated into eval_speedNestedMultiple_bb2_in/4 0.06/0.34 1. SCC is partially evaluated into eval_speedNestedMultiple_bb1_in/5 0.06/0.34 2. SCC is completely evaluated into other SCCs 0.06/0.34 3. SCC is completely evaluated into other SCCs 0.06/0.34 4. SCC is completely evaluated into other SCCs 0.06/0.34 5. SCC is partially evaluated into eval_speedNestedMultiple_bb0_in/5 0.06/0.34 6. SCC is partially evaluated into eval_speedNestedMultiple_start/5 0.06/0.34 0.06/0.34 Control-Flow Refinement of Cost Relations 0.06/0.34 ===================================== 0.06/0.34 0.06/0.34 ### Specialization of cost equations eval_speedNestedMultiple_bb2_in/4 0.06/0.34 * CE 5 is refined into CE [8] 0.06/0.34 * CE 7 is refined into CE [9] 0.06/0.34 * CE 6 is refined into CE [10] 0.06/0.34 0.06/0.34 0.06/0.34 ### Cost equations --> "Loop" of eval_speedNestedMultiple_bb2_in/4 0.06/0.34 * CEs [10] --> Loop 8 0.06/0.34 * CEs [8] --> Loop 9 0.06/0.34 * CEs [9] --> Loop 10 0.06/0.34 0.06/0.34 ### Ranking functions of CR eval_speedNestedMultiple_bb2_in(V_m,V__1,B,C) 0.06/0.34 * RF of phase [8]: [V_m-V__1] 0.06/0.34 0.06/0.34 #### Partial ranking functions of CR eval_speedNestedMultiple_bb2_in(V_m,V__1,B,C) 0.06/0.34 * Partial RF of phase [8]: 0.06/0.34 - RF of loop [8:1]: 0.06/0.34 V_m-V__1 0.06/0.34 0.06/0.34 0.06/0.34 ### Specialization of cost equations eval_speedNestedMultiple_bb1_in/5 0.06/0.34 * CE 4 is refined into CE [11] 0.06/0.34 * CE 3 is refined into CE [12,13,14,15] 0.06/0.34 0.06/0.34 0.06/0.34 ### Cost equations --> "Loop" of eval_speedNestedMultiple_bb1_in/5 0.06/0.34 * CEs [15] --> Loop 11 0.06/0.34 * CEs [14] --> Loop 12 0.06/0.34 * CEs [13] --> Loop 13 0.06/0.34 * CEs [12] --> Loop 14 0.06/0.34 * CEs [11] --> Loop 15 0.06/0.34 0.06/0.34 ### Ranking functions of CR eval_speedNestedMultiple_bb1_in(V_n,V_m,V__01,V__0,B) 0.06/0.34 * RF of phase [11,12]: [V_n-V__0] 0.06/0.34 * RF of phase [13]: [V_n-V__0] 0.06/0.34 0.06/0.34 #### Partial ranking functions of CR eval_speedNestedMultiple_bb1_in(V_n,V_m,V__01,V__0,B) 0.06/0.34 * Partial RF of phase [11,12]: 0.06/0.34 - RF of loop [11:1]: 0.06/0.34 V_m-V__01-1 0.06/0.34 - RF of loop [11:1,12:1]: 0.06/0.34 V_n-V__0 0.06/0.34 * Partial RF of phase [13]: 0.06/0.34 - RF of loop [13:1]: 0.06/0.34 V_n-V__0 0.06/0.34 0.06/0.34 0.06/0.34 ### Specialization of cost equations eval_speedNestedMultiple_bb0_in/5 0.06/0.34 * CE 2 is refined into CE [16,17,18,19,20,21] 0.06/0.34 0.06/0.34 0.06/0.34 ### Cost equations --> "Loop" of eval_speedNestedMultiple_bb0_in/5 0.06/0.34 * CEs [17] --> Loop 16 0.06/0.34 * CEs [21] --> Loop 17 0.06/0.34 * CEs [20] --> Loop 18 0.06/0.34 * CEs [18] --> Loop 19 0.06/0.34 * CEs [19] --> Loop 20 0.06/0.34 * CEs [16] --> Loop 21 0.06/0.34 0.06/0.34 ### Ranking functions of CR eval_speedNestedMultiple_bb0_in(V_x,V_n,V_y,V_m,B) 0.06/0.34 0.06/0.34 #### Partial ranking functions of CR eval_speedNestedMultiple_bb0_in(V_x,V_n,V_y,V_m,B) 0.06/0.34 0.06/0.34 0.06/0.34 ### Specialization of cost equations eval_speedNestedMultiple_start/5 0.06/0.34 * CE 1 is refined into CE [22,23,24,25,26,27] 0.06/0.34 0.06/0.34 0.06/0.34 ### Cost equations --> "Loop" of eval_speedNestedMultiple_start/5 0.06/0.34 * CEs [27] --> Loop 22 0.06/0.34 * CEs [26] --> Loop 23 0.06/0.34 * CEs [25] --> Loop 24 0.06/0.34 * CEs [24] --> Loop 25 0.06/0.34 * CEs [23] --> Loop 26 0.06/0.34 * CEs [22] --> Loop 27 0.06/0.34 0.06/0.34 ### Ranking functions of CR eval_speedNestedMultiple_start(V_x,V_n,V_y,V_m,B) 0.06/0.34 0.06/0.34 #### Partial ranking functions of CR eval_speedNestedMultiple_start(V_x,V_n,V_y,V_m,B) 0.06/0.34 0.06/0.34 0.06/0.34 Computing Bounds 0.06/0.34 ===================================== 0.06/0.34 0.06/0.34 #### Cost of chains of eval_speedNestedMultiple_bb2_in(V_m,V__1,B,C): 0.06/0.34 * Chain [[8],10]: 1*it(8)+0 0.06/0.34 Such that:it(8) =< V_m-V__1 0.06/0.34 0.06/0.34 with precondition: [B=2,V_m=C,V_m>=V__1+1] 0.06/0.34 0.06/0.34 * Chain [[8],9]: 1*it(8)+0 0.06/0.34 Such that:it(8) =< -V__1+C 0.06/0.34 0.06/0.34 with precondition: [B=2,C>=V__1+1,V_m>=C+1] 0.06/0.34 0.06/0.34 * Chain [10]: 0 0.06/0.34 with precondition: [B=2,V__1=C,V__1>=V_m] 0.06/0.34 0.06/0.34 * Chain [9]: 0 0.06/0.34 with precondition: [B=2,V__1=C,V_m>=V__1+1] 0.06/0.34 0.06/0.34 0.06/0.34 #### Cost of chains of eval_speedNestedMultiple_bb1_in(V_n,V_m,V__01,V__0,B): 0.06/0.34 * Chain [[13],15]: 1*it(13)+0 0.06/0.34 Such that:it(13) =< V_n-V__0 0.06/0.34 0.06/0.34 with precondition: [B=3,V__01>=V_m,V_n>=V__0+1] 0.06/0.34 0.06/0.34 * Chain [[11,12],15]: 1*it(11)+1*it(12)+1*s(3)+0 0.06/0.34 Such that:aux(5) =< V_n-V__0 0.06/0.34 aux(6) =< V_m-V__01 0.06/0.34 it(11) =< aux(5) 0.06/0.34 it(12) =< aux(5) 0.06/0.34 it(11) =< aux(6) 0.06/0.34 s(3) =< aux(6) 0.06/0.34 0.06/0.34 with precondition: [B=3,V_m>=V__01+1,V_n>=V__0+1] 0.06/0.34 0.06/0.34 * Chain [[11,12],14,[13],15]: 1*it(11)+2*it(12)+2*s(3)+1 0.06/0.34 Such that:aux(7) =< V_n-V__0 0.06/0.34 aux(8) =< V_m-V__01 0.06/0.34 it(12) =< aux(7) 0.06/0.34 s(3) =< aux(8) 0.06/0.34 it(11) =< aux(7) 0.06/0.34 it(11) =< aux(8) 0.06/0.34 0.06/0.34 with precondition: [B=3,V_m>=V__01+1,V_n>=V__0+3] 0.06/0.34 0.06/0.34 * Chain [[11,12],14,15]: 1*it(11)+1*it(12)+2*s(3)+1 0.06/0.34 Such that:aux(9) =< V_n-V__0 0.06/0.34 aux(10) =< V_m-V__01 0.06/0.34 s(3) =< aux(10) 0.06/0.34 it(11) =< aux(9) 0.06/0.34 it(12) =< aux(9) 0.06/0.34 it(11) =< aux(10) 0.06/0.34 0.06/0.34 with precondition: [B=3,V_m>=V__01+1,V_n>=V__0+2] 0.06/0.34 0.06/0.34 * Chain [15]: 0 0.06/0.34 with precondition: [B=3,V__0>=V_n] 0.06/0.34 0.06/0.34 * Chain [14,[13],15]: 1*it(13)+1*s(4)+1 0.06/0.34 Such that:it(13) =< V_n-V__0 0.06/0.34 s(4) =< V_m-V__01 0.06/0.34 0.06/0.34 with precondition: [B=3,V_m>=V__01+1,V_n>=V__0+2] 0.06/0.34 0.06/0.34 * Chain [14,15]: 1*s(4)+1 0.06/0.34 Such that:s(4) =< V_m-V__01 0.06/0.34 0.06/0.34 with precondition: [B=3,V_n=V__0+1,V_m>=V__01+1] 0.06/0.34 0.06/0.34 0.06/0.34 #### Cost of chains of eval_speedNestedMultiple_bb0_in(V_x,V_n,V_y,V_m,B): 0.06/0.34 * Chain [21]: 1*s(12)+1 0.06/0.34 Such that:s(12) =< -V_y+V_m 0.06/0.34 0.06/0.34 with precondition: [V_n=V_x+1,V_m>=V_y+1] 0.06/0.34 0.06/0.34 * Chain [20]: 1*s(15)+1*s(16)+1*s(17)+0 0.06/0.34 Such that:s(13) =< -V_x+V_n 0.06/0.34 s(14) =< -V_y+V_m 0.06/0.34 s(15) =< s(13) 0.06/0.34 s(16) =< s(13) 0.06/0.34 s(15) =< s(14) 0.06/0.34 s(17) =< s(14) 0.06/0.34 0.06/0.34 with precondition: [V_n>=V_x+1,V_m>=V_y+1] 0.06/0.34 0.06/0.34 * Chain [19]: 1*s(18)+0 0.06/0.34 Such that:s(18) =< -V_x+V_n 0.06/0.34 0.06/0.34 with precondition: [V_n>=V_x+1,V_y>=V_m] 0.06/0.34 0.06/0.34 * Chain [18]: 2*s(21)+3*s(22)+1*s(23)+1 0.06/0.34 Such that:s(19) =< -V_x+V_n 0.06/0.34 s(20) =< -V_y+V_m 0.06/0.34 s(21) =< s(19) 0.06/0.34 s(22) =< s(20) 0.06/0.34 s(23) =< s(19) 0.06/0.34 s(23) =< s(20) 0.06/0.34 0.06/0.34 with precondition: [V_n>=V_x+2,V_m>=V_y+1] 0.06/0.34 0.06/0.34 * Chain [17]: 2*s(26)+2*s(27)+1*s(28)+1 0.06/0.34 Such that:s(24) =< -V_x+V_n 0.06/0.34 s(25) =< -V_y+V_m 0.06/0.34 s(26) =< s(24) 0.06/0.34 s(27) =< s(25) 0.06/0.34 s(28) =< s(24) 0.06/0.34 s(28) =< s(25) 0.06/0.34 0.06/0.34 with precondition: [V_n>=V_x+3,V_m>=V_y+1] 0.06/0.34 0.06/0.34 * Chain [16]: 0 0.06/0.34 with precondition: [V_x>=V_n] 0.06/0.34 0.06/0.34 0.06/0.34 #### Cost of chains of eval_speedNestedMultiple_start(V_x,V_n,V_y,V_m,B): 0.06/0.34 * Chain [27]: 1*s(29)+1 0.06/0.34 Such that:s(29) =< -V_y+V_m 0.06/0.34 0.06/0.34 with precondition: [V_n=V_x+1,V_m>=V_y+1] 0.06/0.34 0.06/0.34 * Chain [26]: 1*s(32)+1*s(33)+1*s(34)+0 0.06/0.34 Such that:s(30) =< -V_x+V_n 0.06/0.34 s(31) =< -V_y+V_m 0.06/0.34 s(32) =< s(30) 0.06/0.34 s(33) =< s(30) 0.06/0.34 s(32) =< s(31) 0.06/0.34 s(34) =< s(31) 0.06/0.34 0.06/0.34 with precondition: [V_n>=V_x+1,V_m>=V_y+1] 0.06/0.34 0.06/0.34 * Chain [25]: 1*s(35)+0 0.06/0.34 Such that:s(35) =< -V_x+V_n 0.06/0.34 0.06/0.34 with precondition: [V_n>=V_x+1,V_y>=V_m] 0.06/0.34 0.06/0.34 * Chain [24]: 2*s(38)+3*s(39)+1*s(40)+1 0.06/0.34 Such that:s(36) =< -V_x+V_n 0.06/0.34 s(37) =< -V_y+V_m 0.06/0.34 s(38) =< s(36) 0.06/0.34 s(39) =< s(37) 0.06/0.34 s(40) =< s(36) 0.06/0.34 s(40) =< s(37) 0.06/0.34 0.06/0.34 with precondition: [V_n>=V_x+2,V_m>=V_y+1] 0.06/0.34 0.06/0.34 * Chain [23]: 2*s(43)+2*s(44)+1*s(45)+1 0.06/0.34 Such that:s(41) =< -V_x+V_n 0.06/0.34 s(42) =< -V_y+V_m 0.06/0.34 s(43) =< s(41) 0.06/0.34 s(44) =< s(42) 0.06/0.34 s(45) =< s(41) 0.06/0.34 s(45) =< s(42) 0.06/0.34 0.06/0.34 with precondition: [V_n>=V_x+3,V_m>=V_y+1] 0.06/0.34 0.06/0.34 * Chain [22]: 0 0.06/0.34 with precondition: [V_x>=V_n] 0.06/0.34 0.06/0.34 0.06/0.34 Closed-form bounds of eval_speedNestedMultiple_start(V_x,V_n,V_y,V_m,B): 0.06/0.34 ------------------------------------- 0.06/0.34 * Chain [27] with precondition: [V_n=V_x+1,V_m>=V_y+1] 0.06/0.34 - Upper bound: -V_y+V_m+1 0.06/0.34 - Complexity: n 0.06/0.34 * Chain [26] with precondition: [V_n>=V_x+1,V_m>=V_y+1] 0.06/0.34 - Upper bound: -2*V_x+2*V_n-V_y+V_m 0.06/0.34 - Complexity: n 0.06/0.34 * Chain [25] with precondition: [V_n>=V_x+1,V_y>=V_m] 0.06/0.34 - Upper bound: -V_x+V_n 0.06/0.34 - Complexity: n 0.06/0.34 * Chain [24] with precondition: [V_n>=V_x+2,V_m>=V_y+1] 0.06/0.34 - Upper bound: -3*V_x+3*V_n-3*V_y+3*V_m+1 0.06/0.34 - Complexity: n 0.06/0.34 * Chain [23] with precondition: [V_n>=V_x+3,V_m>=V_y+1] 0.06/0.34 - Upper bound: -3*V_x+3*V_n-2*V_y+2*V_m+1 0.06/0.34 - Complexity: n 0.06/0.34 * Chain [22] with precondition: [V_x>=V_n] 0.06/0.34 - Upper bound: 0 0.06/0.34 - Complexity: constant 0.06/0.34 0.06/0.34 ### Maximum cost of eval_speedNestedMultiple_start(V_x,V_n,V_y,V_m,B): max([nat(-V_y+V_m)+1,nat(-V_x+V_n)+1+nat(-V_y+V_m)*2+(nat(-V_y+V_m)+nat(-V_x+V_n))+nat(-V_x+V_n)]) 0.06/0.34 Asymptotic class: n 0.06/0.34 * Total analysis performed in 253 ms. 0.06/0.34 0.06/0.44 EOF