#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 */
float function1(int);
int /*<<< orphan*/ printf(char *, int, float);
int main() {
  int i;
  float result;
  i = 10;
  result = function1(i);
  printf("Radius: %d,  Area: %f\n", i, result);
  i = 2;
  result = function1(i);
  printf("Radius: %d,  Area: %f\n", i, result);
  i = 120;
  result = function1(i);
  printf("Radius: %d,  Area: %f\n", i, result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <function1@plt>
movss  %xmm0,-0xc(%rbp)
mov    -0x8(%rbp),%esi
movss  -0xc(%rbp),%xmm0
lea    0xeae(%rip),%rdi
call   1040 <printf@plt>
movl   $0x2,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <function1@plt>
movss  %xmm0,-0xc(%rbp)
mov    -0x8(%rbp),%esi
movss  -0xc(%rbp),%xmm0
lea    0xe86(%rip),%rdi
call   1040 <printf@plt>
movl   $0x78,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <function1@plt>
movss  %xmm0,-0xc(%rbp)
mov    -0x8(%rbp),%esi
movss  -0xc(%rbp),%xmm0
lea    0xe5e(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0xa,%edi
call   1030 <function1@plt>
lea    0xece(%rip),%rbx
mov    %rbx,%rdi
mov    $0xa,%esi
call   1040 <printf@plt>
mov    $0x2,%edi
call   1030 <function1@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1040 <printf@plt>
mov    $0x78,%edi
call   1030 <function1@plt>
mov    %rbx,%rdi
mov    $0x78,%esi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"Radius: %d, Area: %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
store i32 0, i32* %1
store i32 10, i32* %2
%4 = load i32, i32* %2
%5 = call float @function1(i32 %4)
store float %5, float* %3
%6 = load i32, i32* %2
%7 = load float, float* %3
%8 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %6, float %7)
store i32 2, i32* %2
%9 = load i32, i32* %2
%10 = call float @function1(i32 %9)
store float %10, float* %3
%11 = load i32, i32* %2
%12 = load float, float* %3
%13 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %11, float %12)
store i32 120, i32* %2
%14 = load i32, i32* %2
%15 = call float @function1(i32 %14)
store float %15, float* %3
%16 = load i32, i32* %2
%17 = load float, float* %3
%18 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %16, float %17)
ret i32 0
}

LLVM IR (-O2):
@.str = [23 x i8] c"Radius: %d, Area: %f\0A\00"
define i32 @main() {
%1 = tail call float @function1(i32 10)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 10, float %1)
%3 = tail call float @function1(i32 2)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 2, float %3)
%5 = tail call float @function1(i32 120)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 120, float %5)
ret i32 0
}