#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 M_PI;
double acos(double);
double cos(double);
double fabs(double);
double pow(double, double);
double sin(double);
double sqrt(double);
void arclength_e(double lon_1, double lon_0, double lat_1, double lat_0,
                 double dlon_1, double dlon_0, double dlat_1, double dlat_0,
                 double *arclen, double *darclen) {
  double g;
  double dgdlon_0, dgdlon_1;
  double dgdlat_0, dgdlat_1;
  double darcdlon_0, darcdlon_1;
  double darcdlat_0, darcdlat_1;
  if ((lat_1 == -1000) || (lat_0 == -1000) || (lon_1 == -1000) ||
      (lon_0 == -1000)) {
    *arclen = 0.0;
    *darclen = 0.0;
  } else {
    *arclen = 696000000.0 * acos(cos(M_PI / 180.0 * fabs(lat_1 - lat_0)) *
                                 cos(M_PI / 180.0 * fabs(lon_1 - lon_0)));
    g = cos(M_PI / 180.0 * (lat_1 - lat_0)) *
        cos(M_PI / 180.0 * (lon_1 - lon_0));
    dgdlon_0 = cos(M_PI / 180.0 * (lat_1 - lat_0)) *
               sin(M_PI / 180.0 * (lon_1 - lon_0));
    dgdlon_1 = -1.0 * cos(M_PI / 180.0 * (lat_1 - lat_0)) *
               sin(M_PI / 180.0 * (lon_1 - lon_0));
    dgdlat_0 = sin(M_PI / 180.0 * (lat_1 - lat_0)) *
               cos(M_PI / 180.0 * (lon_1 - lon_0));
    dgdlat_1 = -1.0 * sin(M_PI / 180.0 * (lat_1 - lat_0)) *
               cos(M_PI / 180.0 * (lon_1 - lon_0));
    darcdlon_0 = (-1.0 * 696000000.0 / sqrt(1.0 - g * g)) * dgdlon_0;
    darcdlon_1 = (-1.0 * 696000000.0 / sqrt(1.0 - g * g)) * dgdlon_1;
    darcdlat_0 = (-1.0 * 696000000.0 / sqrt(1.0 - g * g)) * dgdlat_0;
    darcdlat_1 = (-1.0 * 696000000.0 / sqrt(1.0 - g * g)) * dgdlat_1;
    *darclen =
        sqrt(pow(darcdlon_0 * dlon_0, 2.0) + pow(darcdlon_1 * dlon_1, 2.0) +
             pow(darcdlat_0 * dlat_0, 2.0) + pow(darcdlat_1 * dlat_1, 2.0));
  }
  return;
}


