#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 *, int, long double);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  int i, t;
  scanf("%d", &t);
  long double a[t], d;
  for (i = 0; i < t; i++)
    scanf("%Lf", &a[i]);
  for (i = 0; i < t; i++) {
    d = 4 * a[i] * a[i] + 0.25;
    printf("Case %d: %0.2Lf\n", i + 1, d);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
xor    %eax,%eax
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x18(%rbp)
mov    %rax,%rdx
shl    $0x4,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x38(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11a1 <main+0x81>
mov    -0x38(%rbp),%rsi
movslq -0x8(%rbp),%rax
shl    $0x4,%rax
add    %rax,%rsi
lea    0xe7f(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    116a <main+0x4a>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1208 <main+0xe8>
mov    -0x38(%rbp),%rax
movslq -0x8(%rbp),%rcx
shl    $0x4,%rcx
fldt   (%rax,%rcx,1)
flds   0xe37(%rip)
fmul   %st(1),%st
fmulp  %st,%st(1)
flds   0xe31(%rip)
faddp  %st,%st(1)
fstpt  -0x30(%rbp)
mov    -0x8(%rbp),%esi
add    $0x1,%esi
fldt   -0x30(%rbp)
sub    $0x10,%rsp
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe1e(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11a8 <main+0x88>
movl   $0x0,-0x4(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xed3(%rip),%rdi
lea    -0x2c(%rbp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    %rsp,%r15
mov    -0x2c(%rbp),%eax
mov    %rsp,%r12
shl    $0x4,%rax
sub    %rax,%r12
mov    %r12,%rsp
cmpl   $0x0,-0x2c(%rbp)
jle    11da <main+0xba>
lea    0xea7(%rip),%r14
mov    %r12,%r13
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    $0x1,%rbx
movslq -0x2c(%rbp),%rax
add    $0x10,%r13
cmp    %rax,%rbx
jl     1170 <main+0x50>
test   %eax,%eax
jle    11da <main+0xba>
xor    %ebx,%ebx
lea    0xe74(%rip),%r14
nopl   0x0(%rax,%rax,1)
fldt   (%r12)
fld    %st(0)
fmuls  0xe54(%rip)
fmulp  %st,%st(1)
fadds  0xe50(%rip)
add    $0x1,%rbx
sub    $0x10,%rsp
fstpt  (%rsp)
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
add    $0x10,%rsp
movslq -0x2c(%rbp),%rax
add    $0x10,%r12
cmp    %rax,%rbx
jl     11a0 <main+0x80>
mov    %r15,%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%Lf\00"
@.str.2 = [17 x i8] c"Case %d: %0.2Lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i64
%6 = alloca x86_fp80
store i32 0, i32* %1
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%8 = load i32, i32* %3
%9 = zext i32 %8 to i64
%10 = call i8* @llvm.stacksave()
store i8* %10, i8** %4
%11 = alloca x86_fp80, i64 %9
store i64 %9, i64* %5
store i32 0, i32* %2
br label %12
12: ; preds = %21, %0
%13 = load i32, i32* %2
%14 = load i32, i32* %3
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %24
16: ; preds = %12
%17 = load i32, i32* %2
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds x86_fp80, x86_fp80* %11, i64 %18
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), x86_fp80* %19)
br label %21
21: ; preds = %16
%22 = load i32, i32* %2
%23 = add nsw i32 %22, 1
store i32 %23, i32* %2
br label %12
24: ; preds = %12
store i32 0, i32* %2
br label %25
25: ; preds = %44, %24
%26 = load i32, i32* %2
%27 = load i32, i32* %3
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %47
29: ; preds = %25
%30 = load i32, i32* %2
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds x86_fp80, x86_fp80* %11, i64 %31
%33 = load x86_fp80, x86_fp80* %32
%34 = fmul x86_fp80 0xK40018000000000000000, %33
%35 = load i32, i32* %2
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds x86_fp80, x86_fp80* %11, i64 %36
%38 = load x86_fp80, x86_fp80* %37
%39 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %34, x86_fp80 %38, x86_fp80 0xK3FFD8000000000000000)
store x86_fp80 %39, x86_fp80* %6
%40 = load i32, i32* %2
%41 = add nsw i32 %40, 1
%42 = load x86_fp80, x86_fp80* %6
%43 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %41, x86_fp80 %42)
br label %44
44: ; preds = %29
%45 = load i32, i32* %2
%46 = add nsw i32 %45, 1
store i32 %46, i32* %2
br label %25
47: ; preds = %25
store i32 0, i32* %1
%48 = load i8*, i8** %4
%49 = load i32, i32* %1
ret i32 %49
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%Lf\00"
@.str.2 = [17 x i8] c"Case %d: %0.2Lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = zext i32 %4 to i64
%6 = call i8* @llvm.stacksave()
%7 = alloca x86_fp80, i64 %5
%8 = load i32, i32* %1
%9 = icmp sgt i32 %8, 0
br i1 %9, label %12, label %32
10: ; preds = %12
%11 = icmp sgt i32 %17, 0
br i1 %11, label %20, label %32
12: ; preds = %0, %12
%13 = phi i64 [ %16, %12 ], [ 0, %0 ]
%14 = getelementptr inbounds x86_fp80, x86_fp80* %7, i64 %13
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), x86_fp80* %14)
%16 = add nuw nsw i64 %13, 1
%17 = load i32, i32* %1
%18 = sext i32 %17 to i64
%19 = icmp slt i64 %16, %18
br i1 %19, label %12, label %10
20: ; preds = %10, %20
%21 = phi i64 [ %26, %20 ], [ 0, %10 ]
%22 = getelementptr inbounds x86_fp80, x86_fp80* %7, i64 %21
%23 = load x86_fp80, x86_fp80* %22
%24 = fmul x86_fp80 %23, 0xK40018000000000000000
%25 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %24, x86_fp80 %23, x86_fp80 0xK3FFD8000000000000000)
%26 = add nuw nsw i64 %21, 1
%27 = trunc i64 %26 to i32
%28 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %27, x86_fp80 %25)
%29 = load i32, i32* %1
%30 = sext i32 %29 to i64
%31 = icmp slt i64 %26, %30
br i1 %31, label %20, label %32
32: ; preds = %20, %0, %10
ret i32 0
}