File: reservoir-mg-rprj3.c

package info (click to toggle)
isl 0.12.2-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 9,164 kB
  • ctags: 6,976
  • sloc: ansic: 86,111; sh: 11,923; python: 1,907; cpp: 593; makefile: 352; perl: 9
file content (33 lines) | stat: -rw-r--r-- 880 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
if (M >= 2 && N >= 3)
  for (int c1 = 2; c1 < O; c1 += 1) {
    for (int c5 = 2; c5 <= M; c5 += 1)
      S1(c1, 2, c5);
    for (int c3 = 3; c3 < N; c3 += 1) {
      for (int c5 = 2; c5 <= M; c5 += 1)
        S2(c1, c3 - 1, c5);
      if (M >= 3) {
        S4(c1, c3 - 1, 2);
        for (int c5 = 2; c5 < M - 1; c5 += 1) {
          S3(c1, c3 - 1, c5);
          S5(c1, c3 - 1, c5);
          S4(c1, c3 - 1, c5 + 1);
        }
        S3(c1, c3 - 1, M - 1);
        S5(c1, c3 - 1, M - 1);
      }
      for (int c5 = 2; c5 <= M; c5 += 1)
        S1(c1, c3, c5);
    }
    for (int c5 = 2; c5 <= M; c5 += 1)
      S2(c1, N - 1, c5);
    if (M >= 3) {
      S4(c1, N - 1, 2);
      for (int c5 = 2; c5 < M - 1; c5 += 1) {
        S3(c1, N - 1, c5);
        S5(c1, N - 1, c5);
        S4(c1, N - 1, c5 + 1);
      }
      S3(c1, N - 1, M - 1);
      S5(c1, N - 1, M - 1);
    }
  }