#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*/ getchar();
int /*<<< orphan*/ printf(char *, float);
main() {
  int sum1;
  int sum2;
  int sum3;
  float sum4;
  float sum5;
  sum1 = 15 + 10;
  sum2 = 15 - 10;
  sum3 = 15 * 10;
  sum4 = 15 / 10;
  sum5 = 15 % 3;
  printf("The Calculations are as follows... \n1. %d\n", sum1);
  printf("2. %d\n", sum2);
  printf("3. %d\n", sum3);
  printf("4. %f\n", sum4);
  printf("5. %f\n", sum5);
  getchar();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x19,-0x4(%rbp)
movl   $0x5,-0x8(%rbp)
movl   $0x96,-0xc(%rbp)
movss  0xebb(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
cvtsi2ssl -0x4(%rbp),%xmm0
lea    0xea6(%rip),%rdi
call   1030 <printf@plt>
cvtsi2ssl -0x8(%rbp),%xmm0
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
cvtsi2ssl -0xc(%rbp),%xmm0
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
movss  0xed0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xeff(%rip),%rdi
movss  0xec0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
movss  0xeb0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
movss  0xea0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
xorps  %xmm0,%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [43 x i8] c"The Calculations are as follows... \0A1. %d\0A\00"
@.str.1 = [7 x i8] c"2. %d\0A\00"
@.str.2 = [7 x i8] c"3. %d\0A\00"
@.str.3 = [7 x i8] c"4. %f\0A\00"
@.str.4 = [7 x i8] c"5. %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = alloca float
store i32 25, i32* %1
store i32 5, i32* %2
store i32 150, i32* %3
store float 1.000000e+00, float* %4
store float 0.000000e+00, float* %5
%6 = load i32, i32* %1
%7 = sitofp i32 %6 to float
%8 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), float %7)
%9 = load i32, i32* %2
%10 = sitofp i32 %9 to float
%11 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float %10)
%12 = load i32, i32* %3
%13 = sitofp i32 %12 to float
%14 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), float %13)
%15 = load float, float* %4
%16 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), float %15)
%17 = load float, float* %5
%18 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), float %17)
%19 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str = [43 x i8] c"The Calculations are as follows... \0A1. %d\0A\00"
@.str.1 = [7 x i8] c"2. %d\0A\00"
@.str.2 = [7 x i8] c"3. %d\0A\00"
@.str.3 = [7 x i8] c"4. %f\0A\00"
@.str.4 = [7 x i8] c"5. %f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), float 2.500000e+01)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float 5.000000e+00)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), float 1.500000e+02)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), float 1.000000e+00)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), float 0.000000e+00)
%6 = tail call i32 (...) @getchar()
ret i32 0
}