aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/cse2/loopinvariant.c
blob: 64caf80b55257b0fc645c3666eb6f83c80a3a74a (plain)
1
2
3
4
5
6
7
int toto(int *t, int n) {
  int x = t[0];
  for(int i=1; i<n; i++) {
    if (t[i] > t[0]) return i;
  }
  return 0;
}