#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 acos(double);
int /*<<< orphan*/ cross_product(double *, double *, double *);
double fabs(double);
int /*<<< orphan*/ lonlat_to_xyz(double, double, double *);
double norm(double *);
double scalar_product(double *, double *);
double sqrt(double);
double mod_cell_area(int num_corners, double *cell_corner_lon,
                     double *cell_corner_lat) {
  if (num_corners < 3)
    return 0;
  int M = num_corners;
  int m;
  int i;
  double area;
  double s[M];
  double ca[M];
  double a[M];
  double p[M][3];
  double u[M][3];
  for (m = 0; m < M; m++)
    lonlat_to_xyz(cell_corner_lon[m], cell_corner_lat[m], p[m]);
  for (m = 0; m < M; m++)
    cross_product(p[m], p[(m + 1) % M], u[m]);
  area = 0.0;
  for (m = 0; m < M; m++) {
    s[m] = norm(u[m]);
    area += s[m];
  }
  if (fabs(area) > 0.0) {
    for (m = 0; m < M; m++)
      s[m] = sqrt(s[m]);
    for (m = 0; m < M; m++)
      for (i = 0; i < 3; i++)
        u[m][i] = u[m][i] / s[m];
    for (m = 0; m < M; m++) {
      ca[m] = -scalar_product(u[m], u[(m + 1) % M]);
      if (ca[m] < -1.0)
        ca[m] = -1.0;
      if (ca[m] > 1.0)
        ca[m] = 1.0;
      a[m] = acos(ca[m]);
    }
    area = -(double)(M - 2) * 3.14159265358979323846;
    for (m = 0; m < M; m++)
      area += a[m];
    if (area < 0.0)
      area = 0.0;
  }
  return (area);
}


