#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*/ build_fargs_table();
int /*<<< orphan*/ build_iargs_table();
int /*<<< orphan*/ build_ii16_table();
int /*<<< orphan*/ do_tests(int, int, int, int, int, int, int, int, int, int,
                            int, int, unsigned char *);
int _main(int argc, char **argv) {
  unsigned char *filter = ((void *)0);
  int one_arg = 0, two_args = 0, three_args = 0;
  int arith = 0, logical = 0, compare = 0;
  int integer = 0, floats = 0, p405 = 0, altivec = 0, faltivec = 0;
  int cr = -1;
  if (one_arg == 0 && two_args == 0 && three_args == 0) {
    one_arg = 1;
    two_args = 1;
    three_args = 1;
  }
  if (arith == 0 && logical == 0 && compare == 0) {
    arith = 1;
    logical = 1;
    compare = 1;
  }
  if (integer == 0 && floats == 0 && altivec == 0 && faltivec == 0 &&
      p405 == 0) {
    integer = 1;
    floats = 1;
    altivec = 1;
    faltivec = 1;
    p405 = 1;
  }
  if (cr == -1)
    cr = 2;
  build_iargs_table();
  build_fargs_table();
  build_ii16_table();
  one_arg = 1;
  two_args = 1;
  three_args = 1;
  arith = 1;
  logical = 1;
  compare = 1;
  integer = 1;
  floats = 0;
  p405 = 0;
  altivec = 0;
  faltivec = 0;
  do_tests(one_arg, two_args, three_args, arith, logical, compare, integer,
           floats, p405, altivec, faltivec, cr, filter);
  return 0;
}


