#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 *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
scalar_t__ fread(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  FILE *fp;
  char byte[1];
  char *low = NULL;
  char *high = NULL;
  int first = 1;
  extern char *__progname;
  if (argc <= 3) {
    fprintf(stderr,
            "usage: %s [input filename] [low_time (ms)] [high_time (ms)]\n",
            __progname);
    exit(1);
  }
  if ((fp = fopen(argv[1], "r")) == NULL) {
    perror("fopen");
    exit(1);
  }
  low = argv[2];
  high = argv[3];
  while (fread(byte, 1, 1, fp)) {
    if (first)
      first = 0;
    else
      putchar(',');
    if (byte[0] & 0x01) {
      printf("%s", low);
    } else {
      printf("%s", high);
    }
    putchar(',');
    if (byte[0] & 0x02) {
      printf("%s", low);
    } else {
      printf("%s", high);
    }
    putchar(',');
    if (byte[0] & 0x04) {
      printf("%s", low);
    } else {
      printf("%s", high);
    }
    putchar(',');
    if (byte[0] & 0x08) {
      printf("%s", low);
    } else {
      printf("%s", high);
    }
    putchar(',');
    if (byte[0] & 0x10) {
      printf("%s", low);
    } else {
      printf("%s", high);
    }
    putchar(',');
    if (byte[0] & 0x20) {
      printf("%s", low);
    } else {
      printf("%s", high);
    }
    putchar(',');
    if (byte[0] & 0x40) {
      printf("%s", low);
    } else {
      printf("%s", high);
    }
    putchar(',');
    if (byte[0] & 0x80) {
      printf("%s", low);
    } else {
      printf("%s", high);
    }
  }
  fclose(fp);
  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)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movl   $0x1,-0x34(%rbp)
