#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 /*<<< orphan*/ LC_ALL;
int arm_core_test();
int arm_reg_alloc_test();
int arm_test();
int bitset_test();
int fpa_test();
int ir_test();
int lexer_test();
int parser_test();
int ptd_test();
int /*<<< orphan*/ setlocale(int /*<<< orphan*/, char *);
int symbol_table_test();
int main(int argc, char *argv[]) {
  int failure = 0;
  setlocale(LC_ALL, "C");
  failure |= lexer_test();
  failure |= symbol_table_test();
  failure |= parser_test();
  failure |= ir_test();
  failure |= arm_core_test();
  failure |= arm_reg_alloc_test();
  failure |= arm_test();
  failure |= fpa_test();
  failure |= ptd_test();
  failure |= bitset_test();
  return failure;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    0x2e0c(%rip),%rax
mov    (%rax),%edi
lea    0xe23(%rip),%rsi
call   1090 <setlocale@plt>
mov    $0x0,%al
call   10c0 <lexer_test@plt>
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1080 <symbol_table_test@plt>
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   10b0 <parser_test@plt>
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1040 <ir_test@plt>
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1030 <arm_core_test@plt>
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1070 <arm_reg_alloc_test@plt>
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   10a0 <arm_test@plt>
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   10d0 <fpa_test@plt>
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1060 <ptd_test@plt>
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1050 <bitset_test@plt>
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    0x2e22(%rip),%rax
mov    (%rax),%edi
lea    0xe39(%rip),%rsi
call   1090 <setlocale@plt>
xor    %eax,%eax
call   10c0 <lexer_test@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1080 <symbol_table_test@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   10b0 <parser_test@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1040 <ir_test@plt>
mov    %eax,%ebx
or     %r14d,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1030 <arm_core_test@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1070 <arm_reg_alloc_test@plt>
mov    %eax,%r15d
or     %r14d,%r15d
xor    %eax,%eax
call   10a0 <arm_test@plt>
mov    %eax,%ebp
or     %r15d,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   10d0 <fpa_test@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1060 <ptd_test@plt>
mov    %eax,%ebx
or     %r14d,%ebx
xor    %eax,%eax
call   1050 <bitset_test@plt>
or     %ebx,%eax
or     %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@LC_ALL = global i32 0
@.str = [2 x i8] c"C\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%7 = load i32, i32* @LC_ALL
%8 = call i32 @setlocale(i32 %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (...) @lexer_test()
%10 = load i32, i32* %6
%11 = or i32 %10, %9
store i32 %11, i32* %6
%12 = call i32 (...) @symbol_table_test()
%13 = load i32, i32* %6
%14 = or i32 %13, %12
store i32 %14, i32* %6
%15 = call i32 (...) @parser_test()
%16 = load i32, i32* %6
%17 = or i32 %16, %15
store i32 %17, i32* %6
%18 = call i32 (...) @ir_test()
%19 = load i32, i32* %6
%20 = or i32 %19, %18
store i32 %20, i32* %6
%21 = call i32 (...) @arm_core_test()
%22 = load i32, i32* %6
%23 = or i32 %22, %21
store i32 %23, i32* %6
%24 = call i32 (...) @arm_reg_alloc_test()
%25 = load i32, i32* %6
%26 = or i32 %25, %24
store i32 %26, i32* %6
%27 = call i32 (...) @arm_test()
%28 = load i32, i32* %6
%29 = or i32 %28, %27
store i32 %29, i32* %6
%30 = call i32 (...) @fpa_test()
%31 = load i32, i32* %6
%32 = or i32 %31, %30
store i32 %32, i32* %6
%33 = call i32 (...) @ptd_test()
%34 = load i32, i32* %6
%35 = or i32 %34, %33
store i32 %35, i32* %6
%36 = call i32 (...) @bitset_test()
%37 = load i32, i32* %6
%38 = or i32 %37, %36
store i32 %38, i32* %6
%39 = load i32, i32* %6
ret i32 %39
}

LLVM IR (-O2):
@LC_ALL = global i32 0
@.str = [2 x i8] c"C\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load i32, i32* @LC_ALL
%4 = tail call i32 @setlocale(i32 %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 (...) @lexer_test()
%6 = tail call i32 (...) @symbol_table_test()
%7 = or i32 %6, %5
%8 = tail call i32 (...) @parser_test()
%9 = or i32 %7, %8
%10 = tail call i32 (...) @ir_test()
%11 = or i32 %9, %10
%12 = tail call i32 (...) @arm_core_test()
%13 = or i32 %11, %12
%14 = tail call i32 (...) @arm_reg_alloc_test()
%15 = or i32 %13, %14
%16 = tail call i32 (...) @arm_test()
%17 = or i32 %15, %16
%18 = tail call i32 (...) @fpa_test()
%19 = or i32 %17, %18
%20 = tail call i32 (...) @ptd_test()
%21 = or i32 %19, %20
%22 = tail call i32 (...) @bitset_test()
%23 = or i32 %21, %22
ret i32 %23
}