#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*/ __print_int(int);
int main() {
  float a;
  float b;
  a = 5.345;
  b = 5.345;
  __print_int(a == b);
  __print_int(a != b);
  __print_int(a == 5.345);
  __print_int(a != 5.345);
  __print_int(5.345 == b);
  __print_int(5.345 != b);
  a = -3.129;
  b = 4.768;
  __print_int(a == b);
  __print_int(a != b);
  __print_int(a == 0.0);
  __print_int(a != -3.129);
  __print_int(0.0 == b);
  __print_int(4.768 != b);
  __print_int(5.345 == 5.345);
  __print_int(5.345 != 5.345);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xef9(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xeec(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
movss  -0x8(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
setne  %al
setp   %cl
or     %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe90(%rip),%xmm1
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe69(%rip),%xmm1
ucomisd %xmm1,%xmm0
setne  %al
setp   %cl
or     %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe42(%rip),%xmm0
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe1b(%rip),%xmm0
ucomisd %xmm1,%xmm0
setne  %al
setp   %cl
or     %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
movss  0xe09(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xdf8(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
movss  -0x8(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
setne  %al
setp   %cl
or     %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd7a(%rip),%xmm1
ucomisd %xmm1,%xmm0
setne  %al
setp   %cl
or     %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd29(%rip),%xmm0
ucomisd %xmm1,%xmm0
setne  %al
setp   %cl
or     %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
mov    $0x1,%edi
call   1030 <__print_int@plt>
xor    %edi,%edi
call   1030 <__print_int@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
call   1030 <__print_int@plt>
xor    %edi,%edi
call   1030 <__print_int@plt>
xor    %edi,%edi
call   1030 <__print_int@plt>
mov    $0x1,%edi
call   1030 <__print_int@plt>
xor    %edi,%edi
call   1030 <__print_int@plt>
mov    $0x1,%edi
call   1030 <__print_int@plt>
xor    %edi,%edi
call   1030 <__print_int@plt>
mov    $0x1,%edi
call   1030 <__print_int@plt>
xor    %edi,%edi
call   1030 <__print_int@plt>
mov    $0x1,%edi
call   1030 <__print_int@plt>
xor    %edi,%edi
call   1030 <__print_int@plt>
mov    $0x1,%edi
call   1030 <__print_int@plt>
mov    $0x1,%edi
call   1030 <__print_int@plt>
xor    %edi,%edi
call   1030 <__print_int@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
store i32 0, i32* %1
store float 0x40156147A0000000, float* %2
store float 0x40156147A0000000, float* %3
%4 = load float, float* %2
%5 = load float, float* %3
%6 = fcmp oeq float %4, %5
%7 = zext i1 %6 to i32
%8 = call i32 @__print_int(i32 %7)
%9 = load float, float* %2
%10 = load float, float* %3
%11 = fcmp une float %9, %10
%12 = zext i1 %11 to i32
%13 = call i32 @__print_int(i32 %12)
%14 = load float, float* %2
%15 = fpext float %14 to double
%16 = fcmp oeq double %15, 5.345000e+00
%17 = zext i1 %16 to i32
%18 = call i32 @__print_int(i32 %17)
%19 = load float, float* %2
%20 = fpext float %19 to double
%21 = fcmp une double %20, 5.345000e+00
%22 = zext i1 %21 to i32
%23 = call i32 @__print_int(i32 %22)
%24 = load float, float* %3
%25 = fpext float %24 to double
%26 = fcmp oeq double 5.345000e+00, %25
%27 = zext i1 %26 to i32
%28 = call i32 @__print_int(i32 %27)
%29 = load float, float* %3
%30 = fpext float %29 to double
%31 = fcmp une double 5.345000e+00, %30
%32 = zext i1 %31 to i32
%33 = call i32 @__print_int(i32 %32)
store float 0xC009083120000000, float* %2
store float 0x4013126EA0000000, float* %3
%34 = load float, float* %2
%35 = load float, float* %3
%36 = fcmp oeq float %34, %35
%37 = zext i1 %36 to i32
%38 = call i32 @__print_int(i32 %37)
%39 = load float, float* %2
%40 = load float, float* %3
%41 = fcmp une float %39, %40
%42 = zext i1 %41 to i32
%43 = call i32 @__print_int(i32 %42)
%44 = load float, float* %2
%45 = fpext float %44 to double
%46 = fcmp oeq double %45, 0.000000e+00
%47 = zext i1 %46 to i32
%48 = call i32 @__print_int(i32 %47)
%49 = load float, float* %2
%50 = fpext float %49 to double
%51 = fcmp une double %50, -3.129000e+00
%52 = zext i1 %51 to i32
%53 = call i32 @__print_int(i32 %52)
%54 = load float, float* %3
%55 = fpext float %54 to double
%56 = fcmp oeq double 0.000000e+00, %55
%57 = zext i1 %56 to i32
%58 = call i32 @__print_int(i32 %57)
%59 = load float, float* %3
%60 = fpext float %59 to double
%61 = fcmp une double 4.768000e+00, %60
%62 = zext i1 %61 to i32
%63 = call i32 @__print_int(i32 %62)
%64 = call i32 @__print_int(i32 1)
%65 = call i32 @__print_int(i32 0)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @__print_int(i32 1)
%2 = tail call i32 @__print_int(i32 0)
%3 = tail call i32 @__print_int(i32 0)
%4 = tail call i32 @__print_int(i32 1)
%5 = tail call i32 @__print_int(i32 0)
%6 = tail call i32 @__print_int(i32 1)
%7 = tail call i32 @__print_int(i32 0)
%8 = tail call i32 @__print_int(i32 1)
%9 = tail call i32 @__print_int(i32 0)
%10 = tail call i32 @__print_int(i32 1)
%11 = tail call i32 @__print_int(i32 0)
%12 = tail call i32 @__print_int(i32 1)
%13 = tail call i32 @__print_int(i32 1)
%14 = tail call i32 @__print_int(i32 0)
ret i32 0
}