#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 */

/* Variables and functions */
double sqrt(double);
void update_weights(double weights1[13 * 64], double weights2[64 * 64],
                    double weights3[64 * 3], double d_weights1[13 * 64],
                    double d_weights2[64 * 64], double d_weights3[64 * 3],
                    double biases1[64], double biases2[64], double biases3[3],
                    double d_biases1[64], double d_biases2[64],
                    double d_biases3[3]) {
  int i, j;
  double norm, bias_norm;
  norm = 0.0;
  bias_norm = 0.0;
  for (i = 0; i < 13; i++) {
    for (j = 0; j < 64; j++) {
      weights1[i * 64 + j] -= (d_weights1[i * 64 + j] * 0.01);
      norm += weights1[i * 64 + j] * weights1[i * 64 + j];
    }
  }
  for (i = 0; i < 64; i++) {
    biases1[i] -= (d_biases1[i] * 0.01);
    bias_norm += biases1[i] * biases1[i];
  }
  norm = sqrt(norm);
  bias_norm = sqrt(bias_norm);
  for (i = 0; i < 13; i++) {
    for (j = 0; j < 64; j++) {
      weights1[i * 64 + j] = (weights1[i * 64 + j] / norm);
    }
  }
  for (i = 0; i < 64; i++) {
    biases1[i] = (biases1[i] / bias_norm);
  }
  norm = (double)0.0;
  bias_norm = (double)0.0;
  for (i = 0; i < 64; i++) {
    for (j = 0; j < 64; j++) {
      weights2[i * 64 + j] -= (d_weights2[i * 64 + j] * 0.01);
      norm += weights2[i * 64 + j] * weights2[i * 64 + j];
    }
  }
  for (i = 0; i < 64; i++) {
    biases2[i] -= (d_biases2[i] * 0.01);
    bias_norm += biases2[i] * biases2[i];
  }
  norm = sqrt(norm);
  bias_norm = sqrt(bias_norm);
  for (i = 0; i < 64; i++) {
    for (j = 0; j < 64; j++) {
      weights2[i * 64 + j] = (weights2[i * 64 + j] / norm);
    }
  }
  for (i = 0; i < 64; i++) {
    biases2[i] = (biases2[i] / bias_norm);
  }
  norm = (double)0.0;
  bias_norm = (double)0.0;
  for (i = 0; i < 64; i++) {
    for (j = 0; j < 3; j++) {
      weights3[i * 3 + j] -= (d_weights3[i * 3 + j] * 0.01);
      norm += weights3[i * 3 + j] * weights3[i * 3 + j];
    }
  }
  for (i = 0; i < 3; i++) {
    biases3[i] -= d_biases3[i] * 0.01;
    bias_norm += biases3[i] * biases3[i];
  }
  norm = sqrt(norm);
  bias_norm = sqrt(bias_norm);
  for (i = 0; i < 64; i++) {
    for (j = 0; j < 3; j++) {
      weights3[i * 3 + j] = (weights3[i * 3 + j] / norm);
    }
  }
  for (i = 0; i < 3; i++) {
    biases3[i] = (biases3[i] / bias_norm);
  }
}


