#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*/ PICC_test_atomic();
int /*<<< orphan*/ PICC_test_channel();
int /*<<< orphan*/ PICC_test_commit();
int /*<<< orphan*/ PICC_test_knownset();
int /*<<< orphan*/ PICC_test_pithread();
int /*<<< orphan*/ PICC_test_queue();
int /*<<< orphan*/ PICC_test_value();
int /*<<< orphan*/ printf(char *);
int main(int argc, char **argv) {
  printf("== Run unit tests suite ==\n\n");
  printf("Run pi_thread tests...\n");
  PICC_test_pithread();
  printf("Run queue tests...\n");
  PICC_test_queue();
  printf("Run channel tests...\n");
  PICC_test_channel();
  printf("Run commit tests...\n");
  PICC_test_commit();
  printf("Run atomic tests...\n");
  PICC_test_atomic();
  printf("Run value tests...\n");
  PICC_test_value();
  printf("Run known set tests...\n");
  PICC_test_knownset();
  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    0xe63(%rip),%rdi
call   1070 <printf@plt>
lea    0xe74(%rip),%rdi
call   1070 <printf@plt>
mov    $0x0,%al
call   1030 <PICC_test_pithread@plt>
lea    0xe79(%rip),%rdi
call   1070 <printf@plt>
mov    $0x0,%al
call   1080 <PICC_test_queue@plt>
lea    0xe7a(%rip),%rdi
call   1070 <printf@plt>
mov    $0x0,%al
call   1090 <PICC_test_channel@plt>
lea    0xe7d(%rip),%rdi
call   1070 <printf@plt>
mov    $0x0,%al
call   1050 <PICC_test_commit@plt>
lea    0xe7f(%rip),%rdi
call   1070 <printf@plt>
mov    $0x0,%al
call   10a0 <PICC_test_atomic@plt>
lea    0xe81(%rip),%rdi
call   1070 <printf@plt>
mov    $0x0,%al
call   1040 <PICC_test_value@plt>
lea    0xe82(%rip),%rdi
call   1070 <printf@plt>
mov    $0x0,%al
call   1060 <PICC_test_knownset@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xe78(%rip),%rdi
call   1050 <puts@plt>
lea    0xe88(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1030 <PICC_test_pithread@plt>
lea    0xe8c(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1080 <PICC_test_queue@plt>
lea    0xe8c(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1090 <PICC_test_channel@plt>
lea    0xe8e(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1060 <PICC_test_commit@plt>
lea    0xe8f(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   10a0 <PICC_test_atomic@plt>
lea    0xe90(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1040 <PICC_test_value@plt>
lea    0xe90(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1070 <PICC_test_knownset@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [29 x i8] c"== Run unit tests suite ==\0A\0A\00"
@.str.1 = [24 x i8] c"Run pi_thread tests...\0A\00"
@.str.2 = [20 x i8] c"Run queue tests...\0A\00"
@.str.3 = [22 x i8] c"Run channel tests...\0A\00"
@.str.4 = [21 x i8] c"Run commit tests...\0A\00"
@.str.5 = [21 x i8] c"Run atomic tests...\0A\00"
@.str.6 = [20 x i8] c"Run value tests...\0A\00"
@.str.7 = [24 x i8] c"Run known set tests...\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 ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 (...) @PICC_test_pithread()
%9 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 (...) @PICC_test_queue()
%11 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 (...) @PICC_test_channel()
%13 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 (...) @PICC_test_commit()
%15 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 (...) @PICC_test_atomic()
%17 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%18 = call i32 (...) @PICC_test_value()
%19 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
%20 = call i32 (...) @PICC_test_knownset()
ret i32 0
}

LLVM IR (-O2):
@str = [28 x i8] c"== Run unit tests suite ==\0A\00"
@str.8 = [23 x i8] c"Run pi_thread tests...\00"
@str.9 = [19 x i8] c"Run queue tests...\00"
@str.10 = [21 x i8] c"Run channel tests...\00"
@str.11 = [20 x i8] c"Run commit tests...\00"
@str.12 = [20 x i8] c"Run atomic tests...\00"
@str.13 = [19 x i8] c"Run value tests...\00"
@str.14 = [23 x i8] c"Run known set tests...\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.8, i64 0, i64 0))
%5 = tail call i32 (...) @PICC_test_pithread()
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.9, i64 0, i64 0))
%7 = tail call i32 (...) @PICC_test_queue()
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.10, i64 0, i64 0))
%9 = tail call i32 (...) @PICC_test_channel()
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.11, i64 0, i64 0))
%11 = tail call i32 (...) @PICC_test_commit()
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.12, i64 0, i64 0))
%13 = tail call i32 (...) @PICC_test_atomic()
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.13, i64 0, i64 0))
%15 = tail call i32 (...) @PICC_test_value()
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.14, i64 0, i64 0))
%17 = tail call i32 (...) @PICC_test_knownset()
ret i32 0
}