0.03/0.36 WORST_CASE(?,O(n^1)) 0.03/0.36 0.03/0.36 Preprocessing Cost Relations 0.03/0.36 ===================================== 0.03/0.36 0.03/0.36 #### Computed strongly connected components 0.03/0.36 0. recursive : [eval_wcet2_bb2_in/4,eval_wcet2_bb3_in/4] 0.03/0.36 1. recursive : [eval_wcet2_7/7,eval_wcet2_8/7,eval_wcet2_bb1_in/7,eval_wcet2_bb2_in_loop_cont/8,eval_wcet2_bb4_in/7] 0.03/0.36 2. non_recursive : [eval_wcet2_stop/5] 0.03/0.36 3. non_recursive : [eval_wcet2_bb5_in/5] 0.03/0.36 4. non_recursive : [exit_location/1] 0.03/0.37 5. non_recursive : [eval_wcet2_bb1_in_loop_cont/6] 0.03/0.37 6. non_recursive : [eval_wcet2_3/5] 0.03/0.37 7. non_recursive : [eval_wcet2_2/5] 0.03/0.37 8. non_recursive : [eval_wcet2_1/5] 0.03/0.37 9. non_recursive : [eval_wcet2_0/5] 0.03/0.37 10. non_recursive : [eval_wcet2_bb0_in/5] 0.03/0.37 11. non_recursive : [eval_wcet2_start/5] 0.03/0.37 0.03/0.37 #### Obtained direct recursion through partial evaluation 0.03/0.37 0. SCC is partially evaluated into eval_wcet2_bb2_in/4 0.03/0.37 1. SCC is partially evaluated into eval_wcet2_bb1_in/7 0.03/0.37 2. SCC is completely evaluated into other SCCs 0.03/0.37 3. SCC is completely evaluated into other SCCs 0.03/0.37 4. SCC is completely evaluated into other SCCs 0.03/0.37 5. SCC is partially evaluated into eval_wcet2_bb1_in_loop_cont/6 0.03/0.37 6. SCC is partially evaluated into eval_wcet2_3/5 0.03/0.37 7. SCC is completely evaluated into other SCCs 0.03/0.37 8. SCC is completely evaluated into other SCCs 0.03/0.37 9. SCC is completely evaluated into other SCCs 0.03/0.37 10. SCC is completely evaluated into other SCCs 0.03/0.37 11. SCC is partially evaluated into eval_wcet2_start/5 0.03/0.37 0.03/0.37 Control-Flow Refinement of Cost Relations 0.03/0.37 ===================================== 0.03/0.37 0.03/0.37 ### Specialization of cost equations eval_wcet2_bb2_in/4 0.03/0.37 * CE 12 is refined into CE [13] 0.03/0.37 * CE 11 is refined into CE [14] 0.03/0.37 * CE 10 is refined into CE [15] 0.03/0.37 * CE 9 is refined into CE [16] 0.03/0.37 0.03/0.37 0.03/0.37 ### Cost equations --> "Loop" of eval_wcet2_bb2_in/4 0.03/0.37 * CEs [16] --> Loop 13 0.03/0.37 * CEs [13] --> Loop 14 0.03/0.37 * CEs [14] --> Loop 15 0.03/0.37 * CEs [15] --> Loop 16 0.03/0.37 0.03/0.37 ### Ranking functions of CR eval_wcet2_bb2_in(V__0,V_j_0,B,C) 0.03/0.37 * RF of phase [13]: [-V_j_0+10] 0.03/0.37 0.03/0.37 #### Partial ranking functions of CR eval_wcet2_bb2_in(V__0,V_j_0,B,C) 0.03/0.37 * Partial RF of phase [13]: 0.03/0.37 - RF of loop [13:1]: 0.03/0.37 -V_j_0+10 0.03/0.37 0.03/0.37 0.03/0.37 ### Specialization of cost equations eval_wcet2_bb1_in/7 0.03/0.37 * CE 5 is refined into CE [17] 0.03/0.37 * CE 3 is refined into CE [18,19] 0.03/0.37 * CE 6 is refined into CE [20] 0.03/0.37 * CE 4 is refined into CE [21,22] 0.03/0.37 0.03/0.37 0.03/0.37 ### Cost equations --> "Loop" of eval_wcet2_bb1_in/7 0.03/0.37 * CEs [22] --> Loop 17 0.03/0.37 * CEs [21] --> Loop 18 0.03/0.37 * CEs [17] --> Loop 19 0.03/0.37 * CEs [18] --> Loop 20 0.03/0.37 * CEs [19] --> Loop 21 0.03/0.37 * CEs [20] --> Loop 22 0.03/0.37 0.03/0.37 ### Ranking functions of CR eval_wcet2_bb1_in(V__0,V_4,V_j_0,B,C,D,E) 0.03/0.37 * RF of phase [17]: [-V__0+5] 0.03/0.37 * RF of phase [18]: [-V__0+3] 0.03/0.37 0.03/0.37 #### Partial ranking functions of CR eval_wcet2_bb1_in(V__0,V_4,V_j_0,B,C,D,E) 0.03/0.37 * Partial RF of phase [17]: 0.03/0.37 - RF of loop [17:1]: 0.03/0.37 -V__0+5 0.03/0.37 * Partial RF of phase [18]: 0.03/0.37 - RF of loop [18:1]: 0.03/0.37 -V__0+3 0.03/0.37 0.03/0.37 0.03/0.37 ### Specialization of cost equations eval_wcet2_bb1_in_loop_cont/6 0.03/0.37 * CE 7 is refined into CE [23] 0.03/0.37 * CE 8 is refined into CE [24] 0.03/0.37 0.03/0.37 0.03/0.37 ### Cost equations --> "Loop" of eval_wcet2_bb1_in_loop_cont/6 0.03/0.37 * CEs [23] --> Loop 23 0.03/0.37 * CEs [24] --> Loop 24 0.03/0.37 0.03/0.37 ### Ranking functions of CR eval_wcet2_bb1_in_loop_cont(A,B,C,D,E,F) 0.03/0.37 0.03/0.37 #### Partial ranking functions of CR eval_wcet2_bb1_in_loop_cont(A,B,C,D,E,F) 0.03/0.37 0.03/0.37 0.03/0.37 ### Specialization of cost equations eval_wcet2_3/5 0.03/0.37 * CE 2 is refined into CE [25,26,27,28,29,30,31,32] 0.03/0.37 0.03/0.37 0.03/0.37 ### Cost equations --> "Loop" of eval_wcet2_3/5 0.03/0.37 * CEs [32] --> Loop 25 0.03/0.37 * CEs [29,31] --> Loop 26 0.03/0.37 * CEs [28,30] --> Loop 27 0.03/0.37 * CEs [27] --> Loop 28 0.03/0.37 * CEs [25] --> Loop 29 0.03/0.37 * CEs [26] --> Loop 30 0.03/0.37 0.03/0.37 ### Ranking functions of CR eval_wcet2_3(V__0,V_4,V_i,V_j_0,B) 0.03/0.37 0.03/0.37 #### Partial ranking functions of CR eval_wcet2_3(V__0,V_4,V_i,V_j_0,B) 0.03/0.37 0.03/0.37 0.03/0.37 ### Specialization of cost equations eval_wcet2_start/5 0.03/0.37 * CE 1 is refined into CE [33,34,35,36,37,38] 0.03/0.37 0.03/0.37 0.03/0.37 ### Cost equations --> "Loop" of eval_wcet2_start/5 0.03/0.37 * CEs [38] --> Loop 31 0.03/0.37 * CEs [37] --> Loop 32 0.03/0.37 * CEs [36] --> Loop 33 0.03/0.37 * CEs [35] --> Loop 34 0.03/0.37 * CEs [34] --> Loop 35 0.03/0.37 * CEs [33] --> Loop 36 0.03/0.37 0.03/0.37 ### Ranking functions of CR eval_wcet2_start(V__0,V_4,V_i,V_j_0,B) 0.03/0.37 0.03/0.37 #### Partial ranking functions of CR eval_wcet2_start(V__0,V_4,V_i,V_j_0,B) 0.03/0.37 0.03/0.37 0.03/0.37 Computing Bounds 0.03/0.37 ===================================== 0.03/0.37 0.03/0.37 #### Cost of chains of eval_wcet2_bb2_in(V__0,V_j_0,B,C): 0.03/0.37 * Chain [[13],15]: 1*it(13)+0 0.03/0.37 Such that:it(13) =< -V_j_0+10 0.03/0.37 0.03/0.37 with precondition: [B=2,C=10,4>=V__0,9>=V_j_0,V__0>=3,V_j_0>=0] 0.03/0.37 0.03/0.37 * Chain [[13],14]: 1*it(13)+0 0.03/0.37 Such that:it(13) =< -V_j_0+10 0.03/0.37 0.03/0.37 with precondition: [B=3,4>=V__0,9>=V_j_0,V__0>=3,V_j_0>=0] 0.03/0.37 0.03/0.37 * Chain [16]: 0 0.03/0.37 with precondition: [V_j_0=0,B=2,C=0,2>=V__0] 0.03/0.37 0.03/0.37 * Chain [14]: 0 0.03/0.37 with precondition: [B=3,4>=V__0,V_j_0>=0] 0.03/0.37 0.03/0.37 0.03/0.37 #### Cost of chains of eval_wcet2_bb1_in(V__0,V_4,V_j_0,B,C,D,E): 0.03/0.37 * Chain [[18],[17],22]: 1*it(17)+1*it(18)+1*s(3)+0 0.03/0.37 Such that:aux(4) =< 2 0.03/0.37 it(18) =< -V__0+3 0.03/0.37 it(17) =< aux(4) 0.03/0.37 s(3) =< aux(4)*10 0.03/0.37 0.03/0.37 with precondition: [B=3,2>=V__0] 0.03/0.37 0.03/0.37 * Chain [[18],[17],21]: 1*it(17)+1*it(18)+1*s(3)+0 0.03/0.37 Such that:aux(3) =< 1 0.03/0.37 aux(2) =< 2 0.03/0.37 it(18) =< -V__0+3 0.03/0.37 aux(1) =< aux(2) 0.03/0.37 it(17) =< aux(2) 0.03/0.37 aux(1) =< aux(3) 0.03/0.37 it(17) =< aux(3) 0.03/0.37 s(3) =< aux(1)*10 0.03/0.37 0.03/0.37 with precondition: [B=3,2>=V__0] 0.03/0.37 0.03/0.37 * Chain [[18],[17],20]: 1*it(17)+1*it(18)+1*s(3)+1*s(4)+0 0.03/0.37 Such that:aux(3) =< 1 0.03/0.37 aux(2) =< 2 0.03/0.37 s(4) =< 10 0.03/0.37 it(18) =< -V__0+3 0.03/0.37 aux(1) =< aux(2) 0.03/0.37 it(17) =< aux(2) 0.03/0.37 aux(1) =< aux(3) 0.03/0.37 it(17) =< aux(3) 0.03/0.37 s(3) =< aux(1)*10 0.03/0.37 0.03/0.37 with precondition: [B=3,2>=V__0] 0.03/0.37 0.03/0.37 * Chain [[18],[17],19]: 1*it(17)+1*it(18)+1*s(3)+0 0.03/0.37 Such that:aux(5) =< 2 0.03/0.37 it(18) =< -V__0+3 0.03/0.37 it(17) =< aux(5) 0.03/0.37 s(3) =< aux(5)*10 0.03/0.37 0.03/0.37 with precondition: [B=4,C=5,D=5,E=10,2>=V__0] 0.03/0.37 0.03/0.37 * Chain [[18],22]: 1*it(18)+0 0.03/0.37 Such that:it(18) =< -V__0+3 0.03/0.37 0.03/0.37 with precondition: [B=3,2>=V__0] 0.03/0.37 0.03/0.37 * Chain [[18],21]: 1*it(18)+0 0.03/0.37 Such that:it(18) =< -V__0+3 0.03/0.37 0.03/0.37 with precondition: [B=3,2>=V__0] 0.03/0.37 0.03/0.37 * Chain [[18],20]: 1*it(18)+1*s(4)+0 0.03/0.37 Such that:s(4) =< 10 0.03/0.37 it(18) =< -V__0+3 0.03/0.37 0.03/0.37 with precondition: [B=3,2>=V__0] 0.03/0.37 0.03/0.37 * Chain [[17],22]: 1*it(17)+1*s(3)+0 0.03/0.37 Such that:aux(4) =< -V__0+5 0.03/0.37 it(17) =< aux(4) 0.03/0.37 s(3) =< aux(4)*10 0.03/0.37 0.03/0.37 with precondition: [B=3,4>=V__0,V__0>=3] 0.03/0.37 0.03/0.37 * Chain [[17],21]: 1*it(17)+1*s(3)+0 0.03/0.37 Such that:aux(3) =< 1 0.03/0.37 aux(2) =< 2 0.03/0.37 aux(1) =< aux(2) 0.03/0.37 it(17) =< aux(2) 0.03/0.37 aux(1) =< aux(3) 0.03/0.37 it(17) =< aux(3) 0.03/0.37 s(3) =< aux(1)*10 0.03/0.37 0.03/0.37 with precondition: [V__0=3,B=3] 0.03/0.37 0.03/0.37 * Chain [[17],20]: 1*it(17)+1*s(3)+1*s(4)+0 0.03/0.37 Such that:aux(3) =< 1 0.03/0.37 aux(2) =< 2 0.03/0.37 s(4) =< 10 0.03/0.37 aux(1) =< aux(2) 0.03/0.37 it(17) =< aux(2) 0.03/0.37 aux(1) =< aux(3) 0.03/0.37 it(17) =< aux(3) 0.03/0.37 s(3) =< aux(1)*10 0.03/0.37 0.03/0.37 with precondition: [V__0=3,B=3] 0.03/0.37 0.03/0.37 * Chain [[17],19]: 1*it(17)+1*s(3)+0 0.03/0.37 Such that:aux(5) =< -V__0+5 0.03/0.37 it(17) =< aux(5) 0.03/0.37 s(3) =< aux(5)*10 0.03/0.37 0.03/0.37 with precondition: [B=4,C=5,D=5,E=10,4>=V__0,V__0>=3] 0.03/0.37 0.03/0.37 * Chain [22]: 0 0.03/0.37 with precondition: [B=3] 0.03/0.37 0.03/0.37 * Chain [21]: 0 0.03/0.37 with precondition: [B=3,4>=V__0] 0.03/0.37 0.03/0.37 * Chain [20]: 1*s(4)+0 0.03/0.37 Such that:s(4) =< 10 0.03/0.37 0.03/0.37 with precondition: [B=3,4>=V__0,V__0>=3] 0.03/0.37 0.03/0.37 * Chain [19]: 0 0.03/0.37 with precondition: [B=4,D=V_4,E=V_j_0,V__0=C,V__0>=5] 0.03/0.37 0.03/0.37 0.03/0.37 #### Cost of chains of eval_wcet2_bb1_in_loop_cont(A,B,C,D,E,F): 0.03/0.37 * Chain [24]: 0 0.03/0.37 with precondition: [A=3] 0.03/0.37 0.03/0.37 * Chain [23]: 0 0.03/0.37 with precondition: [A=4] 0.03/0.37 0.03/0.37 0.03/0.37 #### Cost of chains of eval_wcet2_3(V__0,V_4,V_i,V_j_0,B): 0.03/0.37 * Chain [30]: 0 0.03/0.37 with precondition: [] 0.03/0.37 0.03/0.37 * Chain [29]: 54 0.03/0.37 with precondition: [V_i=3] 0.03/0.37 0.03/0.37 * Chain [28]: 0 0.03/0.37 with precondition: [4>=V_i] 0.03/0.37 0.03/0.37 * Chain [27]: 1*s(41)+2*s(43)+2*s(44)+0 0.03/0.37 Such that:s(41) =< 10 0.03/0.37 aux(12) =< -V_i+5 0.03/0.37 s(43) =< aux(12) 0.03/0.37 s(44) =< aux(12)*10 0.03/0.37 0.03/0.37 with precondition: [4>=V_i,V_i>=3] 0.03/0.37 0.03/0.37 * Chain [26]: 2*s(52)+7*s(53)+2*s(55)+2*s(56)+2*s(57)+2*s(58)+0 0.03/0.37 Such that:s(48) =< 1 0.03/0.37 s(50) =< 10 0.03/0.37 aux(13) =< 2 0.03/0.37 aux(14) =< -V_i+3 0.03/0.37 s(53) =< aux(14) 0.03/0.37 s(52) =< s(50) 0.03/0.37 s(54) =< aux(13) 0.03/0.37 s(55) =< aux(13) 0.03/0.37 s(54) =< s(48) 0.03/0.37 s(55) =< s(48) 0.03/0.37 s(56) =< s(54)*10 0.03/0.37 s(57) =< aux(13) 0.03/0.37 s(58) =< aux(13)*10 0.03/0.37 0.03/0.37 with precondition: [2>=V_i] 0.03/0.37 0.03/0.37 * Chain [25]: 0 0.03/0.37 with precondition: [V_i>=5] 0.03/0.37 0.03/0.37 0.03/0.37 #### Cost of chains of eval_wcet2_start(V__0,V_4,V_i,V_j_0,B): 0.03/0.37 * Chain [36]: 0 0.03/0.37 with precondition: [] 0.03/0.37 0.03/0.37 * Chain [35]: 54 0.03/0.37 with precondition: [V_i=3] 0.03/0.37 0.03/0.37 * Chain [34]: 0 0.03/0.37 with precondition: [4>=V_i] 0.03/0.37 0.03/0.37 * Chain [33]: 1*s(63)+2*s(65)+2*s(66)+0 0.03/0.37 Such that:s(63) =< 10 0.03/0.37 s(64) =< -V_i+5 0.03/0.37 s(65) =< s(64) 0.03/0.37 s(66) =< s(64)*10 0.03/0.37 0.03/0.37 with precondition: [4>=V_i,V_i>=3] 0.03/0.37 0.03/0.37 * Chain [32]: 7*s(71)+2*s(72)+2*s(74)+2*s(75)+2*s(76)+2*s(77)+0 0.03/0.37 Such that:s(67) =< 1 0.03/0.37 s(69) =< 2 0.03/0.37 s(68) =< 10 0.03/0.37 s(70) =< -V_i+3 0.03/0.37 s(71) =< s(70) 0.03/0.37 s(72) =< s(68) 0.03/0.37 s(73) =< s(69) 0.03/0.37 s(74) =< s(69) 0.03/0.37 s(73) =< s(67) 0.03/0.37 s(74) =< s(67) 0.03/0.37 s(75) =< s(73)*10 0.03/0.37 s(76) =< s(69) 0.03/0.37 s(77) =< s(69)*10 0.03/0.37 0.03/0.37 with precondition: [2>=V_i] 0.03/0.37 0.03/0.37 * Chain [31]: 0 0.03/0.37 with precondition: [V_i>=5] 0.03/0.37 0.03/0.37 0.03/0.37 Closed-form bounds of eval_wcet2_start(V__0,V_4,V_i,V_j_0,B): 0.03/0.37 ------------------------------------- 0.03/0.37 * Chain [36] with precondition: [] 0.03/0.37 - Upper bound: 0 0.03/0.37 - Complexity: constant 0.03/0.37 * Chain [35] with precondition: [V_i=3] 0.03/0.37 - Upper bound: 54 0.03/0.37 - Complexity: constant 0.03/0.37 * Chain [34] with precondition: [4>=V_i] 0.03/0.37 - Upper bound: 0 0.03/0.37 - Complexity: constant 0.03/0.37 * Chain [33] with precondition: [4>=V_i,V_i>=3] 0.03/0.37 - Upper bound: -22*V_i+120 0.03/0.37 - Complexity: n 0.03/0.37 * Chain [32] with precondition: [2>=V_i] 0.03/0.37 - Upper bound: -7*V_i+129 0.03/0.37 - Complexity: n 0.03/0.37 * Chain [31] with precondition: [V_i>=5] 0.03/0.37 - Upper bound: 0 0.03/0.37 - Complexity: constant 0.03/0.37 0.03/0.37 ### Maximum cost of eval_wcet2_start(V__0,V_4,V_i,V_j_0,B): max([54,nat(-V_i+3)*7+108,nat(-V_i+5)*22+10]) 0.03/0.37 Asymptotic class: n 0.03/0.37 * Total analysis performed in 291 ms. 0.03/0.37 0.03/0.47 EOF