#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 /*<<< orphan*/ chcolor(char *);
int /*<<< orphan*/ printf(char *, ...);
void grid(char **g1, char **g2) {
  int i, j;
  char row = 'h';
  printf("             Your turrets                         Your bombs\n");
  printf("  +---+---+---+---+---+---+---+---+     "
         "+---+---+---+---+---+---+---+---+\n");
  for (i = 7; i >= 0; i--) {
    printf("%c |", row);
    for (j = 0; j <= 7; j++) {
      if (g1[i][j] == 'T')
        chcolor("\033[01;34m");
      if (g1[i][j] == 'M')
        chcolor("\033[22;32m");
      if (g1[i][j] == 'H')
        chcolor("\033[22;31m");
      printf(" %c ", g1[i][j]);
      chcolor("\033[01;37m");
      printf("|");
    }
    printf("   %c |", row);
    for (j = 0; j <= 7; j++) {
      if (g2[i][j] != 'T' && g2[i][j] != ' ') {
        if (g2[i][j] == 'M')
          chcolor("\033[22;32m");
        if (g2[i][j] == 'H')
          chcolor("\033[22;31m");
        printf(" %c ", g2[i][j]);
        chcolor("\033[01;37m");
        printf("|");
      } else
        printf("   |");
    }
    printf("\n");
    --row;
    printf("  +---+---+---+---+---+---+---+---+     "
           "+---+---+---+---+---+---+---+---+\n");
  }
  printf("    1   2   3   4   5   6   7   8         1   2   3   4   5   6   7  "
         " 8\n\n");
}


