#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__ test_AI_Greater();
scalar_t__ test_ai_add_unsigned_with_lshift();
scalar_t__ test_ai_div_unsigned_by_subtraction__even_divide();
scalar_t__ test_ai_div_unsigned_by_subtraction__zero_result();
int test_all(void) {
  return test_AI_Greater() && test_ai_add_unsigned_with_lshift() &&
         test_ai_div_unsigned_by_subtraction__zero_result() &&
         test_ai_div_unsigned_by_subtraction__even_divide() && 1;
}


x86 assembly (clang, -O0):
<test_all>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <test_AI_Greater@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
je     11b6 <test_all+0x76>
mov    $0x0,%al
call   1050 <test_ai_add_unsigned_with_lshift@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
je     11b6 <test_all+0x76>
mov    $0x0,%al
call   1040 <test_ai_div_unsigned_by_subtraction__zero_result@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
je     11b6 <test_all+0x76>
mov    $0x0,%al
call   1060 <test_ai_div_unsigned_by_subtraction__even_divide@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
je     11b6 <test_all+0x76>
mov    $0x1,%al
mov    %al,-0x1(%rbp)
jmp    11b6 <test_all+0x76>
mov    -0x1(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_all>:
push   %rbx
xor    %ebx,%ebx
xor    %eax,%eax
call   1030 <test_AI_Greater@plt>
test   %rax,%rax
je     117a <test_all+0x3a>
xor    %ebx,%ebx
xor    %eax,%eax
call   1050 <test_ai_add_unsigned_with_lshift@plt>
test   %rax,%rax
je     117a <test_all+0x3a>
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <test_ai_div_unsigned_by_subtraction__zero_result@plt>
test   %rax,%rax
je     117a <test_all+0x3a>
xor    %eax,%eax
call   1060 <test_ai_div_unsigned_by_subtraction__even_divide@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @test_all() {
%1 = call i64 (...) @test_AI_Greater()
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %13
3: ; preds = %0
%4 = call i64 (...) @test_ai_add_unsigned_with_lshift()
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %13
6: ; preds = %3
%7 = call i64 (...) @test_ai_div_unsigned_by_subtraction__zero_result()
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %6
%10 = call i64 (...) @test_ai_div_unsigned_by_subtraction__even_divide()
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %9
br label %13
13: ; preds = %12, %9, %6, %3, %0
%14 = phi i1 [ false, %9 ], [ false, %6 ], [ false, %3 ], [ false, %0 ], [ true, %12 ]
%15 = zext i1 %14 to i32
ret i32 %15
}

LLVM IR (-O2):
define i32 @test_all() {
%1 = tail call i64 (...) @test_AI_Greater()
%2 = icmp eq i64 %1, 0
br i1 %2, label %13, label %3
3: ; preds = %0
%4 = tail call i64 (...) @test_ai_add_unsigned_with_lshift()
%5 = icmp eq i64 %4, 0
br i1 %5, label %13, label %6
6: ; preds = %3
%7 = tail call i64 (...) @test_ai_div_unsigned_by_subtraction__zero_result()
%8 = icmp eq i64 %7, 0
br i1 %8, label %13, label %9
9: ; preds = %6
%10 = tail call i64 (...) @test_ai_div_unsigned_by_subtraction__even_divide()
%11 = icmp ne i64 %10, 0
%12 = zext i1 %11 to i32
br label %13
13: ; preds = %9, %6, %3, %0
%14 = phi i32 [ 0, %6 ], [ 0, %3 ], [ 0, %0 ], [ %12, %9 ]
ret i32 %14
}