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

#### Computed strongly connected components 
0. recursive  : [evalrealbubblebb1in/8,evalrealbubblebb2in/8,evalrealbubblebb3in/8,evalrealbubblebb4in/8]
1. recursive  : [evalrealbubblebb4in_loop_cont/10,evalrealbubblebb5in/9,evalrealbubblebb6in/9,evalrealbubblebb7in/9]
2. non_recursive  : [evalrealbubblestop/5]
3. non_recursive  : [evalrealbubblereturnin/5]
4. non_recursive  : [exit_location/1]
5. non_recursive  : [evalrealbubblebb7in_loop_cont/6]
6. non_recursive  : [evalrealbubbleentryin/5]
7. non_recursive  : [evalrealbubblestart/5]

#### Obtained direct recursion through partial evaluation 
0. SCC is partially evaluated into evalrealbubblebb4in/8
1. SCC is partially evaluated into evalrealbubblebb7in/9
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 evalrealbubblebb7in_loop_cont/6
6. SCC is partially evaluated into evalrealbubbleentryin/5
7. SCC is partially evaluated into evalrealbubblestart/5

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

### Specialization of cost equations evalrealbubblebb4in/8 
* CE 14 is refined into CE [15] 
* CE 13 is refined into CE [16] 
* CE 11 is refined into CE [17] 
* CE 12 is refined into CE [18] 


### Cost equations --> "Loop" of evalrealbubblebb4in/8 
* CEs [17] --> Loop 15 
* CEs [18] --> Loop 16 
* CEs [15] --> Loop 17 
* CEs [16] --> Loop 18 

### Ranking functions of CR evalrealbubblebb4in(A,B,C,D,G,H,I,J) 
* RF of phase [15,16]: [A-B]

#### Partial ranking functions of CR evalrealbubblebb4in(A,B,C,D,G,H,I,J) 
* Partial RF of phase [15,16]:
  - RF of loop [15:1,16:1]:
    A-B


### Specialization of cost equations evalrealbubblebb7in/9 
* CE 7 is refined into CE [19] 
* CE 3 is refined into CE [20] 
* CE 6 is refined into CE [21,22] 
* CE 8 is refined into CE [23] 
* CE 5 is refined into CE [24] 
* CE 4 is discarded (unfeasible) 


### Cost equations --> "Loop" of evalrealbubblebb7in/9 
* CEs [24] --> Loop 19 
* CEs [19] --> Loop 20 
* CEs [20] --> Loop 21 
* CEs [21,22] --> Loop 22 
* CEs [23] --> Loop 23 

### Ranking functions of CR evalrealbubblebb7in(A,B,C,D,G,H,I,J,K) 
* RF of phase [19]: [A]

#### Partial ranking functions of CR evalrealbubblebb7in(A,B,C,D,G,H,I,J,K) 
* Partial RF of phase [19]:
  - RF of loop [19:1]:
    A


### Specialization of cost equations evalrealbubblebb7in_loop_cont/6 
* CE 9 is refined into CE [25] 
* CE 10 is refined into CE [26] 


### Cost equations --> "Loop" of evalrealbubblebb7in_loop_cont/6 
* CEs [25] --> Loop 24 
* CEs [26] --> Loop 25 

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

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


### Specialization of cost equations evalrealbubbleentryin/5 
* CE 2 is refined into CE [27,28,29,30,31,32,33] 


### Cost equations --> "Loop" of evalrealbubbleentryin/5 
* CEs [29,32] --> Loop 26 
* CEs [28,30,31] --> Loop 27 
* CEs [33] --> Loop 28 
* CEs [27] --> Loop 29 

### Ranking functions of CR evalrealbubbleentryin(A,B,C,D,G) 

#### Partial ranking functions of CR evalrealbubbleentryin(A,B,C,D,G) 


### Specialization of cost equations evalrealbubblestart/5 
* CE 1 is refined into CE [34,35,36,37] 


### Cost equations --> "Loop" of evalrealbubblestart/5 
* CEs [37] --> Loop 30 
* CEs [36] --> Loop 31 
* CEs [35] --> Loop 32 
* CEs [34] --> Loop 33 

### Ranking functions of CR evalrealbubblestart(A,B,C,D,G) 

#### Partial ranking functions of CR evalrealbubblestart(A,B,C,D,G) 


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

#### Cost of chains of evalrealbubblebb4in(A,B,C,D,G,H,I,J):
* Chain [[15,16],18]: 2*it(15)+0
  Such that:aux(3) =< -B+H
