#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*/ SIGALRM;
int /*<<< orphan*/ SIGBUS;
int /*<<< orphan*/ SIGCHLD;
int /*<<< orphan*/ SIGCONT;
int /*<<< orphan*/ SIGFPE;
int /*<<< orphan*/ SIGHUP;
int /*<<< orphan*/ SIGILL;
int /*<<< orphan*/ SIGINT;
int /*<<< orphan*/ SIGIO;
int /*<<< orphan*/ SIGPIPE;
int /*<<< orphan*/ SIGPROF;
int /*<<< orphan*/ SIGQUIT;
int /*<<< orphan*/ SIGSEGV;
int /*<<< orphan*/ SIGSYS;
int /*<<< orphan*/ SIGTERM;
int /*<<< orphan*/ SIGTRAP;
int /*<<< orphan*/ SIGTSTP;
int /*<<< orphan*/ SIGTTIN;
int /*<<< orphan*/ SIGTTOU;
int /*<<< orphan*/ SIGURG;
int /*<<< orphan*/ SIGUSR1;
int /*<<< orphan*/ SIGUSR2;
int /*<<< orphan*/ SIGVTALRM;
int /*<<< orphan*/ SIGWINCH;
int /*<<< orphan*/ SIGXCPU;
int /*<<< orphan*/ SIGXFSZ;
int /*<<< orphan*/ initialize_signal_handler(int /*<<< orphan*/);
void catch_all_signals(void) {
  initialize_signal_handler(SIGHUP);
  initialize_signal_handler(SIGINT);
  initialize_signal_handler(SIGQUIT);
  initialize_signal_handler(SIGILL);
  initialize_signal_handler(SIGTRAP);
  initialize_signal_handler(SIGABRT);
  initialize_signal_handler(SIGFPE);
  initialize_signal_handler(SIGBUS);
  initialize_signal_handler(SIGSEGV);
  initialize_signal_handler(SIGSYS);
  initialize_signal_handler(SIGPIPE);
  initialize_signal_handler(SIGALRM);
  initialize_signal_handler(SIGTERM);
  initialize_signal_handler(SIGURG);
  initialize_signal_handler(SIGTSTP);
  initialize_signal_handler(SIGCONT);
  initialize_signal_handler(SIGCHLD);
  initialize_signal_handler(SIGTTIN);
  initialize_signal_handler(SIGTTOU);
  initialize_signal_handler(SIGIO);
  initialize_signal_handler(SIGXCPU);
  initialize_signal_handler(SIGXFSZ);
  initialize_signal_handler(SIGVTALRM);
  initialize_signal_handler(SIGPROF);
  initialize_signal_handler(SIGWINCH);
  initialize_signal_handler(SIGUSR1);
  initialize_signal_handler(SIGUSR2);
}


