#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_asn1_uint64();
int /*<<< orphan*/ test_ber_convert();
int /*<<< orphan*/ test_cbb_asn1();
int /*<<< orphan*/ test_cbb_basic();
int /*<<< orphan*/ test_cbb_finish_child();
int /*<<< orphan*/ test_cbb_fixed();
int /*<<< orphan*/ test_cbb_misuse();
int /*<<< orphan*/ test_cbb_prefixed();
int /*<<< orphan*/ test_get_asn1();
int /*<<< orphan*/ test_get_optional_asn1_bool();
int /*<<< orphan*/ test_get_prefixed();
int /*<<< orphan*/ test_get_prefixed_bad();
int /*<<< orphan*/ test_get_u();
int /*<<< orphan*/ test_skip();
int main(void) {
  if (!test_skip() || !test_get_u() || !test_get_prefixed() ||
      !test_get_prefixed_bad() || !test_get_asn1() || !test_cbb_basic() ||
      !test_cbb_fixed() || !test_cbb_finish_child() || !test_cbb_misuse() ||
      !test_cbb_prefixed() || !test_cbb_asn1() || !test_ber_convert() ||
      !test_asn1_uint64() || !test_get_optional_asn1_bool())
    return 1;
  printf("PASS\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1100 <test_skip@plt>
cmp    $0x0,%eax
je     12df <main+0xef>
mov    $0x0,%al
call   1050 <test_get_u@plt>
cmp    $0x0,%eax
je     12df <main+0xef>
mov    $0x0,%al
call   10a0 <test_get_prefixed@plt>
cmp    $0x0,%eax
je     12df <main+0xef>
mov    $0x0,%al
call   1080 <test_get_prefixed_bad@plt>
cmp    $0x0,%eax
je     12df <main+0xef>
mov    $0x0,%al
call   1090 <test_get_asn1@plt>
cmp    $0x0,%eax
je     12df <main+0xef>
mov    $0x0,%al
call   1030 <test_cbb_basic@plt>
cmp    $0x0,%eax
je     12df <main+0xef>
mov    $0x0,%al
call   10b0 <test_cbb_fixed@plt>
cmp    $0x0,%eax
je     12df <main+0xef>
mov    $0x0,%al
call   10d0 <test_cbb_finish_child@plt>
cmp    $0x0,%eax
je     12df <main+0xef>
mov    $0x0,%al
call   1110 <test_cbb_misuse@plt>
cmp    $0x0,%eax
je     12df <main+0xef>
mov    $0x0,%al
call   10f0 <test_cbb_prefixed@plt>
cmp    $0x0,%eax
je     12df <main+0xef>
mov    $0x0,%al
call   1070 <test_cbb_asn1@plt>
cmp    $0x0,%eax
je     12df <main+0xef>
mov    $0x0,%al
call   10e0 <test_ber_convert@plt>
cmp    $0x0,%eax
je     12df <main+0xef>
mov    $0x0,%al
call   10c0 <test_asn1_uint64@plt>
cmp    $0x0,%eax
je     12df <main+0xef>
mov    $0x0,%al
call   1060 <test_get_optional_asn1_bool@plt>
cmp    $0x0,%eax
jne    12eb <main+0xfb>
movl   $0x1,-0x4(%rbp)
jmp    12fe <main+0x10e>
lea    0xd0e(%rip),%rdi
call   1040 <printf@plt>
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   1100 <test_skip@plt>
mov    $0x1,%ebx
test   %eax,%eax
je     12aa <main+0xba>
xor    %eax,%eax
call   1050 <test_get_u@plt>
test   %eax,%eax
je     12aa <main+0xba>
xor    %eax,%eax
call   10a0 <test_get_prefixed@plt>
test   %eax,%eax
je     12aa <main+0xba>
xor    %eax,%eax
call   1080 <test_get_prefixed_bad@plt>
test   %eax,%eax
je     12aa <main+0xba>
xor    %eax,%eax
call   1090 <test_get_asn1@plt>
test   %eax,%eax
je     12aa <main+0xba>
xor    %eax,%eax
call   1030 <test_cbb_basic@plt>
test   %eax,%eax
je     12aa <main+0xba>
xor    %eax,%eax
call   10b0 <test_cbb_fixed@plt>
test   %eax,%eax
je     12aa <main+0xba>
xor    %eax,%eax
call   10d0 <test_cbb_finish_child@plt>
test   %eax,%eax
je     12aa <main+0xba>
xor    %eax,%eax
call   1110 <test_cbb_misuse@plt>
test   %eax,%eax
je     12aa <main+0xba>
xor    %eax,%eax
call   10f0 <test_cbb_prefixed@plt>
test   %eax,%eax
je     12aa <main+0xba>
xor    %eax,%eax
call   1070 <test_cbb_asn1@plt>
test   %eax,%eax
je     12aa <main+0xba>
xor    %eax,%eax
call   10e0 <test_ber_convert@plt>
test   %eax,%eax
je     12aa <main+0xba>
xor    %eax,%eax
call   10c0 <test_asn1_uint64@plt>
test   %eax,%eax
je     12aa <main+0xba>
xor    %eax,%eax
call   1060 <test_get_optional_asn1_bool@plt>
test   %eax,%eax
je     12aa <main+0xba>
lea    0xd5d(%rip),%rdi
call   1040 <puts@plt>
xor    %ebx,%ebx
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"PASS\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @test_skip()
%3 = icmp ne i32 %2, 0
br i1 %3, label %4, label %43
4: ; preds = %0
%5 = call i32 (...) @test_get_u()
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %43
7: ; preds = %4
%8 = call i32 (...) @test_get_prefixed()
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %43
10: ; preds = %7
%11 = call i32 (...) @test_get_prefixed_bad()
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %43
13: ; preds = %10
%14 = call i32 (...) @test_get_asn1()
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %43
16: ; preds = %13
%17 = call i32 (...) @test_cbb_basic()
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %43
19: ; preds = %16
%20 = call i32 (...) @test_cbb_fixed()
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %43
22: ; preds = %19
%23 = call i32 (...) @test_cbb_finish_child()
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %43
25: ; preds = %22
%26 = call i32 (...) @test_cbb_misuse()
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %43
28: ; preds = %25
%29 = call i32 (...) @test_cbb_prefixed()
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %43
31: ; preds = %28
%32 = call i32 (...) @test_cbb_asn1()
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %43
34: ; preds = %31
%35 = call i32 (...) @test_ber_convert()
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %43
37: ; preds = %34
%38 = call i32 (...) @test_asn1_uint64()
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = call i32 (...) @test_get_optional_asn1_bool()
%42 = icmp ne i32 %41, 0
br i1 %42, label %44, label %43
43: ; preds = %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %4, %0
store i32 1, i32* %1
br label %46
44: ; preds = %40
%45 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %1
br label %46
46: ; preds = %44, %43
%47 = load i32, i32* %1
ret i32 %47
}

LLVM IR (-O2):
@str = [5 x i8] c"PASS\00"
define i32 @main() {
%1 = tail call i32 (...) @test_skip()
%2 = icmp eq i32 %1, 0
br i1 %2, label %44, label %3
3: ; preds = %0
%4 = tail call i32 (...) @test_get_u()
%5 = icmp eq i32 %4, 0
br i1 %5, label %44, label %6
6: ; preds = %3
%7 = tail call i32 (...) @test_get_prefixed()
%8 = icmp eq i32 %7, 0
br i1 %8, label %44, label %9
9: ; preds = %6
%10 = tail call i32 (...) @test_get_prefixed_bad()
%11 = icmp eq i32 %10, 0
br i1 %11, label %44, label %12
12: ; preds = %9
%13 = tail call i32 (...) @test_get_asn1()
%14 = icmp eq i32 %13, 0
br i1 %14, label %44, label %15
15: ; preds = %12
%16 = tail call i32 (...) @test_cbb_basic()
%17 = icmp eq i32 %16, 0
br i1 %17, label %44, label %18
18: ; preds = %15
%19 = tail call i32 (...) @test_cbb_fixed()
%20 = icmp eq i32 %19, 0
br i1 %20, label %44, label %21
21: ; preds = %18
%22 = tail call i32 (...) @test_cbb_finish_child()
%23 = icmp eq i32 %22, 0
br i1 %23, label %44, label %24
24: ; preds = %21
%25 = tail call i32 (...) @test_cbb_misuse()
%26 = icmp eq i32 %25, 0
br i1 %26, label %44, label %27
27: ; preds = %24
%28 = tail call i32 (...) @test_cbb_prefixed()
%29 = icmp eq i32 %28, 0
br i1 %29, label %44, label %30
30: ; preds = %27
%31 = tail call i32 (...) @test_cbb_asn1()
%32 = icmp eq i32 %31, 0
br i1 %32, label %44, label %33
33: ; preds = %30
%34 = tail call i32 (...) @test_ber_convert()
%35 = icmp eq i32 %34, 0
br i1 %35, label %44, label %36
36: ; preds = %33
%37 = tail call i32 (...) @test_asn1_uint64()
%38 = icmp eq i32 %37, 0
br i1 %38, label %44, label %39
39: ; preds = %36
%40 = tail call i32 (...) @test_get_optional_asn1_bool()
%41 = icmp eq i32 %40, 0
br i1 %41, label %44, label %42
42: ; preds = %39
%43 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
br label %44
44: ; preds = %0, %3, %6, %9, %12, %15, %18, %21, %24, %27, %30, %33, %36, %39, %42
%45 = phi i32 [ 0, %42 ], [ 1, %39 ], [ 1, %36 ], [ 1, %33 ], [ 1, %30 ], [ 1, %27 ], [ 1, %24 ], [ 1, %21 ], [ 1, %18 ], [ 1, %15 ], [ 1, %12 ], [ 1, %9 ], [ 1, %6 ], [ 1, %3 ], [ 1, %0 ]
ret i32 %45
}