aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/ModuloSched/arith-simple.c
blob: 7f3b83ef27e46326bb1246ad6dc408fa63422265 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>

int main (int argc, char** argv) {
  int a, b, c, d, i;
  
  a = b = c = d = 1;
  
  for (i=0; i < 15; i++) {
    a = b + c;
    c = d - b;
    d = a + b;
    b = c + i;
  }

  printf("a = %d, b = %d, c = %d, d = %d\n", a, b, c, d);

  return 0;
}