/export/starexec/sandbox/solver/bin/starexec_run_its /export/starexec/sandbox/benchmark/theBenchmark.koat /export/starexec/sandbox/output/output_files -------------------------------------------------------------------------------- WORST_CASE(?,O(n^2)) Preprocessing Cost Relations ===================================== #### Computed strongly connected components 0. recursive : [evalfbb1in/4,evalfbb2in/4] 1. recursive : [evalfbb2in_loop_cont/8,evalfbb3in/7,evalfbb4in/7] 2. non_recursive : [evalfstop/5] 3. non_recursive : [evalfreturnin/5] 4. non_recursive : [exit_location/1] 5. non_recursive : [evalfbb4in_loop_cont/6] 6. non_recursive : [evalfentryin/5] 7. non_recursive : [evalfstart/5] #### Obtained direct recursion through partial evaluation 0. SCC is partially evaluated into evalfbb2in/4 1. SCC is partially evaluated into evalfbb4in/7 2. SCC is completely evaluated into other SCCs 3. SCC is completely evaluated into other SCCs 4. SCC is completely evaluated into other SCCs 5. SCC is partially evaluated into evalfbb4in_loop_cont/6 6. SCC is partially evaluated into evalfentryin/5 7. SCC is partially evaluated into evalfstart/5 Control-Flow Refinement of Cost Relations ===================================== ### Specialization of cost equations evalfbb2in/4 * CE 11 is refined into CE [12] * CE 10 is refined into CE [13] * CE 9 is refined into CE [14] ### Cost equations --> "Loop" of evalfbb2in/4 * CEs [14] --> Loop 12 * CEs [12] --> Loop 13 * CEs [13] --> Loop 14 ### Ranking functions of CR evalfbb2in(C,D,E,F) * RF of phase [12]: [-C+D+1] #### Partial ranking functions of CR evalfbb2in(C,D,E,F) * Partial RF of phase [12]: - RF of loop [12:1]: -C+D+1 ### Specialization of cost equations evalfbb4in/7 * CE 5 is refined into CE [15] * CE 3 is refined into CE [16,17] * CE 6 is refined into CE [18] * CE 4 is refined into CE [19,20] ### Cost equations --> "Loop" of evalfbb4in/7 * CEs [20] --> Loop 15 * CEs [19] --> Loop 16 * CEs [15] --> Loop 17 * CEs [16] --> Loop 18 * CEs [17] --> Loop 19 * CEs [18] --> Loop 20 ### Ranking functions of CR evalfbb4in(A,B,C,D,E,F,G) * RF of phase [15]: [-A+B+1] * RF of phase [16]: [-A+B+1] #### Partial ranking functions of CR evalfbb4in(A,B,C,D,E,F,G) * Partial RF of phase [15]: - RF of loop [15:1]: -A+B+1 * Partial RF of phase [16]: - RF of loop [16:1]: -A+B+1 ### Specialization of cost equations evalfbb4in_loop_cont/6 * CE 7 is refined into CE [21] * CE 8 is refined into CE [22] ### Cost equations --> "Loop" of evalfbb4in_loop_cont/6 * CEs [21] --> Loop 21 * CEs [22] --> Loop 22 ### Ranking functions of CR evalfbb4in_loop_cont(A,B,C,D,E,F) #### Partial ranking functions of CR evalfbb4in_loop_cont(A,B,C,D,E,F) ### Specialization of cost equations evalfentryin/5 * CE 2 is refined into CE [23,24,25,26,27,28,29,30,31] ### Cost equations --> "Loop" of evalfentryin/5 * CEs [27] --> Loop 23 * CEs [26,31] --> Loop 24 * CEs [28] --> Loop 25 * CEs [24] --> Loop 26 * CEs [23,29] --> Loop 27 * CEs [30] --> Loop 28 * CEs [25] --> Loop 29 ### Ranking functions of CR evalfentryin(A,B,C,D,E) #### Partial ranking functions of CR evalfentryin(A,B,C,D,E) ### Specialization of cost equations evalfstart/5 * CE 1 is refined into CE [32,33,34,35,36,37,38] ### Cost equations --> "Loop" of evalfstart/5 * CEs [38] --> Loop 30 * CEs [37] --> Loop 31 * CEs [36] --> Loop 32 * CEs [35] --> Loop 33 * CEs [34] --> Loop 34 * CEs [33] --> Loop 35 * CEs [32] --> Loop 36 ### Ranking functions of CR evalfstart(A,B,C,D,E) #### Partial ranking functions of CR evalfstart(A,B,C,D,E) Computing Bounds ===================================== #### Cost of chains of evalfbb2in(C,D,E,F): * Chain [[12],14]: 1*it(12)+0 Such that:it(12) =< -C+F with precondition: [E=2,D+1=F,C>=1,D>=C] * Chain [[12],13]: 1*it(12)+0 Such that:it(12) =< -C+D+1 with precondition: [E=3,C>=1,D>=C] * Chain [14]: 0 with precondition: [E=2,C=F,C>=1,C>=D+1] * Chain [13]: 0 with precondition: [E=3,C>=1] #### Cost of chains of evalfbb4in(A,B,C,D,E,F,G): * Chain [[16],20]: 1*it(16)+0 Such that:it(16) =< -A+B+1 with precondition: [E=3,0>=D,A>=1,B>=A] * Chain [[16],18]: 1*it(16)+0 Such that:it(16) =< -A+B with precondition: [E=3,0>=D,A>=1,B>=A+1] * Chain [[16],17]: 1*it(16)+0 Such that:it(16) =< -A+F with precondition: [E=4,G=1,B+1=F,0>=D,A>=1,B>=A] * Chain [[15],20]: 1*it(15)+1*s(3)+0 Such that:it(15) =< -A+B+1 aux(1) =< D+1 s(3) =< it(15)*aux(1) with precondition: [E=3,A>=1,D>=1,B>=A] * Chain [[15],19]: 1*it(15)+1*s(3)+1*s(4)+0 Such that:it(15) =< -A+B s(4) =< D aux(1) =< D+1 s(3) =< it(15)*aux(1) with precondition: [E=3,A>=1,D>=1,B>=A+1] * Chain [[15],18]: 1*it(15)+1*s(3)+0 Such that:it(15) =< -A+B aux(1) =< D+1 s(3) =< it(15)*aux(1) with precondition: [E=3,A>=1,D>=1,B>=A+1] * Chain [[15],17]: 1*it(15)+1*s(3)+0 Such that:it(15) =< -A+F aux(1) =< D+1 s(3) =< it(15)*aux(1) with precondition: [E=4,B+1=F,D+1=G,A>=1,D>=1,B>=A] * Chain [20]: 0 with precondition: [E=3,A>=1] * Chain [19]: 1*s(4)+0 Such that:s(4) =< D with precondition: [E=3,A>=1,D>=1,B>=A] * Chain [18]: 0 with precondition: [E=3,A>=1,B>=A] * Chain [17]: 0 with precondition: [E=4,G=C,A=F,A>=1,A>=B+1] #### Cost of chains of evalfbb4in_loop_cont(A,B,C,D,E,F): * Chain [22]: 0 with precondition: [A=3] * Chain [21]: 0 with precondition: [A=4] #### Cost of chains of evalfentryin(A,B,C,D,E): * Chain [29]: 0 with precondition: [] * Chain [28]: 0 with precondition: [0>=B] * Chain [27]: 2*s(16)+0 Such that:aux(4) =< B s(16) =< aux(4) with precondition: [0>=D,B>=1] * Chain [26]: 1*s(18)+0 Such that:s(18) =< B with precondition: [0>=D,B>=2] * Chain [25]: 0 with precondition: [B>=1] * Chain [24]: 2*s(19)+1*s(20)+2*s(22)+0 Such that:s(20) =< D aux(5) =< B aux(6) =< D+1 s(19) =< aux(5) s(22) =< s(19)*aux(6) with precondition: [B>=1,D>=1] * Chain [23]: 1*s(26)+2*s(29)+2*s(30)+0 Such that:s(27) =< B s(26) =< D s(28) =< D+1 s(29) =< s(27) s(30) =< s(29)*s(28) with precondition: [B>=2,D>=1] #### Cost of chains of evalfstart(A,B,C,D,E): * Chain [36]: 0 with precondition: [] * Chain [35]: 0 with precondition: [0>=B] * Chain [34]: 2*s(32)+0 Such that:s(31) =< B s(32) =< s(31) with precondition: [0>=D,B>=1] * Chain [33]: 1*s(33)+0 Such that:s(33) =< B with precondition: [0>=D,B>=2] * Chain [32]: 0 with precondition: [B>=1] * Chain [31]: 1*s(34)+2*s(37)+2*s(38)+0 Such that:s(35) =< B s(34) =< D s(36) =< D+1 s(37) =< s(35) s(38) =< s(37)*s(36) with precondition: [B>=1,D>=1] * Chain [30]: 1*s(40)+2*s(42)+2*s(43)+0 Such that:s(39) =< B s(40) =< D s(41) =< D+1 s(42) =< s(39) s(43) =< s(42)*s(41) with precondition: [B>=2,D>=1] Closed-form bounds of evalfstart(A,B,C,D,E): ------------------------------------- * Chain [36] with precondition: [] - Upper bound: 0 - Complexity: constant * Chain [35] with precondition: [0>=B] - Upper bound: 0 - Complexity: constant * Chain [34] with precondition: [0>=D,B>=1] - Upper bound: 2*B - Complexity: n * Chain [33] with precondition: [0>=D,B>=2] - Upper bound: B - Complexity: n * Chain [32] with precondition: [B>=1] - Upper bound: 0 - Complexity: constant * Chain [31] with precondition: [B>=1,D>=1] - Upper bound: (D+1)*(2*B)+2*B+D - Complexity: n^2 * Chain [30] with precondition: [B>=2,D>=1] - Upper bound: (D+1)*(2*B)+2*B+D - Complexity: n^2 ### Maximum cost of evalfstart(A,B,C,D,E): nat(B)*2*nat(D+1)+nat(D)+nat(B)+nat(B) Asymptotic class: n^2 * Total analysis performed in 287 ms.