~ubuntu-branches/ubuntu/trusty/cloog/trusty

« back to all changes in this revision

Viewing changes to isl/test_inputs/codegen/cloog/walters.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-01-13 04:29:53 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20130113042953-yffow2nvsub33dcd
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{
 
2
  S2(1, 0, 1, 0);
 
3
  S4(1, 0, 1, 0);
 
4
  S3(2, 0, 1, 1);
 
5
  S4(2, 0, 1, 1);
 
6
  for (int c0 = 3; c0 <= 10; c0 += 1) {
 
7
    if (c0 % 3 == 0) {
 
8
      S1(c0, c0 / 3, c0 / 3, c0 / 3);
 
9
    } else if ((c0 - 1) % 3 == 0) {
 
10
      S2(c0, (c0 - 1) / 3, (c0 + 2) / 3, (c0 - 1) / 3);
 
11
    } else
 
12
      S3(c0, (c0 - 2) / 3, (c0 + 1) / 3, (c0 + 1) / 3);
 
13
    S4(c0, c0 / 3, (c0 - 1) / 3 + 1, c0 - (c0 - 1) / 3 - c0 / 3 - 1);
 
14
  }
 
15
}