#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() {
  int a;
  int b;
  a = 5;
  b = 5;
  __print_int(a == b);
  __print_int(a != b);
  __print_int(a == 5);
  __print_int(a != 5);
  __print_int(5 == b);
  __print_int(5 != b);
  a = -3;
  b = 4;
  __print_int(a == b);
  __print_int(a != b);
  __print_int(a == 0);
  __print_int(a != -3);
  __print_int(0 == b);
  __print_int(4 != b);
  __print_int(5 == 5);
  __print_int(5 != 5);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x5,-0x8(%rbp)
movl   $0x5,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
cmpl   $0x5,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
cmpl   $0x5,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
mov    $0x5,%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
mov    $0x5,%eax
cmp    -0xc(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
movl   $0xfffffffd,-0x8(%rbp)
movl   $0x4,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
cmpl   $0xfffffffd,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
xor    %eax,%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__print_int@plt>
mov    $0x4,%eax
cmp    -0xc(%rbp),%eax
setne  %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>
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>
xor    %edi,%edi
call   1030 <__print_int@plt>
mov    $0x1,%edi
call   1030 <__print_int@plt>
xor    %edi,%edi
call   1030 <__print_int@plt>
xor    %edi,%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>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 5, i32* %2
store i32 5, i32* %3
%4 = load i32, i32* %2
%5 = load i32, i32* %3
%6 = icmp eq i32 %4, %5
%7 = zext i1 %6 to i32
%8 = call i32 @__print_int(i32 %7)
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = icmp ne i32 %9, %10
%12 = zext i1 %11 to i32
%13 = call i32 @__print_int(i32 %12)
%14 = load i32, i32* %2
%15 = icmp eq i32 %14, 5
%16 = zext i1 %15 to i32
%17 = call i32 @__print_int(i32 %16)
%18 = load i32, i32* %2
%19 = icmp ne i32 %18, 5
%20 = zext i1 %19 to i32
%21 = call i32 @__print_int(i32 %20)
%22 = load i32, i32* %3
%23 = icmp eq i32 5, %22
%24 = zext i1 %23 to i32
%25 = call i32 @__print_int(i32 %24)
%26 = load i32, i32* %3
%27 = icmp ne i32 5, %26
%28 = zext i1 %27 to i32
%29 = call i32 @__print_int(i32 %28)
store i32 -3, i32* %2
store i32 4, i32* %3
%30 = load i32, i32* %2
%31 = load i32, i32* %3
%32 = icmp eq i32 %30, %31
%33 = zext i1 %32 to i32
%34 = call i32 @__print_int(i32 %33)
%35 = load i32, i32* %2
%36 = load i32, i32* %3
%37 = icmp ne i32 %35, %36
%38 = zext i1 %37 to i32
%39 = call i32 @__print_int(i32 %38)
%40 = load i32, i32* %2
%41 = icmp eq i32 %40, 0
%42 = zext i1 %41 to i32
%43 = call i32 @__print_int(i32 %42)
%44 = load i32, i32* %2
%45 = icmp ne i32 %44, -3
%46 = zext i1 %45 to i32
%47 = call i32 @__print_int(i32 %46)
%48 = load i32, i32* %3
%49 = icmp eq i32 0, %48
%50 = zext i1 %49 to i32
%51 = call i32 @__print_int(i32 %50)
%52 = load i32, i32* %3
%53 = icmp ne i32 4, %52
%54 = zext i1 %53 to i32
%55 = call i32 @__print_int(i32 %54)
%56 = call i32 @__print_int(i32 1)
%57 = 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 1)
%4 = tail call i32 @__print_int(i32 0)
%5 = tail call i32 @__print_int(i32 1)
%6 = tail call i32 @__print_int(i32 0)
%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 0)
%11 = tail call i32 @__print_int(i32 0)
%12 = tail call i32 @__print_int(i32 0)
%13 = tail call i32 @__print_int(i32 1)
%14 = tail call i32 @__print_int(i32 0)
ret i32 0
}