#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 cos(double const);
double sin(double const);
double sqrt(double);
void Molodensky_Shift(const double a, const double da, const double f,
                      const double df, const double dx, const double dy,
                      const double dz, const double Lat_in, const double Lon_in,
                      const double Hgt_in, double *Lat_out, double *Lon_out,
                      double *Hgt_out) {
  double tLon_in;
  double e2;
  double ep2;
  double sin_Lat;
  double sin2_Lat;
  double sin_Lon;
  double cos_Lat;
  double cos_Lon;
  double w2;
  double w;
  double w3;
  double m;
  double n;
  double dp;
  double dp1;
  double dp2;
  double dp3;
  double dl;
  double dh;
  double dh1;
  double dh2;
  if (Lon_in > 3.14159265358979323e0)
    tLon_in = Lon_in - (2 * 3.14159265358979323e0);
  else
    tLon_in = Lon_in;
  e2 = 2 * f - f * f;
  ep2 = e2 / (1 - e2);
  sin_Lat = sin(Lat_in);
  cos_Lat = cos(Lat_in);
  sin_Lon = sin(tLon_in);
  cos_Lon = cos(tLon_in);
  sin2_Lat = sin_Lat * sin_Lat;
  w2 = 1.0 - e2 * sin2_Lat;
  w = sqrt(w2);
  w3 = w * w2;
  m = (a * (1.0 - e2)) / w3;
  n = a / w;
  dp1 = cos_Lat * dz - sin_Lat * cos_Lon * dx - sin_Lat * sin_Lon * dy;
  dp2 = ((e2 * sin_Lat * cos_Lat) / w) * da;
  dp3 = sin_Lat * cos_Lat * (2.0 * n + ep2 * m * sin2_Lat) * (1.0 - f) * df;
  dp = (dp1 + dp2 + dp3) / (m + Hgt_in);
  dl = (-sin_Lon * dx + cos_Lon * dy) / ((n + Hgt_in) * cos_Lat);
  dh1 = (cos_Lat * cos_Lon * dx) + (cos_Lat * sin_Lon * dy) + (sin_Lat * dz);
  dh2 = -(w * da) + ((a * (1 - f)) / w) * sin2_Lat * df;
  dh = dh1 + dh2;
  *Lat_out = Lat_in + dp;
  *Lon_out = Lon_in + dl;
  *Hgt_out = Hgt_in + dh;
  if (*Lon_out > (3.14159265358979323e0 * 2))
    *Lon_out -= 2 * 3.14159265358979323e0;
  if (*Lon_out < (-3.14159265358979323e0))
    *Lon_out += 2 * 3.14159265358979323e0;
}


