
Preprocessing Cost Relations
=====================================

#### Computed strongly connected components 
0. recursive  : [eval_loops_bb3_in/4,eval_loops_bb4_in/4]
1. recursive  : [eval_loops_bb1_in/5,eval_loops_bb2_in/5,eval_loops_bb3_in_loop_cont/6,eval_loops_bb5_in/5]
2. non_recursive  : [eval_loops_stop/4]
3. non_recursive  : [eval_loops_bb6_in/4]
4. non_recursive  : [exit_location/1]
5. non_recursive  : [eval_loops_bb1_in_loop_cont/5]
6. non_recursive  : [eval_loops_2/4]
7. non_recursive  : [eval_loops_1/4]
8. non_recursive  : [eval_loops_0/4]
9. non_recursive  : [eval_loops_bb0_in/4]
10. non_recursive  : [eval_loops_start/4]

#### Obtained direct recursion through partial evaluation 
0. SCC is partially evaluated into eval_loops_bb3_in/4
1. SCC is partially evaluated into eval_loops_bb1_in/5
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 eval_loops_bb1_in_loop_cont/5
6. SCC is partially evaluated into eval_loops_2/4
7. SCC is completely evaluated into other SCCs
8. SCC is completely evaluated into other SCCs
9. SCC is completely evaluated into other SCCs
10. SCC is partially evaluated into eval_loops_start/4

Control-Flow Refinement of Cost Relations
=====================================

### Specialization of cost equations eval_loops_bb3_in/4 
* CE 13 is refined into CE [14] 
* CE 12 is refined into CE [15] 
* CE 11 is refined into CE [16] 


### Cost equations --> "Loop" of eval_loops_bb3_in/4 
* CEs [16] --> Loop 14 
* CEs [14] --> Loop 15 
* CEs [15] --> Loop 16 

### Ranking functions of CR eval_loops_bb3_in(V_x_0,V_y_0,B,C) 
* RF of phase [14]: [2*V_x_0-2*V_y_0-1]

#### Partial ranking functions of CR eval_loops_bb3_in(V_x_0,V_y_0,B,C) 
* Partial RF of phase [14]:
  - RF of loop [14:1]:
    2*V_x_0-2*V_y_0-1


### Specialization of cost equations eval_loops_bb1_in/5 
* CE 7 is refined into CE [17] 
* CE 6 is refined into CE [18,19] 
* CE 8 is refined into CE [20] 
* CE 5 is refined into CE [21] 
* CE 4 is refined into CE [22] 


### Cost equations --> "Loop" of eval_loops_bb1_in/5 
* CEs [21] --> Loop 17 
* CEs [22] --> Loop 18 
* CEs [18,19] --> Loop 19 
* CEs [20] --> Loop 20 
* CEs [17] --> Loop 21 

### Ranking functions of CR eval_loops_bb1_in(V_x_0,V_y_0,B,C,D) 
* RF of phase [17]: [V_x_0-1]
* RF of phase [18]: [V_x_0+1]

#### Partial ranking functions of CR eval_loops_bb1_in(V_x_0,V_y_0,B,C,D) 
* Partial RF of phase [17]:
  - RF of loop [17:1]:
    V_x_0-1
* Partial RF of phase [18]:
  - RF of loop [18:1]:
    V_x_0+1


### Specialization of cost equations eval_loops_bb1_in_loop_cont/5 
* CE 9 is refined into CE [23] 
* CE 10 is refined into CE [24] 


### Cost equations --> "Loop" of eval_loops_bb1_in_loop_cont/5 
* CEs [23] --> Loop 22 
* CEs [24] --> Loop 23 

### Ranking functions of CR eval_loops_bb1_in_loop_cont(A,B,C,D,E) 

#### Partial ranking functions of CR eval_loops_bb1_in_loop_cont(A,B,C,D,E) 


### Specialization of cost equations eval_loops_2/4 
* CE 3 is refined into CE [25,26,27,28,29,30] 
* CE 2 is refined into CE [31] 


### Cost equations --> "Loop" of eval_loops_2/4 
* CEs [28] --> Loop 24 
* CEs [27,29] --> Loop 25 
* CEs [26] --> Loop 26 
* CEs [31] --> Loop 27 
* CEs [25,30] --> Loop 28 

### Ranking functions of CR eval_loops_2(V_n,V_x_0,V_y_0,B) 

#### Partial ranking functions of CR eval_loops_2(V_n,V_x_0,V_y_0,B) 


### Specialization of cost equations eval_loops_start/4 
* CE 1 is refined into CE [32,33,34,35,36] 


### Cost equations --> "Loop" of eval_loops_start/4 
* CEs [36] --> Loop 29 
* CEs [35] --> Loop 30 
* CEs [34] --> Loop 31 
* CEs [33] --> Loop 32 
* CEs [32] --> Loop 33 

### Ranking functions of CR eval_loops_start(V_n,V_x_0,V_y_0,B) 

#### Partial ranking functions of CR eval_loops_start(V_n,V_x_0,V_y_0,B) 


Computing Bounds
=====================================

#### Cost of chains of eval_loops_bb3_in(V_x_0,V_y_0,B,C):
* Chain [[14],16]: 1*it(14)+0
  Such that:it(14) =< 2*V_x_0-2*V_y_0

  with precondition: [B=2,V_y_0>=1,C>=2*V_y_0,C>=V_x_0,2*V_x_0>=C+2] 

* Chain [[14],15]: 1*it(14)+0
  Such that:it(14) =< 2*V_x_0-2*V_y_0

  with precondition: [B=3,V_y_0>=1,V_x_0>=V_y_0+1] 

