#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 number1 = 10;
  int number2 = 5;
  int number3 = 10;
  printf("Value of number1 == number2: %d\n", number1 == number2);
  printf("Value of number1 == number3: %d\n", number1 == number3);
  printf("Value of number1 == number3: %d\n", number1 == number3);
  printf("Value of number1 != number2: %d\n", number1 != number2);
  printf("Value of number1 != number3: %d\n", number1 != number3);
  printf("Value of number1 > number2: %d\n", number1 > number2);
  printf("Value of number1 > number3: %d\n", number1 > number3);
  printf("Value of number2 < number3: %d\n", number2 < number3);
  printf("Value of number3 < number2: %d\n", number3 < number2);
  printf("Value of number1 >= number2: %d\n", number1 >= number2);
  printf("Value of number1 >= number3: %d\n", number1 >= number3);
  printf("Value of number2 <= number3: %d\n", number2 <= number3);
  printf("Value of number1 <= number3: %d\n", number1 <= number3);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0xa,-0x4(%rbp)
movl   $0x5,-0x8(%rbp)
movl   $0xa,-0xc(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xec5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xeab(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%esi
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%esi
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xed2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setge  %al
and    $0x1,%al
movzbl %al,%esi
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
setge  %al
and    $0x1,%al
movzbl %al,%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%esi
lea    0xee6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%esi
lea    0xeed(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xefb(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xf1e(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf2d(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xf3f(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf4e(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xf60(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf80(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf90(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [33 x i8] c"Value of number1 == number2: %d\0A\00"
@.str.1 = [33 x i8] c"Value of number1 == number3: %d\0A\00"
@.str.2 = [33 x i8] c"Value of number1 != number2: %d\0A\00"
@.str.3 = [33 x i8] c"Value of number1 != number3: %d\0A\00"
@.str.4 = [32 x i8] c"Value of number1 > number2: %d\0A\00"
@.str.5 = [32 x i8] c"Value of number1 > number3: %d\0A\00"
@.str.6 = [32 x i8] c"Value of number2 < number3: %d\0A\00"
@.str.7 = [32 x i8] c"Value of number3 < number2: %d\0A\00"
@.str.8 = [33 x i8] c"Value of number1 >= number2: %d\0A\00"
@.str.9 = [33 x i8] c"Value of number1 >= number3: %d\0A\00"
@.str.10 = [33 x i8] c"Value of number2 <= number3: %d\0A\00"
@.str.11 = [33 x i8] c"Value of number1 <= number3: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 10, i32* %1
store i32 5, i32* %2
store i32 10, i32* %3
%4 = load i32, i32* %1
%5 = load i32, i32* %2
%6 = icmp eq i32 %4, %5
%7 = zext i1 %6 to i32
%8 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = load i32, i32* %1
%10 = load i32, i32* %3
%11 = icmp eq i32 %9, %10
%12 = zext i1 %11 to i32
%13 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 %12)
%14 = load i32, i32* %1
%15 = load i32, i32* %3
%16 = icmp eq i32 %14, %15
%17 = zext i1 %16 to i32
%18 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 %17)
%19 = load i32, i32* %1
%20 = load i32, i32* %2
%21 = icmp ne i32 %19, %20
%22 = zext i1 %21 to i32
%23 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %22)
%24 = load i32, i32* %1
%25 = load i32, i32* %3
%26 = icmp ne i32 %24, %25
%27 = zext i1 %26 to i32
%28 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 %27)
%29 = load i32, i32* %1
%30 = load i32, i32* %2
%31 = icmp sgt i32 %29, %30
%32 = zext i1 %31 to i32
%33 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 %32)
%34 = load i32, i32* %1
%35 = load i32, i32* %3
%36 = icmp sgt i32 %34, %35
%37 = zext i1 %36 to i32
%38 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 %37)
%39 = load i32, i32* %2
%40 = load i32, i32* %3
%41 = icmp slt i32 %39, %40
%42 = zext i1 %41 to i32
%43 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i32 %42)
%44 = load i32, i32* %3
%45 = load i32, i32* %2
%46 = icmp slt i32 %44, %45
%47 = zext i1 %46 to i32
%48 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i32 %47)
%49 = load i32, i32* %1
%50 = load i32, i32* %2
%51 = icmp sge i32 %49, %50
%52 = zext i1 %51 to i32
%53 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), i32 %52)
%54 = load i32, i32* %1
%55 = load i32, i32* %3
%56 = icmp sge i32 %54, %55
%57 = zext i1 %56 to i32
%58 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i32 %57)
%59 = load i32, i32* %2
%60 = load i32, i32* %3
%61 = icmp sle i32 %59, %60
%62 = zext i1 %61 to i32
%63 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0), i32 %62)
%64 = load i32, i32* %1
%65 = load i32, i32* %3
%66 = icmp sle i32 %64, %65
%67 = zext i1 %66 to i32
%68 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i32 %67)
ret i32 0
}

LLVM IR (-O2):
@.str = [33 x i8] c"Value of number1 == number2: %d\0A\00"
@.str.1 = [33 x i8] c"Value of number1 == number3: %d\0A\00"
@.str.2 = [33 x i8] c"Value of number1 != number2: %d\0A\00"
@.str.3 = [33 x i8] c"Value of number1 != number3: %d\0A\00"
@.str.4 = [32 x i8] c"Value of number1 > number2: %d\0A\00"
@.str.5 = [32 x i8] c"Value of number1 > number3: %d\0A\00"
@.str.6 = [32 x i8] c"Value of number2 < number3: %d\0A\00"
@.str.7 = [32 x i8] c"Value of number3 < number2: %d\0A\00"
@.str.8 = [33 x i8] c"Value of number1 >= number2: %d\0A\00"
@.str.9 = [33 x i8] c"Value of number1 >= number3: %d\0A\00"
@.str.10 = [33 x i8] c"Value of number2 <= number3: %d\0A\00"
@.str.11 = [33 x i8] c"Value of number1 <= number3: %d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 1)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 1)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 0)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 1)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 0)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i32 1)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i32 0)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), i32 1)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i32 1)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0), i32 1)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i32 1)
ret i32 0
}