#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 uint32_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int char2hex(char);
int /*<<< orphan*/ convertUCtoUTF8(char *, char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fgets(char **, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
char *malloc(int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stdout;
scalar_t__ strcmp(char *, char *);
int strlen(char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
int main(int argc, char **argv) {
  FILE *f;
  char inbuf[1024];
  char param1[5];
  uint32_t lastcounter = 0;
  f = fopen("mapping.txt", "r");
  printf("echo \"static const char x0215_mapping[][4] = {\"\n");
  while (!feof(f)) {
    int len = 0;
    uint32_t curcounter;
    uint32_t i;
    memset(inbuf, 0, 1024);
    memset(param1, 0, 5);
    fgets(&inbuf, 1024, f);
    if (strcmp(inbuf, "") != 0) {
      char *lpcnt = malloc(4 * sizeof(char));
      char *ucode = malloc((strlen(inbuf) - 8) * sizeof(char));
      memset(lpcnt, 0, 4);
      memset(ucode, 0, (strlen(inbuf) - 8));
      while (((10 + len) < strlen(inbuf)) && (inbuf[9 + len + 1] != ' ') &&
             (inbuf[9 + len + 1] != '\t'))
        len++;
      len++;
      strncpy(lpcnt, &(inbuf[2]), 4);
      strncpy(ucode, &(inbuf[9]), len);
      curcounter = ((char2hex(lpcnt[0]) << (4 * 3)) & 0xF000) |
                   ((char2hex(lpcnt[1]) << (4 * 2)) & 0xF00) |
                   ((char2hex(lpcnt[2]) << (4 * 1)) & 0xF0) |
                   (char2hex(lpcnt[3]) & 0xF);
      for (i = lastcounter; i < curcounter; i++) {
        printf("echo -n \"\\\".\\\", \"\n");
      }
      lastcounter = curcounter + 1;
      convertUCtoUTF8(ucode, lpcnt);
    }
    fflush(stdout);
  }
  printf("echo \"}\"\n");
  fclose(f);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x470,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x42c(%rbp)
lea    0xe06(%rip),%rdi
lea    0xe0b(%rip),%rsi
call   10f0 <fopen@plt>
mov    %rax,-0x18(%rbp)
lea    0xdfd(%rip),%rdi
call   1070 <printf@plt>
mov    -0x18(%rbp),%rdi
call   10b0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1234 <main+0x64>
jmp    14fa <main+0x32a>
movl   $0x0,-0x430(%rbp)
lea    -0x420(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
lea    -0x425(%rbp),%rdi
xor    %esi,%esi
mov    $0x5,%edx
call   1080 <memset@plt>
lea    -0x420(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x400,%esi
call   1090 <fgets@plt>
lea    -0x420(%rbp),%rdi
lea    0xdca(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
je     14e7 <main+0x317>
mov    $0x4,%edi
call   10c0 <malloc@plt>
mov    %rax,-0x440(%rbp)
lea    -0x420(%rbp),%rdi
call   1060 <strlen@plt>
sub    $0x8,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edi
call   10c0 <malloc@plt>
mov    %rax,-0x448(%rbp)
mov    -0x440(%rbp),%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1080 <memset@plt>
mov    -0x448(%rbp),%rax
mov    %rax,-0x450(%rbp)
lea    -0x420(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x450(%rbp),%rdi
mov    %eax,%edx
sub    $0x8,%edx
xor    %esi,%esi
call   1080 <memset@plt>
mov    -0x430(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x458(%rbp)
lea    -0x420(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x458(%rbp),%ecx
mov    %eax,%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x451(%rbp)
jge    1386 <main+0x1b6>
mov    -0x430(%rbp),%eax
add    $0x9,%eax
add    $0x1,%eax
cltq
movsbl -0x420(%rbp,%rax,1),%ecx
ff
xor    %eax,%eax
cmp    $0x20,%ecx
mov    %al,-0x451(%rbp)
je     1386 <main+0x1b6>
mov    -0x430(%rbp),%eax
add    $0x9,%eax
add    $0x1,%eax
cltq
movsbl -0x420(%rbp,%rax,1),%eax
ff
cmp    $0x9,%eax
setne  %al
mov    %al,-0x451(%rbp)
mov    -0x451(%rbp),%al
test   $0x1,%al
jne    1399 <main+0x1c9>
jmp    13ad <main+0x1dd>
mov    -0x430(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x430(%rbp)
jmp    130a <main+0x13a>
mov    -0x430(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x430(%rbp)
mov    -0x440(%rbp),%rdi
lea    -0x420(%rbp),%rsi
add    $0x2,%rsi
mov    $0x4,%edx
call   1040 <strncpy@plt>
mov    -0x448(%rbp),%rdi
lea    -0x420(%rbp),%rsi
add    $0x9,%rsi
mov    -0x430(%rbp),%edx
call   1040 <strncpy@plt>
mov    -0x440(%rbp),%rax
movsbl (%rax),%edi
call   1030 <char2hex@plt>
shl    $0xc,%eax
and    $0xf000,%eax
mov    %eax,-0x464(%rbp)
mov    -0x440(%rbp),%rax
movsbl 0x1(%rax),%edi
call   1030 <char2hex@plt>
mov    %eax,%ecx
mov    -0x464(%rbp),%eax
shl    $0x8,%ecx
and    $0xf00,%ecx
or     %ecx,%eax
mov    %eax,-0x460(%rbp)
mov    -0x440(%rbp),%rax
movsbl 0x2(%rax),%edi
call   1030 <char2hex@plt>
mov    %eax,%ecx
mov    -0x460(%rbp),%eax
shl    $0x4,%ecx
and    $0xf0,%ecx
or     %ecx,%eax
mov    %eax,-0x45c(%rbp)
mov    -0x440(%rbp),%rax
movsbl 0x3(%rax),%edi
call   1030 <char2hex@plt>
mov    %eax,%ecx
mov    -0x45c(%rbp),%eax
and    $0xf,%ecx
or     %ecx,%eax
mov    %eax,-0x434(%rbp)
mov    -0x42c(%rbp),%eax
mov    %eax,-0x438(%rbp)
mov    -0x438(%rbp),%eax
cmp    -0x434(%rbp),%eax
jge    14c5 <main+0x2f5>
lea    0xb93(%rip),%rdi
call   1070 <printf@plt>
mov    -0x438(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x438(%rbp)
jmp    1493 <main+0x2c3>
mov    -0x434(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x42c(%rbp)
mov    -0x448(%rbp),%rdi
mov    -0x440(%rbp),%rsi
call   10e0 <convertUCtoUTF8@plt>
mov    0x2af2(%rip),%rax
mov    (%rax),%edi
call   10d0 <fflush@plt>
jmp    1216 <main+0x46>
lea    0xb51(%rip),%rdi
call   1070 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x4(%rbp),%eax
add    $0x470,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x428,%rsp
lea    0xe18(%rip),%rdi
lea    0xe1d(%rip),%rsi
call   10f0 <fopen@plt>
mov    %rax,%r12
lea    0xe10(%rip),%rdi
call   1050 <puts@plt>
mov    %r12,%rdi
call   10b0 <feof@plt>
test   %eax,%eax
je     1237 <main+0x67>
lea    0xe28(%rip),%rdi
call   1050 <puts@plt>
mov    %r12,%rdi
call   1060 <fclose@plt>
xor    %eax,%eax
add    $0x428,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movl   $0x0,0x4(%rsp)
lea    0x20(%rsp),%r13
lea    0xdfc(%rip),%r14
mov    %r12,0x8(%rsp)
jmp    1299 <main+0xc9>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r12d
mov    0x10(%rsp),%rdi
mov    %r15,%rsi
call   10e0 <convertUCtoUTF8@plt>
mov    %r12d,0x4(%rsp)
mov    0x8(%rsp),%r12
mov    0x2d5e(%rip),%rax
mov    (%rax),%edi
call   10d0 <fflush@plt>
mov    %r12,%rdi
call   10b0 <feof@plt>
test   %eax,%eax
jne    120f <main+0x3f>
mov    %r13,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
lea    0x1b(%rsp),%rdi
xor    %esi,%esi
mov    $0x5,%edx
call   1080 <memset@plt>
mov    %r13,%rdi
mov    $0x400,%esi
mov    %r12,%rdx
call   1090 <fgets@plt>
mov    %r13,%rdi
lea    0xd85(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     127b <main+0xab>
mov    $0x4,%edi
call   10c0 <malloc@plt>
mov    %rax,%r15
mov    %r13,%rdi
call   1070 <strlen@plt>
lea    -0x8(%rax),%edi
call   10c0 <malloc@plt>
mov    %rax,%rbx
xor    %ebp,%ebp
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1080 <memset@plt>
mov    %r13,%rdi
call   1070 <strlen@plt>
lea    -0x8(%rax),%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1080 <memset@plt>
mov    %r13,%rdi
call   1070 <strlen@plt>
cmp    $0xb,%eax
jl     1364 <main+0x194>
mov    $0xa,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
movzbl 0x20(%rsp,%rbp,1),%eax
cmp    $0x9,%al
je     1360 <main+0x190>
cmp    $0x20,%al
je     1360 <main+0x190>
add    $0x1,%rbp
mov    %r13,%rdi
call   1070 <strlen@plt>
cltq
cmp    %rax,%rbp
jl     1340 <main+0x170>
add    $0xfffffffffffffff6,%rbp
add    $0x1,%ebp
mov    %r15,%rdi
lea    0x22(%rsp),%rsi
mov    $0x4,%edx
call   1040 <strncpy@plt>
mov    %rbx,0x10(%rsp)
mov    %rbx,%rdi
lea    0x29(%rsp),%rsi
mov    %ebp,%edx
call   1040 <strncpy@plt>
movsbl (%r15),%edi
call   1030 <char2hex@plt>
shl    $0xc,%eax
movzwl %ax,%ebx
movsbl 0x1(%r15),%edi
call   1030 <char2hex@plt>
mov    %eax,%ebp
and    $0xf,%ebp
shl    $0x8,%ebp
or     %ebx,%ebp
movsbl 0x2(%r15),%edi
call   1030 <char2hex@plt>
shl    $0x4,%eax
movzbl %al,%ebx
or     %ebp,%ebx
movsbl 0x3(%r15),%edi
call   1030 <char2hex@plt>
mov    %eax,%r12d
and    $0xf,%r12d
or     %ebx,%r12d
mov    0x4(%rsp),%eax
cmp    %r12d,%eax
jge    1260 <main+0x90>
mov    %r12d,%ebp
sub    %eax,%ebp
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1050 <puts@plt>
add    $0xffffffff,%ebp
jne    13f0 <main+0x220>
jmp    1260 <main+0x90>

LLVM IR (-O0):
@.str = [12 x i8] c"mapping.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [49 x i8] c"echo \22static const char x0215_mapping[][4] = {\22\0A\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [19 x i8] c"echo -n \22\\\22.\\\22, \22\0A\00"
@stdout = global i32 0
@.str.5 = [10 x i8] c"echo \22}\22\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca [1024 x i8]
%8 = alloca [5 x i8]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %9
%15 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %15, i32** %6
%16 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
br label %17
17: ; preds = %130, %2
%18 = load i32*, i32** %6
%19 = call i32 @feof(i32* %18)
%20 = icmp ne i32 %19, 0
%21 = xor i1 %20, true
br i1 %21, label %22, label %133
22: ; preds = %17
store i32 0, i32* %10
%23 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%24 = call i32 @memset(i8* %23, i32 0, i32 1024)
%25 = getelementptr inbounds [5 x i8], [5 x i8]* %8, i64 0, i64 0
%26 = call i32 @memset(i8* %25, i32 0, i32 5)
%27 = bitcast [1024 x i8]* %7 to i8**
%28 = load i32*, i32** %6
%29 = call i32 @fgets(i8** %27, i32 1024, i32* %28)
%30 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%31 = call i64 @strcmp(i8* %30, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0))
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %130
33: ; preds = %22
%34 = call i8* @malloc(i32 4)
store i8* %34, i8** %13
%35 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%36 = call i32 @strlen(i8* %35)
%37 = sub nsw i32 %36, 8
%38 = sext i32 %37 to i64
%39 = mul i64 %38, 1
%40 = trunc i64 %39 to i32
%41 = call i8* @malloc(i32 %40)
store i8* %41, i8** %14
%42 = load i8*, i8** %13
%43 = call i32 @memset(i8* %42, i32 0, i32 4)
%44 = load i8*, i8** %14
%45 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%46 = call i32 @strlen(i8* %45)
%47 = sub nsw i32 %46, 8
%48 = call i32 @memset(i8* %44, i32 0, i32 %47)
br label %49
49: ; preds = %75, %33
%50 = load i32, i32* %10
%51 = add nsw i32 10, %50
%52 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%53 = call i32 @strlen(i8* %52)
%54 = icmp slt i32 %51, %53
br i1 %54, label %55, label %73
55: ; preds = %49
%56 = load i32, i32* %10
%57 = add nsw i32 9, %56
%58 = add nsw i32 %57, 1
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 %59
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = icmp ne i32 %62, 32
br i1 %63, label %64, label %73
64: ; preds = %55
%65 = load i32, i32* %10
%66 = add nsw i32 9, %65
%67 = add nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 %68
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = icmp ne i32 %71, 9
br label %73
73: ; preds = %64, %55, %49
%74 = phi i1 [ false, %55 ], [ false, %49 ], [ %72, %64 ]
br i1 %74, label %75, label %78
75: ; preds = %73
%76 = load i32, i32* %10
%77 = add nsw i32 %76, 1
store i32 %77, i32* %10
br label %49
78: ; preds = %73
%79 = load i32, i32* %10
%80 = add nsw i32 %79, 1
store i32 %80, i32* %10
%81 = load i8*, i8** %13
%82 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 2
%83 = call i32 @strncpy(i8* %81, i8* %82, i32 4)
%84 = load i8*, i8** %14
%85 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 9
%86 = load i32, i32* %10
%87 = call i32 @strncpy(i8* %84, i8* %85, i32 %86)
%88 = load i8*, i8** %13
%89 = getelementptr inbounds i8, i8* %88, i64 0
%90 = load i8, i8* %89
%91 = call i32 @char2hex(i8 signext %90)
%92 = shl i32 %91, 12
%93 = and i32 %92, 61440
%94 = load i8*, i8** %13
%95 = getelementptr inbounds i8, i8* %94, i64 1
%96 = load i8, i8* %95
%97 = call i32 @char2hex(i8 signext %96)
%98 = shl i32 %97, 8
%99 = and i32 %98, 3840
%100 = or i32 %93, %99
%101 = load i8*, i8** %13
%102 = getelementptr inbounds i8, i8* %101, i64 2
%103 = load i8, i8* %102
%104 = call i32 @char2hex(i8 signext %103)
%105 = shl i32 %104, 4
%106 = and i32 %105, 240
%107 = or i32 %100, %106
%108 = load i8*, i8** %13
%109 = getelementptr inbounds i8, i8* %108, i64 3
%110 = load i8, i8* %109
%111 = call i32 @char2hex(i8 signext %110)
%112 = and i32 %111, 15
%113 = or i32 %107, %112
store i32 %113, i32* %11
%114 = load i32, i32* %9
store i32 %114, i32* %12
br label %115
115: ; preds = %121, %78
%116 = load i32, i32* %12
%117 = load i32, i32* %11
%118 = icmp slt i32 %116, %117
br i1 %118, label %119, label %124
119: ; preds = %115
%120 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
br label %121
121: ; preds = %119
%122 = load i32, i32* %12
%123 = add nsw i32 %122, 1
store i32 %123, i32* %12
br label %115
124: ; preds = %115
%125 = load i32, i32* %11
%126 = add nsw i32 %125, 1
store i32 %126, i32* %9
%127 = load i8*, i8** %14
%128 = load i8*, i8** %13
%129 = call i32 @convertUCtoUTF8(i8* %127, i8* %128)
br label %130
130: ; preds = %124, %22
%131 = load i32, i32* @stdout
%132 = call i32 @fflush(i32 %131)
br label %17
133: ; preds = %17
%134 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%135 = load i32*, i32** %6
%136 = call i32 @fclose(i32* %135)
%137 = load i32, i32* %3
ret i32 %137
}

LLVM IR (-O2):
@.str = [12 x i8] c"mapping.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.3 = [1 x i8] zeroinitializer
@stdout = global i32 0
@str = [48 x i8] c"echo \22static const char x0215_mapping[][4] = {\22\00"
@str.6 = [9 x i8] c"echo \22}\22\00"
@str.7 = [18 x i8] c"echo -n \22\\\22.\\\22, \22\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [1024 x i8]
%4 = alloca [5 x i8]
%5 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%7 = tail call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str, i64 0, i64 0))
%9 = call i32 @feof(i32* %7)
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %89
11: ; preds = %2
%12 = bitcast [1024 x i8]* %3 to i8**
%13 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 2
%14 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 9
br label %15
15: ; preds = %11, %83
%16 = phi i32 [ 0, %11 ], [ %84, %83 ]
%17 = call i32 @memset(i8* %5, i32 0, i32 1024)
%18 = call i32 @memset(i8* %6, i32 0, i32 5)
%19 = call i32 @fgets(i8** %12, i32 1024, i32* %7)
%20 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %83, label %22
22: ; preds = %15
%23 = call dereferenceable_or_null(4) i8* @malloc(i32 4)
%24 = call i32 @strlen(i8* %5)
%25 = add nsw i32 %24, -8
%26 = call i8* @malloc(i32 %25)
%27 = call i32 @memset(i8* %23, i32 0, i32 4)
%28 = call i32 @strlen(i8* %5)
%29 = add nsw i32 %28, -8
%30 = call i32 @memset(i8* %26, i32 0, i32 %29)
%31 = call i32 @strlen(i8* %5)
%32 = icmp sgt i32 %31, 10
br i1 %32, label %33, label %48
33: ; preds = %22, %38
%34 = phi i64 [ %39, %38 ], [ 0, %22 ]
%35 = phi i64 [ %41, %38 ], [ 10, %22 ]
%36 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %35
%37 = load i8, i8* %36
switch i8 %37, label %38 [
i8 32, label %45
i8 9, label %45
]
38: ; preds = %33
%39 = add nuw nsw i64 %34, 1
%40 = add nuw nsw i64 %34, 11
%41 = add nuw nsw i64 %35, 1
%42 = call i32 @strlen(i8* %5)
%43 = sext i32 %42 to i64
%44 = icmp slt i64 %40, %43
br i1 %44, label %33, label %45
45: ; preds = %33, %33, %38
%46 = phi i64 [ %39, %38 ], [ %34, %33 ], [ %34, %33 ]
%47 = trunc i64 %46 to i32
br label %48
48: ; preds = %45, %22
%49 = phi i32 [ 0, %22 ], [ %47, %45 ]
%50 = add nuw nsw i32 %49, 1
%51 = call i32 @strncpy(i8* %23, i8* %13, i32 4)
%52 = call i32 @strncpy(i8* %26, i8* %14, i32 %50)
%53 = load i8, i8* %23
%54 = call i32 @char2hex(i8 signext %53)
%55 = shl i32 %54, 12
%56 = and i32 %55, 61440
%57 = getelementptr inbounds i8, i8* %23, i64 1
%58 = load i8, i8* %57
%59 = call i32 @char2hex(i8 signext %58)
%60 = shl i32 %59, 8
%61 = and i32 %60, 3840
%62 = or i32 %61, %56
%63 = getelementptr inbounds i8, i8* %23, i64 2
%64 = load i8, i8* %63
%65 = call i32 @char2hex(i8 signext %64)
%66 = shl i32 %65, 4
%67 = and i32 %66, 240
%68 = or i32 %62, %67
%69 = getelementptr inbounds i8, i8* %23, i64 3
%70 = load i8, i8* %69
%71 = call i32 @char2hex(i8 signext %70)
%72 = and i32 %71, 15
%73 = or i32 %68, %72
%74 = icmp slt i32 %16, %73
br i1 %74, label %75, label %80
75: ; preds = %48, %75
%76 = phi i32 [ %78, %75 ], [ %16, %48 ]
%77 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.7, i64 0, i64 0))
%78 = add i32 %76, 1
%79 = icmp eq i32 %78, %73
br i1 %79, label %80, label %75
80: ; preds = %75, %48
%81 = add nuw nsw i32 %73, 1
%82 = call i32 @convertUCtoUTF8(i8* %26, i8* %23)
br label %83
83: ; preds = %80, %15
%84 = phi i32 [ %81, %80 ], [ %16, %15 ]
%85 = load i32, i32* @stdout
%86 = call i32 @fflush(i32 %85)
%87 = call i32 @feof(i32* %7)
%88 = icmp eq i32 %87, 0
br i1 %88, label %15, label %89
89: ; preds = %83, %2
%90 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.6, i64 0, i64 0))
%91 = call i32 @fclose(i32* %7)
ret i32 0
}