x86 assembly (clang, -O0):
<arclength_e>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
movsd  %xmm7,-0x40(%rbp)
mov    %rdi,-0x48(%rbp)
mov    %rsi,-0x50(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xe68(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11ad <arclength_e+0x5d>
jp     11ad <arclength_e+0x5d>
jmp    120e <arclength_e+0xbe>
movsd  -0x20(%rbp),%xmm0
movsd  0xe46(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11cf <arclength_e+0x7f>
jp     11cf <arclength_e+0x7f>
jmp    120e <arclength_e+0xbe>
movsd  -0x8(%rbp),%xmm0
movsd  0xe24(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11f1 <arclength_e+0xa1>
jp     11f1 <arclength_e+0xa1>
jmp    120e <arclength_e+0xbe>
movsd  -0x10(%rbp),%xmm0
movsd  0xe02(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1229 <arclength_e+0xd9>
jp     1229 <arclength_e+0xd9>
mov    -0x48(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x50(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
jmp    1710 <arclength_e+0x5c0>
mov    0x2db8(%rip),%rax
movsd  (%rax),%xmm0
movsd  0xde4(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x18(%rbp),%xmm1
subsd  -0x20(%rbp),%xmm1
movaps 0xdef(%rip),%xmm2
pand   %xmm2,%xmm1
mulsd  %xmm1,%xmm0
call   1050 <cos@plt>
movsd  %xmm0,-0xe0(%rbp)
ff
mov    0x2d7b(%rip),%rax
movsd  (%rax),%xmm0
movsd  0xda7(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x8(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
movaps 0xdb2(%rip),%xmm2
pand   %xmm2,%xmm1
mulsd  %xmm1,%xmm0
call   1050 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
call   1030 <acos@plt>
movaps %xmm0,%xmm1
movsd  0xd76(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x2d1b(%rip),%rax
movsd  (%rax),%xmm0
movsd  0xd47(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x18(%rbp),%xmm1
subsd  -0x20(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1050 <cos@plt>
movsd  %xmm0,-0xd8(%rbp)
ff
mov    0x2ce9(%rip),%rax
movsd  (%rax),%xmm0
movsd  0xd15(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x8(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1050 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0xd8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    0x2cab(%rip),%rax
movsd  (%rax),%xmm0
movsd  0xcd7(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x18(%rbp),%xmm1
subsd  -0x20(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1050 <cos@plt>
movsd  %xmm0,-0xd0(%rbp)
ff
mov    0x2c79(%rip),%rax
movsd  (%rax),%xmm0
movsd  0xca5(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x8(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0xd0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    0x2c3b(%rip),%rax
movsd  (%rax),%xmm0
movsd  0xc67(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x18(%rbp),%xmm1
subsd  -0x20(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1050 <cos@plt>
movaps %xmm0,%xmm1
movsd  0xc4d(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
mov    0x2bfa(%rip),%rax
movsd  (%rax),%xmm0
movsd  0xc26(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x8(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0xc8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    0x2bbc(%rip),%rax
movsd  (%rax),%xmm0
movsd  0xbe8(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x18(%rbp),%xmm1
subsd  -0x20(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0xc0(%rbp)
ff
mov    0x2b8a(%rip),%rax
movsd  (%rax),%xmm0
movsd  0xbb6(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x8(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1050 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0xc0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    0x2b4c(%rip),%rax
movsd  (%rax),%xmm0
movsd  0xb78(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x18(%rbp),%xmm1
subsd  -0x20(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  0xb5e(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
mov    0x2b0b(%rip),%rax
movsd  (%rax),%xmm0
movsd  0xb37(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x8(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1050 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xad7(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1070 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0xabb(%rip),%xmm0
divsd  %xmm1,%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xa88(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1070 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0xa6c(%rip),%xmm0
divsd  %xmm1,%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xa36(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1070 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0xa1a(%rip),%xmm0
divsd  %xmm1,%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0x9e4(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1070 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0x9c8(%rip),%xmm0
divsd  %xmm1,%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  0x99d(%rip),%xmm1
call   1060 <pow@plt>
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
mulsd  -0x28(%rbp),%xmm0
movsd  0x97b(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xb0(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
mulsd  -0x40(%rbp),%xmm0
movsd  0x94a(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xa8(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
mulsd  -0x38(%rbp),%xmm0
movsd  0x919(%rip),%xmm1
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
call   1070 <sqrt@plt>
mov    -0x50(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arclength_e>:
push   %r15
push   %r14
push   %rbx
sub    $0xe0,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
ucomisd 0xea6(%rip),%xmm1
jne    1162 <arclength_e+0x22>
jnp    1578 <arclength_e+0x438>
ucomisd 0xe96(%rip),%xmm0
jne    1172 <arclength_e+0x32>
jnp    1578 <arclength_e+0x438>
ucomisd 0xe86(%rip),%xmm2
jne    1182 <arclength_e+0x42>
jnp    1578 <arclength_e+0x438>
ucomisd 0xe76(%rip),%xmm3
jne    1192 <arclength_e+0x52>
jnp    1578 <arclength_e+0x438>
movaps %xmm4,0xa0(%rsp)
movaps %xmm5,0xb0(%rsp)
movaps %xmm6,0xc0(%rsp)
movaps %xmm7,0xd0(%rsp)
mov    0x2e2f(%rip),%r15
movsd  %xmm1,0x10(%rsp)
movsd  (%r15),%xmm1
divsd  0xe3c(%rip),%xmm1
subsd  %xmm3,%xmm2
movapd %xmm2,0x20(%rsp)
movapd %xmm0,(%rsp)
movapd %xmm2,%xmm0
andpd  0xe39(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1050 <cos@plt>
movsd  %xmm0,0x40(%rsp)
movsd  (%r15),%xmm0
divsd  0xe05(%rip),%xmm0
movapd (%rsp),%xmm1
subsd  0x10(%rsp),%xmm1
movapd %xmm1,(%rsp)
movapd 0xe05(%rip),%xmm2
andpd  %xmm1,%xmm2
mulsd  %xmm0,%xmm2
movapd %xmm2,%xmm0
call   1050 <cos@plt>
mulsd  0x40(%rsp),%xmm0
call   1030 <acos@plt>
mulsd  0xdd1(%rip),%xmm0
movsd  %xmm0,(%rbx)
movsd  (%r15),%xmm0
divsd  0xdb8(%rip),%xmm0
mulsd  0x20(%rsp),%xmm0
call   1050 <cos@plt>
movsd  %xmm0,0x10(%rsp)
movsd  (%r15),%xmm0
divsd  0xd9a(%rip),%xmm0
mulsd  (%rsp),%xmm0
call   1050 <cos@plt>
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x38(%rsp)
movsd  (%r15),%xmm0
divsd  0xd77(%rip),%xmm0
mulsd  0x20(%rsp),%xmm0
call   1050 <cos@plt>
movapd %xmm0,0x10(%rsp)
movsd  (%r15),%xmm0
divsd  0xd59(%rip),%xmm0
mulsd  (%rsp),%xmm0
call   1040 <sin@plt>
movapd %xmm0,0x70(%rsp)
movsd  (%r15),%xmm0
divsd  0xd3c(%rip),%xmm0
mulsd  0x20(%rsp),%xmm0
call   1050 <cos@plt>
xorpd  0xd51(%rip),%xmm0
movapd %xmm0,0x50(%rsp)
movsd  (%r15),%xmm0
divsd  0xd16(%rip),%xmm0
mulsd  (%rsp),%xmm0
call   1040 <sin@plt>
movapd %xmm0,0x90(%rsp)
movsd  (%r15),%xmm0
divsd  0xcf6(%rip),%xmm0
mulsd  0x20(%rsp),%xmm0
call   1040 <sin@plt>
movapd %xmm0,0x40(%rsp)
movsd  (%r15),%xmm0
divsd  0xcd8(%rip),%xmm0
mulsd  (%rsp),%xmm0
call   1050 <cos@plt>
movapd %xmm0,0x60(%rsp)
movsd  (%r15),%xmm0
divsd  0xcbb(%rip),%xmm0
mulsd  0x20(%rsp),%xmm0
call   1040 <sin@plt>
movapd %xmm0,0x20(%rsp)
movsd  (%r15),%xmm0
divsd  0xc9d(%rip),%xmm0
mulsd  (%rsp),%xmm0
call   1050 <cos@plt>
movapd %xmm0,0x80(%rsp)
movsd  0x38(%rsp),%xmm0
mulsd  %xmm0,%xmm0
movsd  0xc88(%rip),%xmm5
subsd  %xmm0,%xmm5
sqrtsd %xmm5,%xmm4
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm5
movapd %xmm4,%xmm7
movapd %xmm4,(%rsp)
movsd  %xmm5,0x38(%rsp)
jae    13cd <arclength_e+0x28d>
movapd %xmm5,%xmm0
call   1060 <sqrt@plt>
movsd  0x38(%rsp),%xmm5
movapd (%rsp),%xmm4
movapd %xmm0,%xmm7
xorpd  %xmm0,%xmm0
movapd 0x10(%rsp),%xmm2
unpcklpd 0x90(%rsp),%xmm2
movapd 0x70(%rsp),%xmm3
unpcklpd 0x50(%rsp),%xmm3
movapd 0x20(%rsp),%xmm6
xorpd  0xc3a(%rip),%xmm6
ucomisd %xmm0,%xmm5
movapd %xmm4,%xmm0
jae    1444 <arclength_e+0x304>
movapd %xmm5,%xmm0
movapd %xmm2,0x10(%rsp)
movapd %xmm3,0x70(%rsp)
movapd %xmm6,0x20(%rsp)
movapd %xmm7,0x50(%rsp)
call   1060 <sqrt@plt>
movapd 0x50(%rsp),%xmm7
movapd 0x20(%rsp),%xmm6
movsd  0x38(%rsp),%xmm5
movapd (%rsp),%xmm4
movapd 0x70(%rsp),%xmm3
movapd 0x10(%rsp),%xmm2
unpcklpd %xmm0,%xmm7
movapd 0x40(%rsp),%xmm1
unpcklpd 0x80(%rsp),%xmm1
movapd 0x60(%rsp),%xmm0
unpcklpd %xmm6,%xmm0
mulpd  %xmm3,%xmm2
movapd 0xbd3(%rip),%xmm6
divpd  %xmm7,%xmm6
xorpd  %xmm7,%xmm7
ucomisd %xmm7,%xmm5
movapd %xmm4,%xmm3
jae    14cb <arclength_e+0x38b>
movapd %xmm0,0x60(%rsp)
movapd %xmm5,%xmm0
movapd %xmm2,0x10(%rsp)
movapd %xmm1,0x40(%rsp)
movapd %xmm6,0x20(%rsp)
call   1060 <sqrt@plt>
xorpd  %xmm7,%xmm7
movapd 0x20(%rsp),%xmm6
movsd  0x38(%rsp),%xmm5
movapd (%rsp),%xmm4
movapd 0x40(%rsp),%xmm1
movapd 0x10(%rsp),%xmm2
movapd %xmm0,%xmm3
movapd 0x60(%rsp),%xmm0
mulpd  %xmm0,%xmm1
mulpd  %xmm6,%xmm2
ucomisd %xmm7,%xmm5
jae    1508 <arclength_e+0x3c8>
movapd %xmm5,%xmm0
movapd %xmm2,0x10(%rsp)
movapd %xmm1,0x40(%rsp)
movapd %xmm3,(%rsp)
call   1060 <sqrt@plt>
movapd (%rsp),%xmm3
movapd 0x40(%rsp),%xmm1
movapd 0x10(%rsp),%xmm2
movapd %xmm0,%xmm4
unpcklpd %xmm4,%xmm3
movapd 0xb2c(%rip),%xmm0
divpd  %xmm3,%xmm0
mulpd  %xmm0,%xmm1
movapd 0xb0(%rsp),%xmm0
unpcklpd 0xa0(%rsp),%xmm0
mulpd  %xmm0,%xmm2
mulpd  %xmm2,%xmm2
movapd 0xd0(%rsp),%xmm0
unpcklpd 0xc0(%rsp),%xmm0
mulpd  %xmm1,%xmm0
mulpd  %xmm0,%xmm0
movapd %xmm2,%xmm1
unpckhpd %xmm2,%xmm1
addsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1585 <arclength_e+0x445>
sqrtsd %xmm0,%xmm0
jmp    158a <arclength_e+0x44a>
movq   $0x0,(%rbx)
xorpd  %xmm0,%xmm0
jmp    158a <arclength_e+0x44a>
call   1060 <sqrt@plt>
movsd  %xmm0,(%r14)
add    $0xe0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@M_PI = global double 0.000000e+00
define void @arclength_e(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double* %8, double* %9) {
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double*
%20 = alloca double*
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
store double %0, double* %11
store double %1, double* %12
store double %2, double* %13
store double %3, double* %14
store double %4, double* %15
store double %5, double* %16
store double %6, double* %17
store double %7, double* %18
store double* %8, double** %19
store double* %9, double** %20
%30 = load double, double* %13
%31 = fcmp oeq double %30, -1.000000e+03
br i1 %31, label %41, label %32
32: ; preds = %10
%33 = load double, double* %14
%34 = fcmp oeq double %33, -1.000000e+03
br i1 %34, label %41, label %35
35: ; preds = %32
%36 = load double, double* %11
%37 = fcmp oeq double %36, -1.000000e+03
br i1 %37, label %41, label %38
38: ; preds = %35
%39 = load double, double* %12
%40 = fcmp oeq double %39, -1.000000e+03
br i1 %40, label %41, label %44
41: ; preds = %38, %35, %32, %10
%42 = load double*, double** %19
store double 0.000000e+00, double* %42
%43 = load double*, double** %20
store double 0.000000e+00, double* %43
br label %195
44: ; preds = %38
%45 = load double, double* @M_PI
%46 = fdiv double %45, 1.800000e+02
%47 = load double, double* %13
%48 = load double, double* %14
%49 = fsub double %47, %48
%50 = call double @llvm.fabs.f64(double %49)
%51 = fmul double %46, %50
%52 = call double @cos(double %51)
%53 = load double, double* @M_PI
%54 = fdiv double %53, 1.800000e+02
%55 = load double, double* %11
%56 = load double, double* %12
%57 = fsub double %55, %56
%58 = call double @llvm.fabs.f64(double %57)
%59 = fmul double %54, %58
%60 = call double @cos(double %59)
%61 = fmul double %52, %60
%62 = call double @acos(double %61)
%63 = fmul double 6.960000e+08, %62
%64 = load double*, double** %19
store double %63, double* %64
%65 = load double, double* @M_PI
%66 = fdiv double %65, 1.800000e+02
%67 = load double, double* %13
%68 = load double, double* %14
%69 = fsub double %67, %68
%70 = fmul double %66, %69
%71 = call double @cos(double %70)
%72 = load double, double* @M_PI
%73 = fdiv double %72, 1.800000e+02
%74 = load double, double* %11
%75 = load double, double* %12
%76 = fsub double %74, %75
%77 = fmul double %73, %76
%78 = call double @cos(double %77)
%79 = fmul double %71, %78
store double %79, double* %21
%80 = load double, double* @M_PI
%81 = fdiv double %80, 1.800000e+02
%82 = load double, double* %13
%83 = load double, double* %14
%84 = fsub double %82, %83
%85 = fmul double %81, %84
%86 = call double @cos(double %85)
%87 = load double, double* @M_PI
%88 = fdiv double %87, 1.800000e+02
%89 = load double, double* %11
%90 = load double, double* %12
%91 = fsub double %89, %90
%92 = fmul double %88, %91
%93 = call double @sin(double %92)
%94 = fmul double %86, %93
store double %94, double* %22
%95 = load double, double* @M_PI
%96 = fdiv double %95, 1.800000e+02
%97 = load double, double* %13
%98 = load double, double* %14
%99 = fsub double %97, %98
%100 = fmul double %96, %99
%101 = call double @cos(double %100)
%102 = fmul double -1.000000e+00, %101
%103 = load double, double* @M_PI
%104 = fdiv double %103, 1.800000e+02
%105 = load double, double* %11
%106 = load double, double* %12
%107 = fsub double %105, %106
%108 = fmul double %104, %107
%109 = call double @sin(double %108)
%110 = fmul double %102, %109
store double %110, double* %23
%111 = load double, double* @M_PI
%112 = fdiv double %111, 1.800000e+02
%113 = load double, double* %13
%114 = load double, double* %14
%115 = fsub double %113, %114
%116 = fmul double %112, %115
%117 = call double @sin(double %116)
%118 = load double, double* @M_PI
%119 = fdiv double %118, 1.800000e+02
%120 = load double, double* %11
%121 = load double, double* %12
%122 = fsub double %120, %121
%123 = fmul double %119, %122
%124 = call double @cos(double %123)
%125 = fmul double %117, %124
store double %125, double* %24
%126 = load double, double* @M_PI
%127 = fdiv double %126, 1.800000e+02
%128 = load double, double* %13
%129 = load double, double* %14
%130 = fsub double %128, %129
%131 = fmul double %127, %130
%132 = call double @sin(double %131)
%133 = fmul double -1.000000e+00, %132
%134 = load double, double* @M_PI
%135 = fdiv double %134, 1.800000e+02
%136 = load double, double* %11
%137 = load double, double* %12
%138 = fsub double %136, %137
%139 = fmul double %135, %138
%140 = call double @cos(double %139)
%141 = fmul double %133, %140
store double %141, double* %25
%142 = load double, double* %21
%143 = load double, double* %21
%144 = fneg double %142
%145 = call double @llvm.fmuladd.f64(double %144, double %143, double 1.000000e+00)
%146 = call double @sqrt(double %145)
%147 = fdiv double -6.960000e+08, %146
%148 = load double, double* %22
%149 = fmul double %147, %148
store double %149, double* %26
%150 = load double, double* %21
%151 = load double, double* %21
%152 = fneg double %150
%153 = call double @llvm.fmuladd.f64(double %152, double %151, double 1.000000e+00)
%154 = call double @sqrt(double %153)
%155 = fdiv double -6.960000e+08, %154
%156 = load double, double* %23
%157 = fmul double %155, %156
store double %157, double* %27
%158 = load double, double* %21
%159 = load double, double* %21
%160 = fneg double %158
%161 = call double @llvm.fmuladd.f64(double %160, double %159, double 1.000000e+00)
%162 = call double @sqrt(double %161)
%163 = fdiv double -6.960000e+08, %162
%164 = load double, double* %24
%165 = fmul double %163, %164
store double %165, double* %28
%166 = load double, double* %21
%167 = load double, double* %21
%168 = fneg double %166
%169 = call double @llvm.fmuladd.f64(double %168, double %167, double 1.000000e+00)
%170 = call double @sqrt(double %169)
%171 = fdiv double -6.960000e+08, %170
%172 = load double, double* %25
%173 = fmul double %171, %172
store double %173, double* %29
%174 = load double, double* %26
%175 = load double, double* %16
%176 = fmul double %174, %175
%177 = call double @pow(double %176, double 2.000000e+00)
%178 = load double, double* %27
%179 = load double, double* %15
%180 = fmul double %178, %179
%181 = call double @pow(double %180, double 2.000000e+00)
%182 = fadd double %177, %181
%183 = load double, double* %28
%184 = load double, double* %18
%185 = fmul double %183, %184
%186 = call double @pow(double %185, double 2.000000e+00)
%187 = fadd double %182, %186
%188 = load double, double* %29
%189 = load double, double* %17
%190 = fmul double %188, %189
%191 = call double @pow(double %190, double 2.000000e+00)
%192 = fadd double %187, %191
%193 = call double @sqrt(double %192)
%194 = load double*, double** %20
store double %193, double* %194
br label %195
195: ; preds = %44, %41
ret void
}

LLVM IR (-O2):
@M_PI = global double 0.000000e+00
define void @arclength_e(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double* nocapture writeonly %8, double* nocapture writeonly %9) {
%11 = fcmp oeq double %2, -1.000000e+03
%12 = fcmp oeq double %3, -1.000000e+03
%13 = or i1 %11, %12
%14 = fcmp oeq double %0, -1.000000e+03
%15 = or i1 %14, %13
%16 = fcmp oeq double %1, -1.000000e+03
%17 = or i1 %16, %15
br i1 %17, label %18, label %19
18: ; preds = %10
store double 0.000000e+00, double* %8
br label %117
19: ; preds = %10
%20 = load double, double* @M_PI
%21 = fdiv double %20, 1.800000e+02
%22 = fsub double %2, %3
%23 = tail call double @llvm.fabs.f64(double %22)
%24 = fmul double %23, %21
%25 = tail call double @cos(double %24)
%26 = load double, double* @M_PI
%27 = fdiv double %26, 1.800000e+02
%28 = fsub double %0, %1
%29 = tail call double @llvm.fabs.f64(double %28)
%30 = fmul double %29, %27
%31 = tail call double @cos(double %30)
%32 = fmul double %25, %31
%33 = tail call double @acos(double %32)
%34 = fmul double %33, 6.960000e+08
store double %34, double* %8
%35 = load double, double* @M_PI
%36 = fdiv double %35, 1.800000e+02
%37 = fmul double %22, %36
%38 = tail call double @cos(double %37)
%39 = load double, double* @M_PI
%40 = fdiv double %39, 1.800000e+02
%41 = fmul double %28, %40
%42 = tail call double @cos(double %41)
%43 = fmul double %38, %42
%44 = load double, double* @M_PI
%45 = fdiv double %44, 1.800000e+02
%46 = fmul double %22, %45
%47 = tail call double @cos(double %46)
%48 = load double, double* @M_PI
%49 = fdiv double %48, 1.800000e+02
%50 = fmul double %28, %49
%51 = tail call double @sin(double %50)
%52 = load double, double* @M_PI
%53 = fdiv double %52, 1.800000e+02
%54 = fmul double %22, %53
%55 = tail call double @cos(double %54)
%56 = fneg double %55
%57 = load double, double* @M_PI
%58 = fdiv double %57, 1.800000e+02
%59 = fmul double %28, %58
%60 = tail call double @sin(double %59)
%61 = insertelement <2 x double> poison, double %47, i64 0
%62 = insertelement <2 x double> %61, double %60, i64 1
%63 = insertelement <2 x double> poison, double %51, i64 0
%64 = insertelement <2 x double> %63, double %56, i64 1
%65 = fmul <2 x double> %62, %64
%66 = load double, double* @M_PI
%67 = fdiv double %66, 1.800000e+02
%68 = fmul double %22, %67
%69 = tail call double @sin(double %68)
%70 = load double, double* @M_PI
%71 = fdiv double %70, 1.800000e+02
%72 = fmul double %28, %71
%73 = tail call double @cos(double %72)
%74 = load double, double* @M_PI
%75 = fdiv double %74, 1.800000e+02
%76 = fmul double %22, %75
%77 = tail call double @sin(double %76)
%78 = fneg double %77
%79 = load double, double* @M_PI
%80 = fdiv double %79, 1.800000e+02
%81 = fmul double %28, %80
%82 = tail call double @cos(double %81)
%83 = insertelement <2 x double> poison, double %69, i64 0
%84 = insertelement <2 x double> %83, double %82, i64 1
%85 = insertelement <2 x double> poison, double %73, i64 0
%86 = insertelement <2 x double> %85, double %78, i64 1
%87 = fmul <2 x double> %84, %86
%88 = fneg double %43
%89 = tail call double @llvm.fmuladd.f64(double %88, double %43, double 1.000000e+00)
%90 = tail call double @sqrt(double %89)
%91 = tail call double @sqrt(double %89)
%92 = insertelement <2 x double> poison, double %90, i64 0
%93 = insertelement <2 x double> %92, double %91, i64 1
%94 = fdiv <2 x double> <double -6.960000e+08, double -6.960000e+08>, %93
%95 = fmul <2 x double> %65, %94
%96 = tail call double @sqrt(double %89)
%97 = tail call double @sqrt(double %89)
%98 = insertelement <2 x double> poison, double %96, i64 0
%99 = insertelement <2 x double> %98, double %97, i64 1
%100 = fdiv <2 x double> <double -6.960000e+08, double -6.960000e+08>, %99
%101 = fmul <2 x double> %87, %100
%102 = insertelement <2 x double> poison, double %5, i64 0
%103 = insertelement <2 x double> %102, double %4, i64 1
%104 = fmul <2 x double> %95, %103
%105 = fmul <2 x double> %104, %104
%106 = shufflevector <2 x double> %105, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%107 = fadd <2 x double> %105, %106
%108 = insertelement <2 x double> poison, double %7, i64 0
%109 = insertelement <2 x double> %108, double %6, i64 1
%110 = fmul <2 x double> %101, %109
%111 = fmul <2 x double> %110, %110
%112 = fadd <2 x double> %107, %111
%113 = shufflevector <2 x double> %111, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%114 = fadd <2 x double> %112, %113
%115 = extractelement <2 x double> %114, i64 0
%116 = tail call double @sqrt(double %115)
br label %117
117: ; preds = %19, %18
%118 = phi double [ %116, %19 ], [ 0.000000e+00, %18 ]
store double %118, double* %9
ret void
}