#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 EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ mmp_trace_print(int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
scalar_t__ test_1036();
scalar_t__ test_1123();
scalar_t__ test_asctime();
scalar_t__ test_parse();
int main(void) {
  if (test_1123() != 0 || test_1036() != 0 || test_asctime() != 0 ||
      test_parse() != 0) {
    mmp_trace_print(stdout);
    return EXIT_FAILURE;
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <test_1123@plt>
cmp    $0x0,%rax
jne    11a3 <main+0x53>
mov    $0x0,%al
call   1050 <test_1036@plt>
cmp    $0x0,%rax
jne    11a3 <main+0x53>
mov    $0x0,%al
call   1060 <test_asctime@plt>
cmp    $0x0,%rax
jne    11a3 <main+0x53>
mov    $0x0,%al
call   1070 <test_parse@plt>
cmp    $0x0,%rax
je     11c2 <main+0x72>
mov    0x2e2e(%rip),%rax
mov    (%rax),%edi
call   1030 <mmp_trace_print@plt>
mov    0x2e28(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    11ce <main+0x7e>
mov    0x2e07(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <test_1123@plt>
test   %rax,%rax
jne    1181 <main+0x31>
xor    %eax,%eax
call   1050 <test_1036@plt>
test   %rax,%rax
jne    1181 <main+0x31>
xor    %eax,%eax
call   1060 <test_asctime@plt>
test   %rax,%rax
jne    1181 <main+0x31>
xor    %eax,%eax
call   1070 <test_parse@plt>
test   %rax,%rax
je     119a <main+0x4a>
mov    0x2e50(%rip),%rax
mov    (%rax),%edi
call   1030 <mmp_trace_print@plt>
mov    0x2e4a(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret
mov    0x2e2f(%rip),%rax
jmp    1196 <main+0x46>

LLVM IR (-O0):
@stdout = global i32 0
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i64 (...) @test_1123()
%3 = icmp ne i64 %2, 0
br i1 %3, label %13, label %4
4: ; preds = %0
%5 = call i64 (...) @test_1036()
%6 = icmp ne i64 %5, 0
br i1 %6, label %13, label %7
7: ; preds = %4
%8 = call i64 (...) @test_asctime()
%9 = icmp ne i64 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = call i64 (...) @test_parse()
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %10, %7, %4, %0
%14 = load i32, i32* @stdout
%15 = call i32 @mmp_trace_print(i32 %14)
%16 = load i32, i32* @EXIT_FAILURE
store i32 %16, i32* %1
br label %19
17: ; preds = %10
%18 = load i32, i32* @EXIT_SUCCESS
store i32 %18, i32* %1
br label %19
19: ; preds = %17, %13
%20 = load i32, i32* %1
ret i32 %20
}

LLVM IR (-O2):
@stdout = global i32 0
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i64 (...) @test_1123()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %12
3: ; preds = %0
%4 = tail call i64 (...) @test_1036()
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %12
6: ; preds = %3
%7 = tail call i64 (...) @test_asctime()
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %6
%10 = tail call i64 (...) @test_parse()
%11 = icmp eq i64 %10, 0
br i1 %11, label %15, label %12
12: ; preds = %9, %6, %3, %0
%13 = load i32, i32* @stdout
%14 = tail call i32 @mmp_trace_print(i32 %13)
br label %15
15: ; preds = %9, %12
%16 = phi i32* [ @EXIT_FAILURE, %12 ], [ @EXIT_SUCCESS, %9 ]
%17 = load i32, i32* %16
ret i32 %17
}