#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 main();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, double *);
int problemE(void) {
  double circumference = 0.0, radius = 0.0;
  printf("Input Radius: ");
  scanf("%lf", &radius);
  circumference = 2 * 3.14159265 * radius;
  printf("Circumference = 2 * PI * radius = 2 * 3.14159265 * %lf = %lf \n",
         radius, circumference);
  return main();
}


x86 assembly (clang, -O0):
<problemE>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
movsd  0xe92(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
lea    0xe92(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <main@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<problemE>:
push   %rax
movq   $0x0,(%rsp)
lea    0xec8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
mov    %rsp,%rsi
call   1050 <scanf@plt>
movsd  (%rsp),%xmm0
movsd  0xe9d(%rip),%xmm1
mulsd  %xmm0,%xmm1
lea    0xead(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <main@plt>
pop    %rcx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"Input Radius: \00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [63 x i8] c"Circumference = 2 * PI * radius = 2 * 3.14159265 * %lf = %lf \0A\00"
define i32 @problemE() {
%1 = alloca double
%2 = alloca double
store double 0.000000e+00, double* %1
store double 0.000000e+00, double* %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%5 = load double, double* %2
%6 = fmul double 0x401921FB53C8D4F1, %5
store double %6, double* %1
%7 = load double, double* %2
%8 = load double, double* %1
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0), double %7, double %8)
%10 = call i32 (...) @main()
ret i32 %10
}

LLVM IR (-O2):
@.str = [15 x i8] c"Input Radius: \00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [63 x i8] c"Circumference = 2 * PI * radius = 2 * 3.14159265 * %lf = %lf \0A\00"
define i32 @problemE() {
%1 = alloca double
%2 = bitcast double* %1 to i8*
store double 0.000000e+00, double* %1
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %1)
%5 = load double, double* %1
%6 = fmul double %5, 0x401921FB53C8D4F1
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0), double %5, double %6)
%8 = call i32 (...) @main()
ret i32 %8
}