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

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

