#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ solve(double, double, double, double, double);
void load(FILE *in) {
  int n;
  fscanf(in, "%d\n", &n);
  for (int i = 1; i <= n; i++) {
    double f, R, t, r, g;
    fscanf(in, "%lf %lf %lf %lf %lf\n", &f, &R, &t, &r, &g);
    printf("Case #%d: %.6lf\n", i, solve(f, R, t, r, g));
  }
}


x86 assembly (clang, -O0):
<load>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeb9(%rip),%rsi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     11d2 <load+0xa2>
mov    -0x8(%rbp),%rdi
lea    0xe94(%rip),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
lea    -0x28(%rbp),%r8
lea    -0x30(%rbp),%r9
lea    -0x38(%rbp),%rax
mov    %rax,(%rsp)
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x10(%rbp),%eax
mov    %eax,-0x3c(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
movsd  -0x38(%rbp),%xmm4
call   1030 <solve@plt>
mov    -0x3c(%rbp),%esi
mov    %eax,%edx
lea    0xe5a(%rip),%rdi
call   1040 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1159 <load+0x29>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<load>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rdi,%rbx
lea    0xeb8(%rip),%rsi
lea    0xc(%rsp),%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
cmpl   $0x0,0xc(%rsp)
jle    11e3 <load+0xb3>
lea    0x28(%rsp),%r12
lea    0x20(%rsp),%r13
lea    0x18(%rsp),%rbp
lea    0xea4(%rip),%r14
xor    %r15d,%r15d
nopl   0x0(%rax,%rax,1)
add    $0x1,%r15d
lea    0x10(%rsp),%rax
mov    %rax,(%rsp)
mov    %rbx,%rdi
lea    0xe6d(%rip),%rsi
lea    0x30(%rsp),%rdx
mov    %r12,%rcx
mov    %r13,%r8
mov    %rbp,%r9
xor    %eax,%eax
call   1050 <fscanf@plt>
movsd  0x30(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
movsd  0x10(%rsp),%xmm4
call   1030 <solve@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    %eax,%edx
call   1040 <printf@plt>
cmp    0xc(%rsp),%r15d
jl     1180 <load+0x50>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [21 x i8] c"%lf %lf %lf %lf %lf\0A\00"
@.str.2 = [17 x i8] c"Case #%d: %.6lf\0A\00"
define void @load(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
store i32* %0, i32** %2
%10 = load i32*, i32** %2
%11 = call i32 (i32*, i8*, ...) @fscanf(i32* %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %3)
store i32 1, i32* %4
br label %12
12: ; preds = %27, %1
%13 = load i32, i32* %4
%14 = load i32, i32* %3
%15 = icmp sle i32 %13, %14
br i1 %15, label %16, label %30
16: ; preds = %12
%17 = load i32*, i32** %2
%18 = call i32 (i32*, i8*, ...) @fscanf(i32* %17, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), double* %5, double* %6, double* %7, double* %8, double* %9)
%19 = load i32, i32* %4
%20 = load double, double* %5
%21 = load double, double* %6
%22 = load double, double* %7
%23 = load double, double* %8
%24 = load double, double* %9
%25 = call i32 @solve(double %20, double %21, double %22, double %23, double %24)
%26 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %19, i32 %25)
br label %27
27: ; preds = %16
%28 = load i32, i32* %4
%29 = add nsw i32 %28, 1
store i32 %29, i32* %4
br label %12
30: ; preds = %12
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [21 x i8] c"%lf %lf %lf %lf %lf\0A\00"
@.str.2 = [17 x i8] c"Case #%d: %.6lf\0A\00"
define void @load(i32* nocapture %0) {
%2 = alloca i32
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = bitcast i32* %2 to i8*
%9 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %2)
%10 = load i32, i32* %2
%11 = icmp slt i32 %10, 1
br i1 %11, label %18, label %12
12: ; preds = %1
%13 = bitcast double* %3 to i8*
%14 = bitcast double* %4 to i8*
%15 = bitcast double* %5 to i8*
%16 = bitcast double* %6 to i8*
%17 = bitcast double* %7 to i8*
br label %19
18: ; preds = %19, %1
ret void
19: ; preds = %12, %19
%20 = phi i32 [ 1, %12 ], [ %29, %19 ]
%21 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), double* %3, double* %4, double* %5, double* %6, double* %7)
%22 = load double, double* %3
%23 = load double, double* %4
%24 = load double, double* %5
%25 = load double, double* %6
%26 = load double, double* %7
%27 = call i32 @solve(double %22, double %23, double %24, double %25, double %26)
%28 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %20, i32 %27)
%29 = add nuw nsw i32 %20, 1
%30 = load i32, i32* %2
%31 = icmp slt i32 %20, %30
br i1 %31, label %19, label %18
}