#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 */
double computeCircumCircleArea(double, double, double);
double computeInCircleArea(double, double, double);
double computeTriangleArea(double, double, double);
int /*<<< orphan*/ printf(char *, double, double, double);
scalar_t__ scanf(char *, double *, double *, double *);
int main(void) {
  double a, b, c, inCircleArea, triangleArea, circumCircleArea;
  while (scanf("%lf %lf %lf", &a, &b, &c) > 0) {
    triangleArea = computeTriangleArea(a, b, c);
    inCircleArea = computeInCircleArea(a, b, c);
    circumCircleArea = computeCircumCircleArea(a, b, c);
    printf("%.4lf %.4lf %.4lf\n", circumCircleArea - triangleArea,
           triangleArea - inCircleArea, inCircleArea);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9a(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
call   1060 <scanf@plt>
cmp    $0x0,%rax
jle    11f6 <main+0xa6>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
call   1070 <computeTriangleArea@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
call   1030 <computeInCircleArea@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
call   1050 <computeCircumCircleArea@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
subsd  -0x28(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
lea    0xe20(%rip),%rdi
call   1040 <printf@plt>
jmp    115f <main+0xf>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x30,%rsp
lea    0xe9c(%rip),%rdi
lea    0x18(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0x8(%rsp),%rcx
call   1060 <scanf@plt>
test   %rax,%rax
jle    1227 <main+0xd7>
lea    0xe84(%rip),%r14
lea    0xe71(%rip),%r15
lea    0x18(%rsp),%r12
lea    0x10(%rsp),%r13
lea    0x8(%rsp),%rbx
xchg   %ax,%ax
movsd  0x18(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
call   1070 <computeTriangleArea@plt>
movsd  %xmm0,0x28(%rsp)
movsd  0x18(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
call   1030 <computeInCircleArea@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0x18(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
call   1050 <computeCircumCircleArea@plt>
movsd  0x28(%rsp),%xmm1
subsd  %xmm1,%xmm0
movsd  0x20(%rsp),%xmm2
subsd  %xmm2,%xmm1
mov    %r14,%rdi
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %rbx,%rcx
call   1060 <scanf@plt>
test   %rax,%rax
jg     11a0 <main+0x50>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [12 x i8] c"%lf %lf %lf\00"
@.str.1 = [19 x i8] c"%.4lf %.4lf %.4lf\0A\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = bitcast double* %1 to i8*
%5 = bitcast double* %2 to i8*
%6 = bitcast double* %3 to i8*
%7 = call i64 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %1, double* %2, double* %3)
%8 = icmp sgt i64 %7, 0
br i1 %8, label %9, label %27
9: ; preds = %0, %9
%10 = load double, double* %1
%11 = load double, double* %2
%12 = load double, double* %3
%13 = call double @computeTriangleArea(double %10, double %11, double %12)
%14 = load double, double* %1
%15 = load double, double* %2
%16 = load double, double* %3
%17 = call double @computeInCircleArea(double %14, double %15, double %16)
%18 = load double, double* %1
%19 = load double, double* %2
%20 = load double, double* %3
%21 = call double @computeCircumCircleArea(double %18, double %19, double %20)
%22 = fsub double %21, %13
%23 = fsub double %13, %17
%24 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), double %22, double %23, double %17)
%25 = call i64 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %1, double* %2, double* %3)
%26 = icmp sgt i64 %25, 0
br i1 %26, label %9, label %27
27: ; preds = %9, %0
ret i32 0
}