#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);
scalar_t__ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
void main(int argc, char **argv) {
  int a, b, i, cn, bestwcn, wcn, last_nbest, nbest;
  float bestscore, score, acscore, lmscore, rnnscore;
  float LM_SCALE, WI_PENALTY;
  char st[1000];
  char best[1000][1000];
  char curr[1000][1000];
  FILE *f1, *f2;
  if (argc <= 2) {
    printf("Need 2 arguments - score file & nbest list\n");
    exit(1);
  }
  f1 = fopen(argv[1], "rb");
  f2 = fopen(argv[2], "rb");
  i = 0;
  bestwcn = 0;
  bestscore = -1000000;
  last_nbest = 0;
  while (1) {
    fscanf(f1, "%f", &rnnscore);
    fscanf(f2, "%d", &nbest);
    if ((last_nbest != nbest) || feof(f2)) {
      for (a = 0; a < bestwcn; a++)
        printf("%s ", best[a]);
      printf("\n");
      bestwcn = 0;
      bestscore = -1000000;
    }
    last_nbest = nbest;
    if (feof(f1))
      break;
    fscanf(f2, "%f", &acscore);
    fscanf(f2, "%f", &lmscore);
    fscanf(f2, "%d", &wcn);
    wcn = 0;
    fscanf(f2, "%s", st);
    fscanf(f2, "%s", st);
    while (1) {
      fscanf(f2, "%s", curr[wcn]);
      if (!strcmp(curr[wcn], "
"))
        break;
      wcn++;
    }
    fscanf(f2, "%s", st);
    LM_SCALE = 14;
    WI_PENALTY = 0;
    score = acscore + rnnscore * LM_SCALE + wcn * WI_PENALTY / (2.718);
    if (score > bestscore) {
      for (a = 0; a < wcn; a++)
        strcpy(best[a], curr[a]);
      bestwcn = wcn;
      bestscore = score;
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1e88d0,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x4(%rbp)
jg     11a4 <main+0x34>
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe89(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x1e88c8(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe6e(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x1e88d0(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x24(%rbp)
movss  0xe10(%rip),%xmm0
movss  %xmm0,-0x34(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x1e88c8(%rbp),%rdi
lea    0xe35(%rip),%rsi
lea    -0x44(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x1e88d0(%rbp),%rdi
lea    0xe1f(%rip),%rsi
lea    -0x30(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jne    1250 <main+0xe0>
mov    -0x1e88d0(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%rax
je     12b6 <main+0x146>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1294 <main+0x124>
movslq -0x14(%rbp),%rax
lea    -0xf4680(%rbp),%rsi
imul   $0x3e8,%rax,%rax
add    %rax,%rsi
lea    0xdc6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1257 <main+0xe7>
lea    0xd9f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x24(%rbp)
movss  0xd4f(%rip),%xmm0
movss  %xmm0,-0x34(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x1e88c8(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%rax
je     12d7 <main+0x167>
jmp    14af <main+0x33f>
mov    -0x1e88d0(%rbp),%rdi
lea    0xd5a(%rip),%rsi
lea    -0x3c(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x1e88d0(%rbp),%rdi
lea    0xd41(%rip),%rsi
lea    -0x40(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x1e88d0(%rbp),%rdi
lea    0xd2b(%rip),%rsi
lea    -0x28(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
movl   $0x0,-0x28(%rbp)
mov    -0x1e88d0(%rbp),%rdi
lea    -0x440(%rbp),%rdx
lea    0xd0b(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x1e88d0(%rbp),%rdi
lea    -0x440(%rbp),%rdx
lea    0xcef(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x1e88d0(%rbp),%rdi
movslq -0x28(%rbp),%rax
lea    -0x1e88c0(%rbp),%rdx
imul   $0x3e8,%rax,%rax
add    %rax,%rdx
lea    0xcc5(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
movslq -0x28(%rbp),%rax
lea    -0x1e88c0(%rbp),%rdi
imul   $0x3e8,%rax,%rax
add    %rax,%rdi
lea    0xca5(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    13ba <main+0x24a>
jmp    13c8 <main+0x258>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1361 <main+0x1f1>
mov    -0x1e88d0(%rbp),%rdi
lea    -0x440(%rbp),%rdx
lea    0xc6c(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
movss  0xc18(%rip),%xmm0
movss  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  -0x3c(%rbp),%xmm1
movss  -0x44(%rbp),%xmm0
movss  -0x48(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
cvtsi2ssl -0x28(%rbp),%xmm1
mulss  -0x4c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xbde(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x38(%rbp)
movss  -0x38(%rbp),%xmm0
ucomiss -0x34(%rbp),%xmm0
jbe    14aa <main+0x33a>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    149a <main+0x32a>
movslq -0x14(%rbp),%rax
lea    -0xf4680(%rbp),%rdi
imul   $0x3e8,%rax,%rax
add    %rax,%rdi
movslq -0x14(%rbp),%rax
lea    -0x1e88c0(%rbp),%rsi
imul   $0x3e8,%rax,%rax
add    %rax,%rsi
call   1030 <strcpy@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1451 <main+0x2e1>
mov    -0x28(%rbp),%eax
mov    %eax,-0x24(%rbp)
movss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x34(%rbp)
jmp    11fc <main+0x8c>
add    $0x1e88d0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1e88a8,%rsp
cmp    $0x2,%edi
jle    1453 <main+0x2c3>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
lea    0xe60(%rip),%rbp
mov    %rbp,%rsi
call   10a0 <fopen@plt>
mov    %rax,%r14
mov    0x10(%rbx),%rdi
mov    %rbp,%rsi
call   10a0 <fopen@plt>
mov    %rax,%r13
movss  0xe26(%rip),%xmm0
lea    0xe44(%rip),%r12
movss  %xmm0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
xor    %r15d,%r15d
mov    %r14,0x20(%rsp)
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
lea    0xe11(%rip),%rsi
lea    0x18(%rsp),%rdx
xor    %eax,%eax
call   1070 <fscanf@plt>
mov    %r13,%rdi
lea    0xdfe(%rip),%rsi
lea    0x14(%rsp),%rdx
xor    %eax,%eax
call   1070 <fscanf@plt>
mov    0x10(%rsp),%eax
cmp    0x14(%rsp),%eax
jne    1243 <main+0xb3>
mov    %r13,%rdi
call   1090 <feof@plt>
test   %rax,%rax
je     129a <main+0x10a>
test   %r15d,%r15d
lea    0xdd4(%rip),%r14
jle    127a <main+0xea>
mov    %r15d,%ebx
lea    0xf4660(%rsp),%rbp
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x3e8,%rbp
add    $0xffffffffffffffff,%rbx
jne    1260 <main+0xd0>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %r15d,%r15d
movss  0xd71(%rip),%xmm0
movss  %xmm0,0xc(%rsp)
mov    0x20(%rsp),%r14
mov    0x14(%rsp),%ebx
mov    %r14,%rdi
call   1090 <feof@plt>
test   %rax,%rax
jne    1441 <main+0x2b1>
mov    %ebx,0x10(%rsp)
mov    %r13,%rdi
lea    0xd5e(%rip),%rbx
mov    %rbx,%rsi
lea    0x1c(%rsp),%rdx
xor    %eax,%eax
call   1070 <fscanf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
lea    0x2c(%rsp),%rdx
xor    %eax,%eax
call   1070 <fscanf@plt>
mov    %r13,%rdi
lea    0xd36(%rip),%rsi
lea    0x8(%rsp),%rdx
xor    %eax,%eax
call   1070 <fscanf@plt>
movl   $0x0,0x8(%rsp)
mov    %r13,%rdi
mov    %r12,%rsi
lea    0x30(%rsp),%rbx
mov    %rbx,%rdx
xor    %eax,%eax
call   1070 <fscanf@plt>
mov    %r13,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
lea    0xd07(%rip),%rbx
xor    %eax,%eax
call   1070 <fscanf@plt>
movslq 0x8(%rsp),%rax
nopl   (%rax)
imul   $0x3e8,%rax,%rax
lea    (%rsp,%rax,1),%rdx
add    $0x420,%rdx
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1070 <fscanf@plt>
movslq 0x8(%rsp),%rbp
imul   $0x3e8,%rbp,%rax
lea    (%rsp,%rax,1),%rdi
add    $0x420,%rdi
mov    %rbx,%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
je     1380 <main+0x1f0>
add    $0x1,%ebp
mov    %ebp,0x8(%rsp)
movslq %ebp,%rax
jmp    1330 <main+0x1a0>
xchg   %ax,%ax
mov    %r13,%rdi
mov    %r12,%rsi
lea    0x30(%rsp),%rdx
xor    %eax,%eax
call   1070 <fscanf@plt>
movss  0x18(%rsp),%xmm0
mulss  0xc64(%rip),%xmm0
addss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    0x8(%rsp),%eax
cvtsi2ss %eax,%xmm1
mulss  0xc4e(%rip),%xmm1
cvtss2sd %xmm1,%xmm1
divsd  0xc4a(%rip),%xmm1
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
ucomiss 0xc(%rsp),%xmm0
jbe    1200 <main+0x70>
movss  %xmm0,0xc(%rsp)
mov    %eax,%r15d
test   %eax,%eax
jle    1200 <main+0x70>
movss  %xmm0,0xc(%rsp)
lea    0x420(%rsp),%rbp
lea    0xf4660(%rsp),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
add    $0x1,%rbx
movslq 0x8(%rsp),%r15
add    $0x3e8,%r14
add    $0x3e8,%rbp
cmp    %r15,%rbx
jl     1410 <main+0x280>
mov    0x20(%rsp),%r14
jmp    1200 <main+0x70>
add    $0x1e88a8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xbd3(%rip),%rdi
call   1050 <puts@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>

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

LLVM IR (-O2):
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [3 x i8] c"%f\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [4 x i8] c"%s \00"
@.str.6 = [3 x i8] c"%s\00"
@.str.7 = [5 x i8] c"
\00"
@str = [43 x i8] c"Need 2 arguments - score file & nbest list\00"
define void @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca [1000 x i8]
%9 = alloca [1000 x [1000 x i8]]
%10 = alloca [1000 x [1000 x i8]]
%11 = bitcast i32* %3 to i8*
%12 = bitcast i32* %4 to i8*
%13 = bitcast float* %5 to i8*
%14 = bitcast float* %6 to i8*
%15 = bitcast float* %7 to i8*
%16 = getelementptr inbounds [1000 x i8], [1000 x i8]* %8, i64 0, i64 0
%17 = getelementptr inbounds [1000 x [1000 x i8]], [1000 x [1000 x i8]]* %9, i64 0, i64 0, i64 0
%18 = getelementptr inbounds [1000 x [1000 x i8]], [1000 x [1000 x i8]]* %10, i64 0, i64 0, i64 0
%19 = icmp slt i32 %0, 3
br i1 %19, label %20, label %23
20: ; preds = %2
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str, i64 0, i64 0))
%22 = tail call i32 @exit(i32 1)
unreachable
23: ; preds = %2
%24 = getelementptr inbounds i8*, i8** %1, i64 1
%25 = load i8*, i8** %24
%26 = tail call i32* @fopen(i8* %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%27 = getelementptr inbounds i8*, i8** %1, i64 2
%28 = load i8*, i8** %27
%29 = tail call i32* @fopen(i8* %28, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %30
30: ; preds = %101, %23
%31 = phi float [ -1.000000e+06, %23 ], [ %102, %101 ]
%32 = phi i32 [ 0, %23 ], [ %56, %101 ]
%33 = phi i32 [ 0, %23 ], [ %103, %101 ]
%34 = call i32 (i32*, i8*, ...) @fscanf(i32* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %7)
%35 = call i32 (i32*, i8*, ...) @fscanf(i32* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
%36 = load i32, i32* %4
%37 = icmp eq i32 %32, %36
br i1 %37, label %38, label %41
38: ; preds = %30
%39 = call i64 @feof(i32* %29)
%40 = icmp eq i64 %39, 0
br i1 %40, label %53, label %41
41: ; preds = %38, %30
%42 = icmp sgt i32 %33, 0
br i1 %42, label %43, label %51
43: ; preds = %41
%44 = zext i32 %33 to i64
br label %45
45: ; preds = %43, %45
%46 = phi i64 [ 0, %43 ], [ %49, %45 ]
%47 = getelementptr inbounds [1000 x [1000 x i8]], [1000 x [1000 x i8]]* %9, i64 0, i64 %46, i64 0
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %47)
%49 = add nuw nsw i64 %46, 1
%50 = icmp eq i64 %49, %44
br i1 %50, label %51, label %45
51: ; preds = %45, %41
%52 = call i32 @putchar(i32 10)
br label %53
53: ; preds = %51, %38
%54 = phi float [ -1.000000e+06, %51 ], [ %31, %38 ]
%55 = phi i32 [ 0, %51 ], [ %33, %38 ]
%56 = load i32, i32* %4
%57 = call i64 @feof(i32* %26)
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %113
59: ; preds = %53
%60 = call i32 (i32*, i8*, ...) @fscanf(i32* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %5)
%61 = call i32 (i32*, i8*, ...) @fscanf(i32* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %6)
%62 = call i32 (i32*, i8*, ...) @fscanf(i32* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
store i32 0, i32* %3
%63 = call i32 (i32*, i8*, ...) @fscanf(i32* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %16)
%64 = call i32 (i32*, i8*, ...) @fscanf(i32* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %16)
%65 = load i32, i32* %3
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [1000 x [1000 x i8]], [1000 x [1000 x i8]]* %10, i64 0, i64 %66, i64 0
%68 = call i32 (i32*, i8*, ...) @fscanf(i32* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %67)
%69 = load i32, i32* %3
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [1000 x [1000 x i8]], [1000 x [1000 x i8]]* %10, i64 0, i64 %70, i64 0
%72 = call i32 @strcmp(i8* %71, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%73 = icmp eq i32 %72, 0
br i1 %73, label %85, label %74
74: ; preds = %59, %74
%75 = phi i32 [ %80, %74 ], [ %69, %59 ]
%76 = add nsw i32 %75, 1
store i32 %76, i32* %3
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [1000 x [1000 x i8]], [1000 x [1000 x i8]]* %10, i64 0, i64 %77, i64 0
%79 = call i32 (i32*, i8*, ...) @fscanf(i32* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %78)
%80 = load i32, i32* %3
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [1000 x [1000 x i8]], [1000 x [1000 x i8]]* %10, i64 0, i64 %81, i64 0
%83 = call i32 @strcmp(i8* %82, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %74
85: ; preds = %74, %59
%86 = call i32 (i32*, i8*, ...) @fscanf(i32* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %16)
%87 = load float, float* %5
%88 = load float, float* %7
%89 = call float @llvm.fmuladd.f32(float %88, float 1.400000e+01, float %87)
%90 = fpext float %89 to double
%91 = load i32, i32* %3
%92 = sitofp i32 %91 to float
%93 = fmul float %92, 0.000000e+00
%94 = fpext float %93 to double
%95 = fdiv double %94, 2.718000e+00
%96 = fadd double %95, %90
%97 = fptrunc double %96 to float
%98 = fcmp olt float %54, %97
br i1 %98, label %99, label %101
99: ; preds = %85
%100 = icmp sgt i32 %91, 0
br i1 %100, label %104, label %101
101: ; preds = %104, %99, %85
%102 = phi float [ %54, %85 ], [ %97, %99 ], [ %97, %104 ]
%103 = phi i32 [ %55, %85 ], [ %91, %99 ], [ %110, %104 ]
br label %30
104: ; preds = %99, %104
%105 = phi i64 [ %109, %104 ], [ 0, %99 ]
%106 = getelementptr inbounds [1000 x [1000 x i8]], [1000 x [1000 x i8]]* %9, i64 0, i64 %105, i64 0
%107 = getelementptr inbounds [1000 x [1000 x i8]], [1000 x [1000 x i8]]* %10, i64 0, i64 %105, i64 0
%108 = call i32 @strcpy(i8* %106, i8* %107)
%109 = add nuw nsw i64 %105, 1
%110 = load i32, i32* %3
%111 = sext i32 %110 to i64
%112 = icmp slt i64 %109, %111
br i1 %112, label %104, label %101
113: ; preds = %53
ret void
}