#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
void bitmapxpm(int cl, FILE *fp, char **bitmap, int lx, int ly) {
  int i, j, x, y, r;
  fprintf(fp,
          "/* XPM */\n"
          "static char * bitmap [] = {\n"
          "/* size height ncolors cpp [x_hot y_hot] */\n"
          "\"%d %d 65 1 0 0\",\n"
          "/* colours */\n"
          "\"%c\tc #ffffff\",\n",
          lx, ly, 48);
  for (i = 49; i <= 112; i++) {
    fprintf(fp, "\"%c\tc #", i);
    if (cl) {
      if (i <= 52)
        fprintf(fp, "0");
      fprintf(fp, "%x", 4 * (i - 49) + 3);
      fprintf(fp, "00");
      if (i >= 109)
        fprintf(fp, "0");
      fprintf(fp, "%x\",\n", 4 * (112 - i) + 3);
    } else {
      for (j = 0; j < 3; j++) {
        if (i >= 109)
          fprintf(fp, "0");
        fprintf(fp, "%x", 4 * (112 - i) + 3);
      }
      fprintf(fp, "\",\n");
    }
  }
  fprintf(fp, "/* pixels */\n");
  for (i = 0; i < ly; i++) {
    fprintf(fp, "\"");
    for (j = 0; j < lx; j++)
      fprintf(fp, "%c", bitmap[j][i]);
    if (i == ly - 1)
      fprintf(fp, "\"};\n");
    else
      fprintf(fp, "\",\n");
  }
}


