#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 */
scalar_t__ EOF;
double acos(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, double);
scalar_t__ scanf(char *, double *);
double sin(double);
int main() {
  double coeff;
  double F, result;
  coeff = sin(108.0 / 180.0 * (2.0 * acos(0))) /
          sin(63.0 / 180.0 * (2.0 * acos(0)));
  while (scanf("%lf\n", &F) != EOF) {
    result = coeff * F;
    printf("%.10lf\n", result);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
call   1040 <acos@plt>
movsd  0xeaa(%rip),%xmm1
mulsd  %xmm0,%xmm1
movsd  0xea6(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1050 <sin@plt>
movsd  %xmm0,-0x28(%rbp)
xor    %edi,%edi
call   1040 <acos@plt>
movsd  0xe81(%rip),%xmm1
mulsd  %xmm0,%xmm1
movsd  0xe6d(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1050 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
lea    0xe64(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1060 <scanf@plt>
mov    0x2e24(%rip),%rcx
cmp    (%rcx),%rax
je     11f2 <main+0xb2>
movsd  -0x10(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
lea    0xe35(%rip),%rdi
call   1030 <printf@plt>
jmp    11ad <main+0x6d>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x18,%rsp
xor    %edi,%edi
call   1040 <acos@plt>
addsd  %xmm0,%xmm0
mulsd  0xea2(%rip),%xmm0
call   1050 <sin@plt>
movsd  %xmm0,(%rsp)
xor    %edi,%edi
call   1040 <acos@plt>
addsd  %xmm0,%xmm0
mulsd  0xe8d(%rip),%xmm0
call   1050 <sin@plt>
movsd  %xmm0,0x10(%rsp)
lea    0xe83(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1060 <scanf@plt>
mov    0x2e4a(%rip),%r12
cmp    (%r12),%rax
je     11f4 <main+0xb4>
movsd  (%rsp),%xmm0
divsd  0x10(%rsp),%xmm0
movsd  %xmm0,(%rsp)
lea    0xe5a(%rip),%r14
lea    0xe4e(%rip),%r15
lea    0x8(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
movsd  0x8(%rsp),%xmm0
mulsd  (%rsp),%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
cmp    (%r12),%rax
jne    11d0 <main+0x90>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%lf\0A\00"
@EOF = global i64 0
@.str.1 = [8 x i8] c"%.10lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
store i32 0, i32* %1
%5 = call double @acos(i32 0)
%6 = fmul double 2.000000e+00, %5
%7 = fmul double 6.000000e-01, %6
%8 = call double @sin(double %7)
%9 = call double @acos(i32 0)
%10 = fmul double 2.000000e+00, %9
%11 = fmul double 3.500000e-01, %10
%12 = call double @sin(double %11)
%13 = fdiv double %8, %12
store double %13, double* %2
br label %14
14: ; preds = %18, %0
%15 = call i64 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), double* %3)
%16 = load i64, i64* @EOF
%17 = icmp ne i64 %15, %16
br i1 %17, label %18, label %24
18: ; preds = %14
%19 = load double, double* %2
%20 = load double, double* %3
%21 = fmul double %19, %20
store double %21, double* %4
%22 = load double, double* %4
%23 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double %22)
br label %14
24: ; preds = %14
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%lf\0A\00"
@EOF = global i64 0
@.str.1 = [8 x i8] c"%.10lf\0A\00"
define i32 @main() {
%1 = alloca double
%2 = bitcast double* %1 to i8*
%3 = tail call double @acos(i32 0)
%4 = fmul double %3, 2.000000e+00
%5 = fmul double %4, 6.000000e-01
%6 = tail call double @sin(double %5)
%7 = tail call double @acos(i32 0)
%8 = fmul double %7, 2.000000e+00
%9 = fmul double %8, 3.500000e-01
%10 = tail call double @sin(double %9)
%11 = fdiv double %6, %10
%12 = call i64 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), double* %1)
%13 = load i64, i64* @EOF
%14 = icmp eq i64 %12, %13
br i1 %14, label %22, label %15
15: ; preds = %0, %15
%16 = load double, double* %1
%17 = fmul double %11, %16
%18 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double %17)
%19 = call i64 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), double* %1)
%20 = load i64, i64* @EOF
%21 = icmp eq i64 %19, %20
br i1 %21, label %22, label %15
22: ; preds = %15, %0
ret i32 0
}