x86 assembly (clang, -O0):
<Molodensky_Shift>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
movsd  0x18(%rbp),%xmm8
movsd  0x10(%rbp),%xmm8
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)
mov    %rdx,-0x58(%rbp)
movsd  0x10(%rbp),%xmm0
movsd  0xe78(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11ad <Molodensky_Shift+0x7d>
movsd  0x10(%rbp),%xmm0
movsd  0xe69(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    11b7 <Molodensky_Shift+0x87>
movsd  0x10(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  0xe19(%rip),%xmm1
subsd  -0x68(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x78(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  -0x80(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xd8a(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
call   1050 <sqrt@plt>
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
movsd  0xd44(%rip),%xmm1
subsd  -0x68(%rbp),%xmm1
mulsd  %xmm1,%xmm0
divsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
divsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x90(%rbp),%xmm1
ff
movsd  -0x38(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm0
mulsd  -0x98(%rbp),%xmm0
ff
mulsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  -0x30(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
mulsd  -0x78(%rbp),%xmm0
mulsd  -0x90(%rbp),%xmm0
ff
divsd  -0xa8(%rbp),%xmm0
ff
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
mulsd  -0x90(%rbp),%xmm0
ff
movsd  -0xc0(%rbp),%xmm1
ff
movsd  -0x70(%rbp),%xmm2
mulsd  -0xb8(%rbp),%xmm2
ff
mulsd  -0x80(%rbp),%xmm2
addsd  %xmm1,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc3d(%rip),%xmm1
subsd  -0x18(%rbp),%xmm1
mulsd  %xmm1,%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xd0(%rbp),%xmm0
ff
addsd  -0xd8(%rbp),%xmm0
ff
addsd  -0xe0(%rbp),%xmm0
movsd  -0xb8(%rbp),%xmm1
ff
addsd  0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x28(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
mulsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0xc0(%rbp),%xmm1
ff
addsd  0x18(%rbp),%xmm1
mulsd  -0x90(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  -0x98(%rbp),%xmm1
ff
movsd  -0x28(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm0
ff
mulsd  -0x88(%rbp),%xmm0
ff
mulsd  -0x30(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  -0x8(%rbp),%xmm0
movsd  0xb1f(%rip),%xmm2
subsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm0
divsd  -0xa8(%rbp),%xmm0
ff
mulsd  -0x80(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
addsd  -0x100(%rbp),%xmm0
ff
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
addsd  -0xc8(%rbp),%xmm0
ff
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  0x10(%rbp),%xmm0
addsd  -0xe8(%rbp),%xmm0
ff
mov    -0x50(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  0x18(%rbp),%xmm0
addsd  -0xf0(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x50(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xa85(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    15a5 <Molodensky_Shift+0x475>
mov    -0x50(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xa6b(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x50(%rbp),%rax
movsd  0xa67(%rip),%xmm0
ucomisd (%rax),%xmm0
jbe    15cf <Molodensky_Shift+0x49f>
mov    -0x50(%rbp),%rax
movsd  0xa41(%rip),%xmm0
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Molodensky_Shift>:
push   %r15
push   %r14
push   %rbx
sub    $0x90,%rsp
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %rdi,%r15
movsd  %xmm7,0x28(%rsp)
movsd  %xmm6,0x10(%rsp)
movsd  %xmm5,0x78(%rsp)
movsd  %xmm4,0x80(%rsp)
movsd  %xmm3,0x20(%rsp)
movsd  %xmm1,0x88(%rsp)
movsd  %xmm0,0x18(%rsp)
movsd  0xb0(%rsp),%xmm1
movsd  0xe7a(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  0xe76(%rip),%xmm3
cmpltsd %xmm1,%xmm3
andpd  %xmm3,%xmm0
andnpd %xmm1,%xmm3
orpd   %xmm0,%xmm3
movapd %xmm3,0x30(%rsp)
movapd %xmm2,%xmm0
mulsd  %xmm2,%xmm0
movsd  %xmm2,0x70(%rsp)
addsd  %xmm2,%xmm2
subsd  %xmm0,%xmm2
movsd  %xmm2,(%rsp)
movsd  0xe44(%rip),%xmm0
subsd  %xmm2,%xmm0
movapd %xmm2,%xmm1
movsd  %xmm0,0x60(%rsp)
divsd  %xmm0,%xmm1
movsd  %xmm1,0x50(%rsp)
movaps %xmm7,%xmm0
call   1030 <sin@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x28(%rsp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x68(%rsp)
movaps 0x30(%rsp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,0x58(%rsp)
movapd 0x30(%rsp),%xmm0
call   1040 <cos@plt>
movapd %xmm0,%xmm14
movsd  0x8(%rsp),%xmm8
mulsd  %xmm8,%xmm8
movsd  (%rsp),%xmm0
mulsd  %xmm8,%xmm0
movsd  0xdcf(%rip),%xmm2
subsd  %xmm0,%xmm2
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm2
jb     1258 <Molodensky_Shift+0x128>
xorps  %xmm0,%xmm0
sqrtsd %xmm2,%xmm0
jmp    1289 <Molodensky_Shift+0x159>
movapd %xmm2,%xmm0
movsd  %xmm14,0x30(%rsp)
movsd  %xmm8,0x48(%rsp)
movsd  %xmm2,0x40(%rsp)
call   1050 <sqrt@plt>
movsd  0x40(%rsp),%xmm2
movsd  0x48(%rsp),%xmm8
movsd  0x30(%rsp),%xmm14
mulsd  %xmm0,%xmm2
movsd  0x18(%rsp),%xmm1
movsd  0x60(%rsp),%xmm9
mulsd  %xmm1,%xmm9
movapd %xmm1,%xmm3
divsd  %xmm2,%xmm9
movapd %xmm14,%xmm1
movsd  0x8(%rsp),%xmm7
mulsd  %xmm7,%xmm1
movsd  0x80(%rsp),%xmm11
mulsd  %xmm11,%xmm1
movsd  0x68(%rsp),%xmm15
movapd %xmm15,%xmm2
mulsd  0x10(%rsp),%xmm2
subsd  %xmm1,%xmm2
movsd  0x58(%rsp),%xmm10
movapd %xmm10,%xmm1
mulsd  %xmm7,%xmm1
movsd  0x78(%rsp),%xmm12
mulsd  %xmm12,%xmm1
subsd  %xmm1,%xmm2
movsd  (%rsp),%xmm4
mulsd  %xmm7,%xmm4
mulsd  %xmm15,%xmm4
divsd  %xmm0,%xmm4
movsd  0x88(%rsp),%xmm13
mulsd  %xmm13,%xmm4
addsd  %xmm2,%xmm4
movapd %xmm3,%xmm2
divsd  %xmm0,%xmm2
movsd  0x50(%rsp),%xmm3
mulsd  %xmm9,%xmm3
mulsd  %xmm8,%xmm3
movapd %xmm2,%xmm1
addsd  %xmm2,%xmm1
addsd  %xmm3,%xmm1
movapd %xmm7,%xmm3
mulsd  %xmm15,%xmm3
mulsd  %xmm3,%xmm1
movsd  0xcb6(%rip),%xmm6
subsd  0x70(%rsp),%xmm6
mulsd  %xmm6,%xmm1
mulsd  0x20(%rsp),%xmm1
addsd  %xmm4,%xmm1
movsd  0xb8(%rsp),%xmm5
addsd  %xmm5,%xmm9
divsd  %xmm9,%xmm1
movapd %xmm15,%xmm3
mulsd  %xmm14,%xmm3
mulsd  %xmm12,%xmm14
movapd %xmm10,%xmm4
mulsd  %xmm11,%xmm4
subsd  %xmm4,%xmm14
addsd  %xmm5,%xmm2
mulsd  %xmm15,%xmm2
divsd  %xmm2,%xmm14
mulsd  %xmm10,%xmm15
mulsd  %xmm12,%xmm15
mulsd  %xmm11,%xmm3
addsd  %xmm15,%xmm3
mulsd  0x10(%rsp),%xmm7
addsd  %xmm3,%xmm7
mulsd  0x18(%rsp),%xmm6
mulsd  %xmm0,%xmm13
divsd  %xmm0,%xmm6
mulsd  %xmm8,%xmm6
mulsd  0x20(%rsp),%xmm6
subsd  %xmm13,%xmm6
addsd  %xmm7,%xmm6
addsd  0x28(%rsp),%xmm1
movsd  %xmm1,(%r15)
movsd  0xb0(%rsp),%xmm0
addsd  %xmm0,%xmm14
movsd  %xmm14,(%rbx)
addsd  %xmm5,%xmm6
movsd  %xmm6,(%r14)
movsd  (%rbx),%xmm1
movsd  0xbf7(%rip),%xmm0
ucomisd %xmm0,%xmm1
movsd  0xbd3(%rip),%xmm2
addsd  %xmm1,%xmm2
cmpltsd %xmm1,%xmm0
andpd  %xmm0,%xmm2
andnpd %xmm1,%xmm0
orpd   %xmm2,%xmm0
ja     1452 <Molodensky_Shift+0x322>
movsd  0xbd4(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    147b <Molodensky_Shift+0x34b>
movsd  0xbbe(%rip),%xmm1
addsd  %xmm0,%xmm1
movapd %xmm0,%xmm2
cmpltsd 0xbb5(%rip),%xmm2
andpd  %xmm2,%xmm1
andnpd %xmm0,%xmm2
orpd   %xmm1,%xmm2
movlpd %xmm2,(%rbx)
add    $0x90,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define void @Molodensky_Shift(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double* nocapture writeonly %10, double* nocapture %11, double* nocapture writeonly %12) {
%14 = fcmp ogt double %8, 0x400921FB54442D18
%15 = fadd double %8, 0xC01921FB54442D18
%16 = select i1 %14, double %15, double %8
%17 = fneg double %2
%18 = fmul double %17, %2
%19 = tail call double @llvm.fmuladd.f64(double %2, double 2.000000e+00, double %18)
%20 = fsub double 1.000000e+00, %19
%21 = fdiv double %19, %20
%22 = tail call double @sin(double %7)
%23 = tail call double @cos(double %7)
%24 = tail call double @sin(double %16)
%25 = tail call double @cos(double %16)
%26 = fmul double %22, %22
%27 = fneg double %19
%28 = tail call double @llvm.fmuladd.f64(double %27, double %26, double 1.000000e+00)
%29 = tail call double @sqrt(double %28)
%30 = fmul double %28, %29
%31 = fmul double %20, %0
%32 = fdiv double %31, %30
%33 = fdiv double %0, %29
%34 = fneg double %22
%35 = fmul double %25, %34
%36 = fmul double %35, %4
%37 = tail call double @llvm.fmuladd.f64(double %23, double %6, double %36)
%38 = fmul double %24, %34
%39 = tail call double @llvm.fmuladd.f64(double %38, double %5, double %37)
%40 = fmul double %19, %22
%41 = fmul double %40, %23
%42 = fdiv double %41, %29
%43 = fmul double %42, %1
%44 = fmul double %22, %23
%45 = fmul double %21, %32
%46 = fmul double %26, %45
%47 = tail call double @llvm.fmuladd.f64(double %33, double 2.000000e+00, double %46)
%48 = fmul double %44, %47
%49 = fsub double 1.000000e+00, %2
%50 = fmul double %49, %48
%51 = fmul double %50, %3
%52 = fadd double %43, %39
%53 = fadd double %52, %51
%54 = fadd double %32, %9
%55 = fdiv double %53, %54
%56 = fneg double %24
%57 = fmul double %25, %5
%58 = tail call double @llvm.fmuladd.f64(double %56, double %4, double %57)
%59 = fadd double %33, %9
%60 = fmul double %23, %59
%61 = fdiv double %58, %60
%62 = fmul double %23, %25
%63 = fmul double %23, %24
%64 = fmul double %63, %5
%65 = tail call double @llvm.fmuladd.f64(double %62, double %4, double %64)
%66 = tail call double @llvm.fmuladd.f64(double %22, double %6, double %65)
%67 = fneg double %29
%68 = fmul double %67, %1
%69 = fmul double %49, %0
%70 = fdiv double %69, %29
%71 = fmul double %26, %70
%72 = tail call double @llvm.fmuladd.f64(double %71, double %3, double %68)
%73 = fadd double %66, %72
%74 = fadd double %55, %7
store double %74, double* %10
%75 = fadd double %61, %8
store double %75, double* %11
%76 = fadd double %73, %9
store double %76, double* %12
%77 = load double, double* %11
%78 = fcmp ogt double %77, 0x401921FB54442D18
%79 = fadd double %77, 0xC01921FB54442D18
%80 = select i1 %78, double %79, double %77
%81 = fcmp olt double %80, 0xC00921FB54442D18
%82 = or i1 %78, %81
br i1 %82, label %83, label %86
83: ; preds = %13
%84 = fadd double %80, 0x401921FB54442D18
%85 = select i1 %81, double %84, double %80
store double %85, double* %11
br label %86
86: ; preds = %13, %83
ret void
}