#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*/ computeAreaEnclosedEqualSidePolygon(double, int);
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/);
scalar_t__ scanf(char *, double *, int *);
int main(void) {
  int numV;
  double radius;
  while (scanf("%lf %d", &radius, &numV) > 0) {
    printf("%.3lf\n", computeAreaEnclosedEqualSidePolygon(radius, numV));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x8(%rbp),%rdx
call   1050 <scanf@plt>
cmp    $0x0,%rax
jle    117d <main+0x4d>
movsd  -0x10(%rbp),%xmm0
mov    -0x8(%rbp),%edi
call   1030 <computeAreaEnclosedEqualSidePolygon@plt>
mov    %eax,%esi
lea    0xe94(%rip),%rdi
call   1040 <printf@plt>
jmp    113f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xebe(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1050 <scanf@plt>
test   %rax,%rax
jle    119c <main+0x6c>
lea    0xeaa(%rip),%r14
lea    0xe9c(%rip),%r15
lea    0x10(%rsp),%r12
lea    0xc(%rsp),%rbx
xchg   %ax,%ax
movsd  0x10(%rsp),%xmm0
mov    0xc(%rsp),%edi
call   1030 <computeAreaEnclosedEqualSidePolygon@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1050 <scanf@plt>
test   %rax,%rax
jg     1170 <main+0x40>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%lf %d\00"
@.str.1 = [7 x i8] c"%.3lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca double
store i32 0, i32* %1
br label %4
4: ; preds = %7, %0
%5 = call i64 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double* %3, i32* %2)
%6 = icmp sgt i64 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %4
%8 = load double, double* %3
%9 = load i32, i32* %2
%10 = call i32 @computeAreaEnclosedEqualSidePolygon(double %8, i32 %9)
%11 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %10)
br label %4
12: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%lf %d\00"
@.str.1 = [7 x i8] c"%.3lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = bitcast i32* %1 to i8*
%4 = bitcast double* %2 to i8*
%5 = call i64 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double* %2, i32* %1)
%6 = icmp sgt i64 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %0, %7
%8 = load double, double* %2
%9 = load i32, i32* %1
%10 = call i32 @computeAreaEnclosedEqualSidePolygon(double %8, i32 %9)
%11 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%12 = call i64 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double* %2, i32* %1)
%13 = icmp sgt i64 %12, 0
br i1 %13, label %7, label %14
14: ; preds = %7, %0
ret i32 0
}