0.04/0.33 WORST_CASE(?,O(n^1)) 0.04/0.33 0.04/0.33 Preprocessing Cost Relations 0.04/0.33 ===================================== 0.04/0.33 0.04/0.33 #### Computed strongly connected components 0.04/0.33 0. recursive : [eval_start_bb3_in/4,eval_start_bb4_in/4] 0.04/0.33 1. recursive : [eval_start_bb1_in/8,eval_start_bb2_in/8,eval_start_bb3_in_loop_cont/9] 0.04/0.33 2. non_recursive : [eval_start_stop/6] 0.04/0.33 3. non_recursive : [eval_start_bb5_in/6] 0.04/0.33 4. non_recursive : [exit_location/1] 0.04/0.33 5. non_recursive : [eval_start_bb1_in_loop_cont/7] 0.04/0.33 6. non_recursive : [eval_start_11/6] 0.04/0.33 7. non_recursive : [eval_start_10/6] 0.04/0.33 8. non_recursive : [eval_start_bb6_in/6] 0.04/0.33 9. non_recursive : [eval_start_2/6] 0.04/0.33 10. non_recursive : [eval_start_1/6] 0.04/0.33 11. non_recursive : [eval_start_0/6] 0.04/0.33 12. non_recursive : [eval_start_bb0_in/6] 0.04/0.33 13. non_recursive : [eval_start_start/6] 0.04/0.33 0.04/0.33 #### Obtained direct recursion through partial evaluation 0.04/0.33 0. SCC is partially evaluated into eval_start_bb3_in/4 0.04/0.33 1. SCC is partially evaluated into eval_start_bb1_in/8 0.04/0.33 2. SCC is completely evaluated into other SCCs 0.04/0.33 3. SCC is completely evaluated into other SCCs 0.04/0.33 4. SCC is completely evaluated into other SCCs 0.04/0.33 5. SCC is partially evaluated into eval_start_bb1_in_loop_cont/7 0.04/0.33 6. SCC is completely evaluated into other SCCs 0.04/0.33 7. SCC is completely evaluated into other SCCs 0.04/0.33 8. SCC is completely evaluated into other SCCs 0.04/0.33 9. SCC is partially evaluated into eval_start_2/6 0.04/0.33 10. SCC is completely evaluated into other SCCs 0.04/0.33 11. SCC is completely evaluated into other SCCs 0.04/0.33 12. SCC is completely evaluated into other SCCs 0.04/0.33 13. SCC is partially evaluated into eval_start_start/6 0.04/0.33 0.04/0.33 Control-Flow Refinement of Cost Relations 0.04/0.33 ===================================== 0.04/0.33 0.04/0.33 ### Specialization of cost equations eval_start_bb3_in/4 0.04/0.33 * CE 12 is refined into CE [13] 0.04/0.33 * CE 11 is refined into CE [14] 0.04/0.33 * CE 10 is refined into CE [15] 0.04/0.33 0.04/0.33 0.04/0.33 ### Cost equations --> "Loop" of eval_start_bb3_in/4 0.04/0.33 * CEs [15] --> Loop 13 0.04/0.33 * CEs [13] --> Loop 14 0.04/0.33 * CEs [14] --> Loop 15 0.04/0.33 0.04/0.33 ### Ranking functions of CR eval_start_bb3_in(V__0,V_z_0,B,C) 0.04/0.33 * RF of phase [13]: [V_z_0] 0.04/0.33 0.04/0.33 #### Partial ranking functions of CR eval_start_bb3_in(V__0,V_z_0,B,C) 0.04/0.33 * Partial RF of phase [13]: 0.04/0.33 - RF of loop [13:1]: 0.04/0.33 V_z_0 0.04/0.33 0.04/0.33 0.04/0.33 ### Specialization of cost equations eval_start_bb1_in/8 0.04/0.33 * CE 6 is refined into CE [16] 0.04/0.33 * CE 4 is refined into CE [17,18] 0.04/0.33 * CE 7 is refined into CE [19] 0.04/0.33 * CE 5 is refined into CE [20] 0.04/0.33 0.04/0.33 0.04/0.33 ### Cost equations --> "Loop" of eval_start_bb1_in/8 0.04/0.33 * CEs [20] --> Loop 16 0.04/0.33 * CEs [16] --> Loop 17 0.04/0.33 * CEs [17,18] --> Loop 18 0.04/0.33 * CEs [19] --> Loop 19 0.04/0.33 0.04/0.33 ### Ranking functions of CR eval_start_bb1_in(V__0,V_3,V_y,V_z_0,B,C,D,E) 0.04/0.33 * RF of phase [16]: [V__0,V__0-V_y] 0.04/0.33 0.04/0.33 #### Partial ranking functions of CR eval_start_bb1_in(V__0,V_3,V_y,V_z_0,B,C,D,E) 0.04/0.33 * Partial RF of phase [16]: 0.04/0.33 - RF of loop [16:1]: 0.04/0.33 V__0 0.04/0.33 V__0-V_y 0.04/0.33 0.04/0.33 0.04/0.33 ### Specialization of cost equations eval_start_bb1_in_loop_cont/7 0.04/0.33 * CE 8 is refined into CE [21] 0.04/0.33 * CE 9 is refined into CE [22] 0.04/0.33 0.04/0.33 0.04/0.33 ### Cost equations --> "Loop" of eval_start_bb1_in_loop_cont/7 0.04/0.33 * CEs [21] --> Loop 20 0.04/0.33 * CEs [22] --> Loop 21 0.04/0.33 0.04/0.33 ### Ranking functions of CR eval_start_bb1_in_loop_cont(A,B,C,D,E,F,G) 0.04/0.33 0.04/0.33 #### Partial ranking functions of CR eval_start_bb1_in_loop_cont(A,B,C,D,E,F,G) 0.04/0.33 0.04/0.33 0.04/0.33 ### Specialization of cost equations eval_start_2/6 0.04/0.33 * CE 3 is refined into CE [23,24,25,26,27] 0.04/0.33 * CE 2 is refined into CE [28] 0.04/0.33 0.04/0.33 0.04/0.33 ### Cost equations --> "Loop" of eval_start_2/6 0.04/0.33 * CEs [25,26] --> Loop 22 0.04/0.33 * CEs [27] --> Loop 23 0.04/0.33 * CEs [24] --> Loop 24 0.04/0.33 * CEs [23] --> Loop 25 0.04/0.33 * CEs [28] --> Loop 26 0.04/0.33 0.04/0.33 ### Ranking functions of CR eval_start_2(V__0,V_3,V_x,V_y,V_z_0,B) 0.04/0.33 0.04/0.33 #### Partial ranking functions of CR eval_start_2(V__0,V_3,V_x,V_y,V_z_0,B) 0.04/0.33 0.04/0.33 0.04/0.33 ### Specialization of cost equations eval_start_start/6 0.04/0.33 * CE 1 is refined into CE [29,30,31,32,33] 0.04/0.33 0.04/0.33 0.04/0.33 ### Cost equations --> "Loop" of eval_start_start/6 0.04/0.33 * CEs [33] --> Loop 27 0.04/0.33 * CEs [32] --> Loop 28 0.04/0.33 * CEs [31] --> Loop 29 0.04/0.33 * CEs [30] --> Loop 30 0.04/0.33 * CEs [29] --> Loop 31 0.04/0.33 0.04/0.33 ### Ranking functions of CR eval_start_start(V__0,V_3,V_x,V_y,V_z_0,B) 0.04/0.33 0.04/0.33 #### Partial ranking functions of CR eval_start_start(V__0,V_3,V_x,V_y,V_z_0,B) 0.04/0.33 0.04/0.33 0.04/0.33 Computing Bounds 0.04/0.33 ===================================== 0.04/0.33 0.04/0.33 #### Cost of chains of eval_start_bb3_in(V__0,V_z_0,B,C): 0.04/0.33 * Chain [[13],15]: 1*it(13)+0 0.04/0.33 Such that:it(13) =< V_z_0 0.04/0.33 0.04/0.34 with precondition: [B=2,C=0,V__0>=1,V_z_0>=1,2*V__0+98>=V_z_0] 0.04/0.34 0.04/0.34 * Chain [[13],14]: 1*it(13)+0 0.04/0.34 Such that:it(13) =< V_z_0 0.04/0.34 0.04/0.34 with precondition: [B=3,V__0>=1,V_z_0>=1,2*V__0+98>=V_z_0] 0.04/0.34 0.04/0.34 * Chain [14]: 0 0.04/0.34 with precondition: [B=3,V__0>=1,2*V__0+98>=V_z_0] 0.04/0.34 0.04/0.34 0.04/0.34 #### Cost of chains of eval_start_bb1_in(V__0,V_3,V_y,V_z_0,B,C,D,E): 0.04/0.34 * Chain [[16],19]: 1*it(16)+1*s(3)+0 0.04/0.34 Such that:it(16) =< V__0-V_y 0.04/0.34 s(3) =< 100*V__0-98*V_y 0.04/0.34 0.04/0.34 with precondition: [B=3,V_y>=0,V__0>=V_y+1] 0.04/0.34 0.04/0.34 * Chain [[16],18]: 1*it(16)+1*s(3)+1*s(4)+0 0.04/0.34 Such that:it(16) =< V__0-V_y 0.04/0.34 s(3) =< 100*V__0-100*V_y 0.04/0.34 s(4) =< 2*V_y+100 0.04/0.34 0.04/0.34 with precondition: [B=3,V_y>=0,V__0>=2*V_y+2] 0.04/0.34 0.04/0.34 * Chain [[16],17]: 1*it(16)+1*s(3)+0 0.04/0.34 Such that:it(16) =< V__0-V_y 0.04/0.34 s(3) =< 100*V__0-98*V_y 0.04/0.34 s(3) =< 100*V__0-100*D 0.04/0.34 0.04/0.34 with precondition: [B=4,E=0,C=D,C>=0,V_y>=C,V__0>=V_y+C+1] 0.04/0.34 0.04/0.34 * Chain [19]: 0 0.04/0.34 with precondition: [B=3,V_y>=0] 0.04/0.34 0.04/0.34 * Chain [18]: 1*s(4)+0 0.04/0.34 Such that:s(4) =< 2*V_y+100 0.04/0.34 0.04/0.34 with precondition: [B=3,V_y>=0,V__0>=V_y+1] 0.04/0.34 0.04/0.34 * Chain [17]: 0 0.04/0.34 with precondition: [B=4,D=V_3,E=V_z_0,V__0=C,V_y>=0,V_y>=V__0] 0.04/0.34 0.04/0.34 0.04/0.34 #### Cost of chains of eval_start_bb1_in_loop_cont(A,B,C,D,E,F,G): 0.04/0.34 * Chain [21]: 0 0.04/0.34 with precondition: [A=3,E>=0] 0.04/0.34 0.04/0.34 * Chain [20]: 0 0.04/0.34 with precondition: [A=4,E>=0] 0.04/0.34 0.04/0.34 0.04/0.34 #### Cost of chains of eval_start_2(V__0,V_3,V_x,V_y,V_z_0,B): 0.04/0.34 * Chain [26]: 0 0.04/0.34 with precondition: [0>=V_y+1] 0.04/0.34 0.04/0.34 * Chain [25]: 0 0.04/0.34 with precondition: [V_y>=0] 0.04/0.34 0.04/0.34 * Chain [24]: 1*s(8)+1*s(9)+1*s(10)+0 0.04/0.34 Such that:s(8) =< V_x-V_y 0.04/0.34 s(9) =< 100*V_x-100*V_y 0.04/0.34 s(10) =< 2*V_y+100 0.04/0.34 0.04/0.34 with precondition: [V_y>=0,V_x>=2*V_y+2] 0.04/0.34 0.04/0.34 * Chain [23]: 0 0.04/0.34 with precondition: [V_y>=0,V_y>=V_x] 0.04/0.34 0.04/0.34 * Chain [22]: 2*s(11)+2*s(12)+1*s(13)+0 0.04/0.34 Such that:s(13) =< 2*V_y+100 0.04/0.34 aux(1) =< V_x-V_y 0.04/0.34 aux(2) =< 100*V_x-98*V_y 0.04/0.34 s(11) =< aux(1) 0.04/0.34 s(12) =< aux(2) 0.04/0.34 0.04/0.34 with precondition: [V_y>=0,V_x>=V_y+1] 0.04/0.34 0.04/0.34 0.04/0.34 #### Cost of chains of eval_start_start(V__0,V_3,V_x,V_y,V_z_0,B): 0.04/0.34 * Chain [31]: 0 0.04/0.34 with precondition: [0>=V_y+1] 0.04/0.34 0.04/0.34 * Chain [30]: 0 0.04/0.34 with precondition: [V_y>=0] 0.04/0.34 0.04/0.34 * Chain [29]: 1*s(16)+1*s(17)+1*s(18)+0 0.04/0.34 Such that:s(16) =< V_x-V_y 0.04/0.34 s(17) =< 100*V_x-100*V_y 0.04/0.34 s(18) =< 2*V_y+100 0.04/0.34 0.04/0.34 with precondition: [V_y>=0,V_x>=2*V_y+2] 0.04/0.34 0.04/0.34 * Chain [28]: 0 0.04/0.34 with precondition: [V_y>=0,V_y>=V_x] 0.04/0.34 0.04/0.34 * Chain [27]: 1*s(19)+2*s(22)+2*s(23)+0 0.04/0.34 Such that:s(20) =< V_x-V_y 0.04/0.34 s(21) =< 100*V_x-98*V_y 0.04/0.34 s(19) =< 2*V_y+100 0.04/0.34 s(22) =< s(20) 0.04/0.34 s(23) =< s(21) 0.04/0.34 0.04/0.34 with precondition: [V_y>=0,V_x>=V_y+1] 0.04/0.34 0.04/0.34 0.04/0.34 Closed-form bounds of eval_start_start(V__0,V_3,V_x,V_y,V_z_0,B): 0.04/0.34 ------------------------------------- 0.04/0.34 * Chain [31] with precondition: [0>=V_y+1] 0.04/0.34 - Upper bound: 0 0.04/0.34 - Complexity: constant 0.04/0.34 * Chain [30] with precondition: [V_y>=0] 0.04/0.34 - Upper bound: 0 0.04/0.34 - Complexity: constant 0.04/0.34 * Chain [29] with precondition: [V_y>=0,V_x>=2*V_y+2] 0.04/0.34 - Upper bound: 101*V_x-99*V_y+100 0.04/0.34 - Complexity: n 0.04/0.34 * Chain [28] with precondition: [V_y>=0,V_y>=V_x] 0.04/0.34 - Upper bound: 0 0.04/0.34 - Complexity: constant 0.04/0.34 * Chain [27] with precondition: [V_y>=0,V_x>=V_y+1] 0.04/0.34 - Upper bound: 202*V_x-196*V_y+100 0.04/0.34 - Complexity: n 0.04/0.34 0.04/0.34 ### Maximum cost of eval_start_start(V__0,V_3,V_x,V_y,V_z_0,B): nat(V_x-V_y)+nat(2*V_y+100)+max([nat(100*V_x-100*V_y),nat(100*V_x-98*V_y)*2+nat(V_x-V_y)]) 0.04/0.34 Asymptotic class: n 0.04/0.34 * Total analysis performed in 260 ms. 0.04/0.34 0.04/0.44 EOF