#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 jiecheng(int);
int /*<<< orphan*/ printf(char *, double);
int /*<<< orphan*/ scanf(char *, int *, int *);
double zicheng(int, int);
void main(void) {
  int i, j, x;
  double ex = 1;
  scanf("%d %d", &i, &x);
  for (j = 1; j <= i; j++) {
    ex += (zicheng(x, j) * 1.0 / jiecheng(j));
  }
  printf("%.20f", ex);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  0xeb0(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
lea    0xeac(%rip),%rdi
lea    -0x4(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1060 <scanf@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     11c4 <main+0x84>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1050 <zicheng@plt>
movsd  0xe71(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <jiecheng@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
divsd  %xmm1,%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1170 <main+0x30>
movsd  -0x18(%rbp),%xmm0
lea    0xe3e(%rip),%rdi
call   1040 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xebc(%rip),%rdi
lea    0x8(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1060 <scanf@plt>
cmpl   $0x0,0x8(%rsp)
jle    11ad <main+0x6d>
movsd  0xe96(%rip),%xmm0
xor    %ebx,%ebx
nopl   0x0(%rax)
movsd  %xmm0,0x18(%rsp)
add    $0x1,%ebx
mov    0xc(%rsp),%edi
mov    %ebx,%esi
call   1050 <zicheng@plt>
movsd  %xmm0,0x10(%rsp)
mov    %ebx,%edi
call   1030 <jiecheng@plt>
movsd  0x10(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  0x18(%rsp),%xmm0
addsd  %xmm1,%xmm0
cmp    0x8(%rsp),%ebx
jl     1170 <main+0x30>
jmp    11b5 <main+0x75>
movsd  0xe4b(%rip),%xmm0
lea    0xe52(%rip),%rdi
call   1040 <printf@plt>
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [6 x i8] c"%.20f\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca double
store double 1.000000e+00, double* %4
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %3)
store i32 1, i32* %2
br label %6
6: ; preds = %20, %0
%7 = load i32, i32* %2
%8 = load i32, i32* %1
%9 = icmp sle i32 %7, %8
br i1 %9, label %10, label %23
10: ; preds = %6
%11 = load i32, i32* %3
%12 = load i32, i32* %2
%13 = call double @zicheng(i32 %11, i32 %12)
%14 = fmul double %13, 1.000000e+00
%15 = load i32, i32* %2
%16 = call double @jiecheng(i32 %15)
%17 = fdiv double %14, %16
%18 = load double, double* %4
%19 = fadd double %18, %17
store double %19, double* %4
br label %20
20: ; preds = %10
%21 = load i32, i32* %2
%22 = add nsw i32 %21, 1
store i32 %22, i32* %2
br label %6
23: ; preds = %6
%24 = load double, double* %4
%25 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %24)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [6 x i8] c"%.20f\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = icmp slt i32 %6, 1
br i1 %7, label %19, label %8
8: ; preds = %0, %8
%9 = phi double [ %15, %8 ], [ 1.000000e+00, %0 ]
%10 = phi i32 [ %16, %8 ], [ 1, %0 ]
%11 = load i32, i32* %2
%12 = call double @zicheng(i32 %11, i32 %10)
%13 = call double @jiecheng(i32 %10)
%14 = fdiv double %12, %13
%15 = fadd double %9, %14
%16 = add nuw nsw i32 %10, 1
%17 = load i32, i32* %1
%18 = icmp slt i32 %10, %17
br i1 %18, label %8, label %19
19: ; preds = %8, %0
%20 = phi double [ 1.000000e+00, %0 ], [ %15, %8 ]
%21 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %20)
ret void
}