#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_error_cases();
scalar_t__ test_float_demotion();
scalar_t__ test_hex_colors();
scalar_t__ test_int_promotion();
scalar_t__ test_named_colors();
scalar_t__ test_simple_unit_cases();
scalar_t__ test_unitless_float();
scalar_t__ test_unitless_int();
int test_main() {
  return test_unitless_int() || test_unitless_float() ||
         test_simple_unit_cases() || test_int_promotion() ||
         test_float_demotion() || test_error_cases() || test_named_colors() ||
         test_hex_colors();
}


x86 assembly (clang, -O0):
<test_main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <test_unitless_int@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    1248 <test_main+0xc8>
mov    $0x0,%al
call   1070 <test_unitless_float@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    1248 <test_main+0xc8>
mov    $0x0,%al
call   1090 <test_simple_unit_cases@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    1248 <test_main+0xc8>
mov    $0x0,%al
call   1050 <test_int_promotion@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    1248 <test_main+0xc8>
mov    $0x0,%al
call   1060 <test_float_demotion@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    1248 <test_main+0xc8>
mov    $0x0,%al
call   10a0 <test_error_cases@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    1248 <test_main+0xc8>
mov    $0x0,%al
call   1030 <test_named_colors@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    1248 <test_main+0xc8>
mov    $0x0,%al
call   1080 <test_hex_colors@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):
<test_main>:
push   %rbx
xor    %eax,%eax
call   1040 <test_unitless_int@plt>
mov    $0x1,%ebx
test   %rax,%rax
jne    11e9 <test_main+0x69>
xor    %eax,%eax
call   1070 <test_unitless_float@plt>
test   %rax,%rax
jne    11e9 <test_main+0x69>
xor    %eax,%eax
call   1090 <test_simple_unit_cases@plt>
test   %rax,%rax
jne    11e9 <test_main+0x69>
xor    %eax,%eax
call   1050 <test_int_promotion@plt>
test   %rax,%rax
jne    11e9 <test_main+0x69>
xor    %eax,%eax
call   1060 <test_float_demotion@plt>
test   %rax,%rax
jne    11e9 <test_main+0x69>
xor    %eax,%eax
call   10a0 <test_error_cases@plt>
test   %rax,%rax
jne    11e9 <test_main+0x69>
xor    %eax,%eax
call   1030 <test_named_colors@plt>
test   %rax,%rax
jne    11e9 <test_main+0x69>
xor    %eax,%eax
call   1080 <test_hex_colors@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @test_main() {
%1 = call i64 (...) @test_unitless_int()
%2 = icmp ne i64 %1, 0
br i1 %2, label %24, label %3
3: ; preds = %0
%4 = call i64 (...) @test_unitless_float()
%5 = icmp ne i64 %4, 0
br i1 %5, label %24, label %6
6: ; preds = %3
%7 = call i64 (...) @test_simple_unit_cases()
%8 = icmp ne i64 %7, 0
br i1 %8, label %24, label %9
9: ; preds = %6
%10 = call i64 (...) @test_int_promotion()
%11 = icmp ne i64 %10, 0
br i1 %11, label %24, label %12
12: ; preds = %9
%13 = call i64 (...) @test_float_demotion()
%14 = icmp ne i64 %13, 0
br i1 %14, label %24, label %15
15: ; preds = %12
%16 = call i64 (...) @test_error_cases()
%17 = icmp ne i64 %16, 0
br i1 %17, label %24, label %18
18: ; preds = %15
%19 = call i64 (...) @test_named_colors()
%20 = icmp ne i64 %19, 0
br i1 %20, label %24, label %21
21: ; preds = %18
%22 = call i64 (...) @test_hex_colors()
%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 @test_main() {
%1 = tail call i64 (...) @test_unitless_int()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %25
3: ; preds = %0
%4 = tail call i64 (...) @test_unitless_float()
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %25
6: ; preds = %3
%7 = tail call i64 (...) @test_simple_unit_cases()
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %25
9: ; preds = %6
%10 = tail call i64 (...) @test_int_promotion()
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %25
12: ; preds = %9
%13 = tail call i64 (...) @test_float_demotion()
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %25
15: ; preds = %12
%16 = tail call i64 (...) @test_error_cases()
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %25
18: ; preds = %15
%19 = tail call i64 (...) @test_named_colors()
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %25
21: ; preds = %18
%22 = tail call i64 (...) @test_hex_colors()
%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
}