#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 *, float);
int main() {
  int sum;
  int sub;
  int multi;
  int div;
  int mod;
  float cirCumfOne;
  float cirCumfTwo;
  float cirAreaOne;
  float cirAreaTwo;
  float pi;
  int valOne;
  int valTwo;
  valOne = 5;
  valTwo = 4;
  pi = 3.14;
  sum = valOne + valTwo;
  sub = valOne - valTwo;
  multi = valOne * valTwo;
  div = valOne / valTwo;
  mod = valOne % valTwo;
  cirCumfOne = 2 * pi * valOne;
  cirAreaOne = pi * valOne * valOne;
  cirCumfTwo = 2 * pi * valTwo;
  cirAreaTwo = pi * valTwo * valTwo;
  printf("The sum is: %d \n", sum);
  printf("The subtracted value is: %d \n", sub);
  printf("The multiplied value is: %d \n", multi);
  printf("The divided value is: %d \n", div);
  printf("The modulo value is: %d \n", mod);
  printf("The first circle circumfrence value is: %f \n", cirCumfOne);
  printf("The first circle area value is: %f \n", cirAreaOne);
  printf("The second circle circumfrence value is: %f \n", cirCumfTwo);
  printf("The second circle area value is: %f \n", cirAreaTwo);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x5,-0x30(%rbp)
movl   $0x4,-0x34(%rbp)
movss  0xecf(%rip),%xmm0
movss  %xmm0,-0x2c(%rbp)
mov    -0x30(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x30(%rbp),%eax
sub    -0x34(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x30(%rbp),%eax
imul   -0x34(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x30(%rbp),%eax
cltd
idivl  -0x34(%rbp)
mov    %eax,-0x14(%rbp)
mov    -0x30(%rbp),%eax
cltd
idivl  -0x34(%rbp)
mov    %edx,-0x18(%rbp)
movss  0xe8e(%rip),%xmm0
mulss  -0x2c(%rbp),%xmm0
cvtsi2ssl -0x30(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x2c(%rbp),%xmm0
cvtsi2ssl -0x30(%rbp),%xmm1
mulss  %xmm1,%xmm0
cvtsi2ssl -0x30(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  0xe57(%rip),%xmm0
mulss  -0x2c(%rbp),%xmm0
cvtsi2ssl -0x34(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x2c(%rbp),%xmm0
cvtsi2ssl -0x34(%rbp),%xmm1
mulss  %xmm1,%xmm0
cvtsi2ssl -0x34(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,-0x28(%rbp)
cvtsi2ssl -0x8(%rbp),%xmm0
lea    0xe24(%rip),%rdi
call   1030 <printf@plt>
cvtsi2ssl -0xc(%rbp),%xmm0
lea    0xe24(%rip),%rdi
call   1030 <printf@plt>
cvtsi2ssl -0x10(%rbp),%xmm0
lea    0xe31(%rip),%rdi
call   1030 <printf@plt>
cvtsi2ssl -0x14(%rbp),%xmm0
lea    0xe3e(%rip),%rdi
call   1030 <printf@plt>
cvtsi2ssl -0x18(%rbp),%xmm0
lea    0xe48(%rip),%rdi
call   1030 <printf@plt>
movss  -0x1c(%rbp),%xmm0
lea    0xe51(%rip),%rdi
call   1030 <printf@plt>
movss  -0x24(%rbp),%xmm0
lea    0xe6d(%rip),%rdi
call   1030 <printf@plt>
movss  -0x20(%rbp),%xmm0
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
movss  -0x28(%rbp),%xmm0
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf04(%rip),%rdi
movss  0xee0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
movss  0xed0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
movss  0xec0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf15(%rip),%rdi
movss  0xea8(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf1c(%rip),%rdi
movss  0xe94(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf22(%rip),%rdi
movss  0xe88(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf3b(%rip),%rdi
movss  0xe78(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf4c(%rip),%rdi
movss  0xe68(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf66(%rip),%rdi
movss  0xe58(%rip),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [17 x i8] c"The sum is: %d \0A\00"
@.str.1 = [30 x i8] c"The subtracted value is: %d \0A\00"
@.str.2 = [30 x i8] c"The multiplied value is: %d \0A\00"
@.str.3 = [27 x i8] c"The divided value is: %d \0A\00"
@.str.4 = [26 x i8] c"The modulo value is: %d \0A\00"
@.str.5 = [45 x i8] c"The first circle circumfrence value is: %f \0A\00"
@.str.6 = [37 x i8] c"The first circle area value is: %f \0A\00"
@.str.7 = [46 x i8] c"The second circle circumfrence value is: %f \0A\00"
@.str.8 = [38 x i8] c"The second circle area value is: %f \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %1
store i32 5, i32* %12
store i32 4, i32* %13
store float 0x40091EB860000000, float* %11
%14 = load i32, i32* %12
%15 = load i32, i32* %13
%16 = add nsw i32 %14, %15
store i32 %16, i32* %2
%17 = load i32, i32* %12
%18 = load i32, i32* %13
%19 = sub nsw i32 %17, %18
store i32 %19, i32* %3
%20 = load i32, i32* %12
%21 = load i32, i32* %13
%22 = mul nsw i32 %20, %21
store i32 %22, i32* %4
%23 = load i32, i32* %12
%24 = load i32, i32* %13
%25 = sdiv i32 %23, %24
store i32 %25, i32* %5
%26 = load i32, i32* %12
%27 = load i32, i32* %13
%28 = srem i32 %26, %27
store i32 %28, i32* %6
%29 = load float, float* %11
%30 = fmul float 2.000000e+00, %29
%31 = load i32, i32* %12
%32 = sitofp i32 %31 to float
%33 = fmul float %30, %32
store float %33, float* %7
%34 = load float, float* %11
%35 = load i32, i32* %12
%36 = sitofp i32 %35 to float
%37 = fmul float %34, %36
%38 = load i32, i32* %12
%39 = sitofp i32 %38 to float
%40 = fmul float %37, %39
store float %40, float* %9
%41 = load float, float* %11
%42 = fmul float 2.000000e+00, %41
%43 = load i32, i32* %13
%44 = sitofp i32 %43 to float
%45 = fmul float %42, %44
store float %45, float* %8
%46 = load float, float* %11
%47 = load i32, i32* %13
%48 = sitofp i32 %47 to float
%49 = fmul float %46, %48
%50 = load i32, i32* %13
%51 = sitofp i32 %50 to float
%52 = fmul float %49, %51
store float %52, float* %10
%53 = load i32, i32* %2
%54 = sitofp i32 %53 to float
%55 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), float %54)
%56 = load i32, i32* %3
%57 = sitofp i32 %56 to float
%58 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), float %57)
%59 = load i32, i32* %4
%60 = sitofp i32 %59 to float
%61 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), float %60)
%62 = load i32, i32* %5
%63 = sitofp i32 %62 to float
%64 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), float %63)
%65 = load i32, i32* %6
%66 = sitofp i32 %65 to float
%67 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), float %66)
%68 = load float, float* %7
%69 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.5, i64 0, i64 0), float %68)
%70 = load float, float* %9
%71 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), float %70)
%72 = load float, float* %8
%73 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0), float %72)
%74 = load float, float* %10
%75 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), float %74)
ret i32 0
}

LLVM IR (-O2):
@.str = [17 x i8] c"The sum is: %d \0A\00"
@.str.1 = [30 x i8] c"The subtracted value is: %d \0A\00"
@.str.2 = [30 x i8] c"The multiplied value is: %d \0A\00"
@.str.3 = [27 x i8] c"The divided value is: %d \0A\00"
@.str.4 = [26 x i8] c"The modulo value is: %d \0A\00"
@.str.5 = [45 x i8] c"The first circle circumfrence value is: %f \0A\00"
@.str.6 = [37 x i8] c"The first circle area value is: %f \0A\00"
@.str.7 = [46 x i8] c"The second circle circumfrence value is: %f \0A\00"
@.str.8 = [38 x i8] c"The second circle area value is: %f \0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), float 9.000000e+00)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), float 1.000000e+00)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), float 2.000000e+01)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), float 1.000000e+00)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), float 1.000000e+00)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.5, i64 0, i64 0), float 0x403F666680000000)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), float 7.850000e+01)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0), float 0x40391EB860000000)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), float 0x40491EB860000000)
ret i32 0
}