#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 log(double);
double random();
int /*<<< orphan*/ seed(double, double);
double sqrt(double);
void mxwell(double vh[], int n3, double h, double tref) {
  int i;
  int npart = n3 / 3;
  double r, tscale, v1, v2, s, ekin = 0.0, sp = 0.0, sc;
  seed(0.0, 1.0);
  tscale = 16.0 / ((double)npart - 1.0);
  for (i = 0; i < n3; i += 2) {
    s = 2.0;
    while (s >= 1.0) {
      v1 = 2.0 * random() - 1.0;
      v2 = 2.0 * random() - 1.0;
      s = v1 * v1 + v2 * v2;
    }
    r = sqrt(-2.0 * log(s) / s);
    vh[i] = v1 * r;
    vh[i + 1] = v2 * r;
  }
  for (i = 0; i < n3; i += 3)
    sp += vh[i];
  sp /= (double)npart;
  for (i = 0; i < n3; i += 3) {
    vh[i] -= sp;
    ekin += vh[i] * vh[i];
  }
  sp = 0.0;
  for (i = 1; i < n3; i += 3)
    sp += vh[i];
  sp /= (double)npart;
  for (i = 1; i < n3; i += 3) {
    vh[i] -= sp;
    ekin += vh[i] * vh[i];
  }
  sp = 0.0;
  for (i = 2; i < n3; i += 3)
    sp += vh[i];
  sp /= (double)npart;
  for (i = 2; i < n3; i += 3) {
    vh[i] -= sp;
    ekin += vh[i] * vh[i];
  }
  sc = h * sqrt(tref / (tscale * ekin));
  for (i = 0; i < n3; i++)
    vh[i] *= sc;
}


