#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, char *);
int main() {
  int a = 10;
  int b = 15;
  printf("%d==%d %s \n", a, b, a == b ? "true" : "false");
  printf("%d!=%d %s \n", a, b, a != b ? "true" : "false");
  printf("%d>=%d %s \n", a, b, a >= b ? "true" : "false");
  printf("%d<=%d %s \n", a, b, a <= b ? "true" : "false");
  printf("%d>%d %s \n", a, b, a >= b ? "true" : "false");
  printf("%d<%d %s \n", a, b, a < b ? "true" : "false");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
movl   $0xf,-0xc(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%r8d
lea    0xed0(%rip),%rcx
lea    0xec4(%rip),%rax
cmp    %r8d,%edi
cmove  %rax,%rcx
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%r8d
lea    0xea2(%rip),%rcx
lea    0xe96(%rip),%rax
cmp    %r8d,%edi
cmovne %rax,%rcx
lea    0xe93(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%r8d
lea    0xe74(%rip),%rcx
lea    0xe68(%rip),%rax
cmp    %r8d,%edi
cmovge %rax,%rcx
lea    0xe71(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%r8d
lea    0xe46(%rip),%rcx
lea    0xe3a(%rip),%rax
cmp    %r8d,%edi
cmovle %rax,%rcx
lea    0xe4f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%r8d
lea    0xe18(%rip),%rcx
lea    0xe0c(%rip),%rax
cmp    %r8d,%edi
cmovge %rax,%rcx
lea    0xe2d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%r8d
lea    0xdea(%rip),%rcx
lea    0xdde(%rip),%rax
cmp    %r8d,%edi
cmovl  %rax,%rcx
lea    0xe0a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xee5(%rip),%rdi
lea    0xeef(%rip),%r14
mov    $0xa,%esi
mov    $0xf,%edx
mov    %r14,%rcx
call   1030 <printf@plt>
lea    0xedc(%rip),%rdi
lea    0xeca(%rip),%rbx
mov    $0xa,%esi
mov    $0xf,%edx
mov    %rbx,%rcx
call   1030 <printf@plt>
lea    0xec8(%rip),%rdi
mov    $0xa,%esi
mov    $0xf,%edx
mov    %r14,%rcx
call   1030 <printf@plt>
lea    0xebb(%rip),%rdi
mov    $0xa,%esi
mov    $0xf,%edx
mov    %rbx,%rcx
call   1030 <printf@plt>
lea    0xeae(%rip),%rdi
mov    $0xa,%esi
mov    $0xf,%edx
mov    %r14,%rcx
call   1030 <printf@plt>
lea    0xea0(%rip),%rdi
mov    $0xa,%esi
mov    $0xf,%edx
mov    %rbx,%rcx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%d==%d %s \0A\00"
@.str.1 = [5 x i8] c"true\00"
@.str.2 = [6 x i8] c"false\00"
@.str.3 = [12 x i8] c"%d!=%d %s \0A\00"
@.str.4 = [12 x i8] c"%d>=%d %s \0A\00"
@.str.5 = [12 x i8] c"%d<=%d %s \0A\00"
@.str.6 = [11 x i8] c"%d>%d %s \0A\00"
@.str.7 = [11 x i8] c"%d<%d %s \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 10, i32* %2
store i32 15, i32* %3
%4 = load i32, i32* %2
%5 = load i32, i32* %3
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = icmp eq i32 %6, %7
%9 = zext i1 %8 to i64
%10 = select i1 %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0)
%11 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %5, i8* %10)
%12 = load i32, i32* %2
%13 = load i32, i32* %3
%14 = load i32, i32* %2
%15 = load i32, i32* %3
%16 = icmp ne i32 %14, %15
%17 = zext i1 %16 to i64
%18 = select i1 %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0)
%19 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %12, i32 %13, i8* %18)
%20 = load i32, i32* %2
%21 = load i32, i32* %3
%22 = load i32, i32* %2
%23 = load i32, i32* %3
%24 = icmp sge i32 %22, %23
%25 = zext i1 %24 to i64
%26 = select i1 %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0)
%27 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %20, i32 %21, i8* %26)
%28 = load i32, i32* %2
%29 = load i32, i32* %3
%30 = load i32, i32* %2
%31 = load i32, i32* %3
%32 = icmp sle i32 %30, %31
%33 = zext i1 %32 to i64
%34 = select i1 %32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0)
%35 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %28, i32 %29, i8* %34)
%36 = load i32, i32* %2
%37 = load i32, i32* %3
%38 = load i32, i32* %2
%39 = load i32, i32* %3
%40 = icmp sge i32 %38, %39
%41 = zext i1 %40 to i64
%42 = select i1 %40, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0)
%43 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i32 %36, i32 %37, i8* %42)
%44 = load i32, i32* %2
%45 = load i32, i32* %3
%46 = load i32, i32* %2
%47 = load i32, i32* %3
%48 = icmp slt i32 %46, %47
%49 = zext i1 %48 to i64
%50 = select i1 %48, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0)
%51 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 %44, i32 %45, i8* %50)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"%d==%d %s \0A\00"
@.str.1 = [5 x i8] c"true\00"
@.str.2 = [6 x i8] c"false\00"
@.str.3 = [12 x i8] c"%d!=%d %s \0A\00"
@.str.4 = [12 x i8] c"%d>=%d %s \0A\00"
@.str.5 = [12 x i8] c"%d<=%d %s \0A\00"
@.str.6 = [11 x i8] c"%d>%d %s \0A\00"
@.str.7 = [11 x i8] c"%d<%d %s \0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 10, i32 15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 10, i32 15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 10, i32 15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 10, i32 15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i32 10, i32 15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 10, i32 15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}