#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*/ ReplaceChar(char *, char, char);
int /*<<< orphan*/ TrimSpace(char *);
char *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ sprintf(char *, char *, char *, ...);
int /*<<< orphan*/ strcpy(char *, char *);
scalar_t__ strlen(char *);
char *strstr(char *, char *);
float strtof(char *, char **);
void LoadEntries(FILE *fHandle, char *ent, char *ePtr[]) {
  size_t nProcessed;
  char *s, *c, *d, *e, buf[512], tmp[512], *ndx;
  char word[512], oSym[512], pProb[512], pron[512];
  float pVal;
  nProcessed = 0;
  ndx = ent;
  while ((s = fgets(buf, 512, fHandle))) {
    if (!s)
      break;
    strcpy(tmp, buf);
    ReplaceChar(tmp, '\t', ' ');
    TrimSpace(tmp);
    ReplaceChar(tmp, '\n', '\0');
    word[0] = '\0';
    oSym[0] = '\0';
    pProb[0] = '\0';
    pron[0] = '\0';
    s = &word[0];
    c = tmp;
    while (*c != ' ')
      *s++ = *c++;
    *s = '\0';
    c++;
    d = c;
    c = strstr(c, "[");
    if (c) {
      s = &oSym[0];
      while (*c != ' ')
        *s++ = *c++;
      *s = '\0';
      c++;
    } else {
      c = d;
    }
    d = c;
    pVal = strtof(c, &e);
    if (pVal != 0.0) {
      c = d;
      s = &pProb[0];
      while (*c != ' ')
        *s++ = *c++;
      *s = '\0';
      c++;
    } else {
      c = d;
    }
    s = &pron[0];
    while (*c != '\0')
      *s++ = *c++;
    *s = '\0';
    s = ndx;
    ePtr[nProcessed] = ndx;
    s += sprintf(s, "%s\t%s", word, pron);
    if (strlen(oSym) > 0)
      s += sprintf(s, "\t%s", oSym);
    if (strlen(pProb) > 0)
      s += sprintf(s, "\t%s", pProb);
    ndx = s + 1;
    nProcessed++;
  }
}


