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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
movl   $0xf,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%ecx
xor    %eax,%eax
cmp    -0xc(%rbp),%ecx
mov    %al,-0xd(%rbp)
jle    1162 <main+0x52>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
mov    %al,-0xd(%rbp)
mov    -0x14(%rbp),%r8d
mov    -0x18(%rbp),%ecx
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%esi
mov    -0xd(%rbp),%dil
lea    0xe8b(%rip),%r9
lea    0xe7f(%rip),%rax
test   $0x1,%dil
cmovne %rax,%r9
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%ecx
mov    $0x1,%al
cmp    -0xc(%rbp),%ecx
mov    %al,-0x21(%rbp)
jg     11ca <main+0xba>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
mov    %al,-0x21(%rbp)
mov    -0x28(%rbp),%r8d
mov    -0x2c(%rbp),%ecx
mov    -0x30(%rbp),%edx
mov    -0x34(%rbp),%esi
mov    -0x21(%rbp),%dil
lea    0xe23(%rip),%r9
lea    0xe17(%rip),%rax
test   $0x1,%dil
cmovne %rax,%r9
lea    0xe48(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x8(%rbp),%ecx
xor    %eax,%eax
cmp    -0xc(%rbp),%ecx
mov    %al,-0x35(%rbp)
jg     1232 <main+0x122>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
mov    %al,-0x35(%rbp)
mov    -0x3c(%rbp),%r8d
mov    -0x40(%rbp),%ecx
mov    -0x44(%rbp),%edx
mov    -0x48(%rbp),%esi
mov    -0x35(%rbp),%dil
lea    0xdbb(%rip),%r9
lea    0xdaf(%rip),%rax
test   $0x1,%dil
cmovne %rax,%r9
lea    0xdab(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x8(%rbp),%ecx
xor    %eax,%eax
cmp    -0xc(%rbp),%ecx
mov    %al,-0x49(%rbp)
jg     129a <main+0x18a>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
mov    %al,-0x49(%rbp)
mov    -0x50(%rbp),%r8d
mov    -0x54(%rbp),%ecx
mov    -0x58(%rbp),%edx
mov    -0x5c(%rbp),%esi
mov    -0x49(%rbp),%dil
lea    0xd53(%rip),%r9
lea    0xd47(%rip),%rax
test   $0x1,%dil
cmovne %rax,%r9
lea    0xd5d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x70(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x8(%rbp),%ecx
mov    $0x1,%al
cmp    -0xc(%rbp),%ecx
mov    %al,-0x5d(%rbp)
jle    1302 <main+0x1f2>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
mov    %al,-0x5d(%rbp)
mov    -0x64(%rbp),%r8d
mov    -0x68(%rbp),%ecx
mov    -0x6c(%rbp),%edx
mov    -0x70(%rbp),%esi
mov    -0x5d(%rbp),%dil
lea    0xceb(%rip),%r9
lea    0xcdf(%rip),%rax
test   $0x1,%dil
cmovne %rax,%r9
lea    0xd0f(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xef4(%rip),%rdi
lea    0xee6(%rip),%rbx
mov    $0xa,%esi
mov    $0xf,%edx
mov    $0xa,%ecx
mov    $0xf,%r8d
mov    %rbx,%r9
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
mov    $0xa,%esi
mov    $0xf,%edx
mov    $0xa,%ecx
mov    $0xf,%r8d
mov    %rbx,%r9
call   1030 <printf@plt>
lea    0xea4(%rip),%rdi
mov    $0xa,%esi
mov    $0xf,%edx
mov    $0xa,%ecx
mov    $0xf,%r8d
mov    %rbx,%r9
call   1030 <printf@plt>
lea    0xe9a(%rip),%rdi
mov    $0xa,%esi
mov    $0xf,%edx
mov    $0xa,%ecx
mov    $0xf,%r8d
mov    %rbx,%r9
call   1030 <printf@plt>
lea    0xe90(%rip),%rdi
lea    0xe4a(%rip),%r9
mov    $0xa,%esi
mov    $0xf,%edx
mov    $0xa,%ecx
mov    $0xf,%r8d
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [25 x i8] c"(%d>%d) && (%d==%d) %s \0A\00"
@.str.1 = [5 x i8] c"true\00"
@.str.2 = [6 x i8] c"false\00"
@.str.3 = [25 x i8] c"(%d>%d) || (%d==%d) %s \0A\00"
@.str.4 = [26 x i8] c"!(%d>%d) && (%d==%d) %s \0A\00"
@.str.5 = [26 x i8] c"(%d>%d) && !(%d==%d) %s \0A\00"
@.str.6 = [26 x i8] c"!(%d>%d) || (%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 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = icmp sgt i32 %8, %9
br i1 %10, label %11, label %15
11: ; preds = %0
%12 = load i32, i32* %2
%13 = load i32, i32* %3
%14 = icmp eq i32 %12, %13
br label %15
15: ; preds = %11, %0
%16 = phi i1 [ false, %0 ], [ %14, %11 ]
%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 ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %5, i32 %6, i32 %7, i8* %18)
%20 = load i32, i32* %2
%21 = load i32, i32* %3
%22 = load i32, i32* %2
%23 = load i32, i32* %3
%24 = load i32, i32* %2
%25 = load i32, i32* %3
%26 = icmp sgt i32 %24, %25
br i1 %26, label %31, label %27
27: ; preds = %15
%28 = load i32, i32* %2
%29 = load i32, i32* %3
%30 = icmp eq i32 %28, %29
br label %31
31: ; preds = %27, %15
%32 = phi i1 [ true, %15 ], [ %30, %27 ]
%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 ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 %20, i32 %21, i32 %22, i32 %23, i8* %34)
%36 = load i32, i32* %2
%37 = load i32, i32* %3
%38 = load i32, i32* %2
%39 = load i32, i32* %3
%40 = load i32, i32* %2
%41 = load i32, i32* %3
%42 = icmp sgt i32 %40, %41
br i1 %42, label %47, label %43
43: ; preds = %31
%44 = load i32, i32* %2
%45 = load i32, i32* %3
%46 = icmp eq i32 %44, %45
br label %47
47: ; preds = %43, %31
%48 = phi i1 [ false, %31 ], [ %46, %43 ]
%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 ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %36, i32 %37, i32 %38, i32 %39, i8* %50)
%52 = load i32, i32* %2
%53 = load i32, i32* %3
%54 = load i32, i32* %2
%55 = load i32, i32* %3
%56 = load i32, i32* %2
%57 = load i32, i32* %3
%58 = icmp sgt i32 %56, %57
br i1 %58, label %63, label %59
59: ; preds = %47
%60 = load i32, i32* %2
%61 = load i32, i32* %3
%62 = icmp eq i32 %60, %61
br label %63
63: ; preds = %59, %47
%64 = phi i1 [ false, %47 ], [ %62, %59 ]
%65 = zext i1 %64 to i64
%66 = select i1 %64, 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)
%67 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i32 %52, i32 %53, i32 %54, i32 %55, i8* %66)
%68 = load i32, i32* %2
%69 = load i32, i32* %3
%70 = load i32, i32* %2
%71 = load i32, i32* %3
%72 = load i32, i32* %2
%73 = load i32, i32* %3
%74 = icmp sgt i32 %72, %73
br i1 %74, label %75, label %79
75: ; preds = %63
%76 = load i32, i32* %2
%77 = load i32, i32* %3
%78 = icmp eq i32 %76, %77
br label %79
79: ; preds = %75, %63
%80 = phi i1 [ true, %63 ], [ %78, %75 ]
%81 = zext i1 %80 to i64
%82 = select i1 %80, 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)
%83 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 %68, i32 %69, i32 %70, i32 %71, i8* %82)
ret i32 0
}

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