#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 main() {
  int a = 0, b = 1, g = 5, i = 4, j = 7, x = 9, y = 6, Y = 0;
  if ((!(x < 5) && !(y >= 7)) == !((x < 5) || (y >= 7)))
    printf("First expression passes\n");
  if ((!(a == b) || !(g != 5)) == !((a == b) && (g != 5)))
    printf("Second expression passes\n");
  if (!((x <= 8) && (Y > 4)) == (!(x <= 8) || !(Y > 4)))
    printf("Third expression passes\n");
  if (!((i > 4) || (j <= 6)) == (!(i > 4) && !(j <= 6)))
    printf("Fourth expression passes\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
movl   $0x5,-0x10(%rbp)
movl   $0x4,-0x14(%rbp)
movl   $0x7,-0x18(%rbp)
movl   $0x9,-0x1c(%rbp)
movl   $0x6,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
xor    %eax,%eax
cmpl   $0x5,-0x1c(%rbp)
mov    %al,-0x25(%rbp)
jl     1172 <main+0x62>
cmpl   $0x7,-0x20(%rbp)
setge  %al
xor    $0xff,%al
mov    %al,-0x25(%rbp)
mov    -0x25(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x2c(%rbp)
mov    $0x1,%al
cmpl   $0x5,-0x1c(%rbp)
mov    %al,-0x26(%rbp)
jl     1196 <main+0x86>
cmpl   $0x7,-0x20(%rbp)
setge  %al
mov    %al,-0x26(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x26(%rbp),%cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
cmp    %ecx,%eax
jne    11b9 <main+0xa9>
lea    0xe4c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%ecx
mov    $0x1,%al
cmp    -0xc(%rbp),%ecx
mov    %al,-0x2d(%rbp)
jne    11d6 <main+0xc6>
cmpl   $0x5,-0x10(%rbp)
setne  %al
xor    $0xff,%al
mov    %al,-0x2d(%rbp)
mov    -0x2d(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x34(%rbp)
mov    -0x8(%rbp),%ecx
xor    %eax,%eax
cmp    -0xc(%rbp),%ecx
mov    %al,-0x2e(%rbp)
jne    11fc <main+0xec>
cmpl   $0x5,-0x10(%rbp)
setne  %al
mov    %al,-0x2e(%rbp)
mov    -0x34(%rbp),%eax
mov    -0x2e(%rbp),%cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
cmp    %ecx,%eax
jne    121f <main+0x10f>
lea    0xdff(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
cmpl   $0x8,-0x1c(%rbp)
mov    %al,-0x35(%rbp)
jg     1238 <main+0x128>
cmpl   $0x4,-0x24(%rbp)
setg   %al
mov    %al,-0x35(%rbp)
mov    -0x35(%rbp),%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x3c(%rbp)
mov    $0x1,%al
cmpl   $0x8,-0x1c(%rbp)
mov    %al,-0x36(%rbp)
jg     1260 <main+0x150>
cmpl   $0x4,-0x24(%rbp)
setg   %al
xor    $0xff,%al
mov    %al,-0x36(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x36(%rbp),%cl
and    $0x1,%cl
movzbl %cl,%ecx
cmp    %ecx,%eax
jne    1280 <main+0x170>
lea    0xdb8(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%al
cmpl   $0x4,-0x14(%rbp)
mov    %al,-0x3d(%rbp)
jg     1299 <main+0x189>
cmpl   $0x6,-0x18(%rbp)
setle  %al
mov    %al,-0x3d(%rbp)
mov    -0x3d(%rbp),%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x44(%rbp)
xor    %eax,%eax
cmpl   $0x4,-0x14(%rbp)
mov    %al,-0x3e(%rbp)
jg     12c1 <main+0x1b1>
cmpl   $0x6,-0x18(%rbp)
setle  %al
xor    $0xff,%al
mov    %al,-0x3e(%rbp)
mov    -0x44(%rbp),%eax
mov    -0x3e(%rbp),%cl
and    $0x1,%cl
movzbl %cl,%ecx
cmp    %ecx,%eax
jne    12e1 <main+0x1d1>
lea    0xd70(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef4(%rip),%rdi
call   1030 <puts@plt>
lea    0xf01(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0d(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [25 x i8] c"First expression passes\0A\00"
@.str.1 = [26 x i8] c"Second expression passes\0A\00"
@.str.2 = [25 x i8] c"Third expression passes\0A\00"
@.str.3 = [26 x i8] c"Fourth expression passes\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 1, i32* %3
store i32 5, i32* %4
store i32 4, i32* %5
store i32 7, i32* %6
store i32 9, i32* %7
store i32 6, i32* %8
store i32 0, i32* %9
%10 = load i32, i32* %7
%11 = icmp slt i32 %10, 5
br i1 %11, label %16, label %12
12: ; preds = %0
%13 = load i32, i32* %8
%14 = icmp sge i32 %13, 7
%15 = xor i1 %14, true
br label %16
16: ; preds = %12, %0
%17 = phi i1 [ false, %0 ], [ %15, %12 ]
%18 = zext i1 %17 to i32
%19 = load i32, i32* %7
%20 = icmp slt i32 %19, 5
br i1 %20, label %24, label %21
21: ; preds = %16
%22 = load i32, i32* %8
%23 = icmp sge i32 %22, 7
br label %24
24: ; preds = %21, %16
%25 = phi i1 [ true, %16 ], [ %23, %21 ]
%26 = xor i1 %25, true
%27 = zext i1 %26 to i32
%28 = icmp eq i32 %18, %27
br i1 %28, label %29, label %31
29: ; preds = %24
%30 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
br label %31
31: ; preds = %29, %24
%32 = load i32, i32* %2
%33 = load i32, i32* %3
%34 = icmp eq i32 %32, %33
br i1 %34, label %35, label %39
35: ; preds = %31
%36 = load i32, i32* %4
%37 = icmp ne i32 %36, 5
%38 = xor i1 %37, true
br label %39
39: ; preds = %35, %31
%40 = phi i1 [ true, %31 ], [ %38, %35 ]
%41 = zext i1 %40 to i32
%42 = load i32, i32* %2
%43 = load i32, i32* %3
%44 = icmp eq i32 %42, %43
br i1 %44, label %45, label %48
45: ; preds = %39
%46 = load i32, i32* %4
%47 = icmp ne i32 %46, 5
br label %48
48: ; preds = %45, %39
%49 = phi i1 [ false, %39 ], [ %47, %45 ]
%50 = xor i1 %49, true
%51 = zext i1 %50 to i32
%52 = icmp eq i32 %41, %51
br i1 %52, label %53, label %55
53: ; preds = %48
%54 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
br label %55
55: ; preds = %53, %48
%56 = load i32, i32* %7
%57 = icmp sle i32 %56, 8
br i1 %57, label %58, label %61
58: ; preds = %55
%59 = load i32, i32* %9
%60 = icmp sgt i32 %59, 4
br label %61
61: ; preds = %58, %55
%62 = phi i1 [ false, %55 ], [ %60, %58 ]
%63 = xor i1 %62, true
%64 = zext i1 %63 to i32
%65 = load i32, i32* %7
%66 = icmp sle i32 %65, 8
br i1 %66, label %67, label %71
67: ; preds = %61
%68 = load i32, i32* %9
%69 = icmp sgt i32 %68, 4
%70 = xor i1 %69, true
br label %71
71: ; preds = %67, %61
%72 = phi i1 [ true, %61 ], [ %70, %67 ]
%73 = zext i1 %72 to i32
%74 = icmp eq i32 %64, %73
br i1 %74, label %75, label %77
75: ; preds = %71
%76 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
br label %77
77: ; preds = %75, %71
%78 = load i32, i32* %5
%79 = icmp sgt i32 %78, 4
br i1 %79, label %83, label %80
80: ; preds = %77
%81 = load i32, i32* %6
%82 = icmp sle i32 %81, 6
br label %83
83: ; preds = %80, %77
%84 = phi i1 [ true, %77 ], [ %82, %80 ]
%85 = xor i1 %84, true
%86 = zext i1 %85 to i32
%87 = load i32, i32* %5
%88 = icmp sgt i32 %87, 4
br i1 %88, label %93, label %89
89: ; preds = %83
%90 = load i32, i32* %6
%91 = icmp sle i32 %90, 6
%92 = xor i1 %91, true
br label %93
93: ; preds = %89, %83
%94 = phi i1 [ false, %83 ], [ %92, %89 ]
%95 = zext i1 %94 to i32
%96 = icmp eq i32 %86, %95
br i1 %96, label %97, label %99
97: ; preds = %93
%98 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
br label %99
99: ; preds = %97, %93
ret i32 0
}

LLVM IR (-O2):
@str = [24 x i8] c"First expression passes\00"
@str.4 = [25 x i8] c"Second expression passes\00"
@str.5 = [24 x i8] c"Third expression passes\00"
@str.6 = [25 x i8] c"Fourth expression passes\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.4, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.5, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.6, i64 0, i64 0))
ret i32 0
}