#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 SIGABRT;
int SIGALRM;
int SIGBUS;
int SIGCHLD;
int SIGCONT;
int SIGFPE;
int SIGHUP;
int SIGILL;
int SIGINT;
int SIGIOT;
int SIGKILL;
int SIGPIPE;
int SIGPROF;
int SIGQUIT;
int SIGSEGV;
int SIGSTKFLT;
int SIGSTOP;
int SIGTERM;
int SIGTRAP;
int SIGTSTP;
int SIGTTIN;
int SIGTTOU;
int SIGURG;
int SIGUSR1;
int SIGUSR2;
int SIGVTALRM;
int SIGWINCH;
int SIGXCPU;
int SIGXFSZ;
char *sig_number2name(int sig) {
  if (sig == SIGHUP) {
    return "HUP";
  }
  if (sig == SIGINT) {
    return "INT";
  }
  if (sig == SIGQUIT) {
    return "QUIT";
  }
  if (sig == SIGILL) {
    return "ILL";
  }
  if (sig == SIGTRAP) {
    return "TRAP";
  }
  if (sig == SIGABRT) {
    return "ABRT";
  }
  if (sig == SIGIOT) {
    return "IOT";
  }
  if (sig == SIGBUS) {
    return "BUS";
  }
  if (sig == SIGFPE) {
    return "FPE";
  }
  if (sig == SIGKILL) {
    return "KILL";
  }
  if (sig == SIGUSR1) {
    return "USR1";
  }
  if (sig == SIGSEGV) {
    return "SEGV";
  }
  if (sig == SIGUSR2) {
    return "USR2";
  }
  if (sig == SIGPIPE) {
    return "PIPE";
  }
  if (sig == SIGALRM) {
    return "ALRM";
  }
  if (sig == SIGTERM) {
    return "TERM";
  }
  if (sig == SIGSTKFLT) {
    return "STKFLT";
  }
  if (sig == SIGCHLD) {
    return "CHLD";
  }
  if (sig == SIGCONT) {
    return "CONT";
  }
  if (sig == SIGSTOP) {
    return "STOP";
  }
  if (sig == SIGTSTP) {
    return "TSTP";
  }
  if (sig == SIGTTIN) {
    return "TTIN";
  }
  if (sig == SIGTTOU) {
    return "TTOU";
  }
  if (sig == SIGURG) {
    return "URG";
  }
  if (sig == SIGXCPU) {
    return "XCPU";
  }
  if (sig == SIGXFSZ) {
    return "XFSZ";
  }
  if (sig == SIGVTALRM) {
    return "VTALRM";
  }
  if (sig == SIGPROF) {
    return "PROF";
  }
  if (sig == SIGWINCH) {
    return "WINCH";
  }
}


