#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() {
  float var1;
  float var2;
  float var3;
  float var4;
  float var5;
  float var6;
  var1 = 2 % 2;
  var2 = 3 % 2;
  var3 = 5 % 2;
  var4 = 7 % 3;
  var5 = 100 % 33;
  var6 = 100 % 7;
  printf("The following remainders are.. \n1. %f\n", var1);
  printf("2. %f\n", var2);
  printf("3. %f\n", var3);
  printf("4. %f\n", var4);
  printf("5. %f\n", var5);
  printf("6. %f\n", var6);
  getchar();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  0xecc(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xebf(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  0xeb2(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  0xea5(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  0xe94(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x4(%rbp),%xmm0
lea    0xe8b(%rip),%rdi
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
lea    0xe97(%rip),%rdi
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
lea    0xe83(%rip),%rdi
call   1030 <printf@plt>
movss  -0x18(%rbp),%xmm0
lea    0xe79(%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    0xee0(%rip),%rdi
xorps  %xmm0,%xmm0
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
movss  0xec1(%rip),%xmm0
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
movss  0xead(%rip),%xmm0
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
movss  0xe99(%rip),%xmm0
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
movss  0xe85(%rip),%xmm0
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
movss  0xe75(%rip),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [39 x i8] c"The following remainders are.. \0A1. %f\0A\00"
@.str.1 = [7 x i8] c"2. %f\0A\00"
@.str.2 = [7 x i8] c"3. %f\0A\00"
@.str.3 = [7 x i8] c"4. %f\0A\00"
@.str.4 = [7 x i8] c"5. %f\0A\00"
@.str.5 = [7 x i8] c"6. %f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), float 0.000000e+00)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float 1.000000e+00)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), float 1.000000e+00)
%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 1.000000e+00)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), float 2.000000e+00)
%7 = tail call i32 (...) @getchar()
ret i32 0
}