#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 /*<<< orphan*/ printf(char *, double);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int i, n, m;
  scanf("%d%d", &n, &m);
  double sum = 0;
  for (i = n; i <= m; i++) {
    sum += 1.0 / i / i;
  }
  printf("%.5lf\n", sum);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x10(%rbp),%rdx
call   1040 <scanf@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     118f <main+0x6f>
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xe96(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsi2sdl -0x8(%rbp),%xmm1
divsd  %xmm1,%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1151 <main+0x31>
movsd  -0x18(%rbp),%xmm0
lea    0xe72(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee0(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%edx
mov    (%rsp),%eax
xorpd  %xmm0,%xmm0
mov    %eax,%ecx
sub    %edx,%ecx
jl     11c8 <main+0xa8>
add    $0x1,%ecx
test   $0x1,%cl
jne    115e <main+0x3e>
xorpd  %xmm0,%xmm0
mov    %edx,%ecx
cmp    %edx,%eax
jne    1184 <main+0x64>
jmp    11c8 <main+0xa8>
xorps  %xmm0,%xmm0
cvtsi2sd %edx,%xmm0
movsd  0xe93(%rip),%xmm1
divsd  %xmm0,%xmm1
divsd  %xmm0,%xmm1
xorpd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
lea    0x1(%rdx),%ecx
cmp    %edx,%eax
je     11c8 <main+0xa8>
movsd  0xe74(%rip),%xmm1
nopl   0x0(%rax)
xorps  %xmm2,%xmm2
cvtsi2sd %ecx,%xmm2
movapd %xmm1,%xmm3
divsd  %xmm2,%xmm3
divsd  %xmm2,%xmm3
addsd  %xmm0,%xmm3
lea    0x1(%rcx),%edx
xorps  %xmm2,%xmm2
cvtsi2sd %edx,%xmm2
movapd %xmm1,%xmm0
divsd  %xmm2,%xmm0
divsd  %xmm2,%xmm0
addsd  %xmm3,%xmm0
add    $0x2,%ecx
cmp    %eax,%edx
jne    1190 <main+0x70>
lea    0xe3e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [7 x i8] c"%.5lf\0A\00"
define i32 @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 ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = load i32, i32* %2
%8 = icmp slt i32 %7, %6
br i1 %8, label %39, label %9
9: ; preds = %0
%10 = add i32 %7, 1
%11 = sub i32 %10, %6
%12 = and i32 %11, 1
%13 = icmp eq i32 %12, 0
br i1 %13, label %20, label %14
14: ; preds = %9
%15 = sitofp i32 %6 to double
%16 = fdiv double 1.000000e+00, %15
%17 = fdiv double %16, %15
%18 = fadd double %17, 0.000000e+00
%19 = add i32 %6, 1
br label %20
20: ; preds = %14, %9
%21 = phi double [ undef, %9 ], [ %18, %14 ]
%22 = phi double [ 0.000000e+00, %9 ], [ %18, %14 ]
%23 = phi i32 [ %6, %9 ], [ %19, %14 ]
%24 = icmp eq i32 %7, %6
br i1 %24, label %39, label %25
25: ; preds = %20, %25
%26 = phi double [ %36, %25 ], [ %22, %20 ]
%27 = phi i32 [ %37, %25 ], [ %23, %20 ]
%28 = sitofp i32 %27 to double
%29 = fdiv double 1.000000e+00, %28
%30 = fdiv double %29, %28
%31 = fadd double %26, %30
%32 = add i32 %27, 1
%33 = sitofp i32 %32 to double
%34 = fdiv double 1.000000e+00, %33
%35 = fdiv double %34, %33
%36 = fadd double %31, %35
%37 = add i32 %27, 2
%38 = icmp eq i32 %32, %7
br i1 %38, label %39, label %25
39: ; preds = %20, %25, %0
%40 = phi double [ 0.000000e+00, %0 ], [ %21, %20 ], [ %36, %25 ]
%41 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %40)
ret i32 0
}