x86 assembly (clang, -O0):
<mod_cell_area>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %edi,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
cmpl   $0x3,-0xc(%rbp)
jge    118d <mod_cell_area+0x2d>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    15d6 <mod_cell_area+0x476>
mov    -0xc(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x40(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x90(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x48(%rbp)
mov    -0x24(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x88(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x50(%rbp)
mov    -0x24(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x80(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x58(%rbp)
mov    -0x24(%rbp),%eax
lea    (%rax,%rax,2),%rcx
lea    0xf(,%rcx,8),%rsi
movabs $0x3ffffffff0,%rcx
and    %rcx,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x78(%rbp)
mov    %rdx,%rsp
mov    %rax,-0x60(%rbp)
mov    -0x24(%rbp),%eax
lea    (%rax,%rax,2),%rdx
lea    0xf(,%rdx,8),%rdx
and    %rcx,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x70(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x68(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    129f <mod_cell_area+0x13f>
mov    -0x78(%rbp),%rdi
mov    -0x18(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movslq -0x28(%rbp),%rax
imul   $0x18,%rax,%rax
add    %rax,%rdi
call   1070 <lonlat_to_xyz@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1257 <mod_cell_area+0xf7>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    12fb <mod_cell_area+0x19b>
mov    -0x78(%rbp),%rsi
movslq -0x28(%rbp),%rax
imul   $0x18,%rax,%rax
mov    %rsi,%rdi
add    %rax,%rdi
mov    -0x28(%rbp),%eax
add    $0x1,%eax
cltd
idivl  -0x24(%rbp)
mov    %edx,%eax
mov    -0x70(%rbp),%rdx
cltq
imul   $0x18,%rax,%rax
add    %rax,%rsi
movslq -0x28(%rbp),%rax
imul   $0x18,%rax,%rax
add    %rax,%rdx
call   1050 <cross_product@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12a6 <mod_cell_area+0x146>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    135b <mod_cell_area+0x1fb>
mov    -0x70(%rbp),%rdi
movslq -0x28(%rbp),%rax
imul   $0x18,%rax,%rax
add    %rax,%rdi
call   1040 <norm@plt>
mov    -0x90(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    130a <mod_cell_area+0x1aa>
movsd  -0x38(%rbp),%xmm0
movaps 0xc99(%rip),%xmm1
pand   %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    15c5 <mod_cell_area+0x465>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    13be <mod_cell_area+0x25e>
mov    -0x90(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1080 <sqrt@plt>
mov    -0x90(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    137f <mod_cell_area+0x21f>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1442 <mod_cell_area+0x2e2>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x3,-0x2c(%rbp)
jge    142f <mod_cell_area+0x2cf>
mov    -0x70(%rbp),%rax
mov    -0x90(%rbp),%rcx
movslq -0x28(%rbp),%rdx
imul   $0x18,%rdx,%rsi
mov    %rax,%rdx
add    %rsi,%rdx
movslq -0x2c(%rbp),%rsi
movsd  (%rdx,%rsi,8),%xmm0
movslq -0x28(%rbp),%rdx
divsd  (%rcx,%rdx,8),%xmm0
movslq -0x28(%rbp),%rcx
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    13d8 <mod_cell_area+0x278>
jmp    1434 <mod_cell_area+0x2d4>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    13c5 <mod_cell_area+0x265>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1540 <mod_cell_area+0x3e0>
mov    -0x70(%rbp),%rsi
movslq -0x28(%rbp),%rax
imul   $0x18,%rax,%rax
mov    %rsi,%rdi
add    %rax,%rdi
mov    -0x28(%rbp),%eax
add    $0x1,%eax
cltd
idivl  -0x24(%rbp)
movslq %edx,%rax
imul   $0x18,%rax,%rax
add    %rax,%rsi
call   1060 <scalar_product@plt>
mov    -0x88(%rbp),%rax
movq   %xmm0,%rcx
movabs $0x8000000000000000,%rdx
xor    %rdx,%rcx
movq   %rcx,%xmm0
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movslq -0x28(%rbp),%rcx
movsd  0xb65(%rip),%xmm0
ucomisd (%rax,%rcx,8),%xmm0
jbe    14d6 <mod_cell_area+0x376>
mov    -0x88(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  0xb47(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x88(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xb32(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1510 <mod_cell_area+0x3b0>
mov    -0x88(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  0xb15(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x88(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <acos@plt>
mov    -0x80(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1449 <mod_cell_area+0x2e9>
mov    -0x24(%rbp),%eax
sub    $0x2,%eax
cvtsi2sd %eax,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xaa7(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    15aa <mod_cell_area+0x44a>
mov    -0x80(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1579 <mod_cell_area+0x419>
xorps  %xmm0,%xmm0
ucomisd -0x38(%rbp),%xmm0
jbe    15c0 <mod_cell_area+0x460>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    15c5 <mod_cell_area+0x465>
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,%rsp
movsd  -0x8(%rbp),%xmm0
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mod_cell_area>:
xorpd  %xmm1,%xmm1
cmp    $0x3,%edi
jl     1638 <mod_cell_area+0x4d8>
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rsp,-0x68(%rbp)
mov    %rdi,-0x48(%rbp)
mov    %edi,%r13d
mov    %rsp,%rcx
lea    0xf(,%r13,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rcx
mov    %rcx,-0x30(%rbp)
mov    %rcx,%rsp
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x60(%rbp)
mov    %rcx,%rsp
lea    0x0(,%r13,2),%rax
add    %r13,%rax
lea    0xf(,%rax,8),%rax
movabs $0x3ffffffff0,%rcx
and    %rax,%rcx
mov    %rsp,%r14
sub    %rcx,%r14
mov    %r14,%rsp
mov    %rsp,%rax
sub    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    %rax,%rsp
xor    %ebx,%ebx
mov    %r14,-0x38(%rbp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%r12,%rbx,8),%xmm0
movsd  (%r15,%rbx,8),%xmm1
mov    %r14,%rdi
call   1070 <lonlat_to_xyz@plt>
add    $0x1,%rbx
add    $0x18,%r14
cmp    %rbx,%r13
jne    1200 <mod_cell_area+0xa0>
mov    %r13,-0x50(%rbp)
xorpd  %xmm1,%xmm1
cmpl   $0x0,-0x48(%rbp)
jle    1626 <mod_cell_area+0x4c6>
mov    -0x50(%rbp),%rcx
neg    %rcx
mov    $0x1,%r14d
xor    %r13d,%r13d
mov    -0x40(%rbp),%r15
mov    -0x38(%rbp),%rdx
mov    %rdx,%rbx
xchg   %ax,%ax
mov    %rcx,%rax
add    %r14,%rax
mov    %r14,%rax
cmove  %r13,%rax
lea    (%rax,%rax,2),%rax
mov    %rcx,%r12
lea    (%rdx,%rax,8),%rsi
mov    %rbx,%rdi
mov    %r15,%rdx
call   1050 <cross_product@plt>
mov    -0x38(%rbp),%rdx
mov    %r12,%rcx
add    $0x18,%rbx
add    $0x18,%r15
lea    (%r12,%r14,1),%rax
add    $0x1,%rax
add    $0x1,%r14
cmp    $0x1,%rax
jne    1250 <mod_cell_area+0xf0>
cmpl   $0x0,-0x48(%rbp)
mov    -0x50(%rbp),%r13
mov    -0x30(%rbp),%r15
xorpd  %xmm1,%xmm1
jle    1626 <mod_cell_area+0x4c6>
xorpd  %xmm1,%xmm1
xor    %ebx,%ebx
mov    -0x40(%rbp),%r14
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  %xmm1,-0x38(%rbp)
mov    %r14,%rdi
call   1040 <norm@plt>
movsd  -0x38(%rbp),%xmm1
movsd  %xmm0,(%r15,%rbx,8)
addsd  %xmm0,%xmm1
add    $0x1,%rbx
add    $0x18,%r14
cmp    %rbx,%r13
jne    12c0 <mod_cell_area+0x160>
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
mov    -0x48(%rbp),%rsi
je     1626 <mod_cell_area+0x4c6>
test   %esi,%esi
jle    1606 <mod_cell_area+0x4a6>
lea    -0x1(%r13),%rax
mov    %r13d,%ecx
and    $0x3,%ecx
mov    %rcx,-0x38(%rbp)
cmp    $0x3,%rax
mov    %rax,-0x58(%rbp)
jae    138f <mod_cell_area+0x22f>
xor    %r15d,%r15d
cmpq   $0x0,-0x38(%rbp)
je     136b <mod_cell_area+0x20b>
mov    -0x30(%rbp),%rax
lea    (%rax,%r15,8),%r14
xor    %ebx,%ebx
xorpd  %xmm1,%xmm1
jmp    1359 <mod_cell_area+0x1f9>
cs nopw 0x0(%rax,%rax,1)
nop
call   1080 <sqrt@plt>
xorpd  %xmm1,%xmm1
movsd  %xmm0,(%r14,%rbx,8)
add    $0x1,%rbx
cmp    %rbx,-0x38(%rbp)
je     136b <mod_cell_area+0x20b>
movsd  (%r14,%rbx,8),%xmm0
ucomisd %xmm1,%xmm0
jb     1340 <mod_cell_area+0x1e0>
sqrtsd %xmm0,%xmm0
jmp    1349 <mod_cell_area+0x1e9>
mov    -0x48(%rbp),%rsi
test   %esi,%esi
mov    -0x60(%rbp),%r14
mov    -0x30(%rbp),%rdi
jle    1606 <mod_cell_area+0x4a6>
cmp    $0x1,%esi
jne    147e <mod_cell_area+0x31e>
xor    %eax,%eax
jmp    14ef <mod_cell_area+0x38f>
mov    %r13d,%ebx
and    $0xfffffffc,%ebx
mov    %r15,%rax
xor    %r15d,%r15d
xorpd  %xmm1,%xmm1
jmp    13d1 <mod_cell_area+0x271>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
call   1080 <sqrt@plt>
xorpd  %xmm1,%xmm1
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x18(%rax,%r15,8)
add    $0x4,%r15
cmp    %r15,%rbx
je     131e <mod_cell_area+0x1be>
movsd  (%rax,%r15,8),%xmm0
ucomisd %xmm1,%xmm0
jb     13f0 <mod_cell_area+0x290>
sqrtsd %xmm0,%xmm0
jmp    13f9 <mod_cell_area+0x299>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
call   1080 <sqrt@plt>
xorpd  %xmm1,%xmm1
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax,%r15,8)
movsd  0x8(%rax,%r15,8),%xmm0
ucomisd %xmm1,%xmm0
jb     1420 <mod_cell_area+0x2c0>
sqrtsd %xmm0,%xmm0
jmp    1429 <mod_cell_area+0x2c9>
cs nopw 0x0(%rax,%rax,1)
call   1080 <sqrt@plt>
xorpd  %xmm1,%xmm1
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x8(%rax,%r15,8)
movsd  0x10(%rax,%r15,8),%xmm0
ucomisd %xmm1,%xmm0
jb     1450 <mod_cell_area+0x2f0>
sqrtsd %xmm0,%xmm0
jmp    1459 <mod_cell_area+0x2f9>
nopw   0x0(%rax,%rax,1)
call   1080 <sqrt@plt>
xorpd  %xmm1,%xmm1
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x10(%rax,%r15,8)
movsd  0x18(%rax,%r15,8),%xmm0
ucomisd %xmm1,%xmm0
jb     13b0 <mod_cell_area+0x250>
sqrtsd %xmm0,%xmm0
jmp    13b9 <mod_cell_area+0x259>
mov    %r13d,%eax
and    $0xfffffffe,%eax
xor    %ecx,%ecx
mov    -0x40(%rbp),%rdx
nopw   0x0(%rax,%rax,1)
movapd (%rdi,%rcx,8),%xmm0
movsd  (%rdx),%xmm1
movsd  0x8(%rdx),%xmm2
movsd  0x10(%rdx),%xmm3
movhpd 0x18(%rdx),%xmm1
divpd  %xmm0,%xmm1
movhpd 0x20(%rdx),%xmm2
divpd  %xmm0,%xmm2
movhpd 0x28(%rdx),%xmm3
divpd  %xmm0,%xmm3
movapd %xmm2,%xmm0
unpckhpd %xmm3,%xmm0
shufpd $0x2,%xmm1,%xmm3
unpcklpd %xmm2,%xmm1
movapd %xmm1,(%rdx)
movapd %xmm3,0x10(%rdx)
movapd %xmm0,0x20(%rdx)
add    $0x2,%rcx
add    $0x30,%rdx
cmp    %rcx,%rax
jne    1490 <mod_cell_area+0x330>
cmp    %r13,%rax
je     1534 <mod_cell_area+0x3d4>
lea    (%rax,%rax,2),%rcx
mov    -0x40(%rbp),%rdx
lea    (%rdx,%rcx,8),%rcx
add    $0x10,%rcx
nop
movsd  (%rdi,%rax,8),%xmm0
movupd -0x10(%rcx),%xmm1
movapd %xmm0,%xmm2
unpcklpd %xmm0,%xmm2
divpd  %xmm2,%xmm1
movupd %xmm1,-0x10(%rcx)
movsd  (%rcx),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rcx)
add    $0x1,%rax
add    $0x18,%rcx
cmp    %rax,%r13
jne    1500 <mod_cell_area+0x3a0>
test   %esi,%esi
jle    1606 <mod_cell_area+0x4a6>
mov    $0x1,%ebx
mov    -0x40(%rbp),%r15
mov    %r12,%rcx
nopl   0x0(%rax,%rax,1)
mov    %rcx,%rax
add    %rbx,%rax
mov    %rbx,%rax
mov    $0x0,%ecx
cmove  %rcx,%rax
lea    (%rax,%rax,2),%rax
mov    -0x40(%rbp),%rcx
lea    (%rcx,%rax,8),%rsi
mov    %r15,%rdi
call   1060 <scalar_product@plt>
movsd  0xa8a(%rip),%xmm3
movapd %xmm3,%xmm1
cmpltsd %xmm0,%xmm1
xorpd  0xa91(%rip),%xmm0
movapd %xmm1,%xmm2
andnpd %xmm0,%xmm2
movsd  0xa71(%rip),%xmm0
andpd  %xmm0,%xmm1
orpd   %xmm2,%xmm1
movapd %xmm3,%xmm0
minsd  %xmm1,%xmm0
call   1030 <acos@plt>
mov    %r12,%rcx
movsd  %xmm0,-0x8(%r14,%rbx,8)
add    $0x18,%r15
lea    (%r12,%rbx,1),%rax
add    $0x1,%rax
add    $0x1,%rbx
cmp    $0x1,%rax
jne    1550 <mod_cell_area+0x3f0>
mov    -0x48(%rbp),%rcx
lea    -0x2(%rcx),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0xa12(%rip),%xmm1
test   %ecx,%ecx
jle    1618 <mod_cell_area+0x4b8>
mov    %r13d,%eax
and    $0x7,%eax
cmpq   $0x7,-0x58(%rbp)
jae    163d <mod_cell_area+0x4dd>
xor    %ecx,%ecx
jmp    1690 <mod_cell_area+0x530>
add    $0xfffffffe,%esi
xorps  %xmm1,%xmm1
cvtsi2sd %esi,%xmm1
mulsd  0x9e8(%rip),%xmm1
xorpd  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    1626 <mod_cell_area+0x4c6>
xorpd  %xmm1,%xmm1
mov    -0x68(%rbp),%rsp
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
movapd %xmm1,%xmm0
ret
and    $0xfffffff8,%r13d
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
addsd  (%r14,%rcx,8),%xmm1
addsd  0x8(%r14,%rcx,8),%xmm1
addsd  0x10(%r14,%rcx,8),%xmm1
addsd  0x18(%r14,%rcx,8),%xmm1
addsd  0x20(%r14,%rcx,8),%xmm1
addsd  0x28(%r14,%rcx,8),%xmm1
addsd  0x30(%r14,%rcx,8),%xmm1
addsd  0x38(%r14,%rcx,8),%xmm1
add    $0x8,%rcx
cmp    %rcx,%r13
jne    1650 <mod_cell_area+0x4f0>
test   %rax,%rax
je     1618 <mod_cell_area+0x4b8>
lea    (%r14,%rcx,8),%rcx
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
addsd  (%rcx,%rdx,8),%xmm1
add    $0x1,%rdx
cmp    %rdx,%rax
jne    16a0 <mod_cell_area+0x540>
jmp    1618 <mod_cell_area+0x4b8>

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

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