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

#### Computed strongly connected components 
0. recursive  : [f1/5]
1. non_recursive  : [exit_location/1]
2. recursive  : [f4/3]
3. non_recursive  : [f4_loop_cont/2]
4. non_recursive  : [f1_loop_cont/5]
5. non_recursive  : [f0/4]

#### Obtained direct recursion through partial evaluation 
0. SCC is partially evaluated into f1/5
1. SCC is completely evaluated into other SCCs
2. SCC is partially evaluated into f4/3
3. SCC is completely evaluated into other SCCs
4. SCC is partially evaluated into f1_loop_cont/5
5. SCC is partially evaluated into f0/4

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

### Specialization of cost equations f1/5 
* CE 4 is refined into CE [11] 
* CE 5 is refined into CE [12] 
* CE 3 is refined into CE [13] 
* CE 2 is refined into CE [14] 


### Cost equations --> "Loop" of f1/5 
* CEs [13] --> Loop 11 
* CEs [14] --> Loop 12 
* CEs [11] --> Loop 13 
* CEs [12] --> Loop 14 

### Ranking functions of CR f1(B,C,E,F,G) 
* RF of phase [11,12]: [B]

#### Partial ranking functions of CR f1(B,C,E,F,G) 
* Partial RF of phase [11,12]:
  - RF of loop [11:1]:
    B/2
  - RF of loop [12:1]:
    B


### Specialization of cost equations f4/3 
* CE 10 is refined into CE [15] 
* CE 9 is refined into CE [16] 
* CE 8 is refined into CE [17] 


### Cost equations --> "Loop" of f4/3 
* CEs [16] --> Loop 15 
* CEs [17] --> Loop 16 
* CEs [15] --> Loop 17 

### Ranking functions of CR f4(A,C,E) 

#### Partial ranking functions of CR f4(A,C,E) 


### Specialization of cost equations f1_loop_cont/5 
* CE 7 is refined into CE [18,19] 
* CE 6 is refined into CE [20] 


### Cost equations --> "Loop" of f1_loop_cont/5 
* CEs [18] --> Loop 18 
* CEs [20] --> Loop 19 
* CEs [19] --> Loop 20 

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

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


### Specialization of cost equations f0/4 
* CE 1 is refined into CE [21,22,23,24,25,26] 


### Cost equations --> "Loop" of f0/4 
* CEs [26] --> Loop 21 
* CEs [24] --> Loop 22 
* CEs [22,25] --> Loop 23 
* CEs [23] --> Loop 24 
* CEs [21] --> Loop 25 

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

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


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

#### Cost of chains of f1(B,C,E,F,G):
* Chain [[11,12],14]: 1*it(11)+1*it(12)+0
  Such that:aux(1) =< B
aux(2) =< B+1
it(11) =< B/2
it(11) =< aux(1)
it(12) =< aux(1)
it(11) =< aux(2)
it(12) =< aux(2)

  with precondition: [E=2,B>=1] 

* Chain [[11,12],13]: 1*it(11)+1*it(12)+0
  Such that:aux(1) =< B
aux(2) =< B-F
it(11) =< B/2
it(11) =< aux(1)
it(12) =< aux(1)
it(11) =< aux(2)
it(12) =< aux(2)

  with precondition: [E=3,0>=F,B>=1,F+1>=0] 

* Chain [14]: 0
  with precondition: [E=2] 

* Chain [13]: 0
  with precondition: [E=3,B=F,0>=B] 


#### Cost of chains of f4(A,C,E):
* Chain [[15,16]]...: 2*it(15)+0
  with precondition: [A>=0,2>=A,E=2] 

* Chain [[15,16],17]: 2*it(15)+0
  with precondition: [E=2,2>=A,A>=0] 

* Chain [17]: 0
  with precondition: [E=2,2>=A,A>=0] 


#### Cost of chains of f1_loop_cont(A,B,C,D,E):
* Chain [20]...: 2*s(2)+0
  with precondition: [A=3,B=0] 

* Chain [19]: 0
  with precondition: [A=2,B=0] 

* Chain [18]: 1*s(3)+0
  with precondition: [A=3,B=0] 


#### Cost of chains of f0(A,B,C,E):
* Chain [25]: 0
  with precondition: [] 

* Chain [24]: 1*s(4)+0
  with precondition: [0>=B] 

* Chain [23]: 2*s(7)+2*s(8)+1*s(13)+0
  Such that:aux(4) =< B
aux(5) =< B+1
aux(6) =< B/2
s(7) =< aux(6)
s(7) =< aux(4)
s(8) =< aux(4)
s(7) =< aux(5)
s(8) =< aux(5)

  with precondition: [B>=1] 

* Chain [22]...: 2*s(14)+0
  with precondition: [0>=B] 

* Chain [21]...: 1*s(17)+1*s(18)+2*s(19)+0
  Such that:s(15) =< B
s(16) =< B+1
s(17) =< B/2
s(17) =< s(15)
s(18) =< s(15)
s(17) =< s(16)
s(18) =< s(16)

  with precondition: [B>=1] 


Closed-form bounds of f0(A,B,C,E): 
-------------------------------------
* Chain [25] with precondition: [] 
    - Upper bound: 0 
    - Complexity: constant 
* Chain [24] with precondition: [0>=B] 
    - Upper bound: inf 
    - Complexity: infinity 
* Chain [23] with precondition: [B>=1] 
    - Upper bound: inf 
    - Complexity: infinity 
* Chain [22]... with precondition: [0>=B] 
    - Upper bound: inf 
    - Complexity: infinity 
* Chain [21]... with precondition: [B>=1] 
    - Upper bound: inf 
    - Complexity: infinity 

### Maximum cost of f0(A,B,C,E): inf 
Asymptotic class: infinity 
* Total analysis performed in 54 ms.