x86 assembly (clang, -O0):
<grid>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movb   $0x68,-0x19(%rbp)
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x7,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jl     138c <grid+0x26c>
movsbl -0x19(%rbp),%esi
lea    0xf49(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x7,-0x18(%rbp)
jg     1249 <grid+0x129>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x54,%eax
jne    11ad <grid+0x8d>
lea    0xee1(%rip),%rdi
call   1030 <chcolor@plt>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x4d,%eax
jne    11d6 <grid+0xb6>
lea    0xec1(%rip),%rdi
call   1030 <chcolor@plt>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x48,%eax
jne    11ff <grid+0xdf>
lea    0xea1(%rip),%rdi
call   1030 <chcolor@plt>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe81(%rip),%rdi
call   1030 <chcolor@plt>
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    117a <grid+0x5a>
movsbl -0x19(%rbp),%esi
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x7,-0x18(%rbp)
jg     135a <grid+0x23a>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x54,%eax
je     1339 <grid+0x219>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
je     1339 <grid+0x219>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x4d,%eax
jne    12cf <grid+0x1af>
lea    0xdc8(%rip),%rdi
call   1030 <chcolor@plt>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x48,%eax
jne    12f8 <grid+0x1d8>
lea    0xda8(%rip),%rdi
call   1030 <chcolor@plt>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xd91(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd88(%rip),%rdi
call   1030 <chcolor@plt>
lea    0xd90(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1347 <grid+0x227>
lea    0xd7a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    134c <grid+0x22c>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1262 <grid+0x142>
lea    0xda6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x19(%rbp),%al
add    $0xff,%al
mov    %al,-0x19(%rbp)
lea    0xcc7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
jmp    1157 <grid+0x37>
lea    0xd2c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<grid>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xede(%rip),%rdi
call   1040 <puts@plt>
lea    0xf58(%rip),%rdi
call   1040 <puts@plt>
mov    $0x68,%ebp
mov    $0x7,%r12d
lea    0xea5(%rip),%r13
jmp    11a3 <grid+0x63>
nopl   (%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebp
lea    0xf28(%rip),%rdi
call   1040 <puts@plt>
sub    $0x1,%r12
jb     1304 <grid+0x1c4>
lea    0xe82(%rip),%rdi
mov    %ebp,%r15d
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %ebp,%ebp
jmp    11ed <grid+0xad>
nopw   0x0(%rax,%rax,1)
movsbl %al,%esi
lea    0xe51(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
call   1050 <chcolor@plt>
mov    $0x7c,%edi
call   1030 <putchar@plt>
add    $0x1,%rbp
cmp    $0x8,%rbp
je     1260 <grid+0x120>
mov    (%rbx,%r12,8),%rax
movzbl (%rax,%rbp,1),%eax
cmp    $0x54,%al
je     1210 <grid+0xd0>
cmp    $0x4d,%al
je     1228 <grid+0xe8>
cmp    $0x48,%al
jne    11c0 <grid+0x80>
jmp    1240 <grid+0x100>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0xde9(%rip),%rdi
call   1050 <chcolor@plt>
mov    (%rbx,%r12,8),%rax
movzbl (%rax,%rbp,1),%eax
cmp    $0x4d,%al
jne    11fd <grid+0xbd>
lea    0xdda(%rip),%rdi
call   1050 <chcolor@plt>
mov    (%rbx,%r12,8),%rax
movzbl (%rax,%rbp,1),%eax
cmp    $0x48,%al
jne    11c0 <grid+0x80>
lea    0xdcb(%rip),%rdi
call   1050 <chcolor@plt>
mov    (%rbx,%r12,8),%rax
movzbl (%rax,%rbp,1),%eax
jmp    11c0 <grid+0x80>
nopl   0x0(%rax)
lea    0xdc2(%rip),%rdi
mov    %r15d,%ebp
mov    %r15d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %r15d,%r15d
jmp    129c <grid+0x15c>
nopl   0x0(%rax)
lea    0xdaa(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%r15
cmp    $0x8,%r15
je     1180 <grid+0x40>
mov    (%r14,%r12,8),%rax
movzbl (%rax,%r15,1),%eax
cmp    $0x20,%al
je     1280 <grid+0x140>
cmp    $0x54,%al
je     1280 <grid+0x140>
cmp    $0x4d,%al
jne    12c6 <grid+0x186>
lea    0xd51(%rip),%rdi
call   1050 <chcolor@plt>
mov    (%r14,%r12,8),%rax
movzbl (%rax,%r15,1),%eax
cmp    $0x48,%al
jne    12df <grid+0x19f>
lea    0xd41(%rip),%rdi
call   1050 <chcolor@plt>
mov    (%r14,%r12,8),%rax
movzbl (%rax,%r15,1),%eax
movsbl %al,%esi
lea    0xd32(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
call   1050 <chcolor@plt>
mov    $0x7c,%edi
call   1030 <putchar@plt>
jmp    128e <grid+0x14e>
lea    0xd68(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [62 x i8] c" Your turrets Your bombs\0A\00"
@.str.1 = [75 x i8] c" +---+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+\0A\00"
@.str.2 = [5 x i8] c"%c |\00"
@.str.3 = [9 x i8] c"\1B[01;34m\00"
@.str.4 = [9 x i8] c"\1B[22;32m\00"
@.str.5 = [9 x i8] c"\1B[22;31m\00"
@.str.6 = [5 x i8] c" %c \00"
@.str.7 = [9 x i8] c"\1B[01;37m\00"
@.str.8 = [2 x i8] c"|\00"
@.str.9 = [8 x i8] c" %c |\00"
@.str.10 = [5 x i8] c" |\00"
@.str.11 = [2 x i8] c"\0A\00"
@.str.12 = [74 x i8] c" 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8\0A\0A\00"
define void @grid(i8** %0, i8** %1) {
%3 = alloca i8**
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8
store i8** %0, i8*** %3
store i8** %1, i8*** %4
store i8 104, i8* %7
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.1, i64 0, i64 0))
store i32 7, i32* %5
br label %10
10: ; preds = %163, %2
%11 = load i32, i32* %5
%12 = icmp sge i32 %11, 0
br i1 %12, label %13, label %166
13: ; preds = %10
%14 = load i8, i8* %7
%15 = sext i8 %14 to i32
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %15)
store i32 0, i32* %6
br label %17
17: ; preds = %76, %13
%18 = load i32, i32* %6
%19 = icmp sle i32 %18, 7
br i1 %19, label %20, label %79
20: ; preds = %17
%21 = load i8**, i8*** %3
%22 = load i32, i32* %5
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8*, i8** %21, i64 %23
%25 = load i8*, i8** %24
%26 = load i32, i32* %6
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, i8* %25, i64 %27
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 84
br i1 %31, label %32, label %34
32: ; preds = %20
%33 = call i32 @chcolor(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %34
34: ; preds = %32, %20
%35 = load i8**, i8*** %3
%36 = load i32, i32* %5
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8*, i8** %35, i64 %37
%39 = load i8*, i8** %38
%40 = load i32, i32* %6
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, i8* %39, i64 %41
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 77
br i1 %45, label %46, label %48
46: ; preds = %34
%47 = call i32 @chcolor(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
br label %48
48: ; preds = %46, %34
%49 = load i8**, i8*** %3
%50 = load i32, i32* %5
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8*, i8** %49, i64 %51
%53 = load i8*, i8** %52
%54 = load i32, i32* %6
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, i8* %53, i64 %55
%57 = load i8, i8* %56
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %58, 72
br i1 %59, label %60, label %62
60: ; preds = %48
%61 = call i32 @chcolor(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
br label %62
62: ; preds = %60, %48
%63 = load i8**, i8*** %3
%64 = load i32, i32* %5
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8*, i8** %63, i64 %65
%67 = load i8*, i8** %66
%68 = load i32, i32* %6
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, i8* %67, i64 %69
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %72)
%74 = call i32 @chcolor(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %76
76: ; preds = %62
%77 = load i32, i32* %6
%78 = add nsw i32 %77, 1
store i32 %78, i32* %6
br label %17
79: ; preds = %17
%80 = load i8, i8* %7
%81 = sext i8 %80 to i32
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 %81)
store i32 0, i32* %6
br label %83
83: ; preds = %155, %79
%84 = load i32, i32* %6
%85 = icmp sle i32 %84, 7
br i1 %85, label %86, label %158
86: ; preds = %83
%87 = load i8**, i8*** %4
%88 = load i32, i32* %5
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8*, i8** %87, i64 %89
%91 = load i8*, i8** %90
%92 = load i32, i32* %6
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, i8* %91, i64 %93
%95 = load i8, i8* %94
%96 = sext i8 %95 to i32
%97 = icmp ne i32 %96, 84
br i1 %97, label %98, label %152
98: ; preds = %86
%99 = load i8**, i8*** %4
%100 = load i32, i32* %5
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i8*, i8** %99, i64 %101
%103 = load i8*, i8** %102
%104 = load i32, i32* %6
%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 = icmp ne i32 %108, 32
br i1 %109, label %110, label %152
110: ; preds = %98
%111 = load i8**, i8*** %4
%112 = load i32, i32* %5
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i8*, i8** %111, i64 %113
%115 = load i8*, i8** %114
%116 = load i32, i32* %6
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i8, i8* %115, i64 %117
%119 = load i8, i8* %118
%120 = sext i8 %119 to i32
%121 = icmp eq i32 %120, 77
br i1 %121, label %122, label %124
122: ; preds = %110
%123 = call i32 @chcolor(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
br label %124
124: ; preds = %122, %110
%125 = load i8**, i8*** %4
%126 = load i32, i32* %5
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i8*, i8** %125, i64 %127
%129 = load i8*, i8** %128
%130 = load i32, i32* %6
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds i8, i8* %129, i64 %131
%133 = load i8, i8* %132
%134 = sext i8 %133 to i32
%135 = icmp eq i32 %134, 72
br i1 %135, label %136, label %138
136: ; preds = %124
%137 = call i32 @chcolor(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
br label %138
138: ; preds = %136, %124
%139 = load i8**, i8*** %4
%140 = load i32, i32* %5
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds i8*, i8** %139, i64 %141
%143 = load i8*, i8** %142
%144 = load i32, i32* %6
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i8, i8* %143, i64 %145
%147 = load i8, i8* %146
%148 = sext i8 %147 to i32
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %148)
%150 = call i32 @chcolor(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %154
152: ; preds = %98, %86
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
br label %154
154: ; preds = %152, %138
br label %155
155: ; preds = %154
%156 = load i32, i32* %6
%157 = add nsw i32 %156, 1
store i32 %157, i32* %6
br label %83
158: ; preds = %83
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%160 = load i8, i8* %7
%161 = add i8 %160, -1
store i8 %161, i8* %7
%162 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.1, i64 0, i64 0))
br label %163
163: ; preds = %158
%164 = load i32, i32* %5
%165 = add nsw i32 %164, -1
store i32 %165, i32* %5
br label %10
166: ; preds = %10
%167 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.2 = [5 x i8] c"%c |\00"
@.str.3 = [9 x i8] c"\1B[01;34m\00"
@.str.4 = [9 x i8] c"\1B[22;32m\00"
@.str.5 = [9 x i8] c"\1B[22;31m\00"
@.str.6 = [5 x i8] c" %c \00"
@.str.7 = [9 x i8] c"\1B[01;37m\00"
@.str.9 = [8 x i8] c" %c |\00"
@.str.10 = [5 x i8] c" |\00"
@str = [61 x i8] c" Your turrets Your bombs\00"
@str.14 = [73 x i8] c" 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8\0A\00"
@str.15 = [74 x i8] c" +---+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+\00"
define void @grid(i8** nocapture %0, i8** nocapture %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.15, i64 0, i64 0))
br label %5
5: ; preds = %2, %77
%6 = phi i64 [ 7, %2 ], [ %81, %77 ]
%7 = phi i32 [ 104, %2 ], [ %79, %77 ]
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %7)
%9 = getelementptr inbounds i8*, i8** %0, i64 %6
br label %10
10: ; preds = %5, %37
%11 = phi i64 [ 0, %5 ], [ %43, %37 ]
%12 = load i8*, i8** %9
%13 = getelementptr inbounds i8, i8* %12, i64 %11
%14 = load i8, i8* %13
%15 = icmp eq i8 %14, 84
br i1 %15, label %16, label %21
16: ; preds = %10
%17 = tail call i32 @chcolor(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%18 = load i8*, i8** %9
%19 = getelementptr inbounds i8, i8* %18, i64 %11
%20 = load i8, i8* %19
br label %21
21: ; preds = %16, %10
%22 = phi i8 [ %20, %16 ], [ %14, %10 ]
%23 = icmp eq i8 %22, 77
br i1 %23, label %24, label %29
24: ; preds = %21
%25 = tail call i32 @chcolor(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%26 = load i8*, i8** %9
%27 = getelementptr inbounds i8, i8* %26, i64 %11
%28 = load i8, i8* %27
br label %29
29: ; preds = %24, %21
%30 = phi i8 [ %28, %24 ], [ %22, %21 ]
%31 = icmp eq i8 %30, 72
br i1 %31, label %32, label %37
32: ; preds = %29
%33 = tail call i32 @chcolor(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%34 = load i8*, i8** %9
%35 = getelementptr inbounds i8, i8* %34, i64 %11
%36 = load i8, i8* %35
br label %37
37: ; preds = %32, %29
%38 = phi i8 [ %36, %32 ], [ %30, %29 ]
%39 = sext i8 %38 to i32
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %39)
%41 = tail call i32 @chcolor(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%42 = tail call i32 @putchar(i32 124)
%43 = add nuw nsw i64 %11, 1
%44 = icmp eq i64 %43, 8
br i1 %44, label %45, label %10
45: ; preds = %37
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 %7)
%47 = getelementptr inbounds i8*, i8** %1, i64 %6
br label %48
48: ; preds = %45, %74
%49 = phi i64 [ 0, %45 ], [ %75, %74 ]
%50 = load i8*, i8** %47
%51 = getelementptr inbounds i8, i8* %50, i64 %49
%52 = load i8, i8* %51
switch i8 %52, label %58 [
i8 84, label %72
i8 32, label %72
i8 77, label %53
]
53: ; preds = %48
%54 = tail call i32 @chcolor(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%55 = load i8*, i8** %47
%56 = getelementptr inbounds i8, i8* %55, i64 %49
%57 = load i8, i8* %56
br label %58
58: ; preds = %48, %53
%59 = phi i8 [ %52, %48 ], [ %57, %53 ]
%60 = icmp eq i8 %59, 72
br i1 %60, label %61, label %66
61: ; preds = %58
%62 = tail call i32 @chcolor(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%63 = load i8*, i8** %47
%64 = getelementptr inbounds i8, i8* %63, i64 %49
%65 = load i8, i8* %64
br label %66
66: ; preds = %61, %58
%67 = phi i8 [ %65, %61 ], [ %59, %58 ]
%68 = sext i8 %67 to i32
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %68)
%70 = tail call i32 @chcolor(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%71 = tail call i32 @putchar(i32 124)
br label %74
72: ; preds = %48, %48
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
br label %74
74: ; preds = %66, %72
%75 = add nuw nsw i64 %49, 1
%76 = icmp eq i64 %75, 8
br i1 %76, label %77, label %48
77: ; preds = %74
%78 = tail call i32 @putchar(i32 10)
%79 = add nsw i32 %7, -1
%80 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.15, i64 0, i64 0))
%81 = add nsw i64 %6, -1
%82 = icmp eq i64 %6, 0
br i1 %82, label %83, label %5
83: ; preds = %77
%84 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.14, i64 0, i64 0))
ret void
}