#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 *, char *);
int main() {
  int x = 5;
  int y = 5;
  int z = 10;
  printf("xÊÇ·ñ´óÓÚy: %s\n", x > y ? "true" : "false");
  printf("yÊÇ·ñ´óÓÚµÈÓÚx: %s\n", y >= x ? "true" : "false");
  printf("yÊÇ·ñÐ¡ÓÚz: %s\n", y < z ? "true" : "false");
  printf("zÊÇ·ñÐ¡ÓÚµÈÓÚx : %s\n", z <= x ? "true" : "false");
  printf("zÊÇ·ñµÈÓÚx+y: %s\n", z == x + y ? "true" : "false");
  printf("xÊÇ·ñ²»µÈÓÚy: %s\n", x != y ? "true" : "false");
  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)
movl   $0xa,-0x10(%rbp)
mov    -0x8(%rbp),%ecx
mov    -0xc(%rbp),%edx
lea    0xedc(%rip),%rsi
lea    0xed0(%rip),%rax
cmp    %edx,%ecx
cmovg  %rax,%rsi
lea    0xeab(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%edx
lea    0xeb6(%rip),%rsi
lea    0xeaa(%rip),%rax
cmp    %edx,%ecx
cmovge %rax,%rsi
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%ecx
mov    -0x10(%rbp),%edx
lea    0xe90(%rip),%rsi
lea    0xe84(%rip),%rax
cmp    %edx,%ecx
cmovl  %rax,%rsi
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%ecx
mov    -0x8(%rbp),%edx
lea    0xe6a(%rip),%rsi
lea    0xe5e(%rip),%rax
cmp    %edx,%ecx
cmovle %rax,%rsi
lea    0xe94(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%ecx
mov    -0x8(%rbp),%edx
add    -0xc(%rbp),%edx
lea    0xe41(%rip),%rsi
lea    0xe35(%rip),%rax
cmp    %edx,%ecx
cmove  %rax,%rsi
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%ecx
mov    -0xc(%rbp),%edx
lea    0xe1b(%rip),%rsi
lea    0xe0f(%rip),%rax
cmp    %edx,%ecx
cmovne %rax,%rsi
lea    0xe80(%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    0xefb(%rip),%r14
mov    %r14,%rsi
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
lea    0xee0(%rip),%rbx
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
mov    %r14,%rsi
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf22(%rip),%rdi
mov    %r14,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [24 x i8] c"x\C3\8A\C3\87\C2\B7\C3\B1\C2\B4\C3\B3\C3\93\C3\9Ay: %s\0A\00"
@.str.1 = [5 x i8] c"true\00"
@.str.2 = [6 x i8] c"false\00"
@.str.3 = [32 x i8] c"y\C3\8A\C3\87\C2\B7\C3\B1\C2\B4\C3\B3\C3\93\C3\9A\C2\B5\C3\88\C3\93\C3\9Ax: %s\0A\00"
@.str.4 = [24 x i8] c"y\C3\8A\C3\87\C2\B7\C3\B1\C3\90\C2\A1\C3\93\C3\9Az: %s\0A\00"
@.str.5 = [33 x i8] c"z\C3\8A\C3\87\C2\B7\C3\B1\C3\90\C2\A1\C3\93\C3\9A\C2\B5\C3\88\C3\93\C3\9Ax : %s\0A\00"
@.str.6 = [26 x i8] c"z\C3\8A\C3\87\C2\B7\C3\B1\C2\B5\C3\88\C3\93\C3\9Ax+y: %s\0A\00"
@.str.7 = [28 x i8] c"x\C3\8A\C3\87\C2\B7\C3\B1\C2\B2\C2\BB\C2\B5\C3\88\C3\93\C3\9Ay: %s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 5, i32* %2
store i32 5, i32* %3
store i32 10, i32* %4
%5 = load i32, i32* %2
%6 = load i32, i32* %3
%7 = icmp sgt i32 %5, %6
%8 = zext i1 %7 to i64
%9 = select i1 %7, 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)
%10 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = load i32, i32* %3
%12 = load i32, i32* %2
%13 = icmp sge i32 %11, %12
%14 = zext i1 %13 to i64
%15 = select i1 %13, 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)
%16 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), i8* %15)
%17 = load i32, i32* %3
%18 = load i32, i32* %4
%19 = icmp slt i32 %17, %18
%20 = zext i1 %19 to i64
%21 = select i1 %19, 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)
%22 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i8* %21)
%23 = load i32, i32* %4
%24 = load i32, i32* %2
%25 = icmp sle i32 %23, %24
%26 = zext i1 %25 to i64
%27 = select i1 %25, 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)
%28 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %27)
%29 = load i32, i32* %4
%30 = load i32, i32* %2
%31 = load i32, i32* %3
%32 = add nsw i32 %30, %31
%33 = icmp eq i32 %29, %32
%34 = zext i1 %33 to i64
%35 = select i1 %33, 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)
%36 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8* %35)
%37 = load i32, i32* %2
%38 = load i32, i32* %3
%39 = icmp ne i32 %37, %38
%40 = zext i1 %39 to i64
%41 = select i1 %39, 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)
%42 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), i8* %41)
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"x\C3\8A\C3\87\C2\B7\C3\B1\C2\B4\C3\B3\C3\93\C3\9Ay: %s\0A\00"
@.str.1 = [5 x i8] c"true\00"
@.str.2 = [6 x i8] c"false\00"
@.str.3 = [32 x i8] c"y\C3\8A\C3\87\C2\B7\C3\B1\C2\B4\C3\B3\C3\93\C3\9A\C2\B5\C3\88\C3\93\C3\9Ax: %s\0A\00"
@.str.4 = [24 x i8] c"y\C3\8A\C3\87\C2\B7\C3\B1\C3\90\C2\A1\C3\93\C3\9Az: %s\0A\00"
@.str.5 = [33 x i8] c"z\C3\8A\C3\87\C2\B7\C3\B1\C3\90\C2\A1\C3\93\C3\9A\C2\B5\C3\88\C3\93\C3\9Ax : %s\0A\00"
@.str.6 = [26 x i8] c"z\C3\8A\C3\87\C2\B7\C3\B1\C2\B5\C3\88\C3\93\C3\9Ax+y: %s\0A\00"
@.str.7 = [28 x i8] c"x\C3\8A\C3\87\C2\B7\C3\B1\C2\B2\C2\BB\C2\B5\C3\88\C3\93\C3\9Ay: %s\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}