#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*/ assert(int);
int main() {
  int x;
  int y;
  int z;
  if (!(y > 0 || x > 0 || z > 0))
    return 0;
  while (1) {
    if (x > 0)
      x++;
    else if (y > 0)
      y++;
    else
      z++;
    assert(x > 0 || y > 0 || z > 0);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x0,-0xc(%rbp)
jg     1145 <main+0x35>
cmpl   $0x0,-0x8(%rbp)
jg     1145 <main+0x35>
cmpl   $0x0,-0x10(%rbp)
jg     1145 <main+0x35>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret
jmp    114a <main+0x3a>
cmpl   $0x0,-0x8(%rbp)
jle    1162 <main+0x52>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1188 <main+0x78>
cmpl   $0x0,-0xc(%rbp)
jle    117a <main+0x6a>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1183 <main+0x73>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1188 <main+0x78>
mov    $0x1,%al
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x11(%rbp)
jg     11b0 <main+0xa0>
mov    $0x1,%al
cmpl   $0x0,-0xc(%rbp)
mov    %al,-0x11(%rbp)
jg     11b0 <main+0xa0>
cmpl   $0x0,-0x10(%rbp)
setg   %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
jmp    114a <main+0x3a>

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = load i32, i32* %3
%6 = icmp sgt i32 %5, 0
br i1 %6, label %14, label %7
7: ; preds = %0
%8 = load i32, i32* %2
%9 = icmp sgt i32 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %7
%11 = load i32, i32* %4
%12 = icmp sgt i32 %11, 0
br i1 %12, label %14, label %13
13: ; preds = %10
ret i32 0
14: ; preds = %10, %7, %0
br label %15
15: ; preds = %14, %40
%16 = load i32, i32* %2
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = load i32, i32* %2
%20 = add nsw i32 %19, 1
store i32 %20, i32* %2
br label %31
21: ; preds = %15
%22 = load i32, i32* %3
%23 = icmp sgt i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i32, i32* %3
%26 = add nsw i32 %25, 1
store i32 %26, i32* %3
br label %30
27: ; preds = %21
%28 = load i32, i32* %4
%29 = add nsw i32 %28, 1
store i32 %29, i32* %4
br label %30
30: ; preds = %27, %24
br label %31
31: ; preds = %30, %18
%32 = load i32, i32* %2
%33 = icmp sgt i32 %32, 0
br i1 %33, label %40, label %34
34: ; preds = %31
%35 = load i32, i32* %3
%36 = icmp sgt i32 %35, 0
br i1 %36, label %40, label %37
37: ; preds = %34
%38 = load i32, i32* %4
%39 = icmp sgt i32 %38, 0
br label %40
40: ; preds = %37, %34, %31
%41 = phi i1 [ true, %34 ], [ true, %31 ], [ %39, %37 ]
%42 = zext i1 %41 to i32
%43 = call i32 @assert(i32 %42)
br label %15
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}