cmpl   $0x3,-0x8(%rbp)
jg     11e0 <main+0x60>
mov    0x2e22(%rip),%rax
mov    (%rax),%edi
mov    0x2e09(%rip),%rax
mov    (%rax),%rdx
lea    0xe2f(%rip),%rsi
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe4e(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1218 <main+0x98>
lea    0xe36(%rip),%rdi
call   1090 <perror@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    %rax,-0x30(%rbp)
lea    -0x19(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0x1,%edx
mov    %edx,%esi
call   1040 <fread@plt>
cmp    $0x0,%rax
je     1463 <main+0x2e3>
cmpl   $0x0,-0x34(%rbp)
je     1264 <main+0xe4>
movl   $0x0,-0x34(%rbp)
jmp    126e <main+0xee>
mov    $0x2c,%edi
call   1030 <putchar@plt>
movsbl -0x19(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1293 <main+0x113>
mov    -0x28(%rbp),%rsi
lea    0xdbc(%rip),%rdi
call   1060 <printf@plt>
jmp    12a3 <main+0x123>
mov    -0x30(%rbp),%rsi
lea    0xda7(%rip),%rdi
call   1060 <printf@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
movsbl -0x19(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     12d2 <main+0x152>
mov    -0x28(%rbp),%rsi
lea    0xd7d(%rip),%rdi
call   1060 <printf@plt>
jmp    12e2 <main+0x162>
mov    -0x30(%rbp),%rsi
lea    0xd68(%rip),%rdi
call   1060 <printf@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
movsbl -0x19(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     1311 <main+0x191>
mov    -0x28(%rbp),%rsi
lea    0xd3e(%rip),%rdi
call   1060 <printf@plt>
jmp    1321 <main+0x1a1>
mov    -0x30(%rbp),%rsi
lea    0xd29(%rip),%rdi
call   1060 <printf@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
movsbl -0x19(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     1350 <main+0x1d0>
mov    -0x28(%rbp),%rsi
lea    0xcff(%rip),%rdi
call   1060 <printf@plt>
jmp    1360 <main+0x1e0>
mov    -0x30(%rbp),%rsi
lea    0xcea(%rip),%rdi
call   1060 <printf@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
movsbl -0x19(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     138f <main+0x20f>
mov    -0x28(%rbp),%rsi
lea    0xcc0(%rip),%rdi
call   1060 <printf@plt>
jmp    139f <main+0x21f>
mov    -0x30(%rbp),%rsi
lea    0xcab(%rip),%rdi
call   1060 <printf@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
movsbl -0x19(%rbp),%eax
and    $0x20,%eax
cmp    $0x0,%eax
je     13ce <main+0x24e>
mov    -0x28(%rbp),%rsi
lea    0xc81(%rip),%rdi
call   1060 <printf@plt>
jmp    13de <main+0x25e>
mov    -0x30(%rbp),%rsi
lea    0xc6c(%rip),%rdi
call   1060 <printf@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
movsbl -0x19(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     140d <main+0x28d>
mov    -0x28(%rbp),%rsi
lea    0xc42(%rip),%rdi
call   1060 <printf@plt>
jmp    141d <main+0x29d>
mov    -0x30(%rbp),%rsi
lea    0xc2d(%rip),%rdi
call   1060 <printf@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
movsbl -0x19(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     144e <main+0x2ce>
mov    -0x28(%rbp),%rsi
lea    0xc01(%rip),%rdi
call   1060 <printf@plt>
jmp    145e <main+0x2de>
mov    -0x30(%rbp),%rsi
lea    0xbec(%rip),%rdi
call   1060 <printf@plt>
jmp    1230 <main+0xb0>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
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
push   %rax
cmp    $0x3,%edi
jle    130c <main+0x18c>
mov    %rsi,%r15
mov    0x8(%rsi),%rdi
lea    0xe9b(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     1335 <main+0x1b5>
mov    %rax,%r14
mov    0x10(%r15),%rbp
mov    0x18(%r15),%r13
lea    0x7(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1040 <fread@plt>
test   %rax,%rax
je     12f3 <main+0x173>
lea    0xe63(%rip),%r12
lea    0x7(%rsp),%r15
nopw   0x0(%rax,%rax,1)
movzbl 0x7(%rsp),%ebx
test   $0x1,%bl
mov    %rbp,%rsi
cmove  %r13,%rsi
mov    %r12,%rdi
call   1060 <printf@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
test   $0x2,%bl
mov    %rbp,%rsi
cmove  %r13,%rsi
mov    %r12,%rdi
call   1060 <printf@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
test   $0x4,%bl
mov    %rbp,%rsi
cmove  %r13,%rsi
mov    %r12,%rdi
call   1060 <printf@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
test   $0x8,%bl
mov    %rbp,%rsi
cmove  %r13,%rsi
mov    %r12,%rdi
call   1060 <printf@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
test   $0x10,%bl
mov    %rbp,%rsi
cmove  %r13,%rsi
mov    %r12,%rdi
call   1060 <printf@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
test   $0x20,%bl
mov    %rbp,%rsi
cmove  %r13,%rsi
mov    %r12,%rdi
call   1060 <printf@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
test   $0x40,%bl
mov    %rbp,%rsi
cmove  %r13,%rsi
mov    %r12,%rdi
call   1060 <printf@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
test   %bl,%bl
mov    %rbp,%rsi
cmovns %r13,%rsi
mov    %r12,%rdi
call   1060 <printf@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1040 <fread@plt>
test   %rax,%rax
je     12f3 <main+0x173>
mov    $0x2c,%edi
call   1030 <putchar@plt>
jmp    11f0 <main+0x70>
mov    %r14,%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2ccd(%rip),%rax
mov    (%rax),%edi
mov    0x2cb4(%rip),%rax
mov    (%rax),%rdx
lea    0xcda(%rip),%rsi
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
lea    0xd03(%rip),%rdi
call   1090 <perror@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>

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

LLVM IR (-O2):
@stderr = global i32 0
@.str = [61 x i8] c"usage: %s [input filename] [low_time (ms)] [high_time (ms)]\0A\00"
@__progname = external global i8*
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [6 x i8] c"fopen\00"
@.str.3 = [3 x i8] c"%s\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [1 x i8]
%4 = getelementptr inbounds [1 x i8], [1 x i8]* %3, i64 0, i64 0
%5 = icmp slt i32 %0, 4
br i1 %5, label %6, label %11
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = load i8*, i8** @__progname
%9 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str, i64 0, i64 0), i8* %8)
%10 = tail call i32 @exit(i32 1)
unreachable
11: ; preds = %2
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = tail call i32* @fopen(i8* %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%15 = icmp eq i32* %14, null
br i1 %15, label %16, label %19
16: ; preds = %11
%17 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%18 = tail call i32 @exit(i32 1)
unreachable
19: ; preds = %11
%20 = getelementptr inbounds i8*, i8** %1, i64 2
%21 = load i8*, i8** %20
%22 = getelementptr inbounds i8*, i8** %1, i64 3
%23 = load i8*, i8** %22
%24 = call i64 @fread(i8* %4, i32 1, i32 1, i32* %14)
%25 = icmp eq i64 %24, 0
br i1 %25, label %70, label %28
26: ; preds = %28
%27 = tail call i32 @putchar(i8 signext 44)
br label %28
28: ; preds = %19, %26
%29 = load i8, i8* %4
%30 = and i8 %29, 1
%31 = icmp eq i8 %30, 0
%32 = select i1 %31, i8* %23, i8* %21
%33 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %32)
%34 = tail call i32 @putchar(i8 signext 44)
%35 = and i8 %29, 2
%36 = icmp eq i8 %35, 0
%37 = select i1 %36, i8* %23, i8* %21
%38 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %37)
%39 = tail call i32 @putchar(i8 signext 44)
%40 = and i8 %29, 4
%41 = icmp eq i8 %40, 0
%42 = select i1 %41, i8* %23, i8* %21
%43 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %42)
%44 = tail call i32 @putchar(i8 signext 44)
%45 = and i8 %29, 8
%46 = icmp eq i8 %45, 0
%47 = select i1 %46, i8* %23, i8* %21
%48 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %47)
%49 = tail call i32 @putchar(i8 signext 44)
%50 = and i8 %29, 16
%51 = icmp eq i8 %50, 0
%52 = select i1 %51, i8* %23, i8* %21
%53 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %52)
%54 = tail call i32 @putchar(i8 signext 44)
%55 = and i8 %29, 32
%56 = icmp eq i8 %55, 0
%57 = select i1 %56, i8* %23, i8* %21
%58 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %57)
%59 = tail call i32 @putchar(i8 signext 44)
%60 = and i8 %29, 64
%61 = icmp eq i8 %60, 0
%62 = select i1 %61, i8* %23, i8* %21
%63 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %62)
%64 = tail call i32 @putchar(i8 signext 44)
%65 = icmp sgt i8 %29, -1
%66 = select i1 %65, i8* %23, i8* %21
%67 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %66)
%68 = call i64 @fread(i8* %4, i32 1, i32 1, i32* %14)
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %26
70: ; preds = %28, %19
%71 = tail call i32 @fclose(i32* %14)
ret i32 0
}