#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*/ abort();
int main() {
  unsigned int u;
  int i = -1;
  u = (((unsigned int)((i) > (0) ? (i) : (0))) > (1)
           ? ((unsigned int)((i) > (0) ? (i) : (0)))
           : (1));
  if (u != 1)
    abort();
  u = (((unsigned int)((i) > (0) ? (i) : (0))) < ((unsigned int)i)
           ? ((unsigned int)((i) > (0) ? (i) : (0)))
           : ((unsigned int)i));
  if (u != 0)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffff,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jle    113b <main+0x2b>
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1145 <main+0x35>
xor    %eax,%eax
mov    %eax,-0x10(%rbp)
jmp    1145 <main+0x35>
mov    -0x10(%rbp),%eax
cmp    $0x1,%eax
jbe    117b <main+0x6b>
cmpl   $0x0,-0xc(%rbp)
jle    1166 <main+0x56>
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    1170 <main+0x60>
xor    %eax,%eax
mov    %eax,-0x14(%rbp)
jmp    1170 <main+0x60>
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    1188 <main+0x78>
mov    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1188 <main+0x78>
mov    -0x18(%rbp),%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
je     119f <main+0x8f>
mov    $0x0,%al
call   1030 <abort@plt>
cmpl   $0x0,-0xc(%rbp)
jle    11b4 <main+0xa4>
mov    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    11be <main+0xae>
xor    %eax,%eax
mov    %eax,-0x1c(%rbp)
jmp    11be <main+0xae>
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jae    11f4 <main+0xe4>
cmpl   $0x0,-0xc(%rbp)
jle    11df <main+0xcf>
mov    -0xc(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    11e9 <main+0xd9>
xor    %eax,%eax
mov    %eax,-0x20(%rbp)
jmp    11e9 <main+0xd9>
mov    -0x20(%rbp),%eax
mov    %eax,-0x24(%rbp)
jmp    11fa <main+0xea>
mov    -0xc(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1211 <main+0x101>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 -1, i32* %3
%4 = load i32, i32* %3
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = load i32, i32* %3
br label %9
8: ; preds = %0
br label %9
9: ; preds = %8, %6
%10 = phi i32 [ %7, %6 ], [ 0, %8 ]
%11 = icmp ugt i32 %10, 1
br i1 %11, label %12, label %20
12: ; preds = %9
%13 = load i32, i32* %3
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = load i32, i32* %3
br label %18
17: ; preds = %12
br label %18
18: ; preds = %17, %15
%19 = phi i32 [ %16, %15 ], [ 0, %17 ]
br label %21
20: ; preds = %9
br label %21
21: ; preds = %20, %18
%22 = phi i32 [ %19, %18 ], [ 1, %20 ]
store i32 %22, i32* %2
%23 = load i32, i32* %2
%24 = icmp ne i32 %23, 1
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 (...) @abort()
unreachable
27: ; preds = %21
%28 = load i32, i32* %3
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = load i32, i32* %3
br label %33
32: ; preds = %27
br label %33
33: ; preds = %32, %30
%34 = phi i32 [ %31, %30 ], [ 0, %32 ]
%35 = load i32, i32* %3
%36 = icmp ult i32 %34, %35
br i1 %36, label %37, label %45
37: ; preds = %33
%38 = load i32, i32* %3
%39 = icmp sgt i32 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = load i32, i32* %3
br label %43
42: ; preds = %37
br label %43
43: ; preds = %42, %40
%44 = phi i32 [ %41, %40 ], [ 0, %42 ]
br label %47
45: ; preds = %33
%46 = load i32, i32* %3
br label %47
47: ; preds = %45, %43
%48 = phi i32 [ %44, %43 ], [ %46, %45 ]
store i32 %48, i32* %2
%49 = load i32, i32* %2
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %47
%52 = call i32 (...) @abort()
unreachable
53: ; preds = %47
ret i32 0
}

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