#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 *, double *, double *);
int main() {
  double r, h, l, s, s1, v, v2;
  scanf("%f%f", &r, &h);
  l = 2 * 3.14 * r;
  s = r * r * 3.14;
  s1 = 4 * 3.14 * r * r;
  v = 3.14 * r * r * r * 4 / 3;
  v2 = 3.14 * r * r * h;
  printf("園周長内=%.2f\n", l);
  printf("園面釈内=%.2f\n", s);
  printf("圓球面枳内=%.2f\n", s1);
  printf("圓球体釈勺=%.2fn", v);
  printf("圓柱体枳内=%.2f\n", v2);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xef2(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <scanf@plt>
movsd  0xed5(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  0xe99(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xea0(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe71(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  0xe6a(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe56(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe3d(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x20(%rbp),%xmm0
lea    0xe4a(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x28(%rbp),%xmm0
lea    0xe4c(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x30(%rbp),%xmm0
lea    0xe4e(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x38(%rbp),%xmm0
lea    0xe53(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x40(%rbp),%xmm0
lea    0xe58(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x38,%rsp
lea    0xefd(%rip),%rdi
lea    0x30(%rsp),%rsi
lea    0x28(%rsp),%rdx
call   1040 <scanf@plt>
movsd  0x30(%rsp),%xmm2
movsd  0xeb8(%rip),%xmm0
mulsd  %xmm2,%xmm0
movapd %xmm2,%xmm3
mulsd  %xmm2,%xmm3
movsd  0xeac(%rip),%xmm1
mulsd  %xmm1,%xmm3
movsd  %xmm3,0x10(%rsp)
movsd  0xea2(%rip),%xmm3
mulsd  %xmm2,%xmm3
mulsd  %xmm2,%xmm3
movsd  %xmm3,0x18(%rsp)
mulsd  %xmm2,%xmm1
mulsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm2
mulsd  0xe88(%rip),%xmm2
divsd  0xe88(%rip),%xmm2
movsd  %xmm2,0x8(%rsp)
mulsd  0x28(%rsp),%xmm1
movsd  %xmm1,0x20(%rsp)
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
lea    0xe83(%rip),%rdi
movsd  0x10(%rsp),%xmm0
call   1030 <printf@plt>
lea    0xe84(%rip),%rdi
movsd  0x18(%rsp),%xmm0
call   1030 <printf@plt>
lea    0xe88(%rip),%rdi
movsd  0x8(%rsp),%xmm0
call   1030 <printf@plt>
lea    0xe8c(%rip),%rdi
movsd  0x20(%rsp),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%f%f\00"
@.str.1 = [19 x i8] c"\E5\9C\92\E5\91\A8\E9\95\B7\E5\86\85=%.2f\0A\00"
@.str.2 = [19 x i8] c"\E5\9C\92\E9\9D\A2\E9\87\88\E5\86\85=%.2f\0A\00"
@.str.3 = [22 x i8] c"\E5\9C\93\E7\90\83\E9\9D\A2\E6\9E\B3\E5\86\85=%.2f\0A\00"
@.str.4 = [22 x i8] c"\E5\9C\93\E7\90\83\E4\BD\93\E9\87\88\E5\8B\BA=%.2fn\00"
@.str.5 = [22 x i8] c"\E5\9C\93\E6\9F\B1\E4\BD\93\E6\9E\B3\E5\86\85=%.2f\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
%8 = alloca double
store i32 0, i32* %1
%9 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), double* %2, double* %3)
%10 = load double, double* %2
%11 = fmul double 6.280000e+00, %10
store double %11, double* %4
%12 = load double, double* %2
%13 = load double, double* %2
%14 = fmul double %12, %13
%15 = fmul double %14, 3.140000e+00
store double %15, double* %5
%16 = load double, double* %2
%17 = fmul double 1.256000e+01, %16
%18 = load double, double* %2
%19 = fmul double %17, %18
store double %19, double* %6
%20 = load double, double* %2
%21 = fmul double 3.140000e+00, %20
%22 = load double, double* %2
%23 = fmul double %21, %22
%24 = load double, double* %2
%25 = fmul double %23, %24
%26 = fmul double %25, 4.000000e+00
%27 = fdiv double %26, 3.000000e+00
store double %27, double* %7
%28 = load double, double* %2
%29 = fmul double 3.140000e+00, %28
%30 = load double, double* %2
%31 = fmul double %29, %30
%32 = load double, double* %3
%33 = fmul double %31, %32
store double %33, double* %8
%34 = load double, double* %4
%35 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), double %34)
%36 = load double, double* %5
%37 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), double %36)
%38 = load double, double* %6
%39 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), double %38)
%40 = load double, double* %7
%41 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), double %40)
%42 = load double, double* %8
%43 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), double %42)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%f%f\00"
@.str.1 = [19 x i8] c"\E5\9C\92\E5\91\A8\E9\95\B7\E5\86\85=%.2f\0A\00"
@.str.2 = [19 x i8] c"\E5\9C\92\E9\9D\A2\E9\87\88\E5\86\85=%.2f\0A\00"
@.str.3 = [22 x i8] c"\E5\9C\93\E7\90\83\E9\9D\A2\E6\9E\B3\E5\86\85=%.2f\0A\00"
@.str.4 = [22 x i8] c"\E5\9C\93\E7\90\83\E4\BD\93\E9\87\88\E5\8B\BA=%.2fn\00"
@.str.5 = [22 x i8] c"\E5\9C\93\E6\9F\B1\E4\BD\93\E6\9E\B3\E5\86\85=%.2f\0A\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = bitcast double* %1 to i8*
%4 = bitcast double* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), double* %1, double* %2)
%6 = load double, double* %1
%7 = fmul double %6, 6.280000e+00
%8 = fmul double %6, %6
%9 = fmul double %8, 3.140000e+00
%10 = fmul double %6, 1.256000e+01
%11 = fmul double %6, %10
%12 = fmul double %6, 3.140000e+00
%13 = fmul double %6, %12
%14 = fmul double %6, %13
%15 = fmul double %14, 4.000000e+00
%16 = fdiv double %15, 3.000000e+00
%17 = load double, double* %2
%18 = fmul double %17, %13
%19 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), double %7)
%20 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), double %9)
%21 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), double %11)
%22 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), double %16)
%23 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), double %18)
ret i32 0
}