#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 EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, int, ...);
int main() {
  int num1 = 20;
  int num2 = 0;
  if (num1 && num2)
    printf("%d AND %d is a true statement\n\n", num1, num2);
  else
    printf("%d AND %d is a false statement\n\n", num1, num2);
  if (num1 || num2)
    printf("%d OR %d is a true statement\n\n", num1, num2);
  else
    printf("%d OR %d is a false statement\n\n", num1, num2);
  if (!num1)
    printf("NOT %d is a true statement\n\n", num1);
  else
    printf("NOT %d is a false statement\n\n", num1);
  if (num1 == num2)
    printf("%d EQUALS %d is a true statement\n\n", num1, num2);
  else
    printf("%d EQUALS %d is a false statement\n\n", num1, num2);
  if (num1 < num2)
    printf("%d is LESS THAN %d is a true statement\n\n", num1, num2);
  else
    printf("%d is LESS THAN %d is a false statement\n\n", num1, num2);
  if (num1 > num2)
    printf("%d is GREATER THAN %d is a true statement\n\n", num1, num2);
  else
    printf("%d is GREATER THAN %d is a false statement\n\n", num1, num2);
  if (num1 <= num2)
    printf("%d is LESS THAN OR EQUAL TO %d is a true statement\n\n", num1,
           num2);
  else
    printf("%d is LESS THAN OR EQUAL TO %d is a false statement\n\n", num1,
           num2);
  if (num1 >= num2)
    printf("%d is GREATER THAN OR EQUAL TO %d is a true statement\n\n", num1,
           num2);
  else
    printf("%d is GREATER THAN OR EQUAL TO %d is a false statement\n\n", num1,
           num2);
  if (num1 != num2)
    printf("%d DOES NOT EQUAL %d is a true statement\n\n", num1, num2);
  else
    printf("%d DOES NOT EQUAL %d is a false statement\n\n", num1, num2);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x14,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     115a <main+0x4a>
cmpl   $0x0,-0xc(%rbp)
je     115a <main+0x4a>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    116e <main+0x5e>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
jne    1182 <main+0x72>
cmpl   $0x0,-0xc(%rbp)
je     119b <main+0x8b>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11af <main+0x9f>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
jne    11cf <main+0xbf>
mov    -0x8(%rbp),%esi
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11e0 <main+0xd0>
mov    -0x8(%rbp),%esi
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    1205 <main+0xf5>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1219 <main+0x109>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xecc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    123e <main+0x12e>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1252 <main+0x142>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xee0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1277 <main+0x167>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xeea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    128b <main+0x17b>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xefd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     12b0 <main+0x1a0>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xf0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12c4 <main+0x1b4>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xf26(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jl     12e9 <main+0x1d9>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xf3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12fd <main+0x1ed>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xf5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
je     1322 <main+0x212>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xf74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1336 <main+0x226>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xf86(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2ca3(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x14,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
mov    $0x14,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0x14,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
mov    $0x14,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf2d(%rip),%rdi
mov    $0x14,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf44(%rip),%rdi
mov    $0x14,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf65(%rip),%rdi
mov    $0x14,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf88(%rip),%rdi
mov    $0x14,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [32 x i8] c"%d AND %d is a true statement\0A\0A\00"
@.str.1 = [33 x i8] c"%d AND %d is a false statement\0A\0A\00"
@.str.2 = [31 x i8] c"%d OR %d is a true statement\0A\0A\00"
@.str.3 = [32 x i8] c"%d OR %d is a false statement\0A\0A\00"
@.str.4 = [29 x i8] c"NOT %d is a true statement\0A\0A\00"
@.str.5 = [30 x i8] c"NOT %d is a false statement\0A\0A\00"
@.str.6 = [35 x i8] c"%d EQUALS %d is a true statement\0A\0A\00"
@.str.7 = [36 x i8] c"%d EQUALS %d is a false statement\0A\0A\00"
@.str.8 = [41 x i8] c"%d is LESS THAN %d is a true statement\0A\0A\00"
@.str.9 = [42 x i8] c"%d is LESS THAN %d is a false statement\0A\0A\00"
@.str.10 = [44 x i8] c"%d is GREATER THAN %d is a true statement\0A\0A\00"
@.str.11 = [45 x i8] c"%d is GREATER THAN %d is a false statement\0A\0A\00"
@.str.12 = [53 x i8] c"%d is LESS THAN OR EQUAL TO %d is a true statement\0A\0A\00"
@.str.13 = [54 x i8] c"%d is LESS THAN OR EQUAL TO %d is a false statement\0A\0A\00"
@.str.14 = [56 x i8] c"%d is GREATER THAN OR EQUAL TO %d is a true statement\0A\0A\00"
@.str.15 = [57 x i8] c"%d is GREATER THAN OR EQUAL TO %d is a false statement\0A\0A\00"
@.str.16 = [43 x i8] c"%d DOES NOT EQUAL %d is a true statement\0A\0A\00"
@.str.17 = [44 x i8] c"%d DOES NOT EQUAL %d is a false statement\0A\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 20, i32* %2
store i32 0, i32* %3
%4 = load i32, i32* %2
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %13
6: ; preds = %0
%7 = load i32, i32* %3
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %6
%10 = load i32, i32* %2
%11 = load i32, i32* %3
%12 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 %10, i32 %11)
br label %17
13: ; preds = %6, %0
%14 = load i32, i32* %2
%15 = load i32, i32* %3
%16 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 %14, i32 %15)
br label %17
17: ; preds = %13, %9
%18 = load i32, i32* %2
%19 = icmp ne i32 %18, 0
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = load i32, i32* %3
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %20, %17
%24 = load i32, i32* %2
%25 = load i32, i32* %3
%26 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 %24, i32 %25)
br label %31
27: ; preds = %20
%28 = load i32, i32* %2
%29 = load i32, i32* %3
%30 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), i32 %28, i32 %29)
br label %31
31: ; preds = %27, %23
%32 = load i32, i32* %2
%33 = icmp ne i32 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %31
%35 = load i32, i32* %2
%36 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i32 %35)
br label %40
37: ; preds = %31
%38 = load i32, i32* %2
%39 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %38)
br label %40
40: ; preds = %37, %34
%41 = load i32, i32* %2
%42 = load i32, i32* %3
%43 = icmp eq i32 %41, %42
br i1 %43, label %44, label %48
44: ; preds = %40
%45 = load i32, i32* %2
%46 = load i32, i32* %3
%47 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0), i32 %45, i32 %46)
br label %52
48: ; preds = %40
%49 = load i32, i32* %2
%50 = load i32, i32* %3
%51 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0), i32 %49, i32 %50)
br label %52
52: ; preds = %48, %44
%53 = load i32, i32* %2
%54 = load i32, i32* %3
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %60
56: ; preds = %52
%57 = load i32, i32* %2
%58 = load i32, i32* %3
%59 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.8, i64 0, i64 0), i32 %57, i32 %58)
br label %64
60: ; preds = %52
%61 = load i32, i32* %2
%62 = load i32, i32* %3
%63 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.9, i64 0, i64 0), i32 %61, i32 %62)
br label %64
64: ; preds = %60, %56
%65 = load i32, i32* %2
%66 = load i32, i32* %3
%67 = icmp sgt i32 %65, %66
br i1 %67, label %68, label %72
68: ; preds = %64
%69 = load i32, i32* %2
%70 = load i32, i32* %3
%71 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0), i32 %69, i32 %70)
br label %76
72: ; preds = %64
%73 = load i32, i32* %2
%74 = load i32, i32* %3
%75 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.11, i64 0, i64 0), i32 %73, i32 %74)
br label %76
76: ; preds = %72, %68
%77 = load i32, i32* %2
%78 = load i32, i32* %3
%79 = icmp sle i32 %77, %78
br i1 %79, label %80, label %84
80: ; preds = %76
%81 = load i32, i32* %2
%82 = load i32, i32* %3
%83 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.12, i64 0, i64 0), i32 %81, i32 %82)
br label %88
84: ; preds = %76
%85 = load i32, i32* %2
%86 = load i32, i32* %3
%87 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.13, i64 0, i64 0), i32 %85, i32 %86)
br label %88
88: ; preds = %84, %80
%89 = load i32, i32* %2
%90 = load i32, i32* %3
%91 = icmp sge i32 %89, %90
br i1 %91, label %92, label %96
92: ; preds = %88
%93 = load i32, i32* %2
%94 = load i32, i32* %3
%95 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0), i32 %93, i32 %94)
br label %100
96: ; preds = %88
%97 = load i32, i32* %2
%98 = load i32, i32* %3
%99 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.15, i64 0, i64 0), i32 %97, i32 %98)
br label %100
100: ; preds = %96, %92
%101 = load i32, i32* %2
%102 = load i32, i32* %3
%103 = icmp ne i32 %101, %102
br i1 %103, label %104, label %108
104: ; preds = %100
%105 = load i32, i32* %2
%106 = load i32, i32* %3
%107 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.16, i64 0, i64 0), i32 %105, i32 %106)
br label %112
108: ; preds = %100
%109 = load i32, i32* %2
%110 = load i32, i32* %3
%111 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.17, i64 0, i64 0), i32 %109, i32 %110)
br label %112
112: ; preds = %108, %104
%113 = load i32, i32* @EXIT_SUCCESS
ret i32 %113
}

