#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*/ SIGABRT;
int /*<<< orphan*/ SIGBUS;
int /*<<< orphan*/ SIGFPE;
int /*<<< orphan*/ SIGHUP;
int /*<<< orphan*/ SIGILL;
int /*<<< orphan*/ SIGINT;
int /*<<< orphan*/ SIGPIPE;
int /*<<< orphan*/ SIGPROF;
int /*<<< orphan*/ SIGQUIT;
int /*<<< orphan*/ SIGSEGV;
int /*<<< orphan*/ SIGSYS;
int /*<<< orphan*/ SIGTERM;
int /*<<< orphan*/ SIGTRAP;
int /*<<< orphan*/ SIGTTOU;
int /*<<< orphan*/ SIGUSR1;
int /*<<< orphan*/ SIGUSR2;
int /*<<< orphan*/ SIGXCPU;
int /*<<< orphan*/ SIGXFSZ;
int /*<<< orphan*/ install_signal_handler(int /*<<< orphan*/);
void install_signal_handlers() {
  install_signal_handler(SIGHUP);
  install_signal_handler(SIGINT);
  install_signal_handler(SIGQUIT);
  install_signal_handler(SIGILL);
  install_signal_handler(SIGTRAP);
  install_signal_handler(SIGABRT);
  install_signal_handler(SIGFPE);
  install_signal_handler(SIGBUS);
  install_signal_handler(SIGSEGV);
  install_signal_handler(SIGSYS);
  install_signal_handler(SIGPIPE);
  install_signal_handler(SIGTERM);
  install_signal_handler(SIGUSR1);
  install_signal_handler(SIGUSR2);
  install_signal_handler(SIGTTOU);
  install_signal_handler(SIGPROF);
  install_signal_handler(SIGXCPU);
  install_signal_handler(SIGXFSZ);
}


