#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);
void module1_section2_topic3() {
  int a = 5 * 5;
  printf("%d\n", a);
  int bob = 6 - 7;
  printf("%d\n", a);
  int heather = 8 + 9;
  printf("%d\n", a);
  int sammi = 10 - (-1);
  printf("%d\n", a);
  int compliated = (5 * 5) + 6 - 7;
  printf("%d\n", a);
  int PEMDAS = 6 - 7 - 6 - 7;
  printf("%d\n", a);
  int can_still_be_whole = 8 + 9 * 6 - 7;
  printf("%d\n", a);
  int has_got_to_be_a_decimal = 10 - (-1) / 6 - 7;
  printf("%d\n", a);
  int x = 5 * 5;
  5 * 5;
  printf("%d\n", 5 * 5);
  printf("%d\n", x);
  x = 6 + 5;
  printf("%d\n", x);
  x = 6 - 5;
  printf("%d\n", x);
  x = 6 * 5;
  printf("%d\n", x);
  x = 6 / 5;
  printf("%d\n", x);
  float y;
  y = 6 + 5;
  printf("%f\n", y);
  y = 6 - 5;
  printf("%f\n", y);
  y = 6 * 5;
  printf("%f\n", y);
  y = 6 / 5;
  printf("%f\n", y);
}


