#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, int);
int /*<<< orphan*/ printf(char *, double);
int /*<<< orphan*/ scanf(char *, double *);
int main(void) {
  double q9, i;
  scanf("%lf", &i);
  if (i > 15) {
    q9 = 9;
  } else if (i <= 5) {
    q9 = 1;
  } else {
    q9 = 1 / (0.0003869 * pow(i + 0.1815, 2) + 0.01081);
  }
  printf("%f\n", q9);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xef2(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
movsd  -0x18(%rbp),%xmm0
movsd  0xea4(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1178 <main+0x48>
movsd  0xec2(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    11e5 <main+0xb5>
movsd  0xe88(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
jb     119d <main+0x6d>
movsd  0xe7d(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    11e0 <main+0xb0>
movsd  0xe83(%rip),%xmm0
addsd  -0x18(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe59(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xe55(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xe39(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    11e5 <main+0xb5>
movsd  -0x10(%rbp),%xmm0
lea    0xe4b(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf00(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
movsd  (%rsp),%xmm0
ucomisd 0xebb(%rip),%xmm0
jbe    1159 <main+0x29>
movsd  0xea9(%rip),%xmm0
jmp    11a3 <main+0x73>
movsd  0xeb7(%rip),%xmm1
ucomisd %xmm0,%xmm1
jae    119b <main+0x6b>
addsd  0xeb1(%rip),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movapd %xmm0,%xmm1
mulsd  0xea3(%rip),%xmm1
addsd  0xea3(%rip),%xmm1
movsd  0xe7b(%rip),%xmm0
divsd  %xmm1,%xmm0
jmp    11a3 <main+0x73>
movsd  0xe6d(%rip),%xmm0
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
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, 1.500000e+01
br i1 %6, label %7, label %8
7: ; preds = %0
store double 9.000000e+00, double* %2
br label %19
8: ; preds = %0
%9 = load double, double* %3
%10 = fcmp ole double %9, 5.000000e+00
br i1 %10, label %11, label %12
11: ; preds = %8
store double 1.000000e+00, double* %2
br label %18
12: ; preds = %8
%13 = load double, double* %3
%14 = fadd double %13, 1.815000e-01
%15 = call double @pow(double %14, i32 2)
%16 = call double @llvm.fmuladd.f64(double 3.869000e-04, double %15, double 1.081000e-02)
%17 = fdiv double 1.000000e+00, %16
store double %17, double* %2
br label %18
18: ; preds = %12, %11
br label %19
19: ; preds = %18, %7
%20 = load double, double* %2
%21 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %20)
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, 1.500000e+01
br i1 %5, label %13, label %6
6: ; preds = %0
%7 = fcmp ugt double %4, 5.000000e+00
br i1 %7, label %8, label %13
8: ; preds = %6
%9 = fadd double %4, 1.815000e-01
%10 = call double @pow(double %9, i32 2)
%11 = call double @llvm.fmuladd.f64(double %10, double 3.869000e-04, double 1.081000e-02)
%12 = fdiv double 1.000000e+00, %11
br label %13
13: ; preds = %6, %0, %8
%14 = phi double [ %12, %8 ], [ 9.000000e+00, %0 ], [ 1.000000e+00, %6 ]
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %14)
ret i32 0
}