1 for (int c0 = 2; c0 < O; c0 += 1)
2   for (int c1 = 3; c1 < 2 * N - 2; c1 += 2) {
3     for (int c3 = 1; c3 <= M; c3 += 1) {
4       S1(c0, (c1 + 1) / 2, c3);
5       S2(c0, (c1 + 1) / 2, c3);
6     }
7     for (int c3 = 2; c3 < M; c3 += 1)
8       S3(c0, (c1 + 1) / 2, c3);
9   }
10