#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 prv_bitset_basic();
int prv_bitset_clear();
int prv_bitset_count();
int prv_bitset_empty();
int prv_bitset_not();
int prv_bitset_reuse();
int prv_bitset_same_size();
int prv_bitset_sub();
int prv_bitset_values();
int bitset_test(void) {
  int retval;
  retval = prv_bitset_basic();
  retval |= prv_bitset_clear();
  retval |= prv_bitset_reuse();
  retval |= prv_bitset_empty();
  retval |= prv_bitset_same_size();
  retval |= prv_bitset_count();
  retval |= prv_bitset_values();
  retval |= prv_bitset_not();
  retval |= prv_bitset_sub();
  return retval;
}


x86 assembly (clang, -O0):
<bitset_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1080 <prv_bitset_basic@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <prv_bitset_clear@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10b0 <prv_bitset_reuse@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10a0 <prv_bitset_empty@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1070 <prv_bitset_same_size@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1050 <prv_bitset_count@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1090 <prv_bitset_values@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1040 <prv_bitset_not@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1060 <prv_bitset_sub@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bitset_test>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1080 <prv_bitset_basic@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <prv_bitset_clear@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   10b0 <prv_bitset_reuse@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   10a0 <prv_bitset_empty@plt>
mov    %eax,%ebx
or     %r14d,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1070 <prv_bitset_same_size@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1050 <prv_bitset_count@plt>
mov    %eax,%r15d
or     %r14d,%r15d
xor    %eax,%eax
call   1090 <prv_bitset_values@plt>
mov    %eax,%ebp
or     %r15d,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   1040 <prv_bitset_not@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1060 <prv_bitset_sub@plt>
or     %ebx,%eax
or     %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @bitset_test() {
%1 = alloca i32
%2 = call i32 (...) @prv_bitset_basic()
store i32 %2, i32* %1
%3 = call i32 (...) @prv_bitset_clear()
%4 = load i32, i32* %1
%5 = or i32 %4, %3
store i32 %5, i32* %1
%6 = call i32 (...) @prv_bitset_reuse()
%7 = load i32, i32* %1
%8 = or i32 %7, %6
store i32 %8, i32* %1
%9 = call i32 (...) @prv_bitset_empty()
%10 = load i32, i32* %1
%11 = or i32 %10, %9
store i32 %11, i32* %1
%12 = call i32 (...) @prv_bitset_same_size()
%13 = load i32, i32* %1
%14 = or i32 %13, %12
store i32 %14, i32* %1
%15 = call i32 (...) @prv_bitset_count()
%16 = load i32, i32* %1
%17 = or i32 %16, %15
store i32 %17, i32* %1
%18 = call i32 (...) @prv_bitset_values()
%19 = load i32, i32* %1
%20 = or i32 %19, %18
store i32 %20, i32* %1
%21 = call i32 (...) @prv_bitset_not()
%22 = load i32, i32* %1
%23 = or i32 %22, %21
store i32 %23, i32* %1
%24 = call i32 (...) @prv_bitset_sub()
%25 = load i32, i32* %1
%26 = or i32 %25, %24
store i32 %26, i32* %1
%27 = load i32, i32* %1
ret i32 %27
}

LLVM IR (-O2):
define i32 @bitset_test() {
%1 = tail call i32 (...) @prv_bitset_basic()
%2 = tail call i32 (...) @prv_bitset_clear()
%3 = or i32 %2, %1
%4 = tail call i32 (...) @prv_bitset_reuse()
%5 = or i32 %3, %4
%6 = tail call i32 (...) @prv_bitset_empty()
%7 = or i32 %5, %6
%8 = tail call i32 (...) @prv_bitset_same_size()
%9 = or i32 %7, %8
%10 = tail call i32 (...) @prv_bitset_count()
%11 = or i32 %9, %10
%12 = tail call i32 (...) @prv_bitset_values()
%13 = or i32 %11, %12
%14 = tail call i32 (...) @prv_bitset_not()
%15 = or i32 %13, %14
%16 = tail call i32 (...) @prv_bitset_sub()
%17 = or i32 %15, %16
ret i32 %17
}