#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double log(double);
double sin(double);
double tan(double);
double isometric_latitude(double phi, double e) {
  return log(tan((3.14159265358979323846 / 4) + phi / 2.0)) -
         e / 2.0 * log((1.0 + e * sin(phi)) / (1.0 - e * sin(phi)));
}


x86 assembly (clang, -O0):
<isometric_latitude>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  0xeb9(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xeb5(%rip),%xmm0
addsd  %xmm1,%xmm0
call   1040 <tan@plt>
call   1050 <log@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe8d(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe54(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0x30(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x28(%rbp),%xmm0
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
movsd  0xe07(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
call   1050 <log@plt>
movsd  -0x20(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isometric_latitude>:
sub    $0x38,%rsp
movaps %xmm1,0x10(%rsp)
movapd %xmm0,%xmm1
movsd  %xmm0,(%rsp)
movsd  0xeb6(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  0xeb2(%rip),%xmm0
call   1040 <tan@plt>
call   1050 <log@plt>
movsd  %xmm0,0x8(%rsp)
movsd  (%rsp),%xmm0
call   1030 <sin@plt>
movaps %xmm0,0x20(%rsp)
movsd  (%rsp),%xmm0
call   1030 <sin@plt>
movapd 0xe99(%rip),%xmm1
movapd 0x10(%rsp),%xmm2
xorpd  %xmm2,%xmm1
unpcklpd %xmm1,%xmm2
movapd 0x20(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  %xmm2,%xmm1
addpd  0xe85(%rip),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1050 <log@plt>
movapd 0x10(%rsp),%xmm1
mulsd  0xe42(%rip),%xmm1
mulsd  %xmm1,%xmm0
addsd  0x8(%rsp),%xmm0
add    $0x38,%rsp
ret

LLVM IR (-O0):
define double @isometric_latitude(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = fdiv double %5, 2.000000e+00
%7 = fadd double 0x3FE921FB54442D18, %6
%8 = call double @tan(double %7)
%9 = call double @log(double %8)
%10 = load double, double* %4
%11 = fdiv double %10, 2.000000e+00
%12 = load double, double* %4
%13 = load double, double* %3
%14 = call double @sin(double %13)
%15 = call double @llvm.fmuladd.f64(double %12, double %14, double 1.000000e+00)
%16 = load double, double* %4
%17 = load double, double* %3
%18 = call double @sin(double %17)
%19 = fneg double %16
%20 = call double @llvm.fmuladd.f64(double %19, double %18, double 1.000000e+00)
%21 = fdiv double %15, %20
%22 = call double @log(double %21)
%23 = fneg double %11
%24 = call double @llvm.fmuladd.f64(double %23, double %22, double %9)
ret double %24
}

LLVM IR (-O2):
define double @isometric_latitude(double %0, double %1) {
%3 = fmul double %0, 5.000000e-01
%4 = fadd double %3, 0x3FE921FB54442D18
%5 = tail call double @tan(double %4)
%6 = tail call double @log(double %5)
%7 = tail call double @sin(double %0)
%8 = tail call double @sin(double %0)
%9 = fneg double %1
%10 = insertelement <2 x double> poison, double %1, i64 0
%11 = insertelement <2 x double> %10, double %9, i64 1
%12 = insertelement <2 x double> poison, double %7, i64 0
%13 = insertelement <2 x double> %12, double %8, i64 1
%14 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %11, <2 x double> %13, <2 x double> <double 1.000000e+00, double 1.000000e+00>)
%15 = extractelement <2 x double> %14, i64 0
%16 = extractelement <2 x double> %14, i64 1
%17 = fdiv double %15, %16
%18 = tail call double @log(double %17)
%19 = fmul double %1, -5.000000e-01
%20 = tail call double @llvm.fmuladd.f64(double %19, double %18, double %6)
ret double %20
}