#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 */
char *ICReturnBool(int);
int /*<<< orphan*/ printf(char *, int, int, char *);
int main(int argc, const char *argv[]) {
  int firstOperand = 10;
  int secondOperand = 15;
  printf("%i > %i ->  %s\n", secondOperand, firstOperand,
         ICReturnBool(secondOperand > firstOperand));
  printf("%i >= %i ->  %s\n", secondOperand, firstOperand,
         ICReturnBool(secondOperand >= firstOperand));
  printf("%i < %i ->  %s\n", secondOperand, firstOperand,
         ICReturnBool(secondOperand < firstOperand));
  printf("%i < %i ->  %s\n", firstOperand, secondOperand,
         ICReturnBool(firstOperand < secondOperand));
  printf("%i >= %i ->  %s\n", firstOperand, secondOperand,
         ICReturnBool(firstOperand >= secondOperand));
  printf("%i <= %i ->  %s\n", firstOperand, secondOperand,
         ICReturnBool(firstOperand <= secondOperand));
  printf("%i != %i ->  %s\n", firstOperand, secondOperand,
         ICReturnBool(firstOperand != secondOperand));
  printf("%i == %i ->  %s\n", firstOperand, secondOperand,
         ICReturnBool(firstOperand == secondOperand));
  printf("%i == %i ->  %s\n", firstOperand, firstOperand,
         ICReturnBool(firstOperand == firstOperand));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0xa,-0x14(%rbp)
movl   $0xf,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <ICReturnBool@plt>
mov    -0x60(%rbp),%esi
mov    -0x5c(%rbp),%edx
mov    %rax,%rcx
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <ICReturnBool@plt>
mov    -0x58(%rbp),%esi
mov    -0x54(%rbp),%edx
mov    %rax,%rcx
lea    0xe69(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <ICReturnBool@plt>
mov    -0x50(%rbp),%esi
mov    -0x4c(%rbp),%edx
mov    %rax,%rcx
lea    0xe46(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <ICReturnBool@plt>
mov    -0x48(%rbp),%esi
mov    -0x44(%rbp),%edx
mov    %rax,%rcx
lea    0xe12(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <ICReturnBool@plt>
mov    -0x40(%rbp),%esi
mov    -0x3c(%rbp),%edx
mov    %rax,%rcx
lea    0xdcd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <ICReturnBool@plt>
mov    -0x38(%rbp),%esi
mov    -0x34(%rbp),%edx
mov    %rax,%rcx
lea    0xdba(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <ICReturnBool@plt>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
mov    %rax,%rcx
lea    0xd97(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <ICReturnBool@plt>
mov    -0x28(%rbp),%esi
mov    -0x24(%rbp),%edx
mov    %rax,%rcx
lea    0xd74(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x14(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <ICReturnBool@plt>
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    %rax,%rcx
lea    0xd40(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    $0x1,%edi
call   1040 <ICReturnBool@plt>
lea    0xecb(%rip),%rdi
mov    $0xf,%esi
mov    $0xa,%edx
mov    %rax,%rcx
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <ICReturnBool@plt>
lea    0xeb8(%rip),%r14
mov    %r14,%rdi
mov    $0xf,%esi
mov    $0xa,%edx
mov    %rax,%rcx
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <ICReturnBool@plt>
lea    0xea6(%rip),%rbx
mov    %rbx,%rdi
mov    $0xf,%esi
mov    $0xa,%edx
mov    %rax,%rcx
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <ICReturnBool@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
mov    $0xf,%edx
mov    %rax,%rcx
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <ICReturnBool@plt>
mov    %r14,%rdi
mov    $0xa,%esi
mov    $0xf,%edx
mov    %rax,%rcx
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <ICReturnBool@plt>
lea    0xe55(%rip),%rdi
mov    $0xa,%esi
mov    $0xf,%edx
mov    %rax,%rcx
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <ICReturnBool@plt>
lea    0xe43(%rip),%rdi
mov    $0xa,%esi
mov    $0xf,%edx
mov    %rax,%rcx
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <ICReturnBool@plt>
lea    0xe34(%rip),%rbx
mov    %rbx,%rdi
mov    $0xa,%esi
mov    $0xf,%edx
mov    %rax,%rcx
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <ICReturnBool@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
mov    $0xa,%edx
mov    %rax,%rcx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [16 x i8] c"%i > %i -> %s\0A\00"
@.str.1 = [17 x i8] c"%i >= %i -> %s\0A\00"
@.str.2 = [16 x i8] c"%i < %i -> %s\0A\00"
@.str.3 = [17 x i8] c"%i <= %i -> %s\0A\00"
@.str.4 = [17 x i8] c"%i != %i -> %s\0A\00"
@.str.5 = [17 x i8] c"%i == %i -> %s\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i8* @ICReturnBool(i32 1)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 15, i32 10, i8* %3)
%5 = tail call i8* @ICReturnBool(i32 1)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 15, i32 10, i8* %5)
%7 = tail call i8* @ICReturnBool(i32 0)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 15, i32 10, i8* %7)
%9 = tail call i8* @ICReturnBool(i32 1)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 10, i32 15, i8* %9)
%11 = tail call i8* @ICReturnBool(i32 0)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 10, i32 15, i8* %11)
%13 = tail call i8* @ICReturnBool(i32 1)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 10, i32 15, i8* %13)
%15 = tail call i8* @ICReturnBool(i32 1)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 10, i32 15, i8* %15)
%17 = tail call i8* @ICReturnBool(i32 0)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 10, i32 15, i8* %17)
%19 = tail call i8* @ICReturnBool(i32 1)
%20 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 10, i32 10, i8* %19)
ret i32 0
}