#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 */
char *buf_tests();
char *crypto_tests();
char *parser_tests();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/);
char *all_tests() {
  srand(time(0));
  do {
    char *message = buf_tests();
    if (message)
      return message;
  } while (0);
  do {
    char *message = crypto_tests();
    if (message)
      return message;
  } while (0);
  do {
    char *message = parser_tests();
    if (message)
      return message;
  } while (0);
  return 0;
}


x86 assembly (clang, -O0):
<all_tests>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
xor    %edi,%edi
call   1070 <time@plt>
mov    %eax,%edi
call   1060 <srand@plt>
mov    $0x0,%al
call   1030 <buf_tests@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1189 <all_tests+0x39>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    11f0 <all_tests+0xa0>
jmp    118e <all_tests+0x3e>
jmp    1193 <all_tests+0x43>
mov    $0x0,%al
call   1040 <crypto_tests@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     11b6 <all_tests+0x66>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    11f0 <all_tests+0xa0>
jmp    11bb <all_tests+0x6b>
jmp    11c0 <all_tests+0x70>
mov    $0x0,%al
call   1050 <parser_tests@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     11e3 <all_tests+0x93>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    11f0 <all_tests+0xa0>
jmp    11e8 <all_tests+0x98>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<all_tests>:
push   %rax
xor    %edi,%edi
call   1070 <time@plt>
mov    %eax,%edi
call   1060 <srand@plt>
xor    %eax,%eax
call   1030 <buf_tests@plt>
test   %rax,%rax
jne    1177 <all_tests+0x27>
xor    %eax,%eax
call   1040 <crypto_tests@plt>
test   %rax,%rax
je     1179 <all_tests+0x29>
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
jmp    1050 <parser_tests@plt>

LLVM IR (-O0):
define i8* @all_tests() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = call i32 @time(i32 0)
%6 = call i32 @srand(i32 %5)
br label %7
7: ; preds = %0
%8 = call i8* (...) @buf_tests()
store i8* %8, i8** %2
%9 = load i8*, i8** %2
%10 = icmp ne i8* %9, null
br i1 %10, label %11, label %13
11: ; preds = %7
%12 = load i8*, i8** %2
store i8* %12, i8** %1
br label %31
13: ; preds = %7
br label %14
14: ; preds = %13
br label %15
15: ; preds = %14
%16 = call i8* (...) @crypto_tests()
store i8* %16, i8** %3
%17 = load i8*, i8** %3
%18 = icmp ne i8* %17, null
br i1 %18, label %19, label %21
19: ; preds = %15
%20 = load i8*, i8** %3
store i8* %20, i8** %1
br label %31
21: ; preds = %15
br label %22
22: ; preds = %21
br label %23
23: ; preds = %22
%24 = call i8* (...) @parser_tests()
store i8* %24, i8** %4
%25 = load i8*, i8** %4
%26 = icmp ne i8* %25, null
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = load i8*, i8** %4
store i8* %28, i8** %1
br label %31
29: ; preds = %23
br label %30
30: ; preds = %29
store i8* null, i8** %1
br label %31
31: ; preds = %30, %27, %19, %11
%32 = load i8*, i8** %1
ret i8* %32
}

LLVM IR (-O2):
define i8* @all_tests() {
%1 = tail call i32 @time(i32 0)
%2 = tail call i32 @srand(i32 %1)
%3 = tail call i8* (...) @buf_tests()
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %10
5: ; preds = %0
%6 = tail call i8* (...) @crypto_tests()
%7 = icmp eq i8* %6, null
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = tail call i8* (...) @parser_tests()
br label %10
10: ; preds = %8, %5, %0
%11 = phi i8* [ %3, %0 ], [ %6, %5 ], [ %9, %8 ]
ret i8* %11
}