#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__ input_test();
scalar_t__ parse_test();
int /*<<< orphan*/ printf(char *);
scalar_t__ schedule_test();
int main() {
  printf("input.c - ");
  if (input_test())
    printf("passed!\n");
  printf("parse.c - ");
  if (parse_test())
    printf("passed!\n");
  printf("schedule.c - ");
  if (schedule_test())
    printf("passed!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1060 <input_test@plt>
cmp    $0x0,%rax
je     1178 <main+0x38>
lea    0xe98(%rip),%rdi
call   1040 <printf@plt>
lea    0xe95(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <parse_test@plt>
cmp    $0x0,%rax
je     11a1 <main+0x61>
lea    0xe6f(%rip),%rdi
call   1040 <printf@plt>
lea    0xe77(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <schedule_test@plt>
cmp    $0x0,%rax
je     11ca <main+0x8a>
lea    0xe46(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xea8(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1070 <input_test@plt>
test   %rax,%rax
je     1175 <main+0x25>
lea    0xeb4(%rip),%rdi
call   1040 <puts@plt>
lea    0xe8f(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1060 <parse_test@plt>
test   %rax,%rax
je     1199 <main+0x49>
lea    0xe90(%rip),%rdi
call   1040 <puts@plt>
lea    0xe76(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <schedule_test@plt>
test   %rax,%rax
je     11bd <main+0x6d>
lea    0xe6c(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"input.c - \00"
@.str.1 = [9 x i8] c"passed!\0A\00"
@.str.2 = [11 x i8] c"parse.c - \00"
@.str.3 = [14 x i8] c"schedule.c - \00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%3 = call i64 (...) @input_test()
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
br label %7
7: ; preds = %5, %0
%8 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%9 = call i64 (...) @parse_test()
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %7
%12 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
br label %13
13: ; preds = %11, %7
%14 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%15 = call i64 (...) @schedule_test()
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
br label %19
19: ; preds = %17, %13
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"input.c - \00"
@.str.2 = [11 x i8] c"parse.c - \00"
@.str.3 = [14 x i8] c"schedule.c - \00"
@str.5 = [8 x i8] c"passed!\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%2 = tail call i64 (...) @input_test()
%3 = icmp eq i64 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %0
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.5, i64 0, i64 0))
br label %6
6: ; preds = %4, %0
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i64 (...) @parse_test()
%9 = icmp eq i64 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %6
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.5, i64 0, i64 0))
br label %12
12: ; preds = %10, %6
%13 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%14 = tail call i64 (...) @schedule_test()
%15 = icmp eq i64 %14, 0
br i1 %15, label %18, label %16
16: ; preds = %12
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.5, i64 0, i64 0))
br label %18
18: ; preds = %16, %12
ret i32 0
}