LLVM IR (-O2):
@.str.1 = [33 x i8] c"%d AND %d is a false statement\0A\0A\00"
@.str.2 = [31 x i8] c"%d OR %d is a true statement\0A\0A\00"
@.str.5 = [30 x i8] c"NOT %d is a false statement\0A\0A\00"
@.str.7 = [36 x i8] c"%d EQUALS %d is a false statement\0A\0A\00"
@.str.9 = [42 x i8] c"%d is LESS THAN %d is a false statement\0A\0A\00"
@.str.10 = [44 x i8] c"%d is GREATER THAN %d is a true statement\0A\0A\00"
@.str.13 = [54 x i8] c"%d is LESS THAN OR EQUAL TO %d is a false statement\0A\0A\00"
@.str.14 = [56 x i8] c"%d is GREATER THAN OR EQUAL TO %d is a true statement\0A\0A\00"
@.str.16 = [43 x i8] c"%d DOES NOT EQUAL %d is a true statement\0A\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 20, i32 0)
%2 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 20, i32 0)
%3 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 20)
%4 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0), i32 20, i32 0)
%5 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.9, i64 0, i64 0), i32 20, i32 0)
%6 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0), i32 20, i32 0)
%7 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.13, i64 0, i64 0), i32 20, i32 0)
%8 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0), i32 20, i32 0)
%9 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.16, i64 0, i64 0), i32 20, i32 0)
%10 = load i32, i32* @EXIT_SUCCESS
ret i32 %10
}