#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 */
scalar_t__ PatLeast();
scalar_t__ PatMost();
scalar_t__ Pbetween();
scalar_t__ Pexactly();
scalar_t__ PgreaterThan();
scalar_t__ PlessThan();
Prange() {
  int b = -1;
  ;
  b = PatLeast() || PatMost() || Pbetween() || Pexactly() || PgreaterThan() ||
      PlessThan();
  return (b);
}


x86 assembly (clang, -O0):
<Prange>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0xffffffff,-0x4(%rbp)
mov    $0x0,%al
call   1030 <PatLeast@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    11fd <Prange+0x9d>
mov    $0x0,%al
call   1050 <PatMost@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    11fd <Prange+0x9d>
mov    $0x0,%al
call   1080 <Pbetween@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    11fd <Prange+0x9d>
mov    $0x0,%al
call   1060 <Pexactly@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    11fd <Prange+0x9d>
mov    $0x0,%al
call   1070 <PgreaterThan@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    11fd <Prange+0x9d>
mov    $0x0,%al
call   1040 <PlessThan@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Prange>:
push   %rbx
xor    %eax,%eax
call   1030 <PatLeast@plt>
mov    $0x1,%ebx
test   %rax,%rax
jne    11b1 <Prange+0x51>
xor    %eax,%eax
call   1050 <PatMost@plt>
test   %rax,%rax
jne    11b1 <Prange+0x51>
xor    %eax,%eax
call   1080 <Pbetween@plt>
test   %rax,%rax
jne    11b1 <Prange+0x51>
xor    %eax,%eax
call   1060 <Pexactly@plt>
test   %rax,%rax
jne    11b1 <Prange+0x51>
xor    %eax,%eax
call   1070 <PgreaterThan@plt>
test   %rax,%rax
jne    11b1 <Prange+0x51>
xor    %eax,%eax
call   1040 <PlessThan@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @Prange() {
%1 = alloca i32
store i32 -1, i32* %1
%2 = call i64 (...) @PatLeast()
%3 = icmp ne i64 %2, 0
br i1 %3, label %19, label %4
4: ; preds = %0
%5 = call i64 (...) @PatMost()
%6 = icmp ne i64 %5, 0
br i1 %6, label %19, label %7
7: ; preds = %4
%8 = call i64 (...) @Pbetween()
%9 = icmp ne i64 %8, 0
br i1 %9, label %19, label %10
10: ; preds = %7
%11 = call i64 (...) @Pexactly()
%12 = icmp ne i64 %11, 0
br i1 %12, label %19, label %13
13: ; preds = %10
%14 = call i64 (...) @PgreaterThan()
%15 = icmp ne i64 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %13
%17 = call i64 (...) @PlessThan()
%18 = icmp ne i64 %17, 0
br label %19
19: ; preds = %16, %13, %10, %7, %4, %0
%20 = phi i1 [ true, %13 ], [ true, %10 ], [ true, %7 ], [ true, %4 ], [ true, %0 ], [ %18, %16 ]
%21 = zext i1 %20 to i32
store i32 %21, i32* %1
%22 = load i32, i32* %1
ret i32 %22
}

LLVM IR (-O2):
define i32 @Prange() {
%1 = tail call i64 (...) @PatLeast()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %19
3: ; preds = %0
%4 = tail call i64 (...) @PatMost()
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %19
6: ; preds = %3
%7 = tail call i64 (...) @Pbetween()
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %19
9: ; preds = %6
%10 = tail call i64 (...) @Pexactly()
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %19
12: ; preds = %9
%13 = tail call i64 (...) @PgreaterThan()
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %12
%16 = tail call i64 (...) @PlessThan()
%17 = icmp ne i64 %16, 0
%18 = zext i1 %17 to i32
br label %19
19: ; preds = %15, %12, %9, %6, %3, %0
%20 = phi i32 [ 1, %12 ], [ 1, %9 ], [ 1, %6 ], [ 1, %3 ], [ 1, %0 ], [ %18, %15 ]
ret i32 %20
}