#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int PutCode(int, char *);
int PutComment(int);
int PutConsolidatedCode(int, int, char *, char *);
int /*<<< orphan*/ PutIndent(int);
int getchar();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int main(int argc, char **argv) {
  int c;
  int indent = 0;
  puts("#include <stdio.h>\n"
       "#include <stdlib.h>\n\n"
       "int a[9999];\n\n"
       "int main(int argc, char **argv) {\n"
       "    int *p = a;\n\n"
       "    /* Start of Brain-F*cked Translated Code... */");
  c = getchar();
  while (c >= 0) {
    switch (c) {
    case '>':
      c = PutConsolidatedCode(c, indent, "++p", "p += ");
      break;
    case '<':
      c = PutConsolidatedCode(c, indent, "--p", "p -= ");
      break;
    case '+':
      c = PutConsolidatedCode(c, indent, "++(*p)", "(*p) += ");
      break;
    case '-':
      c = PutConsolidatedCode(c, indent, "--(*p)", "(*p) -= ");
      break;
    case '.':
      c = PutCode(indent, "putchar(*p);");
      break;
    case ',':
      c = PutCode(indent, "*p = getchar();");
      break;
    case '[':
      c = PutCode(indent, "while (*p) {");
      ++indent;
      break;
    case ']':
      --indent;
      if (indent < 0) {
        puts("\n\n/* Error in Brain-F*cked Source Code:  unmatched Brainf*cked "
             "\"]\" instruction! */\n");
        c = getchar();
      } else
        c = PutCode(indent, "}");
      break;
    case ' ':
    case 10:
    case 13:
      c = getchar();
      break;
    default:
      c = PutComment(c);
    }
  }
  PutIndent(indent);
  puts("/* End of Brain-F*cked Translated Code... */\n");
  if (indent > 0) {
    printf("/* Error in Brain-F*cked Source Code:  %d unmatched Brainf*cked "
           "\"[\" instructions! */\n\n",
           indent);
    while (indent) {
      --indent;
      PutIndent(indent);
      puts("}");
    }
  } else if (indent < 0)
    printf("\n\n/* Error in Brain-F*cked Source Code:  There were %d unmatched "
           "Brainf*cked \"]\" instructions! */\n\n",
           -indent);
  PutIndent(indent);
  printf("return 0;\n"
         "}\n");
  return 0;
}


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)
movl   $0x0,-0x18(%rbp)
lea    0xfbc(%rip),%rdi
call   1040 <puts@plt>
mov    $0x0,%al
call   1070 <getchar@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jl     130c <main+0x19c>
mov    -0x14(%rbp),%eax
add    $0xfffffff6,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x53,%eax
ja     12fc <main+0x18c>
mov    -0x20(%rbp),%rax
lea    0xe33(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
lea    0x1009(%rip),%rdx
lea    0x1006(%rip),%rcx
call   1050 <PutConsolidatedCode@plt>
mov    %eax,-0x14(%rbp)
jmp    1307 <main+0x197>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
lea    0xff2(%rip),%rdx
lea    0xfef(%rip),%rcx
call   1050 <PutConsolidatedCode@plt>
mov    %eax,-0x14(%rbp)
jmp    1307 <main+0x197>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
lea    0xfdb(%rip),%rdx
lea    0xfdb(%rip),%rcx
call   1050 <PutConsolidatedCode@plt>
mov    %eax,-0x14(%rbp)
jmp    1307 <main+0x197>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
lea    0xfca(%rip),%rdx
lea    0xfca(%rip),%rcx
call   1050 <PutConsolidatedCode@plt>
mov    %eax,-0x14(%rbp)
jmp    1307 <main+0x197>
mov    -0x18(%rbp),%edi
lea    0xfbc(%rip),%rsi
call   1090 <PutCode@plt>
mov    %eax,-0x14(%rbp)
jmp    1307 <main+0x197>
mov    -0x18(%rbp),%edi
lea    0xfb2(%rip),%rsi
call   1090 <PutCode@plt>
mov    %eax,-0x14(%rbp)
jmp    1307 <main+0x197>
mov    -0x18(%rbp),%edi
lea    0xfab(%rip),%rsi
call   1090 <PutCode@plt>
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1307 <main+0x197>
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jge    12d6 <main+0x166>
lea    0xf88(%rip),%rdi
call   1040 <puts@plt>
mov    $0x0,%al
call   1070 <getchar@plt>
mov    %eax,-0x14(%rbp)
jmp    12e8 <main+0x178>
mov    -0x18(%rbp),%edi
lea    0xfbe(%rip),%rsi
call   1090 <PutCode@plt>
mov    %eax,-0x14(%rbp)
jmp    1307 <main+0x197>
mov    $0x0,%al
call   1070 <getchar@plt>
mov    %eax,-0x14(%rbp)
jmp    1307 <main+0x197>
mov    -0x14(%rbp),%edi
call   1030 <PutComment@plt>
mov    %eax,-0x14(%rbp)
jmp    11a3 <main+0x33>
mov    -0x18(%rbp),%edi
call   1080 <PutIndent@plt>
lea    0xf85(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,-0x18(%rbp)
jle    136c <main+0x1fc>
mov    -0x18(%rbp),%esi
lea    0xf9a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0x0,-0x18(%rbp)
je     1367 <main+0x1f7>
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%edi
call   1080 <PutIndent@plt>
lea    0xf41(%rip),%rdi
call   1040 <puts@plt>
jmp    133b <main+0x1cb>
jmp    138e <main+0x21e>
cmpl   $0x0,-0x18(%rbp)
jge    1389 <main+0x219>
xor    %esi,%esi
sub    -0x18(%rbp),%esi
lea    0xfa3(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    138e <main+0x21e>
mov    -0x18(%rbp),%edi
call   1080 <PutIndent@plt>
lea    0xfec(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xfce(%rip),%rdi
call   1040 <puts@plt>
xor    %ebx,%ebx
xor    %eax,%eax
call   1070 <getchar@plt>
test   %eax,%eax
js     12b6 <main+0x146>
lea    0xe61(%rip),%r12
lea    0x1046(%rip),%r13
lea    0x1043(%rip),%rbp
lea    0x1089(%rip),%r14
xor    %ebx,%ebx
jmp    11c8 <main+0x58>
mov    %eax,%edi
call   1030 <PutComment@plt>
nop
test   %eax,%eax
js     12b6 <main+0x146>
lea    -0xa(%rax),%ecx
cmp    $0x53,%ecx
ja     11b8 <main+0x48>
movslq (%r12,%rcx,4),%rcx
add    %r12,%rcx
jmp    *%rcx
xor    %eax,%eax
call   1070 <getchar@plt>
jmp    11c0 <main+0x50>
mov    $0x2b,%edi
mov    %ebx,%esi
lea    0x1010(%rip),%rdx
lea    0x1010(%rip),%rcx
call   1050 <PutConsolidatedCode@plt>
jmp    11c0 <main+0x50>
mov    %ebx,%edi
lea    0x1026(%rip),%rsi
call   1090 <PutCode@plt>
jmp    11c0 <main+0x50>
mov    $0x2d,%edi
mov    %ebx,%esi
lea    0xff4(%rip),%rdx
lea    0xff4(%rip),%rcx
call   1050 <PutConsolidatedCode@plt>
jmp    11c0 <main+0x50>
mov    %ebx,%edi
lea    0xfed(%rip),%rsi
call   1090 <PutCode@plt>
jmp    11c0 <main+0x50>
mov    $0x3c,%edi
mov    %ebx,%esi
lea    0xfae(%rip),%rdx
lea    0xfab(%rip),%rcx
call   1050 <PutConsolidatedCode@plt>
jmp    11c0 <main+0x50>
mov    $0x3e,%edi
mov    %ebx,%esi
mov    %r13,%rdx
mov    %rbp,%rcx
call   1050 <PutConsolidatedCode@plt>
jmp    11c0 <main+0x50>
mov    %ebx,%edi
mov    %r14,%rsi
call   1090 <PutCode@plt>
add    $0x1,%ebx
jmp    11c0 <main+0x50>
lea    -0x1(%rbx),%r15d
test   %ebx,%ebx
jle    129b <main+0x12b>
mov    %r15d,%edi
lea    0x10fd(%rip),%rsi
call   1090 <PutCode@plt>
jmp    12ae <main+0x13e>
lea    0xfa8(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <getchar@plt>
mov    %r15d,%ebx
jmp    11c0 <main+0x50>
mov    %ebx,%edi
call   1080 <PutIndent@plt>
lea    0xfda(%rip),%rdi
call   1040 <puts@plt>
test   %ebx,%ebx
jle    1306 <main+0x196>
lea    0xff8(%rip),%rdi
xor    %r14d,%r14d
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0xffffffff,%ebx
lea    0x10a7(%rip),%rbp
nopw   0x0(%rax,%rax,1)
mov    %ebx,%edi
call   1080 <PutIndent@plt>
mov    %rbp,%rdi
call   1040 <puts@plt>
add    $0xffffffff,%ebx
jb     12f0 <main+0x180>
jmp    1322 <main+0x1b2>
xor    %r14d,%r14d
test   %ebx,%ebx
jns    1322 <main+0x1b2>
mov    %ebx,%esi
neg    %esi
lea    0x100b(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %ebx,%r14d
mov    %r14d,%edi
call   1080 <PutIndent@plt>
lea    0x1056(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [156 x i8] c"#include <stdio.h>\0A#include <stdlib.h>\0A\0Aint a[9999];\0A\0Aint main(int argc, char **argv) {\0A int *p = a;\0A\0A /* Start of Brain-F*cked Translated Code... */\00"
@.str.1 = [4 x i8] c"++p\00"
@.str.2 = [6 x i8] c"p += \00"
@.str.3 = [4 x i8] c"--p\00"
@.str.4 = [6 x i8] c"p -= \00"
@.str.5 = [7 x i8] c"++(*p)\00"
@.str.6 = [9 x i8] c"(*p) += \00"
@.str.7 = [7 x i8] c"--(*p)\00"
@.str.8 = [9 x i8] c"(*p) -= \00"
@.str.9 = [13 x i8] c"putchar(*p);\00"
@.str.10 = [16 x i8] c"*p = getchar();\00"
@.str.11 = [13 x i8] c"while (*p) {\00"
@.str.12 = [84 x i8] c"\0A\0A/* Error in Brain-F*cked Source Code: unmatched Brainf*cked \22]\22 instruction! */\0A\00"
@.str.13 = [2 x i8] c"}\00"
@.str.14 = [46 x i8] c"/* End of Brain-F*cked Translated Code... */\0A\00"
@.str.15 = [87 x i8] c"/* Error in Brain-F*cked Source Code: %d unmatched Brainf*cked \22[\22 instructions! */\0A\0A\00"
@.str.16 = [100 x i8] c"\0A\0A/* Error in Brain-F*cked Source Code: There were %d unmatched Brainf*cked \22]\22 instructions! */\0A\0A\00"
@.str.17 = [13 x i8] c"return 0;\0A}\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
%8 = call i32 @puts(i8* getelementptr inbounds ([156 x i8], [156 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (...) @getchar()
store i32 %9, i32* %6
br label %10
10: ; preds = %59, %2
%11 = load i32, i32* %6
%12 = icmp sge i32 %11, 0
br i1 %12, label %13, label %60
13: ; preds = %10
%14 = load i32, i32* %6
switch i32 %14, label %56 [
i32 62, label %15
i32 60, label %19
i32 43, label %23
i32 45, label %27
i32 46, label %31
i32 44, label %34
i32 91, label %37
i32 93, label %42
i32 32, label %54
i32 10, label %54
i32 13, label %54
]
15: ; preds = %13
%16 = load i32, i32* %6
%17 = load i32, i32* %7
%18 = call i32 @PutConsolidatedCode(i32 %16, i32 %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
store i32 %18, i32* %6
br label %59
19: ; preds = %13
%20 = load i32, i32* %6
%21 = load i32, i32* %7
%22 = call i32 @PutConsolidatedCode(i32 %20, i32 %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
store i32 %22, i32* %6
br label %59
23: ; preds = %13
%24 = load i32, i32* %6
%25 = load i32, i32* %7
%26 = call i32 @PutConsolidatedCode(i32 %24, i32 %25, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
store i32 %26, i32* %6
br label %59
27: ; preds = %13
%28 = load i32, i32* %6
%29 = load i32, i32* %7
%30 = call i32 @PutConsolidatedCode(i32 %28, i32 %29, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
store i32 %30, i32* %6
br label %59
31: ; preds = %13
%32 = load i32, i32* %7
%33 = call i32 @PutCode(i32 %32, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
store i32 %33, i32* %6
br label %59
34: ; preds = %13
%35 = load i32, i32* %7
%36 = call i32 @PutCode(i32 %35, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
store i32 %36, i32* %6
br label %59
37: ; preds = %13
%38 = load i32, i32* %7
%39 = call i32 @PutCode(i32 %38, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
store i32 %39, i32* %6
%40 = load i32, i32* %7
%41 = add nsw i32 %40, 1
store i32 %41, i32* %7
br label %59
42: ; preds = %13
%43 = load i32, i32* %7
%44 = add nsw i32 %43, -1
store i32 %44, i32* %7
%45 = load i32, i32* %7
%46 = icmp slt i32 %45, 0
br i1 %46, label %47, label %50
47: ; preds = %42
%48 = call i32 @puts(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.12, i64 0, i64 0))
%49 = call i32 (...) @getchar()
store i32 %49, i32* %6
br label %53
50: ; preds = %42
%51 = load i32, i32* %7
%52 = call i32 @PutCode(i32 %51, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
store i32 %52, i32* %6
br label %53
53: ; preds = %50, %47
br label %59
54: ; preds = %13, %13, %13
%55 = call i32 (...) @getchar()
store i32 %55, i32* %6
br label %59
56: ; preds = %13
%57 = load i32, i32* %6
%58 = call i32 @PutComment(i32 %57)
store i32 %58, i32* %6
br label %59
59: ; preds = %56, %54, %53, %37, %34, %31, %27, %23, %19, %15
br label %10
60: ; preds = %10
%61 = load i32, i32* %7
%62 = call i32 @PutIndent(i32 %61)
%63 = call i32 @puts(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.14, i64 0, i64 0))
%64 = load i32, i32* %7
%65 = icmp sgt i32 %64, 0
br i1 %65, label %66, label %79
66: ; preds = %60
%67 = load i32, i32* %7
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.15, i64 0, i64 0), i32 %67)
br label %69
69: ; preds = %72, %66
%70 = load i32, i32* %7
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %78
72: ; preds = %69
%73 = load i32, i32* %7
%74 = add nsw i32 %73, -1
store i32 %74, i32* %7
%75 = load i32, i32* %7
%76 = call i32 @PutIndent(i32 %75)
%77 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %69
78: ; preds = %69
br label %87
79: ; preds = %60
%80 = load i32, i32* %7
%81 = icmp slt i32 %80, 0
br i1 %81, label %82, label %86
82: ; preds = %79
%83 = load i32, i32* %7
%84 = sub nsw i32 0, %83
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.16, i64 0, i64 0), i32 %84)
br label %86
86: ; preds = %82, %79
br label %87
87: ; preds = %86, %78
%88 = load i32, i32* %7
%89 = call i32 @PutIndent(i32 %88)
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [156 x i8] c"#include <stdio.h>\0A#include <stdlib.h>\0A\0Aint a[9999];\0A\0Aint main(int argc, char **argv) {\0A int *p = a;\0A\0A /* Start of Brain-F*cked Translated Code... */\00"
@.str.1 = [4 x i8] c"++p\00"
@.str.2 = [6 x i8] c"p += \00"
@.str.3 = [4 x i8] c"--p\00"
@.str.4 = [6 x i8] c"p -= \00"
@.str.5 = [7 x i8] c"++(*p)\00"
@.str.6 = [9 x i8] c"(*p) += \00"
@.str.7 = [7 x i8] c"--(*p)\00"
@.str.8 = [9 x i8] c"(*p) -= \00"
@.str.9 = [13 x i8] c"putchar(*p);\00"
@.str.10 = [16 x i8] c"*p = getchar();\00"
@.str.11 = [13 x i8] c"while (*p) {\00"
@.str.12 = [84 x i8] c"\0A\0A/* Error in Brain-F*cked Source Code: unmatched Brainf*cked \22]\22 instruction! */\0A\00"
@.str.13 = [2 x i8] c"}\00"
@.str.14 = [46 x i8] c"/* End of Brain-F*cked Translated Code... */\0A\00"
@.str.15 = [87 x i8] c"/* Error in Brain-F*cked Source Code: %d unmatched Brainf*cked \22[\22 instructions! */\0A\0A\00"
@.str.16 = [100 x i8] c"\0A\0A/* Error in Brain-F*cked Source Code: There were %d unmatched Brainf*cked \22]\22 instructions! */\0A\0A\00"
@str = [12 x i8] c"return 0;\0A}\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([156 x i8], [156 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 (...) @getchar()
%5 = icmp sgt i32 %4, -1
br i1 %5, label %6, label %40
6: ; preds = %2, %36
%7 = phi i32 [ %38, %36 ], [ 0, %2 ]
%8 = phi i32 [ %37, %36 ], [ %4, %2 ]
switch i32 %8, label %34 [
i32 62, label %9
i32 60, label %11
i32 43, label %13
i32 45, label %15
i32 46, label %17
i32 44, label %19
i32 91, label %21
i32 93, label %24
i32 32, label %32
i32 10, label %32
i32 13, label %32
]
9: ; preds = %6
%10 = tail call i32 @PutConsolidatedCode(i32 62, i32 %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %36
11: ; preds = %6
%12 = tail call i32 @PutConsolidatedCode(i32 60, i32 %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %36
13: ; preds = %6
%14 = tail call i32 @PutConsolidatedCode(i32 43, i32 %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
br label %36
15: ; preds = %6
%16 = tail call i32 @PutConsolidatedCode(i32 45, i32 %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
br label %36
17: ; preds = %6
%18 = tail call i32 @PutCode(i32 %7, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
br label %36
19: ; preds = %6
%20 = tail call i32 @PutCode(i32 %7, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
br label %36
21: ; preds = %6
%22 = tail call i32 @PutCode(i32 %7, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
%23 = add nsw i32 %7, 1
br label %36
24: ; preds = %6
%25 = add nsw i32 %7, -1
%26 = icmp slt i32 %7, 1
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @.str.12, i64 0, i64 0))
%29 = tail call i32 (...) @getchar()
br label %36
30: ; preds = %24
%31 = tail call i32 @PutCode(i32 %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %36
32: ; preds = %6, %6, %6
%33 = tail call i32 (...) @getchar()
br label %36
34: ; preds = %6
%35 = tail call i32 @PutComment(i32 %8)
br label %36
36: ; preds = %27, %30, %34, %32, %21, %19, %17, %15, %13, %11, %9
%37 = phi i32 [ %35, %34 ], [ %33, %32 ], [ %29, %27 ], [ %31, %30 ], [ %22, %21 ], [ %20, %19 ], [ %18, %17 ], [ %16, %15 ], [ %14, %13 ], [ %12, %11 ], [ %10, %9 ]
%38 = phi i32 [ %7, %34 ], [ %7, %32 ], [ %25, %27 ], [ %25, %30 ], [ %23, %21 ], [ %7, %19 ], [ %7, %17 ], [ %7, %15 ], [ %7, %13 ], [ %7, %11 ], [ %7, %9 ]
%39 = icmp sgt i32 %37, -1
br i1 %39, label %6, label %40
40: ; preds = %36, %2
%41 = phi i32 [ 0, %2 ], [ %38, %36 ]
%42 = tail call i32 @PutIndent(i32 %41)
%43 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.14, i64 0, i64 0))
%44 = icmp sgt i32 %41, 0
br i1 %44, label %45, label %53
45: ; preds = %40
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @.str.15, i64 0, i64 0), i32 %41)
br label %47
47: ; preds = %45, %47
%48 = phi i32 [ %41, %45 ], [ %49, %47 ]
%49 = add nsw i32 %48, -1
%50 = tail call i32 @PutIndent(i32 %49)
%51 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%52 = icmp eq i32 %49, 0
br i1 %52, label %58, label %47
53: ; preds = %40
%54 = icmp slt i32 %41, 0
br i1 %54, label %55, label %58
55: ; preds = %53
%56 = sub nsw i32 0, %41
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([100 x i8], [100 x i8]* @.str.16, i64 0, i64 0), i32 %56)
br label %58
58: ; preds = %47, %53, %55
%59 = phi i32 [ %41, %55 ], [ 0, %53 ], [ 0, %47 ]
%60 = tail call i32 @PutIndent(i32 %59)
%61 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
ret i32 0
}