it(15) =< aux(3)

  with precondition: [G=2,A=H,I=J,C>=0,I>=0,A>=B+1,B>=C,A+C>=B+I] 

* Chain [[15,16],17]: 2*it(15)+0
  Such that:aux(4) =< A-B
it(15) =< aux(4)

  with precondition: [G=3,C>=0,A>=B+1,B>=C] 

* Chain [17]: 0
  with precondition: [G=3,A>=1,C>=0,B>=C] 


#### Cost of chains of evalrealbubblebb7in(A,B,C,D,G,H,I,J,K):
* Chain [[19],23]: 1*it(19)+2*s(5)+0
  Such that:aux(7) =< A
it(19) =< aux(7)
s(6) =< it(19)*aux(7)
s(5) =< s(6)

  with precondition: [G=3,A>=1] 

* Chain [[19],22]: 3*it(19)+2*s(5)+0
  Such that:aux(8) =< A
it(19) =< aux(8)
s(6) =< it(19)*aux(8)
s(5) =< s(6)

  with precondition: [G=3,A>=2] 

* Chain [[19],21]: 1*it(19)+2*s(5)+2*s(10)+0
  Such that:aux(6) =< A
it(19) =< A-H
s(9) =< H
s(10) =< s(9)
it(19) =< aux(6)
s(6) =< it(19)*aux(6)
s(5) =< s(6)

  with precondition: [G=4,J=0,K=0,H=I,H>=1,A>=H+1] 

* Chain [[19],20]: 1*it(19)+2*s(5)+0
  Such that:aux(9) =< A
it(19) =< aux(9)
s(6) =< it(19)*aux(9)
s(5) =< s(6)

  with precondition: [G=4,H=0,I=1,J=1,K=1,A>=1] 

* Chain [23]: 0
  with precondition: [G=3] 

* Chain [22]: 2*s(8)+0
  Such that:s(7) =< A
s(8) =< s(7)

  with precondition: [G=3,A>=1] 

* Chain [21]: 2*s(10)+0
  Such that:s(9) =< A
s(10) =< s(9)

  with precondition: [G=4,J=0,K=0,A=H,A=I,A>=1] 

* Chain [20]: 0
  with precondition: [G=4,I=B,J=C,K=D,A=H,0>=A] 


#### Cost of chains of evalrealbubblebb7in_loop_cont(A,B,C,D,E,F):
* Chain [25]: 0
  with precondition: [A=3] 

* Chain [24]: 0
  with precondition: [A=4] 


#### Cost of chains of evalrealbubbleentryin(A,B,C,D,G):
* Chain [29]: 0
  with precondition: [] 

* Chain [28]: 0
  with precondition: [1>=A] 

* Chain [27]: 6*s(18)+4*s(20)+0
  Such that:aux(11) =< A
s(18) =< aux(11)
s(19) =< s(18)*aux(11)
s(20) =< s(19)

  with precondition: [A>=2] 

* Chain [26]: 6*s(28)+4*s(30)+0
  Such that:aux(13) =< A
s(28) =< aux(13)
s(29) =< s(28)*aux(13)
s(30) =< s(29)

  with precondition: [A>=3] 


#### Cost of chains of evalrealbubblestart(A,B,C,D,G):
* Chain [33]: 0
  with precondition: [] 

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

* Chain [31]: 6*s(38)+4*s(40)+0
  Such that:s(37) =< A
s(38) =< s(37)
s(39) =< s(38)*s(37)
s(40) =< s(39)

  with precondition: [A>=2] 

* Chain [30]: 6*s(42)+4*s(44)+0
  Such that:s(41) =< A
s(42) =< s(41)
s(43) =< s(42)*s(41)
s(44) =< s(43)

  with precondition: [A>=3] 


Closed-form bounds of evalrealbubblestart(A,B,C,D,G): 
-------------------------------------
* Chain [33] with precondition: [] 
    - Upper bound: 0 
    - Complexity: constant 
* Chain [32] with precondition: [1>=A] 
    - Upper bound: 0 
    - Complexity: constant 
* Chain [31] with precondition: [A>=2] 
    - Upper bound: 4*A*A+6*A 
    - Complexity: n^2 
* Chain [30] with precondition: [A>=3] 
    - Upper bound: 4*A*A+6*A 
    - Complexity: n^2 

### Maximum cost of evalrealbubblestart(A,B,C,D,G): nat(A)*4*nat(A)+nat(A)*6 
Asymptotic class: n^2 
* Total analysis performed in 149 ms.

