#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__ ac_bl_dynarray_tests();
scalar_t__ bl_adlnls_tests();
scalar_t__ bl_alnls_tests();
scalar_t__ bl_autoarray_tests();
scalar_t__ bl_dstr_tests();
scalar_t__ bl_dynarray_tests();
scalar_t__ bl_flat_deadlines_tests();
scalar_t__ bl_oringb_tests();
scalar_t__ bl_ringb_tests();
scalar_t__ bl_string_tests();
scalar_t__ hex_string_tests();
scalar_t__ integer_manipulation_tests();
scalar_t__ integer_math_tests();
int /*<<< orphan*/ printf(char *, int);
scalar_t__ semaphore_not_totally_broken_tests();
scalar_t__ time_tests();
int main(void) {
  int failed = 0;
  if (bl_ringb_tests() != 0) {
    ++failed;
  }
  if (integer_manipulation_tests() != 0) {
    ++failed;
  }
  if (integer_math_tests() != 0) {
    ++failed;
  }
  if (bl_alnls_tests() != 0) {
    ++failed;
  }
  if (bl_adlnls_tests() != 0) {
    ++failed;
  }
  if (bl_dynarray_tests() != 0) {
    ++failed;
  }
  if (ac_bl_dynarray_tests() != 0) {
    ++failed;
  }
  if (bl_autoarray_tests() != 0) {
    ++failed;
  }
  if (bl_oringb_tests() != 0) {
    ++failed;
  }
  if (semaphore_not_totally_broken_tests() != 0) {
    ++failed;
  }
  if (time_tests() != 0) {
    ++failed;
  }
  if (bl_flat_deadlines_tests() != 0) {
    ++failed;
  }
  if (hex_string_tests() != 0) {
    ++failed;
  }
  if (bl_dstr_tests() != 0) {
    ++failed;
  }
  if (bl_string_tests() != 0) {
    ++failed;
  }
  printf("\n[SUITE ERR ] %d suite(s)\n", failed);
  return failed;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    $0x0,%al
call   1100 <bl_ringb_tests@plt>
cmp    $0x0,%rax
je     1230 <main+0x30>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1110 <integer_manipulation_tests@plt>
cmp    $0x0,%rax
je     124a <main+0x4a>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <integer_math_tests@plt>
cmp    $0x0,%rax
je     1264 <main+0x64>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10f0 <bl_alnls_tests@plt>
cmp    $0x0,%rax
je     127e <main+0x7e>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1060 <bl_adlnls_tests@plt>
cmp    $0x0,%rax
je     1298 <main+0x98>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1050 <bl_dynarray_tests@plt>
cmp    $0x0,%rax
je     12b2 <main+0xb2>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1090 <ac_bl_dynarray_tests@plt>
cmp    $0x0,%rax
je     12cc <main+0xcc>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10a0 <bl_autoarray_tests@plt>
cmp    $0x0,%rax
je     12e6 <main+0xe6>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1120 <bl_oringb_tests@plt>
cmp    $0x0,%rax
je     1300 <main+0x100>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <semaphore_not_totally_broken_tests@plt>
cmp    $0x0,%rax
je     131a <main+0x11a>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10d0 <time_tests@plt>
cmp    $0x0,%rax
je     1334 <main+0x134>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10b0 <bl_flat_deadlines_tests@plt>
cmp    $0x0,%rax
je     134e <main+0x14e>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1070 <hex_string_tests@plt>
cmp    $0x0,%rax
je     1368 <main+0x168>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10e0 <bl_dstr_tests@plt>
cmp    $0x0,%rax
je     1382 <main+0x182>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   10c0 <bl_string_tests@plt>
cmp    $0x0,%rax
je     139c <main+0x19c>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xc5a(%rip),%rdi
call   1080 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1100 <bl_ringb_tests@plt>
xor    %r14d,%r14d
test   %rax,%rax
setne  %r14b
xor    %eax,%eax
call   1110 <integer_manipulation_tests@plt>
lea    0x1(%r14),%ebx
test   %rax,%rax
cmove  %r14d,%ebx
xor    %eax,%eax
call   1030 <integer_math_tests@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebx
xor    %eax,%eax
call   10f0 <bl_alnls_tests@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebx
xor    %eax,%eax
call   1060 <bl_adlnls_tests@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebx
xor    %eax,%eax
call   1050 <bl_dynarray_tests@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebx
xor    %eax,%eax
call   1090 <ac_bl_dynarray_tests@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebx
xor    %eax,%eax
call   10a0 <bl_autoarray_tests@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebx
xor    %eax,%eax
call   1120 <bl_oringb_tests@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebx
xor    %eax,%eax
call   1040 <semaphore_not_totally_broken_tests@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebx
xor    %eax,%eax
call   10d0 <time_tests@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebx
xor    %eax,%eax
call   10b0 <bl_flat_deadlines_tests@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebx
xor    %eax,%eax
call   1070 <hex_string_tests@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebx
xor    %eax,%eax
call   10e0 <bl_dstr_tests@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebx
xor    %eax,%eax
call   10c0 <bl_string_tests@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebx
lea    0xd1c(%rip),%rdi
mov    %ebx,%esi
call   1080 <printf@plt>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [27 x i8] c"\0A[SUITE ERR ] %d suite(s)\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%3 = call i64 (...) @bl_ringb_tests()
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %0
%6 = load i32, i32* %2
%7 = add nsw i32 %6, 1
store i32 %7, i32* %2
br label %8
8: ; preds = %5, %0
%9 = call i64 (...) @integer_manipulation_tests()
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, i32* %2
%13 = add nsw i32 %12, 1
store i32 %13, i32* %2
br label %14
14: ; preds = %11, %8
%15 = call i64 (...) @integer_math_tests()
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %14
%18 = load i32, i32* %2
%19 = add nsw i32 %18, 1
store i32 %19, i32* %2
br label %20
20: ; preds = %17, %14
%21 = call i64 (...) @bl_alnls_tests()
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load i32, i32* %2
%25 = add nsw i32 %24, 1
store i32 %25, i32* %2
br label %26
26: ; preds = %23, %20
%27 = call i64 (...) @bl_adlnls_tests()
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %26
%30 = load i32, i32* %2
%31 = add nsw i32 %30, 1
store i32 %31, i32* %2
br label %32
32: ; preds = %29, %26
%33 = call i64 (...) @bl_dynarray_tests()
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %32
%36 = load i32, i32* %2
%37 = add nsw i32 %36, 1
store i32 %37, i32* %2
br label %38
38: ; preds = %35, %32
%39 = call i64 (...) @ac_bl_dynarray_tests()
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = load i32, i32* %2
%43 = add nsw i32 %42, 1
store i32 %43, i32* %2
br label %44
44: ; preds = %41, %38
%45 = call i64 (...) @bl_autoarray_tests()
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load i32, i32* %2
%49 = add nsw i32 %48, 1
store i32 %49, i32* %2
br label %50
50: ; preds = %47, %44
%51 = call i64 (...) @bl_oringb_tests()
%52 = icmp ne i64 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load i32, i32* %2
%55 = add nsw i32 %54, 1
store i32 %55, i32* %2
br label %56
56: ; preds = %53, %50
%57 = call i64 (...) @semaphore_not_totally_broken_tests()
%58 = icmp ne i64 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %56
%60 = load i32, i32* %2
%61 = add nsw i32 %60, 1
store i32 %61, i32* %2
br label %62
62: ; preds = %59, %56
%63 = call i64 (...) @time_tests()
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %68
65: ; preds = %62
%66 = load i32, i32* %2
%67 = add nsw i32 %66, 1
store i32 %67, i32* %2
br label %68
68: ; preds = %65, %62
%69 = call i64 (...) @bl_flat_deadlines_tests()
%70 = icmp ne i64 %69, 0
br i1 %70, label %71, label %74
71: ; preds = %68
%72 = load i32, i32* %2
%73 = add nsw i32 %72, 1
store i32 %73, i32* %2
br label %74
74: ; preds = %71, %68
%75 = call i64 (...) @hex_string_tests()
%76 = icmp ne i64 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %74
%78 = load i32, i32* %2
%79 = add nsw i32 %78, 1
store i32 %79, i32* %2
br label %80
80: ; preds = %77, %74
%81 = call i64 (...) @bl_dstr_tests()
%82 = icmp ne i64 %81, 0
br i1 %82, label %83, label %86
83: ; preds = %80
%84 = load i32, i32* %2
%85 = add nsw i32 %84, 1
store i32 %85, i32* %2
br label %86
86: ; preds = %83, %80
%87 = call i64 (...) @bl_string_tests()
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %92
89: ; preds = %86
%90 = load i32, i32* %2
%91 = add nsw i32 %90, 1
store i32 %91, i32* %2
br label %92
92: ; preds = %89, %86
%93 = load i32, i32* %2
%94 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 %93)
%95 = load i32, i32* %2
ret i32 %95
}

