#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__ ntmtest_mat2();
scalar_t__ ntmtest_mat2d();
scalar_t__ ntmtest_mat3();
scalar_t__ ntmtest_mat4();
scalar_t__ ntmtest_quat();
scalar_t__ ntmtest_vec2();
scalar_t__ ntmtest_vec3();
scalar_t__ ntmtest_vec4();
int allTests(void) {
  return ntmtest_vec2() || ntmtest_vec3() || ntmtest_vec4() || ntmtest_mat2() ||
         ntmtest_mat2d() || ntmtest_mat3() || ntmtest_mat4() || ntmtest_quat();
}


x86 assembly (clang, -O0):
<allTests>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1090 <ntmtest_vec2@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    1248 <allTests+0xc8>
mov    $0x0,%al
call   1060 <ntmtest_vec3@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    1248 <allTests+0xc8>
mov    $0x0,%al
call   10a0 <ntmtest_vec4@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    1248 <allTests+0xc8>
mov    $0x0,%al
call   1070 <ntmtest_mat2@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    1248 <allTests+0xc8>
mov    $0x0,%al
call   1050 <ntmtest_mat2d@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    1248 <allTests+0xc8>
mov    $0x0,%al
call   1040 <ntmtest_mat3@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    1248 <allTests+0xc8>
mov    $0x0,%al
call   1080 <ntmtest_mat4@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    1248 <allTests+0xc8>
mov    $0x0,%al
call   1030 <ntmtest_quat@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x1(%rbp)
mov    -0x1(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<allTests>:
push   %rbx
xor    %eax,%eax
call   1090 <ntmtest_vec2@plt>
mov    $0x1,%ebx
test   %rax,%rax
jne    11e9 <allTests+0x69>
xor    %eax,%eax
call   1060 <ntmtest_vec3@plt>
test   %rax,%rax
jne    11e9 <allTests+0x69>
xor    %eax,%eax
call   10a0 <ntmtest_vec4@plt>
test   %rax,%rax
jne    11e9 <allTests+0x69>
xor    %eax,%eax
call   1070 <ntmtest_mat2@plt>
test   %rax,%rax
jne    11e9 <allTests+0x69>
xor    %eax,%eax
call   1050 <ntmtest_mat2d@plt>
test   %rax,%rax
jne    11e9 <allTests+0x69>
xor    %eax,%eax
call   1040 <ntmtest_mat3@plt>
test   %rax,%rax
jne    11e9 <allTests+0x69>
xor    %eax,%eax
call   1080 <ntmtest_mat4@plt>
test   %rax,%rax
jne    11e9 <allTests+0x69>
xor    %eax,%eax
call   1030 <ntmtest_quat@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @allTests() {
%1 = call i64 (...) @ntmtest_vec2()
%2 = icmp ne i64 %1, 0
br i1 %2, label %24, label %3
3: ; preds = %0
%4 = call i64 (...) @ntmtest_vec3()
%5 = icmp ne i64 %4, 0
br i1 %5, label %24, label %6
6: ; preds = %3
%7 = call i64 (...) @ntmtest_vec4()
%8 = icmp ne i64 %7, 0
br i1 %8, label %24, label %9
9: ; preds = %6
%10 = call i64 (...) @ntmtest_mat2()
%11 = icmp ne i64 %10, 0
br i1 %11, label %24, label %12
12: ; preds = %9
%13 = call i64 (...) @ntmtest_mat2d()
%14 = icmp ne i64 %13, 0
br i1 %14, label %24, label %15
15: ; preds = %12
%16 = call i64 (...) @ntmtest_mat3()
%17 = icmp ne i64 %16, 0
br i1 %17, label %24, label %18
18: ; preds = %15
%19 = call i64 (...) @ntmtest_mat4()
%20 = icmp ne i64 %19, 0
br i1 %20, label %24, label %21
21: ; preds = %18
%22 = call i64 (...) @ntmtest_quat()
%23 = icmp ne i64 %22, 0
br label %24
24: ; preds = %21, %18, %15, %12, %9, %6, %3, %0
%25 = phi i1 [ true, %18 ], [ true, %15 ], [ true, %12 ], [ true, %9 ], [ true, %6 ], [ true, %3 ], [ true, %0 ], [ %23, %21 ]
%26 = zext i1 %25 to i32
ret i32 %26
}

LLVM IR (-O2):
define i32 @allTests() {
%1 = tail call i64 (...) @ntmtest_vec2()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %25
3: ; preds = %0
%4 = tail call i64 (...) @ntmtest_vec3()
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %25
6: ; preds = %3
%7 = tail call i64 (...) @ntmtest_vec4()
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %25
9: ; preds = %6
%10 = tail call i64 (...) @ntmtest_mat2()
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %25
12: ; preds = %9
%13 = tail call i64 (...) @ntmtest_mat2d()
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %25
15: ; preds = %12
%16 = tail call i64 (...) @ntmtest_mat3()
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %25
18: ; preds = %15
%19 = tail call i64 (...) @ntmtest_mat4()
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %25
21: ; preds = %18
%22 = tail call i64 (...) @ntmtest_quat()
%23 = icmp ne i64 %22, 0
%24 = zext i1 %23 to i32
br label %25
25: ; preds = %21, %18, %15, %12, %9, %6, %3, %0
%26 = phi i32 [ 1, %18 ], [ 1, %15 ], [ 1, %12 ], [ 1, %9 ], [ 1, %6 ], [ 1, %3 ], [ 1, %0 ], [ %24, %21 ]
ret i32 %26
}