#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 *, char *, ...);
int yla_suite() {
  int __yla_test_suite_result = 0;
  char *__yla_test_suite_name = "yla_suite";
  printf("Start TESTSUITE %s\n", __yla_test_suite_name);
  {
    extern yla_test_test();
    int __yla_test_result = yla_test_test();
    __yla_test_suite_result |= __yla_test_result;
  }
  {
    extern yla_stack_test();
    int __yla_test_result = yla_stack_test();
    __yla_test_suite_result |= __yla_test_result;
  }
  {
    extern yla_vm_test1();
    int __yla_test_result = yla_vm_test1();
    __yla_test_suite_result |= __yla_test_result;
  }
  printf("Finished TEST SUITE %s %s\n", __yla_test_suite_name,
         ((__yla_test_suite_result) ? "FAILED" : "PASSED"));
  return __yla_test_suite_result;
}


x86 assembly (clang, -O0):
<yla_suite>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1060 <yla_test_test@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1050 <yla_stack_test@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <yla_vm_test1@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x4(%rbp),%ecx
lea    0xe8d(%rip),%rdx
lea    0xe7f(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    0xe56(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<yla_suite>:
push   %rbp
push   %r14
push   %rbx
lea    0xebf(%rip),%rdi
lea    0xeae(%rip),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1060 <yla_test_test@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1050 <yla_stack_test@plt>
mov    %eax,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1030 <yla_vm_test1@plt>
mov    %eax,%ebp
or     %ebx,%ebp
lea    0xebe(%rip),%rax
lea    0xeb0(%rip),%rdx
cmove  %rax,%rdx
lea    0xe8a(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"yla_suite\00"
@.str.1 = [20 x i8] c"Start TESTSUITE %s\0A\00"
@.str.2 = [27 x i8] c"Finished TEST SUITE %s %s\0A\00"
@.str.3 = [7 x i8] c"FAILED\00"
@.str.4 = [7 x i8] c"PASSED\00"
define i32 @yla_suite() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8** %2
%6 = load i8*, i8** %2
%7 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%8 = call i32 (...) @yla_test_test()
store i32 %8, i32* %3
%9 = load i32, i32* %3
%10 = load i32, i32* %1
%11 = or i32 %10, %9
store i32 %11, i32* %1
%12 = call i32 (...) @yla_stack_test()
store i32 %12, i32* %4
%13 = load i32, i32* %4
%14 = load i32, i32* %1
%15 = or i32 %14, %13
store i32 %15, i32* %1
%16 = call i32 (...) @yla_vm_test1()
store i32 %16, i32* %5
%17 = load i32, i32* %5
%18 = load i32, i32* %1
%19 = or i32 %18, %17
store i32 %19, i32* %1
%20 = load i8*, i8** %2
%21 = load i32, i32* %1
%22 = icmp ne i32 %21, 0
%23 = zext i1 %22 to i64
%24 = select i1 %22, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%25 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %20, i8* %24)
%26 = load i32, i32* %1
ret i32 %26
}

LLVM IR (-O2):
@.str = [10 x i8] c"yla_suite\00"
@.str.1 = [20 x i8] c"Start TESTSUITE %s\0A\00"
@.str.2 = [27 x i8] c"Finished TEST SUITE %s %s\0A\00"
@.str.3 = [7 x i8] c"FAILED\00"
@.str.4 = [7 x i8] c"PASSED\00"
define i32 @yla_suite() {
%1 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @yla_test_test()
%3 = tail call i32 (...) @yla_stack_test()
%4 = or i32 %3, %2
%5 = tail call i32 (...) @yla_vm_test1()
%6 = or i32 %4, %5
%7 = icmp eq i32 %6, 0
%8 = select i1 %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0)
%9 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %8)
ret i32 %6
}