* Chain [15]: 0
  with precondition: [B=3,V_x_0>=2,V_y_0>=1] 


#### Cost of chains of eval_loops_bb1_in(V_x_0,V_y_0,B,C,D):
* Chain [[18],21]: 1*it(18)+0
  Such that:it(18) =< V_x_0+1

  with precondition: [B=4,C+1=0,V_y_0=D,1>=V_x_0,V_x_0>=0] 

* Chain [[18],20]: 1*it(18)+0
  Such that:it(18) =< V_x_0+1

  with precondition: [B=3,1>=V_x_0,V_x_0>=0] 

* Chain [[17],[18],21]: 1*it(17)+1*it(18)+1*s(3)+0
  Such that:it(18) =< 2
it(17) =< V_x_0
aux(1) =< 2*V_x_0
s(3) =< it(17)*aux(1)

  with precondition: [B=4,C+1=0,D=2,V_x_0>=2] 

* Chain [[17],[18],20]: 1*it(17)+1*it(18)+1*s(3)+0
  Such that:it(18) =< 2
it(17) =< V_x_0
aux(1) =< 2*V_x_0
s(3) =< it(17)*aux(1)

  with precondition: [B=3,V_x_0>=2] 

* Chain [[17],20]: 1*it(17)+1*s(3)+0
  Such that:it(17) =< V_x_0
aux(1) =< 2*V_x_0
s(3) =< it(17)*aux(1)

  with precondition: [B=3,V_x_0>=2] 

* Chain [[17],19]: 1*it(17)+1*s(3)+1*s(4)+0
  Such that:it(17) =< V_x_0
aux(2) =< 2*V_x_0
it(17) =< aux(2)
s(4) =< aux(2)
s(3) =< it(17)*aux(2)

  with precondition: [B=3,V_x_0>=3] 

* Chain [20]: 0
  with precondition: [B=3,V_x_0+1>=0] 

* Chain [19]: 1*s(4)+0
  Such that:s(4) =< 2*V_x_0

  with precondition: [B=3,V_x_0>=2] 


#### Cost of chains of eval_loops_bb1_in_loop_cont(A,B,C,D,E):
* Chain [23]: 0
  with precondition: [A=3,B>=0] 

* Chain [22]: 0
  with precondition: [A=4,B>=0] 


#### Cost of chains of eval_loops_2(V_n,V_x_0,V_y_0,B):
* Chain [28]: 2*s(13)+0
  Such that:aux(5) =< V_n+1
s(13) =< aux(5)

  with precondition: [1>=V_n,V_n>=0] 

* Chain [27]: 0
  with precondition: [0>=V_n+1] 

* Chain [26]: 0
  with precondition: [V_n>=0] 

* Chain [25]: 2*s(15)+3*s(18)+1*s(19)+3*s(20)+0
  Such that:aux(6) =< 2
aux(7) =< V_n
aux(8) =< 2*V_n
s(15) =< aux(6)
s(18) =< aux(7)
s(19) =< aux(8)
s(20) =< s(18)*aux(8)

  with precondition: [V_n>=2] 

* Chain [24]: 1*s(25)+1*s(27)+1*s(28)+0
  Such that:s(25) =< V_n
s(26) =< 2*V_n
s(25) =< s(26)
s(27) =< s(26)
s(28) =< s(25)*s(26)

  with precondition: [V_n>=3] 


#### Cost of chains of eval_loops_start(V_n,V_x_0,V_y_0,B):
* Chain [33]: 2*s(30)+0
  Such that:s(29) =< V_n+1
s(30) =< s(29)

  with precondition: [1>=V_n,V_n>=0] 

* Chain [32]: 0
  with precondition: [0>=V_n+1] 

* Chain [31]: 0
  with precondition: [V_n>=0] 

* Chain [30]: 2*s(34)+3*s(35)+1*s(36)+3*s(37)+0
  Such that:s(31) =< 2
s(32) =< V_n
s(33) =< 2*V_n
s(34) =< s(31)
s(35) =< s(32)
s(36) =< s(33)
s(37) =< s(35)*s(33)

  with precondition: [V_n>=2] 

* Chain [29]: 1*s(38)+1*s(40)+1*s(41)+0
  Such that:s(38) =< V_n
s(39) =< 2*V_n
s(38) =< s(39)
s(40) =< s(39)
s(41) =< s(38)*s(39)

  with precondition: [V_n>=3] 


Closed-form bounds of eval_loops_start(V_n,V_x_0,V_y_0,B): 
-------------------------------------
* Chain [33] with precondition: [1>=V_n,V_n>=0] 
    - Upper bound: 2*V_n+2 
    - Complexity: n 
* Chain [32] with precondition: [0>=V_n+1] 
    - Upper bound: 0 
    - Complexity: constant 
* Chain [31] with precondition: [V_n>=0] 
    - Upper bound: 0 
    - Complexity: constant 
* Chain [30] with precondition: [V_n>=2] 
    - Upper bound: 3*V_n+4+3*V_n*(2*V_n)+2*V_n 
    - Complexity: n^2 
* Chain [29] with precondition: [V_n>=3] 
    - Upper bound: 2*V_n*V_n+V_n+2*V_n 
    - Complexity: n^2 

### Maximum cost of eval_loops_start(V_n,V_x_0,V_y_0,B): max([nat(V_n+1)*2,nat(2*V_n)*nat(V_n)+nat(V_n)+nat(2*V_n)+(nat(V_n)*2+4+nat(V_n)*2*nat(2*V_n))]) 
Asymptotic class: n^2 
* Total analysis performed in 101 ms.

