#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 prv_test_bad_cases();
int prv_test_disass();
int prv_test_encode();
int prv_test_examples();
int prv_test_riscos_arm_examples();
int prv_test_riscos_fpa_examples();
int arm_test(void) {
  int res = 0;
  res = prv_test_examples();
  res |= prv_test_encode();
  res |= prv_test_disass();
  res |= prv_test_riscos_arm_examples();
  res |= prv_test_riscos_fpa_examples();
  res |= prv_test_bad_cases();
  return res;
}


x86 assembly (clang, -O0):
<arm_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <prv_test_examples@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1080 <prv_test_encode@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1050 <prv_test_disass@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1070 <prv_test_riscos_arm_examples@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <prv_test_riscos_fpa_examples@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1060 <prv_test_bad_cases@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arm_test>:
push   %rbp
push   %r14
push   %rbx
xor    %eax,%eax
call   1040 <prv_test_examples@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1080 <prv_test_encode@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   1050 <prv_test_disass@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1070 <prv_test_riscos_arm_examples@plt>
mov    %eax,%ebx
or     %r14d,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1030 <prv_test_riscos_fpa_examples@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1060 <prv_test_bad_cases@plt>
or     %ebp,%eax
or     %ebx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @arm_test() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @prv_test_examples()
store i32 %2, i32* %1
%3 = call i32 (...) @prv_test_encode()
%4 = load i32, i32* %1
%5 = or i32 %4, %3
store i32 %5, i32* %1
%6 = call i32 (...) @prv_test_disass()
%7 = load i32, i32* %1
%8 = or i32 %7, %6
store i32 %8, i32* %1
%9 = call i32 (...) @prv_test_riscos_arm_examples()
%10 = load i32, i32* %1
%11 = or i32 %10, %9
store i32 %11, i32* %1
%12 = call i32 (...) @prv_test_riscos_fpa_examples()
%13 = load i32, i32* %1
%14 = or i32 %13, %12
store i32 %14, i32* %1
%15 = call i32 (...) @prv_test_bad_cases()
%16 = load i32, i32* %1
%17 = or i32 %16, %15
store i32 %17, i32* %1
%18 = load i32, i32* %1
ret i32 %18
}

LLVM IR (-O2):
define i32 @arm_test() {
%1 = tail call i32 (...) @prv_test_examples()
%2 = tail call i32 (...) @prv_test_encode()
%3 = or i32 %2, %1
%4 = tail call i32 (...) @prv_test_disass()
%5 = or i32 %3, %4
%6 = tail call i32 (...) @prv_test_riscos_arm_examples()
%7 = or i32 %5, %6
%8 = tail call i32 (...) @prv_test_riscos_fpa_examples()
%9 = or i32 %7, %8
%10 = tail call i32 (...) @prv_test_bad_cases()
%11 = or i32 %9, %10
ret i32 %11
}