LLVM IR (-O2):
@.str = [27 x i8] c"\0A[SUITE ERR ] %d suite(s)\0A\00"
define i32 @main() {
%1 = tail call i64 (...) @bl_ringb_tests()
%2 = icmp ne i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i64 (...) @integer_manipulation_tests()
%5 = icmp eq i64 %4, 0
%6 = select i1 %2, i32 2, i32 1
%7 = select i1 %5, i32 %3, i32 %6
%8 = tail call i64 (...) @integer_math_tests()
%9 = icmp ne i64 %8, 0
%10 = zext i1 %9 to i32
%11 = add nuw nsw i32 %7, %10
%12 = tail call i64 (...) @bl_alnls_tests()
%13 = icmp ne i64 %12, 0
%14 = zext i1 %13 to i32
%15 = add nuw nsw i32 %11, %14
%16 = tail call i64 (...) @bl_adlnls_tests()
%17 = icmp ne i64 %16, 0
%18 = zext i1 %17 to i32
%19 = add nuw nsw i32 %15, %18
%20 = tail call i64 (...) @bl_dynarray_tests()
%21 = icmp ne i64 %20, 0
%22 = zext i1 %21 to i32
%23 = add nuw nsw i32 %19, %22
%24 = tail call i64 (...) @ac_bl_dynarray_tests()
%25 = icmp ne i64 %24, 0
%26 = zext i1 %25 to i32
%27 = add nuw nsw i32 %23, %26
%28 = tail call i64 (...) @bl_autoarray_tests()
%29 = icmp ne i64 %28, 0
%30 = zext i1 %29 to i32
%31 = add nuw nsw i32 %27, %30
%32 = tail call i64 (...) @bl_oringb_tests()
%33 = icmp ne i64 %32, 0
%34 = zext i1 %33 to i32
%35 = add nuw nsw i32 %31, %34
%36 = tail call i64 (...) @semaphore_not_totally_broken_tests()
%37 = icmp ne i64 %36, 0
%38 = zext i1 %37 to i32
%39 = add nuw nsw i32 %35, %38
%40 = tail call i64 (...) @time_tests()
%41 = icmp ne i64 %40, 0
%42 = zext i1 %41 to i32
%43 = add nuw nsw i32 %39, %42
%44 = tail call i64 (...) @bl_flat_deadlines_tests()
%45 = icmp ne i64 %44, 0
%46 = zext i1 %45 to i32
%47 = add nuw nsw i32 %43, %46
%48 = tail call i64 (...) @hex_string_tests()
%49 = icmp ne i64 %48, 0
%50 = zext i1 %49 to i32
%51 = add nuw nsw i32 %47, %50
%52 = tail call i64 (...) @bl_dstr_tests()
%53 = icmp ne i64 %52, 0
%54 = zext i1 %53 to i32
%55 = add nuw nsw i32 %51, %54
%56 = tail call i64 (...) @bl_string_tests()
%57 = icmp ne i64 %56, 0
%58 = zext i1 %57 to i32
%59 = add nuw nsw i32 %55, %58
%60 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 %59)
ret i32 %59
}