#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 sin(double);
double mapf(double el, double a, double b, double c) {
  double sinel = sin(el);
  return (1.0 + a / (1.0 + b / (1.0 + c))) /
         (sinel + (a / (sinel + b / (sinel + c))));
}


x86 assembly (clang, -O0):
<mapf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  0xeb3(%rip),%xmm0
addsd  -0x20(%rbp),%xmm0
divsd  %xmm0,%xmm2
movsd  0xea2(%rip),%xmm0
addsd  %xmm2,%xmm0
divsd  %xmm0,%xmm1
movsd  0xe92(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  -0x18(%rbp),%xmm4
movsd  -0x28(%rbp),%xmm5
addsd  -0x20(%rbp),%xmm5
divsd  %xmm5,%xmm4
addsd  %xmm4,%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mapf>:
sub    $0x38,%rsp
movaps %xmm3,(%rsp)
movaps %xmm2,0x10(%rsp)
movaps %xmm1,0x20(%rsp)
call   1030 <sin@plt>
movapd (%rsp),%xmm2
unpcklpd %xmm2,%xmm2
movapd 0xec8(%rip),%xmm1
unpcklpd %xmm0,%xmm1
addpd  %xmm1,%xmm2
movapd 0x10(%rsp),%xmm0
unpcklpd %xmm0,%xmm0
divpd  %xmm2,%xmm0
addpd  %xmm1,%xmm0
movapd %xmm0,%xmm2
movapd 0x20(%rsp),%xmm0
unpcklpd %xmm0,%xmm0
divpd  %xmm2,%xmm0
addpd  %xmm1,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
divsd  %xmm1,%xmm0
add    $0x38,%rsp
ret

LLVM IR (-O0):
define double @mapf(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%10 = load double, double* %5
%11 = call double @sin(double %10)
store double %11, double* %9
%12 = load double, double* %6
%13 = load double, double* %7
%14 = load double, double* %8
%15 = fadd double 1.000000e+00, %14
%16 = fdiv double %13, %15
%17 = fadd double 1.000000e+00, %16
%18 = fdiv double %12, %17
%19 = fadd double 1.000000e+00, %18
%20 = load double, double* %9
%21 = load double, double* %6
%22 = load double, double* %9
%23 = load double, double* %7
%24 = load double, double* %9
%25 = load double, double* %8
%26 = fadd double %24, %25
%27 = fdiv double %23, %26
%28 = fadd double %22, %27
%29 = fdiv double %21, %28
%30 = fadd double %20, %29
%31 = fdiv double %19, %30
ret double %31
}

LLVM IR (-O2):
define double @mapf(double %0, double %1, double %2, double %3) {
%5 = tail call double @sin(double %0)
%6 = insertelement <2 x double> poison, double %3, i64 0
%7 = shufflevector <2 x double> %6, <2 x double> poison, <2 x i32> zeroinitializer
%8 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %5, i64 1
%9 = fadd <2 x double> %7, %8
%10 = insertelement <2 x double> poison, double %2, i64 0
%11 = shufflevector <2 x double> %10, <2 x double> poison, <2 x i32> zeroinitializer
%12 = fdiv <2 x double> %11, %9
%13 = fadd <2 x double> %8, %12
%14 = insertelement <2 x double> poison, double %1, i64 0
%15 = shufflevector <2 x double> %14, <2 x double> poison, <2 x i32> zeroinitializer
%16 = fdiv <2 x double> %15, %13
%17 = fadd <2 x double> %8, %16
%18 = extractelement <2 x double> %17, i64 0
%19 = extractelement <2 x double> %17, i64 1
%20 = fdiv double %18, %19
ret double %20
}