#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*/ SIGCHLD;
int /*<<< orphan*/ SIGHUP;
int /*<<< orphan*/ SIGINT;
int /*<<< orphan*/ SIGPIPE;
int /*<<< orphan*/ SIGQUIT;
int /*<<< orphan*/ SIGSEGV;
int /*<<< orphan*/ SIGTERM;
int /*<<< orphan*/ SIGURG;
int /*<<< orphan*/ SIG_DFL;
int /*<<< orphan*/ signal(int /*<<< orphan*/, int /*<<< orphan*/);
void svz_signal_dn(void) {
  signal(SIGTERM, SIG_DFL);
  signal(SIGQUIT, SIG_DFL);
  signal(SIGINT, SIG_DFL);
  signal(SIGCHLD, SIG_DFL);
  signal(SIGHUP, SIG_DFL);
  signal(SIGPIPE, SIG_DFL);
  signal(SIGURG, SIG_DFL);
  signal(SIGSEGV, SIG_DFL);
}


x86 assembly (clang, -O0):
<svz_signal_dn>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
mov    0x2e7c(%rip),%rax
mov    (%rax),%esi
call   1030 <signal@plt>
mov    0x2e96(%rip),%rax
mov    (%rax),%edi
mov    0x2e65(%rip),%rax
mov    (%rax),%esi
call   1030 <signal@plt>
mov    0x2e8f(%rip),%rax
mov    (%rax),%edi
mov    0x2e4e(%rip),%rax
mov    (%rax),%esi
call   1030 <signal@plt>
mov    0x2e60(%rip),%rax
mov    (%rax),%edi
mov    0x2e37(%rip),%rax
mov    (%rax),%esi
call   1030 <signal@plt>
mov    0x2e79(%rip),%rax
mov    (%rax),%edi
mov    0x2e20(%rip),%rax
mov    (%rax),%esi
call   1030 <signal@plt>
mov    0x2e22(%rip),%rax
mov    (%rax),%edi
mov    0x2e09(%rip),%rax
mov    (%rax),%esi
call   1030 <signal@plt>
mov    0x2e03(%rip),%rax
mov    (%rax),%edi
mov    0x2df2(%rip),%rax
mov    (%rax),%esi
call   1030 <signal@plt>
mov    0x2e24(%rip),%rax
mov    (%rax),%edi
mov    0x2ddb(%rip),%rax
mov    (%rax),%esi
call   1030 <signal@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<svz_signal_dn>:
push   %rbx
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
mov    0x2e7f(%rip),%rbx
mov    (%rbx),%esi
call   1030 <signal@plt>
mov    0x2e99(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%esi
call   1030 <signal@plt>
mov    0x2e99(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%esi
call   1030 <signal@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%esi
call   1030 <signal@plt>
mov    0x2e91(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%esi
call   1030 <signal@plt>
mov    0x2e41(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%esi
call   1030 <signal@plt>
mov    0x2e29(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%esi
call   1030 <signal@plt>
mov    0x2e51(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%esi
pop    %rbx
jmp    1030 <signal@plt>

LLVM IR (-O0):
@SIGTERM = global i32 0
@SIG_DFL = global i32 0
@SIGQUIT = global i32 0
@SIGINT = global i32 0
@SIGCHLD = global i32 0
@SIGHUP = global i32 0
@SIGPIPE = global i32 0
@SIGURG = global i32 0
@SIGSEGV = global i32 0
define void @svz_signal_dn() {
%1 = load i32, i32* @SIGTERM
%2 = load i32, i32* @SIG_DFL
%3 = call i32 @signal(i32 %1, i32 %2)
%4 = load i32, i32* @SIGQUIT
%5 = load i32, i32* @SIG_DFL
%6 = call i32 @signal(i32 %4, i32 %5)
%7 = load i32, i32* @SIGINT
%8 = load i32, i32* @SIG_DFL
%9 = call i32 @signal(i32 %7, i32 %8)
%10 = load i32, i32* @SIGCHLD
%11 = load i32, i32* @SIG_DFL
%12 = call i32 @signal(i32 %10, i32 %11)
%13 = load i32, i32* @SIGHUP
%14 = load i32, i32* @SIG_DFL
%15 = call i32 @signal(i32 %13, i32 %14)
%16 = load i32, i32* @SIGPIPE
%17 = load i32, i32* @SIG_DFL
%18 = call i32 @signal(i32 %16, i32 %17)
%19 = load i32, i32* @SIGURG
%20 = load i32, i32* @SIG_DFL
%21 = call i32 @signal(i32 %19, i32 %20)
%22 = load i32, i32* @SIGSEGV
%23 = load i32, i32* @SIG_DFL
%24 = call i32 @signal(i32 %22, i32 %23)
ret void
}

LLVM IR (-O2):
@SIGTERM = global i32 0
@SIG_DFL = global i32 0
@SIGQUIT = global i32 0
@SIGINT = global i32 0
@SIGCHLD = global i32 0
@SIGHUP = global i32 0
@SIGPIPE = global i32 0
@SIGURG = global i32 0
@SIGSEGV = global i32 0
define void @svz_signal_dn() {
%1 = load i32, i32* @SIGTERM
%2 = load i32, i32* @SIG_DFL
%3 = tail call i32 @signal(i32 %1, i32 %2)
%4 = load i32, i32* @SIGQUIT
%5 = load i32, i32* @SIG_DFL
%6 = tail call i32 @signal(i32 %4, i32 %5)
%7 = load i32, i32* @SIGINT
%8 = load i32, i32* @SIG_DFL
%9 = tail call i32 @signal(i32 %7, i32 %8)
%10 = load i32, i32* @SIGCHLD
%11 = load i32, i32* @SIG_DFL
%12 = tail call i32 @signal(i32 %10, i32 %11)
%13 = load i32, i32* @SIGHUP
%14 = load i32, i32* @SIG_DFL
%15 = tail call i32 @signal(i32 %13, i32 %14)
%16 = load i32, i32* @SIGPIPE
%17 = load i32, i32* @SIG_DFL
%18 = tail call i32 @signal(i32 %16, i32 %17)
%19 = load i32, i32* @SIGURG
%20 = load i32, i32* @SIG_DFL
%21 = tail call i32 @signal(i32 %19, i32 %20)
%22 = load i32, i32* @SIGSEGV
%23 = load i32, i32* @SIG_DFL
%24 = tail call i32 @signal(i32 %22, i32 %23)
ret void
}