#pragma TASS input 
int N_BOUND;
#pragma TASS input {n>=0 && n<=N_BOUND} 
int n; 
#pragma TASS output  is t
int t; 

void main () {
  int j=0;
  int i=0;
  
  l2: 
  #pragma TASS jointinvariant @main {j == spec.i - 1}
  while (j > n) {
    j = j + 1;
    i = i + j;
  }
  t = i;
}
