#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__ board_is_bben();
scalar_t__ board_is_bbg1();
scalar_t__ board_is_bone();
scalar_t__ board_is_bone_lt();
scalar_t__ board_is_pb();
int board_is_beaglebonex(void) {
  return board_is_pb() || board_is_bone() || board_is_bone_lt() ||
         board_is_bbg1() || board_is_bben();
}


x86 assembly (clang, -O0):
<board_is_beaglebonex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <board_is_pb@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    11cd <board_is_beaglebonex+0x7d>
mov    $0x0,%al
call   1030 <board_is_bone@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    11cd <board_is_beaglebonex+0x7d>
mov    $0x0,%al
call   1070 <board_is_bone_lt@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    11cd <board_is_beaglebonex+0x7d>
mov    $0x0,%al
call   1060 <board_is_bbg1@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    11cd <board_is_beaglebonex+0x7d>
mov    $0x0,%al
call   1050 <board_is_bben@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x1(%rbp)
mov    -0x1(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<board_is_beaglebonex>:
push   %rbx
xor    %eax,%eax
call   1040 <board_is_pb@plt>
mov    $0x1,%ebx
test   %rax,%rax
jne    1195 <board_is_beaglebonex+0x45>
xor    %eax,%eax
call   1030 <board_is_bone@plt>
test   %rax,%rax
jne    1195 <board_is_beaglebonex+0x45>
xor    %eax,%eax
call   1070 <board_is_bone_lt@plt>
test   %rax,%rax
jne    1195 <board_is_beaglebonex+0x45>
xor    %eax,%eax
call   1060 <board_is_bbg1@plt>
test   %rax,%rax
jne    1195 <board_is_beaglebonex+0x45>
xor    %eax,%eax
call   1050 <board_is_bben@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @board_is_beaglebonex() {
%1 = call i64 (...) @board_is_pb()
%2 = icmp ne i64 %1, 0
br i1 %2, label %15, label %3
3: ; preds = %0
%4 = call i64 (...) @board_is_bone()
%5 = icmp ne i64 %4, 0
br i1 %5, label %15, label %6
6: ; preds = %3
%7 = call i64 (...) @board_is_bone_lt()
%8 = icmp ne i64 %7, 0
br i1 %8, label %15, label %9
9: ; preds = %6
%10 = call i64 (...) @board_is_bbg1()
%11 = icmp ne i64 %10, 0
br i1 %11, label %15, label %12
12: ; preds = %9
%13 = call i64 (...) @board_is_bben()
%14 = icmp ne i64 %13, 0
br label %15
15: ; preds = %12, %9, %6, %3, %0
%16 = phi i1 [ true, %9 ], [ true, %6 ], [ true, %3 ], [ true, %0 ], [ %14, %12 ]
%17 = zext i1 %16 to i32
ret i32 %17
}

LLVM IR (-O2):
define i32 @board_is_beaglebonex() {
%1 = tail call i64 (...) @board_is_pb()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %16
3: ; preds = %0
%4 = tail call i64 (...) @board_is_bone()
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %16
6: ; preds = %3
%7 = tail call i64 (...) @board_is_bone_lt()
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %16
9: ; preds = %6
%10 = tail call i64 (...) @board_is_bbg1()
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %9
%13 = tail call i64 (...) @board_is_bben()
%14 = icmp ne i64 %13, 0
%15 = zext i1 %14 to i32
br label %16
16: ; preds = %12, %9, %6, %3, %0
%17 = phi i32 [ 1, %9 ], [ 1, %6 ], [ 1, %3 ], [ 1, %0 ], [ %15, %12 ]
ret i32 %17
}