#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*/ SIGQUIT;
int /*<<< orphan*/ SIGSEGV;
int /*<<< orphan*/ SIGSYS;
int /*<<< orphan*/ SIGTERM;
int /*<<< orphan*/ SIGTSTP;
int /*<<< orphan*/ SIGTTIN;
int /*<<< orphan*/ SIGTTOU;
int /*<<< orphan*/ SIGUSR1;
int /*<<< orphan*/ SIGUSR2;
int /*<<< orphan*/ SIGXCPU;
int /*<<< orphan*/ SIGXFSZ;
int /*<<< orphan*/ gt_xsignal(int /*<<< orphan*/, void (*)(int));
void gt_sig_register_all(void (*func)(int sigraised)) {
  (void)gt_xsignal(SIGABRT, func);
  (void)gt_xsignal(SIGBUS, func);
  (void)gt_xsignal(SIGFPE, func);
  (void)gt_xsignal(SIGHUP, func);
  (void)gt_xsignal(SIGILL, func);
  (void)gt_xsignal(SIGINT, func);
  (void)gt_xsignal(SIGPIPE, func);
  (void)gt_xsignal(SIGQUIT, func);
  (void)gt_xsignal(SIGSEGV, func);
  (void)gt_xsignal(SIGTERM, func);
  (void)gt_xsignal(SIGTSTP, func);
  (void)gt_xsignal(SIGTTIN, func);
  (void)gt_xsignal(SIGTTOU, func);
  (void)gt_xsignal(SIGUSR1, func);
  (void)gt_xsignal(SIGUSR2, func);
  (void)gt_xsignal(SIGSYS, func);
  (void)gt_xsignal(SIGXCPU, func);
  (void)gt_xsignal(SIGXFSZ, func);
}


x86 assembly (clang, -O0):
<gt_sig_register_all>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2e35(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2eb3(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2e43(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2de1(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2e0f(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2e15(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2dc1(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2da7(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2ddd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2dc3(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2d59(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2d37(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2d1d(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
mov    0x2d4b(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <gt_xsignal@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gt_sig_register_all>:
push   %rbx
mov    %rdi,%rbx
mov    0x2e3d(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2ebc(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2e6b(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2ea2(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2e29(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2e50(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2def(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2e1e(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2e25(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2e04(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2dd3(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2dba(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2df1(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2dd8(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2d6f(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2d4e(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2d35(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <gt_xsignal@plt>
mov    0x2d64(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
pop    %rbx
jmp    1030 <gt_xsignal@plt>

LLVM IR (-O0):
@SIGABRT = global i32 0
@SIGBUS = global i32 0
@SIGFPE = global i32 0
@SIGHUP = global i32 0
@SIGILL = global i32 0
@SIGINT = global i32 0
@SIGPIPE = global i32 0
@SIGQUIT = global i32 0
@SIGSEGV = global i32 0
@SIGTERM = global i32 0
@SIGTSTP = global i32 0
@SIGTTIN = global i32 0
@SIGTTOU = global i32 0
@SIGUSR1 = global i32 0
@SIGUSR2 = global i32 0
@SIGSYS = global i32 0
@SIGXCPU = global i32 0
@SIGXFSZ = global i32 0
define void @gt_sig_register_all(void (i32)* %0) {
%2 = alloca void (i32)*
store void (i32)* %0, void (i32)** %2
%3 = load i32, i32* @SIGABRT
%4 = load void (i32)*, void (i32)** %2
%5 = call i32 @gt_xsignal(i32 %3, void (i32)* %4)
%6 = load i32, i32* @SIGBUS
%7 = load void (i32)*, void (i32)** %2
%8 = call i32 @gt_xsignal(i32 %6, void (i32)* %7)
%9 = load i32, i32* @SIGFPE
%10 = load void (i32)*, void (i32)** %2
%11 = call i32 @gt_xsignal(i32 %9, void (i32)* %10)
%12 = load i32, i32* @SIGHUP
%13 = load void (i32)*, void (i32)** %2
%14 = call i32 @gt_xsignal(i32 %12, void (i32)* %13)
%15 = load i32, i32* @SIGILL
%16 = load void (i32)*, void (i32)** %2
%17 = call i32 @gt_xsignal(i32 %15, void (i32)* %16)
%18 = load i32, i32* @SIGINT
%19 = load void (i32)*, void (i32)** %2
%20 = call i32 @gt_xsignal(i32 %18, void (i32)* %19)
%21 = load i32, i32* @SIGPIPE
%22 = load void (i32)*, void (i32)** %2
%23 = call i32 @gt_xsignal(i32 %21, void (i32)* %22)
%24 = load i32, i32* @SIGQUIT
%25 = load void (i32)*, void (i32)** %2
%26 = call i32 @gt_xsignal(i32 %24, void (i32)* %25)
%27 = load i32, i32* @SIGSEGV
%28 = load void (i32)*, void (i32)** %2
%29 = call i32 @gt_xsignal(i32 %27, void (i32)* %28)
%30 = load i32, i32* @SIGTERM
%31 = load void (i32)*, void (i32)** %2
%32 = call i32 @gt_xsignal(i32 %30, void (i32)* %31)
%33 = load i32, i32* @SIGTSTP
%34 = load void (i32)*, void (i32)** %2
%35 = call i32 @gt_xsignal(i32 %33, void (i32)* %34)
%36 = load i32, i32* @SIGTTIN
%37 = load void (i32)*, void (i32)** %2
%38 = call i32 @gt_xsignal(i32 %36, void (i32)* %37)
%39 = load i32, i32* @SIGTTOU
%40 = load void (i32)*, void (i32)** %2
%41 = call i32 @gt_xsignal(i32 %39, void (i32)* %40)
%42 = load i32, i32* @SIGUSR1
%43 = load void (i32)*, void (i32)** %2
%44 = call i32 @gt_xsignal(i32 %42, void (i32)* %43)
%45 = load i32, i32* @SIGUSR2
%46 = load void (i32)*, void (i32)** %2
%47 = call i32 @gt_xsignal(i32 %45, void (i32)* %46)
%48 = load i32, i32* @SIGSYS
%49 = load void (i32)*, void (i32)** %2
%50 = call i32 @gt_xsignal(i32 %48, void (i32)* %49)
%51 = load i32, i32* @SIGXCPU
%52 = load void (i32)*, void (i32)** %2
%53 = call i32 @gt_xsignal(i32 %51, void (i32)* %52)
%54 = load i32, i32* @SIGXFSZ
%55 = load void (i32)*, void (i32)** %2
%56 = call i32 @gt_xsignal(i32 %54, void (i32)* %55)
ret void
}

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