#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*/ SIGHUP;
int /*<<< orphan*/ SIGINT;
int /*<<< orphan*/ SIGQUIT;
int /*<<< orphan*/ SIGTERM;
int /*<<< orphan*/ SIGTSTP;
int /*<<< orphan*/ SIG_DFL;
int /*<<< orphan*/ my_signal(int /*<<< orphan*/, int /*<<< orphan*/);
void set_default_signal() {
  my_signal(SIGHUP, SIG_DFL);
  my_signal(SIGTERM, SIG_DFL);
  my_signal(SIGINT, SIG_DFL);
  my_signal(SIGQUIT, SIG_DFL);
  my_signal(SIGTSTP, SIG_DFL);
}


x86 assembly (clang, -O0):
<set_default_signal>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ed5(%rip),%rax
mov    (%rax),%edi
mov    0x2e94(%rip),%rax
mov    (%rax),%esi
call   1030 <my_signal@plt>
mov    0x2ea6(%rip),%rax
mov    (%rax),%edi
mov    0x2e7d(%rip),%rax
mov    (%rax),%esi
call   1030 <my_signal@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%edi
mov    0x2e66(%rip),%rax
mov    (%rax),%esi
call   1030 <my_signal@plt>
mov    0x2e70(%rip),%rax
mov    (%rax),%edi
mov    0x2e4f(%rip),%rax
mov    (%rax),%esi
call   1030 <my_signal@plt>
mov    0x2e51(%rip),%rax
mov    (%rax),%edi
mov    0x2e38(%rip),%rax
mov    (%rax),%esi
call   1030 <my_signal@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_default_signal>:
push   %rbx
mov    0x2ed8(%rip),%rax
mov    (%rax),%edi
mov    0x2e97(%rip),%rbx
mov    (%rbx),%esi
call   1030 <my_signal@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%esi
call   1030 <my_signal@plt>
mov    0x2ea1(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%esi
call   1030 <my_signal@plt>
mov    0x2e81(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%esi
call   1030 <my_signal@plt>
mov    0x2e69(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%esi
pop    %rbx
jmp    1030 <my_signal@plt>

LLVM IR (-O0):
@SIGHUP = global i32 0
@SIG_DFL = global i32 0
@SIGTERM = global i32 0
@SIGINT = global i32 0
@SIGQUIT = global i32 0
@SIGTSTP = global i32 0
define void @set_default_signal() {
%1 = load i32, i32* @SIGHUP
%2 = load i32, i32* @SIG_DFL
%3 = call i32 @my_signal(i32 %1, i32 %2)
%4 = load i32, i32* @SIGTERM
%5 = load i32, i32* @SIG_DFL
%6 = call i32 @my_signal(i32 %4, i32 %5)
%7 = load i32, i32* @SIGINT
%8 = load i32, i32* @SIG_DFL
%9 = call i32 @my_signal(i32 %7, i32 %8)
%10 = load i32, i32* @SIGQUIT
%11 = load i32, i32* @SIG_DFL
%12 = call i32 @my_signal(i32 %10, i32 %11)
%13 = load i32, i32* @SIGTSTP
%14 = load i32, i32* @SIG_DFL
%15 = call i32 @my_signal(i32 %13, i32 %14)
ret void
}

LLVM IR (-O2):
@SIGHUP = global i32 0
@SIG_DFL = global i32 0
@SIGTERM = global i32 0
@SIGINT = global i32 0
@SIGQUIT = global i32 0
@SIGTSTP = global i32 0
define void @set_default_signal() {
%1 = load i32, i32* @SIGHUP
%2 = load i32, i32* @SIG_DFL
%3 = tail call i32 @my_signal(i32 %1, i32 %2)
%4 = load i32, i32* @SIGTERM
%5 = load i32, i32* @SIG_DFL
%6 = tail call i32 @my_signal(i32 %4, i32 %5)
%7 = load i32, i32* @SIGINT
%8 = load i32, i32* @SIG_DFL
%9 = tail call i32 @my_signal(i32 %7, i32 %8)
%10 = load i32, i32* @SIGQUIT
%11 = load i32, i32* @SIG_DFL
%12 = tail call i32 @my_signal(i32 %10, i32 %11)
%13 = load i32, i32* @SIGTSTP
%14 = load i32, i32* @SIG_DFL
%15 = tail call i32 @my_signal(i32 %13, i32 %14)
ret void
}