#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 exp(double);
double pow(double, int);
double Rsky(double ta) {
  return (1.807 * pow(10, -10) * pow(ta, 4) *
          (1 - 0.26 * exp(-7.77 * pow(10, -4) * pow((273.15 - ta), 2))));
}


x86 assembly (clang, -O0):
<Rsky>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  0xeeb(%rip),%xmm0
mov    $0xfffffff6,%edi
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xede(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x4,%edi
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xea5(%rip),%xmm0
mov    $0xfffffffc,%edi
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe88(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xe6f(%rip),%xmm0
subsd  -0x8(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xe2f(%rip),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xe2b(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Rsky>:
sub    $0x18,%rsp
movsd  %xmm0,0x8(%rsp)
movsd  0xece(%rip),%xmm0
mov    $0xfffffff6,%edi
call   1040 <pow@plt>
mulsd  0xec4(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
mov    $0x4,%edi
call   1040 <pow@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe95(%rip),%xmm0
mov    $0xfffffffc,%edi
call   1040 <pow@plt>
mulsd  0xe93(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xe8d(%rip),%xmm0
subsd  0x8(%rsp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
mulsd  0x10(%rsp),%xmm0
call   1030 <exp@plt>
mulsd  0xe72(%rip),%xmm0
addsd  0xe72(%rip),%xmm0
mulsd  (%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @Rsky(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = call double @pow(double 1.000000e+01, i32 -10)
%4 = fmul double 1.807000e+00, %3
%5 = load double, double* %2
%6 = call double @pow(double %5, i32 4)
%7 = fmul double %4, %6
%8 = call double @pow(double 1.000000e+01, i32 -4)
%9 = fmul double 0xC01F147AE147AE14, %8
%10 = load double, double* %2
%11 = fsub double 2.731500e+02, %10
%12 = call double @pow(double %11, i32 2)
%13 = fmul double %9, %12
%14 = call double @exp(double %13)
%15 = call double @llvm.fmuladd.f64(double -2.600000e-01, double %14, double 1.000000e+00)
%16 = fmul double %7, %15
ret double %16
}

LLVM IR (-O2):
define double @Rsky(double %0) {
%2 = tail call double @pow(double 1.000000e+01, i32 -10)
%3 = fmul double %2, 1.807000e+00
%4 = tail call double @pow(double %0, i32 4)
%5 = fmul double %3, %4
%6 = tail call double @pow(double 1.000000e+01, i32 -4)
%7 = fmul double %6, 0xC01F147AE147AE14
%8 = fsub double 2.731500e+02, %0
%9 = tail call double @pow(double %8, i32 2)
%10 = fmul double %7, %9
%11 = tail call double @exp(double %10)
%12 = tail call double @llvm.fmuladd.f64(double %11, double -2.600000e-01, double 1.000000e+00)
%13 = fmul double %5, %12
ret double %13
}