x86 assembly (clang, -O0):
<install_signal_handlers>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ed5(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e79(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e4b(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e05(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2dff(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e31(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e6b(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e3d(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2dd7(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2dd1(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e03(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2daf(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2df9(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2dbb(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2d6d(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2d8f(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<install_signal_handlers>:
push   %rax
mov    0x2ed8(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e9a(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e7c(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e4e(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e02(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e34(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e6e(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e40(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2dda(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2dd4(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e06(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2e10(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2db2(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2dfc(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2dbe(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2d70(%rip),%rax
mov    (%rax),%edi
call   1030 <install_signal_handler@plt>
mov    0x2d92(%rip),%rax
mov    (%rax),%edi
pop    %rax
jmp    1030 <install_signal_handler@plt>

LLVM IR (-O0):
@SIGHUP = global i32 0
@SIGINT = global i32 0
@SIGQUIT = global i32 0
@SIGILL = global i32 0
@SIGTRAP = global i32 0
@SIGABRT = global i32 0
@SIGFPE = global i32 0
@SIGBUS = global i32 0
@SIGSEGV = global i32 0
@SIGSYS = global i32 0
@SIGPIPE = global i32 0
@SIGTERM = global i32 0
@SIGUSR1 = global i32 0
@SIGUSR2 = global i32 0
@SIGTTOU = global i32 0
@SIGPROF = global i32 0
@SIGXCPU = global i32 0
@SIGXFSZ = global i32 0
define void @install_signal_handlers() {
%1 = load i32, i32* @SIGHUP
%2 = call i32 @install_signal_handler(i32 %1)
%3 = load i32, i32* @SIGINT
%4 = call i32 @install_signal_handler(i32 %3)
%5 = load i32, i32* @SIGQUIT
%6 = call i32 @install_signal_handler(i32 %5)
%7 = load i32, i32* @SIGILL
%8 = call i32 @install_signal_handler(i32 %7)
%9 = load i32, i32* @SIGTRAP
%10 = call i32 @install_signal_handler(i32 %9)
%11 = load i32, i32* @SIGABRT
%12 = call i32 @install_signal_handler(i32 %11)
%13 = load i32, i32* @SIGFPE
%14 = call i32 @install_signal_handler(i32 %13)
%15 = load i32, i32* @SIGBUS
%16 = call i32 @install_signal_handler(i32 %15)
%17 = load i32, i32* @SIGSEGV
%18 = call i32 @install_signal_handler(i32 %17)
%19 = load i32, i32* @SIGSYS
%20 = call i32 @install_signal_handler(i32 %19)
%21 = load i32, i32* @SIGPIPE
%22 = call i32 @install_signal_handler(i32 %21)
%23 = load i32, i32* @SIGTERM
%24 = call i32 @install_signal_handler(i32 %23)
%25 = load i32, i32* @SIGUSR1
%26 = call i32 @install_signal_handler(i32 %25)
%27 = load i32, i32* @SIGUSR2
%28 = call i32 @install_signal_handler(i32 %27)
%29 = load i32, i32* @SIGTTOU
%30 = call i32 @install_signal_handler(i32 %29)
%31 = load i32, i32* @SIGPROF
%32 = call i32 @install_signal_handler(i32 %31)
%33 = load i32, i32* @SIGXCPU
%34 = call i32 @install_signal_handler(i32 %33)
%35 = load i32, i32* @SIGXFSZ
%36 = call i32 @install_signal_handler(i32 %35)
ret void
}

LLVM IR (-O2):
@SIGHUP = global i32 0
@SIGINT = global i32 0
@SIGQUIT = global i32 0
@SIGILL = global i32 0
@SIGTRAP = global i32 0
@SIGABRT = global i32 0
@SIGFPE = global i32 0
@SIGBUS = global i32 0
@SIGSEGV = global i32 0
@SIGSYS = global i32 0
@SIGPIPE = global i32 0
@SIGTERM = global i32 0
@SIGUSR1 = global i32 0
@SIGUSR2 = global i32 0
@SIGTTOU = global i32 0
@SIGPROF = global i32 0
@SIGXCPU = global i32 0
@SIGXFSZ = global i32 0
define void @install_signal_handlers() {
%1 = load i32, i32* @SIGHUP
%2 = tail call i32 @install_signal_handler(i32 %1)
%3 = load i32, i32* @SIGINT
%4 = tail call i32 @install_signal_handler(i32 %3)
%5 = load i32, i32* @SIGQUIT
%6 = tail call i32 @install_signal_handler(i32 %5)
%7 = load i32, i32* @SIGILL
%8 = tail call i32 @install_signal_handler(i32 %7)
%9 = load i32, i32* @SIGTRAP
%10 = tail call i32 @install_signal_handler(i32 %9)
%11 = load i32, i32* @SIGABRT
%12 = tail call i32 @install_signal_handler(i32 %11)
%13 = load i32, i32* @SIGFPE
%14 = tail call i32 @install_signal_handler(i32 %13)
%15 = load i32, i32* @SIGBUS
%16 = tail call i32 @install_signal_handler(i32 %15)
%17 = load i32, i32* @SIGSEGV
%18 = tail call i32 @install_signal_handler(i32 %17)
%19 = load i32, i32* @SIGSYS
%20 = tail call i32 @install_signal_handler(i32 %19)
%21 = load i32, i32* @SIGPIPE
%22 = tail call i32 @install_signal_handler(i32 %21)
%23 = load i32, i32* @SIGTERM
%24 = tail call i32 @install_signal_handler(i32 %23)
%25 = load i32, i32* @SIGUSR1
%26 = tail call i32 @install_signal_handler(i32 %25)
%27 = load i32, i32* @SIGUSR2
%28 = tail call i32 @install_signal_handler(i32 %27)
%29 = load i32, i32* @SIGTTOU
%30 = tail call i32 @install_signal_handler(i32 %29)
%31 = load i32, i32* @SIGPROF
%32 = tail call i32 @install_signal_handler(i32 %31)
%33 = load i32, i32* @SIGXCPU
%34 = tail call i32 @install_signal_handler(i32 %33)
%35 = load i32, i32* @SIGXFSZ
%36 = tail call i32 @install_signal_handler(i32 %35)
ret void
}