#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__ Pboolean();
scalar_t__ Pinteger();
scalar_t__ PmiNoMax();
scalar_t__ Pnumber();
scalar_t__ Ppoint();
scalar_t__ Pstring();
PtypedValue() {
  int b = -1;
  ;
  b = Pboolean() || Pinteger() || PmiNoMax() || Pnumber() || Ppoint() ||
      Pstring();
  return (b);
}


x86 assembly (clang, -O0):
<PtypedValue>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0xffffffff,-0x4(%rbp)
mov    $0x0,%al
call   1070 <Pboolean@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    11fd <PtypedValue+0x9d>
mov    $0x0,%al
call   1050 <Pinteger@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    11fd <PtypedValue+0x9d>
mov    $0x0,%al
call   1060 <PmiNoMax@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    11fd <PtypedValue+0x9d>
mov    $0x0,%al
call   1040 <Pnumber@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    11fd <PtypedValue+0x9d>
mov    $0x0,%al
call   1030 <Ppoint@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    11fd <PtypedValue+0x9d>
mov    $0x0,%al
call   1080 <Pstring@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):
<PtypedValue>:
push   %rbx
xor    %eax,%eax
call   1070 <Pboolean@plt>
mov    $0x1,%ebx
test   %rax,%rax
jne    11b1 <PtypedValue+0x51>
xor    %eax,%eax
call   1050 <Pinteger@plt>
test   %rax,%rax
jne    11b1 <PtypedValue+0x51>
xor    %eax,%eax
call   1060 <PmiNoMax@plt>
test   %rax,%rax
jne    11b1 <PtypedValue+0x51>
xor    %eax,%eax
call   1040 <Pnumber@plt>
test   %rax,%rax
jne    11b1 <PtypedValue+0x51>
xor    %eax,%eax
call   1030 <Ppoint@plt>
test   %rax,%rax
jne    11b1 <PtypedValue+0x51>
xor    %eax,%eax
call   1080 <Pstring@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @PtypedValue() {
%1 = alloca i32
store i32 -1, i32* %1
%2 = call i64 (...) @Pboolean()
%3 = icmp ne i64 %2, 0
br i1 %3, label %19, label %4
4: ; preds = %0
%5 = call i64 (...) @Pinteger()
%6 = icmp ne i64 %5, 0
br i1 %6, label %19, label %7
7: ; preds = %4
%8 = call i64 (...) @PmiNoMax()
%9 = icmp ne i64 %8, 0
br i1 %9, label %19, label %10
10: ; preds = %7
%11 = call i64 (...) @Pnumber()
%12 = icmp ne i64 %11, 0
br i1 %12, label %19, label %13
13: ; preds = %10
%14 = call i64 (...) @Ppoint()
%15 = icmp ne i64 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %13
%17 = call i64 (...) @Pstring()
%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 @PtypedValue() {
%1 = tail call i64 (...) @Pboolean()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %19
3: ; preds = %0
%4 = tail call i64 (...) @Pinteger()
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %19
6: ; preds = %3
%7 = tail call i64 (...) @PmiNoMax()
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %19
9: ; preds = %6
%10 = tail call i64 (...) @Pnumber()
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %19
12: ; preds = %9
%13 = tail call i64 (...) @Ppoint()
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %12
%16 = tail call i64 (...) @Pstring()
%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
}