x86 assembly (clang, -O0):
<_main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x80,%rsp
mov    %edi,-0x24(%rbp)
mov    %rsi,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x50(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
movl   $0x0,-0x60(%rbp)
movl   $0x0,-0x64(%rbp)
movl   $0xffffffff,-0x68(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jne    11e8 <_main+0xa8>
cmpl   $0x0,-0x40(%rbp)
jne    11e8 <_main+0xa8>
cmpl   $0x0,-0x44(%rbp)
jne    11e8 <_main+0xa8>
movl   $0x1,-0x3c(%rbp)
movl   $0x1,-0x40(%rbp)
movl   $0x1,-0x44(%rbp)
cmpl   $0x0,-0x48(%rbp)
jne    121b <_main+0xdb>
cmpl   $0x0,-0x4c(%rbp)
jne    121b <_main+0xdb>
cmpl   $0x0,-0x50(%rbp)
jne    121b <_main+0xdb>
movl   $0x1,-0x48(%rbp)
movl   $0x1,-0x4c(%rbp)
movl   $0x1,-0x50(%rbp)
cmpl   $0x0,-0x54(%rbp)
jne    1270 <_main+0x130>
cmpl   $0x0,-0x58(%rbp)
jne    1270 <_main+0x130>
cmpl   $0x0,-0x60(%rbp)
jne    1270 <_main+0x130>
cmpl   $0x0,-0x64(%rbp)
jne    1270 <_main+0x130>
cmpl   $0x0,-0x5c(%rbp)
jne    1270 <_main+0x130>
movl   $0x1,-0x54(%rbp)
movl   $0x1,-0x58(%rbp)
movl   $0x1,-0x60(%rbp)
movl   $0x1,-0x64(%rbp)
movl   $0x1,-0x5c(%rbp)
cmpl   $0xffffffff,-0x68(%rbp)
jne    1281 <_main+0x141>
movl   $0x2,-0x68(%rbp)
mov    $0x0,%al
call   1030 <build_iargs_table@plt>
mov    $0x0,%al
call   1040 <build_fargs_table@plt>
mov    $0x0,%al
call   1050 <build_ii16_table@plt>
movl   $0x1,-0x3c(%rbp)
movl   $0x1,-0x40(%rbp)
movl   $0x1,-0x44(%rbp)
movl   $0x1,-0x48(%rbp)
movl   $0x1,-0x4c(%rbp)
movl   $0x1,-0x50(%rbp)
movl   $0x1,-0x54(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
movl   $0x0,-0x60(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x40(%rbp),%esi
mov    -0x44(%rbp),%edx
mov    -0x48(%rbp),%ecx
mov    -0x4c(%rbp),%r8d
mov    -0x50(%rbp),%r9d
mov    -0x54(%rbp),%r12d
mov    -0x58(%rbp),%r15d
mov    -0x5c(%rbp),%r14d
mov    -0x60(%rbp),%ebx
mov    -0x64(%rbp),%r11d
mov    -0x68(%rbp),%r10d
mov    -0x38(%rbp),%rax
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %rax,0x30(%rsp)
call   1060 <do_tests@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<_main>:
push   %rax
xor    %eax,%eax
call   1030 <build_iargs_table@plt>
xor    %eax,%eax
call   1040 <build_fargs_table@plt>
xor    %eax,%eax
call   1050 <build_ii16_table@plt>
sub    $0x8,%rsp
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
mov    $0x1,%r8d
mov    $0x1,%r9d
push   $0x0
push   $0x2
push   $0x0
push   $0x0
push   $0x0
push   $0x0
push   $0x1
call   1060 <do_tests@plt>
add    $0x40,%rsp
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @_main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
store i8* null, i8** %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %14
store i32 0, i32* %15
store i32 0, i32* %16
store i32 -1, i32* %17
%18 = load i32, i32* %6
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %2
%21 = load i32, i32* %7
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %20
%24 = load i32, i32* %8
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %23
store i32 1, i32* %6
store i32 1, i32* %7
store i32 1, i32* %8
br label %27
27: ; preds = %26, %23, %20, %2
%28 = load i32, i32* %9
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %37
30: ; preds = %27
%31 = load i32, i32* %10
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %30
%34 = load i32, i32* %11
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %33
store i32 1, i32* %9
store i32 1, i32* %10
store i32 1, i32* %11
br label %37
37: ; preds = %36, %33, %30, %27
%38 = load i32, i32* %12
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %53
40: ; preds = %37
%41 = load i32, i32* %13
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %53
43: ; preds = %40
%44 = load i32, i32* %15
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %53
46: ; preds = %43
%47 = load i32, i32* %16
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %53
49: ; preds = %46
%50 = load i32, i32* %14
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %49
store i32 1, i32* %12
store i32 1, i32* %13
store i32 1, i32* %15
store i32 1, i32* %16
store i32 1, i32* %14
br label %53
53: ; preds = %52, %49, %46, %43, %40, %37
%54 = load i32, i32* %17
%55 = icmp eq i32 %54, -1
br i1 %55, label %56, label %57
56: ; preds = %53
store i32 2, i32* %17
br label %57
57: ; preds = %56, %53
%58 = call i32 (...) @build_iargs_table()
%59 = call i32 (...) @build_fargs_table()
%60 = call i32 (...) @build_ii16_table()
store i32 1, i32* %6
store i32 1, i32* %7
store i32 1, i32* %8
store i32 1, i32* %9
store i32 1, i32* %10
store i32 1, i32* %11
store i32 1, i32* %12
store i32 0, i32* %13
store i32 0, i32* %14
store i32 0, i32* %15
store i32 0, i32* %16
%61 = load i32, i32* %6
%62 = load i32, i32* %7
%63 = load i32, i32* %8
%64 = load i32, i32* %9
%65 = load i32, i32* %10
%66 = load i32, i32* %11
%67 = load i32, i32* %12
%68 = load i32, i32* %13
%69 = load i32, i32* %14
%70 = load i32, i32* %15
%71 = load i32, i32* %16
%72 = load i32, i32* %17
%73 = load i8*, i8** %5
%74 = call i32 @do_tests(i32 %61, i32 %62, i32 %63, i32 %64, i32 %65, i32 %66, i32 %67, i32 %68, i32 %69, i32 %70, i32 %71, i32 %72, i8* %73)
ret i32 0
}

LLVM IR (-O2):
define i32 @_main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @build_iargs_table()
%4 = tail call i32 (...) @build_fargs_table()
%5 = tail call i32 (...) @build_ii16_table()
%6 = tail call i32 @do_tests(i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 0, i32 0, i32 0, i32 0, i32 2, i8* null)
ret i32 0
}