#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 */
float log(double);
float sin(float);
double tan(double);
float isometric_latitude(float phi, float 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    $0x30,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xeb5(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xeb1(%rip),%xmm0
addsd  %xmm1,%xmm0
call   1040 <tan@plt>
call   1050 <log@plt>
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe81(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movss  -0x28(%rbp),%xmm0
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe44(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <sin@plt>
movss  -0x24(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x20(%rbp),%xmm0
mulss  %xmm2,%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xe0a(%rip),%xmm1
subsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
call   1050 <log@plt>
movsd  -0x18(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x10(%rbp),%xmm0
cvtss2sd %xmm2,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isometric_latitude>:
sub    $0x28,%rsp
movss  %xmm1,0x8(%rsp)
movss  %xmm0,0xc(%rsp)
cvtss2sd %xmm0,%xmm0
mulsd  0xeb4(%rip),%xmm0
addsd  0xeb4(%rip),%xmm0
call   1040 <tan@plt>
call   1050 <log@plt>
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x20(%rsp)
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
movss  0xc(%rsp),%xmm0
call   1030 <sin@plt>
mulss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
addsd  0xe7b(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movss  0xc(%rsp),%xmm0
call   1030 <sin@plt>
mulss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe58(%rip),%xmm1
subsd  %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
divsd  %xmm1,%xmm0
call   1050 <log@plt>
cvtss2sd %xmm0,%xmm0
movsd  0x18(%rsp),%xmm1
mulsd  0xe3b(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x20(%rsp),%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
add    $0x28,%rsp
ret

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

LLVM IR (-O2):
define float @isometric_latitude(float %0, float %1) {
%3 = fpext float %0 to double
%4 = fmul double %3, 5.000000e-01
%5 = fadd double %4, 0x3FE921FB54442D18
%6 = tail call double @tan(double %5)
%7 = tail call float @log(double %6)
%8 = fpext float %7 to double
%9 = fpext float %1 to double
%10 = tail call float @sin(float %0)
%11 = fmul float %10, %1
%12 = fpext float %11 to double
%13 = fadd double %12, 1.000000e+00
%14 = tail call float @sin(float %0)
%15 = fmul float %14, %1
%16 = fpext float %15 to double
%17 = fsub double 1.000000e+00, %16
%18 = fdiv double %13, %17
%19 = tail call float @log(double %18)
%20 = fpext float %19 to double
%21 = fmul double %9, -5.000000e-01
%22 = tail call double @llvm.fmuladd.f64(double %21, double %20, double %8)
%23 = fptrunc double %22 to float
ret float %23
}