#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, unsigned int,
                           unsigned int);
int /*<<< orphan*/ fputc(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, unsigned int *);
int /*<<< orphan*/ printf(char *, unsigned int, unsigned int);
int /*<<< orphan*/ puts(char *);
int main(int argc, char **argv) {
  FILE *fp0, *fp1;
  if (argc < 3) {
    puts("usage> makefont source.txt font.bin");
    return 1;
  }
  fp0 = fopen(argv[1], "r");
  fp1 = fopen(argv[2], "wb");
  if (fp0 == NULL) {
    puts("can't open input file.");
    return 2;
  }
  if (fp1 == NULL) {
    puts("can't open output file.");
    return 3;
  }
  unsigned int xsize, ysize;
  fscanf(fp0, "%d", &xsize);
  fscanf(fp0, "%d", &ysize);
  printf("font size: %dx%d\n", xsize, ysize);
  fprintf(fp1, "%d\n%d\n", xsize, ysize);
  do {
    char s[12];
    int i;
    if (fgets(s, 12, fp0) != NULL &&
        (s[0] == ' ' || s[0] == '*' || s[0] == '.')) {
      i = (s[0] == '*') << 7;
      i |= (s[1] == '*') << 6;
      i |= (s[2] == '*') << 5;
      i |= (s[3] == '*') << 4;
      i |= (s[4] == '*') << 3;
      i |= (s[5] == '*') << 2;
      i |= (s[6] == '*') << 1;
      i |= (s[7] == '*');
      fputc(i, fp1);
    }
  } while (!feof(fp0));
  fclose(fp0);
  fclose(fp1);
  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   $0x3,-0x8(%rbp)
jge    11c8 <main+0x38>
lea    0xe49(%rip),%rdi
call   1030 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    13ce <main+0x23e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe4d(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe37(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    121b <main+0x8b>
lea    0xe1f(%rip),%rdi
call   1030 <puts@plt>
movl   $0x2,-0x4(%rbp)
jmp    13ce <main+0x23e>
cmpq   $0x0,-0x20(%rbp)
jne    123e <main+0xae>
lea    0xe13(%rip),%rdi
call   1030 <puts@plt>
movl   $0x3,-0x4(%rbp)
jmp    13ce <main+0x23e>
mov    -0x18(%rbp),%rdi
lea    0xe0f(%rip),%rsi
lea    -0x24(%rbp),%rdx
call   1060 <fscanf@plt>
mov    -0x18(%rbp),%rdi
lea    0xdfb(%rip),%rsi
lea    -0x28(%rbp),%rdx
call   1060 <fscanf@plt>
mov    -0x24(%rbp),%esi
mov    -0x28(%rbp),%edx
lea    0xde8(%rip),%rdi
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x24(%rbp),%edx
mov    -0x28(%rbp),%ecx
lea    0xde4(%rip),%rsi
call   1090 <fprintf@plt>
lea    -0x34(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0xc,%esi
call   1080 <fgets@plt>
cmp    $0x0,%rax
je     1397 <main+0x207>
movsbl -0x34(%rbp),%eax
cmp    $0x20,%eax
je     12d1 <main+0x141>
movsbl -0x34(%rbp),%eax
cmp    $0x2a,%eax
je     12d1 <main+0x141>
movsbl -0x34(%rbp),%eax
cmp    $0x2e,%eax
jne    1397 <main+0x207>
movsbl -0x34(%rbp),%eax
cmp    $0x2a,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
shl    $0x7,%eax
mov    %eax,-0x38(%rbp)
movsbl -0x33(%rbp),%eax
cmp    $0x2a,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
shl    $0x6,%eax
or     -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
movsbl -0x32(%rbp),%eax
cmp    $0x2a,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
shl    $0x5,%eax
or     -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
movsbl -0x31(%rbp),%eax
cmp    $0x2a,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
shl    $0x4,%eax
or     -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
movsbl -0x30(%rbp),%eax
cmp    $0x2a,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
shl    $0x3,%eax
or     -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
movsbl -0x2f(%rbp),%eax
cmp    $0x2a,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
shl    $0x2,%eax
or     -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
movsbl -0x2e(%rbp),%eax
cmp    $0x2a,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
shl    $0x1,%eax
or     -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
movsbl -0x2d(%rbp),%eax
cmp    $0x2a,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
or     -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x20(%rbp),%rsi
call   1070 <fputc@plt>
jmp    139c <main+0x20c>
mov    -0x18(%rbp),%rdi
call   10a0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    128e <main+0xfe>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x18,%rsp
cmp    $0x2,%edi
jg     11b6 <main+0x26>
lea    0xe59(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%eax
jmp    1346 <main+0x1b6>
mov    %rsi,%r14
mov    0x8(%rsi),%rdi
lea    0xe60(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,%rbx
mov    0x10(%r14),%rdi
lea    0xe4f(%rip),%rsi
call   10b0 <fopen@plt>
test   %rbx,%rbx
je     1322 <main+0x192>
mov    %rax,%r14
test   %rax,%rax
je     1335 <main+0x1a5>
lea    0xe60(%rip),%r15
lea    0x8(%rsp),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1060 <fscanf@plt>
lea    0x4(%rsp),%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1060 <fscanf@plt>
mov    0x8(%rsp),%esi
mov    0x4(%rsp),%edx
lea    0xe34(%rip),%rdi
call   1050 <printf@plt>
mov    0x8(%rsp),%edx
mov    0x4(%rsp),%ecx
lea    0xe32(%rip),%rsi
mov    %r14,%rdi
call   1090 <fprintf@plt>
lea    0xc(%rsp),%r15
movabs $0x440100000000,%r12
jmp    1270 <main+0xe0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbx,%rdi
call   10a0 <feof@plt>
test   %eax,%eax
jne    130e <main+0x17e>
mov    %r15,%rdi
mov    $0xc,%esi
mov    %rbx,%rdx
call   1080 <fgets@plt>
test   %rax,%rax
je     1260 <main+0xd0>
movzbl 0xc(%rsp),%eax
cmp    $0x2e,%rax
ja     1260 <main+0xd0>
bt     %rax,%r12
jae    1260 <main+0xd0>
xor    %ecx,%ecx
cmp    $0x2a,%al
sete   %cl
shl    $0x7,%ecx
xor    %eax,%eax
cmpb   $0x2a,0xd(%rsp)
sete   %al
shl    $0x6,%eax
or     %ecx,%eax
xor    %ecx,%ecx
cmpb   $0x2a,0xe(%rsp)
sete   %cl
shl    $0x5,%ecx
or     %eax,%ecx
xor    %eax,%eax
cmpb   $0x2a,0xf(%rsp)
sete   %al
shl    $0x4,%eax
or     %ecx,%eax
xor    %ecx,%ecx
cmpb   $0x2a,0x10(%rsp)
sete   %cl
lea    (%rax,%rcx,8),%eax
xor    %ecx,%ecx
cmpb   $0x2a,0x11(%rsp)
sete   %cl
xor    %edx,%edx
cmpb   $0x2a,0x12(%rsp)
lea    (%rax,%rcx,4),%eax
sete   %dl
lea    (%rax,%rdx,2),%eax
xor    %edi,%edi
cmpb   $0x2a,0x13(%rsp)
sete   %dil
or     %eax,%edi
mov    %r14,%rsi
call   1070 <fputc@plt>
jmp    1260 <main+0xd0>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
jmp    1346 <main+0x1b6>
lea    0xd00(%rip),%rdi
call   1030 <puts@plt>
mov    $0x2,%eax
jmp    1346 <main+0x1b6>
lea    0xd04(%rip),%rdi
call   1030 <puts@plt>
mov    $0x3,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [36 x i8] c"usage> makefont source.txt font.bin\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [3 x i8] c"wb\00"
@.str.3 = [23 x i8] c"can't open input file.\00"
@.str.4 = [24 x i8] c"can't open output file.\00"
@.str.5 = [3 x i8] c"%d\00"
@.str.6 = [18 x i8] c"font size: %dx%d\0A\00"
@.str.7 = [7 x i8] c"%d\0A%d\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca [12 x i8]
%6 = icmp slt i32 %0, 3
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
br label %85
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.1, i64 0, i64 0))
%13 = getelementptr inbounds i8*, i8** %1, i64 2
%14 = load i8*, i8** %13
%15 = tail call i32* @fopen(i8* %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%16 = icmp eq i32* %12, null
br i1 %16, label %17, label %19
17: ; preds = %9
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
br label %85
19: ; preds = %9
%20 = icmp eq i32* %15, null
br i1 %20, label %21, label %23
21: ; preds = %19
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
br label %85
23: ; preds = %19
%24 = bitcast i32* %3 to i8*
%25 = bitcast i32* %4 to i8*
%26 = call i32 @fscanf(i32* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %3)
%27 = call i32 @fscanf(i32* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %4)
%28 = load i32, i32* %3
%29 = load i32, i32* %4
%30 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 %28, i32 %29)
%31 = load i32, i32* %3
%32 = load i32, i32* %4
%33 = call i32 @fprintf(i32* %15, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 %31, i32 %32)
%34 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 0
%35 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 1
%36 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 2
%37 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 3
%38 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 4
%39 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 5
%40 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 6
%41 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 7
br label %42
42: ; preds = %79, %23
%43 = call i32* @fgets(i8* %34, i32 12, i32* %12)
%44 = icmp eq i32* %43, null
br i1 %44, label %79, label %45
45: ; preds = %42
%46 = load i8, i8* %34
switch i8 %46, label %79 [
i8 46, label %47
i8 42, label %47
i8 32, label %47
]
47: ; preds = %45, %45, %45
%48 = icmp eq i8 %46, 42
%49 = select i1 %48, i32 128, i32 0
%50 = load i8, i8* %35
%51 = icmp eq i8 %50, 42
%52 = select i1 %51, i32 64, i32 0
%53 = or i32 %52, %49
%54 = load i8, i8* %36
%55 = icmp eq i8 %54, 42
%56 = select i1 %55, i32 32, i32 0
%57 = or i32 %53, %56
%58 = load i8, i8* %37
%59 = icmp eq i8 %58, 42
%60 = select i1 %59, i32 16, i32 0
%61 = or i32 %57, %60
%62 = load i8, i8* %38
%63 = icmp eq i8 %62, 42
%64 = select i1 %63, i32 8, i32 0
%65 = or i32 %61, %64
%66 = load i8, i8* %39
%67 = icmp eq i8 %66, 42
%68 = select i1 %67, i32 4, i32 0
%69 = or i32 %65, %68
%70 = load i8, i8* %40
%71 = icmp eq i8 %70, 42
%72 = select i1 %71, i32 2, i32 0
%73 = or i32 %69, %72
%74 = load i8, i8* %41
%75 = icmp eq i8 %74, 42
%76 = zext i1 %75 to i32
%77 = or i32 %73, %76
%78 = call i32 @fputc(i32 %77, i32* %15)
br label %79
79: ; preds = %45, %47, %42
%80 = call i32 @feof(i32* %12)
%81 = icmp eq i32 %80, 0
br i1 %81, label %42, label %82
82: ; preds = %79
%83 = call i32 @fclose(i32* %12)
%84 = call i32 @fclose(i32* %15)
br label %85
85: ; preds = %82, %21, %17, %7
%86 = phi i32 [ 1, %7 ], [ 2, %17 ], [ 3, %21 ], [ 0, %82 ]
ret i32 %86
}