1.43/1.44 WORST_CASE(?,O(n^1)) 1.43/1.44 1.43/1.44 Preprocessing Cost Relations 1.43/1.44 ===================================== 1.43/1.44 1.43/1.44 #### Computed strongly connected components 1.43/1.44 0. recursive : [f3/25,f4/25] 1.43/1.44 1. non_recursive : [exit_location/1] 1.43/1.44 2. non_recursive : [f8/13] 1.43/1.44 3. non_recursive : [f3_loop_cont/14] 1.43/1.44 4. non_recursive : [f0/13] 1.43/1.44 1.43/1.44 #### Obtained direct recursion through partial evaluation 1.43/1.44 0. SCC is partially evaluated into f4/25 1.43/1.44 1. SCC is completely evaluated into other SCCs 1.43/1.44 2. SCC is completely evaluated into other SCCs 1.43/1.44 3. SCC is partially evaluated into f3_loop_cont/14 1.43/1.44 4. SCC is partially evaluated into f0/13 1.43/1.44 1.43/1.44 Control-Flow Refinement of Cost Relations 1.43/1.44 ===================================== 1.43/1.44 1.43/1.44 ### Specialization of cost equations f4/25 1.43/1.44 * CE 24 is refined into CE [25] 1.43/1.44 * CE 22 is refined into CE [26] 1.43/1.44 * CE 23 is refined into CE [27] 1.43/1.44 * CE 18 is refined into CE [28] 1.43/1.44 * CE 19 is refined into CE [29] 1.43/1.44 * CE 20 is refined into CE [30] 1.43/1.44 * CE 21 is refined into CE [31] 1.43/1.44 1.43/1.44 1.43/1.44 ### Cost equations --> "Loop" of f4/25 1.43/1.44 * CEs [28] --> Loop 23 1.43/1.44 * CEs [29] --> Loop 24 1.43/1.44 * CEs [30] --> Loop 25 1.43/1.44 * CEs [31] --> Loop 26 1.43/1.44 * CEs [25] --> Loop 27 1.43/1.44 * CEs [26] --> Loop 28 1.43/1.44 * CEs [27] --> Loop 29 1.43/1.44 1.43/1.44 ### Ranking functions of CR f4(A,B,C,D,E,F,G,H,I,J,K,L,Q,R,S,T,U,V,W,X,Y,Z,A1,B1,C1) 1.43/1.44 * RF of phase [27]: [A-B-1] 1.43/1.44 * RF of phase [29]: [-A+B-1] 1.43/1.44 1.43/1.44 #### Partial ranking functions of CR f4(A,B,C,D,E,F,G,H,I,J,K,L,Q,R,S,T,U,V,W,X,Y,Z,A1,B1,C1) 1.43/1.44 * Partial RF of phase [27]: 1.43/1.44 - RF of loop [27:1]: 1.43/1.44 A-B-1 1.43/1.44 * Partial RF of phase [29]: 1.43/1.44 - RF of loop [29:1]: 1.43/1.44 -A+B-1 1.43/1.44 1.43/1.44 1.43/1.44 ### Specialization of cost equations f3_loop_cont/14 1.43/1.44 * CE 17 is refined into CE [32] 1.43/1.44 * CE 16 is refined into CE [33] 1.43/1.44 1.43/1.44 1.43/1.44 ### Cost equations --> "Loop" of f3_loop_cont/14 1.43/1.44 * CEs [32] --> Loop 30 1.43/1.44 * CEs [33] --> Loop 31 1.43/1.44 1.43/1.44 ### Ranking functions of CR f3_loop_cont(A,B,C,D,E,F,G,H,I,J,K,L,M,N) 1.43/1.44 1.43/1.44 #### Partial ranking functions of CR f3_loop_cont(A,B,C,D,E,F,G,H,I,J,K,L,M,N) 1.43/1.44 1.43/1.44 1.43/1.44 ### Specialization of cost equations f0/13 1.43/1.44 * CE 8 is refined into CE [34,35,36,37] 1.43/1.44 * CE 12 is refined into CE [38,39,40,41] 1.43/1.44 * CE 10 is refined into CE [42,43,44,45] 1.43/1.44 * CE 13 is refined into CE [46,47,48,49] 1.43/1.44 * CE 11 is refined into CE [50,51,52,53] 1.43/1.44 * CE 7 is refined into CE [54,55,56,57] 1.43/1.44 * CE 9 is refined into CE [58,59,60,61] 1.43/1.44 * CE 6 is refined into CE [62,63,64,65] 1.43/1.44 * CE 4 is refined into CE [66] 1.43/1.44 * CE 2 is refined into CE [67] 1.43/1.44 * CE 5 is refined into CE [68] 1.43/1.44 * CE 3 is refined into CE [69] 1.43/1.44 * CE 1 is refined into CE [70] 1.43/1.44 * CE 14 is refined into CE [71,72,73,74,75,76,77,78,79,80] 1.43/1.44 * CE 15 is refined into CE [81] 1.43/1.44 1.43/1.44 1.43/1.44 ### Cost equations --> "Loop" of f0/13 1.43/1.44 * CEs [35,37] --> Loop 32 1.43/1.44 * CEs [36] --> Loop 33 1.43/1.44 * CEs [39,41] --> Loop 34 1.43/1.44 * CEs [40] --> Loop 35 1.43/1.44 * CEs [43,45] --> Loop 36 1.43/1.44 * CEs [44,47,49,74,80] --> Loop 37 1.43/1.44 * CEs [48,51,53] --> Loop 38 1.43/1.44 * CEs [52,79] --> Loop 39 1.43/1.44 * CEs [55,57] --> Loop 40 1.43/1.44 * CEs [56,59,61,75,78] --> Loop 41 1.43/1.44 * CEs [60,63,65,77] --> Loop 42 1.43/1.44 * CEs [64] --> Loop 43 1.43/1.44 * CEs [34] --> Loop 44 1.43/1.44 * CEs [66] --> Loop 45 1.43/1.44 * CEs [38] --> Loop 46 1.43/1.44 * CEs [42] --> Loop 47 1.43/1.44 * CEs [46,67,73] --> Loop 48 1.43/1.44 * CEs [50,62,68,72,76] --> Loop 49 1.43/1.44 * CEs [58,69,71] --> Loop 50 1.43/1.44 * CEs [54] --> Loop 51 1.43/1.44 * CEs [70,81] --> Loop 52 1.43/1.44 1.43/1.44 ### Ranking functions of CR f0(A,B,C,D,E,F,G,H,I,J,K,L,Q) 1.43/1.44 1.43/1.44 #### Partial ranking functions of CR f0(A,B,C,D,E,F,G,H,I,J,K,L,Q) 1.43/1.44 1.43/1.44 1.43/1.44 Computing Bounds 1.43/1.44 ===================================== 1.43/1.44 1.43/1.44 #### Cost of chains of f4(A,B,C,D,E,F,G,H,I,J,K,L,Q,R,S,T,U,V,W,X,Y,Z,A1,B1,C1): 1.43/1.44 * Chain [[29],26]: 1*it(29)+1 1.43/1.44 Such that:it(29) =< -A+X 1.43/1.44 1.43/1.44 with precondition: [Q=2,D=T,F=V,B=X,B=Y,U=Z,W=A1,R=B1,S=C1,B>=A+2] 1.43/1.44 1.43/1.44 * Chain [[29],24]: 1*it(29)+1 1.43/1.44 Such that:it(29) =< -A+B 1.43/1.44 1.43/1.44 with precondition: [Q=3,B>=A+2] 1.43/1.44 1.43/1.44 * Chain [[27],25]: 1*it(27)+1 1.43/1.44 Such that:it(27) =< A-B 1.43/1.44 1.43/1.44 with precondition: [Q=2,D=T,F=V,A=X,A=Y,U=Z,W=A1,R=B1,S=C1,A>=B+2] 1.43/1.44 1.43/1.44 * Chain [[27],23]: 1*it(27)+1 1.43/1.44 Such that:it(27) =< A-B 1.43/1.44 1.43/1.44 with precondition: [Q=3,A>=B+2] 1.43/1.44 1.43/1.44 * Chain [28,26]: 2 1.43/1.44 with precondition: [Q=2,X=A+1,X=B+1,D=T,F=V,X=Y,U=Z,W=A1,R=B1,S=C1] 1.43/1.44 1.43/1.44 * Chain [28,24]: 2 1.43/1.44 with precondition: [Q=3,A=B] 1.43/1.44 1.43/1.44 * Chain [26]: 1 1.43/1.44 with precondition: [Q=2,B=A+1,T=D,V=F,B1=R,C1=S,Z=U,A1=W,B=X,B=Y] 1.43/1.44 1.43/1.44 * Chain [25]: 1 1.43/1.44 with precondition: [Q=2,A=B+1,T=D,V=F,B1=R,C1=S,Z=U,A1=W,A=X,A=Y] 1.43/1.44 1.43/1.44 * Chain [24]: 1 1.43/1.44 with precondition: [Q=3,B>=A+1] 1.43/1.44 1.43/1.44 * Chain [23]: 1 1.43/1.44 with precondition: [Q=3,A>=B] 1.43/1.44 1.43/1.44 1.43/1.44 #### Cost of chains of f3_loop_cont(A,B,C,D,E,F,G,H,I,J,K,L,M,N): 1.43/1.44 * Chain [31]: 0 1.43/1.44 with precondition: [A=2] 1.43/1.44 1.43/1.44 * Chain [30]: 0 1.43/1.44 with precondition: [A=3] 1.43/1.44 1.43/1.44 1.43/1.44 #### Cost of chains of f0(A,B,C,D,E,F,G,H,I,J,K,L,Q): 1.43/1.44 * Chain [52]: 0 1.43/1.44 with precondition: [] 1.43/1.44 1.43/1.44 * Chain [51]: 1 1.43/1.44 with precondition: [B=A+2] 1.43/1.44 1.43/1.44 * Chain [50]: 1 1.43/1.44 with precondition: [B=A+1] 1.43/1.44 1.43/1.44 * Chain [49]: 2 1.43/1.44 with precondition: [B=A] 1.43/1.44 1.43/1.44 * Chain [48]: 1 1.43/1.44 with precondition: [B+1=A] 1.43/1.44 1.43/1.44 * Chain [47]: 1 1.43/1.44 with precondition: [B+2=A] 1.43/1.44 1.43/1.44 * Chain [46]: 1 1.43/1.44 with precondition: [F=D+1] 1.43/1.44 1.43/1.44 * Chain [45]: 0 1.43/1.44 with precondition: [F=D] 1.43/1.44 1.43/1.44 * Chain [44]: 1 1.43/1.44 with precondition: [F+1=D] 1.43/1.44 1.43/1.44 * Chain [43]: 1 1.43/1.44 with precondition: [B>=A] 1.43/1.44 1.43/1.44 * Chain [42]: 2*s(1)+1 1.43/1.44 Such that:aux(1) =< -A+B+1 1.43/1.44 s(1) =< aux(1) 1.43/1.44 1.43/1.44 with precondition: [B>=A+1] 1.43/1.44 1.43/1.44 * Chain [41]: 4*s(3)+1 1.43/1.44 Such that:aux(2) =< -A+B 1.43/1.44 s(3) =< aux(2) 1.43/1.44 1.43/1.44 with precondition: [B>=A+2] 1.43/1.44 1.43/1.44 * Chain [40]: 2*s(7)+1 1.43/1.44 Such that:aux(3) =< -A+B 1.43/1.44 s(7) =< aux(3) 1.43/1.44 1.43/1.44 with precondition: [B>=A+3] 1.43/1.44 1.43/1.44 * Chain [39]: 1 1.43/1.44 with precondition: [A>=B] 1.43/1.44 1.43/1.44 * Chain [38]: 2*s(9)+1 1.43/1.44 Such that:aux(4) =< A-B+1 1.43/1.44 s(9) =< aux(4) 1.43/1.44 1.43/1.44 with precondition: [A>=B+1] 1.43/1.44 1.43/1.44 * Chain [37]: 4*s(11)+1 1.43/1.44 Such that:aux(5) =< A-B 1.43/1.44 s(11) =< aux(5) 1.43/1.44 1.43/1.44 with precondition: [A>=B+2] 1.43/1.44 1.43/1.44 * Chain [36]: 2*s(15)+1 1.43/1.44 Such that:aux(6) =< A-B 1.43/1.44 s(15) =< aux(6) 1.43/1.44 1.43/1.44 with precondition: [A>=B+3] 1.43/1.44 1.43/1.44 * Chain [35]: 1 1.43/1.44 with precondition: [F>=D+1] 1.43/1.44 1.43/1.44 * Chain [34]: 2*s(17)+1 1.43/1.44 Such that:aux(7) =< -D+F 1.43/1.44 s(17) =< aux(7) 1.43/1.44 1.43/1.44 with precondition: [F>=D+2] 1.43/1.44 1.43/1.44 * Chain [33]: 1 1.43/1.44 with precondition: [D>=F+1] 1.43/1.44 1.43/1.44 * Chain [32]: 2*s(19)+1 1.43/1.44 Such that:aux(8) =< D-F 1.43/1.44 s(19) =< aux(8) 1.43/1.44 1.43/1.44 with precondition: [D>=F+2] 1.43/1.44 1.43/1.44 1.43/1.44 Closed-form bounds of f0(A,B,C,D,E,F,G,H,I,J,K,L,Q): 1.43/1.44 ------------------------------------- 1.43/1.44 * Chain [52] with precondition: [] 1.43/1.44 - Upper bound: 0 1.43/1.44 - Complexity: constant 1.43/1.44 * Chain [51] with precondition: [B=A+2] 1.43/1.44 - Upper bound: 1 1.43/1.44 - Complexity: constant 1.43/1.44 * Chain [50] with precondition: [B=A+1] 1.43/1.44 - Upper bound: 1 1.43/1.44 - Complexity: constant 1.43/1.44 * Chain [49] with precondition: [B=A] 1.43/1.44 - Upper bound: 2 1.43/1.44 - Complexity: constant 1.43/1.44 * Chain [48] with precondition: [B+1=A] 1.43/1.44 - Upper bound: 1 1.43/1.44 - Complexity: constant 1.43/1.44 * Chain [47] with precondition: [B+2=A] 1.43/1.44 - Upper bound: 1 1.43/1.44 - Complexity: constant 1.43/1.44 * Chain [46] with precondition: [F=D+1] 1.43/1.44 - Upper bound: 1 1.43/1.44 - Complexity: constant 1.43/1.44 * Chain [45] with precondition: [F=D] 1.43/1.44 - Upper bound: 0 1.43/1.44 - Complexity: constant 1.43/1.44 * Chain [44] with precondition: [F+1=D] 1.43/1.44 - Upper bound: 1 1.43/1.44 - Complexity: constant 1.43/1.44 * Chain [43] with precondition: [B>=A] 1.43/1.44 - Upper bound: 1 1.43/1.44 - Complexity: constant 1.43/1.44 * Chain [42] with precondition: [B>=A+1] 1.43/1.44 - Upper bound: -2*A+2*B+3 1.43/1.44 - Complexity: n 1.43/1.44 * Chain [41] with precondition: [B>=A+2] 1.43/1.44 - Upper bound: -4*A+4*B+1 1.43/1.44 - Complexity: n 1.43/1.44 * Chain [40] with precondition: [B>=A+3] 1.43/1.44 - Upper bound: -2*A+2*B+1 1.43/1.44 - Complexity: n 1.43/1.44 * Chain [39] with precondition: [A>=B] 1.43/1.44 - Upper bound: 1 1.43/1.44 - Complexity: constant 1.43/1.44 * Chain [38] with precondition: [A>=B+1] 1.43/1.44 - Upper bound: 2*A-2*B+3 1.43/1.44 - Complexity: n 1.43/1.44 * Chain [37] with precondition: [A>=B+2] 1.43/1.44 - Upper bound: 4*A-4*B+1 1.43/1.44 - Complexity: n 1.43/1.44 * Chain [36] with precondition: [A>=B+3] 1.43/1.44 - Upper bound: 2*A-2*B+1 1.43/1.44 - Complexity: n 1.43/1.44 * Chain [35] with precondition: [F>=D+1] 1.43/1.44 - Upper bound: 1 1.43/1.44 - Complexity: constant 1.43/1.44 * Chain [34] with precondition: [F>=D+2] 1.43/1.44 - Upper bound: -2*D+2*F+1 1.43/1.44 - Complexity: n 1.43/1.44 * Chain [33] with precondition: [D>=F+1] 1.43/1.44 - Upper bound: 1 1.43/1.44 - Complexity: constant 1.43/1.44 * Chain [32] with precondition: [D>=F+2] 1.43/1.44 - Upper bound: 2*D-2*F+1 1.43/1.44 - Complexity: n 1.43/1.44 1.43/1.44 ### Maximum cost of f0(A,B,C,D,E,F,G,H,I,J,K,L,Q): max([max([max([2,nat(-D+F)*2+1,nat(-A+B+1)*2+1,nat(A-B+1)*2+1,nat(D-F)*2+1]),nat(A-B)*4+1]),nat(-A+B)*4+1]) 1.43/1.44 Asymptotic class: n 1.43/1.44 * Total analysis performed in 1307 ms. 1.43/1.44 1.44/1.54 EOF