#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*/ cross_linuxthreads();
int /*<<< orphan*/ cross_signum();
int /*<<< orphan*/ cross_stack_direction();
int /*<<< orphan*/ print_header();
int /*<<< orphan*/ print_trailer();
int /*<<< orphan*/ puts(char *);
int main(void) {
  print_header();
  cross_stack_direction();
  cross_signum();
  cross_linuxthreads();
  puts("\n"
       "# ONLY if configuring with --enable-static or --disable-shared, you'll "
       "need to\n"
       "# set cross_linuxthreads_static on the following line.  The value to "
       "use can be\n"
       "# taken from the cross_linuxthreads value output by a version of the "
       "\"cross_helper\"\n"
       "# compiled with -static.\n"
       "# If NOT passing --enable-static or --disable-shared at configure "
       "time, this\n"
       "# value will be unused and need not be set.\n"
       "cross_linuxthreads_static=%MISSING%\n"
       "\n");
  print_trailer();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1080 <print_header@plt>
mov    $0x0,%al
call   1040 <cross_stack_direction@plt>
mov    $0x0,%al
call   1070 <cross_signum@plt>
mov    $0x0,%al
call   1050 <cross_linuxthreads@plt>
lea    0xe6e(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1060 <print_trailer@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1080 <print_header@plt>
xor    %eax,%eax
call   1040 <cross_stack_direction@plt>
xor    %eax,%eax
call   1070 <cross_signum@plt>
xor    %eax,%eax
call   1050 <cross_linuxthreads@plt>
lea    0xe7c(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1060 <print_trailer@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [428 x i8] c"\0A# ONLY if configuring with --enable-static or --disable-shared, you'll need to\0A# set cross_linuxthreads_static on the following line. The value to use can be\0A# taken from the cross_linuxthreads value output by a version of the \22cross_helper\22\0A# compiled with -static.\0A# If NOT passing --enable-static or --disable-shared at configure time, this\0A# value will be unused and need not be set.\0Across_linuxthreads_static=%MISSING%\0A\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @print_header()
%3 = call i32 (...) @cross_stack_direction()
%4 = call i32 (...) @cross_signum()
%5 = call i32 (...) @cross_linuxthreads()
%6 = call i32 @puts(i8* getelementptr inbounds ([428 x i8], [428 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (...) @print_trailer()
ret i32 0
}

LLVM IR (-O2):
@.str = [428 x i8] c"\0A# ONLY if configuring with --enable-static or --disable-shared, you'll need to\0A# set cross_linuxthreads_static on the following line. The value to use can be\0A# taken from the cross_linuxthreads value output by a version of the \22cross_helper\22\0A# compiled with -static.\0A# If NOT passing --enable-static or --disable-shared at configure time, this\0A# value will be unused and need not be set.\0Across_linuxthreads_static=%MISSING%\0A\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @print_header()
%2 = tail call i32 (...) @cross_stack_direction()
%3 = tail call i32 (...) @cross_signum()
%4 = tail call i32 (...) @cross_linuxthreads()
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([428 x i8], [428 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 (...) @print_trailer()
ret i32 0
}