#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 */
scalar_t__ EOF;
double getValue(float, float, float, float);
int /*<<< orphan*/ printf(char *, double);
scalar_t__ scanf(char *, float *, ...);
int main() {
  float Vr, r, c;
  int size;
  float w;
  while (scanf("%f %f %f %d", &Vr, &r, &c, &size) != EOF) {
    for (int i = 0; i < size; i++) {
      scanf("%f", &w);
      printf("%.3f\n", getValue(Vr, r, r, w));
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
mov    $0x0,%al
call   1050 <scanf@plt>
mov    0x2e84(%rip),%rcx
cmp    (%rcx),%rax
je     11ca <main+0x9a>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11c5 <main+0x95>
lea    0xe85(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
movss  -0x18(%rbp),%xmm3
call   1040 <getValue@plt>
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1174 <main+0x44>
jmp    113f <main+0xf>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xebb(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
lea    0x14(%rsp),%rcx
lea    0x4(%rsp),%r8
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x2e81(%rip),%rcx
cmp    (%rcx),%rax
jne    117d <main+0x4d>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe88(%rip),%r14
lea    0x10(%rsp),%r15
lea    0xe7f(%rip),%rbx
lea    0x14(%rsp),%r12
lea    0x4(%rsp),%r13
jmp    11ca <main+0x9a>
nopl   0x0(%rax)
lea    0xe59(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
mov    %r12,%rcx
mov    %r13,%r8
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x2e23(%rip),%rcx
cmp    (%rcx),%rax
je     116c <main+0x3c>
cmpl   $0x0,0x4(%rsp)
jle    11a0 <main+0x70>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
movss  0xc(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
movss  0x10(%rsp),%xmm3
movaps %xmm1,%xmm2
call   1040 <getValue@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
add    $0x1,%ebp
cmp    0x4(%rsp),%ebp
jl     11e0 <main+0xb0>
jmp    11a0 <main+0x70>

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

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