#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 GPS_Math_Deg_To_Rad(double);
double GPS_Math_Rad_To_Deg(double);
double cos(double);
double pow(double, double);
double sin(double);
double sqrt(double);
void GPS_Math_Molodensky(double Sphi, double Slam, double SH, double Sa,
                         double Sif, double *Dphi, double *Dlam, double *DH,
                         double Da, double Dif, double dx, double dy,
                         double dz) {
  double Sf;
  double Df;
  double esq;
  double bda;
  double da;
  double df;
  double N;
  double M;
  double tmp;
  double tmp2;
  double dphi;
  double dlambda;
  double dheight;
  double phis;
  double phic;
  double lams;
  double lamc;
  Sf = (double)1.0 / Sif;
  Df = (double)1.0 / Dif;
  esq = (double)2.0 * Sf - pow(Sf, (double)2.0);
  bda = (double)1.0 - Sf;
  Sphi = GPS_Math_Deg_To_Rad(Sphi);
  Slam = GPS_Math_Deg_To_Rad(Slam);
  da = Da - Sa;
  df = Df - Sf;
  phis = sin(Sphi);
  phic = cos(Sphi);
  lams = sin(Slam);
  lamc = cos(Slam);
  N = Sa / sqrt((double)1.0 - esq * pow(phis, (double)2.0));
  tmp = ((double)1.0 - esq) /
        pow(((double)1.0 - esq * pow(phis, (double)2.0)), 1.5);
  M = Sa * tmp;
  tmp = df * ((M / bda) + N * bda) * phis * phic;
  tmp2 = da * N * esq * phis * phic / Sa;
  tmp2 += ((-dx * phis * lamc - dy * phis * lams) + dz * phic);
  dphi = (tmp2 + tmp) / (M + SH);
  dlambda = (-dx * lams + dy * lamc) / ((N + SH) * phic);
  dheight = dx * phic * lamc + dy * phic * lams + dz * phis - da * (Sa / N) +
            df * bda * N * phis * phis;
  *Dphi = Sphi + dphi;
  *Dlam = Slam + dlambda;
  *DH = SH + dheight;
  *Dphi = GPS_Math_Rad_To_Deg(*Dphi);
  *Dlam = GPS_Math_Rad_To_Deg(*Dlam);
  return;
}


