#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*/ SEEK_SET;
char fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
int main(int argc, char **argv) {
  char file[] = "char-1002.cn";
  FILE *fp = fopen(file, "r");
  char tag[20] = "";
  int i;
  char junk;
  fseek(fp, SEEK_SET, 0);
  fscanf(fp, "%s\n", tag);
  while (strcmp(tag, "END") != 0) {
    char var[20] = "";
    while (strcmp(var, "End:") != 0) {
      char line[100] = "";
      char esc = fgetc(fp);
      i = 0;
      while (esc != ':') {
        var[i] = esc;
        i++;
        esc = fgetc(fp);
      }
      var[i] = ':';
      var[i + 1] = '\0';
      i = 0;
      do {
        esc = fgetc(fp);
      } while (esc == ' ');
      while (esc != '\n') {
        if (i < 100 - 1) {
          line[i] = esc;
          i++;
        }
        esc = fgetc(fp);
      }
      line[i] = '\0';
      if (strcmp(var, "Say:") == 0 ||
          (var[0] == 'R' && var[1] == 's' && var[2] == 'p')) {
        if ((int)(var[3] - '0') < 10)
          printf("%d: %s\n", (int)(var[3] - '0'), line);
        else
          printf("%s\n", line);
      }
    }
    fscanf(fp, "%s\n", tag);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xe70(%rip),%rax
mov    %rax,-0x1d(%rbp)
mov    0xe6e(%rip),%eax
mov    %eax,-0x15(%rbp)
mov    0xe69(%rip),%al
mov    %al,-0x11(%rbp)
lea    -0x1d(%rbp),%rdi
lea    0xe5c(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x28(%rbp)
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1040 <memset@plt>
mov    -0x28(%rbp),%rdi
mov    0x2e0b(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1080 <fseek@plt>
mov    -0x28(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xe34(%rip),%rsi
call   1050 <fscanf@plt>
lea    -0x40(%rbp),%rdi
lea    0xe12(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     13d9 <main+0x269>
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1040 <memset@plt>
lea    -0x60(%rbp),%rdi
lea    0xdec(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     13c0 <main+0x250>
lea    -0xd0(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
mov    -0x28(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %al,-0xd1(%rbp)
movl   $0x0,-0x44(%rbp)
movsbl -0xd1(%rbp),%eax
cmp    $0x3a,%eax
je     129a <main+0x12a>
mov    -0xd1(%rbp),%cl
movslq -0x44(%rbp),%rax
mov    %cl,-0x60(%rbp,%rax,1)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
mov    -0x28(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %al,-0xd1(%rbp)
jmp    125f <main+0xef>
movslq -0x44(%rbp),%rax
movb   $0x3a,-0x60(%rbp,%rax,1)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
cltq
movb   $0x0,-0x60(%rbp,%rax,1)
movl   $0x0,-0x44(%rbp)
mov    -0x28(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %al,-0xd1(%rbp)
movsbl -0xd1(%rbp),%eax
cmp    $0x20,%eax
je     12b7 <main+0x147>
jmp    12db <main+0x16b>
movsbl -0xd1(%rbp),%eax
cmp    $0xa,%eax
je     1323 <main+0x1b3>
cmpl   $0x63,-0x44(%rbp)
jge    130f <main+0x19f>
mov    -0xd1(%rbp),%cl
movslq -0x44(%rbp),%rax
mov    %cl,-0xd0(%rbp,%rax,1)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
mov    -0x28(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %al,-0xd1(%rbp)
jmp    12db <main+0x16b>
movslq -0x44(%rbp),%rax
movb   $0x0,-0xd0(%rbp,%rax,1)
lea    -0x60(%rbp),%rdi
lea    0xcde(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     1370 <main+0x200>
movsbl -0x60(%rbp),%eax
cmp    $0x52,%eax
jne    13bb <main+0x24b>
movsbl -0x5f(%rbp),%eax
cmp    $0x73,%eax
jne    13bb <main+0x24b>
movsbl -0x5e(%rbp),%eax
cmp    $0x70,%eax
jne    13bb <main+0x24b>
movsbl -0x5d(%rbp),%eax
sub    $0x30,%eax
cmp    $0xa,%eax
jge    13a1 <main+0x231>
movsbl -0x5d(%rbp),%esi
sub    $0x30,%esi
lea    -0xd0(%rbp),%rdx
lea    0xc88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13b6 <main+0x246>
lea    -0xd0(%rbp),%rsi
lea    0xc72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13bb <main+0x24b>
jmp    121c <main+0xac>
mov    -0x28(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xc52(%rip),%rsi
call   1050 <fscanf@plt>
jmp    11f2 <main+0x82>
mov    -0x4(%rbp),%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
movabs $0x6e632e32303031,%rax
mov    %rax,0x25(%rsp)
movabs $0x3030312d72616863,%rax
31 30 30
mov    %rax,0x20(%rsp)
lea    0xe77(%rip),%rsi
lea    0x20(%rsp),%rdi
call   1090 <fopen@plt>
mov    %rax,%rbx
xorps  %xmm0,%xmm0
movaps %xmm0,0x30(%rsp)
movl   $0x0,0x40(%rsp)
mov    0x2e16(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
xor    %edx,%edx
call   1080 <fseek@plt>
lea    0xe54(%rip),%rsi
lea    0x30(%rsp),%rbp
mov    %rbx,%rdi
mov    %rbp,%rdx
call   1050 <fscanf@plt>
lea    0xe2b(%rip),%rsi
mov    %rbp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     136f <main+0x1ff>
lea    0xe17(%rip),%r14
mov    %rsp,%r15
lea    0xe12(%rip),%r12
lea    0x50(%rsp),%r13
jmp    124f <main+0xdf>
nopl   (%rax)
mov    %rbx,%rdi
lea    0xe07(%rip),%rsi
lea    0x30(%rsp),%rbp
mov    %rbp,%rdx
call   1050 <fscanf@plt>
mov    %rbp,%rdi
lea    0xdde(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     136f <main+0x1ff>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movl   $0x0,0x10(%rsp)
jmp    1268 <main+0xf8>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
mov    %r14,%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1220 <main+0xb0>
xorps  %xmm0,%xmm0
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movl   $0x0,0xb0(%rsp)
mov    %rbx,%rdi
call   1060 <fgetc@plt>
xor    %ebp,%ebp
cmp    $0x3a,%al
je     12d3 <main+0x163>
xor    %ebp,%ebp
nopl   (%rax)
mov    %al,(%rsp,%rbp,1)
add    $0x1,%rbp
mov    %rbx,%rdi
call   1060 <fgetc@plt>
cmp    $0x3a,%al
jne    12c0 <main+0x150>
mov    %ebp,%eax
movw   $0x3a,(%rsp,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1060 <fgetc@plt>
cmp    $0x20,%al
je     12e0 <main+0x170>
xor    %ebp,%ebp
jmp    12f8 <main+0x188>
mov    %rbx,%rdi
call   1060 <fgetc@plt>
cmp    $0xa,%al
je     1310 <main+0x1a0>
cmp    $0x62,%ebp
jg     12f0 <main+0x180>
movslq %ebp,%rcx
mov    %al,0x50(%rsp,%rcx,1)
add    $0x1,%ebp
jmp    12f0 <main+0x180>
nopl   (%rax)
movslq %ebp,%rax
movb   $0x0,0x50(%rsp,%rax,1)
mov    %r15,%rdi
mov    %r12,%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1348 <main+0x1d8>
cmpb   $0x52,(%rsp)
jne    1268 <main+0xf8>
cmpb   $0x73,0x1(%rsp)
jne    1268 <main+0xf8>
cmpb   $0x70,0x2(%rsp)
jne    1268 <main+0xf8>
movsbl 0x3(%rsp),%esi
cmp    $0x39,%esi
jg     1260 <main+0xf0>
add    $0xffffffd0,%esi
lea    0xccd(%rip),%rdi
mov    %r13,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1268 <main+0xf8>
xor    %eax,%eax
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@__const.main.file = [13 x i8] c"char-1002.cn\00"
@.str = [2 x i8] c"r\00"
@SEEK_SET = global i32 0
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [4 x i8] c"END\00"
@.str.3 = [5 x i8] c"End:\00"
@.str.4 = [5 x i8] c"Say:\00"
@.str.5 = [8 x i8] c"%d: %s\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [13 x i8]
%4 = alloca [20 x i8]
%5 = alloca [20 x i8]
%6 = alloca [100 x i8]
%7 = getelementptr inbounds [13 x i8], [13 x i8]* %3, i64 0, i64 0
%8 = call i32* @fopen(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%10 = load i32, i32* @SEEK_SET
%11 = tail call i32 @fseek(i32* %8, i32 %10, i32 0)
%12 = call i32 @fscanf(i32* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %9)
%13 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %88, label %15
15: ; preds = %2
%16 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 0
%17 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%18 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 1
%19 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 2
%20 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 3
br label %21
21: ; preds = %15, %84
%22 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %84, label %24
24: ; preds = %21, %81
%25 = call signext i8 @fgetc(i32* %8)
%26 = icmp eq i8 %25, 58
br i1 %26, label %36, label %27
27: ; preds = %24, %27
%28 = phi i64 [ %31, %27 ], [ 0, %24 ]
%29 = phi i8 [ %32, %27 ], [ %25, %24 ]
%30 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 %28
store i8 %29, i8* %30
%31 = add nuw i64 %28, 1
%32 = call signext i8 @fgetc(i32* %8)
%33 = icmp eq i8 %32, 58
br i1 %33, label %34, label %27
34: ; preds = %27
%35 = trunc i64 %31 to i32
br label %36
36: ; preds = %34, %24
%37 = phi i32 [ 0, %24 ], [ %35, %34 ]
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 %38
store i8 58, i8* %39
%40 = add nuw nsw i32 %37, 1
%41 = zext i32 %40 to i64
%42 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 %41
store i8 0, i8* %42
br label %43
43: ; preds = %43, %36
%44 = call signext i8 @fgetc(i32* %8)
switch i8 %44, label %45 [
i8 32, label %43
i8 10, label %57
]
45: ; preds = %43, %53
%46 = phi i8 [ %55, %53 ], [ %44, %43 ]
%47 = phi i32 [ %54, %53 ], [ 0, %43 ]
%48 = icmp slt i32 %47, 99
br i1 %48, label %49, label %53
49: ; preds = %45
%50 = sext i32 %47 to i64
%51 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 %50
store i8 %46, i8* %51
%52 = add nsw i32 %47, 1
br label %53
53: ; preds = %49, %45
%54 = phi i32 [ %52, %49 ], [ %47, %45 ]
%55 = call signext i8 @fgetc(i32* %8)
%56 = icmp eq i8 %55, 10
br i1 %56, label %57, label %45
57: ; preds = %43, %53
%58 = phi i32 [ %54, %53 ], [ 0, %43 ]
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 %59
store i8 0, i8* %60
%61 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %72, label %63
63: ; preds = %57
%64 = load i8, i8* %16
%65 = icmp eq i8 %64, 82
%66 = load i8, i8* %18
%67 = icmp eq i8 %66, 115
%68 = select i1 %65, i1 %67, i1 false
%69 = load i8, i8* %19
%70 = icmp eq i8 %69, 112
%71 = select i1 %68, i1 %70, i1 false
br i1 %71, label %72, label %81
72: ; preds = %63, %57
%73 = load i8, i8* %20
%74 = icmp slt i8 %73, 58
br i1 %74, label %75, label %79
75: ; preds = %72
%76 = sext i8 %73 to i32
%77 = add nsw i32 %76, -48
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 %77, i8* %17)
br label %81
79: ; preds = %72
%80 = call i32 @puts(i8* %17)
br label %81
81: ; preds = %75, %79, %63
%82 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %24
84: ; preds = %81, %21
%85 = call i32 @fscanf(i32* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %9)
%86 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%87 = icmp eq i64 %86, 0
br i1 %87, label %88, label %21
88: ; preds = %84, %2
ret i32 0
}