#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 pow(double, double);
int /*<<< orphan*/ printf(char *, double);
int /*<<< orphan*/ scanf(char *, double *);
double sin(double);
int main(void) {
  double q8, h;
  scanf("%lf", &h);
  if (h > 500) {
    q8 = 30;
  } else {
    q8 = 133.17 * (pow(2.7182818, (-0.0027 * h))) -
         53.17 * (pow(2.7182818, (-0.0141 * h))) +
         ((-6.2 * (pow(2.7182818, (-0.00462 * h)))) * sin(0.0146 * h));
  }
  printf("%f\n", q8);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xefa(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1050 <scanf@plt>
movsd  -0x18(%rbp),%xmm0
movsd  0xe94(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1188 <main+0x48>
movsd  0xeca(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    125b <main+0x11b>
movsd  0xeb0(%rip),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  0xe7b(%rip),%xmm0
call   1060 <pow@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  0xe89(%rip),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  0xe5c(%rip),%xmm0
call   1060 <pow@plt>
movaps %xmm0,%xmm2
movsd  -0x30(%rbp),%xmm0
movsd  0xe5f(%rip),%xmm1
mulsd  %xmm2,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xe34(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe17(%rip),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  0xe02(%rip),%xmm0
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xdea(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xdd1(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
call   1040 <sin@plt>
movsd  -0x28(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x20(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
lea    0xded(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xf05(%rip),%rdi
mov    %rsp,%rsi
call   1050 <scanf@plt>
movsd  (%rsp),%xmm1
ucomisd 0xea8(%rip),%xmm1
jbe    116f <main+0x2f>
movsd  0xe96(%rip),%xmm0
jmp    120a <main+0xca>
mulsd  0xe99(%rip),%xmm1
movsd  0xe99(%rip),%xmm0
call   1060 <pow@plt>
movsd  %xmm0,0x8(%rsp)
movsd  (%rsp),%xmm1
mulsd  0xe89(%rip),%xmm1
movsd  0xe79(%rip),%xmm0
call   1060 <pow@plt>
mulsd  0xe7c(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  0xe76(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  (%rsp),%xmm1
mulsd  0xe67(%rip),%xmm1
movsd  0xe3f(%rip),%xmm0
call   1060 <pow@plt>
mulsd  0xe5a(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  (%rsp),%xmm0
mulsd  0xe4f(%rip),%xmm0
call   1040 <sin@plt>
mulsd  0x10(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
lea    0xe43(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%lf\00"
@.str.1 = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %3)
%5 = load double, double* %3
%6 = fcmp ogt double %5, 5.000000e+02
br i1 %6, label %7, label %8
7: ; preds = %0
store double 3.000000e+01, double* %2
br label %26
8: ; preds = %0
%9 = load double, double* %3
%10 = fmul double -2.700000e-03, %9
%11 = call double @pow(double 0x4005BF0A87427F01, double %10)
%12 = load double, double* %3
%13 = fmul double -1.410000e-02, %12
%14 = call double @pow(double 0x4005BF0A87427F01, double %13)
%15 = fmul double 5.317000e+01, %14
%16 = fneg double %15
%17 = call double @llvm.fmuladd.f64(double 1.331700e+02, double %11, double %16)
%18 = load double, double* %3
%19 = fmul double -4.620000e-03, %18
%20 = call double @pow(double 0x4005BF0A87427F01, double %19)
%21 = fmul double -6.200000e+00, %20
%22 = load double, double* %3
%23 = fmul double 1.460000e-02, %22
%24 = call double @sin(double %23)
%25 = call double @llvm.fmuladd.f64(double %21, double %24, double %17)
store double %25, double* %2
br label %26
26: ; preds = %8, %7
%27 = load double, double* %2
%28 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %27)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%lf\00"
@.str.1 = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = alloca double
%2 = bitcast double* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %1)
%4 = load double, double* %1
%5 = fcmp ogt double %4, 5.000000e+02
br i1 %5, label %22, label %6
6: ; preds = %0
%7 = fmul double %4, -2.700000e-03
%8 = call double @pow(double 0x4005BF0A87427F01, double %7)
%9 = load double, double* %1
%10 = fmul double %9, -1.410000e-02
%11 = call double @pow(double 0x4005BF0A87427F01, double %10)
%12 = fmul double %11, -5.317000e+01
%13 = call double @llvm.fmuladd.f64(double %8, double 1.331700e+02, double %12)
%14 = load double, double* %1
%15 = fmul double %14, -4.620000e-03
%16 = call double @pow(double 0x4005BF0A87427F01, double %15)
%17 = fmul double %16, -6.200000e+00
%18 = load double, double* %1
%19 = fmul double %18, 1.460000e-02
%20 = call double @sin(double %19)
%21 = call double @llvm.fmuladd.f64(double %17, double %20, double %13)
br label %22
22: ; preds = %0, %6
%23 = phi double [ %21, %6 ], [ 3.000000e+01, %0 ]
%24 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %23)
ret i32 0
}