#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*/ getchar();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  int num_seat[10][10] = {
      0,
  };
  int num_seat_column, num_menu;
  char num_seat_row[1];
  while (1) {
    printf("1) 좌석 예약 현황\n2) 좌석 예약\n3) 프로그램 종료\n");
    printf("메뉴를 입력하세요: ");
    scanf("%d", &num_menu);
    if (num_menu == 1) {
      printf("    1 2 3 4 5 6 7 8 9 10\n  -------------------------\n");
      for (int i = 0; i < 10; i++) {
        printf("%c | ", 'A' + i);
        for (int j = 0; j < 10; j++) {
          printf("%d ", num_seat[i][j]);
        }
        printf("\n");
      }
    } else if (num_menu == 2) {
      printf("좌석을 입력하세요: ");
      scanf("%s %d", num_seat_row, &num_seat_column);
      getchar();
      if (num_seat[(int)num_seat_row[0] - 'A'][num_seat_column - 1] != 1) {
        printf("예약이 완료되었습니다.\n");
        num_seat[(int)num_seat_row[0] - 'A'][num_seat_column - 1] = 1;
      } else {
        printf("이미 예약된 자리입니다. 다른 좌석을 선택하세요.\n");
      }
    } else if (num_menu == 3) {
      break;
    } else {
      continue;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1c0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x1a0(%rbp),%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1040 <memset@plt>
lea    0xe94(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
lea    -0x1a8(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
cmpl   $0x1,-0x1a8(%rbp)
jne    125e <main+0x11e>
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1b0(%rbp)
cmpl   $0xa,-0x1b0(%rbp)
jge    1259 <main+0x119>
mov    -0x1b0(%rbp),%esi
add    $0x41,%esi
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1b4(%rbp)
cmpl   $0xa,-0x1b4(%rbp)
jge    1237 <main+0xf7>
movslq -0x1b0(%rbp),%rcx
lea    -0x1a0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x1b4(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1b4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1b4(%rbp)
jmp    11e9 <main+0xa9>
lea    0xe53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1b0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1b0(%rbp)
jmp    11bb <main+0x7b>
jmp    133d <main+0x1fd>
cmpl   $0x2,-0x1a8(%rbp)
jne    1321 <main+0x1e1>
lea    0xe2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x1a9(%rbp),%rsi
lea    0xe32(%rip),%rdi
lea    -0x1a4(%rbp),%rdx
mov    $0x0,%al
call   1060 <scanf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
movsbl -0x1a9(%rbp),%eax
sub    $0x41,%eax
movslq %eax,%rcx
lea    -0x1a0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
mov    -0x1a4(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
cmpl   $0x1,(%rax,%rcx,4)
je     130e <main+0x1ce>
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x1a9(%rbp),%eax
sub    $0x41,%eax
movslq %eax,%rcx
lea    -0x1a0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
mov    -0x1a4(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movl   $0x1,(%rax,%rcx,4)
jmp    131c <main+0x1dc>
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1338 <main+0x1f8>
cmpl   $0x3,-0x1a8(%rbp)
jne    1333 <main+0x1f3>
jmp    1342 <main+0x202>
jmp    1165 <main+0x25>
jmp    133d <main+0x1fd>
jmp    1165 <main+0x25>
xor    %eax,%eax
add    $0x1c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1a8,%rsp
lea    0x10(%rsp),%rdi
mov    $0x190,%edx
xor    %esi,%esi
call   1060 <memset@plt>
lea    0xebc(%rip),%r12
lea    0xc(%rsp),%rbx
lea    0xe87(%rip),%rbp
lea    0xe86(%rip),%r13
jmp    11a9 <main+0x49>
xchg   %ax,%ax
cmp    $0x3,%eax
je     1369 <main+0x209>
lea    0xe98(%rip),%rdi
call   1040 <puts@plt>
lea    0xe44(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0x1,%eax
je     1250 <main+0xf0>
cmp    $0x2,%eax
jne    11a0 <main+0x40>
lea    0xe41(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe4f(%rip),%rdi
lea    0x7(%rsp),%rsi
lea    0x8(%rsp),%rdx
xor    %eax,%eax
call   1080 <scanf@plt>
xor    %eax,%eax
call   1070 <getchar@plt>
movsbq 0x7(%rsp),%rax
lea    (%rax,%rax,4),%rax
movslq 0x8(%rsp),%rcx
lea    (%rsp,%rax,8),%rax
add    $0x10,%rax
cmpl   $0x1,-0xa2c(%rax,%rcx,4)
01
jne    1336 <main+0x1d6>
lea    0xe51(%rip),%rdi
call   1040 <puts@plt>
jmp    11a9 <main+0x49>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0xe96(%rip),%rdi
call   1040 <puts@plt>
mov    $0x41,%r14d
mov    $0x24,%r15d
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x14(%rsp,%r15,1),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x10(%rsp,%r15,1),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0xc(%rsp,%r15,1),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x8(%rsp,%r15,1),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x4(%rsp,%r15,1),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rsp,%r15,1),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp,%r15,1),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp,%r15,1),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp,%r15,1),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp,%r15,1),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r14d
add    $0x28,%r15
cmp    $0x1b4,%r15
jne    1270 <main+0x110>
jmp    11a9 <main+0x49>
lea    0xd8f(%rip),%rdi
call   1040 <puts@plt>
movsbq 0x7(%rsp),%rax
lea    (%rax,%rax,4),%rax
movslq 0x8(%rsp),%rcx
lea    (%rsp,%rax,8),%rax
add    $0x10,%rax
movl   $0x1,-0xa2c(%rax,%rcx,4)
jmp    11a9 <main+0x49>
xor    %eax,%eax
add    $0x1a8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [65 x i8] c"1) \EC\A2\8C\EC\84\9D \EC\98\88\EC\95\BD \ED\98\84\ED\99\A9\0A2) \EC\A2\8C\EC\84\9D \EC\98\88\EC\95\BD\0A3) \ED\94\84\EB\A1\9C\EA\B7\B8\EB\9E\A8 \EC\A2\85\EB\A3\8C\0A\00"
@.str.1 = [28 x i8] c"\EB\A9\94\EB\89\B4\EB\A5\BC \EC\9E\85\EB\A0\A5\ED\95\98\EC\84\B8\EC\9A\94: \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [54 x i8] c" 1 2 3 4 5 6 7 8 9 10\0A -------------------------\0A\00"
@.str.4 = [6 x i8] c"%c | \00"
@.str.5 = [4 x i8] c"%d \00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [28 x i8] c"\EC\A2\8C\EC\84\9D\EC\9D\84 \EC\9E\85\EB\A0\A5\ED\95\98\EC\84\B8\EC\9A\94: \00"
@.str.8 = [6 x i8] c"%s %d\00"
@.str.9 = [34 x i8] c"\EC\98\88\EC\95\BD\EC\9D\B4 \EC\99\84\EB\A3\8C\EB\90\98\EC\97\88\EC\8A\B5\EB\8B\88\EB\8B\A4.\0A\00"
@.str.10 = [69 x i8] c"\EC\9D\B4\EB\AF\B8 \EC\98\88\EC\95\BD\EB\90\9C \EC\9E\90\EB\A6\AC\EC\9E\85\EB\8B\88\EB\8B\A4. \EB\8B\A4\EB\A5\B8 \EC\A2\8C\EC\84\9D\EC\9D\84 \EC\84\A0\ED\83\9D\ED\95\98\EC\84\B8\EC\9A\94.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x [10 x i32]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca [1 x i8]
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
%8 = bitcast [10 x [10 x i32]]* %2 to i8*
br label %9
9: ; preds = %0, %84, %86
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
%13 = load i32, i32* %4
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %45
15: ; preds = %9
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %6
br label %17
17: ; preds = %41, %15
%18 = load i32, i32* %6
%19 = icmp slt i32 %18, 10
br i1 %19, label %20, label %44
20: ; preds = %17
%21 = load i32, i32* %6
%22 = add nsw i32 65, %21
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %22)
store i32 0, i32* %7
br label %24
24: ; preds = %36, %20
%25 = load i32, i32* %7
%26 = icmp slt i32 %25, 10
br i1 %26, label %27, label %39
27: ; preds = %24
%28 = load i32, i32* %6
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %2, i64 0, i64 %29
%31 = load i32, i32* %7
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [10 x i32], [10 x i32]* %30, i64 0, i64 %32
%34 = load i32, i32* %33
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %34)
br label %36
36: ; preds = %27
%37 = load i32, i32* %7
%38 = add nsw i32 %37, 1
store i32 %38, i32* %7
br label %24
39: ; preds = %24
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %41
41: ; preds = %39
%42 = load i32, i32* %6
%43 = add nsw i32 %42, 1
store i32 %43, i32* %6
br label %17
44: ; preds = %17
br label %86
45: ; preds = %9
%46 = load i32, i32* %4
%47 = icmp eq i32 %46, 2
br i1 %47, label %48, label %80
48: ; preds = %45
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0))
%50 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%51 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* %50, i32* %3)
%52 = call i32 (...) @getchar()
%53 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%54 = load i8, i8* %53
%55 = sext i8 %54 to i32
%56 = sub nsw i32 %55, 65
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %2, i64 0, i64 %57
%59 = load i32, i32* %3
%60 = sub nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [10 x i32], [10 x i32]* %58, i64 0, i64 %61
%63 = load i32, i32* %62
%64 = icmp ne i32 %63, 1
br i1 %64, label %65, label %77
65: ; preds = %48
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0))
%67 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%68 = load i8, i8* %67
%69 = sext i8 %68 to i32
%70 = sub nsw i32 %69, 65
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %2, i64 0, i64 %71
%73 = load i32, i32* %3
%74 = sub nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [10 x i32], [10 x i32]* %72, i64 0, i64 %75
store i32 1, i32* %76
br label %79
77: ; preds = %48
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.10, i64 0, i64 0))
br label %79
79: ; preds = %77, %65
br label %85
80: ; preds = %45
%81 = load i32, i32* %4
%82 = icmp eq i32 %81, 3
br i1 %82, label %83, label %84
83: ; preds = %80
br label %87
84: ; preds = %80
br label %9
85: ; preds = %79
br label %86
86: ; preds = %85, %44
br label %9
87: ; preds = %83
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [28 x i8] c"\EB\A9\94\EB\89\B4\EB\A5\BC \EC\9E\85\EB\A0\A5\ED\95\98\EC\84\B8\EC\9A\94: \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.4 = [6 x i8] c"%c | \00"
@.str.5 = [4 x i8] c"%d \00"
@.str.7 = [28 x i8] c"\EC\A2\8C\EC\84\9D\EC\9D\84 \EC\9E\85\EB\A0\A5\ED\95\98\EC\84\B8\EC\9A\94: \00"
@.str.8 = [6 x i8] c"%s %d\00"
@str = [64 x i8] c"1) \EC\A2\8C\EC\84\9D \EC\98\88\EC\95\BD \ED\98\84\ED\99\A9\0A2) \EC\A2\8C\EC\84\9D \EC\98\88\EC\95\BD\0A3) \ED\94\84\EB\A1\9C\EA\B7\B8\EB\9E\A8 \EC\A2\85\EB\A3\8C\00"
@str.11 = [68 x i8] c"\EC\9D\B4\EB\AF\B8 \EC\98\88\EC\95\BD\EB\90\9C \EC\9E\90\EB\A6\AC\EC\9E\85\EB\8B\88\EB\8B\A4. \EB\8B\A4\EB\A5\B8 \EC\A2\8C\EC\84\9D\EC\9D\84 \EC\84\A0\ED\83\9D\ED\95\98\EC\84\B8\EC\9A\94.\00"
@str.12 = [33 x i8] c"\EC\98\88\EC\95\BD\EC\9D\B4 \EC\99\84\EB\A3\8C\EB\90\98\EC\97\88\EC\8A\B5\EB\8B\88\EB\8B\A4.\00"
@str.13 = [53 x i8] c" 1 2 3 4 5 6 7 8 9 10\0A -------------------------\00"
define i32 @main() {
%1 = alloca [10 x [10 x i32]]
%2 = alloca i32
%3 = alloca i32
%4 = alloca [1 x i8]
%5 = bitcast [10 x [10 x i32]]* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = bitcast i32* %3 to i8*
%8 = getelementptr inbounds [1 x i8], [1 x i8]* %4, i64 0, i64 0
br label %9
9: ; preds = %76, %0
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%13 = load i32, i32* %3
switch i32 %13, label %76 [
i32 1, label %14
i32 2, label %54
i32 3, label %79
]
14: ; preds = %9
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.13, i64 0, i64 0))
br label %16
16: ; preds = %14, %16
%17 = phi i64 [ 0, %14 ], [ %52, %16 ]
%18 = trunc i64 %17 to i32
%19 = add i32 %18, 65
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %19)
%21 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 %17, i64 0
%22 = load i32, i32* %21
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %22)
%24 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 %17, i64 1
%25 = load i32, i32* %24
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %25)
%27 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 %17, i64 2
%28 = load i32, i32* %27
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %28)
%30 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 %17, i64 3
%31 = load i32, i32* %30
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %31)
%33 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 %17, i64 4
%34 = load i32, i32* %33
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %34)
%36 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 %17, i64 5
%37 = load i32, i32* %36
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %37)
%39 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 %17, i64 6
%40 = load i32, i32* %39
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %40)
%42 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 %17, i64 7
%43 = load i32, i32* %42
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %43)
%45 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 %17, i64 8
%46 = load i32, i32* %45
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %46)
%48 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 %17, i64 9
%49 = load i32, i32* %48
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %49)
%51 = call i32 @putchar(i32 10)
%52 = add nuw nsw i64 %17, 1
%53 = icmp eq i64 %52, 10
br i1 %53, label %76, label %16
54: ; preds = %9
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0))
%56 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* %8, i32* %2)
%57 = call i32 (...) @getchar()
%58 = load i8, i8* %8
%59 = sext i8 %58 to i64
%60 = add nsw i64 %59, -65
%61 = load i32, i32* %2
%62 = add nsw i32 %61, -1
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 %60, i64 %63
%65 = load i32, i32* %64
%66 = icmp eq i32 %65, 1
br i1 %66, label %77, label %67
67: ; preds = %54
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.12, i64 0, i64 0))
%69 = load i8, i8* %8
%70 = sext i8 %69 to i64
%71 = add nsw i64 %70, -65
%72 = load i32, i32* %2
%73 = add nsw i32 %72, -1
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 %71, i64 %74
store i32 1, i32* %75
br label %76
76: ; preds = %16, %67, %77, %9
br label %9
77: ; preds = %54
%78 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.11, i64 0, i64 0))
br label %76
79: ; preds = %9
ret i32 0
}