brintos

brintos / llvm-project-archived public Read only

0
0
Text · 814 B · 96e9f19 Raw
26 lines · c
1if (c2 >= d2 + 1) {2  for (int c0 = a1; c0 <= b1; c0 += 1)3    for (int c1_0 = c1; c1_0 <= d1; c1_0 += 1)4      s0(c0, c1_0);5} else {6  for (int c0 = a1; c0 <= min(b1, a2 - 1); c0 += 1)7    for (int c1_0 = c1; c1_0 <= d1; c1_0 += 1)8      s0(c0, c1_0);9  for (int c0 = a2; c0 <= b2; c0 += 1) {10    if (c0 >= a1 && b1 >= c0)11      for (int c1_0 = c1; c1_0 <= min(d1, c2 - 1); c1_0 += 1)12        s0(c0, c1_0);13    for (int c1_0 = c2; c1_0 <= d2; c1_0 += 1) {14      if (c0 >= a1 && b1 >= c0 && c1_0 >= c1 && d1 >= c1_0)15        s0(c0, c1_0);16      s1(c0, c1_0);17    }18    if (c0 >= a1 && b1 >= c0)19      for (int c1_0 = max(c1, d2 + 1); c1_0 <= d1; c1_0 += 1)20        s0(c0, c1_0);21  }22  for (int c0 = max(max(a1, a2), b2 + 1); c0 <= b1; c0 += 1)23    for (int c1_0 = c1; c1_0 <= d1; c1_0 += 1)24      s0(c0, c1_0);25}26