x86 assembly (clang, -O0):
<sig_number2name>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    0x2edf(%rip),%rcx
cmp    (%rcx),%eax
jne    1129 <sig_number2name+0x29>
lea    0xee0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2e7d(%rip),%rcx
cmp    (%rcx),%eax
jne    114b <sig_number2name+0x4b>
lea    0xec2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2e4b(%rip),%rcx
cmp    (%rcx),%eax
jne    116d <sig_number2name+0x6d>
lea    0xea4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2dd9(%rip),%rcx
cmp    (%rcx),%eax
jne    118f <sig_number2name+0x8f>
lea    0xe9e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2d6f(%rip),%rcx
cmp    (%rcx),%eax
jne    11b1 <sig_number2name+0xb1>
lea    0xe65(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2d55(%rip),%rcx
cmp    (%rcx),%eax
jne    11d3 <sig_number2name+0xd3>
lea    0xe48(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2d8b(%rip),%rcx
cmp    (%rcx),%eax
jne    11f5 <sig_number2name+0xf5>
lea    0xe2b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2de9(%rip),%rcx
cmp    (%rcx),%eax
jne    1217 <sig_number2name+0x117>
lea    0xe0d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2d67(%rip),%rcx
cmp    (%rcx),%eax
jne    1239 <sig_number2name+0x139>
lea    0xdef(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2cd5(%rip),%rcx
cmp    (%rcx),%eax
jne    125b <sig_number2name+0x15b>
lea    0xdd1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2d6b(%rip),%rcx
cmp    (%rcx),%eax
jne    127d <sig_number2name+0x17d>
lea    0xdb4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2d39(%rip),%rcx
cmp    (%rcx),%eax
jne    129f <sig_number2name+0x19f>
lea    0xd97(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2c8f(%rip),%rcx
cmp    (%rcx),%eax
jne    12c1 <sig_number2name+0x1c1>
lea    0xd7a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2c65(%rip),%rcx
cmp    (%rcx),%eax
jne    12e3 <sig_number2name+0x1e3>
lea    0xd5d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2ccb(%rip),%rcx
cmp    (%rcx),%eax
jne    1305 <sig_number2name+0x205>
lea    0xd7a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2c99(%rip),%rcx
cmp    (%rcx),%eax
jne    1327 <sig_number2name+0x227>
lea    0xd1e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2c67(%rip),%rcx
cmp    (%rcx),%eax
jne    1349 <sig_number2name+0x249>
lea    0xd01(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2c25(%rip),%rcx
cmp    (%rcx),%eax
jne    136b <sig_number2name+0x26b>
lea    0xce6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2c53(%rip),%rcx
cmp    (%rcx),%eax
jne    138d <sig_number2name+0x28d>
lea    0xcc9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2b69(%rip),%rcx
cmp    (%rcx),%eax
jne    13af <sig_number2name+0x2af>
lea    0xcac(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2bb7(%rip),%rcx
cmp    (%rcx),%eax
jne    13d1 <sig_number2name+0x2d1>
lea    0xc8f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2b7d(%rip),%rcx
cmp    (%rcx),%eax
jne    13f3 <sig_number2name+0x2f3>
lea    0xc72(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2bdb(%rip),%rcx
cmp    (%rcx),%eax
jne    1415 <sig_number2name+0x315>
lea    0xc55(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2b09(%rip),%rcx
cmp    (%rcx),%eax
jne    1437 <sig_number2name+0x337>
lea    0xc38(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2adf(%rip),%rcx
cmp    (%rcx),%eax
jne    1459 <sig_number2name+0x359>
lea    0xc1a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2b1d(%rip),%rcx
cmp    (%rcx),%eax
jne    147b <sig_number2name+0x37b>
lea    0xbfd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2abb(%rip),%rcx
cmp    (%rcx),%eax
jne    149d <sig_number2name+0x39d>
lea    0xbe0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2ae9(%rip),%rcx
cmp    (%rcx),%eax
jne    14bf <sig_number2name+0x3bf>
lea    0xbc5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dc <sig_number2name+0x3dc>
mov    -0xc(%rbp),%eax
mov    0x2a97(%rip),%rcx
cmp    (%rcx),%eax
jne    14dc <sig_number2name+0x3dc>
lea    0xba8(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sig_number2name>:
mov    0x2ee9(%rip),%rax
cmp    %edi,(%rax)
jne    1113 <sig_number2name+0x13>
lea    0xeee(%rip),%rax
ret
mov    0x2e96(%rip),%rax
cmp    %edi,(%rax)
jne    1126 <sig_number2name+0x26>
lea    0xedf(%rip),%rax
ret
mov    0x2e73(%rip),%rax
cmp    %edi,(%rax)
jne    1139 <sig_number2name+0x39>
lea    0xed0(%rip),%rax
ret
mov    0x2e18(%rip),%rax
cmp    %edi,(%rax)
jne    114c <sig_number2name+0x4c>
lea    0xed9(%rip),%rax
ret
mov    0x2dbd(%rip),%rax
cmp    %edi,(%rax)
jne    115f <sig_number2name+0x5f>
lea    0xeaf(%rip),%rax
ret
mov    0x2db2(%rip),%rax
cmp    %edi,(%rax)
jne    1172 <sig_number2name+0x72>
lea    0xea1(%rip),%rax
ret
mov    0x2def(%rip),%rax
cmp    %edi,(%rax)
jne    1185 <sig_number2name+0x85>
lea    0xe93(%rip),%rax
ret
mov    0x2e5c(%rip),%rax
cmp    %edi,(%rax)
jne    1198 <sig_number2name+0x98>
lea    0xe84(%rip),%rax
ret
mov    0x2de9(%rip),%rax
cmp    %edi,(%rax)
jne    11ab <sig_number2name+0xab>
lea    0xe75(%rip),%rax
ret
mov    0x2d6e(%rip),%rax
cmp    %edi,(%rax)
jne    11be <sig_number2name+0xbe>
lea    0xe66(%rip),%rax
ret
mov    0x2e0b(%rip),%rax
cmp    %edi,(%rax)
jne    11d1 <sig_number2name+0xd1>
lea    0xe58(%rip),%rax
ret
mov    0x2de8(%rip),%rax
cmp    %edi,(%rax)
jne    11e4 <sig_number2name+0xe4>
lea    0xe4a(%rip),%rax
ret
mov    0x2d55(%rip),%rax
cmp    %edi,(%rax)
jne    11f7 <sig_number2name+0xf7>
lea    0xe3c(%rip),%rax
ret
mov    0x2d3a(%rip),%rax
cmp    %edi,(%rax)
jne    120a <sig_number2name+0x10a>
lea    0xe2e(%rip),%rax
ret
mov    0x2da7(%rip),%rax
cmp    %edi,(%rax)
jne    121d <sig_number2name+0x11d>
lea    0xe5a(%rip),%rax
ret
mov    0x2d84(%rip),%rax
cmp    %edi,(%rax)
jne    1230 <sig_number2name+0x130>
lea    0xe0d(%rip),%rax
ret
mov    0x2d61(%rip),%rax
cmp    %edi,(%rax)
jne    1243 <sig_number2name+0x143>
lea    0xdff(%rip),%rax
ret
mov    0x2d2e(%rip),%rax
cmp    %edi,(%rax)
jne    1256 <sig_number2name+0x156>
lea    0xdf3(%rip),%rax
ret
mov    0x2d6b(%rip),%rax
cmp    %edi,(%rax)
jne    1269 <sig_number2name+0x169>
lea    0xde5(%rip),%rax
ret
mov    0x2c98(%rip),%rax
cmp    %edi,(%rax)
jne    127c <sig_number2name+0x17c>
lea    0xdd7(%rip),%rax
ret
mov    0x2ced(%rip),%rax
cmp    %edi,(%rax)
jne    128f <sig_number2name+0x18f>
lea    0xdc9(%rip),%rax
ret
mov    0x2cca(%rip),%rax
cmp    %edi,(%rax)
jne    12a2 <sig_number2name+0x1a2>
lea    0xdbb(%rip),%rax
ret
mov    0x2d2f(%rip),%rax
cmp    %edi,(%rax)
jne    12b5 <sig_number2name+0x1b5>
lea    0xdad(%rip),%rax
ret
mov    0x2c74(%rip),%rax
cmp    %edi,(%rax)
jne    12c8 <sig_number2name+0x1c8>
lea    0xd9f(%rip),%rax
ret
mov    0x2c59(%rip),%rax
cmp    %edi,(%rax)
jne    12db <sig_number2name+0x1db>
lea    0xd90(%rip),%rax
ret
mov    0x2c9e(%rip),%rax
cmp    %edi,(%rax)
jne    12ee <sig_number2name+0x1ee>
lea    0xd82(%rip),%rax
ret
mov    0x2c53(%rip),%rax
cmp    %edi,(%rax)
jne    1301 <sig_number2name+0x201>
lea    0xd74(%rip),%rax
ret
mov    0x2c88(%rip),%rax
cmp    %edi,(%rax)
lea    0xd6a(%rip),%rcx
lea    0xd68(%rip),%rax
cmove  %rcx,%rax
ret

LLVM IR (-O0):
@SIGHUP = global i32 0
@.str = [4 x i8] c"HUP\00"
@SIGINT = global i32 0
@.str.1 = [4 x i8] c"INT\00"
@SIGQUIT = global i32 0
@.str.2 = [5 x i8] c"QUIT\00"
@SIGILL = global i32 0
@.str.3 = [4 x i8] c"ILL\00"
@SIGTRAP = global i32 0
@.str.4 = [5 x i8] c"TRAP\00"
@SIGABRT = global i32 0
@.str.5 = [5 x i8] c"ABRT\00"
@SIGIOT = global i32 0
@.str.6 = [4 x i8] c"IOT\00"
@SIGBUS = global i32 0
@.str.7 = [4 x i8] c"BUS\00"
@SIGFPE = global i32 0
@.str.8 = [4 x i8] c"FPE\00"
@SIGKILL = global i32 0
@.str.9 = [5 x i8] c"KILL\00"
@SIGUSR1 = global i32 0
@.str.10 = [5 x i8] c"USR1\00"
@SIGSEGV = global i32 0
@.str.11 = [5 x i8] c"SEGV\00"
@SIGUSR2 = global i32 0
@.str.12 = [5 x i8] c"USR2\00"
@SIGPIPE = global i32 0
@.str.13 = [5 x i8] c"PIPE\00"
@SIGALRM = global i32 0
@.str.14 = [5 x i8] c"ALRM\00"
@SIGTERM = global i32 0
@.str.15 = [5 x i8] c"TERM\00"
@SIGSTKFLT = global i32 0
@.str.16 = [7 x i8] c"STKFLT\00"
@SIGCHLD = global i32 0
@.str.17 = [5 x i8] c"CHLD\00"
@SIGCONT = global i32 0
@.str.18 = [5 x i8] c"CONT\00"
@SIGSTOP = global i32 0
@.str.19 = [5 x i8] c"STOP\00"
@SIGTSTP = global i32 0
@.str.20 = [5 x i8] c"TSTP\00"
@SIGTTIN = global i32 0
@.str.21 = [5 x i8] c"TTIN\00"
@SIGTTOU = global i32 0
@.str.22 = [5 x i8] c"TTOU\00"
@SIGURG = global i32 0
@.str.23 = [4 x i8] c"URG\00"
@SIGXCPU = global i32 0
@.str.24 = [5 x i8] c"XCPU\00"
@SIGXFSZ = global i32 0
@.str.25 = [5 x i8] c"XFSZ\00"
@SIGVTALRM = global i32 0
@.str.26 = [7 x i8] c"VTALRM\00"
@SIGPROF = global i32 0
@.str.27 = [5 x i8] c"PROF\00"
@SIGWINCH = global i32 0
@.str.28 = [6 x i8] c"WINCH\00"
define i8* @sig_number2name(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = load i32, i32* @SIGHUP
%6 = icmp eq i32 %4, %5
br i1 %6, label %7, label %8
7: ; preds = %1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8** %2
br label %148
8: ; preds = %1
%9 = load i32, i32* %3
%10 = load i32, i32* @SIGINT
%11 = icmp eq i32 %9, %10
br i1 %11, label %12, label %13
12: ; preds = %8
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %148
13: ; preds = %8
%14 = load i32, i32* %3
%15 = load i32, i32* @SIGQUIT
%16 = icmp eq i32 %14, %15
br i1 %16, label %17, label %18
17: ; preds = %13
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %148
18: ; preds = %13
%19 = load i32, i32* %3
%20 = load i32, i32* @SIGILL
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %18
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %148
23: ; preds = %18
%24 = load i32, i32* %3
%25 = load i32, i32* @SIGTRAP
%26 = icmp eq i32 %24, %25
br i1 %26, label %27, label %28
27: ; preds = %23
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %148
28: ; preds = %23
%29 = load i32, i32* %3
%30 = load i32, i32* @SIGABRT
%31 = icmp eq i32 %29, %30
br i1 %31, label %32, label %33
32: ; preds = %28
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %148
33: ; preds = %28
%34 = load i32, i32* %3
%35 = load i32, i32* @SIGIOT
%36 = icmp eq i32 %34, %35
br i1 %36, label %37, label %38
37: ; preds = %33
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %148
38: ; preds = %33
%39 = load i32, i32* %3
%40 = load i32, i32* @SIGBUS
%41 = icmp eq i32 %39, %40
br i1 %41, label %42, label %43
42: ; preds = %38
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %148
43: ; preds = %38
%44 = load i32, i32* %3
%45 = load i32, i32* @SIGFPE
%46 = icmp eq i32 %44, %45
br i1 %46, label %47, label %48
47: ; preds = %43
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %148
48: ; preds = %43
%49 = load i32, i32* %3
%50 = load i32, i32* @SIGKILL
%51 = icmp eq i32 %49, %50
br i1 %51, label %52, label %53
52: ; preds = %48
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %148
53: ; preds = %48
%54 = load i32, i32* %3
%55 = load i32, i32* @SIGUSR1
%56 = icmp eq i32 %54, %55
br i1 %56, label %57, label %58
57: ; preds = %53
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %148
58: ; preds = %53
%59 = load i32, i32* %3
%60 = load i32, i32* @SIGSEGV
%61 = icmp eq i32 %59, %60
br i1 %61, label %62, label %63
62: ; preds = %58
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %148
63: ; preds = %58
%64 = load i32, i32* %3
%65 = load i32, i32* @SIGUSR2
%66 = icmp eq i32 %64, %65
br i1 %66, label %67, label %68
67: ; preds = %63
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %148
68: ; preds = %63
%69 = load i32, i32* %3
%70 = load i32, i32* @SIGPIPE
%71 = icmp eq i32 %69, %70
br i1 %71, label %72, label %73
72: ; preds = %68
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %148
73: ; preds = %68
%74 = load i32, i32* %3
%75 = load i32, i32* @SIGALRM
%76 = icmp eq i32 %74, %75
br i1 %76, label %77, label %78
77: ; preds = %73
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %148
78: ; preds = %73
%79 = load i32, i32* %3
%80 = load i32, i32* @SIGTERM
%81 = icmp eq i32 %79, %80
br i1 %81, label %82, label %83
82: ; preds = %78
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %148
83: ; preds = %78
%84 = load i32, i32* %3
%85 = load i32, i32* @SIGSTKFLT
%86 = icmp eq i32 %84, %85
br i1 %86, label %87, label %88
87: ; preds = %83
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %148
88: ; preds = %83
%89 = load i32, i32* %3
%90 = load i32, i32* @SIGCHLD
%91 = icmp eq i32 %89, %90
br i1 %91, label %92, label %93
92: ; preds = %88
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %148
93: ; preds = %88
%94 = load i32, i32* %3
%95 = load i32, i32* @SIGCONT
%96 = icmp eq i32 %94, %95
br i1 %96, label %97, label %98
97: ; preds = %93
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %148
98: ; preds = %93
%99 = load i32, i32* %3
%100 = load i32, i32* @SIGSTOP
%101 = icmp eq i32 %99, %100
br i1 %101, label %102, label %103
102: ; preds = %98
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %148
103: ; preds = %98
%104 = load i32, i32* %3
%105 = load i32, i32* @SIGTSTP
%106 = icmp eq i32 %104, %105
br i1 %106, label %107, label %108
107: ; preds = %103
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %148
108: ; preds = %103
%109 = load i32, i32* %3
%110 = load i32, i32* @SIGTTIN
%111 = icmp eq i32 %109, %110
br i1 %111, label %112, label %113
112: ; preds = %108
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %148
113: ; preds = %108
%114 = load i32, i32* %3
%115 = load i32, i32* @SIGTTOU
%116 = icmp eq i32 %114, %115
br i1 %116, label %117, label %118
117: ; preds = %113
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %148
118: ; preds = %113
%119 = load i32, i32* %3
%120 = load i32, i32* @SIGURG
%121 = icmp eq i32 %119, %120
br i1 %121, label %122, label %123
122: ; preds = %118
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0), i8** %2
br label %148
123: ; preds = %118
%124 = load i32, i32* %3
%125 = load i32, i32* @SIGXCPU
%126 = icmp eq i32 %124, %125
br i1 %126, label %127, label %128
127: ; preds = %123
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %148
128: ; preds = %123
%129 = load i32, i32* %3
%130 = load i32, i32* @SIGXFSZ
%131 = icmp eq i32 %129, %130
br i1 %131, label %132, label %133
132: ; preds = %128
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0), i8** %2
br label %148
133: ; preds = %128
%134 = load i32, i32* %3
%135 = load i32, i32* @SIGVTALRM
%136 = icmp eq i32 %134, %135
br i1 %136, label %137, label %138
137: ; preds = %133
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0), i8** %2
br label %148
138: ; preds = %133
%139 = load i32, i32* %3
%140 = load i32, i32* @SIGPROF
%141 = icmp eq i32 %139, %140
br i1 %141, label %142, label %143
142: ; preds = %138
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i8** %2
br label %148
143: ; preds = %138
%144 = load i32, i32* %3
%145 = load i32, i32* @SIGWINCH
%146 = icmp eq i32 %144, %145
br i1 %146, label %147, label %148
147: ; preds = %143
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.28, i64 0, i64 0), i8** %2
br label %148
148: ; preds = %7, %12, %17, %22, %27, %32, %37, %42, %47, %52, %57, %62, %67, %72, %77, %82, %87, %92, %97, %102, %107, %112, %117, %122, %127, %132, %137, %142, %147, %143
%149 = load i8*, i8** %2
ret i8* %149
}

LLVM IR (-O2):
@SIGHUP = global i32 0
@.str = [4 x i8] c"HUP\00"
@SIGINT = global i32 0
@.str.1 = [4 x i8] c"INT\00"
@SIGQUIT = global i32 0
@.str.2 = [5 x i8] c"QUIT\00"
@SIGILL = global i32 0
@.str.3 = [4 x i8] c"ILL\00"
@SIGTRAP = global i32 0
@.str.4 = [5 x i8] c"TRAP\00"
@SIGABRT = global i32 0
@.str.5 = [5 x i8] c"ABRT\00"
@SIGIOT = global i32 0
@.str.6 = [4 x i8] c"IOT\00"
@SIGBUS = global i32 0
@.str.7 = [4 x i8] c"BUS\00"
@SIGFPE = global i32 0
@.str.8 = [4 x i8] c"FPE\00"
@SIGKILL = global i32 0
@.str.9 = [5 x i8] c"KILL\00"
@SIGUSR1 = global i32 0
@.str.10 = [5 x i8] c"USR1\00"
@SIGSEGV = global i32 0
@.str.11 = [5 x i8] c"SEGV\00"
@SIGUSR2 = global i32 0
@.str.12 = [5 x i8] c"USR2\00"
@SIGPIPE = global i32 0
@.str.13 = [5 x i8] c"PIPE\00"
@SIGALRM = global i32 0
@.str.14 = [5 x i8] c"ALRM\00"
@SIGTERM = global i32 0
@.str.15 = [5 x i8] c"TERM\00"
@SIGSTKFLT = global i32 0
@.str.16 = [7 x i8] c"STKFLT\00"
@SIGCHLD = global i32 0
@.str.17 = [5 x i8] c"CHLD\00"
@SIGCONT = global i32 0
@.str.18 = [5 x i8] c"CONT\00"
@SIGSTOP = global i32 0
@.str.19 = [5 x i8] c"STOP\00"
@SIGTSTP = global i32 0
@.str.20 = [5 x i8] c"TSTP\00"
@SIGTTIN = global i32 0
@.str.21 = [5 x i8] c"TTIN\00"
@SIGTTOU = global i32 0
@.str.22 = [5 x i8] c"TTOU\00"
@SIGURG = global i32 0
@.str.23 = [4 x i8] c"URG\00"
@SIGXCPU = global i32 0
@.str.24 = [5 x i8] c"XCPU\00"
@SIGXFSZ = global i32 0
@.str.25 = [5 x i8] c"XFSZ\00"
@SIGVTALRM = global i32 0
@.str.26 = [7 x i8] c"VTALRM\00"
@SIGPROF = global i32 0
@.str.27 = [5 x i8] c"PROF\00"
@SIGWINCH = global i32 0
@.str.28 = [6 x i8] c"WINCH\00"
define i8* @sig_number2name(i32 %0) {
%2 = load i32, i32* @SIGHUP
%3 = icmp eq i32 %2, %0
br i1 %3, label %86, label %4
4: ; preds = %1
%5 = load i32, i32* @SIGINT
%6 = icmp eq i32 %5, %0
br i1 %6, label %86, label %7
7: ; preds = %4
%8 = load i32, i32* @SIGQUIT
%9 = icmp eq i32 %8, %0
br i1 %9, label %86, label %10
10: ; preds = %7
%11 = load i32, i32* @SIGILL
%12 = icmp eq i32 %11, %0
br i1 %12, label %86, label %13
13: ; preds = %10
%14 = load i32, i32* @SIGTRAP
%15 = icmp eq i32 %14, %0
br i1 %15, label %86, label %16
16: ; preds = %13
%17 = load i32, i32* @SIGABRT
%18 = icmp eq i32 %17, %0
br i1 %18, label %86, label %19
19: ; preds = %16
%20 = load i32, i32* @SIGIOT
%21 = icmp eq i32 %20, %0
br i1 %21, label %86, label %22
22: ; preds = %19
%23 = load i32, i32* @SIGBUS
%24 = icmp eq i32 %23, %0
br i1 %24, label %86, label %25
25: ; preds = %22
%26 = load i32, i32* @SIGFPE
%27 = icmp eq i32 %26, %0
br i1 %27, label %86, label %28
28: ; preds = %25
%29 = load i32, i32* @SIGKILL
%30 = icmp eq i32 %29, %0
br i1 %30, label %86, label %31
31: ; preds = %28
%32 = load i32, i32* @SIGUSR1
%33 = icmp eq i32 %32, %0
br i1 %33, label %86, label %34
34: ; preds = %31
%35 = load i32, i32* @SIGSEGV
%36 = icmp eq i32 %35, %0
br i1 %36, label %86, label %37
37: ; preds = %34
%38 = load i32, i32* @SIGUSR2
%39 = icmp eq i32 %38, %0
br i1 %39, label %86, label %40
40: ; preds = %37
%41 = load i32, i32* @SIGPIPE
%42 = icmp eq i32 %41, %0
br i1 %42, label %86, label %43
43: ; preds = %40
%44 = load i32, i32* @SIGALRM
%45 = icmp eq i32 %44, %0
br i1 %45, label %86, label %46
46: ; preds = %43
%47 = load i32, i32* @SIGTERM
%48 = icmp eq i32 %47, %0
br i1 %48, label %86, label %49
49: ; preds = %46
%50 = load i32, i32* @SIGSTKFLT
%51 = icmp eq i32 %50, %0
br i1 %51, label %86, label %52
52: ; preds = %49
%53 = load i32, i32* @SIGCHLD
%54 = icmp eq i32 %53, %0
br i1 %54, label %86, label %55
55: ; preds = %52
%56 = load i32, i32* @SIGCONT
%57 = icmp eq i32 %56, %0
br i1 %57, label %86, label %58
58: ; preds = %55
%59 = load i32, i32* @SIGSTOP
%60 = icmp eq i32 %59, %0
br i1 %60, label %86, label %61
61: ; preds = %58
%62 = load i32, i32* @SIGTSTP
%63 = icmp eq i32 %62, %0
br i1 %63, label %86, label %64
64: ; preds = %61
%65 = load i32, i32* @SIGTTIN
%66 = icmp eq i32 %65, %0
br i1 %66, label %86, label %67
67: ; preds = %64
%68 = load i32, i32* @SIGTTOU
%69 = icmp eq i32 %68, %0
br i1 %69, label %86, label %70
70: ; preds = %67
%71 = load i32, i32* @SIGURG
%72 = icmp eq i32 %71, %0
br i1 %72, label %86, label %73
73: ; preds = %70
%74 = load i32, i32* @SIGXCPU
%75 = icmp eq i32 %74, %0
br i1 %75, label %86, label %76
76: ; preds = %73
%77 = load i32, i32* @SIGXFSZ
%78 = icmp eq i32 %77, %0
br i1 %78, label %86, label %79
79: ; preds = %76
%80 = load i32, i32* @SIGVTALRM
%81 = icmp eq i32 %80, %0
br i1 %81, label %86, label %82
82: ; preds = %79
%83 = load i32, i32* @SIGPROF
%84 = icmp eq i32 %83, %0
%85 = select i1 %84, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.28, i64 0, i64 0)
br label %86
86: ; preds = %82, %79, %76, %73, %70, %67, %64, %61, %58, %55, %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %4, %1
%87 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), %1 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), %4 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), %7 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), %10 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), %13 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), %16 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), %19 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), %22 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), %25 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), %28 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), %31 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), %34 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), %37 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), %40 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), %43 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), %46 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0), %49 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), %52 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), %55 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), %58 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), %61 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), %64 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i64 0, i64 0), %67 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0), %70 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), %73 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0), %76 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0), %79 ], [ %85, %82 ]
ret i8* %87
}