main(argc, argv) int argc;
char *argv[];
{
  int n, i, d;
  if (argc < 2)
    goto usage;
  n = atoi(argv[1]);
  if (n < 2)
    goto usage;
  printf("c very bad maxflow problem\n");
  printf("p max %d %d\n", 4 * n + 6, 6 * n + 7);
  printf("n 1 s\n");
  printf("n 2 t\n");
  for (i = 0; i < n; i++) {
    printf("a %d %d %d\n", i + 3, i + 4, n - i + 1);
    printf("a %d %d %d\n", i + 3, n + 4, 1);
  }
  printf("a %d %d %d\n", n + 3, 2 * n + 4, 1);
  printf("a %d %d %d\n", n + 3, n + 4, 1);
  for (i = n + 3; i <= 2 * n + 2; i++)
    printf("a %d %d %d\n", i + 1, i + 2, n + 1);
  d = 2 * n + 4;
  for (i = d; i <= 2 * n + d; i++)
    printf("a %d %d %d\n", i + 1, i + 2, n);
  for (i = 0; i < n; i++)
    printf("a %d %d %d\n", i + d + 1, 2 * n + 2 - i + d, 1);
  printf("a 1 3 1000000\n");
  printf("a 1 %d 1000000\n", d + 1);
  printf("a %d 2 1000000\n", d);
  printf("a %d 2 1000000\n", 4 * n + 6);
  exit(0);
usage:
  printf(" usage: ak n (n>1)\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1155 <main+0x25>
jmp    139b <main+0x26b>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    $0x0,%al
call   1040 <atoi@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x2,-0x14(%rbp)
jge    1176 <main+0x46>
jmp    139b <main+0x26b>
lea    0xe83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
shl    $0x2,%esi
add    $0x6,%esi
imul   $0x6,-0x14(%rbp),%edx
add    $0x7,%edx
lea    0xe81(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe79(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1221 <main+0xf1>
mov    -0x18(%rbp),%esi
add    $0x3,%esi
mov    -0x18(%rbp),%edx
add    $0x4,%edx
mov    -0x14(%rbp),%ecx
sub    -0x18(%rbp),%ecx
add    $0x1,%ecx
lea    0xe4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
add    $0x3,%esi
mov    -0x14(%rbp),%edx
add    $0x4,%edx
lea    0xe30(%rip),%rdi
mov    $0x1,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11c5 <main+0x95>
mov    -0x14(%rbp),%esi
add    $0x3,%esi
mov    -0x14(%rbp),%edx
shl    $0x1,%edx
add    $0x4,%edx
lea    0xe00(%rip),%rdi
mov    $0x1,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
add    $0x3,%esi
mov    -0x14(%rbp),%edx
add    $0x4,%edx
lea    0xde1(%rip),%rdi
mov    $0x1,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x14(%rbp),%ecx
shl    $0x1,%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jg     12ad <main+0x17d>
mov    -0x18(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edx
add    $0x2,%edx
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
lea    0xd9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    126b <main+0x13b>
mov    -0x14(%rbp),%eax
shl    $0x1,%eax
add    $0x4,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x14(%rbp),%ecx
shl    $0x1,%ecx
add    -0x1c(%rbp),%ecx
cmp    %ecx,%eax
jg     12fe <main+0x1ce>
mov    -0x18(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edx
add    $0x2,%edx
mov    -0x14(%rbp),%ecx
lea    0xd4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12bf <main+0x18f>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    134a <main+0x21a>
mov    -0x18(%rbp),%esi
add    -0x1c(%rbp),%esi
add    $0x1,%esi
mov    -0x14(%rbp),%edx
shl    $0x1,%edx
add    $0x2,%edx
sub    -0x18(%rbp),%edx
add    -0x1c(%rbp),%edx
lea    0xd07(%rip),%rdi
mov    $0x1,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1305 <main+0x1d5>
lea    0xcf2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
lea    0xced(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    0xcec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
shl    $0x2,%esi
add    $0x6,%esi
lea    0xcd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>
lea    0xcd0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
cmp    $0x2,%edi
jl     1163 <main+0x23>
mov    0x8(%rsi),%rdi
xor    %eax,%eax
call   1050 <atoi@plt>
cmp    $0x2,%eax
jge    1180 <main+0x40>
lea    0xf04(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %eax,%r13d
lea    0xeaf(%rip),%rdi
call   1030 <puts@plt>
lea    0x6(,%r13,4),%esi
lea    0x0(%r13,%r13,2),%eax
lea    (%rax,%rax,1),%edx
add    $0x7,%edx
lea    0xe57(%rip),%rdi
mov    %esi,0x14(%rsp)
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe99(%rip),%rdi
call   1030 <puts@plt>
lea    0xe93(%rip),%rdi
call   1030 <puts@plt>
lea    0x1(%r13),%r12d
lea    0x4(%r13),%ebx
mov    $0x4,%ebp
lea    0xe2d(%rip),%r15
mov    %r12d,0x10(%rsp)
cs nopw 0x0(%rax,%rax,1)
nop
lea    -0x1(%rbp),%r14d
mov    %r15,%rdi
mov    %r14d,%esi
mov    %ebp,%edx
mov    %r12d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r14d,%esi
mov    %ebx,%edx
mov    $0x1,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
add    $0xffffffff,%r12d
add    $0x1,%ebp
cmp    $0x1,%r12d
jne    11f0 <main+0xb0>
lea    0x3(%r13),%ebp
lea    0x4(%r13,%r13,1),%edx
lea    0xdd6(%rip),%r14
mov    %r14,%rdi
mov    %ebp,%esi
mov    %rdx,0x8(%rsp)
mov    $0x1,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
mov    $0x1,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x2(%r13,%r13,1),%r12d
cmp    %r12d,%ebp
mov    0x10(%rsp),%r15d
jg     129a <main+0x15a>
lea    0x5(%r13),%ebp
lea    0xd93(%rip),%r14
mov    %r13d,%ebx
nopl   (%rax)
lea    -0x1(%rbp),%esi
mov    %r14,%rdi
mov    %ebp,%edx
mov    %r15d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%ebp
add    $0xffffffff,%ebx
jne    1280 <main+0x140>
lea    0x0(%r13,%r13,1),%ebx
test   %r13d,%r13d
js     1313 <main+0x1d3>
mov    0x8(%rsp),%rax
lea    (%rax,%rbx,1),%ebp
lea    0x3(%rbx),%r15d
lea    0xd56(%rip),%r14
nopw   0x0(%rax,%rax,1)
lea    0x2(%r15),%esi
lea    0x3(%r15),%edx
mov    %r14,%rdi
mov    %r13d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%r15d
cmp    %ebp,%r15d
jl     12c0 <main+0x180>
test   %r13d,%r13d
jle    1313 <main+0x1d3>
add    0x8(%rsp),%r12d
lea    0x5(%rbx),%ebp
lea    0xd1b(%rip),%r14
mov    %r14,%rdi
mov    %ebp,%esi
mov    %r12d,%edx
mov    $0x1,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
add    $0xffffffff,%r12d
add    $0x1,%ebp
add    $0xffffffff,%r13d
jne    12f2 <main+0x1b2>
lea    0xd46(%rip),%rdi
call   1030 <puts@plt>
add    $0x5,%ebx
lea    0xcf0(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xcf0(%rip),%rbx
mov    %rbx,%rdi
mov    0x8(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    0x14(%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [28 x i8] c"c very bad maxflow problem\0A\00"
@.str.1 = [13 x i8] c"p max %d %d\0A\00"
@.str.2 = [7 x i8] c"n 1 s\0A\00"
@.str.3 = [7 x i8] c"n 2 t\0A\00"
@.str.4 = [12 x i8] c"a %d %d %d\0A\00"
@.str.5 = [15 x i8] c"a 1 3 1000000\0A\00"
@.str.6 = [16 x i8] c"a 1 %d 1000000\0A\00"
@.str.7 = [16 x i8] c"a %d 2 1000000\0A\00"
@.str.8 = [20 x i8] c" usage: ak n (n>1)\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = load i32, i32* %4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %12
11: ; preds = %2
br label %138
12: ; preds = %2
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 1
%15 = load i8*, i8** %14
%16 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %15)
store i32 %16, i32* %6
%17 = load i32, i32* %6
%18 = icmp slt i32 %17, 2
br i1 %18, label %19, label %20
19: ; preds = %12
br label %138
20: ; preds = %12
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%22 = load i32, i32* %6
%23 = mul nsw i32 4, %22
%24 = add nsw i32 %23, 6
%25 = load i32, i32* %6
%26 = mul nsw i32 6, %25
%27 = add nsw i32 %26, 7
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %24, i32 %27)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %7
br label %31
31: ; preds = %50, %20
%32 = load i32, i32* %7
%33 = load i32, i32* %6
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %53
35: ; preds = %31
%36 = load i32, i32* %7
%37 = add nsw i32 %36, 3
%38 = load i32, i32* %7
%39 = add nsw i32 %38, 4
%40 = load i32, i32* %6
%41 = load i32, i32* %7
%42 = sub nsw i32 %40, %41
%43 = add nsw i32 %42, 1
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %37, i32 %39, i32 %43)
%45 = load i32, i32* %7
%46 = add nsw i32 %45, 3
%47 = load i32, i32* %6
%48 = add nsw i32 %47, 4
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %46, i32 %48, i32 1)
br label %50
50: ; preds = %35
%51 = load i32, i32* %7
%52 = add nsw i32 %51, 1
store i32 %52, i32* %7
br label %31
53: ; preds = %31
%54 = load i32, i32* %6
%55 = add nsw i32 %54, 3
%56 = load i32, i32* %6
%57 = mul nsw i32 2, %56
%58 = add nsw i32 %57, 4
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %55, i32 %58, i32 1)
%60 = load i32, i32* %6
%61 = add nsw i32 %60, 3
%62 = load i32, i32* %6
%63 = add nsw i32 %62, 4
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %61, i32 %63, i32 1)
%65 = load i32, i32* %6
%66 = add nsw i32 %65, 3
store i32 %66, i32* %7
br label %67
67: ; preds = %81, %53
%68 = load i32, i32* %7
%69 = load i32, i32* %6
%70 = mul nsw i32 2, %69
%71 = add nsw i32 %70, 2
%72 = icmp sle i32 %68, %71
br i1 %72, label %73, label %84
73: ; preds = %67
%74 = load i32, i32* %7
%75 = add nsw i32 %74, 1
%76 = load i32, i32* %7
%77 = add nsw i32 %76, 2
%78 = load i32, i32* %6
%79 = add nsw i32 %78, 1
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %75, i32 %77, i32 %79)
br label %81
81: ; preds = %73
%82 = load i32, i32* %7
%83 = add nsw i32 %82, 1
store i32 %83, i32* %7
br label %67
84: ; preds = %67
%85 = load i32, i32* %6
%86 = mul nsw i32 2, %85
%87 = add nsw i32 %86, 4
store i32 %87, i32* %8
%88 = load i32, i32* %8
store i32 %88, i32* %7
br label %89
89: ; preds = %103, %84
%90 = load i32, i32* %7
%91 = load i32, i32* %6
%92 = mul nsw i32 2, %91
%93 = load i32, i32* %8
%94 = add nsw i32 %92, %93
%95 = icmp sle i32 %90, %94
br i1 %95, label %96, label %106
96: ; preds = %89
%97 = load i32, i32* %7
%98 = add nsw i32 %97, 1
%99 = load i32, i32* %7
%100 = add nsw i32 %99, 2
%101 = load i32, i32* %6
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %98, i32 %100, i32 %101)
br label %103
103: ; preds = %96
%104 = load i32, i32* %7
%105 = add nsw i32 %104, 1
store i32 %105, i32* %7
br label %89
106: ; preds = %89
store i32 0, i32* %7
br label %107
107: ; preds = %124, %106
%108 = load i32, i32* %7
%109 = load i32, i32* %6
%110 = icmp slt i32 %108, %109
br i1 %110, label %111, label %127
111: ; preds = %107
%112 = load i32, i32* %7
%113 = load i32, i32* %8
%114 = add nsw i32 %112, %113
%115 = add nsw i32 %114, 1
%116 = load i32, i32* %6
%117 = mul nsw i32 2, %116
%118 = add nsw i32 %117, 2
%119 = load i32, i32* %7
%120 = sub nsw i32 %118, %119
%121 = load i32, i32* %8
%122 = add nsw i32 %120, %121
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %115, i32 %122, i32 1)
br label %124
124: ; preds = %111
%125 = load i32, i32* %7
%126 = add nsw i32 %125, 1
store i32 %126, i32* %7
br label %107
127: ; preds = %107
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
%129 = load i32, i32* %8
%130 = add nsw i32 %129, 1
%131 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 %130)
%132 = load i32, i32* %8
%133 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32 %132)
%134 = load i32, i32* %6
%135 = mul nsw i32 4, %134
%136 = add nsw i32 %135, 6
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32 %136)
unreachable
138: ; preds = %19, %11
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
%140 = load i32, i32* %3
ret i32 %140
}

