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

/* Variables and functions */
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sscanf(char *, char *, char *);
int /*<<< orphan*/ stdin;
int main(int argc, char *argv[]) {
  char print = 'p';
  char quit = 'q';
  char given = 'g';
  char input;
  char string[21];
  char *matrix[22][10];
  int i = 0;
  int j = 0;
  int k = 0;
  int done = 0;
  char temp[5];
  for (i = 0; i <= 21; i++) {
    for (j = 0; j <= 9; j++) {
      matrix[i][j] = ". ";
    }
  }
  while (done != 1) {
    fgets(temp, sizeof(temp), stdin);
    sscanf(temp, "%c", &input);
    if (input == print) {
      i = 0;
      j = 0;
      for (i = 0; i <= 21; i++) {
        for (j = 0; j <= 9; j++) {
          printf("%s", matrix[i][j]);
        }
        printf("\n");
      }
    } else if (input == quit) {
      done = 1;
    } else if (input == given) {
      for (i = 0; i < 22; i++) {
        fgets(string, sizeof(string), stdin);
      }
    }
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x730,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movb   $0x70,-0x11(%rbp)
movb   $0x71,-0x12(%rbp)
movb   $0x67,-0x13(%rbp)
movl   $0x0,-0x714(%rbp)
movl   $0x0,-0x718(%rbp)
movl   $0x0,-0x71c(%rbp)
movl   $0x0,-0x720(%rbp)
movl   $0x0,-0x714(%rbp)
cmpl   $0x15,-0x714(%rbp)
jg     11ff <main+0xcf>
movl   $0x0,-0x718(%rbp)
cmpl   $0x9,-0x718(%rbp)
jg     11e6 <main+0xb6>
movslq -0x714(%rbp),%rcx
lea    -0x710(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x718(%rbp),%rcx
lea    0xe32(%rip),%rdx
mov    %rdx,(%rax,%rcx,8)
mov    -0x718(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x718(%rbp)
jmp    119e <main+0x6e>
jmp    11eb <main+0xbb>
mov    -0x714(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x714(%rbp)
jmp    1187 <main+0x57>
jmp    1204 <main+0xd4>
cmpl   $0x1,-0x720(%rbp)
je     1382 <main+0x252>
lea    -0x725(%rbp),%rdi
mov    0x2dc9(%rip),%rax
mov    (%rax),%edx
mov    $0x5,%esi
call   1040 <fgets@plt>
lea    -0x725(%rbp),%rdi
lea    0xdca(%rip),%rsi
lea    -0x14(%rbp),%rdx
call   1050 <sscanf@plt>
movsbl -0x14(%rbp),%eax
movsbl -0x11(%rbp),%ecx
cmp    %ecx,%eax
jne    12fd <main+0x1cd>
movl   $0x0,-0x714(%rbp)
movl   $0x0,-0x718(%rbp)
movl   $0x0,-0x714(%rbp)
cmpl   $0x15,-0x714(%rbp)
jg     12f8 <main+0x1c8>
movl   $0x0,-0x718(%rbp)
cmpl   $0x9,-0x718(%rbp)
jg     12d6 <main+0x1a6>
movslq -0x714(%rbp),%rcx
lea    -0x710(%rbp),%rax
imul   $0x50,%rcx,%rcx
add    %rcx,%rax
movslq -0x718(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xd4b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x718(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x718(%rbp)
jmp    1287 <main+0x157>
lea    0xd2c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x714(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x714(%rbp)
jmp    1270 <main+0x140>
jmp    137d <main+0x24d>
movsbl -0x14(%rbp),%eax
movsbl -0x12(%rbp),%ecx
cmp    %ecx,%eax
jne    131c <main+0x1ec>
movl   $0x1,-0x720(%rbp)
jmp    1378 <main+0x248>
movsbl -0x14(%rbp),%eax
movsbl -0x13(%rbp),%ecx
cmp    %ecx,%eax
jne    1373 <main+0x243>
movl   $0x0,-0x714(%rbp)
cmpl   $0x16,-0x714(%rbp)
jge    136e <main+0x23e>
lea    -0x30(%rbp),%rdi
mov    0x2c9a(%rip),%rax
mov    (%rax),%edx
mov    $0x15,%esi
call   1040 <fgets@plt>
mov    -0x714(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x714(%rbp)
jmp    1336 <main+0x206>
jmp    1373 <main+0x243>
jmp    1378 <main+0x248>
jmp    137d <main+0x24d>
jmp    1204 <main+0xd4>
xor    %eax,%eax
add    $0x730,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x718,%rsp
mov    $0x48,%eax
lea    0xea3(%rip),%rcx
nopl   (%rax)
mov    %rcx,-0x18(%rsp,%rax,1)
mov    %rcx,-0x10(%rsp,%rax,1)
mov    %rcx,-0x8(%rsp,%rax,1)
mov    %rcx,(%rsp,%rax,1)
mov    %rcx,0x8(%rsp,%rax,1)
mov    %rcx,0x10(%rsp,%rax,1)
mov    %rcx,0x18(%rsp,%rax,1)
mov    %rcx,0x20(%rsp,%rax,1)
mov    %rcx,0x28(%rsp,%rax,1)
mov    %rcx,0x30(%rsp,%rax,1)
add    $0x50,%rax
cmp    $0x728,%rax
jne    1160 <main+0x20>
mov    0x2e44(%rip),%rbp
lea    0xb(%rsp),%r12
lea    0xa(%rsp),%r15
lea    0x10(%rsp),%r13
lea    0xe4c(%rip),%rbx
jmp    11c8 <main+0x88>
nopl   0x0(%rax)
cmp    $0x71,%al
je     1425 <main+0x2e5>
mov    0x0(%rbp),%edx
mov    %r12,%rdi
mov    $0x5,%esi
call   1050 <fgets@plt>
mov    %r12,%rdi
lea    0xe21(%rip),%rsi
mov    %r15,%rdx
call   1060 <sscanf@plt>
mov    0xa(%rsp),%al
cmp    $0x67,%al
je     12c0 <main+0x180>
cmp    $0x70,%al
jne    11c0 <main+0x80>
mov    $0x48,%r14d
mov    -0x18(%rsp,%r14,1),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x10(%rsp,%r14,1),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x8(%rsp,%r14,1),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp,%r14,1),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp,%r14,1),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp,%r14,1),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp,%r14,1),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp,%r14,1),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x28(%rsp,%r14,1),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x30(%rsp,%r14,1),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x50,%r14
cmp    $0x728,%r14
jne    1200 <main+0xc0>
jmp    11c8 <main+0x88>
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
mov    0x0(%rbp),%edx
mov    %r13,%rdi
mov    $0x15,%esi
call   1050 <fgets@plt>
jmp    11c8 <main+0x88>
xor    %eax,%eax
add    $0x718,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c". \00"
@stdin = global i32 0
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
%10 = alloca [21 x i8]
%11 = alloca [22 x [10 x i8*]]
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca [5 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8 112, i8* %6
store i8 113, i8* %7
store i8 103, i8* %8
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %14
store i32 0, i32* %15
store i32 0, i32* %12
br label %17
17: ; preds = %35, %2
%18 = load i32, i32* %12
%19 = icmp sle i32 %18, 21
br i1 %19, label %20, label %38
20: ; preds = %17
store i32 0, i32* %13
br label %21
21: ; preds = %31, %20
%22 = load i32, i32* %13
%23 = icmp sle i32 %22, 9
br i1 %23, label %24, label %34
24: ; preds = %21
%25 = load i32, i32* %12
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [22 x [10 x i8*]], [22 x [10 x i8*]]* %11, i64 0, i64 %26
%28 = load i32, i32* %13
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [10 x i8*], [10 x i8*]* %27, i64 0, i64 %29
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %30
br label %31
31: ; preds = %24
%32 = load i32, i32* %13
%33 = add nsw i32 %32, 1
store i32 %33, i32* %13
br label %21
34: ; preds = %21
br label %35
35: ; preds = %34
%36 = load i32, i32* %12
%37 = add nsw i32 %36, 1
store i32 %37, i32* %12
br label %17
38: ; preds = %17
br label %39
39: ; preds = %106, %38
%40 = load i32, i32* %15
%41 = icmp ne i32 %40, 1
br i1 %41, label %42, label %107
42: ; preds = %39
%43 = getelementptr inbounds [5 x i8], [5 x i8]* %16, i64 0, i64 0
%44 = load i32, i32* @stdin
%45 = call i32 @fgets(i8* %43, i32 5, i32 %44)
%46 = getelementptr inbounds [5 x i8], [5 x i8]* %16, i64 0, i64 0
%47 = call i32 @sscanf(i8* %46, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %9)
%48 = load i8, i8* %9
%49 = sext i8 %48 to i32
%50 = load i8, i8* %6
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %49, %51
br i1 %52, label %53, label %79
53: ; preds = %42
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %12
br label %54
54: ; preds = %75, %53
%55 = load i32, i32* %12
%56 = icmp sle i32 %55, 21
br i1 %56, label %57, label %78
57: ; preds = %54
store i32 0, i32* %13
br label %58
58: ; preds = %70, %57
%59 = load i32, i32* %13
%60 = icmp sle i32 %59, 9
br i1 %60, label %61, label %73
61: ; preds = %58
%62 = load i32, i32* %12
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [22 x [10 x i8*]], [22 x [10 x i8*]]* %11, i64 0, i64 %63
%65 = load i32, i32* %13
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [10 x i8*], [10 x i8*]* %64, i64 0, i64 %66
%68 = load i8*, i8** %67
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %68)
br label %70
70: ; preds = %61
%71 = load i32, i32* %13
%72 = add nsw i32 %71, 1
store i32 %72, i32* %13
br label %58
73: ; preds = %58
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %75
75: ; preds = %73
%76 = load i32, i32* %12
%77 = add nsw i32 %76, 1
store i32 %77, i32* %12
br label %54
78: ; preds = %54
br label %106
79: ; preds = %42
%80 = load i8, i8* %9
%81 = sext i8 %80 to i32
%82 = load i8, i8* %7
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %81, %83
br i1 %84, label %85, label %86
85: ; preds = %79
store i32 1, i32* %15
br label %105
86: ; preds = %79
%87 = load i8, i8* %9
%88 = sext i8 %87 to i32
%89 = load i8, i8* %8
%90 = sext i8 %89 to i32
%91 = icmp eq i32 %88, %90
br i1 %91, label %92, label %104
92: ; preds = %86
store i32 0, i32* %12
br label %93
93: ; preds = %100, %92
%94 = load i32, i32* %12
%95 = icmp slt i32 %94, 22
br i1 %95, label %96, label %103
96: ; preds = %93
%97 = getelementptr inbounds [21 x i8], [21 x i8]* %10, i64 0, i64 0
%98 = load i32, i32* @stdin
%99 = call i32 @fgets(i8* %97, i32 21, i32 %98)
br label %100
100: ; preds = %96
%101 = load i32, i32* %12
%102 = add nsw i32 %101, 1
store i32 %102, i32* %12
br label %93
103: ; preds = %93
br label %104
104: ; preds = %103, %86
br label %105
105: ; preds = %104, %85
br label %106
106: ; preds = %105, %78
br label %39
107: ; preds = %39
ret i32 0
}

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