#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 /*<<< orphan*/ foo(int, int *);
void main() {
  int x, y, z, a, b;
  if (x < y && y < z) {
    assert(x < y);
    assert(y < z);
    assert(x < z);
    if (3 <= x && z <= 5) {
      a = y;
      assert(x == 3);
      assert(y == 4);
      assert(z == 5);
      assert(a == 4);
      b = 4;
      foo(a, &b);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11f3 <main+0xd3>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11f3 <main+0xd3>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    $0x3,%eax
cmp    -0x4(%rbp),%eax
jg     11ee <main+0xce>
cmpl   $0x5,-0xc(%rbp)
jg     11ee <main+0xce>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x3,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x4,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x5,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x4,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x4,-0x14(%rbp)
mov    -0x10(%rbp),%edi
lea    -0x14(%rbp),%rsi
call   1040 <foo@plt>
jmp    11f3 <main+0xd3>
add    $0x20,%rsp
pop    %rbp
ret

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

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

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