0.69/0.72 WORST_CASE(?,O(n^1)) 0.69/0.72 0.69/0.72 Preprocessing Cost Relations 0.69/0.72 ===================================== 0.69/0.72 0.69/0.72 #### Computed strongly connected components 0.69/0.72 0. recursive : [lbl111/7] 0.69/0.72 1. recursive : [lbl111_loop_cont/14,lbl121/13] 0.69/0.72 2. non_recursive : [stop/7] 0.69/0.72 3. non_recursive : [cut/7] 0.69/0.72 4. non_recursive : [exit_location/1] 0.69/0.72 5. non_recursive : [lbl121_loop_cont/8] 0.69/0.72 6. non_recursive : [lbl6/7] 0.69/0.72 7. non_recursive : [start/7] 0.69/0.72 8. non_recursive : [start0/7] 0.69/0.72 0.69/0.72 #### Obtained direct recursion through partial evaluation 0.69/0.72 0. SCC is partially evaluated into lbl111/7 0.69/0.72 1. SCC is partially evaluated into lbl121/13 0.69/0.72 2. SCC is completely evaluated into other SCCs 0.69/0.72 3. SCC is completely evaluated into other SCCs 0.69/0.72 4. SCC is completely evaluated into other SCCs 0.69/0.72 5. SCC is partially evaluated into lbl121_loop_cont/8 0.69/0.72 6. SCC is completely evaluated into other SCCs 0.69/0.72 7. SCC is partially evaluated into start/7 0.69/0.72 8. SCC is partially evaluated into start0/7 0.69/0.72 0.69/0.72 Control-Flow Refinement of Cost Relations 0.69/0.72 ===================================== 0.69/0.72 0.69/0.72 ### Specialization of cost equations lbl111/7 0.69/0.72 * CE 14 is refined into CE [15] 0.69/0.72 * CE 12 is refined into CE [16] 0.69/0.72 * CE 13 is refined into CE [17] 0.69/0.72 0.69/0.72 0.69/0.72 ### Cost equations --> "Loop" of lbl111/7 0.69/0.72 * CEs [17] --> Loop 15 0.69/0.72 * CEs [15] --> Loop 16 0.69/0.72 * CEs [16] --> Loop 17 0.69/0.72 0.69/0.72 ### Ranking functions of CR lbl111(A,B,C,D,E,G,H) 0.69/0.72 * RF of phase [15]: [E] 0.69/0.72 0.69/0.72 #### Partial ranking functions of CR lbl111(A,B,C,D,E,G,H) 0.69/0.72 * Partial RF of phase [15]: 0.69/0.72 - RF of loop [15:1]: 0.69/0.72 E 0.69/0.72 0.69/0.72 0.69/0.72 ### Specialization of cost equations lbl121/13 0.69/0.72 * CE 5 is refined into CE [18,19] 0.69/0.72 * CE 9 is refined into CE [20] 0.69/0.72 * CE 6 is refined into CE [21,22] 0.69/0.72 * CE 7 is refined into CE [23] 0.69/0.72 * CE 8 is refined into CE [24] 0.69/0.72 0.69/0.72 0.69/0.72 ### Cost equations --> "Loop" of lbl121/13 0.69/0.72 * CEs [24] --> Loop 18 0.69/0.72 * CEs [19] --> Loop 19 0.69/0.72 * CEs [18] --> Loop 20 0.69/0.72 * CEs [20] --> Loop 21 0.69/0.72 * CEs [22] --> Loop 22 0.69/0.72 * CEs [21] --> Loop 23 0.69/0.72 * CEs [23] --> Loop 24 0.69/0.72 0.69/0.72 ### Ranking functions of CR lbl121(A,B,C,D,E,F,G,H,I,J,K,L,M) 0.69/0.72 * RF of phase [18]: [-A+E+1,-D+E+1,E] 0.69/0.72 0.69/0.72 #### Partial ranking functions of CR lbl121(A,B,C,D,E,F,G,H,I,J,K,L,M) 0.69/0.72 * Partial RF of phase [18]: 0.69/0.72 - RF of loop [18:1]: 0.69/0.72 -A+E+1 0.69/0.72 -D+E+1 0.69/0.72 E 0.69/0.72 0.69/0.72 0.69/0.72 ### Specialization of cost equations lbl121_loop_cont/8 0.69/0.72 * CE 11 is refined into CE [25] 0.69/0.72 * CE 10 is refined into CE [26] 0.69/0.72 0.69/0.72 0.69/0.72 ### Cost equations --> "Loop" of lbl121_loop_cont/8 0.69/0.72 * CEs [25] --> Loop 25 0.69/0.72 * CEs [26] --> Loop 26 0.69/0.72 0.69/0.72 ### Ranking functions of CR lbl121_loop_cont(A,B,C,D,E,F,G,H) 0.69/0.72 0.69/0.72 #### Partial ranking functions of CR lbl121_loop_cont(A,B,C,D,E,F,G,H) 0.69/0.72 0.69/0.72 0.69/0.72 ### Specialization of cost equations start/7 0.69/0.72 * CE 3 is refined into CE [27] 0.69/0.72 * CE 4 is refined into CE [28,29,30,31,32,33,34,35,36,37,38] 0.69/0.72 * CE 2 is refined into CE [39] 0.69/0.72 0.69/0.72 0.69/0.72 ### Cost equations --> "Loop" of start/7 0.69/0.72 * CEs [29,35] --> Loop 27 0.69/0.72 * CEs [34] --> Loop 28 0.69/0.72 * CEs [32,38] --> Loop 29 0.69/0.72 * CEs [31,37] --> Loop 30 0.69/0.72 * CEs [27] --> Loop 31 0.69/0.72 * CEs [33] --> Loop 32 0.69/0.72 * CEs [30,36] --> Loop 33 0.69/0.72 * CEs [39] --> Loop 34 0.69/0.72 * CEs [28] --> Loop 35 0.69/0.72 0.69/0.72 ### Ranking functions of CR start(A,B,C,D,E,F,G) 0.69/0.72 0.69/0.72 #### Partial ranking functions of CR start(A,B,C,D,E,F,G) 0.69/0.72 0.69/0.72 0.69/0.72 ### Specialization of cost equations start0/7 0.69/0.72 * CE 1 is refined into CE [40,41,42,43,44,45,46,47,48] 0.69/0.72 0.69/0.72 0.69/0.72 ### Cost equations --> "Loop" of start0/7 0.69/0.72 * CEs [48] --> Loop 36 0.69/0.72 * CEs [47] --> Loop 37 0.69/0.72 * CEs [46] --> Loop 38 0.69/0.72 * CEs [45] --> Loop 39 0.69/0.72 * CEs [43] --> Loop 40 0.69/0.72 * CEs [44] --> Loop 41 0.69/0.72 * CEs [42] --> Loop 42 0.69/0.72 * CEs [41] --> Loop 43 0.69/0.72 * CEs [40] --> Loop 44 0.69/0.72 0.69/0.72 ### Ranking functions of CR start0(A,B,C,D,E,F,G) 0.69/0.72 0.69/0.72 #### Partial ranking functions of CR start0(A,B,C,D,E,F,G) 0.69/0.72 0.69/0.72 0.69/0.72 Computing Bounds 0.69/0.72 ===================================== 0.69/0.72 0.69/0.72 #### Cost of chains of lbl111(A,B,C,D,E,G,H): 0.69/0.72 * Chain [[15],17]: 1*it(15)+0 0.69/0.72 Such that:it(15) =< E 0.69/0.72 0.69/0.72 with precondition: [G=2,H=0,B=C,A=D,E>=1,A>=E+2,B>=A+E+1] 0.69/0.72 0.69/0.72 * Chain [[15],16]: 1*it(15)+0 0.69/0.72 Such that:it(15) =< E 0.69/0.72 0.69/0.72 with precondition: [G=4,B=C,A=D,E>=1,A>=E+2,B>=A+E+1] 0.69/0.72 0.69/0.72 * Chain [17]: 0 0.69/0.72 with precondition: [E=0,G=2,H=0,D=A,C=B,D>=2,C>=D+1] 0.69/0.72 0.69/0.72 * Chain [16]: 0 0.69/0.72 with precondition: [G=4,D=A,C=B,E>=0,D>=E+2,C>=D+E+1] 0.69/0.72 0.69/0.72 0.69/0.72 #### Cost of chains of lbl121(A,B,C,D,E,F,G,H,I,J,K,L,M): 0.69/0.72 * Chain [[18],24]: 1*it(18)+0 0.69/0.72 Such that:it(18) =< -A+E+1 0.69/0.72 0.69/0.72 with precondition: [G=2,L=0,B=C,A=D,A=H,B=I,B=J,A=K,F=M,A>=1,E>=A,B>=A+E] 0.69/0.72 0.69/0.72 * Chain [[18],23]: 1*it(18)+0 0.69/0.72 Such that:it(18) =< -A+E+1 0.69/0.72 0.69/0.72 with precondition: [G=2,L=0,B=C,A=D,A=H,B=I,B=J,A=K,F=M,A>=2,E>=A+1,B>=A+E] 0.69/0.72 0.69/0.72 * Chain [[18],22]: 1*it(18)+1*s(1)+0 0.69/0.72 Such that:s(1) =< E-K 0.69/0.72 it(18) =< E-K+1 0.69/0.72 s(1) =< K 0.69/0.72 0.69/0.72 with precondition: [G=2,L=0,B=C,A=D,A=H,B=I,B=J,A=K,F=M,A>=3,E>=A+2,B>=A+E] 0.69/0.72 0.69/0.72 * Chain [[18],21]: 1*it(18)+0 0.69/0.72 Such that:it(18) =< -A+E+1 0.69/0.72 0.69/0.72 with precondition: [G=4,B=C,A=D,A>=1,E>=A,B>=A+E] 0.69/0.72 0.69/0.72 * Chain [[18],20]: 1*it(18)+0 0.69/0.72 Such that:it(18) =< -A+E+1 0.69/0.72 0.69/0.72 with precondition: [G=4,B=C,A=D,A>=2,E>=A+1,B>=A+E] 0.69/0.72 0.69/0.72 * Chain [[18],19]: 1*it(18)+1*s(2)+0 0.69/0.72 Such that:s(2) =< -A+E 0.69/0.72 it(18) =< -A+E+1 0.69/0.72 s(2) =< A 0.69/0.72 0.69/0.72 with precondition: [G=4,B=C,A=D,A>=3,E>=A+2,B>=A+E] 0.69/0.72 0.69/0.72 * Chain [23]: 0 0.69/0.72 with precondition: [E=1,G=2,L=0,D=A,C=B,M=F,D=H,C=I,C=J,D=K,D>=2,C>=D+1] 0.69/0.72 0.69/0.72 * Chain [22]: 1*s(1)+0 0.69/0.72 Such that:s(1) =< E 0.69/0.72 0.69/0.72 with precondition: [G=2,L=0,D=A,C=B,M=F,D=H,C=I,C=J,D=K,E>=2,D>=E+1,C>=D+E] 0.69/0.72 0.69/0.72 * Chain [21]: 0 0.69/0.72 with precondition: [G=4,D=A,C=B,D>=1,E>=0,C>=D+1,C>=D+E] 0.69/0.72 0.69/0.72 * Chain [20]: 0 0.69/0.72 with precondition: [G=4,D=A,C=B,E>=1,D>=E+1,C>=D+E] 0.69/0.72 0.69/0.72 * Chain [19]: 1*s(2)+0 0.69/0.72 Such that:s(2) =< E 0.69/0.72 0.69/0.72 with precondition: [G=4,D=A,C=B,E>=2,D>=E+1,C>=D+E] 0.69/0.72 0.69/0.72 0.69/0.72 #### Cost of chains of lbl121_loop_cont(A,B,C,D,E,F,G,H): 0.69/0.72 * Chain [26]: 0 0.69/0.72 with precondition: [A=2,F=0,C=D,B=E,B>=1,C>=B+1] 0.69/0.72 0.69/0.72 * Chain [25]: 0 0.69/0.72 with precondition: [A=4] 0.69/0.72 0.69/0.72 0.69/0.72 #### Cost of chains of start(A,B,C,D,E,F,G): 0.69/0.72 * Chain [35]: 0 0.69/0.72 with precondition: [B=A+1,B=C,B=D+1,F=E,B>=3] 0.69/0.72 0.69/0.72 * Chain [34]: 0 0.69/0.72 with precondition: [D=A,C=B,F=E,0>=D] 0.69/0.72 0.69/0.72 * Chain [33]: 2*s(3)+0 0.69/0.72 Such that:aux(1) =< -2*A+B+1 0.69/0.72 s(3) =< aux(1) 0.69/0.72 0.69/0.72 with precondition: [D=A,C=B,F=E,D>=1,C>=2*D] 0.69/0.72 0.69/0.72 * Chain [32]: 0 0.69/0.72 with precondition: [D=A,C=B,F=E,D>=1,C>=D+1] 0.69/0.72 0.69/0.72 * Chain [31]: 0 0.69/0.72 with precondition: [D=A,C=B,F=E,D>=1,D>=C] 0.69/0.72 0.69/0.72 * Chain [30]: 2*s(5)+0 0.69/0.72 Such that:aux(2) =< -2*A+B+1 0.69/0.72 s(5) =< aux(2) 0.69/0.72 0.69/0.72 with precondition: [D=A,C=B,F=E,D>=2,C>=2*D+1] 0.69/0.72 0.69/0.72 * Chain [29]: 2*s(7)+2*s(8)+0 0.69/0.72 Such that:aux(3) =< C-2*D 0.69/0.72 aux(4) =< C-2*D+1 0.69/0.72 aux(5) =< D 0.69/0.72 s(7) =< aux(3) 0.69/0.72 s(8) =< aux(4) 0.69/0.72 s(7) =< aux(5) 0.69/0.72 0.69/0.72 with precondition: [D=A,C=B,F=E,D>=3,C>=2*D+2] 0.69/0.72 0.69/0.72 * Chain [28]: 0 0.69/0.72 with precondition: [D=A,C=B,F=E,2*D>=C+1,C>=D+1] 0.69/0.72 0.69/0.72 * Chain [27]: 2*s(11)+0 0.69/0.72 Such that:aux(6) =< -A+B 0.69/0.72 s(11) =< aux(6) 0.69/0.72 0.69/0.72 with precondition: [D=A,C=B,F=E,2*D>=C+1,C>=D+2] 0.69/0.72 0.69/0.72 0.69/0.72 #### Cost of chains of start0(A,B,C,D,E,F,G): 0.69/0.72 * Chain [44]: 0 0.69/0.72 with precondition: [A+1=C,A>=2] 0.69/0.72 0.69/0.72 * Chain [43]: 0 0.69/0.72 with precondition: [0>=A] 0.69/0.72 0.69/0.72 * Chain [42]: 2*s(14)+0 0.69/0.72 Such that:s(13) =< -2*A+C+1 0.69/0.72 s(14) =< s(13) 0.69/0.72 0.69/0.72 with precondition: [A>=1,C>=2*A] 0.69/0.72 0.69/0.72 * Chain [41]: 0 0.69/0.72 with precondition: [A>=1,C>=A+1] 0.69/0.72 0.69/0.72 * Chain [40]: 0 0.69/0.72 with precondition: [A>=1,A>=C] 0.69/0.72 0.69/0.72 * Chain [39]: 2*s(16)+0 0.69/0.72 Such that:s(15) =< -2*A+C+1 0.69/0.72 s(16) =< s(15) 0.69/0.72 0.69/0.72 with precondition: [A>=2,C>=2*A+1] 0.69/0.72 0.69/0.72 * Chain [38]: 2*s(20)+2*s(21)+0 0.69/0.72 Such that:s(17) =< -2*A+C 0.69/0.72 s(18) =< -2*A+C+1 0.69/0.72 s(19) =< A 0.69/0.72 s(20) =< s(17) 0.69/0.72 s(21) =< s(18) 0.69/0.72 s(20) =< s(19) 0.69/0.72 0.69/0.72 with precondition: [A>=3,C>=2*A+2] 0.69/0.72 0.69/0.72 * Chain [37]: 0 0.69/0.72 with precondition: [C>=A+1,2*A>=C+1] 0.69/0.72 0.69/0.72 * Chain [36]: 2*s(23)+0 0.69/0.72 Such that:s(22) =< -A+C 0.69/0.72 s(23) =< s(22) 0.69/0.72 0.69/0.72 with precondition: [C>=A+2,2*A>=C+1] 0.69/0.72 0.69/0.72 0.69/0.72 Closed-form bounds of start0(A,B,C,D,E,F,G): 0.69/0.72 ------------------------------------- 0.69/0.72 * Chain [44] with precondition: [A+1=C,A>=2] 0.69/0.72 - Upper bound: 0 0.69/0.72 - Complexity: constant 0.69/0.72 * Chain [43] with precondition: [0>=A] 0.69/0.72 - Upper bound: 0 0.69/0.72 - Complexity: constant 0.69/0.72 * Chain [42] with precondition: [A>=1,C>=2*A] 0.69/0.72 - Upper bound: -4*A+2*C+2 0.69/0.72 - Complexity: n 0.69/0.72 * Chain [41] with precondition: [A>=1,C>=A+1] 0.69/0.72 - Upper bound: 0 0.69/0.72 - Complexity: constant 0.69/0.72 * Chain [40] with precondition: [A>=1,A>=C] 0.69/0.72 - Upper bound: 0 0.69/0.72 - Complexity: constant 0.69/0.72 * Chain [39] with precondition: [A>=2,C>=2*A+1] 0.69/0.72 - Upper bound: -4*A+2*C+2 0.69/0.72 - Complexity: n 0.69/0.72 * Chain [38] with precondition: [A>=3,C>=2*A+2] 0.69/0.72 - Upper bound: -8*A+4*C+2 0.69/0.72 - Complexity: n 0.69/0.72 * Chain [37] with precondition: [C>=A+1,2*A>=C+1] 0.69/0.72 - Upper bound: 0 0.69/0.72 - Complexity: constant 0.69/0.72 * Chain [36] with precondition: [C>=A+2,2*A>=C+1] 0.69/0.72 - Upper bound: -2*A+2*C 0.69/0.72 - Complexity: n 0.69/0.72 0.69/0.72 ### Maximum cost of start0(A,B,C,D,E,F,G): max([nat(-A+C)*2,nat(-2*A+C+1)*2+nat(-2*A+C)*2]) 0.69/0.72 Asymptotic class: n 0.69/0.72 * Total analysis performed in 621 ms. 0.69/0.72 0.73/0.83 EOF