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