#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*/ printf(char *);
int /*<<< orphan*/ test_bits();
int /*<<< orphan*/ test_clear();
int /*<<< orphan*/ test_init();
int /*<<< orphan*/ test_modify();
int /*<<< orphan*/ test_xor();
int main(int argc, char *argv[]) {
  printf("test_init...\n");
  test_init();
  printf("test_bits...\n");
  test_bits();
  printf("test_clear...\n");
  test_clear();
  printf("test_modify...\n");
  test_modify();
  printf("test_xor...\n");
  test_xor();
  printf("done.\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe83(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <test_init@plt>
lea    0xe7e(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <test_bits@plt>
lea    0xe79(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <test_clear@plt>
lea    0xe75(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1070 <test_modify@plt>
lea    0xe72(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <test_xor@plt>
lea    0xe6c(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xe98(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1040 <test_init@plt>
lea    0xe92(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1060 <test_bits@plt>
lea    0xe8c(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1080 <test_clear@plt>
lea    0xe87(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1070 <test_modify@plt>
lea    0xe83(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1030 <test_xor@plt>
lea    0xe7c(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"test_init...\0A\00"
@.str.1 = [14 x i8] c"test_bits...\0A\00"
@.str.2 = [15 x i8] c"test_clear...\0A\00"
@.str.3 = [16 x i8] c"test_modify...\0A\00"
@.str.4 = [13 x i8] c"test_xor...\0A\00"
@.str.5 = [7 x i8] c"done.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (...) @test_init()
%8 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (...) @test_bits()
%10 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (...) @test_clear()
%12 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 (...) @test_modify()
%14 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 (...) @test_xor()
%16 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [13 x i8] c"test_init...\00"
@str.6 = [13 x i8] c"test_bits...\00"
@str.7 = [14 x i8] c"test_clear...\00"
@str.8 = [15 x i8] c"test_modify...\00"
@str.9 = [12 x i8] c"test_xor...\00"
@str.10 = [6 x i8] c"done.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 (...) @test_init()
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.6, i64 0, i64 0))
%6 = tail call i32 (...) @test_bits()
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.7, i64 0, i64 0))
%8 = tail call i32 (...) @test_clear()
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.8, i64 0, i64 0))
%10 = tail call i32 (...) @test_modify()
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.9, i64 0, i64 0))
%12 = tail call i32 (...) @test_xor()
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.10, i64 0, i64 0))
ret i32 0
}