x86 assembly (clang, -O0):
<catch_all_signals>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ed5(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2e87(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2e69(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2e1b(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2dbd(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2db7(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2e21(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2e6b(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2e35(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d9f(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d99(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2e03(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2de5(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d5f(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d99(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2ddb(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d85(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d5f(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2dc1(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2cfb(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2cf5(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d47(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d01(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d3b(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d05(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d57(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2cc1(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<catch_all_signals>:
push   %rax
mov    0x2ed8(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2e8a(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2e6c(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2e1e(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2dc0(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2dba(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2e24(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2e6e(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2e38(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2da2(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d9c(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2e06(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2de8(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d62(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d9c(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2dde(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d88(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d62(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2dc4(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2cfe(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2cf8(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d4a(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d04(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d3e(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d08(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2d5a(%rip),%rax
mov    (%rax),%edi
call   1030 <initialize_signal_handler@plt>
mov    0x2cc4(%rip),%rax
mov    (%rax),%edi
pop    %rax
jmp    1030 <initialize_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
@SIGALRM = global i32 0
@SIGTERM = global i32 0
@SIGURG = global i32 0
@SIGTSTP = global i32 0
@SIGCONT = global i32 0
@SIGCHLD = global i32 0
@SIGTTIN = global i32 0
@SIGTTOU = global i32 0
@SIGIO = global i32 0
@SIGXCPU = global i32 0
@SIGXFSZ = global i32 0
@SIGVTALRM = global i32 0
@SIGPROF = global i32 0
@SIGWINCH = global i32 0
@SIGUSR1 = global i32 0
@SIGUSR2 = global i32 0
define void @catch_all_signals() {
%1 = load i32, i32* @SIGHUP
%2 = call i32 @initialize_signal_handler(i32 %1)
%3 = load i32, i32* @SIGINT
%4 = call i32 @initialize_signal_handler(i32 %3)
%5 = load i32, i32* @SIGQUIT
%6 = call i32 @initialize_signal_handler(i32 %5)
%7 = load i32, i32* @SIGILL
%8 = call i32 @initialize_signal_handler(i32 %7)
%9 = load i32, i32* @SIGTRAP
%10 = call i32 @initialize_signal_handler(i32 %9)
%11 = load i32, i32* @SIGABRT
%12 = call i32 @initialize_signal_handler(i32 %11)
%13 = load i32, i32* @SIGFPE
%14 = call i32 @initialize_signal_handler(i32 %13)
%15 = load i32, i32* @SIGBUS
%16 = call i32 @initialize_signal_handler(i32 %15)
%17 = load i32, i32* @SIGSEGV
%18 = call i32 @initialize_signal_handler(i32 %17)
%19 = load i32, i32* @SIGSYS
%20 = call i32 @initialize_signal_handler(i32 %19)
%21 = load i32, i32* @SIGPIPE
%22 = call i32 @initialize_signal_handler(i32 %21)
%23 = load i32, i32* @SIGALRM
%24 = call i32 @initialize_signal_handler(i32 %23)
%25 = load i32, i32* @SIGTERM
%26 = call i32 @initialize_signal_handler(i32 %25)
%27 = load i32, i32* @SIGURG
%28 = call i32 @initialize_signal_handler(i32 %27)
%29 = load i32, i32* @SIGTSTP
%30 = call i32 @initialize_signal_handler(i32 %29)
%31 = load i32, i32* @SIGCONT
%32 = call i32 @initialize_signal_handler(i32 %31)
%33 = load i32, i32* @SIGCHLD
%34 = call i32 @initialize_signal_handler(i32 %33)
%35 = load i32, i32* @SIGTTIN
%36 = call i32 @initialize_signal_handler(i32 %35)
%37 = load i32, i32* @SIGTTOU
%38 = call i32 @initialize_signal_handler(i32 %37)
%39 = load i32, i32* @SIGIO
%40 = call i32 @initialize_signal_handler(i32 %39)
%41 = load i32, i32* @SIGXCPU
%42 = call i32 @initialize_signal_handler(i32 %41)
%43 = load i32, i32* @SIGXFSZ
%44 = call i32 @initialize_signal_handler(i32 %43)
%45 = load i32, i32* @SIGVTALRM
%46 = call i32 @initialize_signal_handler(i32 %45)
%47 = load i32, i32* @SIGPROF
%48 = call i32 @initialize_signal_handler(i32 %47)
%49 = load i32, i32* @SIGWINCH
%50 = call i32 @initialize_signal_handler(i32 %49)
%51 = load i32, i32* @SIGUSR1
%52 = call i32 @initialize_signal_handler(i32 %51)
%53 = load i32, i32* @SIGUSR2
%54 = call i32 @initialize_signal_handler(i32 %53)
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
@SIGALRM = global i32 0
@SIGTERM = global i32 0
@SIGURG = global i32 0
@SIGTSTP = global i32 0
@SIGCONT = global i32 0
@SIGCHLD = global i32 0
@SIGTTIN = global i32 0
@SIGTTOU = global i32 0
@SIGIO = global i32 0
@SIGXCPU = global i32 0
@SIGXFSZ = global i32 0
@SIGVTALRM = global i32 0
@SIGPROF = global i32 0
@SIGWINCH = global i32 0
@SIGUSR1 = global i32 0
@SIGUSR2 = global i32 0
define void @catch_all_signals() {
%1 = load i32, i32* @SIGHUP
%2 = tail call i32 @initialize_signal_handler(i32 %1)
%3 = load i32, i32* @SIGINT
%4 = tail call i32 @initialize_signal_handler(i32 %3)
%5 = load i32, i32* @SIGQUIT
%6 = tail call i32 @initialize_signal_handler(i32 %5)
%7 = load i32, i32* @SIGILL
%8 = tail call i32 @initialize_signal_handler(i32 %7)
%9 = load i32, i32* @SIGTRAP
%10 = tail call i32 @initialize_signal_handler(i32 %9)
%11 = load i32, i32* @SIGABRT
%12 = tail call i32 @initialize_signal_handler(i32 %11)
%13 = load i32, i32* @SIGFPE
%14 = tail call i32 @initialize_signal_handler(i32 %13)
%15 = load i32, i32* @SIGBUS
%16 = tail call i32 @initialize_signal_handler(i32 %15)
%17 = load i32, i32* @SIGSEGV
%18 = tail call i32 @initialize_signal_handler(i32 %17)
%19 = load i32, i32* @SIGSYS
%20 = tail call i32 @initialize_signal_handler(i32 %19)
%21 = load i32, i32* @SIGPIPE
%22 = tail call i32 @initialize_signal_handler(i32 %21)
%23 = load i32, i32* @SIGALRM
%24 = tail call i32 @initialize_signal_handler(i32 %23)
%25 = load i32, i32* @SIGTERM
%26 = tail call i32 @initialize_signal_handler(i32 %25)
%27 = load i32, i32* @SIGURG
%28 = tail call i32 @initialize_signal_handler(i32 %27)
%29 = load i32, i32* @SIGTSTP
%30 = tail call i32 @initialize_signal_handler(i32 %29)
%31 = load i32, i32* @SIGCONT
%32 = tail call i32 @initialize_signal_handler(i32 %31)
%33 = load i32, i32* @SIGCHLD
%34 = tail call i32 @initialize_signal_handler(i32 %33)
%35 = load i32, i32* @SIGTTIN
%36 = tail call i32 @initialize_signal_handler(i32 %35)
%37 = load i32, i32* @SIGTTOU
%38 = tail call i32 @initialize_signal_handler(i32 %37)
%39 = load i32, i32* @SIGIO
%40 = tail call i32 @initialize_signal_handler(i32 %39)
%41 = load i32, i32* @SIGXCPU
%42 = tail call i32 @initialize_signal_handler(i32 %41)
%43 = load i32, i32* @SIGXFSZ
%44 = tail call i32 @initialize_signal_handler(i32 %43)
%45 = load i32, i32* @SIGVTALRM
%46 = tail call i32 @initialize_signal_handler(i32 %45)
%47 = load i32, i32* @SIGPROF
%48 = tail call i32 @initialize_signal_handler(i32 %47)
%49 = load i32, i32* @SIGWINCH
%50 = tail call i32 @initialize_signal_handler(i32 %49)
%51 = load i32, i32* @SIGUSR1
%52 = tail call i32 @initialize_signal_handler(i32 %51)
%53 = load i32, i32* @SIGUSR2
%54 = tail call i32 @initialize_signal_handler(i32 %53)
ret void
}