#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 */
float atof(char *);
int atol(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
size_t fread(float *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ locate_lsps_jnd_steps(float *, float, int);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  int k;
  float *vec;
  int *n;
  int J;
  int i, j;
  FILE *ftrain;
  float *train;
  float *pt;
  int ntrain, match, vec_exists, vec_index = 0, entry;
  int popular[10], pop_thresh;
  FILE *fvq;
  float jnd;
  if (argc != 6) {
    printf("usage: %s TrainFile K(dimension) JND popThresh VQFile\n", argv[0]);
    exit(1);
  }
  ftrain = fopen(argv[1], "rb");
  if (ftrain == NULL) {
    printf("Error opening training database file: %s\n", argv[1]);
    exit(1);
  }
  k = atol(argv[2]);
  jnd = atof(argv[3]);
  pop_thresh = atol(argv[4]);
  printf("dimension K=%d  popThresh=%d JND=%3.1f Hz\n", k, pop_thresh, jnd);
  vec = (float *)malloc(sizeof(float) * k);
  if (vec == NULL) {
    printf("Error in malloc.\n");
    exit(1);
  }
  J = 0;
  while (fread(vec, sizeof(float), k, ftrain) == (size_t)k)
    J++;
  printf("J=%d entries in training set\n", J);
  train = (float *)malloc(sizeof(float) * k * J);
  if (train == NULL) {
    printf("Error in malloc.\n");
    exit(1);
  }
  printf("training array is %d bytes\n", sizeof(float) * k * J);
  n = (int *)malloc(sizeof(int) * J);
  if (n == NULL) {
    printf("Error in malloc.\n");
    exit(1);
  }
  for (i = 0; i < J; i++)
    n[i] = 0;
  rewind(ftrain);
  ntrain = 0;
  entry = 0;
  while (fread(vec, sizeof(float), k, ftrain) == (size_t)k) {
    for (j = 0; j < k; j++)
      vec[j] *= 4000.0 / 3.141592654;
    locate_lsps_jnd_steps(vec, jnd, k);
    pt = train;
    vec_exists = 0;
    for (i = 0; i < ntrain; i++) {
      match = 1;
      for (j = 0; j < k; j++)
        if (vec[j] != pt[j])
          match = 0;
      if (match) {
        vec_exists = 1;
        vec_index = i;
      }
      pt += k;
    }
    if (vec_exists)
      n[vec_index]++;
    else {
      for (j = 0; j < k; j++) {
        train[ntrain * k + j] = vec[j];
      }
      ntrain++;
    }
    entry++;
    if ((entry % 100) == 0)
      printf("\rtrain input vectors: %d unique vectors: %d", entry, ntrain);
  }
  printf("\n");
  for (i = 0; i < 10; i++)
    popular[i] = 0;
  for (i = 0; i < ntrain; i++) {
    if (n[i] < 10)
      popular[n[i]]++;
  }
  for (i = 0; i < 10; i++)
    printf("popular[%d] = %d\n", i, popular[i]);
  fvq = fopen(argv[5], "wt");
  if (fvq == NULL) {
    printf("Error opening VQ file: %s\n", argv[4]);
    exit(1);
  }
  fprintf(fvq, "%d %d\n", k, popular[pop_thresh]);
  for (i = 0; i < ntrain; i++) {
    if (n[i] > pop_thresh) {
      for (j = 0; j < k; j++)
        fprintf(fvq, "%4.1f  ", train[i * k + j]);
      fprintf(fvq, "\n");
    }
  }
  fclose(fvq);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x60(%rbp)
cmpl   $0x6,-0x8(%rbp)
je     11f9 <main+0x49>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe20(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe37(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
jne    123c <main+0x8c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xe17(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10b0 <atol@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1040 <atof@plt>
movss  %xmm0,-0xa4(%rbp)
ff
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   10b0 <atol@plt>
mov    %eax,-0x94(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x94(%rbp),%edx
movss  -0xa4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xddc(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movslq -0x14(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    12cd <main+0x11d>
lea    0xddb(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%edx
mov    -0x40(%rbp),%rcx
mov    $0x4,%esi
call   1030 <fread@plt>
movslq -0x14(%rbp),%rcx
cmp    %rcx,%rax
jne    1304 <main+0x154>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12d4 <main+0x124>
mov    -0x2c(%rbp),%esi
lea    0xd9b(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movslq -0x14(%rbp),%rax
shl    $0x2,%rax
movslq -0x2c(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jne    1353 <main+0x1a3>
lea    0xd55(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
movslq -0x14(%rbp),%rsi
shl    $0x2,%rsi
movslq -0x2c(%rbp),%rax
imul   %rax,%rsi
lea    0xd5d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movslq -0x2c(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    13a7 <main+0x1f7>
lea    0xd01(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    13d7 <main+0x227>
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    13ae <main+0x1fe>
mov    -0x40(%rbp),%rdi
call   1080 <rewind@plt>
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%edx
mov    -0x40(%rbp),%rcx
mov    $0x4,%esi
call   1030 <fread@plt>
movslq -0x14(%rbp),%rcx
cmp    %rcx,%rax
jne    15c8 <main+0x418>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1457 <main+0x2a7>
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xbc4(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1417 <main+0x267>
mov    -0x20(%rbp),%rdi
movss  -0xa4(%rbp),%xmm0
ff
mov    -0x14(%rbp),%esi
call   1050 <locate_lsps_jnd_steps@plt>
mov    -0x48(%rbp),%rax
mov    %rax,-0x50(%rbp)
movl   $0x0,-0x5c(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x54(%rbp),%eax
jge    1525 <main+0x375>
movl   $0x1,-0x58(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    14eb <main+0x33b>
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x34(%rbp),%rcx
ucomiss (%rax,%rcx,4),%xmm0
jne    14d1 <main+0x321>
jp     14d1 <main+0x321>
jmp    14d8 <main+0x328>
movl   $0x0,-0x58(%rbp)
jmp    14dd <main+0x32d>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    149b <main+0x2eb>
cmpl   $0x0,-0x58(%rbp)
je     1502 <main+0x352>
movl   $0x1,-0x5c(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x14(%rbp),%ecx
mov    -0x50(%rbp),%rax
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1481 <main+0x2d1>
cmpl   $0x0,-0x5c(%rbp)
je     1545 <main+0x395>
mov    -0x28(%rbp),%rax
movslq -0x60(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
add    $0x1,%edx
mov    %edx,(%rax,%rcx,4)
jmp    1592 <main+0x3e2>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1589 <main+0x3d9>
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x48(%rbp),%rax
mov    -0x54(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    154c <main+0x39c>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    15c3 <main+0x413>
mov    -0x64(%rbp),%esi
mov    -0x54(%rbp),%edx
lea    0xb27(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    13ee <main+0x23e>
lea    0xad8(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x0,-0x30(%rbp)
cmpl   $0xa,-0x30(%rbp)
jge    1604 <main+0x454>
movslq -0x30(%rbp),%rax
movl   $0x0,-0x90(%rbp,%rax,4)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    15dd <main+0x42d>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x54(%rbp),%eax
jge    1659 <main+0x4a9>
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
cmpl   $0xa,(%rax,%rcx,4)
jge    1646 <main+0x496>
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
movslq (%rax,%rcx,4),%rax
mov    -0x90(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x90(%rbp,%rax,4)
jmp    164b <main+0x49b>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    160b <main+0x45b>
movl   $0x0,-0x30(%rbp)
cmpl   $0xa,-0x30(%rbp)
jge    1694 <main+0x4e4>
mov    -0x30(%rbp),%esi
movslq -0x30(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%edx
lea    0xa90(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1660 <main+0x4b0>
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rdi
lea    0xa7e(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0xa0(%rbp)
cmpq   $0x0,-0xa0(%rbp)
jne    16dd <main+0x52d>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rsi
lea    0xa58(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0xa0(%rbp),%rdi
mov    -0x14(%rbp),%edx
movslq -0x94(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%ecx
lea    0xa43(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x54(%rbp),%eax
jge    17a5 <main+0x5f5>
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x94(%rbp),%eax
jle    1792 <main+0x5e2>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    177d <main+0x5cd>
mov    -0xa0(%rbp),%rdi
mov    -0x48(%rbp),%rax
mov    -0x30(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x9de(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1734 <main+0x584>
mov    -0xa0(%rbp),%rdi
lea    0x91c(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
jmp    1797 <main+0x5e7>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    170a <main+0x55a>
mov    -0xa0(%rbp),%rdi
call   1060 <fclose@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
mov    %rsi,%rbx
cmp    $0x6,%edi
jne    1cc4 <main+0xad4>
mov    0x8(%rbx),%rdi
lea    0xe47(%rip),%rsi
call   1100 <fopen@plt>
test   %rax,%rax
je     1cd0 <main+0xae0>
mov    %rax,0x30(%rsp)
mov    0x10(%rbx),%rdi
call   10f0 <atol@plt>
mov    %eax,%r12d
mov    0x18(%rbx),%rdi
call   1060 <atof@plt>
movss  %xmm0,0x44(%rsp)
mov    %rbx,0xb8(%rsp)
mov    0x20(%rbx),%rdi
call   10f0 <atol@plt>
movss  0x44(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe24(%rip),%rdi
mov    %r12d,%esi
mov    %eax,0x40(%rsp)
mov    %eax,%edx
mov    $0x1,%al
call   1090 <printf@plt>
movslq %r12d,%rax
mov    %rax,0x18(%rsp)
lea    0x0(,%rax,4),%rdi
mov    %rdi,0x38(%rsp)
call   10e0 <malloc@plt>
test   %rax,%rax
je     1cae <main+0xabe>
mov    %rax,%r14
mov    0x38(%rsp),%rbx
neg    %rbx
mov    $0x1,%ebp
mov    $0xfffffffffffffffc,%r15
mov    0x18(%rsp),%r13
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    $0x4,%esi
mov    %r13d,%edx
mov    0x30(%rsp),%rcx
call   1050 <fread@plt>
add    $0xffffffff,%ebp
add    $0x4,%r15
add    0x38(%rsp),%rbx
cmp    %r13,%rax
je     12c0 <main+0xd0>
mov    %ebp,%esi
neg    %esi
lea    0xdc6(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %ebx,%edi
call   10e0 <malloc@plt>
mov    %rax,0x48(%rsp)
test   %rax,%rax
je     1cae <main+0xabe>
lea    0xdc1(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r15d,%edi
call   10e0 <malloc@plt>
test   %rax,%rax
mov    0x18(%rsp),%r13
je     1cae <main+0xabe>
mov    %rax,0x8(%rsp)
test   %ebp,%ebp
je     134c <main+0x15c>
mov    0x8(%rsp),%rdi
xor    %esi,%esi
mov    %r15,%rdx
call   10b0 <memset@plt>
mov    0x30(%rsp),%rbx
mov    %rbx,%rdi
call   10a0 <rewind@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    %r13d,%edx
mov    %rbx,%rcx
call   1050 <fread@plt>
mov    $0x0,%r15d
cmp    %r13,%rax
jne    19dd <main+0x7ed>
mov    %r12d,%ebx
mov    0x48(%rsp),%rax
lea    (%rax,%rbx,4),%rcx
mov    %rcx,0xc8(%rsp)
lea    (%r14,%rbx,4),%rcx
mov    %rcx,0xd8(%rsp)
mov    %r12d,%edx
and    $0xfffffff8,%edx
lea    -0x8(%rdx),%r8
mov    %r8,%rdi
shr    $0x3,%rdi
add    $0x1,%rdi
movabs $0x3ffffffffffffffc,%rcx
ff ff 3f
or     $0x2,%rcx
and    %rdi,%rcx
mov    %rcx,0x50(%rsp)
mov    %edi,%ebp
and    $0x3,%ebp
mov    %rdi,%rcx
mov    %rdi,0x10(%rsp)
and    $0xfffffffffffffffc,%rdi
mov    %rdi,0xa0(%rsp)
mov    %r12d,%edi
and    $0x3,%edi
lea    0x70(%rax),%rcx
mov    %rcx,0x98(%rsp)
lea    0x10(%rax),%rcx
mov    %rcx,0xb0(%rsp)
mov    %r14,%rcx
add    $0x10,%rcx
mov    %rcx,0xa8(%rsp)
mov    %rbp,0xc0(%rsp)
mov    %rbp,%rsi
shl    $0x5,%rsi
add    $0xc,%rax
mov    %rax,0xd0(%rsp)
movsd  0xbf1(%rip),%xmm4
movapd 0xbc9(%rip),%xmm5
xor    %ebp,%ebp
movl   $0x0,0x4(%rsp)
xor    %r13d,%r13d
xor    %r15d,%r15d
mov    %rdx,0x28(%rsp)
mov    %r8,0x20(%rsp)
mov    %rdi,0xe0(%rsp)
mov    %rsi,0x90(%rsp)
jmp    14aa <main+0x2ba>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r14,%rdi
mov    $0x4,%esi
mov    %r12d,%edx
mov    0x30(%rsp),%rcx
call   1050 <fread@plt>
cmp    0x18(%rsp),%rax
mov    0x28(%rsp),%rdx
mov    0x20(%rsp),%r8
movsd  0xb84(%rip),%xmm4
movapd 0xb5c(%rip),%xmm5
jne    19dd <main+0x7ed>
test   %r12d,%r12d
jle    1601 <main+0x411>
cmp    $0x8,%r12d
jae    14c0 <main+0x2d0>
xor    %eax,%eax
jmp    15e0 <main+0x3f0>
test   %r8,%r8
je     1890 <main+0x6a0>
mov    0x50(%rsp),%rcx
xor    %eax,%eax
cvtps2pd 0x8(%r14,%rax,4),%xmm0
cvtps2pd (%r14,%rax,4),%xmm1
cvtps2pd 0x18(%r14,%rax,4),%xmm2
cvtps2pd 0x10(%r14,%rax,4),%xmm3
mulpd  %xmm5,%xmm1
mulpd  %xmm5,%xmm0
mulpd  %xmm5,%xmm3
mulpd  %xmm5,%xmm2
cvtpd2ps %xmm0,%xmm0
cvtpd2ps %xmm1,%xmm1
cvtpd2ps %xmm2,%xmm2
unpcklpd %xmm0,%xmm1
cvtpd2ps %xmm3,%xmm0
unpcklpd %xmm2,%xmm0
movupd %xmm1,(%r14,%rax,4)
movupd %xmm0,0x10(%r14,%rax,4)
cvtps2pd 0x28(%r14,%rax,4),%xmm0
cvtps2pd 0x20(%r14,%rax,4),%xmm1
cvtps2pd 0x38(%r14,%rax,4),%xmm2
cvtps2pd 0x30(%r14,%rax,4),%xmm3
mulpd  %xmm5,%xmm1
mulpd  %xmm5,%xmm0
mulpd  %xmm5,%xmm3
mulpd  %xmm5,%xmm2
cvtpd2ps %xmm0,%xmm0
cvtpd2ps %xmm1,%xmm1
cvtpd2ps %xmm2,%xmm2
unpcklpd %xmm0,%xmm1
cvtpd2ps %xmm3,%xmm0
unpcklpd %xmm2,%xmm0
movupd %xmm1,0x20(%r14,%rax,4)
movupd %xmm0,0x30(%r14,%rax,4)
add    $0x10,%rax
add    $0xfffffffffffffffe,%rcx
jne    14d0 <main+0x2e0>
testb  $0x1,0x10(%rsp)
je     15cb <main+0x3db>
cvtps2pd 0x8(%r14,%rax,4),%xmm0
cvtps2pd (%r14,%rax,4),%xmm1
cvtps2pd 0x18(%r14,%rax,4),%xmm2
cvtps2pd 0x10(%r14,%rax,4),%xmm3
mulpd  %xmm5,%xmm1
mulpd  %xmm5,%xmm0
mulpd  %xmm5,%xmm3
mulpd  %xmm5,%xmm2
cvtpd2ps %xmm0,%xmm0
cvtpd2ps %xmm1,%xmm1
cvtpd2ps %xmm2,%xmm2
cvtpd2ps %xmm3,%xmm3
unpcklpd %xmm0,%xmm1
unpcklpd %xmm2,%xmm3
movupd %xmm1,(%r14,%rax,4)
movupd %xmm3,0x10(%r14,%rax,4)
mov    %rdx,%rax
cmp    %rbx,%rdx
je     1601 <main+0x411>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movss  (%r14,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  %xmm4,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%r14,%rax,4)
add    $0x1,%rax
cmp    %rax,%rbx
jne    15e0 <main+0x3f0>
mov    %r14,%rdi
movss  0x44(%rsp),%xmm0
mov    %r12d,%esi
call   1070 <locate_lsps_jnd_steps@plt>
test   %r15d,%r15d
jle    17b0 <main+0x5c0>
xor    %eax,%eax
mov    0x48(%rsp),%r9
mov    %r9,%rcx
xor    %edx,%edx
mov    0x38(%rsp),%r8
mov    0x28(%rsp),%r10
mov    0x20(%rsp),%r11
movaps 0x9d2(%rip),%xmm8
jmp    1662 <main+0x472>
mov    $0x1,%esi
test   %esi,%esi
mov    $0x1,%esi
cmovne %esi,%edx
cmovne %eax,%r13d
add    %r8,%rcx
add    $0x1,%eax
cmp    %r15d,%eax
je     1790 <main+0x5a0>
test   %r12d,%r12d
jle    1640 <main+0x450>
cmp    $0x8,%r12d
jae    1680 <main+0x490>
mov    $0x1,%esi
xor    %edi,%edi
jmp    1750 <main+0x560>
nopl   0x0(%rax)
test   %r11,%r11
je     176e <main+0x57e>
mov    0x50(%rsp),%rdi
xor    %esi,%esi
movaps %xmm8,%xmm3
movaps %xmm8,%xmm2
nopl   0x0(%rax,%rax,1)
movups (%r14,%rsi,4),%xmm0
movups 0x10(%r14,%rsi,4),%xmm1
movups 0x20(%r14,%rsi,4),%xmm4
movups 0x30(%r14,%rsi,4),%xmm5
movups (%rcx,%rsi,4),%xmm6
cmpneqps %xmm0,%xmm6
movups 0x10(%rcx,%rsi,4),%xmm7
cmpneqps %xmm1,%xmm7
movups 0x20(%rcx,%rsi,4),%xmm0
cmpneqps %xmm4,%xmm0
orps   %xmm6,%xmm0
andnps %xmm3,%xmm0
movups 0x30(%rcx,%rsi,4),%xmm1
cmpneqps %xmm5,%xmm1
orps   %xmm7,%xmm1
andnps %xmm2,%xmm1
add    $0x10,%rsi
movaps %xmm0,%xmm3
movaps %xmm1,%xmm2
add    $0xfffffffffffffffe,%rdi
jne    16a0 <main+0x4b0>
testb  $0x1,0x10(%rsp)
je     171f <main+0x52f>
movups (%r14,%rsi,4),%xmm2
movups 0x10(%r14,%rsi,4),%xmm3
movups (%rcx,%rsi,4),%xmm4
cmpeqps %xmm2,%xmm4
andps  %xmm4,%xmm0
movups 0x10(%rcx,%rsi,4),%xmm2
cmpeqps %xmm3,%xmm2
andps  %xmm2,%xmm1
movaps %xmm0,%xmm2
pcmpeqd %xmm8,%xmm2
andps  %xmm2,%xmm1
andnps %xmm0,%xmm2
orps   %xmm1,%xmm2
pcmpeqd %xmm8,%xmm2
movmskps %xmm2,%edi
xor    %esi,%esi
cmp    $0xf,%edi
sete   %sil
mov    %r10,%rdi
cmp    %rbx,%r10
je     1645 <main+0x455>
nopl   (%rax)
movss  (%r14,%rdi,4),%xmm0
ucomiss (%rcx,%rdi,4),%xmm0
cmovne %ebp,%esi
cmovp  %ebp,%esi
add    $0x1,%rdi
cmp    %rdi,%rbx
jne    1750 <main+0x560>
jmp    1645 <main+0x455>
xor    %esi,%esi
movaps %xmm8,%xmm0
movaps %xmm8,%xmm1
testb  $0x1,0x10(%rsp)
jne    16fd <main+0x50d>
jmp    171f <main+0x52f>
cs nopw 0x0(%rax,%rax,1)
nop
test   %edx,%edx
je     17bf <main+0x5cf>
movslq %r13d,%rax
mov    0x8(%rsp),%rcx
addl   $0x1,(%rcx,%rax,4)
jmp    19a4 <main+0x7b4>
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x48(%rsp),%r9
mov    0x28(%rsp),%r10
mov    0x20(%rsp),%r11
test   %r12d,%r12d
jle    19a0 <main+0x7b0>
mov    %r15d,%eax
imul   %r12d,%eax
cltq
cmp    $0x8,%r12d
jb     17fe <main+0x60e>
lea    (%r9,%rax,4),%rcx
cmp    0xd8(%rsp),%rcx
jae    18a2 <main+0x6b2>
mov    0xc8(%rsp),%rcx
lea    (%rcx,%rax,4),%rcx
cmp    %rcx,%r14
jae    18a2 <main+0x6b2>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
add    %rbx,%rdx
mov    0xe0(%rsp),%rdi
test   %rdi,%rdi
je     1835 <main+0x645>
lea    (%r9,%rax,4),%rsi
nopw   0x0(%rax,%rax,1)
movss  (%r14,%rcx,4),%xmm0
movss  %xmm0,(%rsi,%rcx,4)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rdi
jne    1820 <main+0x630>
cmp    $0x3,%rdx
jb     19a0 <main+0x7b0>
mov    0xd0(%rsp),%rdx
lea    (%rdx,%rax,4),%rax
nopl   0x0(%rax,%rax,1)
movss  (%r14,%rcx,4),%xmm0
movss  %xmm0,-0xc(%rax,%rcx,4)
movss  0x4(%r14,%rcx,4),%xmm0
movss  %xmm0,-0x8(%rax,%rcx,4)
movss  0x8(%r14,%rcx,4),%xmm0
movss  %xmm0,-0x4(%rax,%rcx,4)
movss  0xc(%r14,%rcx,4),%xmm0
movss  %xmm0,(%rax,%rcx,4)
add    $0x4,%rcx
cmp    %rcx,%rbx
jne    1850 <main+0x660>
jmp    19a0 <main+0x7b0>
xor    %eax,%eax
testb  $0x1,0x10(%rsp)
jne    157f <main+0x38f>
jmp    15cb <main+0x3db>
cmp    $0x18,%r11
jae    18b7 <main+0x6c7>
xor    %ecx,%ecx
mov    0x90(%rsp),%rdi
jmp    1942 <main+0x752>
mov    0x98(%rsp),%rcx
lea    (%rcx,%rax,4),%rdx
mov    0xa0(%rsp),%rsi
xor    %ecx,%ecx
mov    0x90(%rsp),%rdi
cs nopw 0x0(%rax,%rax,1)
nop
movups (%r14,%rcx,4),%xmm0
movups 0x10(%r14,%rcx,4),%xmm1
movups %xmm0,-0x70(%rdx,%rcx,4)
movups %xmm1,-0x60(%rdx,%rcx,4)
movups 0x20(%r14,%rcx,4),%xmm0
movups 0x30(%r14,%rcx,4),%xmm1
movups %xmm0,-0x50(%rdx,%rcx,4)
movups %xmm1,-0x40(%rdx,%rcx,4)
movups 0x40(%r14,%rcx,4),%xmm0
movups 0x50(%r14,%rcx,4),%xmm1
movups %xmm0,-0x30(%rdx,%rcx,4)
movups %xmm1,-0x20(%rdx,%rcx,4)
movups 0x60(%r14,%rcx,4),%xmm0
movupd 0x70(%r14,%rcx,4),%xmm1
movups %xmm0,-0x10(%rdx,%rcx,4)
movupd %xmm1,(%rdx,%rcx,4)
add    $0x20,%rcx
add    $0xfffffffffffffffc,%rsi
jne    18e0 <main+0x6f0>
cmpq   $0x0,0xc0(%rsp)
je     198d <main+0x79d>
lea    (%rcx,%rax,1),%rdx
mov    0xb0(%rsp),%rsi
lea    (%rsi,%rdx,4),%rdx
mov    0xa8(%rsp),%rsi
lea    (%rsi,%rcx,4),%rcx
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
movups -0x10(%rcx,%rsi,1),%xmm0
movupd (%rcx,%rsi,1),%xmm1
movups %xmm0,-0x10(%rdx,%rsi,1)
movupd %xmm1,(%rdx,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%rdi
jne    1970 <main+0x780>
mov    %r10,%rcx
cmp    %rbx,%r10
jne    1800 <main+0x610>
nopl   0x0(%rax)
add    $0x1,%r15d
mov    0x4(%rsp),%eax
add    $0x1,%eax
mov    %eax,0x4(%rsp)
imul   $0xc28f5c29,%eax,%eax
ror    $0x2,%eax
cmp    $0x28f5c28,%eax
ja     1470 <main+0x280>
lea    0x727(%rip),%rdi
mov    0x4(%rsp),%esi
mov    %r15d,%edx
xor    %eax,%eax
call   1090 <printf@plt>
jmp    1470 <main+0x280>
mov    $0xa,%edi
call   1030 <putchar@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x70(%rsp)
movq   $0x0,0x80(%rsp)
mov    %r15d,%eax
mov    %rax,0x10(%rsp)
mov    $0x0,%ebp
mov    $0x0,%ecx
mov    $0x0,%esi
mov    $0x0,%edi
mov    $0x0,%ebx
mov    $0x0,%r8d
mov    $0x0,%r9d
mov    $0x0,%r13d
mov    $0x0,%edx
test   %r15d,%r15d
mov    $0x0,%eax
jle    1a9a <main+0x8aa>
cmp    $0x1,%r15d
jne    1c6e <main+0xa7e>
xor    %eax,%eax
mov    0x8(%rsp),%rsi
testb  $0x1,0x10(%rsp)
je     1a69 <main+0x879>
movslq (%rsi,%rax,4),%rax
cmp    $0x9,%rax
jg     1a69 <main+0x879>
addl   $0x1,0x60(%rsp,%rax,4)
mov    0x60(%rsp),%edx
mov    0x64(%rsp),%r13d
mov    0x68(%rsp),%r9d
mov    0x6c(%rsp),%r8d
mov    0x70(%rsp),%ebx
mov    0x74(%rsp),%edi
mov    0x78(%rsp),%esi
mov    0x7c(%rsp),%ecx
mov    0x80(%rsp),%ebp
mov    0x84(%rsp),%eax
mov    %ebx,0x18(%rsp)
mov    %edi,0x20(%rsp)
mov    %esi,0x28(%rsp)
mov    %ecx,0x4(%rsp)
mov    %ebp,0x30(%rsp)
mov    %eax,0x50(%rsp)
lea    0x664(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
xor    %eax,%eax
mov    %r8d,%ebx
mov    %r9d,%ebp
call   1090 <printf@plt>
mov    %r14,%rdi
mov    $0x1,%esi
mov    %r13d,%edx
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r14,%rdi
mov    $0x2,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r14,%rdi
mov    $0x3,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    0x18(%rsp),%edx
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r14,%rdi
mov    $0x5,%esi
mov    0x20(%rsp),%edx
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r14,%rdi
mov    $0x6,%esi
mov    0x28(%rsp),%edx
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r14,%rdi
mov    $0x7,%esi
mov    0x4(%rsp),%edx
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r14,%rdi
mov    $0x8,%esi
mov    0x30(%rsp),%edx
xor    %eax,%eax
call   1090 <printf@plt>
mov    %r14,%rdi
mov    $0x9,%esi
mov    0x50(%rsp),%edx
xor    %eax,%eax
call   1090 <printf@plt>
mov    0xb8(%rsp),%rbx
mov    0x28(%rbx),%rdi
lea    0x5ab(%rip),%rsi
call   1100 <fopen@plt>
test   %rax,%rax
je     1cdd <main+0xaed>
mov    %rax,%r13
mov    0x40(%rsp),%ebp
movslq %ebp,%rax
mov    0x60(%rsp,%rax,4),%ecx
lea    0x5a6(%rip),%rsi
mov    %r13,%rdi
mov    %r12d,%edx
xor    %eax,%eax
call   10d0 <fprintf@plt>
test   %r15d,%r15d
mov    0x38(%rsp),%rax
mov    0x48(%rsp),%rcx
mov    0x8(%rsp),%rdx
jle    1c52 <main+0xa62>
mov    %r12d,%ebx
xor    %r15d,%r15d
lea    0x57b(%rip),%r14
mov    %r12d,0x5c(%rsp)
jmp    1c11 <main+0xa21>
mov    $0xa,%edi
mov    %r13,%rsi
call   10c0 <fputc@plt>
mov    0x40(%rsp),%ebp
mov    0x38(%rsp),%rax
mov    %r12,%rcx
mov    0x5c(%rsp),%r12d
mov    0x8(%rsp),%rdx
add    $0x1,%r15
add    %rax,%rcx
cmp    0x10(%rsp),%r15
je     1c52 <main+0xa62>
cmp    %ebp,(%rdx,%r15,4)
jle    1c03 <main+0xa13>
test   %r12d,%r12d
mov    %rcx,%r12
jle    1be0 <main+0x9f0>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movss  (%r12,%rbp,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    %r14,%rsi
mov    $0x1,%al
call   10d0 <fprintf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1c30 <main+0xa40>
jmp    1be0 <main+0x9f0>
mov    %r13,%rdi
call   1080 <fclose@plt>
xor    %eax,%eax
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x10(%rsp),%rcx
and    $0xfffffffe,%ecx
xor    %eax,%eax
mov    0x8(%rsp),%rsi
jmp    1c8d <main+0xa9d>
nop
add    $0x2,%rax
cmp    %rax,%rcx
je     1a53 <main+0x863>
movslq (%rsi,%rax,4),%rdx
cmp    $0x9,%rdx
jg     1c9c <main+0xaac>
addl   $0x1,0x60(%rsp,%rdx,4)
movslq 0x4(%rsi,%rax,4),%rdx
cmp    $0x9,%rdx
jg     1c80 <main+0xa90>
addl   $0x1,0x60(%rsp,%rdx,4)
jmp    1c80 <main+0xa90>
lea    0x4a7(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1110 <exit@plt>
mov    (%rbx),%rsi
lea    0x35a(%rip),%rdi
jmp    1ce8 <main+0xaf8>
mov    0x8(%rbx),%rsi
lea    0x387(%rip),%rdi
jmp    1ce8 <main+0xaf8>
mov    0x20(%rbx),%rsi
lea    0x44a(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    $0x1,%edi
call   1110 <exit@plt>

LLVM IR (-O0):
@.str = [55 x i8] c"usage: %s TrainFile K(dimension) JND popThresh VQFile\0A\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [42 x i8] c"Error opening training database file: %s\0A\00"
@.str.3 = [43 x i8] c"dimension K=%d popThresh=%d JND=%3.1f Hz\0A\00"
@.str.4 = [18 x i8] c"Error in malloc.\0A\00"
@.str.5 = [30 x i8] c"J=%d entries in training set\0A\00"
@.str.6 = [28 x i8] c"training array is %d bytes\0A\00"
@.str.7 = [44 x i8] c"\0Dtrain input vectors: %d unique vectors: %d\00"
@.str.8 = [2 x i8] c"\0A\00"
@.str.9 = [18 x i8] c"popular[%d] = %d\0A\00"
@.str.10 = [3 x i8] c"wt\00"
@.str.11 = [27 x i8] c"Error opening VQ file: %s\0A\00"
@.str.12 = [7 x i8] c"%d %d\0A\00"
@.str.13 = [8 x i8] c"%4.1f \00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca float*
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32*
%13 = alloca float*
%14 = alloca float*
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca [10 x i32]
%21 = alloca i32
%22 = alloca i32*
%23 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %18
%24 = load i32, i32* %4
%25 = icmp ne i32 %24, 6
br i1 %25, label %26, label %32
26: ; preds = %2
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 0
%29 = load i8*, i8** %28
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i8* %29)
%31 = call i32 @exit(i32 1)
unreachable
32: ; preds = %2
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 1
%35 = load i8*, i8** %34
%36 = call i32* @fopen(i8* %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %36, i32** %12
%37 = load i32*, i32** %12
%38 = icmp eq i32* %37, null
br i1 %38, label %39, label %45
39: ; preds = %32
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i64 1
%42 = load i8*, i8** %41
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* %42)
%44 = call i32 @exit(i32 1)
unreachable
45: ; preds = %32
%46 = load i8**, i8*** %5
%47 = getelementptr inbounds i8*, i8** %46, i64 2
%48 = load i8*, i8** %47
%49 = call i32 @atol(i8* %48)
store i32 %49, i32* %6
%50 = load i8**, i8*** %5
%51 = getelementptr inbounds i8*, i8** %50, i64 3
%52 = load i8*, i8** %51
%53 = call float @atof(i8* %52)
store float %53, float* %23
%54 = load i8**, i8*** %5
%55 = getelementptr inbounds i8*, i8** %54, i64 4
%56 = load i8*, i8** %55
%57 = call i32 @atol(i8* %56)
store i32 %57, i32* %21
%58 = load i32, i32* %6
%59 = load i32, i32* %21
%60 = load float, float* %23
%61 = fpext float %60 to double
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0), i32 %58, i32 %59, double %61)
%63 = load i32, i32* %6
%64 = sext i32 %63 to i64
%65 = mul i64 4, %64
%66 = trunc i64 %65 to i32
%67 = call i64 @malloc(i32 %66)
%68 = inttoptr i64 %67 to float*
store float* %68, float** %7
%69 = load float*, float** %7
%70 = icmp eq float* %69, null
br i1 %70, label %71, label %74
71: ; preds = %45
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%73 = call i32 @exit(i32 1)
unreachable
74: ; preds = %45
store i32 0, i32* %9
br label %75
75: ; preds = %83, %74
%76 = load float*, float** %7
%77 = load i32, i32* %6
%78 = load i32*, i32** %12
%79 = call i64 @fread(float* %76, i32 4, i32 %77, i32* %78)
%80 = load i32, i32* %6
%81 = sext i32 %80 to i64
%82 = icmp eq i64 %79, %81
br i1 %82, label %83, label %86
83: ; preds = %75
%84 = load i32, i32* %9
%85 = add nsw i32 %84, 1
store i32 %85, i32* %9
br label %75
86: ; preds = %75
%87 = load i32, i32* %9
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %87)
%89 = load i32, i32* %6
%90 = sext i32 %89 to i64
%91 = mul i64 4, %90
%92 = load i32, i32* %9
%93 = sext i32 %92 to i64
%94 = mul i64 %91, %93
%95 = trunc i64 %94 to i32
%96 = call i64 @malloc(i32 %95)
%97 = inttoptr i64 %96 to float*
store float* %97, float** %13
%98 = load float*, float** %13
%99 = icmp eq float* %98, null
br i1 %99, label %100, label %103
100: ; preds = %86
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%102 = call i32 @exit(i32 1)
unreachable
103: ; preds = %86
%104 = load i32, i32* %6
%105 = sext i32 %104 to i64
%106 = mul i64 4, %105
%107 = load i32, i32* %9
%108 = sext i32 %107 to i64
%109 = mul i64 %106, %108
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i64 %109)
%111 = load i32, i32* %9
%112 = sext i32 %111 to i64
%113 = mul i64 4, %112
%114 = trunc i64 %113 to i32
%115 = call i64 @malloc(i32 %114)
%116 = inttoptr i64 %115 to i32*
store i32* %116, i32** %8
%117 = load i32*, i32** %8
%118 = icmp eq i32* %117, null
br i1 %118, label %119, label %122
119: ; preds = %103
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%121 = call i32 @exit(i32 1)
unreachable
122: ; preds = %103
store i32 0, i32* %10
br label %123
123: ; preds = %132, %122
%124 = load i32, i32* %10
%125 = load i32, i32* %9
%126 = icmp slt i32 %124, %125
br i1 %126, label %127, label %135
127: ; preds = %123
%128 = load i32*, i32** %8
%129 = load i32, i32* %10
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i32, i32* %128, i64 %130
store i32 0, i32* %131
br label %132
132: ; preds = %127
%133 = load i32, i32* %10
%134 = add nsw i32 %133, 1
store i32 %134, i32* %10
br label %123
135: ; preds = %123
%136 = load i32*, i32** %12
%137 = call i32 @rewind(i32* %136)
store i32 0, i32* %15
store i32 0, i32* %19
br label %138
138: ; preds = %253, %135
%139 = load float*, float** %7
%140 = load i32, i32* %6
%141 = load i32*, i32** %12
%142 = call i64 @fread(float* %139, i32 4, i32 %140, i32* %141)
%143 = load i32, i32* %6
%144 = sext i32 %143 to i64
%145 = icmp eq i64 %142, %144
br i1 %145, label %146, label %254
146: ; preds = %138
store i32 0, i32* %11
br label %147
147: ; preds = %160, %146
%148 = load i32, i32* %11
%149 = load i32, i32* %6
%150 = icmp slt i32 %148, %149
br i1 %150, label %151, label %163
151: ; preds = %147
%152 = load float*, float** %7
%153 = load i32, i32* %11
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds float, float* %152, i64 %154
%156 = load float, float* %155
%157 = fpext float %156 to double
%158 = fmul double %157, 0x4093E4F54B2BE5A6
%159 = fptrunc double %158 to float
store float %159, float* %155
br label %160
160: ; preds = %151
%161 = load i32, i32* %11
%162 = add nsw i32 %161, 1
store i32 %162, i32* %11
br label %147
163: ; preds = %147
%164 = load float*, float** %7
%165 = load float, float* %23
%166 = load i32, i32* %6
%167 = call i32 @locate_lsps_jnd_steps(float* %164, float %165, i32 %166)
%168 = load float*, float** %13
store float* %168, float** %14
store i32 0, i32* %17
store i32 0, i32* %10
br label %169
169: ; preds = %205, %163
%170 = load i32, i32* %10
%171 = load i32, i32* %15
%172 = icmp slt i32 %170, %171
br i1 %172, label %173, label %208
173: ; preds = %169
store i32 1, i32* %16
store i32 0, i32* %11
br label %174
174: ; preds = %192, %173
%175 = load i32, i32* %11
%176 = load i32, i32* %6
%177 = icmp slt i32 %175, %176
br i1 %177, label %178, label %195
178: ; preds = %174
%179 = load float*, float** %7
%180 = load i32, i32* %11
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds float, float* %179, i64 %181
%183 = load float, float* %182
%184 = load float*, float** %14
%185 = load i32, i32* %11
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds float, float* %184, i64 %186
%188 = load float, float* %187
%189 = fcmp une float %183, %188
br i1 %189, label %190, label %191
190: ; preds = %178
store i32 0, i32* %16
br label %191
191: ; preds = %190, %178
br label %192
192: ; preds = %191
%193 = load i32, i32* %11
%194 = add nsw i32 %193, 1
store i32 %194, i32* %11
br label %174
195: ; preds = %174
%196 = load i32, i32* %16
%197 = icmp ne i32 %196, 0
br i1 %197, label %198, label %200
198: ; preds = %195
store i32 1, i32* %17
%199 = load i32, i32* %10
store i32 %199, i32* %18
br label %200
200: ; preds = %198, %195
%201 = load i32, i32* %6
%202 = load float*, float** %14
%203 = sext i32 %201 to i64
%204 = getelementptr inbounds float, float* %202, i64 %203
store float* %204, float** %14
br label %205
205: ; preds = %200
%206 = load i32, i32* %10
%207 = add nsw i32 %206, 1
store i32 %207, i32* %10
br label %169
208: ; preds = %169
%209 = load i32, i32* %17
%210 = icmp ne i32 %209, 0
br i1 %210, label %211, label %218
211: ; preds = %208
%212 = load i32*, i32** %8
%213 = load i32, i32* %18
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds i32, i32* %212, i64 %214
%216 = load i32, i32* %215
%217 = add nsw i32 %216, 1
store i32 %217, i32* %215
br label %243
218: ; preds = %208
store i32 0, i32* %11
br label %219
219: ; preds = %237, %218
%220 = load i32, i32* %11
%221 = load i32, i32* %6
%222 = icmp slt i32 %220, %221
br i1 %222, label %223, label %240
223: ; preds = %219
%224 = load float*, float** %7
%225 = load i32, i32* %11
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds float, float* %224, i64 %226
%228 = load float, float* %227
%229 = load float*, float** %13
%230 = load i32, i32* %15
%231 = load i32, i32* %6
%232 = mul nsw i32 %230, %231
%233 = load i32, i32* %11
%234 = add nsw i32 %232, %233
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds float, float* %229, i64 %235
store float %228, float* %236
br label %237
237: ; preds = %223
%238 = load i32, i32* %11
%239 = add nsw i32 %238, 1
store i32 %239, i32* %11
br label %219
240: ; preds = %219
%241 = load i32, i32* %15
%242 = add nsw i32 %241, 1
store i32 %242, i32* %15
br label %243
243: ; preds = %240, %211
%244 = load i32, i32* %19
%245 = add nsw i32 %244, 1
store i32 %245, i32* %19
%246 = load i32, i32* %19
%247 = srem i32 %246, 100
%248 = icmp eq i32 %247, 0
br i1 %248, label %249, label %253
249: ; preds = %243
%250 = load i32, i32* %19
%251 = load i32, i32* %15
%252 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0), i32 %250, i32 %251)
br label %253
253: ; preds = %249, %243
br label %138
254: ; preds = %138
%255 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %10
br label %256
256: ; preds = %263, %254
%257 = load i32, i32* %10
%258 = icmp slt i32 %257, 10
br i1 %258, label %259, label %266
259: ; preds = %256
%260 = load i32, i32* %10
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds [10 x i32], [10 x i32]* %20, i64 0, i64 %261
store i32 0, i32* %262
br label %263
263: ; preds = %259
%264 = load i32, i32* %10
%265 = add nsw i32 %264, 1
store i32 %265, i32* %10
br label %256
266: ; preds = %256
store i32 0, i32* %10
br label %267
267: ; preds = %289, %266
%268 = load i32, i32* %10
%269 = load i32, i32* %15
%270 = icmp slt i32 %268, %269
br i1 %270, label %271, label %292
271: ; preds = %267
%272 = load i32*, i32** %8
%273 = load i32, i32* %10
%274 = sext i32 %273 to i64
%275 = getelementptr inbounds i32, i32* %272, i64 %274
%276 = load i32, i32* %275
%277 = icmp slt i32 %276, 10
br i1 %277, label %278, label %288
278: ; preds = %271
%279 = load i32*, i32** %8
%280 = load i32, i32* %10
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds i32, i32* %279, i64 %281
%283 = load i32, i32* %282
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds [10 x i32], [10 x i32]* %20, i64 0, i64 %284
%286 = load i32, i32* %285
%287 = add nsw i32 %286, 1
store i32 %287, i32* %285
br label %288
288: ; preds = %278, %271
br label %289
289: ; preds = %288
%290 = load i32, i32* %10
%291 = add nsw i32 %290, 1
store i32 %291, i32* %10
br label %267
292: ; preds = %267
store i32 0, i32* %10
br label %293
293: ; preds = %303, %292
%294 = load i32, i32* %10
%295 = icmp slt i32 %294, 10
br i1 %295, label %296, label %306
296: ; preds = %293
%297 = load i32, i32* %10
%298 = load i32, i32* %10
%299 = sext i32 %298 to i64
%300 = getelementptr inbounds [10 x i32], [10 x i32]* %20, i64 0, i64 %299
%301 = load i32, i32* %300
%302 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 %297, i32 %301)
br label %303
303: ; preds = %296
%304 = load i32, i32* %10
%305 = add nsw i32 %304, 1
store i32 %305, i32* %10
br label %293
306: ; preds = %293
%307 = load i8**, i8*** %5
%308 = getelementptr inbounds i8*, i8** %307, i64 5
%309 = load i8*, i8** %308
%310 = call i32* @fopen(i8* %309, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
store i32* %310, i32** %22
%311 = load i32*, i32** %22
%312 = icmp eq i32* %311, null
br i1 %312, label %313, label %319
313: ; preds = %306
%314 = load i8**, i8*** %5
%315 = getelementptr inbounds i8*, i8** %314, i64 4
%316 = load i8*, i8** %315
%317 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i8* %316)
%318 = call i32 @exit(i32 1)
unreachable
319: ; preds = %306
%320 = load i32*, i32** %22
%321 = load i32, i32* %6
%322 = load i32, i32* %21
%323 = sext i32 %322 to i64
%324 = getelementptr inbounds [10 x i32], [10 x i32]* %20, i64 0, i64 %323
%325 = load i32, i32* %324
%326 = call i32 (i32*, i8*, ...) @fprintf(i32* %320, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i32 %321, i32 %325)
store i32 0, i32* %10
br label %327
327: ; preds = %364, %319
%328 = load i32, i32* %10
%329 = load i32, i32* %15
%330 = icmp slt i32 %328, %329
br i1 %330, label %331, label %367
331: ; preds = %327
%332 = load i32*, i32** %8
%333 = load i32, i32* %10
%334 = sext i32 %333 to i64
%335 = getelementptr inbounds i32, i32* %332, i64 %334
%336 = load i32, i32* %335
%337 = load i32, i32* %21
%338 = icmp sgt i32 %336, %337
br i1 %338, label %339, label %363
339: ; preds = %331
store i32 0, i32* %11
br label %340
340: ; preds = %357, %339
%341 = load i32, i32* %11
%342 = load i32, i32* %6
%343 = icmp slt i32 %341, %342
br i1 %343, label %344, label %360
344: ; preds = %340
%345 = load i32*, i32** %22
%346 = load float*, float** %13
%347 = load i32, i32* %10
%348 = load i32, i32* %6
%349 = mul nsw i32 %347, %348
%350 = load i32, i32* %11
%351 = add nsw i32 %349, %350
%352 = sext i32 %351 to i64
%353 = getelementptr inbounds float, float* %346, i64 %352
%354 = load float, float* %353
%355 = fpext float %354 to double
%356 = call i32 (i32*, i8*, ...) @fprintf(i32* %345, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), double %355)
br label %357
357: ; preds = %344
%358 = load i32, i32* %11
%359 = add nsw i32 %358, 1
store i32 %359, i32* %11
br label %340
360: ; preds = %340
%361 = load i32*, i32** %22
%362 = call i32 (i32*, i8*, ...) @fprintf(i32* %361, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %363
363: ; preds = %360, %331
br label %364
364: ; preds = %363
%365 = load i32, i32* %10
%366 = add nsw i32 %365, 1
store i32 %366, i32* %10
br label %327
367: ; preds = %327
%368 = load i32*, i32** %22
%369 = call i32 @fclose(i32* %368)
ret i32 0
}

LLVM IR (-O2):
@.str = [55 x i8] c"usage: %s TrainFile K(dimension) JND popThresh VQFile\0A\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [42 x i8] c"Error opening training database file: %s\0A\00"
@.str.3 = [43 x i8] c"dimension K=%d popThresh=%d JND=%3.1f Hz\0A\00"
@.str.5 = [30 x i8] c"J=%d entries in training set\0A\00"
@.str.6 = [28 x i8] c"training array is %d bytes\0A\00"
@.str.7 = [44 x i8] c"\0Dtrain input vectors: %d unique vectors: %d\00"
@.str.9 = [18 x i8] c"popular[%d] = %d\0A\00"
@.str.10 = [3 x i8] c"wt\00"
@.str.11 = [27 x i8] c"Error opening VQ file: %s\0A\00"
@.str.12 = [7 x i8] c"%d %d\0A\00"
@.str.13 = [8 x i8] c"%4.1f \00"
@str.15 = [17 x i8] c"Error in malloc.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [10 x i32]
%4 = bitcast [10 x i32]* %3 to i8*
%5 = icmp eq i32 %0, 6
br i1 %5, label %10, label %6
6: ; preds = %2
%7 = load i8*, i8** %1
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = tail call i32 @exit(i32 1)
unreachable
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = tail call i32* @fopen(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%14 = icmp eq i32* %13, null
br i1 %14, label %15, label %19
15: ; preds = %10
%16 = load i8*, i8** %11
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* %16)
%18 = tail call i32 @exit(i32 1)
unreachable
19: ; preds = %10
%20 = getelementptr inbounds i8*, i8** %1, i64 2
%21 = load i8*, i8** %20
%22 = tail call i32 @atol(i8* %21)
%23 = getelementptr inbounds i8*, i8** %1, i64 3
%24 = load i8*, i8** %23
%25 = tail call float @atof(i8* %24)
%26 = getelementptr inbounds i8*, i8** %1, i64 4
%27 = load i8*, i8** %26
%28 = tail call i32 @atol(i8* %27)
%29 = fpext float %25 to double
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0), i32 %22, i32 %28, double %29)
%31 = sext i32 %22 to i64
%32 = shl nsw i64 %31, 2
%33 = trunc i64 %32 to i32
%34 = tail call i64 @malloc(i32 %33)
%35 = inttoptr i64 %34 to float*
%36 = inttoptr i64 %34 to i8*
%37 = icmp eq i64 %34, 0
br i1 %37, label %38, label %41
38: ; preds = %19
%39 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.15, i64 0, i64 0))
%40 = tail call i32 @exit(i32 1)
unreachable
41: ; preds = %19, %41
%42 = phi i32 [ %45, %41 ], [ 0, %19 ]
%43 = tail call i64 @fread(float* %35, i32 4, i32 %22, i32* %13)
%44 = icmp eq i64 %43, %31
%45 = add nuw nsw i32 %42, 1
br i1 %44, label %41, label %46
46: ; preds = %41
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %42)
%48 = zext i32 %42 to i64
%49 = mul i64 %32, %48
%50 = trunc i64 %49 to i32
%51 = tail call i64 @malloc(i32 %50)
%52 = inttoptr i64 %51 to float*
%53 = icmp eq i64 %51, 0
br i1 %53, label %54, label %57
54: ; preds = %46
%55 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.15, i64 0, i64 0))
%56 = tail call i32 @exit(i32 1)
unreachable
57: ; preds = %46
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i64 %49)
%59 = shl i32 %42, 2
%60 = tail call i64 @malloc(i32 %59)
%61 = inttoptr i64 %60 to i32*
%62 = inttoptr i64 %60 to i8*
%63 = icmp eq i64 %60, 0
br i1 %63, label %68, label %64
64: ; preds = %57
%65 = icmp eq i32 %42, 0
br i1 %65, label %71, label %66
66: ; preds = %64
%67 = shl nuw nsw i64 %48, 2
br label %71
68: ; preds = %57
%69 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.15, i64 0, i64 0))
%70 = tail call i32 @exit(i32 1)
unreachable
71: ; preds = %66, %64
%72 = tail call i32 @rewind(i32* %13)
%73 = tail call i64 @fread(float* %35, i32 4, i32 %22, i32* %13)
%74 = icmp eq i64 %73, %31
br i1 %74, label %75, label %430
75: ; preds = %71
%76 = icmp sgt i32 %22, 0
%77 = zext i32 %22 to i64
%78 = zext i32 %22 to i64
%79 = zext i32 %22 to i64
%80 = getelementptr float, float* %52, i64 %77
%81 = getelementptr float, float* %35, i64 %77
%82 = and i64 %77, 4294967288
%83 = add nsw i64 %82, -8
%84 = lshr exact i64 %83, 3
%85 = add nuw nsw i64 %84, 1
%86 = icmp ult i32 %22, 8
%87 = and i64 %77, 4294967288
%88 = and i64 %85, 1
%89 = icmp eq i64 %83, 0
%90 = and i64 %85, 4611686018427387902
%91 = icmp eq i64 %88, 0
%92 = icmp eq i64 %87, %77
%93 = icmp ult i32 %22, 8
%94 = and i64 %77, 4294967288
%95 = and i64 %85, 1
%96 = icmp eq i64 %83, 0
%97 = and i64 %85, 4611686018427387902
%98 = icmp eq i64 %95, 0
%99 = icmp eq i64 %94, %77
%100 = icmp ult i32 %22, 8
%101 = and i64 %77, 4294967288
%102 = and i64 %85, 3
%103 = icmp ult i64 %83, 24
%104 = and i64 %85, 4611686018427387900
%105 = icmp eq i64 %102, 0
%106 = icmp eq i64 %101, %77
%107 = and i64 %77, 3
%108 = icmp eq i64 %107, 0
br label %109
109: ; preds = %75, %427
%110 = phi i32 [ 0, %75 ], [ %422, %427 ]
%111 = phi i32 [ 0, %75 ], [ %420, %427 ]
%112 = phi i32 [ 0, %75 ], [ %421, %427 ]
br i1 %76, label %113, label %179
113: ; preds = %109
br i1 %86, label %168, label %114
114: ; preds = %113
br i1 %89, label %150, label %115
115: ; preds = %114, %115
%116 = phi i64 [ %147, %115 ], [ 0, %114 ]
%117 = phi i64 [ %148, %115 ], [ 0, %114 ]
%118 = getelementptr inbounds float, float* %35, i64 %116
%119 = bitcast float* %118 to <4 x float>*
%120 = load <4 x float>, <4 x float>* %119
%121 = getelementptr inbounds float, float* %118, i64 4
%122 = bitcast float* %121 to <4 x float>*
%123 = load <4 x float>, <4 x float>* %122
%124 = fpext <4 x float> %120 to <4 x double>
%125 = fpext <4 x float> %123 to <4 x double>
%126 = fmul <4 x double> %124, <double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6>
%127 = fmul <4 x double> %125, <double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6>
%128 = fptrunc <4 x double> %126 to <4 x float>
%129 = fptrunc <4 x double> %127 to <4 x float>
%130 = bitcast float* %118 to <4 x float>*
store <4 x float> %128, <4 x float>* %130
%131 = bitcast float* %121 to <4 x float>*
store <4 x float> %129, <4 x float>* %131
%132 = or i64 %116, 8
%133 = getelementptr inbounds float, float* %35, i64 %132
%134 = bitcast float* %133 to <4 x float>*
%135 = load <4 x float>, <4 x float>* %134
%136 = getelementptr inbounds float, float* %133, i64 4
%137 = bitcast float* %136 to <4 x float>*
%138 = load <4 x float>, <4 x float>* %137
%139 = fpext <4 x float> %135 to <4 x double>
%140 = fpext <4 x float> %138 to <4 x double>
%141 = fmul <4 x double> %139, <double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6>
%142 = fmul <4 x double> %140, <double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6>
%143 = fptrunc <4 x double> %141 to <4 x float>
%144 = fptrunc <4 x double> %142 to <4 x float>
%145 = bitcast float* %133 to <4 x float>*
store <4 x float> %143, <4 x float>* %145
%146 = bitcast float* %136 to <4 x float>*
store <4 x float> %144, <4 x float>* %146
%147 = add nuw i64 %116, 16
%148 = add i64 %117, 2
%149 = icmp eq i64 %148, %90
br i1 %149, label %150, label %115
150: ; preds = %115, %114
%151 = phi i64 [ 0, %114 ], [ %147, %115 ]
br i1 %91, label %167, label %152
152: ; preds = %150
%153 = getelementptr inbounds float, float* %35, i64 %151
%154 = bitcast float* %153 to <4 x float>*
%155 = load <4 x float>, <4 x float>* %154
%156 = getelementptr inbounds float, float* %153, i64 4
%157 = bitcast float* %156 to <4 x float>*
%158 = load <4 x float>, <4 x float>* %157
%159 = fpext <4 x float> %155 to <4 x double>
%160 = fpext <4 x float> %158 to <4 x double>
%161 = fmul <4 x double> %159, <double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6>
%162 = fmul <4 x double> %160, <double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6, double 0x4093E4F54B2BE5A6>
%163 = fptrunc <4 x double> %161 to <4 x float>
%164 = fptrunc <4 x double> %162 to <4 x float>
%165 = bitcast float* %153 to <4 x float>*
store <4 x float> %163, <4 x float>* %165
%166 = bitcast float* %156 to <4 x float>*
store <4 x float> %164, <4 x float>* %166
br label %167
167: ; preds = %150, %152
br i1 %92, label %179, label %168
168: ; preds = %113, %167
%169 = phi i64 [ 0, %113 ], [ %87, %167 ]
br label %170
170: ; preds = %168, %170
%171 = phi i64 [ %177, %170 ], [ %169, %168 ]
%172 = getelementptr inbounds float, float* %35, i64 %171
%173 = load float, float* %172
%174 = fpext float %173 to double
%175 = fmul double %174, 0x4093E4F54B2BE5A6
%176 = fptrunc double %175 to float
store float %176, float* %172
%177 = add nuw nsw i64 %171, 1
%178 = icmp eq i64 %177, %77
br i1 %178, label %179, label %170
179: ; preds = %170, %167, %109
%180 = tail call i32 @locate_lsps_jnd_steps(float* %35, float %25, i32 %22)
%181 = icmp sgt i32 %112, 0
br i1 %181, label %182, label %286
182: ; preds = %179, %276
%183 = phi i32 [ %282, %276 ], [ 0, %179 ]
%184 = phi i32 [ %280, %276 ], [ %111, %179 ]
%185 = phi i32 [ %279, %276 ], [ 0, %179 ]
%186 = phi float* [ %281, %276 ], [ %52, %179 ]
br i1 %76, label %187, label %276
187: ; preds = %182
br i1 %93, label %262, label %188
188: ; preds = %187
br i1 %96, label %230, label %189
189: ; preds = %188, %189
%190 = phi i64 [ %227, %189 ], [ 0, %188 ]
%191 = phi <4 x i32> [ %224, %189 ], [ <i32 1, i32 1, i32 1, i32 1>, %188 ]
%192 = phi <4 x i32> [ %226, %189 ], [ <i32 1, i32 1, i32 1, i32 1>, %188 ]
%193 = phi i64 [ %228, %189 ], [ 0, %188 ]
%194 = getelementptr inbounds float, float* %35, i64 %190
%195 = bitcast float* %194 to <4 x float>*
%196 = load <4 x float>, <4 x float>* %195
%197 = getelementptr inbounds float, float* %194, i64 4
%198 = bitcast float* %197 to <4 x float>*
%199 = load <4 x float>, <4 x float>* %198
%200 = getelementptr inbounds float, float* %186, i64 %190
%201 = bitcast float* %200 to <4 x float>*
%202 = load <4 x float>, <4 x float>* %201
%203 = getelementptr inbounds float, float* %200, i64 4
%204 = bitcast float* %203 to <4 x float>*
%205 = load <4 x float>, <4 x float>* %204
%206 = fcmp une <4 x float> %196, %202
%207 = fcmp une <4 x float> %199, %205
%208 = or i64 %190, 8
%209 = getelementptr inbounds float, float* %35, i64 %208
%210 = bitcast float* %209 to <4 x float>*
%211 = load <4 x float>, <4 x float>* %210
%212 = getelementptr inbounds float, float* %209, i64 4
%213 = bitcast float* %212 to <4 x float>*
%214 = load <4 x float>, <4 x float>* %213
%215 = getelementptr inbounds float, float* %186, i64 %208
%216 = bitcast float* %215 to <4 x float>*
%217 = load <4 x float>, <4 x float>* %216
%218 = getelementptr inbounds float, float* %215, i64 4
%219 = bitcast float* %218 to <4 x float>*
%220 = load <4 x float>, <4 x float>* %219
%221 = fcmp une <4 x float> %211, %217
%222 = fcmp une <4 x float> %214, %220
%223 = select <4 x i1> %221, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i1> %206
%224 = select <4 x i1> %223, <4 x i32> zeroinitializer, <4 x i32> %191
%225 = select <4 x i1> %222, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i1> %207
%226 = select <4 x i1> %225, <4 x i32> zeroinitializer, <4 x i32> %192
%227 = add nuw i64 %190, 16
%228 = add i64 %193, 2
%229 = icmp eq i64 %228, %97
br i1 %229, label %230, label %189
230: ; preds = %189, %188
%231 = phi <4 x i32> [ undef, %188 ], [ %224, %189 ]
%232 = phi <4 x i32> [ undef, %188 ], [ %226, %189 ]
%233 = phi i64 [ 0, %188 ], [ %227, %189 ]
%234 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %188 ], [ %224, %189 ]
%235 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %188 ], [ %226, %189 ]
br i1 %98, label %253, label %236
236: ; preds = %230
%237 = getelementptr inbounds float, float* %35, i64 %233
%238 = bitcast float* %237 to <4 x float>*
%239 = load <4 x float>, <4 x float>* %238
%240 = getelementptr inbounds float, float* %237, i64 4
%241 = bitcast float* %240 to <4 x float>*
%242 = load <4 x float>, <4 x float>* %241
%243 = getelementptr inbounds float, float* %186, i64 %233
%244 = bitcast float* %243 to <4 x float>*
%245 = load <4 x float>, <4 x float>* %244
%246 = getelementptr inbounds float, float* %243, i64 4
%247 = bitcast float* %246 to <4 x float>*
%248 = load <4 x float>, <4 x float>* %247
%249 = fcmp une <4 x float> %239, %245
%250 = fcmp une <4 x float> %242, %248
%251 = select <4 x i1> %249, <4 x i32> zeroinitializer, <4 x i32> %234
%252 = select <4 x i1> %250, <4 x i32> zeroinitializer, <4 x i32> %235
br label %253
253: ; preds = %230, %236
%254 = phi <4 x i32> [ %231, %230 ], [ %251, %236 ]
%255 = phi <4 x i32> [ %232, %230 ], [ %252, %236 ]
%256 = icmp eq <4 x i32> %254, <i32 1, i32 1, i32 1, i32 1>
%257 = select <4 x i1> %256, <4 x i32> %255, <4 x i32> %254
%258 = icmp ne <4 x i32> %257, <i32 1, i32 1, i32 1, i32 1>
%259 = bitcast <4 x i1> %258 to i4
%260 = icmp eq i4 %259, 0
%261 = zext i1 %260 to i32
br i1 %99, label %276, label %262
262: ; preds = %187, %253
%263 = phi i64 [ 0, %187 ], [ %94, %253 ]
%264 = phi i32 [ 1, %187 ], [ %261, %253 ]
br label %265
265: ; preds = %262, %265
%266 = phi i64 [ %274, %265 ], [ %263, %262 ]
%267 = phi i32 [ %273, %265 ], [ %264, %262 ]
%268 = getelementptr inbounds float, float* %35, i64 %266
%269 = load float, float* %268
%270 = getelementptr inbounds float, float* %186, i64 %266
%271 = load float, float* %270
%272 = fcmp une float %269, %271
%273 = select i1 %272, i32 0, i32 %267
%274 = add nuw nsw i64 %266, 1
%275 = icmp eq i64 %274, %78
br i1 %275, label %276, label %265
276: ; preds = %265, %253, %182
%277 = phi i32 [ 1, %182 ], [ %261, %253 ], [ %273, %265 ]
%278 = icmp eq i32 %277, 0
%279 = select i1 %278, i32 %185, i32 1
%280 = select i1 %278, i32 %184, i32 %183
%281 = getelementptr inbounds float, float* %186, i64 %31
%282 = add nuw nsw i32 %183, 1
%283 = icmp eq i32 %282, %112
br i1 %283, label %284, label %182
284: ; preds = %276
%285 = icmp eq i32 %279, 0
br i1 %285, label %286, label %389
286: ; preds = %179, %284
%287 = phi i32 [ %280, %284 ], [ %111, %179 ]
br i1 %76, label %288, label %417
288: ; preds = %286
%289 = mul nsw i32 %112, %22
%290 = sext i32 %289 to i64
br i1 %100, label %372, label %291
291: ; preds = %288
%292 = getelementptr float, float* %52, i64 %290
%293 = getelementptr float, float* %80, i64 %290
%294 = bitcast float* %293 to i8*
%295 = icmp ult float* %292, %81
%296 = icmp ult i8* %36, %294
%297 = and i1 %295, %296
br i1 %297, label %372, label %298
298: ; preds = %291
br i1 %103, label %352, label %299
299: ; preds = %298, %299
%300 = phi i64 [ %349, %299 ], [ 0, %298 ]
%301 = phi i64 [ %350, %299 ], [ 0, %298 ]
%302 = getelementptr inbounds float, float* %35, i64 %300
%303 = bitcast float* %302 to <4 x float>*
%304 = load <4 x float>, <4 x float>* %303
%305 = getelementptr inbounds float, float* %302, i64 4
%306 = bitcast float* %305 to <4 x float>*
%307 = load <4 x float>, <4 x float>* %306
%308 = add nsw i64 %300, %290
%309 = getelementptr inbounds float, float* %52, i64 %308
%310 = bitcast float* %309 to <4 x float>*
store <4 x float> %304, <4 x float>* %310
%311 = getelementptr inbounds float, float* %309, i64 4
%312 = bitcast float* %311 to <4 x float>*
store <4 x float> %307, <4 x float>* %312
%313 = or i64 %300, 8
%314 = getelementptr inbounds float, float* %35, i64 %313
%315 = bitcast float* %314 to <4 x float>*
%316 = load <4 x float>, <4 x float>* %315
%317 = getelementptr inbounds float, float* %314, i64 4
%318 = bitcast float* %317 to <4 x float>*
%319 = load <4 x float>, <4 x float>* %318
%320 = add nsw i64 %313, %290
%321 = getelementptr inbounds float, float* %52, i64 %320
%322 = bitcast float* %321 to <4 x float>*
store <4 x float> %316, <4 x float>* %322
%323 = getelementptr inbounds float, float* %321, i64 4
%324 = bitcast float* %323 to <4 x float>*
store <4 x float> %319, <4 x float>* %324
%325 = or i64 %300, 16
%326 = getelementptr inbounds float, float* %35, i64 %325
%327 = bitcast float* %326 to <4 x float>*
%328 = load <4 x float>, <4 x float>* %327
%329 = getelementptr inbounds float, float* %326, i64 4
%330 = bitcast float* %329 to <4 x float>*
%331 = load <4 x float>, <4 x float>* %330
%332 = add nsw i64 %325, %290
%333 = getelementptr inbounds float, float* %52, i64 %332
%334 = bitcast float* %333 to <4 x float>*
store <4 x float> %328, <4 x float>* %334
%335 = getelementptr inbounds float, float* %333, i64 4
%336 = bitcast float* %335 to <4 x float>*
store <4 x float> %331, <4 x float>* %336
%337 = or i64 %300, 24
%338 = getelementptr inbounds float, float* %35, i64 %337
%339 = bitcast float* %338 to <4 x float>*
%340 = load <4 x float>, <4 x float>* %339
%341 = getelementptr inbounds float, float* %338, i64 4
%342 = bitcast float* %341 to <4 x float>*
%343 = load <4 x float>, <4 x float>* %342
%344 = add nsw i64 %337, %290
%345 = getelementptr inbounds float, float* %52, i64 %344
%346 = bitcast float* %345 to <4 x float>*
store <4 x float> %340, <4 x float>* %346
%347 = getelementptr inbounds float, float* %345, i64 4
%348 = bitcast float* %347 to <4 x float>*
store <4 x float> %343, <4 x float>* %348
%349 = add nuw i64 %300, 32
%350 = add i64 %301, 4
%351 = icmp eq i64 %350, %104
br i1 %351, label %352, label %299
352: ; preds = %299, %298
%353 = phi i64 [ 0, %298 ], [ %349, %299 ]
br i1 %105, label %371, label %354
354: ; preds = %352, %354
%355 = phi i64 [ %368, %354 ], [ %353, %352 ]
%356 = phi i64 [ %369, %354 ], [ 0, %352 ]
%357 = getelementptr inbounds float, float* %35, i64 %355
%358 = bitcast float* %357 to <4 x float>*
%359 = load <4 x float>, <4 x float>* %358
%360 = getelementptr inbounds float, float* %357, i64 4
%361 = bitcast float* %360 to <4 x float>*
%362 = load <4 x float>, <4 x float>* %361
%363 = add nsw i64 %355, %290
%364 = getelementptr inbounds float, float* %52, i64 %363
%365 = bitcast float* %364 to <4 x float>*
store <4 x float> %359, <4 x float>* %365
%366 = getelementptr inbounds float, float* %364, i64 4
%367 = bitcast float* %366 to <4 x float>*
store <4 x float> %362, <4 x float>* %367
%368 = add nuw i64 %355, 8
%369 = add i64 %356, 1
%370 = icmp eq i64 %369, %102
br i1 %370, label %371, label %354
371: ; preds = %354, %352
br i1 %106, label %417, label %372
372: ; preds = %291, %288, %371
%373 = phi i64 [ 0, %291 ], [ 0, %288 ], [ %101, %371 ]
%374 = xor i64 %373, -1
%375 = add nsw i64 %374, %77
br i1 %108, label %386, label %376
376: ; preds = %372, %376
%377 = phi i64 [ %383, %376 ], [ %373, %372 ]
%378 = phi i64 [ %384, %376 ], [ 0, %372 ]
%379 = getelementptr inbounds float, float* %35, i64 %377
%380 = load float, float* %379
%381 = add nsw i64 %377, %290
%382 = getelementptr inbounds float, float* %52, i64 %381
store float %380, float* %382
%383 = add nuw nsw i64 %377, 1
%384 = add i64 %378, 1
%385 = icmp eq i64 %384, %107
br i1 %385, label %386, label %376
386: ; preds = %376, %372
%387 = phi i64 [ %373, %372 ], [ %383, %376 ]
%388 = icmp ult i64 %375, 3
br i1 %388, label %417, label %394
389: ; preds = %284
%390 = sext i32 %280 to i64
%391 = getelementptr inbounds i32, i32* %61, i64 %390
%392 = load i32, i32* %391
%393 = add nsw i32 %392, 1
store i32 %393, i32* %391
br label %419
394: ; preds = %386, %394
%395 = phi i64 [ %415, %394 ], [ %387, %386 ]
%396 = getelementptr inbounds float, float* %35, i64 %395
%397 = load float, float* %396
%398 = add nsw i64 %395, %290
%399 = getelementptr inbounds float, float* %52, i64 %398
store float %397, float* %399
%400 = add nuw nsw i64 %395, 1
%401 = getelementptr inbounds float, float* %35, i64 %400
%402 = load float, float* %401
%403 = add nsw i64 %400, %290
%404 = getelementptr inbounds float, float* %52, i64 %403
store float %402, float* %404
%405 = add nuw nsw i64 %395, 2
%406 = getelementptr inbounds float, float* %35, i64 %405
%407 = load float, float* %406
%408 = add nsw i64 %405, %290
%409 = getelementptr inbounds float, float* %52, i64 %408
store float %407, float* %409
%410 = add nuw nsw i64 %395, 3
%411 = getelementptr inbounds float, float* %35, i64 %410
%412 = load float, float* %411
%413 = add nsw i64 %410, %290
%414 = getelementptr inbounds float, float* %52, i64 %413
store float %412, float* %414
%415 = add nuw nsw i64 %395, 4
%416 = icmp eq i64 %415, %79
br i1 %416, label %417, label %394
417: ; preds = %386, %394, %371, %286
%418 = add nsw i32 %112, 1
br label %419
419: ; preds = %417, %389
%420 = phi i32 [ %280, %389 ], [ %287, %417 ]
%421 = phi i32 [ %112, %389 ], [ %418, %417 ]
%422 = add nuw nsw i32 %110, 1
%423 = urem i32 %422, 100
%424 = icmp eq i32 %423, 0
br i1 %424, label %425, label %427
425: ; preds = %419
%426 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0), i32 %422, i32 %421)
br label %427
427: ; preds = %425, %419
%428 = tail call i64 @fread(float* %35, i32 4, i32 %22, i32* %13)
%429 = icmp eq i64 %428, %31
br i1 %429, label %109, label %430
430: ; preds = %427, %71
%431 = phi i32 [ 0, %71 ], [ %421, %427 ]
%432 = tail call i32 @putchar(i32 10)
%433 = icmp sgt i32 %431, 0
br i1 %433, label %434, label %473
434: ; preds = %430
%435 = zext i32 %431 to i64
%436 = and i64 %435, 1
%437 = icmp eq i32 %431, 1
br i1 %437, label %440, label %438
438: ; preds = %434
%439 = and i64 %435, 4294967294
br label %498
440: ; preds = %519, %434
%441 = phi i64 [ 0, %434 ], [ %520, %519 ]
%442 = icmp eq i64 %436, 0
br i1 %442, label %452, label %443
443: ; preds = %440
%444 = getelementptr inbounds i32, i32* %61, i64 %441
%445 = load i32, i32* %444
%446 = icmp slt i32 %445, 10
br i1 %446, label %447, label %452
447: ; preds = %443
%448 = sext i32 %445 to i64
%449 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %448
%450 = load i32, i32* %449
%451 = add nsw i32 %450, 1
store i32 %451, i32* %449
br label %452
452: ; preds = %443, %447, %440
%453 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 0
%454 = load i32, i32* %453
%455 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 1
%456 = load i32, i32* %455
%457 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 2
%458 = load i32, i32* %457
%459 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 3
%460 = load i32, i32* %459
%461 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 4
%462 = load i32, i32* %461
%463 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 5
%464 = load i32, i32* %463
%465 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 6
%466 = load i32, i32* %465
%467 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 7
%468 = load i32, i32* %467
%469 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 8
%470 = load i32, i32* %469
%471 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 9
%472 = load i32, i32* %471
br label %473
473: ; preds = %452, %430
%474 = phi i32 [ %472, %452 ], [ 0, %430 ]
%475 = phi i32 [ %470, %452 ], [ 0, %430 ]
%476 = phi i32 [ %468, %452 ], [ 0, %430 ]
%477 = phi i32 [ %466, %452 ], [ 0, %430 ]
%478 = phi i32 [ %464, %452 ], [ 0, %430 ]
%479 = phi i32 [ %462, %452 ], [ 0, %430 ]
%480 = phi i32 [ %460, %452 ], [ 0, %430 ]
%481 = phi i32 [ %458, %452 ], [ 0, %430 ]
%482 = phi i32 [ %456, %452 ], [ 0, %430 ]
%483 = phi i32 [ %454, %452 ], [ 0, %430 ]
%484 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 0, i32 %483)
%485 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 1, i32 %482)
%486 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 2, i32 %481)
%487 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 3, i32 %480)
%488 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 4, i32 %479)
%489 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 5, i32 %478)
%490 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 6, i32 %477)
%491 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 7, i32 %476)
%492 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 8, i32 %475)
%493 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 9, i32 %474)
%494 = getelementptr inbounds i8*, i8** %1, i64 5
%495 = load i8*, i8** %494
%496 = tail call i32* @fopen(i8* %495, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%497 = icmp eq i32* %496, null
br i1 %497, label %523, label %527
498: ; preds = %519, %438
%499 = phi i64 [ 0, %438 ], [ %520, %519 ]
%500 = phi i64 [ 0, %438 ], [ %521, %519 ]
%501 = getelementptr inbounds i32, i32* %61, i64 %499
%502 = load i32, i32* %501
%503 = icmp slt i32 %502, 10
br i1 %503, label %504, label %509
504: ; preds = %498
%505 = sext i32 %502 to i64
%506 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %505
%507 = load i32, i32* %506
%508 = add nsw i32 %507, 1
store i32 %508, i32* %506
br label %509
509: ; preds = %498, %504
%510 = or i64 %499, 1
%511 = getelementptr inbounds i32, i32* %61, i64 %510
%512 = load i32, i32* %511
%513 = icmp slt i32 %512, 10
br i1 %513, label %514, label %519
514: ; preds = %509
%515 = sext i32 %512 to i64
%516 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %515
%517 = load i32, i32* %516
%518 = add nsw i32 %517, 1
store i32 %518, i32* %516
br label %519
519: ; preds = %514, %509
%520 = add nuw nsw i64 %499, 2
%521 = add i64 %500, 2
%522 = icmp eq i64 %521, %439
br i1 %522, label %440, label %498
523: ; preds = %473
%524 = load i8*, i8** %26
%525 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i8* %524)
%526 = tail call i32 @exit(i32 1)
unreachable
527: ; preds = %473
%528 = sext i32 %28 to i64
%529 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %528
%530 = load i32, i32* %529
%531 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %496, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i32 %22, i32 %530)
br i1 %433, label %532, label %558
532: ; preds = %527
%533 = icmp sgt i32 %22, 0
%534 = zext i32 %431 to i64
%535 = zext i32 %22 to i64
br label %536
536: ; preds = %532, %555
%537 = phi i64 [ 0, %532 ], [ %556, %555 ]
%538 = getelementptr inbounds i32, i32* %61, i64 %537
%539 = load i32, i32* %538
%540 = icmp sgt i32 %539, %28
br i1 %540, label %541, label %555
541: ; preds = %536
br i1 %533, label %542, label %553
542: ; preds = %541
%543 = mul nsw i64 %537, %31
br label %544
544: ; preds = %542, %544
%545 = phi i64 [ 0, %542 ], [ %551, %544 ]
%546 = add nsw i64 %545, %543
%547 = getelementptr inbounds float, float* %52, i64 %546
%548 = load float, float* %547
%549 = fpext float %548 to double
%550 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %496, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), double %549)
%551 = add nuw nsw i64 %545, 1
%552 = icmp eq i64 %551, %535
br i1 %552, label %553, label %544
553: ; preds = %544, %541
%554 = tail call i32 @fputc(i32 10, i32* %496)
br label %555
555: ; preds = %536, %553
%556 = add nuw nsw i64 %537, 1
%557 = icmp eq i64 %556, %534
br i1 %557, label %558, label %536
558: ; preds = %555, %527
%559 = tail call i32 @fclose(i32* %496)
ret i32 0
}