#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__ new_fail();
scalar_t__ new_pass();
scalar_t__ pop_slot_finish_pass();
scalar_t__ pop_slot_pass();
int /*<<< orphan*/ printf(char *, char *);
scalar_t__ push_slot_finish_pass();
scalar_t__ push_slot_pass();
scalar_t__ trypop_slot_fail();
scalar_t__ trypop_slot_pass();
scalar_t__ trypush_slot_fail();
scalar_t__ trypush_slot_pass();
int main() {
  if (new_pass())
    printf("PASS: %s\n", "new_pass()");
  else
    printf("FAIL: %s\n", "new_pass()");
  ;
  if (new_fail())
    printf("PASS: %s\n", "new_fail()");
  else
    printf("FAIL: %s\n", "new_fail()");
  ;
  if (push_slot_pass())
    printf("PASS: %s\n", "push_slot_pass()");
  else
    printf("FAIL: %s\n", "push_slot_pass()");
  ;
  if (trypush_slot_pass())
    printf("PASS: %s\n", "trypush_slot_pass()");
  else
    printf("FAIL: %s\n", "trypush_slot_pass()");
  ;
  if (trypush_slot_fail())
    printf("PASS: %s\n", "trypush_slot_fail()");
  else
    printf("FAIL: %s\n", "trypush_slot_fail()");
  ;
  if (push_slot_finish_pass())
    printf("PASS: %s\n", "push_slot_finish_pass()");
  else
    printf("FAIL: %s\n", "push_slot_finish_pass()");
  ;
  if (pop_slot_pass())
    printf("PASS: %s\n", "pop_slot_pass()");
  else
    printf("FAIL: %s\n", "pop_slot_pass()");
  ;
  if (trypop_slot_pass())
    printf("PASS: %s\n", "trypop_slot_pass()");
  else
    printf("FAIL: %s\n", "trypop_slot_pass()");
  ;
  if (trypop_slot_fail())
    printf("PASS: %s\n", "trypop_slot_fail()");
  else
    printf("FAIL: %s\n", "trypop_slot_fail()");
  ;
  if (pop_slot_finish_pass())
    printf("PASS: %s\n", "pop_slot_finish_pass()");
  else
    printf("FAIL: %s\n", "pop_slot_finish_pass()");
  ;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1080 <new_pass@plt>
cmp    $0x0,%rax
je     11e8 <main+0x38>
lea    0xe29(%rip),%rdi
lea    0xe2c(%rip),%rsi
call   1050 <printf@plt>
jmp    11fb <main+0x4b>
lea    0xe26(%rip),%rdi
lea    0xe14(%rip),%rsi
call   1050 <printf@plt>
mov    $0x0,%al
call   10b0 <new_fail@plt>
cmp    $0x0,%rax
je     1224 <main+0x74>
lea    0xded(%rip),%rdi
lea    0xe05(%rip),%rsi
call   1050 <printf@plt>
jmp    1237 <main+0x87>
lea    0xdea(%rip),%rdi
lea    0xded(%rip),%rsi
call   1050 <printf@plt>
mov    $0x0,%al
call   1090 <push_slot_pass@plt>
cmp    $0x0,%rax
je     1260 <main+0xb0>
lea    0xdb1(%rip),%rdi
lea    0xdd7(%rip),%rsi
call   1050 <printf@plt>
jmp    1273 <main+0xc3>
lea    0xdae(%rip),%rdi
lea    0xdbf(%rip),%rsi
call   1050 <printf@plt>
mov    $0x0,%al
call   1070 <trypush_slot_pass@plt>
cmp    $0x0,%rax
je     129c <main+0xec>
lea    0xd75(%rip),%rdi
lea    0xd98(%rip),%rsi
call   1050 <printf@plt>
jmp    12af <main+0xff>
lea    0xd72(%rip),%rdi
lea    0xd80(%rip),%rsi
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <trypush_slot_fail@plt>
cmp    $0x0,%rax
je     12d8 <main+0x128>
lea    0xd39(%rip),%rdi
lea    0xd70(%rip),%rsi
call   1050 <printf@plt>
jmp    12eb <main+0x13b>
lea    0xd36(%rip),%rdi
lea    0xd58(%rip),%rsi
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <push_slot_finish_pass@plt>
cmp    $0x0,%rax
je     1314 <main+0x164>
lea    0xcfd(%rip),%rdi
lea    0xd48(%rip),%rsi
call   1050 <printf@plt>
jmp    1327 <main+0x177>
lea    0xcfa(%rip),%rdi
lea    0xd30(%rip),%rsi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <pop_slot_pass@plt>
cmp    $0x0,%rax
je     1350 <main+0x1a0>
lea    0xcc1(%rip),%rdi
lea    0xd27(%rip),%rsi
call   1050 <printf@plt>
jmp    1363 <main+0x1b3>
lea    0xcbe(%rip),%rdi
lea    0xd0f(%rip),%rsi
call   1050 <printf@plt>
mov    $0x0,%al
call   10d0 <trypop_slot_pass@plt>
cmp    $0x0,%rax
je     138c <main+0x1dc>
lea    0xc85(%rip),%rdi
lea    0xce8(%rip),%rsi
call   1050 <printf@plt>
jmp    139f <main+0x1ef>
lea    0xc82(%rip),%rdi
lea    0xcd0(%rip),%rsi
call   1050 <printf@plt>
mov    $0x0,%al
call   10a0 <trypop_slot_fail@plt>
cmp    $0x0,%rax
je     13c8 <main+0x218>
lea    0xc49(%rip),%rdi
lea    0xcbf(%rip),%rsi
call   1050 <printf@plt>
jmp    13db <main+0x22b>
lea    0xc46(%rip),%rdi
lea    0xca7(%rip),%rsi
call   1050 <printf@plt>
mov    $0x0,%al
call   10c0 <pop_slot_finish_pass@plt>
cmp    $0x0,%rax
je     1404 <main+0x254>
lea    0xc0d(%rip),%rdi
lea    0xc96(%rip),%rsi
call   1050 <printf@plt>
jmp    1417 <main+0x267>
lea    0xc0a(%rip),%rdi
lea    0xc7e(%rip),%rsi
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1080 <new_pass@plt>
test   %rax,%rax
lea    0xe50(%rip),%r14
lea    0xe34(%rip),%rbx
mov    %rbx,%rdi
cmove  %r14,%rdi
lea    0xe30(%rip),%rsi
call   1050 <printf@plt>
xor    %eax,%eax
call   10b0 <new_fail@plt>
test   %rax,%rax
mov    %rbx,%rdi
cmove  %r14,%rdi
lea    0xe28(%rip),%rsi
call   1050 <printf@plt>
xor    %eax,%eax
call   1090 <push_slot_pass@plt>
test   %rax,%rax
mov    %rbx,%rdi
cmove  %r14,%rdi
lea    0xe19(%rip),%rsi
call   1050 <printf@plt>
xor    %eax,%eax
call   1070 <trypush_slot_pass@plt>
test   %rax,%rax
mov    %rbx,%rdi
cmove  %r14,%rdi
lea    0xdf9(%rip),%rsi
call   1050 <printf@plt>
xor    %eax,%eax
call   1060 <trypush_slot_fail@plt>
test   %rax,%rax
mov    %rbx,%rdi
cmove  %r14,%rdi
lea    0xdf0(%rip),%rsi
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <push_slot_finish_pass@plt>
test   %rax,%rax
mov    %rbx,%rdi
cmove  %r14,%rdi
lea    0xde7(%rip),%rsi
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <pop_slot_pass@plt>
test   %rax,%rax
mov    %rbx,%rdi
cmove  %r14,%rdi
lea    0xde5(%rip),%rsi
call   1050 <printf@plt>
xor    %eax,%eax
call   10d0 <trypop_slot_pass@plt>
test   %rax,%rax
mov    %rbx,%rdi
cmove  %r14,%rdi
lea    0xdc5(%rip),%rsi
call   1050 <printf@plt>
xor    %eax,%eax
call   10a0 <trypop_slot_fail@plt>
test   %rax,%rax
mov    %rbx,%rdi
cmove  %r14,%rdi
lea    0xdbb(%rip),%rsi
call   1050 <printf@plt>
xor    %eax,%eax
call   10c0 <pop_slot_finish_pass@plt>
test   %rax,%rax
cmove  %r14,%rbx
lea    0xdb4(%rip),%rsi
mov    %rbx,%rdi
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [10 x i8] c"PASS: %s\0A\00"
@.str.1 = [11 x i8] c"new_pass()\00"
@.str.2 = [10 x i8] c"FAIL: %s\0A\00"
@.str.3 = [11 x i8] c"new_fail()\00"
@.str.4 = [17 x i8] c"push_slot_pass()\00"
@.str.5 = [20 x i8] c"trypush_slot_pass()\00"
@.str.6 = [20 x i8] c"trypush_slot_fail()\00"
@.str.7 = [24 x i8] c"push_slot_finish_pass()\00"
@.str.8 = [16 x i8] c"pop_slot_pass()\00"
@.str.9 = [19 x i8] c"trypop_slot_pass()\00"
@.str.10 = [19 x i8] c"trypop_slot_fail()\00"
@.str.11 = [23 x i8] c"pop_slot_finish_pass()\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i64 (...) @new_pass()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
br label %8
6: ; preds = %0
%7 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
br label %8
8: ; preds = %6, %4
%9 = call i64 (...) @new_fail()
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
br label %15
13: ; preds = %8
%14 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
br label %15
15: ; preds = %13, %11
%16 = call i64 (...) @push_slot_pass()
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
br label %22
20: ; preds = %15
%21 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
br label %22
22: ; preds = %20, %18
%23 = call i64 (...) @trypush_slot_pass()
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
br label %29
27: ; preds = %22
%28 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
br label %29
29: ; preds = %27, %25
%30 = call i64 (...) @trypush_slot_fail()
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
br label %36
34: ; preds = %29
%35 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
br label %36
36: ; preds = %34, %32
%37 = call i64 (...) @push_slot_finish_pass()
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
br label %43
41: ; preds = %36
%42 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
br label %43
43: ; preds = %41, %39
%44 = call i64 (...) @pop_slot_pass()
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0))
br label %50
48: ; preds = %43
%49 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0))
br label %50
50: ; preds = %48, %46
%51 = call i64 (...) @trypop_slot_pass()
%52 = icmp ne i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
br label %57
55: ; preds = %50
%56 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
br label %57
57: ; preds = %55, %53
%58 = call i64 (...) @trypop_slot_fail()
%59 = icmp ne i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %57
%61 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
br label %64
62: ; preds = %57
%63 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
br label %64
64: ; preds = %62, %60
%65 = call i64 (...) @pop_slot_finish_pass()
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0))
br label %71
69: ; preds = %64
%70 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0))
br label %71
71: ; preds = %69, %67
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"PASS: %s\0A\00"
@.str.1 = [11 x i8] c"new_pass()\00"
@.str.2 = [10 x i8] c"FAIL: %s\0A\00"
@.str.3 = [11 x i8] c"new_fail()\00"
@.str.4 = [17 x i8] c"push_slot_pass()\00"
@.str.5 = [20 x i8] c"trypush_slot_pass()\00"
@.str.6 = [20 x i8] c"trypush_slot_fail()\00"
@.str.7 = [24 x i8] c"push_slot_finish_pass()\00"
@.str.8 = [16 x i8] c"pop_slot_pass()\00"
@.str.9 = [19 x i8] c"trypop_slot_pass()\00"
@.str.10 = [19 x i8] c"trypop_slot_fail()\00"
@.str.11 = [23 x i8] c"pop_slot_finish_pass()\00"
define i32 @main() {
%1 = tail call i64 (...) @new_pass()
%2 = icmp eq i64 %1, 0
%3 = select i1 %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0)
%4 = tail call i32 @printf(i8* %3, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i64 (...) @new_fail()
%6 = icmp eq i64 %5, 0
%7 = select i1 %6, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0)
%8 = tail call i32 @printf(i8* %7, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i64 (...) @push_slot_pass()
%10 = icmp eq i64 %9, 0
%11 = select i1 %10, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0)
%12 = tail call i32 @printf(i8* %11, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%13 = tail call i64 (...) @trypush_slot_pass()
%14 = icmp eq i64 %13, 0
%15 = select i1 %14, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0)
%16 = tail call i32 @printf(i8* %15, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%17 = tail call i64 (...) @trypush_slot_fail()
%18 = icmp eq i64 %17, 0
%19 = select i1 %18, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0)
%20 = tail call i32 @printf(i8* %19, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%21 = tail call i64 (...) @push_slot_finish_pass()
%22 = icmp eq i64 %21, 0
%23 = select i1 %22, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0)
%24 = tail call i32 @printf(i8* %23, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
%25 = tail call i64 (...) @pop_slot_pass()
%26 = icmp eq i64 %25, 0
%27 = select i1 %26, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0)
%28 = tail call i32 @printf(i8* %27, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0))
%29 = tail call i64 (...) @trypop_slot_pass()
%30 = icmp eq i64 %29, 0
%31 = select i1 %30, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0)
%32 = tail call i32 @printf(i8* %31, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%33 = tail call i64 (...) @trypop_slot_fail()
%34 = icmp eq i64 %33, 0
%35 = select i1 %34, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0)
%36 = tail call i32 @printf(i8* %35, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%37 = tail call i64 (...) @pop_slot_finish_pass()
%38 = icmp eq i64 %37, 0
%39 = select i1 %38, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0)
%40 = tail call i32 @printf(i8* %39, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0))
ret i32 0
}