x86 assembly (clang, -O0):
<bitmapxpm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xec5(%rip),%rsi
mov    $0x30,%r8d
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x31,-0x24(%rbp)
cmpl   $0x70,-0x24(%rbp)
jg     1285 <bitmapxpm+0x175>
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%edx
lea    0xf1c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
cmpl   $0x0,-0x4(%rbp)
je     1205 <bitmapxpm+0xf5>
cmpl   $0x34,-0x24(%rbp)
jg     1194 <bitmapxpm+0x84>
mov    -0x10(%rbp),%rdi
lea    0xf02(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%edx
sub    $0x31,%edx
shl    $0x2,%edx
add    $0x3,%edx
lea    0xee0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xed1(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
cmpl   $0x6d,-0x24(%rbp)
jl     11e0 <bitmapxpm+0xd0>
mov    -0x10(%rbp),%rdi
lea    0xeb6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    $0x70,%edx
sub    -0x24(%rbp),%edx
shl    $0x2,%edx
add    $0x3,%edx
lea    0xe98(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1272 <bitmapxpm+0x162>
movl   $0x0,-0x28(%rbp)
cmpl   $0x3,-0x28(%rbp)
jge    1260 <bitmapxpm+0x150>
cmpl   $0x6d,-0x24(%rbp)
jl     1232 <bitmapxpm+0x122>
mov    -0x10(%rbp),%rdi
lea    0xe64(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    $0x70,%edx
sub    -0x24(%rbp),%edx
shl    $0x2,%edx
add    $0x3,%edx
lea    0xe40(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    120c <bitmapxpm+0xfc>
mov    -0x10(%rbp),%rdi
lea    0xe14(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1277 <bitmapxpm+0x167>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    114f <bitmapxpm+0x3f>
mov    -0x10(%rbp),%rdi
lea    0xe07(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1350 <bitmapxpm+0x240>
mov    -0x10(%rbp),%rdi
lea    0xdf0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1303 <bitmapxpm+0x1f3>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsbl (%rax,%rcx,1),%edx
lea    0xdb9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12c3 <bitmapxpm+0x1b3>
mov    -0x24(%rbp),%eax
mov    -0x20(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    132b <bitmapxpm+0x21b>
mov    -0x10(%rbp),%rdi
lea    0xd8b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    133d <bitmapxpm+0x22d>
mov    -0x10(%rbp),%rdi
lea    0xd49(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1342 <bitmapxpm+0x232>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    129e <bitmapxpm+0x18e>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bitmapxpm>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdx,%r13
mov    %rsi,%rbp
mov    %edi,0x8(%rsp)
lea    0xeb1(%rip),%rsi
mov    %rbp,%rdi
mov    %ecx,0x4(%rsp)
mov    %ecx,%edx
mov    %r8,0x10(%rsp)
mov    %r8d,%ecx
mov    $0x30,%r8d
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x31,%ebx
mov    $0xff,%r15d
mov    $0x3,%r14d
lea    0xf06(%rip),%r12
jmp    11b9 <bitmapxpm+0x89>
nopw   0x0(%rax,%rax,1)
mov    %rbp,%rdi
lea    0xef7(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%ebx
add    $0xfffffffc,%r15d
add    $0x4,%r14d
cmp    $0xffffffff,%r15d
je     12cc <bitmapxpm+0x19c>
mov    %rbp,%rdi
lea    0xec0(%rip),%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
cmpl   $0x0,0x8(%rsp)
je     1230 <bitmapxpm+0x100>
cmp    $0x34,%ebx
ja     11e5 <bitmapxpm+0xb5>
mov    $0x30,%edi
mov    %rbp,%rsi
call   1030 <fputc@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x2,%esi
mov    $0x1,%edx
lea    0xe88(%rip),%rdi
mov    %rbp,%rcx
call   1050 <fwrite@plt>
cmp    $0x6d,%ebx
jb     1190 <bitmapxpm+0x60>
mov    $0x30,%edi
mov    %rbp,%rsi
call   1030 <fputc@plt>
jmp    1190 <bitmapxpm+0x60>
nopl   0x0(%rax)
cmp    $0x6c,%ebx
jbe    127e <bitmapxpm+0x14e>
mov    $0x30,%edi
mov    %rbp,%rsi
call   1030 <fputc@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x30,%edi
mov    %rbp,%rsi
call   1030 <fputc@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x30,%edi
mov    %rbp,%rsi
call   1030 <fputc@plt>
jmp    129e <bitmapxpm+0x16e>
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x3,%esi
mov    $0x1,%edx
lea    0xdc0(%rip),%rdi
mov    %rbp,%rcx
call   1050 <fwrite@plt>
jmp    11a4 <bitmapxpm+0x74>
lea    0xdc4(%rip),%rdi
mov    $0xd,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1050 <fwrite@plt>
mov    0x10(%rsp),%rax
test   %eax,%eax
jle    1385 <bitmapxpm+0x255>
lea    -0x1(%rax),%ecx
mov    %rcx,0x8(%rsp)
mov    %eax,%ebx
mov    0x4(%rsp),%r14d
xor    %r15d,%r15d
jmp    1332 <bitmapxpm+0x202>
cs nopw 0x0(%rax,%rax,1)
mov    $0x3,%esi
mov    $0x1,%edx
lea    0xd5e(%rip),%rdi
mov    %rbp,%rcx
call   1050 <fwrite@plt>
add    $0x1,%r15
cmp    %rbx,%r15
je     1385 <bitmapxpm+0x255>
mov    $0x22,%edi
mov    %rbp,%rsi
call   1030 <fputc@plt>
cmpl   $0x0,0x4(%rsp)
jle    136b <bitmapxpm+0x23b>
xor    %r12d,%r12d
nopl   0x0(%rax)
mov    0x0(%r13,%r12,8),%rax
movsbl (%rax,%r15,1),%edi
mov    %rbp,%rsi
call   1030 <fputc@plt>
add    $0x1,%r12
cmp    %r12,%r14
jne    1350 <bitmapxpm+0x220>
cmp    0x8(%rsp),%r15
jne    1310 <bitmapxpm+0x1e0>
mov    $0x4,%esi
mov    $0x1,%edx
lea    0xd22(%rip),%rdi
jmp    1321 <bitmapxpm+0x1f1>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [131 x i8] c"/* XPM */\0Astatic char * bitmap [] = {\0A/* size height ncolors cpp [x_hot y_hot] */\0A\22%d %d 65 1 0 0\22,\0A/* colours */\0A\22%c\09c #ffffff\22,\0A\00"
@.str.1 = [8 x i8] c"\22%c\09c #\00"
@.str.2 = [2 x i8] c"0\00"
@.str.3 = [3 x i8] c"%x\00"
@.str.4 = [3 x i8] c"00\00"
@.str.5 = [6 x i8] c"%x\22,\0A\00"
@.str.6 = [4 x i8] c"\22,\0A\00"
@.str.7 = [14 x i8] c"/* pixels */\0A\00"
@.str.8 = [2 x i8] c"\22\00"
@.str.9 = [3 x i8] c"%c\00"
@.str.10 = [5 x i8] c"\22};\0A\00"
define void @bitmapxpm(i32 %0, i32* %1, i8** %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i8**
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i32 %0, i32* %6
store i32* %1, i32** %7
store i8** %2, i8*** %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%16 = load i32*, i32** %7
%17 = load i32, i32* %9
%18 = load i32, i32* %10
%19 = call i32 (i32*, i8*, ...) @fprintf(i32* %16, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 %17, i32 %18, i32 48)
store i32 49, i32* %11
br label %20
20: ; preds = %80, %5
%21 = load i32, i32* %11
%22 = icmp sle i32 %21, 112
br i1 %22, label %23, label %83
23: ; preds = %20
%24 = load i32*, i32** %7
%25 = load i32, i32* %11
%26 = call i32 (i32*, i8*, ...) @fprintf(i32* %24, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %25)
%27 = load i32, i32* %6
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %56
29: ; preds = %23
%30 = load i32, i32* %11
%31 = icmp sle i32 %30, 52
br i1 %31, label %32, label %35
32: ; preds = %29
%33 = load i32*, i32** %7
%34 = call i32 (i32*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %35
35: ; preds = %32, %29
%36 = load i32*, i32** %7
%37 = load i32, i32* %11
%38 = sub nsw i32 %37, 49
%39 = mul nsw i32 4, %38
%40 = add nsw i32 %39, 3
%41 = call i32 (i32*, i8*, ...) @fprintf(i32* %36, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %40)
%42 = load i32*, i32** %7
%43 = call i32 (i32*, i8*, ...) @fprintf(i32* %42, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%44 = load i32, i32* %11
%45 = icmp sge i32 %44, 109
br i1 %45, label %46, label %49
46: ; preds = %35
%47 = load i32*, i32** %7
%48 = call i32 (i32*, i8*, ...) @fprintf(i32* %47, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %49
49: ; preds = %46, %35
%50 = load i32*, i32** %7
%51 = load i32, i32* %11
%52 = sub nsw i32 112, %51
%53 = mul nsw i32 4, %52
%54 = add nsw i32 %53, 3
%55 = call i32 (i32*, i8*, ...) @fprintf(i32* %50, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %54)
br label %79
56: ; preds = %23
store i32 0, i32* %12
br label %57
57: ; preds = %73, %56
%58 = load i32, i32* %12
%59 = icmp slt i32 %58, 3
br i1 %59, label %60, label %76
60: ; preds = %57
%61 = load i32, i32* %11
%62 = icmp sge i32 %61, 109
br i1 %62, label %63, label %66
63: ; preds = %60
%64 = load i32*, i32** %7
%65 = call i32 (i32*, i8*, ...) @fprintf(i32* %64, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %66
66: ; preds = %63, %60
%67 = load i32*, i32** %7
%68 = load i32, i32* %11
%69 = sub nsw i32 112, %68
%70 = mul nsw i32 4, %69
%71 = add nsw i32 %70, 3
%72 = call i32 (i32*, i8*, ...) @fprintf(i32* %67, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %71)
br label %73
73: ; preds = %66
%74 = load i32, i32* %12
%75 = add nsw i32 %74, 1
store i32 %75, i32* %12
br label %57
76: ; preds = %57
%77 = load i32*, i32** %7
%78 = call i32 (i32*, i8*, ...) @fprintf(i32* %77, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %79
79: ; preds = %76, %49
br label %80
80: ; preds = %79
%81 = load i32, i32* %11
%82 = add nsw i32 %81, 1
store i32 %82, i32* %11
br label %20
83: ; preds = %20
%84 = load i32*, i32** %7
%85 = call i32 (i32*, i8*, ...) @fprintf(i32* %84, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %11
br label %86
86: ; preds = %125, %83
%87 = load i32, i32* %11
%88 = load i32, i32* %10
%89 = icmp slt i32 %87, %88
br i1 %89, label %90, label %128
90: ; preds = %86
%91 = load i32*, i32** %7
%92 = call i32 (i32*, i8*, ...) @fprintf(i32* %91, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %12
br label %93
93: ; preds = %110, %90
%94 = load i32, i32* %12
%95 = load i32, i32* %9
%96 = icmp slt i32 %94, %95
br i1 %96, label %97, label %113
97: ; preds = %93
%98 = load i32*, i32** %7
%99 = load i8**, i8*** %8
%100 = load i32, i32* %12
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i8*, i8** %99, i64 %101
%103 = load i8*, i8** %102
%104 = load i32, i32* %11
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i8, i8* %103, i64 %105
%107 = load i8, i8* %106
%108 = sext i8 %107 to i32
%109 = call i32 (i32*, i8*, ...) @fprintf(i32* %98, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 %108)
br label %110
110: ; preds = %97
%111 = load i32, i32* %12
%112 = add nsw i32 %111, 1
store i32 %112, i32* %12
br label %93
113: ; preds = %93
%114 = load i32, i32* %11
%115 = load i32, i32* %10
%116 = sub nsw i32 %115, 1
%117 = icmp eq i32 %114, %116
br i1 %117, label %118, label %121
118: ; preds = %113
%119 = load i32*, i32** %7
%120 = call i32 (i32*, i8*, ...) @fprintf(i32* %119, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
br label %124
121: ; preds = %113
%122 = load i32*, i32** %7
%123 = call i32 (i32*, i8*, ...) @fprintf(i32* %122, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %124
124: ; preds = %121, %118
br label %125
125: ; preds = %124
%126 = load i32, i32* %11
%127 = add nsw i32 %126, 1
store i32 %127, i32* %11
br label %86
128: ; preds = %86
ret void
}

LLVM IR (-O2):
@.str = [131 x i8] c"/* XPM */\0Astatic char * bitmap [] = {\0A/* size height ncolors cpp [x_hot y_hot] */\0A\22%d %d 65 1 0 0\22,\0A/* colours */\0A\22%c\09c #ffffff\22,\0A\00"
@.str.1 = [8 x i8] c"\22%c\09c #\00"
@.str.3 = [3 x i8] c"%x\00"
@.str.4 = [3 x i8] c"00\00"
@.str.5 = [6 x i8] c"%x\22,\0A\00"
@.str.6 = [4 x i8] c"\22,\0A\00"
@.str.7 = [14 x i8] c"/* pixels */\0A\00"
@.str.10 = [5 x i8] c"\22};\0A\00"
define void @bitmapxpm(i32 %0, i32* nocapture %1, i8** nocapture %2, i32 %3, i32 %4) {
%6 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %4, i32 48)
%7 = icmp eq i32 %0, 0
br label %8
8: ; preds = %5, %43
%9 = phi i32 [ 49, %5 ], [ %44, %43 ]
%10 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %9)
br i1 %7, label %11, label %15
11: ; preds = %8
%12 = icmp ugt i32 %9, 108
%13 = mul nsw i32 %9, -4
%14 = add nsw i32 %13, 451
br i1 %12, label %34, label %31
15: ; preds = %8
%16 = icmp ult i32 %9, 53
br i1 %16, label %17, label %19
17: ; preds = %15
%18 = tail call i32 @fputc(i32 48, i32* %1)
br label %19
19: ; preds = %17, %15
%20 = shl nuw nsw i32 %9, 2
%21 = add nsw i32 %20, -193
%22 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %21)
%23 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i64 2, i64 1, i32* %1)
%24 = icmp ugt i32 %9, 108
br i1 %24, label %25, label %27
25: ; preds = %19
%26 = tail call i32 @fputc(i32 48, i32* %1)
br label %27
27: ; preds = %25, %19
%28 = mul nsw i32 %9, -4
%29 = add nsw i32 %28, 451
%30 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %29)
br label %43
31: ; preds = %11
%32 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %14)
%33 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %14)
br label %40
34: ; preds = %11
%35 = tail call i32 @fputc(i32 48, i32* %1)
%36 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %14)
%37 = tail call i32 @fputc(i32 48, i32* %1)
%38 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %14)
%39 = tail call i32 @fputc(i32 48, i32* %1)
br label %40
40: ; preds = %31, %34
%41 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %14)
%42 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i64 3, i64 1, i32* %1)
br label %43
43: ; preds = %27, %40
%44 = add nuw nsw i32 %9, 1
%45 = icmp eq i32 %44, 113
br i1 %45, label %46, label %8
46: ; preds = %43
%47 = tail call i64 @fwrite(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i64 13, i64 1, i32* %1)
%48 = icmp sgt i32 %4, 0
br i1 %48, label %49, label %77
49: ; preds = %46
%50 = icmp sgt i32 %3, 0
%51 = add nsw i32 %4, -1
%52 = zext i32 %51 to i64
%53 = zext i32 %4 to i64
%54 = zext i32 %3 to i64
br label %55
55: ; preds = %49, %74
%56 = phi i64 [ 0, %49 ], [ %75, %74 ]
%57 = tail call i32 @fputc(i32 34, i32* %1)
br i1 %50, label %58, label %68
58: ; preds = %55, %58
%59 = phi i64 [ %66, %58 ], [ 0, %55 ]
%60 = getelementptr inbounds i8*, i8** %2, i64 %59
%61 = load i8*, i8** %60
%62 = getelementptr inbounds i8, i8* %61, i64 %56
%63 = load i8, i8* %62
%64 = sext i8 %63 to i32
%65 = tail call i32 @fputc(i32 %64, i32* %1)
%66 = add nuw nsw i64 %59, 1
%67 = icmp eq i64 %66, %54
br i1 %67, label %68, label %58
68: ; preds = %58, %55
%69 = icmp eq i64 %56, %52
br i1 %69, label %70, label %72
70: ; preds = %68
%71 = tail call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i64 4, i64 1, i32* %1)
br label %74
72: ; preds = %68
%73 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i64 3, i64 1, i32* %1)
br label %74
74: ; preds = %70, %72
%75 = add nuw nsw i64 %56, 1
%76 = icmp eq i64 %75, %53
br i1 %76, label %77, label %55
77: ; preds = %74, %46
ret void
}