LLVM IR (-O2):
@.str.1 = [13 x i8] c"p max %d %d\0A\00"
@.str.4 = [12 x i8] c"a %d %d %d\0A\00"
@.str.6 = [16 x i8] c"a 1 %d 1000000\0A\00"
@.str.7 = [16 x i8] c"a %d 2 1000000\0A\00"
@str = [27 x i8] c"c very bad maxflow problem\00"
@str.9 = [6 x i8] c"n 1 s\00"
@str.10 = [6 x i8] c"n 2 t\00"
@str.11 = [14 x i8] c"a 1 3 1000000\00"
@str.12 = [19 x i8] c" usage: ak n (n>1)\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %71, label %4
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %6)
%8 = icmp slt i32 %7, 2
br i1 %8, label %71, label %9
9: ; preds = %4
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str, i64 0, i64 0))
%11 = shl nsw i32 %7, 2
%12 = add nsw i32 %11, 6
%13 = mul nsw i32 %7, 6
%14 = add nsw i32 %13, 7
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %12, i32 %14)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.9, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.10, i64 0, i64 0))
%18 = add nuw i32 %7, 1
%19 = add nuw nsw i32 %7, 4
br label %20
20: ; preds = %9, %20
%21 = phi i32 [ 0, %9 ], [ %27, %20 ]
%22 = add nuw nsw i32 %21, 3
%23 = add nuw nsw i32 %21, 4
%24 = sub i32 %18, %21
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %22, i32 %23, i32 %24)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %22, i32 %19, i32 1)
%27 = add nuw nsw i32 %21, 1
%28 = icmp eq i32 %27, %7
br i1 %28, label %29, label %20
29: ; preds = %20
%30 = add nsw i32 %7, 3
%31 = shl nsw i32 %7, 1
%32 = add nsw i32 %31, 4
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %30, i32 %32, i32 1)
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %30, i32 %19, i32 1)
%35 = add nsw i32 %31, 2
%36 = icmp sgt i32 %30, %35
br i1 %36, label %39, label %37
37: ; preds = %29
%38 = add i32 %31, 2
br label %42
39: ; preds = %42, %29
%40 = add nsw i32 %32, %31
%41 = icmp slt i32 %7, 0
br i1 %41, label %65, label %52
42: ; preds = %37, %42
%43 = phi i32 [ %30, %37 ], [ %44, %42 ]
%44 = add nsw i32 %43, 1
%45 = add nsw i32 %43, 2
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %44, i32 %45, i32 %18)
%47 = icmp eq i32 %43, %38
br i1 %47, label %39, label %42
48: ; preds = %52
%49 = icmp sgt i32 %7, 0
br i1 %49, label %50, label %65
50: ; preds = %48
%51 = add i32 %32, %35
br label %58
52: ; preds = %39, %52
%53 = phi i32 [ %54, %52 ], [ %32, %39 ]
%54 = add nsw i32 %53, 1
%55 = add nsw i32 %53, 2
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %54, i32 %55, i32 %7)
%57 = icmp slt i32 %53, %40
br i1 %57, label %52, label %48
58: ; preds = %50, %58
%59 = phi i32 [ 0, %50 ], [ %60, %58 ]
%60 = add nuw nsw i32 %59, 1
%61 = add i32 %60, %32
%62 = sub i32 %51, %59
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %61, i32 %62, i32 1)
%64 = icmp eq i32 %60, %7
br i1 %64, label %65, label %58
65: ; preds = %58, %39, %48
%66 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.11, i64 0, i64 0))
%67 = add nsw i32 %31, 5
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 %67)
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32 %32)
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32 %12)
tail call void @exit(i32 0)
unreachable
71: ; preds = %4, %2
%72 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.12, i64 0, i64 0))
ret i32 0
}