#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*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fread(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, int, ...);
int main(int argc, char **argv) {
  FILE *in;
  char instr;
  size_t addr;
  char stack[10];
  int sp;
  if (argc < 2)
    exit(1);
  in = fopen(argv[1], "r");
  if (!in)
    exit(1);
  sp = 0;
  while (1) {
    if (fread(&instr, 1, 1, in) == 0)
      break;
    switch (instr) {
    case 'a':
      if (sp < 1)
        exit(1);
      printf("debug: %d + %d\n", (int)stack[sp - 2], (int)stack[sp - 1]);
      stack[(sp--) - 2] = stack[sp - 2] + stack[sp - 1];
      break;
    case 's':
      if (sp < 1)
        exit(1);
      printf("debug: %d - %d\n", (int)stack[sp - 2], (int)stack[sp - 1]);
      stack[(sp--) - 2] = stack[sp - 2] - stack[sp - 1];
      break;
    case 'l':
      if (fread(&instr, 1, 1, in) == 0)
        exit(1);
      if (sp == 10)
        exit(1);
      printf("debug: %d\n", (int)instr);
      stack[sp++] = instr;
      break;
    }
  }
  fclose(in);
  sp--;
  while (sp != -1)
    printf("%d\n", (int)stack[sp--]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    117a <main+0x2a>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe77(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    11a7 <main+0x57>
mov    $0x1,%edi
call   1070 <exit@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x18(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
cmp    $0x0,%rax
jne    11d1 <main+0x81>
jmp    1357 <main+0x207>
movsbl -0x19(%rbp),%eax
mov    %eax,-0x3c(%rbp)
sub    $0x61,%eax
je     1208 <main+0xb8>
jmp    11e6 <main+0x96>
mov    -0x3c(%rbp),%eax
sub    $0x6c,%eax
je     12f0 <main+0x1a0>
jmp    11f7 <main+0xa7>
mov    -0x3c(%rbp),%eax
sub    $0x73,%eax
je     127c <main+0x12c>
jmp    1352 <main+0x202>
cmpl   $0x1,-0x38(%rbp)
jge    121c <main+0xcc>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    -0x38(%rbp),%eax
sub    $0x2,%eax
cltq
movsbl -0x32(%rbp,%rax,1),%esi
mov    -0x38(%rbp),%eax
sub    $0x1,%eax
cltq
movsbl -0x32(%rbp,%rax,1),%edx
lea    0xdc5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x38(%rbp),%eax
sub    $0x2,%eax
cltq
movsbl -0x32(%rbp,%rax,1),%eax
mov    -0x38(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl -0x32(%rbp,%rcx,1),%ecx
add    %ecx,%eax
mov    %al,%cl
mov    -0x38(%rbp),%eax
mov    %eax,%edx
add    $0xffffffff,%edx
mov    %edx,-0x38(%rbp)
sub    $0x2,%eax
cltq
mov    %cl,-0x32(%rbp,%rax,1)
jmp    1352 <main+0x202>
cmpl   $0x1,-0x38(%rbp)
jge    1290 <main+0x140>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    -0x38(%rbp),%eax
sub    $0x2,%eax
cltq
movsbl -0x32(%rbp,%rax,1),%esi
mov    -0x38(%rbp),%eax
sub    $0x1,%eax
cltq
movsbl -0x32(%rbp,%rax,1),%edx
lea    0xd61(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x38(%rbp),%eax
sub    $0x2,%eax
cltq
movsbl -0x32(%rbp,%rax,1),%eax
mov    -0x38(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl -0x32(%rbp,%rcx,1),%ecx
sub    %ecx,%eax
mov    %al,%cl
mov    -0x38(%rbp),%eax
mov    %eax,%edx
add    $0xffffffff,%edx
mov    %edx,-0x38(%rbp)
sub    $0x2,%eax
cltq
mov    %cl,-0x32(%rbp,%rax,1)
jmp    1352 <main+0x202>
mov    -0x18(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
cmp    $0x0,%rax
jne    1318 <main+0x1c8>
mov    $0x1,%edi
call   1070 <exit@plt>
cmpl   $0xa,-0x38(%rbp)
jne    132c <main+0x1dc>
mov    $0x1,%edi
call   1070 <exit@plt>
movsbl -0x19(%rbp),%esi
lea    0xceb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x19(%rbp),%cl
mov    -0x38(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x38(%rbp)
cltq
mov    %cl,-0x32(%rbp,%rax,1)
jmp    11ae <main+0x5e>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x38(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x38(%rbp)
cmpl   $0xffffffff,-0x38(%rbp)
je     1398 <main+0x248>
mov    -0x38(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x38(%rbp)
cltq
movsbl -0x32(%rbp,%rax,1),%esi
lea    0xc82(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1369 <main+0x219>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
cmp    $0x1,%edi
jle    1333 <main+0x1e3>
mov    0x8(%rsi),%rdi
lea    0xe8e(%rip),%rsi
call   1060 <fopen@plt>
test   %rax,%rax
je     1333 <main+0x1e3>
mov    %rax,%r12
lea    0xd(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1030 <fread@plt>
test   %rax,%rax
je     131a <main+0x1ca>
lea    0xd(%rsp),%rbp
xor    %r13d,%r13d
jmp    11ce <main+0x7e>
nopl   (%rax)
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1030 <fread@plt>
test   %rax,%rax
je     12cd <main+0x17d>
movsbl 0xd(%rsp),%eax
cmp    $0x73,%eax
je     1230 <main+0xe0>
cmp    $0x6c,%eax
je     1280 <main+0x130>
cmp    $0x61,%eax
jne    11b0 <main+0x60>
test   %r13d,%r13d
jle    1333 <main+0x1e3>
movslq %r13d,%rbx
lea    0xe(%rsp),%r15
movsbl -0x2(%rbx,%r15,1),%ebp
add    $0xffffffff,%r13d
movsbl 0xe(%rsp,%r13,1),%r14d
lea    0xdf4(%rip),%rdi
mov    %ebp,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    (%r14,%rbp,1),%eax
mov    %al,-0x2(%rbx,%r15,1)
lea    0xd(%rsp),%rbp
jmp    11b0 <main+0x60>
nopw   0x0(%rax,%rax,1)
test   %r13d,%r13d
jle    1333 <main+0x1e3>
movslq %r13d,%r14
lea    0xe(%rsp),%r15
movsbl -0x2(%r14,%r15,1),%ebp
add    $0xffffffff,%r13d
movsbl 0xe(%rsp,%r13,1),%ebx
lea    0xdba(%rip),%rdi
mov    %ebp,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1050 <printf@plt>
sub    %bl,%bpl
mov    %bpl,-0x2(%r14,%r15,1)
lea    0xd(%rsp),%rbp
jmp    11b0 <main+0x60>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1030 <fread@plt>
test   %rax,%rax
je     1333 <main+0x1e3>
cmp    $0xa,%r13d
je     1333 <main+0x1e3>
movsbl 0xd(%rsp),%ebx
lea    0xd6e(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movslq %r13d,%rax
add    $0x1,%r13d
mov    %bl,0xe(%rsp,%rax,1)
jmp    11b0 <main+0x60>
mov    %r12,%rdi
call   1040 <fclose@plt>
test   %r13d,%r13d
je     1322 <main+0x1d2>
movslq %r13d,%rax
lea    (%rsp,%rax,1),%rbp
add    $0xd,%rbp
neg    %r13d
lea    0xd1f(%rip),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsbl 0x0(%rbp,%rbx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0xffffffffffffffff,%rbx
cmp    %ebx,%r13d
jne    1300 <main+0x1b0>
jmp    1322 <main+0x1d2>
mov    %r12,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%edi
call   1070 <exit@plt>

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

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [16 x i8] c"debug: %d + %d\0A\00"
@.str.2 = [16 x i8] c"debug: %d - %d\0A\00"
@.str.3 = [11 x i8] c"debug: %d\0A\00"
@.str.4 = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i8
%4 = alloca [10 x i8]
%5 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%6 = icmp slt i32 %0, 2
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 @exit(i32 1)
unreachable
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32* @fopen(i8* %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%13 = icmp eq i32* %12, null
br i1 %13, label %19, label %14
14: ; preds = %9
%15 = call i64 @fread(i8* %3, i32 1, i32 1, i32* %12)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %21
17: ; preds = %14
%18 = tail call i32 @fclose(i32* %12)
br label %93
19: ; preds = %9
%20 = tail call i32 @exit(i32 1)
unreachable
21: ; preds = %14, %75
%22 = phi i32 [ %76, %75 ], [ 0, %14 ]
%23 = load i8, i8* %3
%24 = sext i8 %23 to i32
switch i32 %24, label %75 [
i32 97, label %25
i32 115, label %42
i32 108, label %59
]
25: ; preds = %21
%26 = icmp slt i32 %22, 1
br i1 %26, label %27, label %29
27: ; preds = %25
%28 = tail call i32 @exit(i32 1)
unreachable
29: ; preds = %25
%30 = add nsw i32 %22, -2
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 %31
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = add nsw i32 %22, -1
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 %36
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 %34, i32 %39)
%41 = add i8 %38, %33
store i8 %41, i8* %32
br label %75
42: ; preds = %21
%43 = icmp slt i32 %22, 1
br i1 %43, label %44, label %46
44: ; preds = %42
%45 = tail call i32 @exit(i32 1)
unreachable
46: ; preds = %42
%47 = add nsw i32 %22, -2
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 %48
%50 = load i8, i8* %49
%51 = sext i8 %50 to i32
%52 = add nsw i32 %22, -1
%53 = zext i32 %52 to i64
%54 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 %53
%55 = load i8, i8* %54
%56 = sext i8 %55 to i32
%57 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %51, i32 %56)
%58 = sub i8 %50, %55
store i8 %58, i8* %49
br label %75
59: ; preds = %21
%60 = call i64 @fread(i8* %3, i32 1, i32 1, i32* %12)
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %59
%63 = tail call i32 @exit(i32 1)
unreachable
64: ; preds = %59
%65 = icmp eq i32 %22, 10
br i1 %65, label %66, label %68
66: ; preds = %64
%67 = tail call i32 @exit(i32 1)
unreachable
68: ; preds = %64
%69 = load i8, i8* %3
%70 = sext i8 %69 to i32
%71 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %70)
%72 = add nsw i32 %22, 1
%73 = sext i32 %22 to i64
%74 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 %73
store i8 %69, i8* %74
br label %75
75: ; preds = %21, %68, %46, %29
%76 = phi i32 [ %22, %21 ], [ %72, %68 ], [ %52, %46 ], [ %35, %29 ]
%77 = call i64 @fread(i8* %3, i32 1, i32 1, i32* %12)
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %21
79: ; preds = %75
%80 = tail call i32 @fclose(i32* %12)
%81 = icmp eq i32 %76, 0
br i1 %81, label %93, label %82
82: ; preds = %79
%83 = sext i32 %76 to i64
br label %84
84: ; preds = %82, %84
%85 = phi i64 [ %83, %82 ], [ %86, %84 ]
%86 = add nsw i64 %85, -1
%87 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 %86
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %89)
%91 = trunc i64 %86 to i32
%92 = icmp eq i32 %91, 0
br i1 %92, label %93, label %84
93: ; preds = %84, %17, %79
ret i32 0
}