#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 random();
int main() {
  int a = random();
  int b = 6;
  int c = 6;
  int d = 8;
  if (a == 6) {
    a = 7;
  } else {
    c = 4;
  }
  if (c == 5) {
  }
  if (a == 99) {
    return 33;
  }
  if (!(a == 6 && b == 6 && c == 6 && d == 6)) {
    a = 33;
  } else {
  ERROR:
    goto ERROR;
  }
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <random@plt>
mov    %eax,-0x8(%rbp)
movl   $0x6,-0xc(%rbp)
movl   $0x6,-0x10(%rbp)
movl   $0x8,-0x14(%rbp)
cmpl   $0x6,-0x8(%rbp)
jne    1154 <main+0x44>
movl   $0x7,-0x8(%rbp)
jmp    115b <main+0x4b>
movl   $0x4,-0x10(%rbp)
cmpl   $0x5,-0x10(%rbp)
jne    116a <main+0x5a>
jmp    116a <main+0x5a>
cmpl   $0x63,-0x8(%rbp)
jne    1180 <main+0x70>
movl   $0x21,-0x4(%rbp)
jmp    11c5 <main+0xb5>
cmpl   $0x6,-0x8(%rbp)
jne    11a8 <main+0x98>
cmpl   $0x6,-0xc(%rbp)
jne    11a8 <main+0x98>
cmpl   $0x6,-0x10(%rbp)
jne    11a8 <main+0x98>
cmpl   $0x6,-0x14(%rbp)
je     11b4 <main+0xa4>
movl   $0x21,-0x8(%rbp)
jmp    11be <main+0xae>
jmp    11b9 <main+0xa9>
jmp    11b9 <main+0xa9>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <random@plt>
xor    %ecx,%ecx
cmp    $0x63,%eax
sete   %cl
shl    $0x5,%ecx
or     $0x1,%ecx
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = call i32 (...) @random()
store i32 %6, i32* %2
store i32 6, i32* %3
store i32 6, i32* %4
store i32 8, i32* %5
%7 = load i32, i32* %2
%8 = icmp eq i32 %7, 6
br i1 %8, label %9, label %10
9: ; preds = %0
store i32 7, i32* %2
br label %11
10: ; preds = %0
store i32 4, i32* %4
br label %11
11: ; preds = %10, %9
%12 = load i32, i32* %4
%13 = icmp eq i32 %12, 5
br i1 %13, label %14, label %15
14: ; preds = %11
br label %15
15: ; preds = %14, %11
%16 = load i32, i32* %2
%17 = icmp eq i32 %16, 99
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 33, i32* %1
br label %35
19: ; preds = %15
%20 = load i32, i32* %2
%21 = icmp eq i32 %20, 6
br i1 %21, label %22, label %31
22: ; preds = %19
%23 = load i32, i32* %3
%24 = icmp eq i32 %23, 6
br i1 %24, label %25, label %31
25: ; preds = %22
%26 = load i32, i32* %4
%27 = icmp eq i32 %26, 6
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = load i32, i32* %5
%30 = icmp eq i32 %29, 6
br i1 %30, label %32, label %31
31: ; preds = %28, %25, %22, %19
store i32 33, i32* %2
br label %34
32: ; preds = %28
br label %33
33: ; preds = %33, %32
br label %33
34: ; preds = %31
store i32 1, i32* %1
br label %35
35: ; preds = %34, %18
%36 = load i32, i32* %1
ret i32 %36
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @random()
%2 = icmp eq i32 %1, 99
%3 = select i1 %2, i32 33, i32 1
ret i32 %3
}