x86 assembly (clang, -O0):
<update_weights>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0xd,-0x34(%rbp)
jge    122d <update_weights+0x11d>
movl   $0x0,-0x38(%rbp)
cmpl   $0x40,-0x38(%rbp)
jge    121a <update_weights+0x10a>
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x6,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x6,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movq   %xmm0,%rdx
movabs $0x8000000000000000,%rsi
xor    %rsi,%rdx
movq   %rdx,%xmm0
movsd  0xe3d(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x6,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x6,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1170 <update_weights+0x60>
jmp    121f <update_weights+0x10f>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    115f <update_weights+0x4f>
movl   $0x0,-0x34(%rbp)
cmpl   $0x40,-0x34(%rbp)
jge    12be <update_weights+0x1ae>
mov    0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movq   %xmm0,%rdx
movabs $0x8000000000000000,%rsi
xor    %rsi,%rdx
movq   %rdx,%xmm0
movsd  0xd89(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1234 <update_weights+0x124>
movsd  -0x40(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0xd,-0x34(%rbp)
jge    134e <update_weights+0x23e>
movl   $0x0,-0x38(%rbp)
cmpl   $0x40,-0x38(%rbp)
jge    133b <update_weights+0x22b>
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x6,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x40(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x6,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12f4 <update_weights+0x1e4>
jmp    1340 <update_weights+0x230>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12e3 <update_weights+0x1d3>
movl   $0x0,-0x34(%rbp)
cmpl   $0x40,-0x34(%rbp)
jge    138c <update_weights+0x27c>
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x48(%rbp),%xmm0
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1355 <update_weights+0x245>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x40,-0x34(%rbp)
jge    1471 <update_weights+0x361>
movl   $0x0,-0x38(%rbp)
cmpl   $0x40,-0x38(%rbp)
jge    145e <update_weights+0x34e>
mov    -0x28(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x6,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x6,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movq   %xmm0,%rdx
movabs $0x8000000000000000,%rsi
xor    %rsi,%rdx
movq   %rdx,%xmm0
movsd  0xbf9(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x6,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x6,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    13b4 <update_weights+0x2a4>
jmp    1463 <update_weights+0x353>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    13a3 <update_weights+0x293>
movl   $0x0,-0x34(%rbp)
cmpl   $0x40,-0x34(%rbp)
jge    1502 <update_weights+0x3f2>
mov    0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movq   %xmm0,%rdx
movabs $0x8000000000000000,%rsi
xor    %rsi,%rdx
movq   %rdx,%xmm0
movsd  0xb45(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1478 <update_weights+0x368>
movsd  -0x40(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x40,-0x34(%rbp)
jge    1592 <update_weights+0x482>
movl   $0x0,-0x38(%rbp)
cmpl   $0x40,-0x38(%rbp)
jge    157f <update_weights+0x46f>
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x6,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x40(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x6,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1538 <update_weights+0x428>
jmp    1584 <update_weights+0x474>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1527 <update_weights+0x417>
movl   $0x0,-0x34(%rbp)
cmpl   $0x40,-0x34(%rbp)
jge    15d0 <update_weights+0x4c0>
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x48(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1599 <update_weights+0x489>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x40,-0x34(%rbp)
jge    16ad <update_weights+0x59d>
movl   $0x0,-0x38(%rbp)
cmpl   $0x3,-0x38(%rbp)
jge    169a <update_weights+0x58a>
mov    -0x30(%rbp),%rax
imul   $0x3,-0x34(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
imul   $0x3,-0x34(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movq   %xmm0,%rdx
movabs $0x8000000000000000,%rsi
xor    %rsi,%rdx
movq   %rdx,%xmm0
movsd  0x9b9(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
imul   $0x3,-0x34(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
imul   $0x3,-0x34(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    15f8 <update_weights+0x4e8>
jmp    169f <update_weights+0x58f>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    15e7 <update_weights+0x4d7>
movl   $0x0,-0x34(%rbp)
cmpl   $0x3,-0x34(%rbp)
jge    173e <update_weights+0x62e>
mov    0x38(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movq   %xmm0,%rdx
movabs $0x8000000000000000,%rsi
xor    %rsi,%rdx
movq   %rdx,%xmm0
movsd  0x909(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    16b4 <update_weights+0x5a4>
movsd  -0x40(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x40,-0x34(%rbp)
jge    17ca <update_weights+0x6ba>
movl   $0x0,-0x38(%rbp)
cmpl   $0x3,-0x38(%rbp)
jge    17b7 <update_weights+0x6a7>
mov    -0x18(%rbp),%rax
imul   $0x3,-0x34(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x40(%rbp),%xmm0
mov    -0x18(%rbp),%rax
imul   $0x3,-0x34(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1774 <update_weights+0x664>
jmp    17bc <update_weights+0x6ac>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1763 <update_weights+0x653>
movl   $0x0,-0x34(%rbp)
cmpl   $0x3,-0x34(%rbp)
jge    1808 <update_weights+0x6f8>
mov    0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x48(%rbp),%xmm0
mov    0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    17d1 <update_weights+0x6c1>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<update_weights>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r8,%r12
mov    %rdx,%r15
mov    %rsi,%r13
mov    %rdi,%rbx
mov    0x78(%rsp),%rax
mov    0x68(%rsp),%rbp
mov    0x60(%rsp),%r14
lea    0x8(%rdi),%rdx
add    $0x8,%rcx
xorpd  %xmm0,%xmm0
xor    %esi,%esi
movsd  0xeb1(%rip),%xmm4
nop
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  -0x8(%rcx,%rdi,8),%xmm1
mulsd  %xmm4,%xmm1
movsd  -0x8(%rdx,%rdi,8),%xmm2
subsd  %xmm1,%xmm2
movsd  (%rdx,%rdi,8),%xmm1
movsd  %xmm2,-0x8(%rdx,%rdi,8)
mulsd  %xmm2,%xmm2
addsd  %xmm0,%xmm2
movsd  (%rcx,%rdi,8),%xmm0
mulsd  %xmm4,%xmm0
subsd  %xmm0,%xmm1
movsd  %xmm1,(%rdx,%rdi,8)
mulsd  %xmm1,%xmm1
movapd %xmm1,%xmm0
addsd  %xmm2,%xmm0
add    $0x2,%rdi
cmp    $0x40,%rdi
jne    1160 <update_weights+0x50>
add    $0x1,%rsi
add    $0x200,%rdx
add    $0x200,%rcx
cmp    $0xd,%rsi
jne    1150 <update_weights+0x40>
xorpd  %xmm5,%xmm5
xor    %ecx,%ecx
nopl   (%rax)
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm4,%xmm1
movsd  (%r14,%rcx,8),%xmm2
subsd  %xmm1,%xmm2
movsd  0x8(%r14,%rcx,8),%xmm1
movsd  %xmm2,(%r14,%rcx,8)
mulsd  %xmm2,%xmm2
addsd  %xmm5,%xmm2
movsd  0x8(%rax,%rcx,8),%xmm3
mulsd  %xmm4,%xmm3
subsd  %xmm3,%xmm1
movsd  %xmm1,0x8(%r14,%rcx,8)
mulsd  %xmm1,%xmm1
movapd %xmm1,%xmm5
addsd  %xmm2,%xmm5
add    $0x2,%rcx
cmp    $0x40,%rcx
jne    11d0 <update_weights+0xc0>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    %r9,0x10(%rsp)
jb     1254 <update_weights+0x144>
xorps  %xmm3,%xmm3
sqrtsd %xmm0,%xmm3
ucomisd %xmm1,%xmm5
jae    1271 <update_weights+0x161>
movapd %xmm5,%xmm0
movapd %xmm3,(%rsp)
call   1030 <sqrt@plt>
movapd (%rsp),%xmm3
jmp    1278 <update_weights+0x168>
movsd  %xmm5,(%rsp)
call   1030 <sqrt@plt>
xorpd  %xmm1,%xmm1
movsd  (%rsp),%xmm5
movapd %xmm0,%xmm3
ucomisd %xmm1,%xmm5
jb     123f <update_weights+0x12f>
xorps  %xmm0,%xmm0
sqrtsd %xmm5,%xmm0
movsd  0xd80(%rip),%xmm4
unpcklpd %xmm3,%xmm3
add    $0x10,%rbx
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movupd -0x10(%rbx,%rcx,8),%xmm1
movupd (%rbx,%rcx,8),%xmm2
divpd  %xmm3,%xmm1
movupd %xmm1,-0x10(%rbx,%rcx,8)
divpd  %xmm3,%xmm2
movupd %xmm2,(%rbx,%rcx,8)
add    $0x4,%rcx
cmp    $0x40,%rcx
jne    12a0 <update_weights+0x190>
add    $0x1,%rax
add    $0x200,%rbx
cmp    $0xd,%rax
jne    1290 <update_weights+0x180>
unpcklpd %xmm0,%xmm0
xor    %eax,%eax
nop
movupd (%r14,%rax,8),%xmm1
movupd 0x10(%r14,%rax,8),%xmm2
divpd  %xmm0,%xmm1
movupd %xmm1,(%r14,%rax,8)
divpd  %xmm0,%xmm2
movupd %xmm2,0x10(%r14,%rax,8)
add    $0x4,%rax
cmp    $0x40,%rax
jne    12e0 <update_weights+0x1d0>
lea    0x8(%r13),%rax
add    $0x8,%r12
xorpd  %xmm0,%xmm0
xor    %ecx,%ecx
mov    0x70(%rsp),%rbx
nop
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  -0x8(%r12,%rdx,8),%xmm1
mulsd  %xmm4,%xmm1
movsd  -0x8(%rax,%rdx,8),%xmm2
subsd  %xmm1,%xmm2
movsd  (%rax,%rdx,8),%xmm1
movsd  %xmm2,-0x8(%rax,%rdx,8)
mulsd  %xmm2,%xmm2
addsd  %xmm0,%xmm2
movsd  (%r12,%rdx,8),%xmm0
mulsd  %xmm4,%xmm0
subsd  %xmm0,%xmm1
movsd  %xmm1,(%rax,%rdx,8)
mulsd  %xmm1,%xmm1
movapd %xmm1,%xmm0
addsd  %xmm2,%xmm0
add    $0x2,%rdx
cmp    $0x40,%rdx
jne    1330 <update_weights+0x220>
add    $0x1,%rcx
add    $0x200,%rax
add    $0x200,%r12
cmp    $0x40,%rcx
jne    1320 <update_weights+0x210>
xorpd  %xmm5,%xmm5
xor    %eax,%eax
mov    0x80(%rsp),%rcx
cs nopw 0x0(%rax,%rax,1)
movsd  (%rcx,%rax,8),%xmm1
mulsd  %xmm4,%xmm1
movsd  0x0(%rbp,%rax,8),%xmm2
subsd  %xmm1,%xmm2
movsd  0x8(%rbp,%rax,8),%xmm1
movsd  %xmm2,0x0(%rbp,%rax,8)
mulsd  %xmm2,%xmm2
addsd  %xmm5,%xmm2
movsd  0x8(%rcx,%rax,8),%xmm3
mulsd  %xmm4,%xmm3
subsd  %xmm3,%xmm1
movsd  %xmm1,0x8(%rbp,%rax,8)
mulsd  %xmm1,%xmm1
movapd %xmm1,%xmm5
addsd  %xmm2,%xmm5
add    $0x2,%rax
cmp    $0x40,%rax
jne    13b0 <update_weights+0x2a0>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     142d <update_weights+0x31d>
xorps  %xmm3,%xmm3
sqrtsd %xmm0,%xmm3
ucomisd %xmm1,%xmm5
jae    144a <update_weights+0x33a>
movapd %xmm5,%xmm0
movapd %xmm3,(%rsp)
call   1030 <sqrt@plt>
movapd (%rsp),%xmm3
jmp    1451 <update_weights+0x341>
movsd  %xmm5,(%rsp)
call   1030 <sqrt@plt>
xorpd  %xmm1,%xmm1
movsd  (%rsp),%xmm5
movapd %xmm0,%xmm3
ucomisd %xmm1,%xmm5
jb     1418 <update_weights+0x308>
xorps  %xmm0,%xmm0
sqrtsd %xmm5,%xmm0
movsd  0xba7(%rip),%xmm4
mov    0x10(%rsp),%rdx
unpcklpd %xmm3,%xmm3
add    $0x10,%r13
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movupd -0x10(%r13,%rcx,8),%xmm1
movupd 0x0(%r13,%rcx,8),%xmm2
divpd  %xmm3,%xmm1
movupd %xmm1,-0x10(%r13,%rcx,8)
divpd  %xmm3,%xmm2
movupd %xmm2,0x0(%r13,%rcx,8)
add    $0x4,%rcx
cmp    $0x40,%rcx
jne    1480 <update_weights+0x370>
add    $0x1,%rax
add    $0x200,%r13
cmp    $0x40,%rax
jne    1470 <update_weights+0x360>
unpcklpd %xmm0,%xmm0
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nop
movupd 0x0(%rbp,%rax,8),%xmm1
movupd 0x10(%rbp,%rax,8),%xmm2
divpd  %xmm0,%xmm1
movupd %xmm1,0x0(%rbp,%rax,8)
divpd  %xmm0,%xmm2
movupd %xmm2,0x10(%rbp,%rax,8)
add    $0x4,%rax
cmp    $0x40,%rax
jne    14d0 <update_weights+0x3c0>
xorpd  %xmm0,%xmm0
mov    $0x10,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  -0x10(%rdx,%rax,1),%xmm1
mulsd  %xmm4,%xmm1
movsd  -0x10(%r15,%rax,1),%xmm2
subsd  %xmm1,%xmm2
movsd  -0x8(%r15,%rax,1),%xmm1
movsd  %xmm2,-0x10(%r15,%rax,1)
mulsd  %xmm2,%xmm2
addsd  %xmm0,%xmm2
movsd  -0x8(%rdx,%rax,1),%xmm0
mulsd  %xmm4,%xmm0
subsd  %xmm0,%xmm1
movsd  %xmm1,-0x8(%r15,%rax,1)
mulsd  %xmm1,%xmm1
addsd  %xmm2,%xmm1
movsd  (%r15,%rax,1),%xmm0
movsd  (%rdx,%rax,1),%xmm2
mulsd  %xmm4,%xmm2
subsd  %xmm2,%xmm0
movsd  %xmm0,(%r15,%rax,1)
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
add    $0x18,%rax
cmp    $0x610,%rax
jne    1510 <update_weights+0x400>
mov    0x88(%rsp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm4,%xmm1
movsd  (%rbx),%xmm2
subsd  %xmm1,%xmm2
movsd  0x8(%rbx),%xmm1
movsd  %xmm2,(%rbx)
mulsd  %xmm2,%xmm2
xorpd  %xmm6,%xmm6
addsd  %xmm6,%xmm2
movsd  0x8(%rax),%xmm3
mulsd  %xmm4,%xmm3
subsd  %xmm3,%xmm1
movsd  %xmm1,0x8(%rbx)
mulsd  %xmm1,%xmm1
addsd  %xmm2,%xmm1
movsd  0x10(%rbx),%xmm2
mulsd  0x10(%rax),%xmm4
subsd  %xmm4,%xmm2
movsd  %xmm2,0x10(%rbx)
mulsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
ucomisd %xmm6,%xmm0
jb     160e <update_weights+0x4fe>
sqrtsd %xmm0,%xmm5
ucomisd %xmm6,%xmm2
jae    162d <update_weights+0x51d>
movapd %xmm2,%xmm0
movapd %xmm5,0x10(%rsp)
call   1030 <sqrt@plt>
movapd 0x10(%rsp),%xmm5
jmp    1634 <update_weights+0x524>
movsd  %xmm2,0x10(%rsp)
call   1030 <sqrt@plt>
movsd  0x10(%rsp),%xmm2
xorpd  %xmm6,%xmm6
movapd %xmm0,%xmm5
ucomisd %xmm6,%xmm2
jb     15f7 <update_weights+0x4e7>
xorps  %xmm0,%xmm0
sqrtsd %xmm2,%xmm0
unpcklpd %xmm5,%xmm5
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movupd (%r15,%rax,1),%xmm1
movupd 0x10(%r15,%rax,1),%xmm2
movupd 0x20(%r15,%rax,1),%xmm3
movapd %xmm2,%xmm4
movsd  %xmm1,%xmm4
shufpd $0x1,%xmm3,%xmm1
movsd  %xmm2,%xmm3
divpd  %xmm5,%xmm4
divpd  %xmm5,%xmm1
divpd  %xmm5,%xmm3
movapd %xmm1,%xmm2
unpckhpd %xmm3,%xmm2
shufpd $0x2,%xmm4,%xmm3
unpcklpd %xmm1,%xmm4
movupd %xmm4,(%r15,%rax,1)
movupd %xmm3,0x10(%r15,%rax,1)
movupd %xmm2,0x20(%r15,%rax,1)
add    $0x30,%rax
cmp    $0x600,%rax
jne    1640 <update_weights+0x530>
movupd (%rbx),%xmm1
movapd %xmm0,%xmm2
unpcklpd %xmm0,%xmm2
divpd  %xmm2,%xmm1
movupd %xmm1,(%rbx)
movsd  0x10(%rbx),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rbx)
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @update_weights(double* %0, double* %1, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7, double* %8, double* %9, double* %10, double* %11) {
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca double*
%18 = alloca double*
%19 = alloca double*
%20 = alloca double*
%21 = alloca double*
%22 = alloca double*
%23 = alloca double*
%24 = alloca double*
%25 = alloca i32
%26 = alloca i32
%27 = alloca double
%28 = alloca double
store double* %0, double** %13
store double* %1, double** %14
store double* %2, double** %15
store double* %3, double** %16
store double* %4, double** %17
store double* %5, double** %18
store double* %6, double** %19
store double* %7, double** %20
store double* %8, double** %21
store double* %9, double** %22
store double* %10, double** %23
store double* %11, double** %24
store double 0.000000e+00, double* %27
store double 0.000000e+00, double* %28
store i32 0, i32* %25
br label %29
29: ; preds = %77, %12
%30 = load i32, i32* %25
%31 = icmp slt i32 %30, 13
br i1 %31, label %32, label %80
32: ; preds = %29
store i32 0, i32* %26
br label %33
33: ; preds = %73, %32
%34 = load i32, i32* %26
%35 = icmp slt i32 %34, 64
br i1 %35, label %36, label %76
36: ; preds = %33
%37 = load double*, double** %16
%38 = load i32, i32* %25
%39 = mul nsw i32 %38, 64
%40 = load i32, i32* %26
%41 = add nsw i32 %39, %40
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, double* %37, i64 %42
%44 = load double, double* %43
%45 = load double*, double** %13
%46 = load i32, i32* %25
%47 = mul nsw i32 %46, 64
%48 = load i32, i32* %26
%49 = add nsw i32 %47, %48
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, double* %45, i64 %50
%52 = load double, double* %51
%53 = fneg double %44
%54 = call double @llvm.fmuladd.f64(double %53, double 1.000000e-02, double %52)
store double %54, double* %51
%55 = load double*, double** %13
%56 = load i32, i32* %25
%57 = mul nsw i32 %56, 64
%58 = load i32, i32* %26
%59 = add nsw i32 %57, %58
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, double* %55, i64 %60
%62 = load double, double* %61
%63 = load double*, double** %13
%64 = load i32, i32* %25
%65 = mul nsw i32 %64, 64
%66 = load i32, i32* %26
%67 = add nsw i32 %65, %66
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, double* %63, i64 %68
%70 = load double, double* %69
%71 = load double, double* %27
%72 = call double @llvm.fmuladd.f64(double %62, double %70, double %71)
store double %72, double* %27
br label %73
73: ; preds = %36
%74 = load i32, i32* %26
%75 = add nsw i32 %74, 1
store i32 %75, i32* %26
br label %33
76: ; preds = %33
br label %77
77: ; preds = %76
%78 = load i32, i32* %25
%79 = add nsw i32 %78, 1
store i32 %79, i32* %25
br label %29
80: ; preds = %29
store i32 0, i32* %25
br label %81
81: ; preds = %109, %80
%82 = load i32, i32* %25
%83 = icmp slt i32 %82, 64
br i1 %83, label %84, label %112
84: ; preds = %81
%85 = load double*, double** %22
%86 = load i32, i32* %25
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds double, double* %85, i64 %87
%89 = load double, double* %88
%90 = load double*, double** %19
%91 = load i32, i32* %25
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds double, double* %90, i64 %92
%94 = load double, double* %93
%95 = fneg double %89
%96 = call double @llvm.fmuladd.f64(double %95, double 1.000000e-02, double %94)
store double %96, double* %93
%97 = load double*, double** %19
%98 = load i32, i32* %25
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, double* %97, i64 %99
%101 = load double, double* %100
%102 = load double*, double** %19
%103 = load i32, i32* %25
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds double, double* %102, i64 %104
%106 = load double, double* %105
%107 = load double, double* %28
%108 = call double @llvm.fmuladd.f64(double %101, double %106, double %107)
store double %108, double* %28
br label %109
109: ; preds = %84
%110 = load i32, i32* %25
%111 = add nsw i32 %110, 1
store i32 %111, i32* %25
br label %81
112: ; preds = %81
%113 = load double, double* %27
%114 = call double @sqrt(double %113)
store double %114, double* %27
%115 = load double, double* %28
%116 = call double @sqrt(double %115)
store double %116, double* %28
store i32 0, i32* %25
br label %117
117: ; preds = %146, %112
%118 = load i32, i32* %25
%119 = icmp slt i32 %118, 13
br i1 %119, label %120, label %149
120: ; preds = %117
store i32 0, i32* %26
br label %121
121: ; preds = %142, %120
%122 = load i32, i32* %26
%123 = icmp slt i32 %122, 64
br i1 %123, label %124, label %145
124: ; preds = %121
%125 = load double*, double** %13
%126 = load i32, i32* %25
%127 = mul nsw i32 %126, 64
%128 = load i32, i32* %26
%129 = add nsw i32 %127, %128
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds double, double* %125, i64 %130
%132 = load double, double* %131
%133 = load double, double* %27
%134 = fdiv double %132, %133
%135 = load double*, double** %13
%136 = load i32, i32* %25
%137 = mul nsw i32 %136, 64
%138 = load i32, i32* %26
%139 = add nsw i32 %137, %138
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds double, double* %135, i64 %140
store double %134, double* %141
br label %142
142: ; preds = %124
%143 = load i32, i32* %26
%144 = add nsw i32 %143, 1
store i32 %144, i32* %26
br label %121
145: ; preds = %121
br label %146
146: ; preds = %145
%147 = load i32, i32* %25
%148 = add nsw i32 %147, 1
store i32 %148, i32* %25
br label %117
149: ; preds = %117
store i32 0, i32* %25
br label %150
150: ; preds = %165, %149
%151 = load i32, i32* %25
%152 = icmp slt i32 %151, 64
br i1 %152, label %153, label %168
153: ; preds = %150
%154 = load double*, double** %19
%155 = load i32, i32* %25
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds double, double* %154, i64 %156
%158 = load double, double* %157
%159 = load double, double* %28
%160 = fdiv double %158, %159
%161 = load double*, double** %19
%162 = load i32, i32* %25
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds double, double* %161, i64 %163
store double %160, double* %164
br label %165
165: ; preds = %153
%166 = load i32, i32* %25
%167 = add nsw i32 %166, 1
store i32 %167, i32* %25
br label %150
168: ; preds = %150
store double 0.000000e+00, double* %27
store double 0.000000e+00, double* %28
store i32 0, i32* %25
br label %169
169: ; preds = %217, %168
%170 = load i32, i32* %25
%171 = icmp slt i32 %170, 64
br i1 %171, label %172, label %220
172: ; preds = %169
store i32 0, i32* %26
br label %173
173: ; preds = %213, %172
%174 = load i32, i32* %26
%175 = icmp slt i32 %174, 64
br i1 %175, label %176, label %216
176: ; preds = %173
%177 = load double*, double** %17
%178 = load i32, i32* %25
%179 = mul nsw i32 %178, 64
%180 = load i32, i32* %26
%181 = add nsw i32 %179, %180
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds double, double* %177, i64 %182
%184 = load double, double* %183
%185 = load double*, double** %14
%186 = load i32, i32* %25
%187 = mul nsw i32 %186, 64
%188 = load i32, i32* %26
%189 = add nsw i32 %187, %188
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds double, double* %185, i64 %190
%192 = load double, double* %191
%193 = fneg double %184
%194 = call double @llvm.fmuladd.f64(double %193, double 1.000000e-02, double %192)
store double %194, double* %191
%195 = load double*, double** %14
%196 = load i32, i32* %25
%197 = mul nsw i32 %196, 64
%198 = load i32, i32* %26
%199 = add nsw i32 %197, %198
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds double, double* %195, i64 %200
%202 = load double, double* %201
%203 = load double*, double** %14
%204 = load i32, i32* %25
%205 = mul nsw i32 %204, 64
%206 = load i32, i32* %26
%207 = add nsw i32 %205, %206
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds double, double* %203, i64 %208
%210 = load double, double* %209
%211 = load double, double* %27
%212 = call double @llvm.fmuladd.f64(double %202, double %210, double %211)
store double %212, double* %27
br label %213
213: ; preds = %176
%214 = load i32, i32* %26
%215 = add nsw i32 %214, 1
store i32 %215, i32* %26
br label %173
216: ; preds = %173
br label %217
217: ; preds = %216
%218 = load i32, i32* %25
%219 = add nsw i32 %218, 1
store i32 %219, i32* %25
br label %169
220: ; preds = %169
store i32 0, i32* %25
br label %221
221: ; preds = %249, %220
%222 = load i32, i32* %25
%223 = icmp slt i32 %222, 64
br i1 %223, label %224, label %252
224: ; preds = %221
%225 = load double*, double** %23
%226 = load i32, i32* %25
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds double, double* %225, i64 %227
%229 = load double, double* %228
%230 = load double*, double** %20
%231 = load i32, i32* %25
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds double, double* %230, i64 %232
%234 = load double, double* %233
%235 = fneg double %229
%236 = call double @llvm.fmuladd.f64(double %235, double 1.000000e-02, double %234)
store double %236, double* %233
%237 = load double*, double** %20
%238 = load i32, i32* %25
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds double, double* %237, i64 %239
%241 = load double, double* %240
%242 = load double*, double** %20
%243 = load i32, i32* %25
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds double, double* %242, i64 %244
%246 = load double, double* %245
%247 = load double, double* %28
%248 = call double @llvm.fmuladd.f64(double %241, double %246, double %247)
store double %248, double* %28
br label %249
249: ; preds = %224
%250 = load i32, i32* %25
%251 = add nsw i32 %250, 1
store i32 %251, i32* %25
br label %221
252: ; preds = %221
%253 = load double, double* %27
%254 = call double @sqrt(double %253)
store double %254, double* %27
%255 = load double, double* %28
%256 = call double @sqrt(double %255)
store double %256, double* %28
store i32 0, i32* %25
br label %257
257: ; preds = %286, %252
%258 = load i32, i32* %25
%259 = icmp slt i32 %258, 64
br i1 %259, label %260, label %289
260: ; preds = %257
store i32 0, i32* %26
br label %261
261: ; preds = %282, %260
%262 = load i32, i32* %26
%263 = icmp slt i32 %262, 64
br i1 %263, label %264, label %285
264: ; preds = %261
%265 = load double*, double** %14
%266 = load i32, i32* %25
%267 = mul nsw i32 %266, 64
%268 = load i32, i32* %26
%269 = add nsw i32 %267, %268
%270 = sext i32 %269 to i64
%271 = getelementptr inbounds double, double* %265, i64 %270
%272 = load double, double* %271
%273 = load double, double* %27
%274 = fdiv double %272, %273
%275 = load double*, double** %14
%276 = load i32, i32* %25
%277 = mul nsw i32 %276, 64
%278 = load i32, i32* %26
%279 = add nsw i32 %277, %278
%280 = sext i32 %279 to i64
%281 = getelementptr inbounds double, double* %275, i64 %280
store double %274, double* %281
br label %282
282: ; preds = %264
%283 = load i32, i32* %26
%284 = add nsw i32 %283, 1
store i32 %284, i32* %26
br label %261
285: ; preds = %261
br label %286
286: ; preds = %285
%287 = load i32, i32* %25
%288 = add nsw i32 %287, 1
store i32 %288, i32* %25
br label %257
289: ; preds = %257
store i32 0, i32* %25
br label %290
290: ; preds = %305, %289
%291 = load i32, i32* %25
%292 = icmp slt i32 %291, 64
br i1 %292, label %293, label %308
293: ; preds = %290
%294 = load double*, double** %20
%295 = load i32, i32* %25
%296 = sext i32 %295 to i64
%297 = getelementptr inbounds double, double* %294, i64 %296
%298 = load double, double* %297
%299 = load double, double* %28
%300 = fdiv double %298, %299
%301 = load double*, double** %20
%302 = load i32, i32* %25
%303 = sext i32 %302 to i64
%304 = getelementptr inbounds double, double* %301, i64 %303
store double %300, double* %304
br label %305
305: ; preds = %293
%306 = load i32, i32* %25
%307 = add nsw i32 %306, 1
store i32 %307, i32* %25
br label %290
308: ; preds = %290
store double 0.000000e+00, double* %27
store double 0.000000e+00, double* %28
store i32 0, i32* %25
br label %309
309: ; preds = %357, %308
%310 = load i32, i32* %25
%311 = icmp slt i32 %310, 64
br i1 %311, label %312, label %360
312: ; preds = %309
store i32 0, i32* %26
br label %313
313: ; preds = %353, %312
%314 = load i32, i32* %26
%315 = icmp slt i32 %314, 3
br i1 %315, label %316, label %356
316: ; preds = %313
%317 = load double*, double** %18
%318 = load i32, i32* %25
%319 = mul nsw i32 %318, 3
%320 = load i32, i32* %26
%321 = add nsw i32 %319, %320
%322 = sext i32 %321 to i64
%323 = getelementptr inbounds double, double* %317, i64 %322
%324 = load double, double* %323
%325 = load double*, double** %15
%326 = load i32, i32* %25
%327 = mul nsw i32 %326, 3
%328 = load i32, i32* %26
%329 = add nsw i32 %327, %328
%330 = sext i32 %329 to i64
%331 = getelementptr inbounds double, double* %325, i64 %330
%332 = load double, double* %331
%333 = fneg double %324
%334 = call double @llvm.fmuladd.f64(double %333, double 1.000000e-02, double %332)
store double %334, double* %331
%335 = load double*, double** %15
%336 = load i32, i32* %25
%337 = mul nsw i32 %336, 3
%338 = load i32, i32* %26
%339 = add nsw i32 %337, %338
%340 = sext i32 %339 to i64
%341 = getelementptr inbounds double, double* %335, i64 %340
%342 = load double, double* %341
%343 = load double*, double** %15
%344 = load i32, i32* %25
%345 = mul nsw i32 %344, 3
%346 = load i32, i32* %26
%347 = add nsw i32 %345, %346
%348 = sext i32 %347 to i64
%349 = getelementptr inbounds double, double* %343, i64 %348
%350 = load double, double* %349
%351 = load double, double* %27
%352 = call double @llvm.fmuladd.f64(double %342, double %350, double %351)
store double %352, double* %27
br label %353
353: ; preds = %316
%354 = load i32, i32* %26
%355 = add nsw i32 %354, 1
store i32 %355, i32* %26
br label %313
356: ; preds = %313
br label %357
357: ; preds = %356
%358 = load i32, i32* %25
%359 = add nsw i32 %358, 1
store i32 %359, i32* %25
br label %309
360: ; preds = %309
store i32 0, i32* %25
br label %361
361: ; preds = %389, %360
%362 = load i32, i32* %25
%363 = icmp slt i32 %362, 3
br i1 %363, label %364, label %392
364: ; preds = %361
%365 = load double*, double** %24
%366 = load i32, i32* %25
%367 = sext i32 %366 to i64
%368 = getelementptr inbounds double, double* %365, i64 %367
%369 = load double, double* %368
%370 = load double*, double** %21
%371 = load i32, i32* %25
%372 = sext i32 %371 to i64
%373 = getelementptr inbounds double, double* %370, i64 %372
%374 = load double, double* %373
%375 = fneg double %369
%376 = call double @llvm.fmuladd.f64(double %375, double 1.000000e-02, double %374)
store double %376, double* %373
%377 = load double*, double** %21
%378 = load i32, i32* %25
%379 = sext i32 %378 to i64
%380 = getelementptr inbounds double, double* %377, i64 %379
%381 = load double, double* %380
%382 = load double*, double** %21
%383 = load i32, i32* %25
%384 = sext i32 %383 to i64
%385 = getelementptr inbounds double, double* %382, i64 %384
%386 = load double, double* %385
%387 = load double, double* %28
%388 = call double @llvm.fmuladd.f64(double %381, double %386, double %387)
store double %388, double* %28
br label %389
389: ; preds = %364
%390 = load i32, i32* %25
%391 = add nsw i32 %390, 1
store i32 %391, i32* %25
br label %361
392: ; preds = %361
%393 = load double, double* %27
%394 = call double @sqrt(double %393)
store double %394, double* %27
%395 = load double, double* %28
%396 = call double @sqrt(double %395)
store double %396, double* %28
store i32 0, i32* %25
br label %397
397: ; preds = %426, %392
%398 = load i32, i32* %25
%399 = icmp slt i32 %398, 64
br i1 %399, label %400, label %429
400: ; preds = %397
store i32 0, i32* %26
br label %401
401: ; preds = %422, %400
%402 = load i32, i32* %26
%403 = icmp slt i32 %402, 3
br i1 %403, label %404, label %425
404: ; preds = %401
%405 = load double*, double** %15
%406 = load i32, i32* %25
%407 = mul nsw i32 %406, 3
%408 = load i32, i32* %26
%409 = add nsw i32 %407, %408
%410 = sext i32 %409 to i64
%411 = getelementptr inbounds double, double* %405, i64 %410
%412 = load double, double* %411
%413 = load double, double* %27
%414 = fdiv double %412, %413
%415 = load double*, double** %15
%416 = load i32, i32* %25
%417 = mul nsw i32 %416, 3
%418 = load i32, i32* %26
%419 = add nsw i32 %417, %418
%420 = sext i32 %419 to i64
%421 = getelementptr inbounds double, double* %415, i64 %420
store double %414, double* %421
br label %422
422: ; preds = %404
%423 = load i32, i32* %26
%424 = add nsw i32 %423, 1
store i32 %424, i32* %26
br label %401
425: ; preds = %401
br label %426
426: ; preds = %425
%427 = load i32, i32* %25
%428 = add nsw i32 %427, 1
store i32 %428, i32* %25
br label %397
429: ; preds = %397
store i32 0, i32* %25
br label %430
430: ; preds = %445, %429
%431 = load i32, i32* %25
%432 = icmp slt i32 %431, 3
br i1 %432, label %433, label %448
433: ; preds = %430
%434 = load double*, double** %21
%435 = load i32, i32* %25
%436 = sext i32 %435 to i64
%437 = getelementptr inbounds double, double* %434, i64 %436
%438 = load double, double* %437
%439 = load double, double* %28
%440 = fdiv double %438, %439
%441 = load double*, double** %21
%442 = load i32, i32* %25
%443 = sext i32 %442 to i64
%444 = getelementptr inbounds double, double* %441, i64 %443
store double %440, double* %444
br label %445
445: ; preds = %433
%446 = load i32, i32* %25
%447 = add nsw i32 %446, 1
store i32 %447, i32* %25
br label %430
448: ; preds = %430
ret void
}

LLVM IR (-O2):
define void @update_weights(double* nocapture %0, double* nocapture %1, double* nocapture %2, double* nocapture %3, double* nocapture %4, double* nocapture %5, double* nocapture %6, double* nocapture %7, double* nocapture %8, double* nocapture %9, double* nocapture %10, double* nocapture %11) {
br label %13
13: ; preds = %12, %39
%14 = phi i64 [ 0, %12 ], [ %40, %39 ]
%15 = phi double [ 0.000000e+00, %12 ], [ %36, %39 ]
%16 = shl nsw i64 %14, 6
br label %17
17: ; preds = %17, %13
%18 = phi i64 [ 0, %13 ], [ %37, %17 ]
%19 = phi double [ %15, %13 ], [ %36, %17 ]
%20 = add nuw nsw i64 %18, %16
%21 = getelementptr inbounds double, double* %3, i64 %20
%22 = load double, double* %21
%23 = getelementptr inbounds double, double* %0, i64 %20
%24 = load double, double* %23
%25 = fneg double %22
%26 = tail call double @llvm.fmuladd.f64(double %25, double 1.000000e-02, double %24)
store double %26, double* %23
%27 = tail call double @llvm.fmuladd.f64(double %26, double %26, double %19)
%28 = or i64 %18, 1
%29 = add nuw nsw i64 %28, %16
%30 = getelementptr inbounds double, double* %3, i64 %29
%31 = load double, double* %30
%32 = getelementptr inbounds double, double* %0, i64 %29
%33 = load double, double* %32
%34 = fneg double %31
%35 = tail call double @llvm.fmuladd.f64(double %34, double 1.000000e-02, double %33)
store double %35, double* %32
%36 = tail call double @llvm.fmuladd.f64(double %35, double %35, double %27)
%37 = add nuw nsw i64 %18, 2
%38 = icmp eq i64 %37, 64
br i1 %38, label %39, label %17
39: ; preds = %17
%40 = add nuw nsw i64 %14, 1
%41 = icmp eq i64 %40, 13
br i1 %41, label %42, label %13
42: ; preds = %39, %42
%43 = phi i64 [ %60, %42 ], [ 0, %39 ]
%44 = phi double [ %59, %42 ], [ 0.000000e+00, %39 ]
%45 = getelementptr inbounds double, double* %9, i64 %43
%46 = load double, double* %45
%47 = getelementptr inbounds double, double* %6, i64 %43
%48 = load double, double* %47
%49 = fneg double %46
%50 = tail call double @llvm.fmuladd.f64(double %49, double 1.000000e-02, double %48)
store double %50, double* %47
%51 = tail call double @llvm.fmuladd.f64(double %50, double %50, double %44)
%52 = or i64 %43, 1
%53 = getelementptr inbounds double, double* %9, i64 %52
%54 = load double, double* %53
%55 = getelementptr inbounds double, double* %6, i64 %52
%56 = load double, double* %55
%57 = fneg double %54
%58 = tail call double @llvm.fmuladd.f64(double %57, double 1.000000e-02, double %56)
store double %58, double* %55
%59 = tail call double @llvm.fmuladd.f64(double %58, double %58, double %51)
%60 = add nuw nsw i64 %43, 2
%61 = icmp eq i64 %60, 64
br i1 %61, label %62, label %42
62: ; preds = %42
%63 = tail call double @sqrt(double %36)
%64 = tail call double @sqrt(double %59)
%65 = insertelement <2 x double> poison, double %63, i64 0
%66 = shufflevector <2 x double> %65, <2 x double> poison, <2 x i32> zeroinitializer
br label %67
67: ; preds = %62, %87
%68 = phi i64 [ 0, %62 ], [ %88, %87 ]
%69 = shl nsw i64 %68, 6
br label %70
70: ; preds = %70, %67
%71 = phi i64 [ 0, %67 ], [ %85, %70 ]
%72 = add nuw nsw i64 %71, %69
%73 = getelementptr inbounds double, double* %0, i64 %72
%74 = bitcast double* %73 to <2 x double>*
%75 = load <2 x double>, <2 x double>* %74
%76 = fdiv <2 x double> %75, %66
%77 = bitcast double* %73 to <2 x double>*
store <2 x double> %76, <2 x double>* %77
%78 = or i64 %71, 2
%79 = add nuw nsw i64 %78, %69
%80 = getelementptr inbounds double, double* %0, i64 %79
%81 = bitcast double* %80 to <2 x double>*
%82 = load <2 x double>, <2 x double>* %81
%83 = fdiv <2 x double> %82, %66
%84 = bitcast double* %80 to <2 x double>*
store <2 x double> %83, <2 x double>* %84
%85 = add nuw nsw i64 %71, 4
%86 = icmp eq i64 %85, 64
br i1 %86, label %87, label %70
87: ; preds = %70
%88 = add nuw nsw i64 %68, 1
%89 = icmp eq i64 %88, 13
br i1 %89, label %90, label %67
90: ; preds = %87
%91 = insertelement <2 x double> poison, double %64, i64 0
%92 = shufflevector <2 x double> %91, <2 x double> poison, <2 x i32> zeroinitializer
br label %93
93: ; preds = %93, %90
%94 = phi i64 [ 0, %90 ], [ %106, %93 ]
%95 = getelementptr inbounds double, double* %6, i64 %94
%96 = bitcast double* %95 to <2 x double>*
%97 = load <2 x double>, <2 x double>* %96
%98 = fdiv <2 x double> %97, %92
%99 = bitcast double* %95 to <2 x double>*
store <2 x double> %98, <2 x double>* %99
%100 = or i64 %94, 2
%101 = getelementptr inbounds double, double* %6, i64 %100
%102 = bitcast double* %101 to <2 x double>*
%103 = load <2 x double>, <2 x double>* %102
%104 = fdiv <2 x double> %103, %92
%105 = bitcast double* %101 to <2 x double>*
store <2 x double> %104, <2 x double>* %105
%106 = add nuw nsw i64 %94, 4
%107 = icmp eq i64 %106, 64
br i1 %107, label %108, label %93
108: ; preds = %93, %134
%109 = phi i64 [ %135, %134 ], [ 0, %93 ]
%110 = phi double [ %131, %134 ], [ 0.000000e+00, %93 ]
%111 = shl nsw i64 %109, 6
br label %112
112: ; preds = %112, %108
%113 = phi i64 [ 0, %108 ], [ %132, %112 ]
%114 = phi double [ %110, %108 ], [ %131, %112 ]
%115 = add nuw nsw i64 %113, %111
%116 = getelementptr inbounds double, double* %4, i64 %115
%117 = load double, double* %116
%118 = getelementptr inbounds double, double* %1, i64 %115
%119 = load double, double* %118
%120 = fneg double %117
%121 = tail call double @llvm.fmuladd.f64(double %120, double 1.000000e-02, double %119)
store double %121, double* %118
%122 = tail call double @llvm.fmuladd.f64(double %121, double %121, double %114)
%123 = or i64 %113, 1
%124 = add nuw nsw i64 %123, %111
%125 = getelementptr inbounds double, double* %4, i64 %124
%126 = load double, double* %125
%127 = getelementptr inbounds double, double* %1, i64 %124
%128 = load double, double* %127
%129 = fneg double %126
%130 = tail call double @llvm.fmuladd.f64(double %129, double 1.000000e-02, double %128)
store double %130, double* %127
%131 = tail call double @llvm.fmuladd.f64(double %130, double %130, double %122)
%132 = add nuw nsw i64 %113, 2
%133 = icmp eq i64 %132, 64
br i1 %133, label %134, label %112
134: ; preds = %112
%135 = add nuw nsw i64 %109, 1
%136 = icmp eq i64 %135, 64
br i1 %136, label %137, label %108
137: ; preds = %134, %137
%138 = phi i64 [ %155, %137 ], [ 0, %134 ]
%139 = phi double [ %154, %137 ], [ 0.000000e+00, %134 ]
%140 = getelementptr inbounds double, double* %10, i64 %138
%141 = load double, double* %140
%142 = getelementptr inbounds double, double* %7, i64 %138
%143 = load double, double* %142
%144 = fneg double %141
%145 = tail call double @llvm.fmuladd.f64(double %144, double 1.000000e-02, double %143)
store double %145, double* %142
%146 = tail call double @llvm.fmuladd.f64(double %145, double %145, double %139)
%147 = or i64 %138, 1
%148 = getelementptr inbounds double, double* %10, i64 %147
%149 = load double, double* %148
%150 = getelementptr inbounds double, double* %7, i64 %147
%151 = load double, double* %150
%152 = fneg double %149
%153 = tail call double @llvm.fmuladd.f64(double %152, double 1.000000e-02, double %151)
store double %153, double* %150
%154 = tail call double @llvm.fmuladd.f64(double %153, double %153, double %146)
%155 = add nuw nsw i64 %138, 2
%156 = icmp eq i64 %155, 64
br i1 %156, label %157, label %137
157: ; preds = %137
%158 = tail call double @sqrt(double %131)
%159 = tail call double @sqrt(double %154)
%160 = insertelement <2 x double> poison, double %158, i64 0
%161 = shufflevector <2 x double> %160, <2 x double> poison, <2 x i32> zeroinitializer
br label %162
162: ; preds = %157, %182
%163 = phi i64 [ 0, %157 ], [ %183, %182 ]
%164 = shl nsw i64 %163, 6
br label %165
165: ; preds = %165, %162
%166 = phi i64 [ 0, %162 ], [ %180, %165 ]
%167 = add nuw nsw i64 %166, %164
%168 = getelementptr inbounds double, double* %1, i64 %167
%169 = bitcast double* %168 to <2 x double>*
%170 = load <2 x double>, <2 x double>* %169
%171 = fdiv <2 x double> %170, %161
%172 = bitcast double* %168 to <2 x double>*
store <2 x double> %171, <2 x double>* %172
%173 = or i64 %166, 2
%174 = add nuw nsw i64 %173, %164
%175 = getelementptr inbounds double, double* %1, i64 %174
%176 = bitcast double* %175 to <2 x double>*
%177 = load <2 x double>, <2 x double>* %176
%178 = fdiv <2 x double> %177, %161
%179 = bitcast double* %175 to <2 x double>*
store <2 x double> %178, <2 x double>* %179
%180 = add nuw nsw i64 %166, 4
%181 = icmp eq i64 %180, 64
br i1 %181, label %182, label %165
182: ; preds = %165
%183 = add nuw nsw i64 %163, 1
%184 = icmp eq i64 %183, 64
br i1 %184, label %185, label %162
185: ; preds = %182
%186 = insertelement <2 x double> poison, double %159, i64 0
%187 = shufflevector <2 x double> %186, <2 x double> poison, <2 x i32> zeroinitializer
br label %188
188: ; preds = %188, %185
%189 = phi i64 [ 0, %185 ], [ %201, %188 ]
%190 = getelementptr inbounds double, double* %7, i64 %189
%191 = bitcast double* %190 to <2 x double>*
%192 = load <2 x double>, <2 x double>* %191
%193 = fdiv <2 x double> %192, %187
%194 = bitcast double* %190 to <2 x double>*
store <2 x double> %193, <2 x double>* %194
%195 = or i64 %189, 2
%196 = getelementptr inbounds double, double* %7, i64 %195
%197 = bitcast double* %196 to <2 x double>*
%198 = load <2 x double>, <2 x double>* %197
%199 = fdiv <2 x double> %198, %187
%200 = bitcast double* %196 to <2 x double>*
store <2 x double> %199, <2 x double>* %200
%201 = add nuw nsw i64 %189, 4
%202 = icmp eq i64 %201, 64
br i1 %202, label %203, label %188
203: ; preds = %188, %203
%204 = phi i64 [ %230, %203 ], [ 0, %188 ]
%205 = phi double [ %229, %203 ], [ 0.000000e+00, %188 ]
%206 = mul nuw nsw i64 %204, 3
%207 = getelementptr inbounds double, double* %5, i64 %206
%208 = load double, double* %207
%209 = getelementptr inbounds double, double* %2, i64 %206
%210 = load double, double* %209
%211 = fneg double %208
%212 = tail call double @llvm.fmuladd.f64(double %211, double 1.000000e-02, double %210)
store double %212, double* %209
%213 = tail call double @llvm.fmuladd.f64(double %212, double %212, double %205)
%214 = add nuw nsw i64 %206, 1
%215 = getelementptr inbounds double, double* %5, i64 %214
%216 = load double, double* %215
%217 = getelementptr inbounds double, double* %2, i64 %214
%218 = load double, double* %217
%219 = fneg double %216
%220 = tail call double @llvm.fmuladd.f64(double %219, double 1.000000e-02, double %218)
store double %220, double* %217
%221 = tail call double @llvm.fmuladd.f64(double %220, double %220, double %213)
%222 = add nuw nsw i64 %206, 2
%223 = getelementptr inbounds double, double* %5, i64 %222
%224 = load double, double* %223
%225 = getelementptr inbounds double, double* %2, i64 %222
%226 = load double, double* %225
%227 = fneg double %224
%228 = tail call double @llvm.fmuladd.f64(double %227, double 1.000000e-02, double %226)
store double %228, double* %225
%229 = tail call double @llvm.fmuladd.f64(double %228, double %228, double %221)
%230 = add nuw nsw i64 %204, 1
%231 = icmp eq i64 %230, 64
br i1 %231, label %232, label %203
232: ; preds = %203
%233 = load double, double* %11
%234 = load double, double* %8
%235 = fneg double %233
%236 = tail call double @llvm.fmuladd.f64(double %235, double 1.000000e-02, double %234)
store double %236, double* %8
%237 = tail call double @llvm.fmuladd.f64(double %236, double %236, double 0.000000e+00)
%238 = getelementptr inbounds double, double* %11, i64 1
%239 = load double, double* %238
%240 = getelementptr inbounds double, double* %8, i64 1
%241 = load double, double* %240
%242 = fneg double %239
%243 = tail call double @llvm.fmuladd.f64(double %242, double 1.000000e-02, double %241)
store double %243, double* %240
%244 = tail call double @llvm.fmuladd.f64(double %243, double %243, double %237)
%245 = getelementptr inbounds double, double* %11, i64 2
%246 = load double, double* %245
%247 = getelementptr inbounds double, double* %8, i64 2
%248 = load double, double* %247
%249 = fneg double %246
%250 = tail call double @llvm.fmuladd.f64(double %249, double 1.000000e-02, double %248)
store double %250, double* %247
%251 = tail call double @llvm.fmuladd.f64(double %250, double %250, double %244)
%252 = tail call double @sqrt(double %229)
%253 = tail call double @sqrt(double %251)
%254 = insertelement <2 x double> poison, double %252, i64 0
%255 = shufflevector <2 x double> %254, <2 x double> poison, <2 x i32> zeroinitializer
br label %256
256: ; preds = %256, %232
%257 = phi i64 [ 0, %232 ], [ %273, %256 ]
%258 = mul nuw nsw i64 %257, 3
%259 = getelementptr inbounds double, double* %2, i64 %258
%260 = bitcast double* %259 to <6 x double>*
%261 = load <6 x double>, <6 x double>* %260
%262 = shufflevector <6 x double> %261, <6 x double> poison, <2 x i32> <i32 0, i32 3>
%263 = shufflevector <6 x double> %261, <6 x double> poison, <2 x i32> <i32 1, i32 4>
%264 = shufflevector <6 x double> %261, <6 x double> poison, <2 x i32> <i32 2, i32 5>
%265 = fdiv <2 x double> %262, %255
%266 = fdiv <2 x double> %263, %255
%267 = fdiv <2 x double> %264, %255
%268 = getelementptr inbounds double, double* %2, i64 %258
%269 = bitcast double* %268 to <6 x double>*
%270 = shufflevector <2 x double> %265, <2 x double> %266, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
%271 = shufflevector <2 x double> %267, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 undef, i32 undef>
%272 = shufflevector <4 x double> %270, <4 x double> %271, <6 x i32> <i32 0, i32 2, i32 4, i32 1, i32 3, i32 5>
store <6 x double> %272, <6 x double>* %269
%273 = add nuw i64 %257, 2
%274 = icmp eq i64 %273, 64
br i1 %274, label %275, label %256
275: ; preds = %256
%276 = bitcast double* %8 to <2 x double>*
%277 = load <2 x double>, <2 x double>* %276
%278 = insertelement <2 x double> poison, double %253, i64 0
%279 = shufflevector <2 x double> %278, <2 x double> poison, <2 x i32> zeroinitializer
%280 = fdiv <2 x double> %277, %279
%281 = bitcast double* %8 to <2 x double>*
store <2 x double> %280, <2 x double>* %281
%282 = load double, double* %247
%283 = fdiv double %282, %253
store double %283, double* %247
ret void
}