#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__ testAddition();
scalar_t__ testComparison();
scalar_t__ testNegation();
scalar_t__ testSubtraction();
int main(int argc, char **argv) {
  if (testComparison() || testAddition() || testSubtraction() || testNegation())
    return EXIT_FAILURE;
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <testComparison@plt>
cmp    $0x0,%rax
jne    119a <main+0x5a>
mov    $0x0,%al
call   1050 <testAddition@plt>
cmp    $0x0,%rax
jne    119a <main+0x5a>
mov    $0x0,%al
call   1060 <testSubtraction@plt>
cmp    $0x0,%rax
jne    119a <main+0x5a>
mov    $0x0,%al
call   1040 <testNegation@plt>
cmp    $0x0,%rax
je     11ab <main+0x6b>
mov    0x2e3f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    11b7 <main+0x77>
mov    0x2e26(%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   1030 <testComparison@plt>
mov    0x2e91(%rip),%rbx
test   %rax,%rax
jne    1188 <main+0x48>
xor    %eax,%eax
call   1050 <testAddition@plt>
test   %rax,%rax
jne    1188 <main+0x48>
xor    %eax,%eax
call   1060 <testSubtraction@plt>
test   %rax,%rax
jne    1188 <main+0x48>
xor    %eax,%eax
call   1040 <testNegation@plt>
test   %rax,%rax
jne    1181 <main+0x41>
mov    0x2e59(%rip),%rbx
jmp    1188 <main+0x48>
mov    0x2e58(%rip),%rbx
mov    (%rbx),%eax
pop    %rbx
ret

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

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