#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 M_PI;
double cos(double);
double pow(double, double);
double sin(double);
double DMu_Dy(double L, double R, double Rho, double T, double T_ref,
              double a_py, double a_rhoy, double beta, double mu_ref,
              double p_y, double rho_y, double y) {
  return M_PI * a_rhoy * beta * mu_ref * rho_y * pow(T, beta) *
             pow((1.0 / T_ref), beta) * sin(M_PI * a_rhoy * y / L) / (L * Rho) +
         M_PI * a_py * beta * mu_ref * p_y * pow(T, beta) *
             pow((1.0 / T_ref), beta) * cos(M_PI * a_py * y / L) /
             (L * R * Rho * T);
}


x86 assembly (clang, -O0):
<DMu_Dy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movsd  0x28(%rbp),%xmm8
movsd  0x20(%rbp),%xmm8
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)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
movsd  %xmm7,-0x40(%rbp)
mov    0x2e66(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  0x10(%rbp),%xmm0
mulsd  0x20(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xe39(%rip),%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    0x2dfa(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  0x28(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x8(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    0x2dbc(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  0x10(%rbp),%xmm0
mulsd  0x18(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xd8f(%rip),%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x2d50(%rip),%rax
movsd  (%rax),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  0x28(%rbp),%xmm0
divsd  -0x8(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x50(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm2,%xmm1
movsd  -0x8(%rbp),%xmm2
mulsd  -0x10(%rbp),%xmm2
mulsd  -0x18(%rbp),%xmm2
mulsd  -0x20(%rbp),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DMu_Dy>:
push   %rbx
sub    $0xb0,%rsp
movaps %xmm7,0x30(%rsp)
movaps %xmm6,0x10(%rsp)
movaps %xmm5,0x70(%rsp)
movsd  %xmm4,(%rsp)
movaps %xmm3,0x80(%rsp)
movaps %xmm2,0xa0(%rsp)
movaps %xmm1,0x90(%rsp)
movaps %xmm0,0x50(%rsp)
mov    0x2e78(%rip),%rbx
movsd  (%rbx),%xmm0
movaps %xmm0,0x20(%rsp)
movaps %xmm3,%xmm0
movaps %xmm7,%xmm1
call   1050 <pow@plt>
movaps %xmm0,0x40(%rsp)
movsd  0xe6f(%rip),%xmm0
divsd  (%rsp),%xmm0
movsd  %xmm0,0x68(%rsp)
movaps 0x30(%rsp),%xmm1
call   1050 <pow@plt>
movapd %xmm0,(%rsp)
movsd  (%rbx),%xmm0
mulsd  0x10(%rsp),%xmm0
mulsd  0xd8(%rsp),%xmm0
divsd  0x50(%rsp),%xmm0
call   1030 <sin@plt>
movapd 0x20(%rsp),%xmm1
movhpd (%rbx),%xmm1
movapd %xmm0,0x20(%rsp)
movapd 0x10(%rsp),%xmm0
unpcklpd 0x70(%rsp),%xmm0
mulpd  %xmm1,%xmm0
movapd %xmm0,%xmm2
movapd 0x30(%rsp),%xmm1
movapd %xmm1,%xmm0
unpcklpd %xmm1,%xmm0
mulpd  %xmm2,%xmm0
movsd  0xc0(%rsp),%xmm2
unpcklpd %xmm2,%xmm2
mulpd  %xmm0,%xmm2
movsd  0xd0(%rsp),%xmm0
movhpd 0xc8(%rsp),%xmm0
mulpd  %xmm2,%xmm0
movapd %xmm0,0x10(%rsp)
movapd 0x80(%rsp),%xmm0
call   1050 <pow@plt>
movapd 0x40(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0x10(%rsp),%xmm1
movapd %xmm1,0x40(%rsp)
movsd  0x68(%rsp),%xmm0
movaps 0x30(%rsp),%xmm1
call   1050 <pow@plt>
movapd (%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0x40(%rsp),%xmm1
movapd %xmm1,(%rsp)
movapd 0x70(%rsp),%xmm0
mulsd  (%rbx),%xmm0
mulsd  0xd8(%rsp),%xmm0
divsd  0x50(%rsp),%xmm0
call   1040 <cos@plt>
movapd 0x20(%rsp),%xmm3
unpcklpd %xmm0,%xmm3
mulpd  (%rsp),%xmm3
movapd 0x50(%rsp),%xmm1
movapd 0x90(%rsp),%xmm2
mulsd  %xmm1,%xmm2
movapd 0xa0(%rsp),%xmm0
mulsd  %xmm0,%xmm2
unpcklpd %xmm2,%xmm1
unpcklpd 0x80(%rsp),%xmm0
mulpd  %xmm1,%xmm0
divpd  %xmm0,%xmm3
movapd %xmm3,%xmm0
unpckhpd %xmm3,%xmm0
addsd  %xmm3,%xmm0
add    $0xb0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@M_PI = global double 0.000000e+00
define double @DMu_Dy(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10, double %11) {
%13 = alloca double
%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
store double %0, double* %13
store double %1, double* %14
store double %2, double* %15
store double %3, double* %16
store double %4, double* %17
store double %5, double* %18
store double %6, double* %19
store double %7, double* %20
store double %8, double* %21
store double %9, double* %22
store double %10, double* %23
store double %11, double* %24
%25 = load double, double* @M_PI
%26 = load double, double* %19
%27 = fmul double %25, %26
%28 = load double, double* %20
%29 = fmul double %27, %28
%30 = load double, double* %21
%31 = fmul double %29, %30
%32 = load double, double* %23
%33 = fmul double %31, %32
%34 = load double, double* %16
%35 = load double, double* %20
%36 = call double @pow(double %34, double %35)
%37 = fmul double %33, %36
%38 = load double, double* %17
%39 = fdiv double 1.000000e+00, %38
%40 = load double, double* %20
%41 = call double @pow(double %39, double %40)
%42 = fmul double %37, %41
%43 = load double, double* @M_PI
%44 = load double, double* %19
%45 = fmul double %43, %44
%46 = load double, double* %24
%47 = fmul double %45, %46
%48 = load double, double* %13
%49 = fdiv double %47, %48
%50 = call double @sin(double %49)
%51 = fmul double %42, %50
%52 = load double, double* %13
%53 = load double, double* %15
%54 = fmul double %52, %53
%55 = fdiv double %51, %54
%56 = load double, double* @M_PI
%57 = load double, double* %18
%58 = fmul double %56, %57
%59 = load double, double* %20
%60 = fmul double %58, %59
%61 = load double, double* %21
%62 = fmul double %60, %61
%63 = load double, double* %22
%64 = fmul double %62, %63
%65 = load double, double* %16
%66 = load double, double* %20
%67 = call double @pow(double %65, double %66)
%68 = fmul double %64, %67
%69 = load double, double* %17
%70 = fdiv double 1.000000e+00, %69
%71 = load double, double* %20
%72 = call double @pow(double %70, double %71)
%73 = fmul double %68, %72
%74 = load double, double* @M_PI
%75 = load double, double* %18
%76 = fmul double %74, %75
%77 = load double, double* %24
%78 = fmul double %76, %77
%79 = load double, double* %13
%80 = fdiv double %78, %79
%81 = call double @cos(double %80)
%82 = fmul double %73, %81
%83 = load double, double* %13
%84 = load double, double* %14
%85 = fmul double %83, %84
%86 = load double, double* %15
%87 = fmul double %85, %86
%88 = load double, double* %16
%89 = fmul double %87, %88
%90 = fdiv double %82, %89
%91 = fadd double %55, %90
ret double %91
}

LLVM IR (-O2):
@M_PI = global double 0.000000e+00
define double @DMu_Dy(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10, double %11) {
%13 = load double, double* @M_PI
%14 = tail call double @pow(double %3, double %7)
%15 = fdiv double 1.000000e+00, %4
%16 = tail call double @pow(double %15, double %7)
%17 = load double, double* @M_PI
%18 = fmul double %17, %6
%19 = fmul double %18, %11
%20 = fdiv double %19, %0
%21 = tail call double @sin(double %20)
%22 = load double, double* @M_PI
%23 = insertelement <2 x double> poison, double %13, i64 0
%24 = insertelement <2 x double> %23, double %22, i64 1
%25 = insertelement <2 x double> poison, double %6, i64 0
%26 = insertelement <2 x double> %25, double %5, i64 1
%27 = fmul <2 x double> %24, %26
%28 = insertelement <2 x double> poison, double %7, i64 0
%29 = shufflevector <2 x double> %28, <2 x double> poison, <2 x i32> zeroinitializer
%30 = fmul <2 x double> %27, %29
%31 = insertelement <2 x double> poison, double %8, i64 0
%32 = shufflevector <2 x double> %31, <2 x double> poison, <2 x i32> zeroinitializer
%33 = fmul <2 x double> %30, %32
%34 = insertelement <2 x double> poison, double %10, i64 0
%35 = insertelement <2 x double> %34, double %9, i64 1
%36 = fmul <2 x double> %33, %35
%37 = tail call double @pow(double %3, double %7)
%38 = insertelement <2 x double> poison, double %14, i64 0
%39 = insertelement <2 x double> %38, double %37, i64 1
%40 = fmul <2 x double> %39, %36
%41 = tail call double @pow(double %15, double %7)
%42 = insertelement <2 x double> poison, double %16, i64 0
%43 = insertelement <2 x double> %42, double %41, i64 1
%44 = fmul <2 x double> %43, %40
%45 = load double, double* @M_PI
%46 = fmul double %45, %5
%47 = fmul double %46, %11
%48 = fdiv double %47, %0
%49 = tail call double @cos(double %48)
%50 = insertelement <2 x double> poison, double %21, i64 0
%51 = insertelement <2 x double> %50, double %49, i64 1
%52 = fmul <2 x double> %51, %44
%53 = fmul double %0, %1
%54 = fmul double %53, %2
%55 = insertelement <2 x double> poison, double %0, i64 0
%56 = insertelement <2 x double> %55, double %54, i64 1
%57 = insertelement <2 x double> poison, double %2, i64 0
%58 = insertelement <2 x double> %57, double %3, i64 1
%59 = fmul <2 x double> %56, %58
%60 = fdiv <2 x double> %52, %59
%61 = shufflevector <2 x double> %60, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%62 = fadd <2 x double> %60, %61
%63 = extractelement <2 x double> %62, i64 0
ret double %63
}