#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*/ test_bitwriter();
int /*<<< orphan*/ test_decoders();
int /*<<< orphan*/ test_encoders();
int /*<<< orphan*/ test_format();
int /*<<< orphan*/ test_metadata();
int main(int argc, char *argv[]) {
  (void)argc, (void)argv;
  if (!test_bitwriter())
    return 1;
  if (!test_format())
    return 1;
  if (!test_encoders())
    return 1;
  if (!test_decoders())
    return 1;
  if (!test_metadata())
    return 1;
  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)
mov    $0x0,%al
call   1050 <test_bitwriter@plt>
cmp    $0x0,%eax
jne    1182 <main+0x32>
movl   $0x1,-0x4(%rbp)
jmp    11f9 <main+0xa9>
mov    $0x0,%al
call   1040 <test_format@plt>
cmp    $0x0,%eax
jne    119e <main+0x4e>
movl   $0x1,-0x4(%rbp)
jmp    11f9 <main+0xa9>
mov    $0x0,%al
call   1060 <test_encoders@plt>
cmp    $0x0,%eax
jne    11ba <main+0x6a>
movl   $0x1,-0x4(%rbp)
jmp    11f9 <main+0xa9>
mov    $0x0,%al
call   1030 <test_decoders@plt>
cmp    $0x0,%eax
jne    11d6 <main+0x86>
movl   $0x1,-0x4(%rbp)
jmp    11f9 <main+0xa9>
mov    $0x0,%al
call   1070 <test_metadata@plt>
cmp    $0x0,%eax
jne    11f2 <main+0xa2>
movl   $0x1,-0x4(%rbp)
jmp    11f9 <main+0xa9>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1050 <test_bitwriter@plt>
mov    $0x1,%ebx
test   %eax,%eax
je     1190 <main+0x40>
xor    %eax,%eax
call   1040 <test_format@plt>
test   %eax,%eax
je     1190 <main+0x40>
xor    %eax,%eax
call   1060 <test_encoders@plt>
test   %eax,%eax
je     1190 <main+0x40>
xor    %eax,%eax
call   1030 <test_decoders@plt>
test   %eax,%eax
je     1190 <main+0x40>
xor    %eax,%eax
call   1070 <test_metadata@plt>
xor    %ebx,%ebx
test   %eax,%eax
sete   %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
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 = load i32, i32* %4
%7 = load i8**, i8*** %5
%8 = call i32 (...) @test_bitwriter()
%9 = icmp ne i32 %8, 0
br i1 %9, label %11, label %10
10: ; preds = %2
store i32 1, i32* %3
br label %28
11: ; preds = %2
%12 = call i32 (...) @test_format()
%13 = icmp ne i32 %12, 0
br i1 %13, label %15, label %14
14: ; preds = %11
store i32 1, i32* %3
br label %28
15: ; preds = %11
%16 = call i32 (...) @test_encoders()
%17 = icmp ne i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %15
store i32 1, i32* %3
br label %28
19: ; preds = %15
%20 = call i32 (...) @test_decoders()
%21 = icmp ne i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %19
store i32 1, i32* %3
br label %28
23: ; preds = %19
%24 = call i32 (...) @test_metadata()
%25 = icmp ne i32 %24, 0
br i1 %25, label %27, label %26
26: ; preds = %23
store i32 1, i32* %3
br label %28
27: ; preds = %23
store i32 0, i32* %3
br label %28
28: ; preds = %27, %26, %22, %18, %14, %10
%29 = load i32, i32* %3
ret i32 %29
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_bitwriter()
%4 = icmp eq i32 %3, 0
br i1 %4, label %18, label %5
5: ; preds = %2
%6 = tail call i32 (...) @test_format()
%7 = icmp eq i32 %6, 0
br i1 %7, label %18, label %8
8: ; preds = %5
%9 = tail call i32 (...) @test_encoders()
%10 = icmp eq i32 %9, 0
br i1 %10, label %18, label %11
11: ; preds = %8
%12 = tail call i32 (...) @test_decoders()
%13 = icmp eq i32 %12, 0
br i1 %13, label %18, label %14
14: ; preds = %11
%15 = tail call i32 (...) @test_metadata()
%16 = icmp eq i32 %15, 0
%17 = zext i1 %16 to i32
br label %18
18: ; preds = %14, %11, %8, %5, %2
%19 = phi i32 [ 1, %2 ], [ 1, %5 ], [ 1, %8 ], [ 1, %11 ], [ %17, %14 ]
ret i32 %19
}