#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 *, ...);
int /*<<< orphan*/ scanf(char *, float *);
int main(void) {
  float earth;
  float mercury, venus, mars, jupiter;
  float saturn, uranus, neptune, pluto;
  printf("Please enter the amount of earth years to convert.\n");
  scanf("%f", &earth);
  mercury = earth * 365 / 88;
  venus = earth * 365 / 225;
  mars = earth * 365 / 687;
  jupiter = earth / 11.86;
  saturn = earth / 29.46;
  uranus = earth / 84;
  neptune = earth / 164.8;
  pluto = earth / 247.7;
  printf("Equivalent mercury years is : %f\n", mercury);
  printf("Equivalent venus years is : %f\n", venus);
  printf("Equivalent mars years is : %f\n", mars);
  printf("Equivalent jupiter years is : %f\n", jupiter);
  printf("Equivalent saturn years is : %f\n", saturn);
  printf("Equivalent uranus years is : %f\n", uranus);
  printf("Equivalent neptune years is : %f\n", neptune);
  printf("Equivalent pluto years is : %f\n", pluto);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xefe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf24(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movss  0xed3(%rip),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  0xece(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  0xeb5(%rip),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  0xeac(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  0xe97(%rip),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  0xe86(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe60(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe3a(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x8(%rbp),%xmm0
movss  0xe30(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdfe(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdd8(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe26(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe31(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe3a(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe42(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe4d(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe57(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x24(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe61(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe6c(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
lea    0x1007(%rip),%rdi
call   1030 <puts@plt>
lea    0xef1(%rip),%rdi
lea    0x24(%rsp),%rsi
call   1050 <scanf@plt>
movss  0x24(%rsp),%xmm3
movss  0xea1(%rip),%xmm1
mulss  %xmm3,%xmm1
movaps %xmm1,%xmm0
divss  0xe96(%rip),%xmm0
movaps %xmm1,%xmm2
divss  0xe8f(%rip),%xmm2
movss  %xmm2,0x8(%rsp)
divss  0xe85(%rip),%xmm1
movss  %xmm1,0xc(%rsp)
xorps  %xmm1,%xmm1
cvtss2sd %xmm3,%xmm1
movaps %xmm1,%xmm2
divsd  0xe79(%rip),%xmm2
cvtsd2ss %xmm2,%xmm2
movss  %xmm2,0x10(%rsp)
movaps %xmm1,%xmm2
divsd  0xe6c(%rip),%xmm2
cvtsd2ss %xmm2,%xmm2
movss  %xmm2,0x14(%rsp)
divss  0xe4a(%rip),%xmm3
movss  %xmm3,0x18(%rsp)
movaps %xmm1,%xmm2
divsd  0xe51(%rip),%xmm2
cvtsd2ss %xmm2,%xmm2
movss  %xmm2,0x1c(%rsp)
divsd  0xe47(%rip),%xmm1
cvtsd2ss %xmm1,%xmm1
movss  %xmm1,0x20(%rsp)
cvtss2sd %xmm0,%xmm0
lea    0xe3d(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe47(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe4f(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe56(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe60(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe69(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe72(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe7c(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@.str = [52 x i8] c"Please enter the amount of earth years to convert.\0A\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [34 x i8] c"Equivalent mercury years is : %f\0A\00"
@.str.3 = [32 x i8] c"Equivalent venus years is : %f\0A\00"
@.str.4 = [31 x i8] c"Equivalent mars years is : %f\0A\00"
@.str.5 = [34 x i8] c"Equivalent jupiter years is : %f\0A\00"
@.str.6 = [33 x i8] c"Equivalent saturn years is : %f\0A\00"
@.str.7 = [33 x i8] c"Equivalent uranus years is : %f\0A\00"
@.str.8 = [34 x i8] c"Equivalent neptune years is : %f\0A\00"
@.str.9 = [32 x i8] c"Equivalent pluto years is : %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
store i32 0, i32* %1
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%13 = load float, float* %2
%14 = fmul float %13, 3.650000e+02
%15 = fdiv float %14, 8.800000e+01
store float %15, float* %3
%16 = load float, float* %2
%17 = fmul float %16, 3.650000e+02
%18 = fdiv float %17, 2.250000e+02
store float %18, float* %4
%19 = load float, float* %2
%20 = fmul float %19, 3.650000e+02
%21 = fdiv float %20, 6.870000e+02
store float %21, float* %5
%22 = load float, float* %2
%23 = fpext float %22 to double
%24 = fdiv double %23, 1.186000e+01
%25 = fptrunc double %24 to float
store float %25, float* %6
%26 = load float, float* %2
%27 = fpext float %26 to double
%28 = fdiv double %27, 2.946000e+01
%29 = fptrunc double %28 to float
store float %29, float* %7
%30 = load float, float* %2
%31 = fdiv float %30, 8.400000e+01
store float %31, float* %8
%32 = load float, float* %2
%33 = fpext float %32 to double
%34 = fdiv double %33, 1.648000e+02
%35 = fptrunc double %34 to float
store float %35, float* %9
%36 = load float, float* %2
%37 = fpext float %36 to double
%38 = fdiv double %37, 2.477000e+02
%39 = fptrunc double %38 to float
store float %39, float* %10
%40 = load float, float* %3
%41 = fpext float %40 to double
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %41)
%43 = load float, float* %4
%44 = fpext float %43 to double
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), double %44)
%46 = load float, float* %5
%47 = fpext float %46 to double
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), double %47)
%49 = load float, float* %6
%50 = fpext float %49 to double
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), double %50)
%52 = load float, float* %7
%53 = fpext float %52 to double
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), double %53)
%55 = load float, float* %8
%56 = fpext float %55 to double
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0), double %56)
%58 = load float, float* %9
%59 = fpext float %58 to double
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), double %59)
%61 = load float, float* %10
%62 = fpext float %61 to double
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0), double %62)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [34 x i8] c"Equivalent mercury years is : %f\0A\00"
@.str.3 = [32 x i8] c"Equivalent venus years is : %f\0A\00"
@.str.4 = [31 x i8] c"Equivalent mars years is : %f\0A\00"
@.str.5 = [34 x i8] c"Equivalent jupiter years is : %f\0A\00"
@.str.6 = [33 x i8] c"Equivalent saturn years is : %f\0A\00"
@.str.7 = [33 x i8] c"Equivalent uranus years is : %f\0A\00"
@.str.8 = [34 x i8] c"Equivalent neptune years is : %f\0A\00"
@.str.9 = [32 x i8] c"Equivalent pluto years is : %f\0A\00"
@str = [51 x i8] c"Please enter the amount of earth years to convert.\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%5 = load float, float* %1
%6 = fmul float %5, 3.650000e+02
%7 = fdiv float %6, 8.800000e+01
%8 = fdiv float %6, 2.250000e+02
%9 = fdiv float %6, 6.870000e+02
%10 = fpext float %5 to double
%11 = fdiv double %10, 1.186000e+01
%12 = fptrunc double %11 to float
%13 = fdiv double %10, 2.946000e+01
%14 = fptrunc double %13 to float
%15 = fdiv float %5, 8.400000e+01
%16 = fdiv double %10, 1.648000e+02
%17 = fptrunc double %16 to float
%18 = fdiv double %10, 2.477000e+02
%19 = fptrunc double %18 to float
%20 = fpext float %7 to double
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %20)
%22 = fpext float %8 to double
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), double %22)
%24 = fpext float %9 to double
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), double %24)
%26 = fpext float %12 to double
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), double %26)
%28 = fpext float %14 to double
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), double %28)
%30 = fpext float %15 to double
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0), double %30)
%32 = fpext float %17 to double
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), double %32)
%34 = fpext float %19 to double
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0), double %34)
ret i32 0
}