#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;
scalar_t__ test_bool_false_fail();
scalar_t__ test_bool_true_fail();
scalar_t__ test_modulo_fail();
int /*<<< orphan*/ test_pass();
scalar_t__ test_str_fail();
int main(void) {
  if (!test_pass())
    return EXIT_FAILURE;
  if (test_modulo_fail())
    return EXIT_FAILURE;
  if (test_bool_true_fail())
    return EXIT_FAILURE;
  if (test_bool_false_fail())
    return EXIT_FAILURE;
  if (test_str_fail())
    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_pass@plt>
cmp    $0x0,%eax
jne    1180 <main+0x30>
mov    0x2e6a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1214 <main+0xc4>
mov    $0x0,%al
call   1060 <test_modulo_fail@plt>
cmp    $0x0,%rax
je     11a2 <main+0x52>
mov    0x2e48(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1214 <main+0xc4>
mov    $0x0,%al
call   1070 <test_bool_true_fail@plt>
cmp    $0x0,%rax
je     11c4 <main+0x74>
mov    0x2e26(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1214 <main+0xc4>
mov    $0x0,%al
call   1050 <test_bool_false_fail@plt>
cmp    $0x0,%rax
je     11e6 <main+0x96>
mov    0x2e04(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1214 <main+0xc4>
mov    $0x0,%al
call   1030 <test_str_fail@plt>
cmp    $0x0,%rax
je     1208 <main+0xb8>
mov    0x2de2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1214 <main+0xc4>
mov    0x2dc9(%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   %rbx
xor    %eax,%eax
call   1040 <test_pass@plt>
mov    0x2e81(%rip),%rbx
test   %eax,%eax
je     11a3 <main+0x53>
xor    %eax,%eax
call   1060 <test_modulo_fail@plt>
test   %rax,%rax
jne    11a3 <main+0x53>
xor    %eax,%eax
call   1070 <test_bool_true_fail@plt>
test   %rax,%rax
jne    11a3 <main+0x53>
xor    %eax,%eax
call   1050 <test_bool_false_fail@plt>
test   %rax,%rax
jne    11a3 <main+0x53>
xor    %eax,%eax
call   1030 <test_str_fail@plt>
test   %rax,%rax
jne    119c <main+0x4c>
mov    0x2e3e(%rip),%rbx
jmp    11a3 <main+0x53>
mov    0x2e3d(%rip),%rbx
mov    (%rbx),%eax
pop    %rbx
ret

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @test_pass()
%3 = icmp ne i32 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %0
%5 = load i32, i32* @EXIT_FAILURE
store i32 %5, i32* %1
br label %28
6: ; preds = %0
%7 = call i64 (...) @test_modulo_fail()
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = load i32, i32* @EXIT_FAILURE
store i32 %10, i32* %1
br label %28
11: ; preds = %6
%12 = call i64 (...) @test_bool_true_fail()
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = load i32, i32* @EXIT_FAILURE
store i32 %15, i32* %1
br label %28
16: ; preds = %11
%17 = call i64 (...) @test_bool_false_fail()
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = load i32, i32* @EXIT_FAILURE
store i32 %20, i32* %1
br label %28
21: ; preds = %16
%22 = call i64 (...) @test_str_fail()
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = load i32, i32* @EXIT_FAILURE
store i32 %25, i32* %1
br label %28
26: ; preds = %21
%27 = load i32, i32* @EXIT_SUCCESS
store i32 %27, i32* %1
br label %28
28: ; preds = %26, %24, %19, %14, %9, %4
%29 = load i32, i32* %1
ret i32 %29
}

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