x86 assembly (clang, -O0):
<GPS_Math_Molodensky>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%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)
mov    %rdi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    %rdx,-0x40(%rbp)
movsd  %xmm5,-0x48(%rbp)
movsd  %xmm6,-0x50(%rbp)
movsd  %xmm7,-0x58(%rbp)
movsd  0xe55(%rip),%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xe43(%rip),%xmm0
divsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  0xe27(%rip),%xmm1
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x108(%rbp),%xmm0
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xde3(%rip),%xmm0
subsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x8(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  -0x48(%rbp),%xmm0
subsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x68(%rbp),%xmm0
subsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
call   1060 <cos@plt>
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
call   1060 <cos@plt>
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0xc8(%rbp),%xmm0
ff
movsd  0xd30(%rip),%xmm1
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x100(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xcf5(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1080 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0xf8(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0xccd(%rip),%xmm0
subsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xc8(%rbp),%xmm0
ff
movsd  0xcab(%rip),%xmm1
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xf0(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xc70(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xc5c(%rip),%xmm1
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xe8(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
mulsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm2
ff
divsd  -0x78(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
movsd  -0x78(%rbp),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
mulsd  -0xd0(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
mulsd  -0x90(%rbp),%xmm0
ff
mulsd  -0x70(%rbp),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
mulsd  -0xd0(%rbp),%xmm0
ff
divsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  -0xc8(%rbp),%xmm1
ff
movsd  -0xe0(%rbp),%xmm2
ff
movsd  0x10(%rbp),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
mulsd  -0xd8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0x18(%rbp),%xmm0
movsd  -0xd0(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
addsd  -0xa0(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm1
ff
addsd  -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0xd8(%rbp),%xmm2
ff
movsd  0x10(%rbp),%xmm1
mulsd  -0xe0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x90(%rbp),%xmm1
ff
addsd  -0x18(%rbp),%xmm1
mulsd  -0xd0(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x58(%rbp),%xmm1
mulsd  -0xd0(%rbp),%xmm1
ff
movsd  -0xe0(%rbp),%xmm2
ff
movsd  0x10(%rbp),%xmm0
mulsd  -0xd0(%rbp),%xmm0
ff
mulsd  -0xd8(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0x18(%rbp),%xmm0
movsd  -0xc8(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x80(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
divsd  -0x90(%rbp),%xmm2
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x88(%rbp),%xmm0
ff
mulsd  -0x78(%rbp),%xmm0
mulsd  -0x90(%rbp),%xmm0
ff
mulsd  -0xc8(%rbp),%xmm0
ff
movsd  -0xc8(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
addsd  -0xb0(%rbp),%xmm0
ff
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x10(%rbp),%xmm0
addsd  -0xb8(%rbp),%xmm0
ff
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x18(%rbp),%xmm0
addsd  -0xc0(%rbp),%xmm0
ff
mov    -0x40(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
call   1050 <GPS_Math_Rad_To_Deg@plt>
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
call   1050 <GPS_Math_Rad_To_Deg@plt>
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GPS_Math_Molodensky>:
push   %r15
push   %r14
push   %rbx
sub    $0x80,%rsp
movaps %xmm7,0x70(%rsp)
movsd  %xmm5,0x10(%rsp)
mov    %rdx,%r15
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  %xmm3,0x38(%rsp)
movsd  %xmm2,0x68(%rsp)
movsd  %xmm1,(%rsp)
movsd  0xe67(%rip),%xmm1
movapd %xmm1,%xmm5
divsd  %xmm4,%xmm5
movsd  %xmm5,0x8(%rsp)
movapd %xmm1,%xmm3
movapd %xmm1,%xmm2
divsd  %xmm6,%xmm3
movsd  %xmm3,0x30(%rsp)
movapd %xmm5,%xmm1
mulsd  %xmm5,%xmm1
movapd %xmm5,%xmm3
addsd  %xmm5,%xmm3
subsd  %xmm1,%xmm3
movsd  %xmm3,0x20(%rsp)
movapd %xmm2,%xmm1
subsd  %xmm5,%xmm1
movsd  %xmm1,0x60(%rsp)
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,0x28(%rsp)
movsd  (%rsp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,(%rsp)
movsd  0x10(%rsp),%xmm0
subsd  0x38(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x30(%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x28(%rsp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x28(%rsp),%xmm0
call   1060 <cos@plt>
movsd  %xmm0,0x58(%rsp)
movsd  (%rsp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,0x50(%rsp)
movsd  (%rsp),%xmm0
call   1060 <cos@plt>
movsd  %xmm0,0x48(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  %xmm0,%xmm0
mulsd  0x20(%rsp),%xmm0
movsd  0xd87(%rip),%xmm3
subsd  %xmm0,%xmm3
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm3
jb     1290 <GPS_Math_Molodensky+0x130>
xorps  %xmm0,%xmm0
sqrtsd %xmm3,%xmm0
jmp    12a5 <GPS_Math_Molodensky+0x145>
movapd %xmm3,%xmm0
movsd  %xmm3,0x18(%rsp)
call   1080 <sqrt@plt>
movsd  0x18(%rsp),%xmm3
movsd  0x38(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  0xd43(%rip),%xmm0
subsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x40(%rsp)
movsd  0xd37(%rip),%xmm1
movapd %xmm3,%xmm0
call   1070 <pow@plt>
movsd  0x40(%rsp),%xmm9
divsd  %xmm0,%xmm9
movsd  0x38(%rsp),%xmm8
mulsd  %xmm8,%xmm9
movapd %xmm9,%xmm0
movsd  0x60(%rsp),%xmm7
divsd  %xmm7,%xmm0
movsd  0x18(%rsp),%xmm15
movapd %xmm15,%xmm1
mulsd  %xmm7,%xmm1
addsd  %xmm0,%xmm1
movsd  0x10(%rsp),%xmm2
mulsd  %xmm15,%xmm2
mulsd  0x20(%rsp),%xmm2
movapd 0xce2(%rip),%xmm3
movapd 0x70(%rsp),%xmm6
xorpd  %xmm6,%xmm3
movsd  0x8(%rsp),%xmm12
mulsd  %xmm12,%xmm3
movapd %xmm12,%xmm0
movsd  0xa0(%rsp),%xmm10
mulsd  %xmm10,%xmm0
movsd  0x50(%rsp),%xmm13
mulsd  %xmm13,%xmm0
movsd  0x48(%rsp),%xmm14
mulsd  %xmm14,%xmm3
subsd  %xmm0,%xmm3
movsd  0xa8(%rsp),%xmm5
movapd %xmm5,%xmm0
movsd  0x58(%rsp),%xmm4
mulsd  %xmm4,%xmm0
addsd  %xmm3,%xmm0
mulsd  %xmm12,%xmm2
mulsd  %xmm4,%xmm2
divsd  %xmm8,%xmm2
movapd %xmm8,%xmm10
addsd  %xmm2,%xmm0
movsd  0x30(%rsp),%xmm8
mulsd  %xmm8,%xmm1
mulsd  %xmm12,%xmm1
mulsd  %xmm4,%xmm1
addsd  %xmm1,%xmm0
movsd  0x68(%rsp),%xmm11
addsd  %xmm11,%xmm9
divsd  %xmm9,%xmm0
movapd %xmm14,%xmm1
mulsd  0xa0(%rsp),%xmm1
movapd %xmm4,%xmm2
mulsd  %xmm6,%xmm2
mulsd  %xmm13,%xmm6
subsd  %xmm6,%xmm1
movapd %xmm15,%xmm3
addsd  %xmm11,%xmm3
mulsd  %xmm4,%xmm3
divsd  %xmm3,%xmm1
mulsd  0xa0(%rsp),%xmm4
mulsd  %xmm13,%xmm4
mulsd  %xmm14,%xmm2
addsd  %xmm4,%xmm2
mulsd  %xmm12,%xmm5
addsd  %xmm2,%xmm5
divsd  %xmm15,%xmm10
mulsd  0x10(%rsp),%xmm10
subsd  %xmm10,%xmm5
mulsd  %xmm8,%xmm7
mulsd  %xmm15,%xmm7
mulsd  %xmm12,%xmm7
mulsd  %xmm12,%xmm7
addsd  %xmm5,%xmm7
movsd  0x28(%rsp),%xmm2
addsd  %xmm0,%xmm2
movsd  %xmm2,(%rbx)
movsd  (%rsp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%r14)
addsd  %xmm11,%xmm7
movsd  %xmm7,(%r15)
movsd  (%rbx),%xmm0
call   1050 <GPS_Math_Rad_To_Deg@plt>
movsd  %xmm0,(%rbx)
movsd  (%r14),%xmm0
call   1050 <GPS_Math_Rad_To_Deg@plt>
movsd  %xmm0,(%r14)
add    $0x80,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

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