x86 assembly (clang, -O0):
<LoadEntries>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x448(%rbp)
lea    -0x240(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    $0x200,%esi
call   1070 <fgets@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
je     150a <LoadEntries+0x38a>
cmpq   $0x0,-0x28(%rbp)
jne    11dd <LoadEntries+0x5d>
jmp    150a <LoadEntries+0x38a>
lea    -0x440(%rbp),%rdi
lea    -0x240(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x440(%rbp),%rdi
mov    $0x9,%esi
mov    $0x20,%edx
call   1040 <ReplaceChar@plt>
lea    -0x440(%rbp),%rdi
call   1090 <TrimSpace@plt>
lea    -0x440(%rbp),%rdi
mov    $0xa,%esi
xor    %edx,%edx
call   1040 <ReplaceChar@plt>
movb   $0x0,-0x650(%rbp)
movb   $0x0,-0x850(%rbp)
movb   $0x0,-0xa50(%rbp)
movb   $0x0,-0xc50(%rbp)
lea    -0x650(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    -0x440(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     128e <LoadEntries+0x10e>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
mov    (%rax),%cl
mov    -0x28(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x28(%rbp)
mov    %cl,(%rax)
jmp    1257 <LoadEntries+0xd7>
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rdi
lea    0xd4c(%rip),%rsi
call   10a0 <strstr@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1322 <LoadEntries+0x1a2>
lea    -0x850(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     130a <LoadEntries+0x18a>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
mov    (%rax),%cl
mov    -0x28(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x28(%rbp)
mov    %cl,(%rax)
jmp    12d3 <LoadEntries+0x153>
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    132a <LoadEntries+0x1aa>
mov    -0x38(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1060 <strtof@plt>
movss  %xmm0,-0xc54(%rbp)
ff
movss  -0xc54(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    136b <LoadEntries+0x1eb>
jp     136b <LoadEntries+0x1eb>
jmp    13cd <LoadEntries+0x24d>
mov    -0x38(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    -0xa50(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     13b5 <LoadEntries+0x235>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
mov    (%rax),%cl
mov    -0x28(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x28(%rbp)
mov    %cl,(%rax)
jmp    137e <LoadEntries+0x1fe>
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    13d5 <LoadEntries+0x255>
mov    -0x38(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    -0xc50(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1417 <LoadEntries+0x297>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
mov    (%rax),%cl
mov    -0x28(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x28(%rbp)
mov    %cl,(%rax)
jmp    13e0 <LoadEntries+0x260>
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x448(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x448(%rbp),%rdx
mov    -0x18(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x28(%rbp),%rdi
lea    -0x650(%rbp),%rdx
lea    -0xc50(%rbp),%rcx
lea    0xbad(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x28(%rbp)
lea    -0x850(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x0,%rax
jle    14ab <LoadEntries+0x32b>
mov    -0x28(%rbp),%rdi
lea    -0x850(%rbp),%rdx
lea    0xb70(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x28(%rbp)
lea    -0xa50(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x0,%rax
jle    14ea <LoadEntries+0x36a>
mov    -0x28(%rbp),%rdi
lea    -0xa50(%rbp),%rdx
lea    0xb31(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x448(%rbp)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    11aa <LoadEntries+0x2a>
add    $0xc60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LoadEntries>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc28,%rsp
mov    %rdx,0x10(%rsp)
mov    %rsi,%r15
mov    %rdi,%rdx
lea    0xa20(%rsp),%rdi
mov    $0x200,%esi
mov    %rdx,0x8(%rsp)
call   1080 <fgets@plt>
test   %rax,%rax
je     13f1 <LoadEntries+0x271>
lea    0x820(%rsp),%r14
lea    0xa20(%rsp),%rsi
lea    0x220(%rsp),%rbp
xor    %r13d,%r13d
jmp    1211 <LoadEntries+0x91>
nopl   0x0(%rax)
mov    %r12,%rdi
lea    0x220(%rsp),%rbp
add    $0x1,%rbx
add    $0x1,%r13
mov    $0x200,%esi
mov    0x8(%rsp),%rdx
call   1080 <fgets@plt>
mov    %r12,%rsi
mov    %rbx,%r15
test   %rax,%rax
je     13f1 <LoadEntries+0x271>
mov    %r14,%rdi
mov    %rsi,%r12
call   1030 <strcpy@plt>
mov    %r14,%rdi
mov    $0x9,%esi
mov    $0x20,%edx
call   1040 <ReplaceChar@plt>
mov    %r14,%rdi
call   10a0 <TrimSpace@plt>
mov    %r14,%rdi
mov    $0xa,%esi
xor    %edx,%edx
call   1040 <ReplaceChar@plt>
movb   $0x0,0x620(%rsp)
movb   $0x0,0x420(%rsp)
movb   $0x0,0x20(%rsp)
movb   $0x0,0x220(%rsp)
mov    0x820(%rsp),%cl
lea    0x620(%rsp),%rax
mov    %r14,%rbx
cmp    $0x20,%cl
je     12a3 <LoadEntries+0x123>
mov    %r14,%rbx
lea    0x620(%rsp),%rax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %cl,(%rax)
add    $0x1,%rax
movzbl 0x1(%rbx),%ecx
add    $0x1,%rbx
cmp    $0x20,%cl
jne    1290 <LoadEntries+0x110>
movb   $0x0,(%rax)
add    $0x1,%rbx
mov    %rbx,%rdi
mov    $0x5b,%esi
call   1060 <strchr@plt>
test   %rax,%rax
je     12ed <LoadEntries+0x16d>
mov    (%rax),%dl
lea    0x420(%rsp),%rcx
cmp    $0x20,%dl
je     12e3 <LoadEntries+0x163>
nopl   0x0(%rax,%rax,1)
mov    %dl,(%rcx)
add    $0x1,%rcx
movzbl 0x1(%rax),%edx
add    $0x1,%rax
cmp    $0x20,%dl
jne    12d0 <LoadEntries+0x150>
movb   $0x0,(%rcx)
add    $0x1,%rax
mov    %rax,%rbx
mov    %rbx,%rdi
lea    0x18(%rsp),%rsi
call   1070 <strtof@plt>
ucomiss 0xcff(%rip),%xmm0
jne    1305 <LoadEntries+0x185>
jnp    133a <LoadEntries+0x1ba>
mov    (%rbx),%cl
lea    0x20(%rsp),%rax
cmp    $0x20,%cl
je     1333 <LoadEntries+0x1b3>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %cl,(%rax)
add    $0x1,%rax
movzbl 0x1(%rbx),%ecx
add    $0x1,%rbx
cmp    $0x20,%cl
jne    1320 <LoadEntries+0x1a0>
movb   $0x0,(%rax)
add    $0x1,%rbx
mov    (%rbx),%al
mov    %rbp,%rcx
test   %al,%al
je     1361 <LoadEntries+0x1e1>
add    $0x1,%rbx
mov    %rbp,%rcx
nopw   0x0(%rax,%rax,1)
mov    %al,(%rcx)
add    $0x1,%rcx
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1350 <LoadEntries+0x1d0>
movb   $0x0,(%rcx)
mov    0x10(%rsp),%rax
mov    %r15,(%rax,%r13,8)
mov    %r15,%rdi
lea    0xc8d(%rip),%rsi
lea    0x620(%rsp),%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1090 <sprintf@plt>
movslq %eax,%rbx
add    %r15,%rbx
lea    0x420(%rsp),%rbp
mov    %rbp,%rdi
call   1050 <strlen@plt>
test   %rax,%rax
jle    13bd <LoadEntries+0x23d>
mov    %rbx,%rdi
lea    0xc58(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <sprintf@plt>
cltq
add    %rax,%rbx
lea    0x20(%rsp),%rbp
mov    %rbp,%rdi
call   1050 <strlen@plt>
test   %rax,%rax
jle    11e0 <LoadEntries+0x60>
mov    %rbx,%rdi
lea    0xc29(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <sprintf@plt>
cltq
add    %rax,%rbx
jmp    11e0 <LoadEntries+0x60>
add    $0xc28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"[\00"
@.str.1 = [6 x i8] c"%s\09%s\00"
@.str.2 = [4 x i8] c"\09%s\00"
define void @LoadEntries(i32* %0, i8* %1, i8** %2) {
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i8**
%7 = alloca i64
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca [512 x i8]
%13 = alloca [512 x i8]
%14 = alloca i8*
%15 = alloca [512 x i8]
%16 = alloca [512 x i8]
%17 = alloca [512 x i8]
%18 = alloca [512 x i8]
%19 = alloca float
store i32* %0, i32** %4
store i8* %1, i8** %5
store i8** %2, i8*** %6
store i64 0, i64* %7
%20 = load i8*, i8** %5
store i8* %20, i8** %14
br label %21
21: ; preds = %160, %3
%22 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%23 = load i32*, i32** %4
%24 = call i8* @fgets(i8* %22, i32 512, i32* %23)
store i8* %24, i8** %8
%25 = icmp ne i8* %24, null
br i1 %25, label %26, label %165
26: ; preds = %21
%27 = load i8*, i8** %8
%28 = icmp ne i8* %27, null
br i1 %28, label %30, label %29
29: ; preds = %26
br label %165
30: ; preds = %26
%31 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%32 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%33 = call i32 @strcpy(i8* %31, i8* %32)
%34 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%35 = call i32 @ReplaceChar(i8* %34, i8 signext 9, i8 signext 32)
%36 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%37 = call i32 @TrimSpace(i8* %36)
%38 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%39 = call i32 @ReplaceChar(i8* %38, i8 signext 10, i8 signext 0)
%40 = getelementptr inbounds [512 x i8], [512 x i8]* %15, i64 0, i64 0
store i8 0, i8* %40
%41 = getelementptr inbounds [512 x i8], [512 x i8]* %16, i64 0, i64 0
store i8 0, i8* %41
%42 = getelementptr inbounds [512 x i8], [512 x i8]* %17, i64 0, i64 0
store i8 0, i8* %42
%43 = getelementptr inbounds [512 x i8], [512 x i8]* %18, i64 0, i64 0
store i8 0, i8* %43
%44 = getelementptr inbounds [512 x i8], [512 x i8]* %15, i64 0, i64 0
store i8* %44, i8** %8
%45 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
store i8* %45, i8** %9
br label %46
46: ; preds = %51, %30
%47 = load i8*, i8** %9
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %49, 32
br i1 %50, label %51, label %57
51: ; preds = %46
%52 = load i8*, i8** %9
%53 = getelementptr inbounds i8, i8* %52, i32 1
store i8* %53, i8** %9
%54 = load i8, i8* %52
%55 = load i8*, i8** %8
%56 = getelementptr inbounds i8, i8* %55, i32 1
store i8* %56, i8** %8
store i8 %54, i8* %55
br label %46
57: ; preds = %46
%58 = load i8*, i8** %8
store i8 0, i8* %58
%59 = load i8*, i8** %9
%60 = getelementptr inbounds i8, i8* %59, i32 1
store i8* %60, i8** %9
%61 = load i8*, i8** %9
store i8* %61, i8** %10
%62 = load i8*, i8** %9
%63 = call i8* @strstr(i8* %62, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %63, i8** %9
%64 = load i8*, i8** %9
%65 = icmp ne i8* %64, null
br i1 %65, label %66, label %83
66: ; preds = %57
%67 = getelementptr inbounds [512 x i8], [512 x i8]* %16, i64 0, i64 0
store i8* %67, i8** %8
br label %68
68: ; preds = %73, %66
%69 = load i8*, i8** %9
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = icmp ne i32 %71, 32
br i1 %72, label %73, label %79
73: ; preds = %68
%74 = load i8*, i8** %9
%75 = getelementptr inbounds i8, i8* %74, i32 1
store i8* %75, i8** %9
%76 = load i8, i8* %74
%77 = load i8*, i8** %8
%78 = getelementptr inbounds i8, i8* %77, i32 1
store i8* %78, i8** %8
store i8 %76, i8* %77
br label %68
79: ; preds = %68
%80 = load i8*, i8** %8
store i8 0, i8* %80
%81 = load i8*, i8** %9
%82 = getelementptr inbounds i8, i8* %81, i32 1
store i8* %82, i8** %9
br label %85
83: ; preds = %57
%84 = load i8*, i8** %10
store i8* %84, i8** %9
br label %85
85: ; preds = %83, %79
%86 = load i8*, i8** %9
store i8* %86, i8** %10
%87 = load i8*, i8** %9
%88 = call float @strtof(i8* %87, i8** %11)
store float %88, float* %19
%89 = load float, float* %19
%90 = fpext float %89 to double
%91 = fcmp une double %90, 0.000000e+00
br i1 %91, label %92, label %110
92: ; preds = %85
%93 = load i8*, i8** %10
store i8* %93, i8** %9
%94 = getelementptr inbounds [512 x i8], [512 x i8]* %17, i64 0, i64 0
store i8* %94, i8** %8
br label %95
95: ; preds = %100, %92
%96 = load i8*, i8** %9
%97 = load i8, i8* %96
%98 = sext i8 %97 to i32
%99 = icmp ne i32 %98, 32
br i1 %99, label %100, label %106
100: ; preds = %95
%101 = load i8*, i8** %9
%102 = getelementptr inbounds i8, i8* %101, i32 1
store i8* %102, i8** %9
%103 = load i8, i8* %101
%104 = load i8*, i8** %8
%105 = getelementptr inbounds i8, i8* %104, i32 1
store i8* %105, i8** %8
store i8 %103, i8* %104
br label %95
106: ; preds = %95
%107 = load i8*, i8** %8
store i8 0, i8* %107
%108 = load i8*, i8** %9
%109 = getelementptr inbounds i8, i8* %108, i32 1
store i8* %109, i8** %9
br label %112
110: ; preds = %85
%111 = load i8*, i8** %10
store i8* %111, i8** %9
br label %112
112: ; preds = %110, %106
%113 = getelementptr inbounds [512 x i8], [512 x i8]* %18, i64 0, i64 0
store i8* %113, i8** %8
br label %114
114: ; preds = %119, %112
%115 = load i8*, i8** %9
%116 = load i8, i8* %115
%117 = sext i8 %116 to i32
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %125
119: ; preds = %114
%120 = load i8*, i8** %9
%121 = getelementptr inbounds i8, i8* %120, i32 1
store i8* %121, i8** %9
%122 = load i8, i8* %120
%123 = load i8*, i8** %8
%124 = getelementptr inbounds i8, i8* %123, i32 1
store i8* %124, i8** %8
store i8 %122, i8* %123
br label %114
125: ; preds = %114
%126 = load i8*, i8** %8
store i8 0, i8* %126
%127 = load i8*, i8** %14
store i8* %127, i8** %8
%128 = load i8*, i8** %14
%129 = load i8**, i8*** %6
%130 = load i64, i64* %7
%131 = getelementptr inbounds i8*, i8** %129, i64 %130
store i8* %128, i8** %131
%132 = load i8*, i8** %8
%133 = getelementptr inbounds [512 x i8], [512 x i8]* %15, i64 0, i64 0
%134 = getelementptr inbounds [512 x i8], [512 x i8]* %18, i64 0, i64 0
%135 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %132, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %133, i8* %134)
%136 = load i8*, i8** %8
%137 = sext i32 %135 to i64
%138 = getelementptr inbounds i8, i8* %136, i64 %137
store i8* %138, i8** %8
%139 = getelementptr inbounds [512 x i8], [512 x i8]* %16, i64 0, i64 0
%140 = call i64 @strlen(i8* %139)
%141 = icmp sgt i64 %140, 0
br i1 %141, label %142, label %149
142: ; preds = %125
%143 = load i8*, i8** %8
%144 = getelementptr inbounds [512 x i8], [512 x i8]* %16, i64 0, i64 0
%145 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %143, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %144)
%146 = load i8*, i8** %8
%147 = sext i32 %145 to i64
%148 = getelementptr inbounds i8, i8* %146, i64 %147
store i8* %148, i8** %8
br label %149
149: ; preds = %142, %125
%150 = getelementptr inbounds [512 x i8], [512 x i8]* %17, i64 0, i64 0
%151 = call i64 @strlen(i8* %150)
%152 = icmp sgt i64 %151, 0
br i1 %152, label %153, label %160
153: ; preds = %149
%154 = load i8*, i8** %8
%155 = getelementptr inbounds [512 x i8], [512 x i8]* %17, i64 0, i64 0
%156 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %154, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %155)
%157 = load i8*, i8** %8
%158 = sext i32 %156 to i64
%159 = getelementptr inbounds i8, i8* %157, i64 %158
store i8* %159, i8** %8
br label %160
160: ; preds = %153, %149
%161 = load i8*, i8** %8
%162 = getelementptr inbounds i8, i8* %161, i64 1
store i8* %162, i8** %14
%163 = load i64, i64* %7
%164 = add i64 %163, 1
store i64 %164, i64* %7
br label %21
165: ; preds = %29, %21
ret void
}

LLVM IR (-O2):
@.str.1 = [6 x i8] c"%s\09%s\00"
@.str.2 = [4 x i8] c"\09%s\00"
define void @LoadEntries(i32* nocapture %0, i8* %1, i8** nocapture writeonly %2) {
%4 = alloca i8*
%5 = alloca [512 x i8]
%6 = alloca [512 x i8]
%7 = alloca [512 x i8]
%8 = alloca [512 x i8]
%9 = alloca [512 x i8]
%10 = alloca [512 x i8]
%11 = bitcast i8** %4 to i8*
%12 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%13 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%14 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%15 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%16 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%17 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%18 = call i8* @fgets(i8* %12, i32 512, i32* %0)
%19 = icmp eq i8* %18, null
br i1 %19, label %115, label %20
20: ; preds = %3, %109
%21 = phi i64 [ %112, %109 ], [ 0, %3 ]
%22 = phi i8* [ %111, %109 ], [ %1, %3 ]
%23 = call i32 @strcpy(i8* %13, i8* %12)
%24 = call i32 @ReplaceChar(i8* %13, i8 signext 9, i8 signext 32)
%25 = call i32 @TrimSpace(i8* %13)
%26 = call i32 @ReplaceChar(i8* %13, i8 signext 10, i8 signext 0)
store i8 0, i8* %14
store i8 0, i8* %15
store i8 0, i8* %16
store i8 0, i8* %17
%27 = load i8, i8* %13
%28 = icmp eq i8 %27, 32
br i1 %28, label %37, label %29
29: ; preds = %20, %29
%30 = phi i8 [ %35, %29 ], [ %27, %20 ]
%31 = phi i8* [ %33, %29 ], [ %13, %20 ]
%32 = phi i8* [ %34, %29 ], [ %14, %20 ]
%33 = getelementptr inbounds i8, i8* %31, i64 1
%34 = getelementptr inbounds i8, i8* %32, i64 1
store i8 %30, i8* %32
%35 = load i8, i8* %33
%36 = icmp eq i8 %35, 32
br i1 %36, label %37, label %29
37: ; preds = %29, %20
%38 = phi i8* [ %14, %20 ], [ %34, %29 ]
%39 = phi i8* [ %13, %20 ], [ %33, %29 ]
store i8 0, i8* %38
%40 = getelementptr inbounds i8, i8* %39, i64 1
%41 = call i8* @strchr(i8* %40, i32 91)
%42 = icmp eq i8* %41, null
br i1 %42, label %58, label %43
43: ; preds = %37
%44 = load i8, i8* %41
%45 = icmp eq i8 %44, 32
br i1 %45, label %54, label %46
46: ; preds = %43, %46
%47 = phi i8 [ %52, %46 ], [ %44, %43 ]
%48 = phi i8* [ %50, %46 ], [ %41, %43 ]
%49 = phi i8* [ %51, %46 ], [ %15, %43 ]
%50 = getelementptr inbounds i8, i8* %48, i64 1
%51 = getelementptr inbounds i8, i8* %49, i64 1
store i8 %47, i8* %49
%52 = load i8, i8* %50
%53 = icmp eq i8 %52, 32
br i1 %53, label %54, label %46
54: ; preds = %46, %43
%55 = phi i8* [ %15, %43 ], [ %51, %46 ]
%56 = phi i8* [ %41, %43 ], [ %50, %46 ]
store i8 0, i8* %55
%57 = getelementptr inbounds i8, i8* %56, i64 1
br label %58
58: ; preds = %37, %54
%59 = phi i8* [ %57, %54 ], [ %40, %37 ]
%60 = call float @strtof(i8* %59, i8** %4)
%61 = fcmp une float %60, 0.000000e+00
br i1 %61, label %62, label %77
62: ; preds = %58
%63 = load i8, i8* %59
%64 = icmp eq i8 %63, 32
br i1 %64, label %73, label %65
65: ; preds = %62, %65
%66 = phi i8 [ %71, %65 ], [ %63, %62 ]
%67 = phi i8* [ %69, %65 ], [ %59, %62 ]
%68 = phi i8* [ %70, %65 ], [ %16, %62 ]
%69 = getelementptr inbounds i8, i8* %67, i64 1
%70 = getelementptr inbounds i8, i8* %68, i64 1
store i8 %66, i8* %68
%71 = load i8, i8* %69
%72 = icmp eq i8 %71, 32
br i1 %72, label %73, label %65
73: ; preds = %65, %62
%74 = phi i8* [ %16, %62 ], [ %70, %65 ]
%75 = phi i8* [ %59, %62 ], [ %69, %65 ]
store i8 0, i8* %74
%76 = getelementptr inbounds i8, i8* %75, i64 1
br label %77
77: ; preds = %58, %73
%78 = phi i8* [ %76, %73 ], [ %59, %58 ]
%79 = load i8, i8* %78
%80 = icmp eq i8 %79, 0
br i1 %80, label %89, label %81
81: ; preds = %77, %81
%82 = phi i8 [ %87, %81 ], [ %79, %77 ]
%83 = phi i8* [ %85, %81 ], [ %78, %77 ]
%84 = phi i8* [ %86, %81 ], [ %17, %77 ]
%85 = getelementptr inbounds i8, i8* %83, i64 1
%86 = getelementptr inbounds i8, i8* %84, i64 1
store i8 %82, i8* %84
%87 = load i8, i8* %85
%88 = icmp eq i8 %87, 0
br i1 %88, label %89, label %81
89: ; preds = %81, %77
%90 = phi i8* [ %17, %77 ], [ %86, %81 ]
store i8 0, i8* %90
%91 = getelementptr inbounds i8*, i8** %2, i64 %21
store i8* %22, i8** %91
%92 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* dereferenceable(1) %22, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %14, i8* %17)
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, i8* %22, i64 %93
%95 = call i64 @strlen(i8* %15)
%96 = icmp sgt i64 %95, 0
br i1 %96, label %97, label %101
97: ; preds = %89
%98 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* dereferenceable(1) %94, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %15)
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i8, i8* %94, i64 %99
br label %101
101: ; preds = %97, %89
%102 = phi i8* [ %100, %97 ], [ %94, %89 ]
%103 = call i64 @strlen(i8* %16)
%104 = icmp sgt i64 %103, 0
br i1 %104, label %105, label %109
105: ; preds = %101
%106 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* dereferenceable(1) %102, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %16)
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i8, i8* %102, i64 %107
br label %109
109: ; preds = %105, %101
%110 = phi i8* [ %108, %105 ], [ %102, %101 ]
%111 = getelementptr inbounds i8, i8* %110, i64 1
%112 = add i64 %21, 1
%113 = call i8* @fgets(i8* %12, i32 512, i32* %0)
%114 = icmp eq i8* %113, null
br i1 %114, label %115, label %20
115: ; preds = %109, %3
ret void
}