#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 M_PI;
float sqrtf(float);
float el_circumference_accuratef(float semiMajor, float semiMinor) {
  float abOverAb = (semiMajor - semiMinor) / (semiMajor + semiMinor);
  float abOverAbSquare3 = 3.0f * abOverAb * abOverAb;
  return M_PI * (semiMajor + semiMinor) *
         (1.0f + abOverAbSquare3 / (10.0f + sqrtf(4.0f - abOverAbSquare3)));
}


x86 assembly (clang, -O0):
<el_circumference_accuratef>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
movss  -0x4(%rbp),%xmm1
addss  -0x8(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  0xec5(%rip),%xmm0
mulss  -0xc(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
mov    0x2e8b(%rip),%rax
movss  (%rax),%xmm0
movss  -0x4(%rbp),%xmm1
addss  -0x8(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  0xe82(%rip),%xmm0
subss  -0x10(%rbp),%xmm0
call   1030 <sqrtf@plt>
movss  -0x18(%rbp),%xmm2
movaps %xmm0,%xmm3
movss  -0x14(%rbp),%xmm0
movss  0xe5f(%rip),%xmm1
addss  %xmm3,%xmm1
divss  %xmm1,%xmm2
movss  0xe4b(%rip),%xmm1
addss  %xmm2,%xmm1
mulss  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<el_circumference_accuratef>:
push   %rax
movaps %xmm0,%xmm2
subss  %xmm1,%xmm0
addss  %xmm1,%xmm2
divss  %xmm2,%xmm0
movss  0xed8(%rip),%xmm3
mulss  %xmm0,%xmm3
mulss  %xmm0,%xmm3
mov    0x2eb1(%rip),%rax
mulss  (%rax),%xmm2
movss  0xec1(%rip),%xmm0
subss  %xmm3,%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     1155 <el_circumference_accuratef+0x45>
sqrtss %xmm0,%xmm0
jmp    1170 <el_circumference_accuratef+0x60>
movss  %xmm2,0x4(%rsp)
movss  %xmm3,(%rsp)
call   1030 <sqrtf@plt>
movss  (%rsp),%xmm3
movss  0x4(%rsp),%xmm2
addss  0xe90(%rip),%xmm0
divss  %xmm0,%xmm3
addss  0xe88(%rip),%xmm3
mulss  %xmm3,%xmm2
movaps %xmm2,%xmm0
pop    %rax
ret

LLVM IR (-O0):
@M_PI = global float 0.000000e+00
define float @el_circumference_accuratef(float %0, float %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
store float %0, float* %3
store float %1, float* %4
%7 = load float, float* %3
%8 = load float, float* %4
%9 = fsub float %7, %8
%10 = load float, float* %3
%11 = load float, float* %4
%12 = fadd float %10, %11
%13 = fdiv float %9, %12
store float %13, float* %5
%14 = load float, float* %5
%15 = fmul float 3.000000e+00, %14
%16 = load float, float* %5
%17 = fmul float %15, %16
store float %17, float* %6
%18 = load float, float* @M_PI
%19 = load float, float* %3
%20 = load float, float* %4
%21 = fadd float %19, %20
%22 = fmul float %18, %21
%23 = load float, float* %6
%24 = load float, float* %6
%25 = fsub float 4.000000e+00, %24
%26 = call float @sqrtf(float %25)
%27 = fadd float 1.000000e+01, %26
%28 = fdiv float %23, %27
%29 = fadd float 1.000000e+00, %28
%30 = fmul float %22, %29
ret float %30
}

LLVM IR (-O2):
@M_PI = global float 0.000000e+00
define float @el_circumference_accuratef(float %0, float %1) {
%3 = fsub float %0, %1
%4 = fadd float %0, %1
%5 = fdiv float %3, %4
%6 = fmul float %5, 3.000000e+00
%7 = fmul float %5, %6
%8 = load float, float* @M_PI
%9 = fmul float %4, %8
%10 = fsub float 4.000000e+00, %7
%11 = tail call float @sqrtf(float %10)
%12 = fadd float %11, 1.000000e+01
%13 = fdiv float %7, %12
%14 = fadd float %13, 1.000000e+00
%15 = fmul float %9, %14
ret float %15
}