#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 */
int pow(double, int);
int /*<<< orphan*/ printf(char *, double);
int /*<<< orphan*/ scanf(char *, double *);
int main() {
  int i, j;
  double input = 0, sum = 0, jie[200];
  jie[1] = 1;
  for (i = 2; i < 200; i++)
    jie[i] = i * jie[i - 1];
  scanf("%lf", &input);
  sum += 1;
  j = -1;
  for (i = 2; i < 200; i += 2) {
    sum += j * pow(input, i) / jie[i];
    j *= -1;
  }
  printf("%f\n", sum);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x670,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xea6(%rip),%xmm0
movsd  %xmm0,-0x658(%rbp)
ff
movl   $0x2,-0x8(%rbp)
cmpl   $0xc8,-0x8(%rbp)
jge    11a7 <main+0x77>
cvtsi2sdl -0x8(%rbp),%xmm0
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
cltq
mulsd  -0x660(%rbp,%rax,8),%xmm0
ff ff
movslq -0x8(%rbp),%rax
movsd  %xmm0,-0x660(%rbp,%rax,8)
ff ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1169 <main+0x39>
lea    0xe5a(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
movsd  0xe41(%rip),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movl   $0xffffffff,-0xc(%rbp)
movl   $0x2,-0x8(%rbp)
cmpl   $0xc8,-0x8(%rbp)
jge    1235 <main+0x105>
mov    -0xc(%rbp),%eax
mov    %eax,-0x664(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%edi
call   1050 <pow@plt>
mov    %eax,%ecx
mov    -0x664(%rbp),%eax
imul   %ecx,%eax
cvtsi2sd %eax,%xmm0
movslq -0x8(%rbp),%rax
divsd  -0x660(%rbp,%rax,8),%xmm0
ff ff
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
imul   $0xffffffff,-0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    11d7 <main+0xa7>
movsd  -0x20(%rbp),%xmm0
lea    0xdcb(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x670,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x650,%rsp
movq   $0x0,0x8(%rsp)
movabs $0x3ff0000000000000,%rax
mov    %rax,0x18(%rsp)
mov    $0x2,%eax
movsd  0xea3(%rip),%xmm0
nopl   (%rax)
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp,%rax,8)
lea    0x1(%rax),%ecx
xorps  %xmm2,%xmm2
cvtsi2sd %ecx,%xmm2
mulsd  %xmm1,%xmm2
movsd  %xmm2,0x18(%rsp,%rax,8)
lea    0x2(%rax),%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
mulsd  %xmm2,%xmm0
movsd  %xmm0,0x20(%rsp,%rax,8)
add    $0x3,%rax
cmp    $0xc8,%rax
jne    1160 <main+0x30>
lea    0xe5c(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1040 <scanf@plt>
movsd  0xe42(%rip),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x2,%ebx
nopl   0x0(%rax,%rax,1)
movsd  0x8(%rsp),%xmm0
mov    %ebx,%edi
call   1050 <pow@plt>
neg    %eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0x10(%rsp,%rbx,8),%xmm0
addsd  (%rsp),%xmm0
cmp    $0xc5,%rbx
ja     122e <main+0xfe>
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
lea    0x2(%rbx),%edi
call   1050 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0x20(%rsp,%rbx,8),%xmm0
movsd  (%rsp),%xmm1
addsd  %xmm0,%xmm1
add    $0x4,%rbx
movsd  %xmm1,(%rsp)
jmp    11d0 <main+0xa0>
lea    0xdd7(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x650,%rsp
pop    %rbx
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 i32
%3 = alloca i32
%4 = alloca double
%5 = alloca double
%6 = alloca [200 x double]
store i32 0, i32* %1
store double 0.000000e+00, double* %4
store double 0.000000e+00, double* %5
%7 = getelementptr inbounds [200 x double], [200 x double]* %6, i64 0, i64 1
store double 1.000000e+00, double* %7
store i32 2, i32* %2
br label %8
8: ; preds = %23, %0
%9 = load i32, i32* %2
%10 = icmp slt i32 %9, 200
br i1 %10, label %11, label %26
11: ; preds = %8
%12 = load i32, i32* %2
%13 = sitofp i32 %12 to double
%14 = load i32, i32* %2
%15 = sub nsw i32 %14, 1
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [200 x double], [200 x double]* %6, i64 0, i64 %16
%18 = load double, double* %17
%19 = fmul double %13, %18
%20 = load i32, i32* %2
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [200 x double], [200 x double]* %6, i64 0, i64 %21
store double %19, double* %22
br label %23
23: ; preds = %11
%24 = load i32, i32* %2
%25 = add nsw i32 %24, 1
store i32 %25, i32* %2
br label %8
26: ; preds = %8
%27 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %4)
%28 = load double, double* %5
%29 = fadd double %28, 1.000000e+00
store double %29, double* %5
store i32 -1, i32* %3
store i32 2, i32* %2
br label %30
30: ; preds = %49, %26
%31 = load i32, i32* %2
%32 = icmp slt i32 %31, 200
br i1 %32, label %33, label %52
33: ; preds = %30
%34 = load i32, i32* %3
%35 = load double, double* %4
%36 = load i32, i32* %2
%37 = call i32 @pow(double %35, i32 %36)
%38 = mul nsw i32 %34, %37
%39 = sitofp i32 %38 to double
%40 = load i32, i32* %2
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [200 x double], [200 x double]* %6, i64 0, i64 %41
%43 = load double, double* %42
%44 = fdiv double %39, %43
%45 = load double, double* %5
%46 = fadd double %45, %44
store double %46, double* %5
%47 = load i32, i32* %3
%48 = mul nsw i32 %47, -1
store i32 %48, i32* %3
br label %49
49: ; preds = %33
%50 = load i32, i32* %2
%51 = add nsw i32 %50, 2
store i32 %51, i32* %2
br label %30
52: ; preds = %30
%53 = load double, double* %5
%54 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %53)
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 = alloca [200 x double]
%3 = bitcast double* %1 to i8*
store double 0.000000e+00, double* %1
%4 = bitcast [200 x double]* %2 to i8*
%5 = getelementptr inbounds [200 x double], [200 x double]* %2, i64 0, i64 1
store double 1.000000e+00, double* %5
br label %6
6: ; preds = %6, %0
%7 = phi double [ 1.000000e+00, %0 ], [ %21, %6 ]
%8 = phi i64 [ 2, %0 ], [ %23, %6 ]
%9 = trunc i64 %8 to i32
%10 = sitofp i32 %9 to double
%11 = fmul double %7, %10
%12 = getelementptr inbounds [200 x double], [200 x double]* %2, i64 0, i64 %8
store double %11, double* %12
%13 = add nuw nsw i64 %8, 1
%14 = trunc i64 %13 to i32
%15 = sitofp i32 %14 to double
%16 = fmul double %11, %15
%17 = getelementptr inbounds [200 x double], [200 x double]* %2, i64 0, i64 %13
store double %16, double* %17
%18 = add nuw nsw i64 %8, 2
%19 = trunc i64 %18 to i32
%20 = sitofp i32 %19 to double
%21 = fmul double %16, %20
%22 = getelementptr inbounds [200 x double], [200 x double]* %2, i64 0, i64 %18
store double %21, double* %22
%23 = add nuw nsw i64 %8, 3
%24 = icmp eq i64 %23, 200
br i1 %24, label %25, label %6
25: ; preds = %6
%26 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %1)
br label %27
27: ; preds = %41, %25
%28 = phi i64 [ 2, %25 ], [ %50, %41 ]
%29 = phi double [ 1.000000e+00, %25 ], [ %49, %41 ]
%30 = load double, double* %1
%31 = trunc i64 %28 to i32
%32 = call i32 @pow(double %30, i32 %31)
%33 = sub nsw i32 0, %32
%34 = sitofp i32 %33 to double
%35 = getelementptr inbounds [200 x double], [200 x double]* %2, i64 0, i64 %28
%36 = load double, double* %35
%37 = fdiv double %34, %36
%38 = fadd double %29, %37
%39 = add nuw nsw i64 %28, 2
%40 = icmp ult i64 %28, 198
br i1 %40, label %41, label %51
41: ; preds = %27
%42 = load double, double* %1
%43 = trunc i64 %39 to i32
%44 = call i32 @pow(double %42, i32 %43)
%45 = sitofp i32 %44 to double
%46 = getelementptr inbounds [200 x double], [200 x double]* %2, i64 0, i64 %39
%47 = load double, double* %46
%48 = fdiv double %45, %47
%49 = fadd double %38, %48
%50 = add nuw nsw i64 %28, 4
br label %27
51: ; preds = %27
%52 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %38)
ret i32 0
}