x86 assembly (clang, -O0):
<mxwell>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movsd  %xmm0,-0x18(%rbp)
movsd  %xmm1,-0x20(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %eax,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  0xe86(%rip),%xmm1
call   1030 <seed@plt>
cvtsi2sdl -0x28(%rbp),%xmm1
movsd  0xe74(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xe60(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12a7 <mxwell+0x167>
movsd  0xe4c(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  0xe32(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     123e <mxwell+0xfe>
mov    $0x0,%al
call   1040 <random@plt>
addsd  %xmm0,%xmm0
movsd  0xe2d(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    $0x0,%al
call   1040 <random@plt>
addsd  %xmm0,%xmm0
movsd  0xe11(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    11c9 <mxwell+0x89>
movsd  -0x50(%rbp),%xmm0
call   1050 <log@plt>
movaps %xmm0,%xmm1
movsd  0xdc5(%rip),%xmm0
mulsd  %xmm1,%xmm0
divsd  -0x50(%rbp),%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x24(%rbp)
jmp    11b0 <mxwell+0x70>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12df <mxwell+0x19f>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x24(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x24(%rbp)
jmp    12ae <mxwell+0x16e>
cvtsi2sdl -0x28(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    135a <mxwell+0x21a>
movsd  -0x60(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x24(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x24(%rbp)
jmp    12f9 <mxwell+0x1b9>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    139a <mxwell+0x25a>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x24(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x24(%rbp)
jmp    1369 <mxwell+0x229>
cvtsi2sdl -0x28(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1415 <mxwell+0x2d5>
movsd  -0x60(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x24(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x24(%rbp)
jmp    13b4 <mxwell+0x274>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x2,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1455 <mxwell+0x315>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x24(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x24(%rbp)
jmp    1424 <mxwell+0x2e4>
cvtsi2sdl -0x28(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x2,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    14d0 <mxwell+0x390>
movsd  -0x60(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x24(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x24(%rbp)
jmp    146f <mxwell+0x32f>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
mulsd  -0x58(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1060 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    153b <mxwell+0x3fb>
movsd  -0x68(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    150a <mxwell+0x3ca>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mxwell>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x50,%rsp
movsd  %xmm1,0x38(%rsp)
movsd  %xmm0,0x28(%rsp)
mov    %esi,%r15d
mov    %rdi,%rbx
movslq %esi,%r12
imul   $0x55555556,%r12,%rbp
mov    %rbp,%rax
shr    $0x3f,%rax
shr    $0x20,%rbp
add    %eax,%ebp
movsd  0xe83(%rip),%xmm1
xorps  %xmm0,%xmm0
call   1030 <seed@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %ebp,%xmm1
movsd  0xe74(%rip),%xmm0
movsd  %xmm1,0x8(%rsp)
addsd  %xmm1,%xmm0
movsd  0xe6a(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x30(%rsp)
mov    %r15d,%r14d
xorpd  %xmm0,%xmm0
test   %r12d,%r12d
jle    154f <mxwell+0x40f>
xor    %ebp,%ebp
jmp    11f0 <mxwell+0xb0>
call   1060 <sqrt@plt>
unpcklpd %xmm0,%xmm0
movapd 0x10(%rsp),%xmm2
mulpd  %xmm0,%xmm2
movupd %xmm2,(%rbx,%rbp,8)
add    $0x2,%rbp
cmp    %r15d,%ebp
jge    1272 <mxwell+0x132>
nopl   0x0(%rax)
xor    %eax,%eax
call   1040 <random@plt>
movapd %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1040 <random@plt>
movapd 0x10(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
addpd  %xmm1,%xmm1
addpd  0xe16(%rip),%xmm1
movapd %xmm1,%xmm2
mulpd  %xmm1,%xmm2
unpckhpd %xmm2,%xmm2
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
addsd  %xmm2,%xmm0
ucomisd 0xdc6(%rip),%xmm0
jae    11f0 <mxwell+0xb0>
movapd %xmm1,0x10(%rsp)
movapd %xmm0,0x40(%rsp)
call   1050 <log@plt>
mulsd  0xdc3(%rip),%xmm0
divsd  0x40(%rsp),%xmm0
ucomisd 0xdbd(%rip),%xmm0
jb     11c4 <mxwell+0x84>
sqrtsd %xmm0,%xmm0
jmp    11c9 <mxwell+0x89>
test   %r15d,%r15d
jle    1347 <mxwell+0x207>
movabs $0x7ffffffffffffffe,%rsi
ff ff 7f
lea    -0x1(%r14),%rcx
movabs $0xaaaaaaaaaaaaaaab,%r8
aa aa aa
mov    %rcx,%rax
mul    %r8
shr    %rdx
add    $0x1,%rdx
mov    %edx,%eax
and    $0x7,%eax
cmp    $0x15,%rcx
jae    12b3 <mxwell+0x173>
xorpd  %xmm1,%xmm1
xor    %ebp,%ebp
jmp    12ff <mxwell+0x1bf>
lea    -0x6(%rsi),%rdi
and    %rdx,%rdi
xorpd  %xmm1,%xmm1
xor    %ebp,%ebp
addsd  (%rbx,%rbp,8),%xmm1
addsd  0x18(%rbx,%rbp,8),%xmm1
addsd  0x30(%rbx,%rbp,8),%xmm1
addsd  0x48(%rbx,%rbp,8),%xmm1
addsd  0x60(%rbx,%rbp,8),%xmm1
addsd  0x78(%rbx,%rbp,8),%xmm1
addsd  0x90(%rbx,%rbp,8),%xmm1
addsd  0xa8(%rbx,%rbp,8),%xmm1
add    $0x18,%rbp
add    $0xfffffffffffffff8,%rdi
jne    12c0 <mxwell+0x180>
test   %rax,%rax
je     132e <mxwell+0x1ee>
lea    (%rbx,%rbp,8),%rdi
shl    $0x3,%rax
lea    (%rax,%rax,2),%rax
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
addsd  (%rdi,%rbp,1),%xmm1
add    $0x18,%rbp
cmp    %rbp,%rax
jne    1320 <mxwell+0x1e0>
test   %r15d,%r15d
jle    1347 <mxwell+0x207>
divsd  0x8(%rsp),%xmm1
cmp    $0x3,%rcx
jae    1350 <mxwell+0x210>
xorpd  %xmm0,%xmm0
xor    %eax,%eax
jmp    139c <mxwell+0x25c>
xorpd  %xmm0,%xmm0
jmp    154f <mxwell+0x40f>
mov    %rdx,%rcx
and    %rsi,%rcx
xorpd  %xmm2,%xmm2
xor    %eax,%eax
nopl   0x0(%rax)
movsd  (%rbx,%rax,8),%xmm3
movsd  0x18(%rbx,%rax,8),%xmm0
subsd  %xmm1,%xmm3
movsd  %xmm3,(%rbx,%rax,8)
mulsd  %xmm3,%xmm3
addsd  %xmm2,%xmm3
subsd  %xmm1,%xmm0
movsd  %xmm0,0x18(%rbx,%rax,8)
mulsd  %xmm0,%xmm0
addsd  %xmm3,%xmm0
add    $0x6,%rax
movapd %xmm0,%xmm2
add    $0xfffffffffffffffe,%rcx
jne    1360 <mxwell+0x220>
test   $0x1,%dl
je     13b7 <mxwell+0x277>
movsd  (%rbx,%rax,8),%xmm2
subsd  %xmm1,%xmm2
movsd  %xmm2,(%rbx,%rax,8)
mulsd  %xmm2,%xmm2
addsd  %xmm2,%xmm0
cmp    $0x2,%r15d
jl     154f <mxwell+0x40f>
lea    -0x2(%r14),%rcx
mov    %rcx,%rax
mul    %r8
shr    %rdx
add    $0x1,%rdx
mov    %edx,%eax
and    $0x7,%eax
cmp    $0x15,%rcx
jae    13e8 <mxwell+0x2a8>
xorpd  %xmm1,%xmm1
mov    $0x1,%edi
jmp    143f <mxwell+0x2ff>
lea    -0x6(%rsi),%rbp
and    %rdx,%rbp
xorpd  %xmm1,%xmm1
mov    $0x1,%edi
nopl   0x0(%rax,%rax,1)
addsd  (%rbx,%rdi,8),%xmm1
addsd  0x18(%rbx,%rdi,8),%xmm1
addsd  0x30(%rbx,%rdi,8),%xmm1
addsd  0x48(%rbx,%rdi,8),%xmm1
addsd  0x60(%rbx,%rdi,8),%xmm1
addsd  0x78(%rbx,%rdi,8),%xmm1
addsd  0x90(%rbx,%rdi,8),%xmm1
addsd  0xa8(%rbx,%rdi,8),%xmm1
add    $0x18,%rdi
add    $0xfffffffffffffff8,%rbp
jne    1400 <mxwell+0x2c0>
test   %rax,%rax
je     146e <mxwell+0x32e>
lea    (%rbx,%rdi,8),%rdi
shl    $0x3,%rax
lea    (%rax,%rax,2),%rax
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
addsd  (%rdi,%rbp,1),%xmm1
add    $0x18,%rbp
cmp    %rbp,%rax
jne    1460 <mxwell+0x320>
cmp    $0x2,%r15d
jl     14f7 <mxwell+0x3b7>
divsd  0x8(%rsp),%xmm1
cmp    $0x3,%rcx
jae    148b <mxwell+0x34b>
mov    $0x1,%eax
jmp    14dc <mxwell+0x39c>
and    %rdx,%rsi
mov    $0x1,%eax
movapd %xmm0,%xmm2
nopw   0x0(%rax,%rax,1)
movsd  (%rbx,%rax,8),%xmm3
movsd  0x18(%rbx,%rax,8),%xmm0
subsd  %xmm1,%xmm3
movsd  %xmm3,(%rbx,%rax,8)
mulsd  %xmm3,%xmm3
addsd  %xmm2,%xmm3
subsd  %xmm1,%xmm0
movsd  %xmm0,0x18(%rbx,%rax,8)
mulsd  %xmm0,%xmm0
addsd  %xmm3,%xmm0
add    $0x6,%rax
movapd %xmm0,%xmm2
add    $0xfffffffffffffffe,%rsi
jne    14a0 <mxwell+0x360>
test   $0x1,%dl
je     14f7 <mxwell+0x3b7>
movsd  (%rbx,%rax,8),%xmm2
subsd  %xmm1,%xmm2
movsd  %xmm2,(%rbx,%rax,8)
mulsd  %xmm2,%xmm2
addsd  %xmm2,%xmm0
cmp    $0x3,%r15d
jl     154f <mxwell+0x40f>
xorpd  %xmm1,%xmm1
mov    $0x2,%eax
cs nopw 0x0(%rax,%rax,1)
addsd  (%rbx,%rax,8),%xmm1
add    $0x3,%rax
cmp    %r14,%rax
jb     1510 <mxwell+0x3d0>
cmp    $0x3,%r15d
jl     154f <mxwell+0x40f>
divsd  0x8(%rsp),%xmm1
mov    $0x2,%eax
nop
movsd  (%rbx,%rax,8),%xmm2
subsd  %xmm1,%xmm2
movsd  %xmm2,(%rbx,%rax,8)
mulsd  %xmm2,%xmm2
addsd  %xmm2,%xmm0
add    $0x3,%rax
cmp    %r14,%rax
jb     1530 <mxwell+0x3f0>
movsd  0x30(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x38(%rsp),%xmm0
divsd  %xmm1,%xmm0
ucomisd 0xab5(%rip),%xmm0
jb     157b <mxwell+0x43b>
sqrtsd %xmm0,%xmm0
test   %r15d,%r15d
jg     1589 <mxwell+0x449>
jmp    1657 <mxwell+0x517>
call   1060 <sqrt@plt>
test   %r15d,%r15d
jle    1657 <mxwell+0x517>
mulsd  0x28(%rsp),%xmm0
cmp    $0x4,%r15d
jae    159c <mxwell+0x45c>
xor    %eax,%eax
jmp    1640 <mxwell+0x500>
mov    %r14d,%eax
and    $0xfffffffc,%eax
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    -0x4(%rax),%rcx
mov    %rcx,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
test   %rcx,%rcx
je     1664 <mxwell+0x524>
mov    %rdx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
movupd (%rbx,%rcx,8),%xmm2
movupd 0x10(%rbx,%rcx,8),%xmm3
movupd 0x20(%rbx,%rcx,8),%xmm4
movupd 0x30(%rbx,%rcx,8),%xmm5
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm3
movupd %xmm2,(%rbx,%rcx,8)
movupd %xmm3,0x10(%rbx,%rcx,8)
mulpd  %xmm1,%xmm4
mulpd  %xmm1,%xmm5
movupd %xmm4,0x20(%rbx,%rcx,8)
movupd %xmm5,0x30(%rbx,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rsi
jne    15d0 <mxwell+0x490>
test   $0x1,%dl
je     163b <mxwell+0x4fb>
movupd (%rbx,%rcx,8),%xmm2
movupd 0x10(%rbx,%rcx,8),%xmm3
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm3
movupd %xmm2,(%rbx,%rcx,8)
movupd %xmm3,0x10(%rbx,%rcx,8)
cmp    %r14,%rax
je     1657 <mxwell+0x517>
movsd  (%rbx,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%rax,8)
add    $0x1,%rax
cmp    %rax,%r14
jne    1640 <mxwell+0x500>
add    $0x50,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ecx,%ecx
test   $0x1,%dl
jne    161d <mxwell+0x4dd>
jmp    163b <mxwell+0x4fb>

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

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