#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 main(void) {
  int a = -1;
  int b = 2;
  int c = a == b == 2;
  int d = c<2> c >= 1;
  int e = d && c || 1;
  int f = (1, 2);
  int g[2];
  c = !c + +a != -7;
  (g)[b - 1] = 1;
  printf("%lu\n", sizeof(+(char)a));
  return - -c + d + e + f;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffff,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x2,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x2,-0x10(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%eax
cmp    -0x10(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x1,%eax
setge  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1187 <main+0x77>
mov    $0x1,%al
cmpl   $0x0,-0x10(%rbp)
mov    %al,-0x25(%rbp)
jne    1191 <main+0x81>
mov    $0x1,%al
mov    %al,-0x25(%rbp)
jmp    1191 <main+0x81>
mov    -0x25(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x18(%rbp)
movl   $0x2,-0x1c(%rbp)
cmpl   $0x0,-0x10(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
add    -0x8(%rbp),%eax
cmp    $0xfffffff9,%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
cltq
movl   $0x1,-0x24(%rbp,%rax,4)
lea    0xe27(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
xor    %ecx,%ecx
sub    -0x10(%rbp),%ecx
xor    %eax,%eax
sub    %ecx,%eax
add    -0x14(%rbp),%eax
add    -0x18(%rbp),%eax
add    -0x1c(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    $0x5,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%lu\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 [2 x i32]
store i32 0, i32* %1
store i32 -1, i32* %2
store i32 2, i32* %3
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = icmp eq i32 %9, %10
%12 = zext i1 %11 to i32
%13 = icmp eq i32 %12, 2
%14 = zext i1 %13 to i32
store i32 %14, i32* %4
%15 = load i32, i32* %4
%16 = icmp slt i32 %15, 2
%17 = zext i1 %16 to i32
%18 = load i32, i32* %4
%19 = icmp sgt i32 %17, %18
%20 = zext i1 %19 to i32
%21 = icmp sge i32 %20, 1
%22 = zext i1 %21 to i32
store i32 %22, i32* %5
%23 = load i32, i32* %5
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %0
%26 = load i32, i32* %4
%27 = icmp ne i32 %26, 0
br i1 %27, label %29, label %28
28: ; preds = %25, %0
br label %29
29: ; preds = %28, %25
%30 = phi i1 [ true, %25 ], [ true, %28 ]
%31 = zext i1 %30 to i32
store i32 %31, i32* %6
store i32 2, i32* %7
%32 = load i32, i32* %4
%33 = icmp ne i32 %32, 0
%34 = xor i1 %33, true
%35 = zext i1 %34 to i32
%36 = load i32, i32* %2
%37 = add nsw i32 %35, %36
%38 = icmp ne i32 %37, -7
%39 = zext i1 %38 to i32
store i32 %39, i32* %4
%40 = load i32, i32* %3
%41 = sub nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 %42
store i32 1, i32* %43
%44 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
%45 = load i32, i32* %4
%46 = sub nsw i32 0, %45
%47 = sub nsw i32 0, %46
%48 = load i32, i32* %5
%49 = add nsw i32 %47, %48
%50 = load i32, i32* %6
%51 = add nsw i32 %49, %50
%52 = load i32, i32* %7
%53 = add nsw i32 %51, %52
ret i32 %53
}

LLVM IR (-O2):
@.str = [5 x i8] c"%lu\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
ret i32 5
}