#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*/ printf(char *, ...);
void draw_board(char *board) {
  int x = 0;
  int y = 0;
  int bg_color;
  int fg_color;
  printf("\n");
  for (y = 0; y < 8; y++) {
    printf(" %d ", 8 - y);
    for (x = 0; x < 8; x++) {
      char piece = board[x + y * 8];
      if ((piece > 'a') && (piece < 'z'))
        printf("\033[1;30m");
      else
        printf("\033[1;37m");
      bg_color = (x % 2) + (y % 2) % 2;
      if (bg_color == 1)
        printf("\033[1;40m");
      else
        printf("\033[1;41m");
      printf(" %c ", piece);
      printf("\033[0m");
    }
    printf("\n");
  }
  printf("\n    a  b  c  d  e  f  g  h\n\n");
}


x86 assembly (clang, -O0):
<draw_board>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
lea    0xf1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x10(%rbp)
cmpl   $0x8,-0x10(%rbp)
jge    1265 <draw_board+0x155>
mov    $0x8,%esi
sub    -0x10(%rbp),%esi
lea    0xea8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x8,-0xc(%rbp)
jge    1249 <draw_board+0x139>
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
mov    -0x10(%rbp),%edx
shl    $0x3,%edx
add    %edx,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x19(%rbp)
movsbl -0x19(%rbp),%eax
cmp    $0x61,%eax
jle    11b5 <draw_board+0xa5>
movsbl -0x19(%rbp),%eax
cmp    $0x7a,%eax
jge    11b5 <draw_board+0xa5>
lea    0xe5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11c3 <draw_board+0xb3>
lea    0xe51(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %edx,-0x20(%rbp)
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
mov    -0x20(%rbp),%edx
add    %eax,%edx
mov    %edx,-0x14(%rbp)
cmpl   $0x1,-0x14(%rbp)
jne    120d <draw_board+0xfd>
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    121b <draw_board+0x10b>
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x19(%rbp),%esi
lea    0xdff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdf6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1166 <draw_board+0x56>
lea    0xdfb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    113f <draw_board+0x2f>
lea    0xdc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_board>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdi,0x20(%rsp)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x8,%eax
xor    %r14d,%r14d
mov    0x20(%rsp),%r15
nopw   0x0(%rax,%rax,1)
mov    %rax,0x18(%rsp)
lea    0xe94(%rip),%rdi
mov    0x18(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl (%r15,%r14,8),%r12d
lea    -0x62(%r12),%eax
cmp    $0x18,%al
lea    0xe82(%rip),%r13
mov    %r13,%rdi
lea    0xe70(%rip),%rax
cmovb  %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x1,%r14b
lea    0xe6a(%rip),%rax
mov    %rax,%rdi
lea    0xe68(%rip),%rbp
cmove  %rbp,%rdi
mov    %rdi,0x8(%rsp)
cmove  %rax,%rbp
mov    %rbp,0x10(%rsp)
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe50(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe44(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x1(%r15,%r14,8),%ebx
lea    -0x62(%rbx),%eax
cmp    $0x18,%al
mov    %r13,%rdi
lea    0xe03(%rip),%r12
cmovb  %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe07(%rip),%rbp
mov    %rbp,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdf9(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x2(%r15,%r14,8),%ebx
lea    -0x62(%rbx),%eax
cmp    $0x18,%al
cmovb  %r12,%r13
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%r13
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdb7(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x3(%r15,%r14,8),%ebx
lea    -0x62(%rbx),%eax
cmp    $0x18,%al
lea    0xd81(%rip),%r12
mov    %r12,%rdi
lea    0xd6f(%rip),%rax
cmovb  %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp),%rbp
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd6e(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd63(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x4(%r15,%r14,8),%ebx
lea    -0x62(%rbx),%eax
cmp    $0x18,%al
mov    %r12,%rdi
lea    0xd22(%rip),%rax
cmovb  %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd26(%rip),%r13
mov    %r13,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd18(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x5(%r15,%r14,8),%ebx
lea    -0x62(%rbx),%eax
cmp    $0x18,%al
mov    %r12,%rdi
lea    0xcd7(%rip),%r12
cmovb  %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xcd4(%rip),%rdi
mov    %rdi,%rbp
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x6(%r15,%r14,8),%ebx
lea    -0x62(%rbx),%eax
cmp    $0x18,%al
lea    0xc9b(%rip),%rdi
cmovb  %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0x7(%r15,%r14,8),%ebx
lea    -0x62(%rbx),%eax
cmp    $0x18,%al
lea    0xc5c(%rip),%rdi
cmovb  %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x18(%rsp),%rax
add    $0x1,%r14
add    $0xffffffffffffffff,%rax
jne    1160 <draw_board+0x30>
lea    0xc2d(%rip),%rdi
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [5 x i8] c" %d \00"
@.str.2 = [8 x i8] c"\1B[1;30m\00"
@.str.3 = [8 x i8] c"\1B[1;37m\00"
@.str.4 = [8 x i8] c"\1B[1;40m\00"
@.str.5 = [8 x i8] c"\1B[1;41m\00"
@.str.6 = [5 x i8] c" %c \00"
@.str.7 = [5 x i8] c"\1B[0m\00"
@.str.8 = [30 x i8] c"\0A a b c d e f g h\0A\0A\00"
define void @draw_board(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8
store i8* %0, i8** %2
store i32 0, i32* %3
store i32 0, i32* %4
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %4
br label %9
9: ; preds = %62, %1
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 8
br i1 %11, label %12, label %65
12: ; preds = %9
%13 = load i32, i32* %4
%14 = sub nsw i32 8, %13
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %14)
store i32 0, i32* %3
br label %16
16: ; preds = %57, %12
%17 = load i32, i32* %3
%18 = icmp slt i32 %17, 8
br i1 %18, label %19, label %60
19: ; preds = %16
%20 = load i8*, i8** %2
%21 = load i32, i32* %3
%22 = load i32, i32* %4
%23 = mul nsw i32 %22, 8
%24 = add nsw i32 %21, %23
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, i8* %20, i64 %25
%27 = load i8, i8* %26
store i8 %27, i8* %7
%28 = load i8, i8* %7
%29 = sext i8 %28 to i32
%30 = icmp sgt i32 %29, 97
br i1 %30, label %31, label %37
31: ; preds = %19
%32 = load i8, i8* %7
%33 = sext i8 %32 to i32
%34 = icmp slt i32 %33, 122
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %39
37: ; preds = %31, %19
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %39
39: ; preds = %37, %35
%40 = load i32, i32* %3
%41 = srem i32 %40, 2
%42 = load i32, i32* %4
%43 = srem i32 %42, 2
%44 = srem i32 %43, 2
%45 = add nsw i32 %41, %44
store i32 %45, i32* %5
%46 = load i32, i32* %5
%47 = icmp eq i32 %46, 1
br i1 %47, label %48, label %50
48: ; preds = %39
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
br label %52
50: ; preds = %39
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %52
52: ; preds = %50, %48
%53 = load i8, i8* %7
%54 = sext i8 %53 to i32
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %54)
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %57
57: ; preds = %52
%58 = load i32, i32* %3
%59 = add nsw i32 %58, 1
store i32 %59, i32* %3
br label %16
60: ; preds = %16
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %62
62: ; preds = %60
%63 = load i32, i32* %4
%64 = add nsw i32 %63, 1
store i32 %64, i32* %4
br label %9
65: ; preds = %9
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [5 x i8] c" %d \00"
@.str.2 = [8 x i8] c"\1B[1;30m\00"
@.str.3 = [8 x i8] c"\1B[1;37m\00"
@.str.4 = [8 x i8] c"\1B[1;40m\00"
@.str.5 = [8 x i8] c"\1B[1;41m\00"
@.str.6 = [5 x i8] c" %c \00"
@.str.7 = [5 x i8] c"\1B[0m\00"
@str = [29 x i8] c"\0A a b c d e f g h\0A\00"
define void @draw_board(i8* nocapture %0) {
%2 = tail call i32 @putchar(i32 10)
br label %3
3: ; preds = %1, %3
%4 = phi i64 [ 0, %1 ], [ %115, %3 ]
%5 = trunc i64 %4 to i32
%6 = sub i32 8, %5
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%8 = shl nsw i64 %4, 3
%9 = trunc i64 %4 to i32
%10 = and i32 %9, 1
%11 = getelementptr inbounds i8, i8* %0, i64 %8
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = add i8 %12, -98
%15 = icmp ult i8 %14, 24
%16 = select i1 %15, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %16)
%18 = icmp eq i32 %10, 0
%19 = select i1 %18, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %19)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%23 = or i64 %8, 1
%24 = getelementptr inbounds i8, i8* %0, i64 %23
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = add i8 %25, -98
%28 = icmp ult i8 %27, 24
%29 = select i1 %28, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %29)
%31 = icmp eq i32 %10, 0
%32 = select i1 %31, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0)
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %32)
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %26)
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%36 = or i64 %8, 2
%37 = getelementptr inbounds i8, i8* %0, i64 %36
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = add i8 %38, -98
%41 = icmp ult i8 %40, 24
%42 = select i1 %41, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0)
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %42)
%44 = icmp eq i32 %10, 0
%45 = select i1 %44, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0)
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %45)
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %39)
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%49 = or i64 %8, 3
%50 = getelementptr inbounds i8, i8* %0, i64 %49
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = add i8 %51, -98
%54 = icmp ult i8 %53, 24
%55 = select i1 %54, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0)
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %55)
%57 = icmp eq i32 %10, 0
%58 = select i1 %57, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0)
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %58)
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %52)
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%62 = or i64 %8, 4
%63 = getelementptr inbounds i8, i8* %0, i64 %62
%64 = load i8, i8* %63
%65 = sext i8 %64 to i32
%66 = add i8 %64, -98
%67 = icmp ult i8 %66, 24
%68 = select i1 %67, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0)
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %68)
%70 = icmp eq i32 %10, 0
%71 = select i1 %70, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0)
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %71)
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %65)
%74 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%75 = or i64 %8, 5
%76 = getelementptr inbounds i8, i8* %0, i64 %75
%77 = load i8, i8* %76
%78 = sext i8 %77 to i32
%79 = add i8 %77, -98
%80 = icmp ult i8 %79, 24
%81 = select i1 %80, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0)
%82 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %81)
%83 = icmp eq i32 %10, 0
%84 = select i1 %83, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0)
%85 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %84)
%86 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %78)
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%88 = or i64 %8, 6
%89 = getelementptr inbounds i8, i8* %0, i64 %88
%90 = load i8, i8* %89
%91 = sext i8 %90 to i32
%92 = add i8 %90, -98
%93 = icmp ult i8 %92, 24
%94 = select i1 %93, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0)
%95 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %94)
%96 = icmp eq i32 %10, 0
%97 = select i1 %96, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0)
%98 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %97)
%99 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %91)
%100 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%101 = or i64 %8, 7
%102 = getelementptr inbounds i8, i8* %0, i64 %101
%103 = load i8, i8* %102
%104 = sext i8 %103 to i32
%105 = add i8 %103, -98
%106 = icmp ult i8 %105, 24
%107 = select i1 %106, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0)
%108 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %107)
%109 = icmp eq i32 %10, 0
%110 = select i1 %109, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0)
%111 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %110)
%112 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %104)
%113 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%114 = tail call i32 @putchar(i32 10)
%115 = add nuw nsw i64 %4, 1
%116 = icmp eq i64 %115, 8
br i1 %116, label %117, label %3
117: ; preds = %3
%118 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
ret void
}