#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 *, int);
int main() {
  int result = 1 == 2;
  printf("1 equals 2 is %d\n", result);
  result = 1 != 2;
  printf("1 not equals 2 is %d\n", result);
  result = 1 > 2;
  printf("1 larger than 2 is %d\n", result);
  result = 1 >= 2;
  printf("1 larger than or equals 2 is %d\n", result);
  result = 1 < 2;
  printf("1 less than 2 is %d\n", result);
  result = 1 <= 2;
  printf("1 less than or equals 2 is %d", result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xed0(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf11(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"1 equals 2 is %d\0A\00"
@.str.1 = [22 x i8] c"1 not equals 2 is %d\0A\00"
@.str.2 = [23 x i8] c"1 larger than 2 is %d\0A\00"
@.str.3 = [33 x i8] c"1 larger than or equals 2 is %d\0A\00"
@.str.4 = [21 x i8] c"1 less than 2 is %d\0A\00"
@.str.5 = [30 x i8] c"1 less than or equals 2 is %d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %3)
store i32 1, i32* %2
%5 = load i32, i32* %2
%6 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %5)
store i32 0, i32* %2
%7 = load i32, i32* %2
%8 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %7)
store i32 0, i32* %2
%9 = load i32, i32* %2
%10 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 %9)
store i32 1, i32* %2
%11 = load i32, i32* %2
%12 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %11)
store i32 1, i32* %2
%13 = load i32, i32* %2
%14 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %13)
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c"1 equals 2 is %d\0A\00"
@.str.1 = [22 x i8] c"1 not equals 2 is %d\0A\00"
@.str.2 = [23 x i8] c"1 larger than 2 is %d\0A\00"
@.str.3 = [33 x i8] c"1 larger than or equals 2 is %d\0A\00"
@.str.4 = [21 x i8] c"1 less than 2 is %d\0A\00"
@.str.5 = [30 x i8] c"1 less than or equals 2 is %d\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 0)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 0)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 1)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 1)
ret i32 0
}