#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 */
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
void calcul_matrice_covariance(int nb_dimensions, int nb_points,
                               double **points, double **matrice_covariance) {
  int i, j, k;
  double *moyennes, diff;
  moyennes = (double *)malloc(sizeof(double) * nb_dimensions);
  for (j = 0; j < nb_dimensions; j++) {
    moyennes[j] = 0;
  }
  for (i = 0; i < nb_points; i++) {
    for (j = 0; j < nb_dimensions; j++) {
      moyennes[j] += points[i][j];
    }
  }
  for (j = 0; j < nb_dimensions; j++) {
    moyennes[j] /= (double)nb_points;
  }
  for (i = 0; i < nb_dimensions; i++) {
    for (j = 0; j < nb_dimensions; j++) {
      matrice_covariance[i][j] = 0;
    }
  }
  for (k = 0; k < nb_points; k++) {
    for (i = 0; i < nb_dimensions; i++) {
      diff = points[k][i] - moyennes[i];
      for (j = i; j < nb_dimensions; j++) {
        matrice_covariance[i][j] += diff * (points[k][j] - moyennes[j]);
      }
    }
  }
  for (i = 0; i < nb_dimensions; i++) {
    for (j = i; j < nb_dimensions; j++) {
      matrice_covariance[i][j] /= (double)(nb_points - 1);
      matrice_covariance[j][i] = matrice_covariance[i][j];
    }
  }
  free(moyennes);
}