x86 assembly (clang, -O0):
<module1_section2_topic3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x19,-0x4(%rbp)
cvtsi2ssl -0x4(%rbp),%xmm0
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
movl   $0xffffffff,-0x8(%rbp)
cvtsi2ssl -0x4(%rbp),%xmm0
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
movl   $0x11,-0xc(%rbp)
cvtsi2ssl -0x4(%rbp),%xmm0
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
movl   $0xb,-0x10(%rbp)
cvtsi2ssl -0x4(%rbp),%xmm0
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
movl   $0x18,-0x14(%rbp)
cvtsi2ssl -0x4(%rbp),%xmm0
lea    0xe85(%rip),%rdi
call   1030 <printf@plt>
movl   $0xfffffff2,-0x18(%rbp)
cvtsi2ssl -0x4(%rbp),%xmm0
lea    0xe6d(%rip),%rdi
call   1030 <printf@plt>
movl   $0x37,-0x1c(%rbp)
cvtsi2ssl -0x4(%rbp),%xmm0
lea    0xe55(%rip),%rdi
call   1030 <printf@plt>
movl   $0x3,-0x20(%rbp)
cvtsi2ssl -0x4(%rbp),%xmm0
lea    0xe3d(%rip),%rdi
call   1030 <printf@plt>
movl   $0x19,-0x24(%rbp)
lea    0xe2a(%rip),%rdi
movss  0xe1e(%rip),%xmm0
call   1030 <printf@plt>
cvtsi2ssl -0x24(%rbp),%xmm0
lea    0xe11(%rip),%rdi
call   1030 <printf@plt>
movl   $0xb,-0x24(%rbp)
cvtsi2ssl -0x24(%rbp),%xmm0
lea    0xdf9(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1,-0x24(%rbp)
cvtsi2ssl -0x24(%rbp),%xmm0
lea    0xde1(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1e,-0x24(%rbp)
cvtsi2ssl -0x24(%rbp),%xmm0
lea    0xdc9(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1,-0x24(%rbp)
cvtsi2ssl -0x24(%rbp),%xmm0
lea    0xdb1(%rip),%rdi
call   1030 <printf@plt>
movss  0xd9c(%rip),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x28(%rbp),%xmm0
lea    0xd97(%rip),%rdi
call   1030 <printf@plt>
movss  0xd76(%rip),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x28(%rbp),%xmm0
lea    0xd79(%rip),%rdi
call   1030 <printf@plt>
movss  0xd5c(%rip),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x28(%rbp),%xmm0
lea    0xd5b(%rip),%rdi
call   1030 <printf@plt>
movss  0xd3a(%rip),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x28(%rbp),%xmm0
lea    0xd3d(%rip),%rdi
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<module1_section2_topic3>:
push   %rbx
lea    0xef8(%rip),%rbx
movss  0xee0(%rip),%xmm0
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0xecd(%rip),%xmm0
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0xebd(%rip),%xmm0
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0xead(%rip),%xmm0
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0xe9d(%rip),%xmm0
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0xe8d(%rip),%xmm0
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0xe7d(%rip),%xmm0
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0xe6d(%rip),%xmm0
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0xe5d(%rip),%xmm0
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0xe4d(%rip),%xmm0
call   1030 <printf@plt>
movss  0xe44(%rip),%xmm0
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe38(%rip),%xmm0
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe2c(%rip),%xmm0
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0xe15(%rip),%xmm0
call   1030 <printf@plt>
lea    0xe15(%rip),%rbx
mov    %rbx,%rdi
movss  0xdfa(%rip),%xmm0
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0xdee(%rip),%xmm0
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0xde2(%rip),%xmm0
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0xdce(%rip),%xmm0
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [4 x i8] c"%f\0A\00"
define void @module1_section2_topic3() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca float
store i32 25, i32* %1
%11 = load i32, i32* %1
%12 = sitofp i32 %11 to float
%13 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %12)
store i32 -1, i32* %2
%14 = load i32, i32* %1
%15 = sitofp i32 %14 to float
%16 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %15)
store i32 17, i32* %3
%17 = load i32, i32* %1
%18 = sitofp i32 %17 to float
%19 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %18)
store i32 11, i32* %4
%20 = load i32, i32* %1
%21 = sitofp i32 %20 to float
%22 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %21)
store i32 24, i32* %5
%23 = load i32, i32* %1
%24 = sitofp i32 %23 to float
%25 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %24)
store i32 -14, i32* %6
%26 = load i32, i32* %1
%27 = sitofp i32 %26 to float
%28 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %27)
store i32 55, i32* %7
%29 = load i32, i32* %1
%30 = sitofp i32 %29 to float
%31 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %30)
store i32 3, i32* %8
%32 = load i32, i32* %1
%33 = sitofp i32 %32 to float
%34 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %33)
store i32 25, i32* %9
%35 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float 2.500000e+01)
%36 = load i32, i32* %9
%37 = sitofp i32 %36 to float
%38 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %37)
store i32 11, i32* %9
%39 = load i32, i32* %9
%40 = sitofp i32 %39 to float
%41 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %40)
store i32 1, i32* %9
%42 = load i32, i32* %9
%43 = sitofp i32 %42 to float
%44 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %43)
store i32 30, i32* %9
%45 = load i32, i32* %9
%46 = sitofp i32 %45 to float
%47 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %46)
store i32 1, i32* %9
%48 = load i32, i32* %9
%49 = sitofp i32 %48 to float
%50 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float %49)
store float 1.100000e+01, float* %10
%51 = load float, float* %10
%52 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float %51)
store float 1.000000e+00, float* %10
%53 = load float, float* %10
%54 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float %53)
store float 3.000000e+01, float* %10
%55 = load float, float* %10
%56 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float %55)
store float 1.000000e+00, float* %10
%57 = load float, float* %10
%58 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float %57)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [4 x i8] c"%f\0A\00"
define void @module1_section2_topic3() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float 2.500000e+01)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float 2.500000e+01)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float 2.500000e+01)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float 2.500000e+01)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float 2.500000e+01)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float 2.500000e+01)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float 2.500000e+01)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float 2.500000e+01)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float 2.500000e+01)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float 2.500000e+01)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float 1.100000e+01)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float 1.000000e+00)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float 3.000000e+01)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), float 1.000000e+00)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float 1.100000e+01)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float 1.000000e+00)
%17 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float 3.000000e+01)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float 1.000000e+00)
ret void
}