#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 *, double);
int /*<<< orphan*/ scanf(char *, float *, float *);
int main(int argc, const char *argv[]) {
  float r, h;
  scanf("%f%f", &r, &h);
  printf("C1=%.2f\n", 2 * 3.14 * r);
  printf("Sa=%.2f\n", 3.14 * r * r);
  printf("Sb=%.2f\n", 4 * 3.14 * r * r);
  printf("Va=%.2f\n", 3.14 * 4.0 / 3.0 * r * r * r);
  printf("Vb=%.2f\n", 3.14 * r * r * h);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xee3(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <scanf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xebd(%rip),%xmm0
mulsd  %xmm1,%xmm0
lea    0xebf(%rip),%rdi
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe84(%rip),%xmm0
mulsd  %xmm1,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe66(%rip),%xmm0
mulsd  %xmm1,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
lea    0xe75(%rip),%rdi
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe30(%rip),%xmm0
mulsd  %xmm1,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
lea    0xe43(%rip),%rdi
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xded(%rip),%xmm0
mulsd  %xmm1,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
movss  -0x18(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm1,%xmm0
lea    0xe11(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef8(%rip),%rdi
mov    %rsp,%rsi
lea    0x4(%rsp),%rdx
call   1040 <scanf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xeba(%rip),%xmm0
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm1
movaps %xmm1,%xmm0
mulsd  0xea2(%rip),%xmm0
mulsd  %xmm1,%xmm0
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
movss  (%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movsd  0xe86(%rip),%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
movss  (%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movsd  0xe66(%rip),%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
lea    0xe7b(%rip),%rdi
call   1030 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe2d(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  %xmm1,%xmm0
lea    0xe51(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%f%f\00"
@.str.1 = [9 x i8] c"C1=%.2f\0A\00"
@.str.2 = [9 x i8] c"Sa=%.2f\0A\00"
@.str.3 = [9 x i8] c"Sb=%.2f\0A\00"
@.str.4 = [9 x i8] c"Va=%.2f\0A\00"
@.str.5 = [9 x i8] c"Vb=%.2f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
%7 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), float* %6, float* %7)
%9 = load float, float* %6
%10 = fpext float %9 to double
%11 = fmul double 6.280000e+00, %10
%12 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), double %11)
%13 = load float, float* %6
%14 = fpext float %13 to double
%15 = fmul double 3.140000e+00, %14
%16 = load float, float* %6
%17 = fpext float %16 to double
%18 = fmul double %15, %17
%19 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double %18)
%20 = load float, float* %6
%21 = fpext float %20 to double
%22 = fmul double 1.256000e+01, %21
%23 = load float, float* %6
%24 = fpext float %23 to double
%25 = fmul double %22, %24
%26 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), double %25)
%27 = load float, float* %6
%28 = fpext float %27 to double
%29 = fmul double 0x4010BF258BF258BF, %28
%30 = load float, float* %6
%31 = fpext float %30 to double
%32 = fmul double %29, %31
%33 = load float, float* %6
%34 = fpext float %33 to double
%35 = fmul double %32, %34
%36 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), double %35)
%37 = load float, float* %6
%38 = fpext float %37 to double
%39 = fmul double 3.140000e+00, %38
%40 = load float, float* %6
%41 = fpext float %40 to double
%42 = fmul double %39, %41
%43 = load float, float* %7
%44 = fpext float %43 to double
%45 = fmul double %42, %44
%46 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), double %45)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%f%f\00"
@.str.1 = [9 x i8] c"C1=%.2f\0A\00"
@.str.2 = [9 x i8] c"Sa=%.2f\0A\00"
@.str.3 = [9 x i8] c"Sb=%.2f\0A\00"
@.str.4 = [9 x i8] c"Va=%.2f\0A\00"
@.str.5 = [9 x i8] c"Vb=%.2f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca float
%4 = alloca float
%5 = bitcast float* %3 to i8*
%6 = bitcast float* %4 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), float* %3, float* %4)
%8 = load float, float* %3
%9 = fpext float %8 to double
%10 = fmul double %9, 6.280000e+00
%11 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), double %10)
%12 = load float, float* %3
%13 = fpext float %12 to double
%14 = fmul double %13, 3.140000e+00
%15 = fmul double %14, %13
%16 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double %15)
%17 = load float, float* %3
%18 = fpext float %17 to double
%19 = fmul double %18, 1.256000e+01
%20 = fmul double %19, %18
%21 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), double %20)
%22 = load float, float* %3
%23 = fpext float %22 to double
%24 = fmul double %23, 0x4010BF258BF258BF
%25 = fmul double %24, %23
%26 = fmul double %25, %23
%27 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), double %26)
%28 = load float, float* %3
%29 = fpext float %28 to double
%30 = fmul double %29, 3.140000e+00
%31 = fmul double %30, %29
%32 = load float, float* %4
%33 = fpext float %32 to double
%34 = fmul double %31, %33
%35 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), double %34)
ret i32 0
}