x86 assembly (clang, -O0):
<calcul_matrice_covariance>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
movslq -0x4(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    117a <calcul_matrice_covariance+0x5a>
mov    -0x30(%rbp),%rax
movslq -0x20(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1150 <calcul_matrice_covariance+0x30>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11e8 <calcul_matrice_covariance+0xc8>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11d5 <calcul_matrice_covariance+0xb5>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x20(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1194 <calcul_matrice_covariance+0x74>
jmp    11da <calcul_matrice_covariance+0xba>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1181 <calcul_matrice_covariance+0x61>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1224 <calcul_matrice_covariance+0x104>
cvtsi2sdl -0x8(%rbp),%xmm1
mov    -0x30(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11ef <calcul_matrice_covariance+0xcf>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1283 <calcul_matrice_covariance+0x163>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1270 <calcul_matrice_covariance+0x150>
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    123e <calcul_matrice_covariance+0x11e>
jmp    1275 <calcul_matrice_covariance+0x155>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    122b <calcul_matrice_covariance+0x10b>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    135f <calcul_matrice_covariance+0x23f>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    134c <calcul_matrice_covariance+0x22c>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1339 <calcul_matrice_covariance+0x219>
movsd  -0x38(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x30(%rbp),%rax
movslq -0x20(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm2
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12d6 <calcul_matrice_covariance+0x1b6>
jmp    133e <calcul_matrice_covariance+0x21e>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    129d <calcul_matrice_covariance+0x17d>
jmp    1351 <calcul_matrice_covariance+0x231>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    128a <calcul_matrice_covariance+0x16a>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13f7 <calcul_matrice_covariance+0x2d7>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13e4 <calcul_matrice_covariance+0x2c4>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm1
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1378 <calcul_matrice_covariance+0x258>
jmp    13e9 <calcul_matrice_covariance+0x2c9>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1366 <calcul_matrice_covariance+0x246>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calcul_matrice_covariance>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rcx,0x8(%rsp)
mov    %rdx,0x30(%rsp)
mov    %esi,%r12d
mov    %edi,%r13d
lea    0x0(,%r13,8),%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
mov    %r13d,%r15d
test   %r13d,%r13d
jle    1178 <calcul_matrice_covariance+0x48>
lea    0x0(,%r15,8),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   1040 <memset@plt>
mov    %r12d,%eax
mov    %rax,0x38(%rsp)
test   %r12d,%r12d
jle    1349 <calcul_matrice_covariance+0x219>
lea    (%rbx,%r15,8),%r10
mov    %r15d,%r14d
and    $0xfffffffc,%r14d
lea    -0x4(%r14),%r9
mov    %r9,%r11
shr    $0x2,%r11
add    $0x1,%r11
mov    %r11,%r8
and    $0xfffffffffffffffe,%r8
mov    %r15d,%eax
and    $0x3,%eax
xor    %edi,%edi
jmp    11cf <calcul_matrice_covariance+0x9f>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rdi
cmp    0x38(%rsp),%rdi
je     1349 <calcul_matrice_covariance+0x219>
test   %r13d,%r13d
jle    11c0 <calcul_matrice_covariance+0x90>
mov    0x30(%rsp),%rcx
mov    (%rcx,%rdi,8),%rdx
cmp    $0x4,%r13d
jb     11f9 <calcul_matrice_covariance+0xc9>
lea    (%rdx,%r15,8),%rcx
cmp    %rcx,%rbx
jae    1283 <calcul_matrice_covariance+0x153>
cmp    %r10,%rdx
jae    1283 <calcul_matrice_covariance+0x153>
xor    %ecx,%ecx
mov    %rcx,%rsi
not    %rsi
add    %r15,%rsi
test   %rax,%rax
je     1229 <calcul_matrice_covariance+0xf9>
mov    %rax,%rbp
nopl   0x0(%rax)
movsd  (%rdx,%rcx,8),%xmm0
addsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rbp
jne    1210 <calcul_matrice_covariance+0xe0>
cmp    $0x3,%rsi
jb     11c0 <calcul_matrice_covariance+0x90>
nop
movsd  (%rdx,%rcx,8),%xmm0
addsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
movsd  0x8(%rdx,%rcx,8),%xmm0
addsd  0x8(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rcx,8)
movsd  0x10(%rdx,%rcx,8),%xmm0
addsd  0x10(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x10(%rbx,%rcx,8)
movsd  0x18(%rdx,%rcx,8),%xmm0
addsd  0x18(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x18(%rbx,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%r15
jne    1230 <calcul_matrice_covariance+0x100>
jmp    11c0 <calcul_matrice_covariance+0x90>
test   %r9,%r9
je     133f <calcul_matrice_covariance+0x20f>
mov    %r8,%rsi
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movupd (%rdx,%rcx,8),%xmm0
movupd 0x10(%rdx,%rcx,8),%xmm1
movupd (%rbx,%rcx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%rbx,%rcx,8),%xmm0
addpd  %xmm1,%xmm0
movupd 0x20(%rbx,%rcx,8),%xmm1
movupd 0x30(%rbx,%rcx,8),%xmm3
movupd %xmm2,(%rbx,%rcx,8)
movupd %xmm0,0x10(%rbx,%rcx,8)
movupd 0x20(%rdx,%rcx,8),%xmm0
addpd  %xmm1,%xmm0
movupd 0x30(%rdx,%rcx,8),%xmm1
addpd  %xmm3,%xmm1
movupd %xmm0,0x20(%rbx,%rcx,8)
movupd %xmm1,0x30(%rbx,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rsi
jne    12a0 <calcul_matrice_covariance+0x170>
test   $0x1,%r11b
je     132e <calcul_matrice_covariance+0x1fe>
movupd (%rdx,%rcx,8),%xmm0
movupd 0x10(%rdx,%rcx,8),%xmm1
movupd (%rbx,%rcx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%rbx,%rcx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,(%rbx,%rcx,8)
movupd %xmm0,0x10(%rbx,%rcx,8)
mov    %r14,%rcx
cmp    %r15,%r14
je     11c0 <calcul_matrice_covariance+0x90>
jmp    11fb <calcul_matrice_covariance+0xcb>
xor    %ecx,%ecx
test   $0x1,%r11b
jne    1305 <calcul_matrice_covariance+0x1d5>
jmp    132e <calcul_matrice_covariance+0x1fe>
mov    %r13,0x20(%rsp)
test   %r13d,%r13d
mov    %r12d,0x14(%rsp)
jle    14f9 <calcul_matrice_covariance+0x3c9>
xorps  %xmm0,%xmm0
cvtsi2sd %r12d,%xmm0
mov    0x20(%rsp),%rdi
cmp    $0x1,%edi
jne    1372 <calcul_matrice_covariance+0x242>
xor    %eax,%eax
jmp    13e0 <calcul_matrice_covariance+0x2b0>
mov    %r15d,%eax
and    $0xfffffffe,%eax
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    -0x2(%rax),%rdx
mov    %rdx,%rcx
shr    %rcx
add    $0x1,%rcx
test   %rdx,%rdx
je     17f8 <calcul_matrice_covariance+0x6c8>
mov    %rcx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %edx,%edx
movupd (%rbx,%rdx,8),%xmm2
movupd 0x10(%rbx,%rdx,8),%xmm3
divpd  %xmm1,%xmm2
movupd %xmm2,(%rbx,%rdx,8)
divpd  %xmm1,%xmm3
movupd %xmm3,0x10(%rbx,%rdx,8)
add    $0x4,%rdx
add    $0xfffffffffffffffe,%rsi
jne    13a0 <calcul_matrice_covariance+0x270>
test   $0x1,%cl
je     13db <calcul_matrice_covariance+0x2ab>
movupd (%rbx,%rdx,8),%xmm2
divpd  %xmm1,%xmm2
movupd %xmm2,(%rbx,%rdx,8)
cmp    %r15,%rax
je     13f7 <calcul_matrice_covariance+0x2c7>
movsd  (%rbx,%rax,8),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%rax,8)
add    $0x1,%rax
cmp    %rax,%r15
jne    13e0 <calcul_matrice_covariance+0x2b0>
test   %edi,%edi
jle    14f9 <calcul_matrice_covariance+0x3c9>
lea    0x0(,%r15,8),%r13
lea    -0x1(%r15),%rax
mov    %r15d,%ecx
and    $0x7,%ecx
mov    %rcx,0x18(%rsp)
cmp    $0x7,%rax
jae    1423 <calcul_matrice_covariance+0x2f3>
xor    %ebp,%ebp
jmp    14c0 <calcul_matrice_covariance+0x390>
mov    %r15d,%r12d
and    $0xfffffff8,%r12d
xor    %ebp,%ebp
mov    0x8(%rsp),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbp,8),%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1040 <memset@plt>
mov    0x8(%r14,%rbp,8),%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1040 <memset@plt>
mov    0x10(%r14,%rbp,8),%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1040 <memset@plt>
mov    0x18(%r14,%rbp,8),%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1040 <memset@plt>
mov    0x20(%r14,%rbp,8),%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1040 <memset@plt>
mov    0x28(%r14,%rbp,8),%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1040 <memset@plt>
mov    0x30(%r14,%rbp,8),%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1040 <memset@plt>
mov    0x38(%r14,%rbp,8),%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1040 <memset@plt>
add    $0x8,%rbp
cmp    %rbp,%r12
jne    1440 <calcul_matrice_covariance+0x310>
cmpq   $0x0,0x18(%rsp)
mov    0x14(%rsp),%r12d
je     14f9 <calcul_matrice_covariance+0x3c9>
mov    0x8(%rsp),%rax
lea    (%rax,%rbp,8),%r14
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbp,8),%rdi
xor    %esi,%esi
mov    %r13,%rdx
call   1040 <memset@plt>
add    $0x1,%rbp
cmp    %rbp,0x18(%rsp)
jne    14e0 <calcul_matrice_covariance+0x3b0>
test   %r12d,%r12d
mov    0x8(%rsp),%r14
jle    1757 <calcul_matrice_covariance+0x627>
lea    (%rbx,%r15,8),%rax
mov    %rax,0x50(%rsp)
mov    %r15,%rax
neg    %rax
mov    %rax,0x60(%rsp)
lea    -0x1(%r15),%rax
mov    %rax,0x48(%rsp)
lea    0x18(%rbx),%rax
mov    %rax,0x40(%rsp)
xor    %eax,%eax
mov    %rax,0x28(%rsp)
jmp    155c <calcul_matrice_covariance+0x42c>
cs nopw 0x0(%rax,%rax,1)
mov    0x28(%rsp),%rcx
add    $0x1,%rcx
mov    %rcx,%rax
mov    %rcx,0x28(%rsp)
cmp    0x38(%rsp),%rcx
je     1757 <calcul_matrice_covariance+0x627>
cmpl   $0x0,0x20(%rsp)
jle    1540 <calcul_matrice_covariance+0x410>
mov    0x30(%rsp),%rax
mov    0x28(%rsp),%rcx
mov    (%rax,%rcx,8),%rbp
lea    0x0(,%r15,8),%rax
add    %rbp,%rax
mov    %rax,0x58(%rsp)
lea    0x18(%rbp),%rsi
mov    $0x3,%eax
mov    0x40(%rsp),%rdx
mov    0x48(%rsp),%r11
xor    %r9d,%r9d
jmp    15b9 <calcul_matrice_covariance+0x489>
nopl   0x0(%rax)
add    $0x1,%r9
add    $0xffffffffffffffff,%r11
add    $0x8,%rsi
add    $0x8,%rdx
add    $0x1,%rax
cmp    %r15,%r9
je     1540 <calcul_matrice_covariance+0x410>
lea    0x1(%r9),%r13
movsd  0x0(%rbp,%r9,8),%xmm0
subsd  (%rbx,%r9,8),%xmm0
mov    (%r14,%r9,8),%r12
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
addsd  (%r12,%r9,8),%xmm1
movsd  %xmm1,(%r12,%r9,8)
cmp    %r15,%r13
je     15a0 <calcul_matrice_covariance+0x470>
mov    %r9,%r10
not    %r10
add    %r15,%r10
cmp    $0x4,%r10
jb     16d2 <calcul_matrice_covariance+0x5a2>
lea    0x8(,%r9,8),%r14
add    %rbp,%r14
lea    0x8(%rbx,%r9,8),%rcx
mov    %rcx,0x18(%rsp)
lea    (%r12,%r13,8),%rdi
lea    (%r12,%r15,8),%rcx
cmp    0x58(%rsp),%rdi
setb   0x7(%rsp)
cmp    %rcx,%r14
setb   %r8b
cmp    0x50(%rsp),%rdi
setb   %r14b
cmp    %rcx,0x18(%rsp)
setb   %dil
test   %r8b,0x7(%rsp)
jne    16cd <calcul_matrice_covariance+0x59d>
and    %dil,%r14b
jne    16cd <calcul_matrice_covariance+0x59d>
mov    %r11,%r8
and    $0xfffffffffffffffc,%r8
mov    %r10,%r14
and    $0xfffffffffffffffc,%r14
add    %r14,%r13
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    (%r12,%rax,8),%rdi
xor    %ecx,%ecx
nopl   (%rax)
movupd -0x10(%rsi,%rcx,8),%xmm2
movupd (%rsi,%rcx,8),%xmm3
movupd -0x10(%rdx,%rcx,8),%xmm4
subpd  %xmm4,%xmm2
movupd (%rdx,%rcx,8),%xmm4
subpd  %xmm4,%xmm3
movupd -0x10(%rdi,%rcx,8),%xmm4
movupd (%rdi,%rcx,8),%xmm5
mulpd  %xmm1,%xmm2
addpd  %xmm4,%xmm2
mulpd  %xmm1,%xmm3
addpd  %xmm5,%xmm3
movupd %xmm2,-0x10(%rdi,%rcx,8)
movupd %xmm3,(%rdi,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%r8
jne    1670 <calcul_matrice_covariance+0x540>
cmp    %r14,%r10
mov    0x8(%rsp),%r14
je     15a0 <calcul_matrice_covariance+0x470>
jmp    16d2 <calcul_matrice_covariance+0x5a2>
mov    0x8(%rsp),%r14
mov    %r15d,%ecx
sub    %r13d,%ecx
mov    %r13,%rdi
test   $0x1,%cl
je     1701 <calcul_matrice_covariance+0x5d1>
movsd  0x0(%rbp,%r13,8),%xmm1
subsd  (%rbx,%r13,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%r12,%r13,8),%xmm1
movsd  %xmm1,(%r12,%r13,8)
lea    0x1(%r13),%rdi
not    %r13
cmp    0x60(%rsp),%r13
je     15a0 <calcul_matrice_covariance+0x470>
nop
movsd  0x0(%rbp,%rdi,8),%xmm1
subsd  (%rbx,%rdi,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%r12,%rdi,8),%xmm1
movsd  %xmm1,(%r12,%rdi,8)
movsd  0x8(%rbp,%rdi,8),%xmm1
subsd  0x8(%rbx,%rdi,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x8(%r12,%rdi,8),%xmm1
movsd  %xmm1,0x8(%r12,%rdi,8)
add    $0x2,%rdi
cmp    %rdi,%r15
jne    1710 <calcul_matrice_covariance+0x5e0>
jmp    15a0 <calcul_matrice_covariance+0x470>
cmpl   $0x0,0x20(%rsp)
jle    17e2 <calcul_matrice_covariance+0x6b2>
mov    0x14(%rsp),%eax
add    $0xffffffff,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
xor    %edx,%edx
mov    %r14,%rax
mov    %r15,%rcx
jmp    1790 <calcul_matrice_covariance+0x660>
nopw   0x0(%rax,%rax,1)
add    $0xffffffffffffffff,%rcx
add    $0x8,%rax
mov    %r8,%rdx
cmp    %r15,%r8
je     17e2 <calcul_matrice_covariance+0x6b2>
mov    (%r14,%rdx,8),%rdi
movsd  (%rdi,%rdx,8),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rdi,%rdx,8)
lea    0x1(%rdx),%r8
cmp    %r15,%r8
je     1780 <calcul_matrice_covariance+0x650>
lea    (%rdi,%rdx,8),%rdi
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%rax,%rbp,8),%rsi
movsd  (%rdi,%rbp,8),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rdi,%rbp,8)
movsd  %xmm1,(%rsi,%rdx,8)
add    $0x1,%rbp
cmp    %rbp,%rcx
jne    17c0 <calcul_matrice_covariance+0x690>
jmp    1780 <calcul_matrice_covariance+0x650>
mov    %rbx,%rdi
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>
xor    %edx,%edx
test   $0x1,%cl
jne    13cd <calcul_matrice_covariance+0x29d>
jmp    13db <calcul_matrice_covariance+0x2ab>

LLVM IR (-O0):
define void @calcul_matrice_covariance(i32 %0, i32 %1, double** %2, double** %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca double**
%8 = alloca double**
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca double*
%13 = alloca double
store i32 %0, i32* %5
store i32 %1, i32* %6
store double** %2, double*** %7
store double** %3, double*** %8
%14 = load i32, i32* %5
%15 = sext i32 %14 to i64
%16 = mul i64 8, %15
%17 = trunc i64 %16 to i32
%18 = call i64 @malloc(i32 %17)
%19 = inttoptr i64 %18 to double*
store double* %19, double** %12
store i32 0, i32* %10
br label %20
20: ; preds = %29, %4
%21 = load i32, i32* %10
%22 = load i32, i32* %5
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %32
24: ; preds = %20
%25 = load double*, double** %12
%26 = load i32, i32* %10
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, double* %25, i64 %27
store double 0.000000e+00, double* %28
br label %29
29: ; preds = %24
%30 = load i32, i32* %10
%31 = add nsw i32 %30, 1
store i32 %31, i32* %10
br label %20
32: ; preds = %20
store i32 0, i32* %9
br label %33
33: ; preds = %62, %32
%34 = load i32, i32* %9
%35 = load i32, i32* %6
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %65
37: ; preds = %33
store i32 0, i32* %10
br label %38
38: ; preds = %58, %37
%39 = load i32, i32* %10
%40 = load i32, i32* %5
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %61
42: ; preds = %38
%43 = load double**, double*** %7
%44 = load i32, i32* %9
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double*, double** %43, i64 %45
%47 = load double*, double** %46
%48 = load i32, i32* %10
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds double, double* %47, i64 %49
%51 = load double, double* %50
%52 = load double*, double** %12
%53 = load i32, i32* %10
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, double* %52, i64 %54
%56 = load double, double* %55
%57 = fadd double %56, %51
store double %57, double* %55
br label %58
58: ; preds = %42
%59 = load i32, i32* %10
%60 = add nsw i32 %59, 1
store i32 %60, i32* %10
br label %38
61: ; preds = %38
br label %62
62: ; preds = %61
%63 = load i32, i32* %9
%64 = add nsw i32 %63, 1
store i32 %64, i32* %9
br label %33
65: ; preds = %33
store i32 0, i32* %10
br label %66
66: ; preds = %79, %65
%67 = load i32, i32* %10
%68 = load i32, i32* %5
%69 = icmp slt i32 %67, %68
br i1 %69, label %70, label %82
70: ; preds = %66
%71 = load i32, i32* %6
%72 = sitofp i32 %71 to double
%73 = load double*, double** %12
%74 = load i32, i32* %10
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, double* %73, i64 %75
%77 = load double, double* %76
%78 = fdiv double %77, %72
store double %78, double* %76
br label %79
79: ; preds = %70
%80 = load i32, i32* %10
%81 = add nsw i32 %80, 1
store i32 %81, i32* %10
br label %66
82: ; preds = %66
store i32 0, i32* %9
br label %83
83: ; preds = %105, %82
%84 = load i32, i32* %9
%85 = load i32, i32* %5
%86 = icmp slt i32 %84, %85
br i1 %86, label %87, label %108
87: ; preds = %83
store i32 0, i32* %10
br label %88
88: ; preds = %101, %87
%89 = load i32, i32* %10
%90 = load i32, i32* %5
%91 = icmp slt i32 %89, %90
br i1 %91, label %92, label %104
92: ; preds = %88
%93 = load double**, double*** %8
%94 = load i32, i32* %9
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double*, double** %93, i64 %95
%97 = load double*, double** %96
%98 = load i32, i32* %10
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, double* %97, i64 %99
store double 0.000000e+00, double* %100
br label %101
101: ; preds = %92
%102 = load i32, i32* %10
%103 = add nsw i32 %102, 1
store i32 %103, i32* %10
br label %88
104: ; preds = %88
br label %105
105: ; preds = %104
%106 = load i32, i32* %9
%107 = add nsw i32 %106, 1
store i32 %107, i32* %9
br label %83
108: ; preds = %83
store i32 0, i32* %11
br label %109
109: ; preds = %174, %108
%110 = load i32, i32* %11
%111 = load i32, i32* %6
%112 = icmp slt i32 %110, %111
br i1 %112, label %113, label %177
113: ; preds = %109
store i32 0, i32* %9
br label %114
114: ; preds = %170, %113
%115 = load i32, i32* %9
%116 = load i32, i32* %5
%117 = icmp slt i32 %115, %116
br i1 %117, label %118, label %173
118: ; preds = %114
%119 = load double**, double*** %7
%120 = load i32, i32* %11
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double*, double** %119, i64 %121
%123 = load double*, double** %122
%124 = load i32, i32* %9
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds double, double* %123, i64 %125
%127 = load double, double* %126
%128 = load double*, double** %12
%129 = load i32, i32* %9
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds double, double* %128, i64 %130
%132 = load double, double* %131
%133 = fsub double %127, %132
store double %133, double* %13
%134 = load i32, i32* %9
store i32 %134, i32* %10
br label %135
135: ; preds = %166, %118
%136 = load i32, i32* %10
%137 = load i32, i32* %5
%138 = icmp slt i32 %136, %137
br i1 %138, label %139, label %169
139: ; preds = %135
%140 = load double, double* %13
%141 = load double**, double*** %7
%142 = load i32, i32* %11
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds double*, double** %141, i64 %143
%145 = load double*, double** %144
%146 = load i32, i32* %10
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds double, double* %145, i64 %147
%149 = load double, double* %148
%150 = load double*, double** %12
%151 = load i32, i32* %10
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds double, double* %150, i64 %152
%154 = load double, double* %153
%155 = fsub double %149, %154
%156 = load double**, double*** %8
%157 = load i32, i32* %9
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds double*, double** %156, i64 %158
%160 = load double*, double** %159
%161 = load i32, i32* %10
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds double, double* %160, i64 %162
%164 = load double, double* %163
%165 = call double @llvm.fmuladd.f64(double %140, double %155, double %164)
store double %165, double* %163
br label %166
166: ; preds = %139
%167 = load i32, i32* %10
%168 = add nsw i32 %167, 1
store i32 %168, i32* %10
br label %135
169: ; preds = %135
br label %170
170: ; preds = %169
%171 = load i32, i32* %9
%172 = add nsw i32 %171, 1
store i32 %172, i32* %9
br label %114
173: ; preds = %114
br label %174
174: ; preds = %173
%175 = load i32, i32* %11
%176 = add nsw i32 %175, 1
store i32 %176, i32* %11
br label %109
177: ; preds = %109
store i32 0, i32* %9
br label %178
178: ; preds = %223, %177
%179 = load i32, i32* %9
%180 = load i32, i32* %5
%181 = icmp slt i32 %179, %180
br i1 %181, label %182, label %226
182: ; preds = %178
%183 = load i32, i32* %9
store i32 %183, i32* %10
br label %184
184: ; preds = %219, %182
%185 = load i32, i32* %10
%186 = load i32, i32* %5
%187 = icmp slt i32 %185, %186
br i1 %187, label %188, label %222
188: ; preds = %184
%189 = load i32, i32* %6
%190 = sub nsw i32 %189, 1
%191 = sitofp i32 %190 to double
%192 = load double**, double*** %8
%193 = load i32, i32* %9
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds double*, double** %192, i64 %194
%196 = load double*, double** %195
%197 = load i32, i32* %10
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds double, double* %196, i64 %198
%200 = load double, double* %199
%201 = fdiv double %200, %191
store double %201, double* %199
%202 = load double**, double*** %8
%203 = load i32, i32* %9
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds double*, double** %202, i64 %204
%206 = load double*, double** %205
%207 = load i32, i32* %10
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds double, double* %206, i64 %208
%210 = load double, double* %209
%211 = load double**, double*** %8
%212 = load i32, i32* %10
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds double*, double** %211, i64 %213
%215 = load double*, double** %214
%216 = load i32, i32* %9
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds double, double* %215, i64 %217
store double %210, double* %218
br label %219
219: ; preds = %188
%220 = load i32, i32* %10
%221 = add nsw i32 %220, 1
store i32 %221, i32* %10
br label %184
222: ; preds = %184
br label %223
223: ; preds = %222
%224 = load i32, i32* %9
%225 = add nsw i32 %224, 1
store i32 %225, i32* %9
br label %178
226: ; preds = %178
%227 = load double*, double** %12
%228 = call i32 @free(double* %227)
ret void
}

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