#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int /*<<< orphan*/ si_code;
};
typedef TYPE_1__ siginfo_t;

/* Variables and functions */
#define FPE_FLTDIV 149
#define FPE_FLTINV 148
#define FPE_FLTOVF 147
#define FPE_FLTRES 146
#define FPE_FLTSUB 145
#define FPE_FLTUND 144
#define FPE_INTDIV 143
#define FPE_INTOVF 142
#define ILL_BADSTK 141
#define ILL_COPROC 140
#define ILL_ILLADR 139
#define ILL_ILLOPC 138
#define ILL_ILLOPN 137
#define ILL_ILLTRP 136
#define ILL_PRVOPC 135
#define ILL_PRVREG 134
#define SIGABRT 133
#define SIGFPE 132
#define SIGILL 131
#define SIGINT 130
#define SIGSEGV 129
#define SIGTERM 128
int /*<<< orphan*/ _Exit(int);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ posix_print_stack_trace();
int /*<<< orphan*/ stderr;
void posix_signal_handler(int sig, siginfo_t *siginfo, void *context) {
  (void)context;
  switch (sig) {
  case SIGSEGV:
    fputs("Caught SIGSEGV: Segmentation Fault\n", stderr);
    break;
  case SIGINT:
    fputs("Caught SIGINT: Interactive attention signal, (usually ctrl+c)\n",
          stderr);
    break;
  case SIGFPE:
    switch (siginfo->si_code) {
    case FPE_INTDIV:
      fputs("Caught SIGFPE: (integer divide by zero)\n", stderr);
      break;
    case FPE_INTOVF:
      fputs("Caught SIGFPE: (integer overflow)\n", stderr);
      break;
    case FPE_FLTDIV:
      fputs("Caught SIGFPE: (floating-point divide by zero)\n", stderr);
      break;
    case FPE_FLTOVF:
      fputs("Caught SIGFPE: (floating-point overflow)\n", stderr);
      break;
    case FPE_FLTUND:
      fputs("Caught SIGFPE: (floating-point underflow)\n", stderr);
      break;
    case FPE_FLTRES:
      fputs("Caught SIGFPE: (floating-point inexact result)\n", stderr);
      break;
    case FPE_FLTINV:
      fputs("Caught SIGFPE: (floating-point invalid operation)\n", stderr);
      break;
    case FPE_FLTSUB:
      fputs("Caught SIGFPE: (sudirript out of range)\n", stderr);
      break;
    default:
      fputs("Caught SIGFPE: Arithmetic Exception\n", stderr);
      break;
    }
  case SIGILL:
    switch (siginfo->si_code) {
    case ILL_ILLOPC:
      fputs("Caught SIGILL: (illegal opcode)\n", stderr);
      break;
    case ILL_ILLOPN:
      fputs("Caught SIGILL: (illegal operand)\n", stderr);
      break;
    case ILL_ILLADR:
      fputs("Caught SIGILL: (illegal addressing mode)\n", stderr);
      break;
    case ILL_ILLTRP:
      fputs("Caught SIGILL: (illegal trap)\n", stderr);
      break;
    case ILL_PRVOPC:
      fputs("Caught SIGILL: (privileged opcode)\n", stderr);
      break;
    case ILL_PRVREG:
      fputs("Caught SIGILL: (privileged register)\n", stderr);
      break;
    case ILL_COPROC:
      fputs("Caught SIGILL: (coprocessor error)\n", stderr);
      break;
    case ILL_BADSTK:
      fputs("Caught SIGILL: (internal stack error)\n", stderr);
      break;
    default:
      fputs("Caught SIGILL: Illegal Instruction\n", stderr);
      break;
    }
    break;
  case SIGTERM:
    fputs("Caught SIGTERM: a termination request was sent to the program\n",
          stderr);
    break;
  case SIGABRT:
    fputs("Caught SIGABRT: usually caused by an abort() or assert()\n", stderr);
    break;
  default:
    break;
  }
  posix_print_stack_trace();
  _Exit(1);
}


x86 assembly (clang, -O0):
<posix_signal_handler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x5,%eax
ja     1404 <posix_signal_handler+0x2d4>
mov    -0x20(%rbp),%rax
lea    0xe9d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2e6d(%rip),%rax
mov    (%rax),%esi
lea    0xedc(%rip),%rdi
call   1030 <fputs@plt>
jmp    1409 <posix_signal_handler+0x2d9>
mov    0x2e53(%rip),%rax
mov    (%rax),%esi
lea    0xee6(%rip),%rdi
call   1030 <fputs@plt>
jmp    1409 <posix_signal_handler+0x2d9>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
add    $0xffffff72,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x7,%eax
ja     129e <posix_signal_handler+0x16e>
mov    -0x28(%rbp),%rax
lea    0xe53(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2e0b(%rip),%rax
mov    (%rax),%esi
lea    0xedd(%rip),%rdi
call   1030 <fputs@plt>
jmp    12b3 <posix_signal_handler+0x183>
mov    0x2df1(%rip),%rax
mov    (%rax),%esi
lea    0xeec(%rip),%rdi
call   1030 <fputs@plt>
jmp    12b3 <posix_signal_handler+0x183>
mov    0x2dd7(%rip),%rax
mov    (%rax),%esi
lea    0xef5(%rip),%rdi
call   1030 <fputs@plt>
jmp    12b3 <posix_signal_handler+0x183>
mov    0x2dbd(%rip),%rax
mov    (%rax),%esi
lea    0xf0b(%rip),%rdi
call   1030 <fputs@plt>
jmp    12b3 <posix_signal_handler+0x183>
mov    0x2da3(%rip),%rax
mov    (%rax),%esi
lea    0xf1b(%rip),%rdi
call   1030 <fputs@plt>
jmp    12b3 <posix_signal_handler+0x183>
mov    0x2d89(%rip),%rax
mov    (%rax),%esi
lea    0xf2c(%rip),%rdi
call   1030 <fputs@plt>
jmp    12b3 <posix_signal_handler+0x183>
mov    0x2d6f(%rip),%rax
mov    (%rax),%esi
lea    0xf42(%rip),%rdi
call   1030 <fputs@plt>
jmp    12b3 <posix_signal_handler+0x183>
mov    0x2d55(%rip),%rax
mov    (%rax),%esi
lea    0xf5b(%rip),%rdi
call   1030 <fputs@plt>
jmp    12b3 <posix_signal_handler+0x183>
mov    0x2d3b(%rip),%rax
mov    (%rax),%esi
lea    0xf6a(%rip),%rdi
call   1030 <fputs@plt>
jmp    12b8 <posix_signal_handler+0x188>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
add    $0xffffff7a,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0x7,%eax
ja     13b6 <posix_signal_handler+0x286>
mov    -0x30(%rbp),%rax
lea    0xd5b(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2cf3(%rip),%rax
mov    (%rax),%esi
lea    0xf47(%rip),%rdi
call   1030 <fputs@plt>
jmp    13cb <posix_signal_handler+0x29b>
mov    0x2cd9(%rip),%rax
mov    (%rax),%esi
lea    0xf4e(%rip),%rdi
call   1030 <fputs@plt>
jmp    13cb <posix_signal_handler+0x29b>
mov    0x2cbf(%rip),%rax
mov    (%rax),%esi
lea    0xf56(%rip),%rdi
call   1030 <fputs@plt>
jmp    13cb <posix_signal_handler+0x29b>
mov    0x2ca5(%rip),%rax
mov    (%rax),%esi
lea    0xf66(%rip),%rdi
call   1030 <fputs@plt>
jmp    13cb <posix_signal_handler+0x29b>
mov    0x2c8b(%rip),%rax
mov    (%rax),%esi
lea    0xf6b(%rip),%rdi
call   1030 <fputs@plt>
jmp    13cb <posix_signal_handler+0x29b>
mov    0x2c71(%rip),%rax
mov    (%rax),%esi
lea    0xf75(%rip),%rdi
call   1030 <fputs@plt>
jmp    13cb <posix_signal_handler+0x29b>
mov    0x2c57(%rip),%rax
mov    (%rax),%esi
lea    0xf81(%rip),%rdi
call   1030 <fputs@plt>
jmp    13cb <posix_signal_handler+0x29b>
mov    0x2c3d(%rip),%rax
mov    (%rax),%esi
lea    0xf8b(%rip),%rdi
call   1030 <fputs@plt>
jmp    13cb <posix_signal_handler+0x29b>
mov    0x2c23(%rip),%rax
mov    (%rax),%esi
lea    0xf98(%rip),%rdi
call   1030 <fputs@plt>
jmp    1409 <posix_signal_handler+0x2d9>
mov    0x2c09(%rip),%rax
mov    (%rax),%esi
lea    0xfa2(%rip),%rdi
call   1030 <fputs@plt>
jmp    1409 <posix_signal_handler+0x2d9>
mov    0x2bef(%rip),%rax
mov    (%rax),%esi
lea    0xfc7(%rip),%rdi
call   1030 <fputs@plt>
jmp    1409 <posix_signal_handler+0x2d9>
jmp    1409 <posix_signal_handler+0x2d9>
mov    $0x0,%al
call   1040 <posix_print_stack_trace@plt>
mov    $0x1,%edi
call   1050 <_Exit@plt>

x86 assembly (clang, -O2):
<posix_signal_handler>:
push   %rbx
mov    %edi,%eax
add    $0xffffff80,%eax
cmp    $0x5,%eax
ja     11da <posix_signal_handler+0xaa>
mov    %rsi,%rbx
lea    0xf0f(%rip),%rdi
lea    0xeb0(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1222(%rip),%rdi
jmp    11cc <posix_signal_handler+0x9c>
mov    $0xffffff72,%eax
add    (%rbx),%eax
cmp    $0x7,%eax
ja     1192 <posix_signal_handler+0x62>
cltq
lea    0xea1(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    1199 <posix_signal_handler+0x69>
lea    0xef5(%rip),%rdi
jmp    11cc <posix_signal_handler+0x9c>
lea    0x1231(%rip),%rdi
jmp    11cc <posix_signal_handler+0x9c>
lea    0x107f(%rip),%rdi
mov    0x2e40(%rip),%rax
mov    (%rax),%esi
call   1030 <fputs@plt>
mov    $0xffffff7a,%eax
add    (%rbx),%eax
cmp    $0x8,%eax
jae    11c5 <posix_signal_handler+0x95>
cltq
lea    0xe7c(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    11cc <posix_signal_handler+0x9c>
lea    0x1192(%rip),%rdi
mov    0x2e0d(%rip),%rax
mov    (%rax),%esi
call   1030 <fputs@plt>
xor    %eax,%eax
call   1040 <posix_print_stack_trace@plt>
mov    $0x1,%edi
call   1050 <_Exit@plt>

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32 }
@.str = [36 x i8] c"Caught SIGSEGV: Segmentation Fault\0A\00"
@stderr = global i32 0
@.str.1 = [63 x i8] c"Caught SIGINT: Interactive attention signal, (usually ctrl+c)\0A\00"
@.str.2 = [41 x i8] c"Caught SIGFPE: (integer divide by zero)\0A\00"
@.str.3 = [35 x i8] c"Caught SIGFPE: (integer overflow)\0A\00"
@.str.4 = [48 x i8] c"Caught SIGFPE: (floating-point divide by zero)\0A\00"
@.str.5 = [42 x i8] c"Caught SIGFPE: (floating-point overflow)\0A\00"
@.str.6 = [43 x i8] c"Caught SIGFPE: (floating-point underflow)\0A\00"
@.str.7 = [48 x i8] c"Caught SIGFPE: (floating-point inexact result)\0A\00"
@.str.8 = [51 x i8] c"Caught SIGFPE: (floating-point invalid operation)\0A\00"
@.str.9 = [41 x i8] c"Caught SIGFPE: (sudirript out of range)\0A\00"
@.str.10 = [37 x i8] c"Caught SIGFPE: Arithmetic Exception\0A\00"
@.str.11 = [33 x i8] c"Caught SIGILL: (illegal opcode)\0A\00"
@.str.12 = [34 x i8] c"Caught SIGILL: (illegal operand)\0A\00"
@.str.13 = [42 x i8] c"Caught SIGILL: (illegal addressing mode)\0A\00"
@.str.14 = [31 x i8] c"Caught SIGILL: (illegal trap)\0A\00"
@.str.15 = [36 x i8] c"Caught SIGILL: (privileged opcode)\0A\00"
@.str.16 = [38 x i8] c"Caught SIGILL: (privileged register)\0A\00"
@.str.17 = [36 x i8] c"Caught SIGILL: (coprocessor error)\0A\00"
@.str.18 = [39 x i8] c"Caught SIGILL: (internal stack error)\0A\00"
@.str.19 = [36 x i8] c"Caught SIGILL: Illegal Instruction\0A\00"
@.str.20 = [63 x i8] c"Caught SIGTERM: a termination request was sent to the program\0A\00"
@.str.21 = [58 x i8] c"Caught SIGABRT: usually caused by an abort() or assert()\0A\00"
define void @posix_signal_handler(i32 %0, %struct.TYPE_3__* %1, i8* %2) {
%4 = alloca i32
%5 = alloca %struct.TYPE_3__*
%6 = alloca i8*
store i32 %0, i32* %4
store %struct.TYPE_3__* %1, %struct.TYPE_3__** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %6
%8 = load i32, i32* %4
switch i32 %8, label %85 [
i32 129, label %9
i32 130, label %12
i32 132, label %15
i32 131, label %47
i32 128, label %79
i32 133, label %82
]
9: ; preds = %3
%10 = load i32, i32* @stderr
%11 = call i32 @fputs(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 %10)
br label %86
12: ; preds = %3
%13 = load i32, i32* @stderr
%14 = call i32 @fputs(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.1, i64 0, i64 0), i32 %13)
br label %86
15: ; preds = %3
%16 = load %struct.TYPE_3__*, %struct.TYPE_3__** %5
%17 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %16, i32 0, i32 0
%18 = load i32, i32* %17
switch i32 %18, label %43 [
i32 143, label %19
i32 142, label %22
i32 149, label %25
i32 147, label %28
i32 144, label %31
i32 146, label %34
i32 148, label %37
i32 145, label %40
]
19: ; preds = %15
%20 = load i32, i32* @stderr
%21 = call i32 @fputs(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i32 %20)
br label %46
22: ; preds = %15
%23 = load i32, i32* @stderr
%24 = call i32 @fputs(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 %23)
br label %46
25: ; preds = %15
%26 = load i32, i32* @stderr
%27 = call i32 @fputs(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), i32 %26)
br label %46
28: ; preds = %15
%29 = load i32, i32* @stderr
%30 = call i32 @fputs(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0), i32 %29)
br label %46
31: ; preds = %15
%32 = load i32, i32* @stderr
%33 = call i32 @fputs(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i32 %32)
br label %46
34: ; preds = %15
%35 = load i32, i32* @stderr
%36 = call i32 @fputs(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0), i32 %35)
br label %46
37: ; preds = %15
%38 = load i32, i32* @stderr
%39 = call i32 @fputs(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0), i32 %38)
br label %46
40: ; preds = %15
%41 = load i32, i32* @stderr
%42 = call i32 @fputs(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0), i32 %41)
br label %46
43: ; preds = %15
%44 = load i32, i32* @stderr
%45 = call i32 @fputs(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0), i32 %44)
br label %46
46: ; preds = %43, %40, %37, %34, %31, %28, %25, %22, %19
br label %47
47: ; preds = %3, %46
%48 = load %struct.TYPE_3__*, %struct.TYPE_3__** %5
%49 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %48, i32 0, i32 0
%50 = load i32, i32* %49
switch i32 %50, label %75 [
i32 138, label %51
i32 137, label %54
i32 139, label %57
i32 136, label %60
i32 135, label %63
i32 134, label %66
i32 140, label %69
i32 141, label %72
]
51: ; preds = %47
%52 = load i32, i32* @stderr
%53 = call i32 @fputs(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i32 %52)
br label %78
54: ; preds = %47
%55 = load i32, i32* @stderr
%56 = call i32 @fputs(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0), i32 %55)
br label %78
57: ; preds = %47
%58 = load i32, i32* @stderr
%59 = call i32 @fputs(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.13, i64 0, i64 0), i32 %58)
br label %78
60: ; preds = %47
%61 = load i32, i32* @stderr
%62 = call i32 @fputs(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.14, i64 0, i64 0), i32 %61)
br label %78
63: ; preds = %47
%64 = load i32, i32* @stderr
%65 = call i32 @fputs(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.15, i64 0, i64 0), i32 %64)
br label %78
66: ; preds = %47
%67 = load i32, i32* @stderr
%68 = call i32 @fputs(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0), i32 %67)
br label %78
69: ; preds = %47
%70 = load i32, i32* @stderr
%71 = call i32 @fputs(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0), i32 %70)
br label %78
72: ; preds = %47
%73 = load i32, i32* @stderr
%74 = call i32 @fputs(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.18, i64 0, i64 0), i32 %73)
br label %78
75: ; preds = %47
%76 = load i32, i32* @stderr
%77 = call i32 @fputs(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.19, i64 0, i64 0), i32 %76)
br label %78
78: ; preds = %75, %72, %69, %66, %63, %60, %57, %54, %51
br label %86
79: ; preds = %3
%80 = load i32, i32* @stderr
%81 = call i32 @fputs(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.20, i64 0, i64 0), i32 %80)
br label %86
82: ; preds = %3
%83 = load i32, i32* @stderr
%84 = call i32 @fputs(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.21, i64 0, i64 0), i32 %83)
br label %86
85: ; preds = %3
br label %86
86: ; preds = %85, %82, %79, %78, %12, %9
%87 = call i32 (...) @posix_print_stack_trace()
%88 = call i32 @_Exit(i32 1)
unreachable
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32 }
@.str = [36 x i8] c"Caught SIGSEGV: Segmentation Fault\0A\00"
@stderr = global i32 0
@.str.1 = [63 x i8] c"Caught SIGINT: Interactive attention signal, (usually ctrl+c)\0A\00"
@.str.2 = [41 x i8] c"Caught SIGFPE: (integer divide by zero)\0A\00"
@.str.3 = [35 x i8] c"Caught SIGFPE: (integer overflow)\0A\00"
@.str.4 = [48 x i8] c"Caught SIGFPE: (floating-point divide by zero)\0A\00"
@.str.5 = [42 x i8] c"Caught SIGFPE: (floating-point overflow)\0A\00"
@.str.6 = [43 x i8] c"Caught SIGFPE: (floating-point underflow)\0A\00"
@.str.7 = [48 x i8] c"Caught SIGFPE: (floating-point inexact result)\0A\00"
@.str.8 = [51 x i8] c"Caught SIGFPE: (floating-point invalid operation)\0A\00"
@.str.9 = [41 x i8] c"Caught SIGFPE: (sudirript out of range)\0A\00"
@.str.10 = [37 x i8] c"Caught SIGFPE: Arithmetic Exception\0A\00"
@.str.11 = [33 x i8] c"Caught SIGILL: (illegal opcode)\0A\00"
@.str.12 = [34 x i8] c"Caught SIGILL: (illegal operand)\0A\00"
@.str.13 = [42 x i8] c"Caught SIGILL: (illegal addressing mode)\0A\00"
@.str.14 = [31 x i8] c"Caught SIGILL: (illegal trap)\0A\00"
@.str.15 = [36 x i8] c"Caught SIGILL: (privileged opcode)\0A\00"
@.str.16 = [38 x i8] c"Caught SIGILL: (privileged register)\0A\00"
@.str.17 = [36 x i8] c"Caught SIGILL: (coprocessor error)\0A\00"
@.str.18 = [39 x i8] c"Caught SIGILL: (internal stack error)\0A\00"
@.str.19 = [36 x i8] c"Caught SIGILL: Illegal Instruction\0A\00"
@.str.20 = [63 x i8] c"Caught SIGTERM: a termination request was sent to the program\0A\00"
@.str.21 = [58 x i8] c"Caught SIGABRT: usually caused by an abort() or assert()\0A\00"
@reltable.posix_signal_handler = [8 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @.str.3 to i64), i64 ptrtoint ([8 x i32]* @reltable.posix_signal_handler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([41 x i8]* @.str.2 to i64), i64 ptrtoint ([8 x i32]* @reltable.posix_signal_handler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([43 x i8]* @.str.6 to i64), i64 ptrtoint ([8 x i32]* @reltable.posix_signal_handler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([41 x i8]* @.str.9 to i64), i64 ptrtoint ([8 x i32]* @reltable.posix_signal_handler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([48 x i8]* @.str.7 to i64), i64 ptrtoint ([8 x i32]* @reltable.posix_signal_handler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.5 to i64), i64 ptrtoint ([8 x i32]* @reltable.posix_signal_handler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([51 x i8]* @.str.8 to i64), i64 ptrtoint ([8 x i32]* @reltable.posix_signal_handler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([48 x i8]* @.str.4 to i64), i64 ptrtoint ([8 x i32]* @reltable.posix_signal_handler to i64)) to i32)]
@reltable.posix_signal_handler.23 = [8 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([38 x i8]* @.str.16 to i64), i64 ptrtoint ([8 x i32]* @reltable.posix_signal_handler.23 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([36 x i8]* @.str.15 to i64), i64 ptrtoint ([8 x i32]* @reltable.posix_signal_handler.23 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([31 x i8]* @.str.14 to i64), i64 ptrtoint ([8 x i32]* @reltable.posix_signal_handler.23 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([34 x i8]* @.str.12 to i64), i64 ptrtoint ([8 x i32]* @reltable.posix_signal_handler.23 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([33 x i8]* @.str.11 to i64), i64 ptrtoint ([8 x i32]* @reltable.posix_signal_handler.23 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([42 x i8]* @.str.13 to i64), i64 ptrtoint ([8 x i32]* @reltable.posix_signal_handler.23 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([36 x i8]* @.str.17 to i64), i64 ptrtoint ([8 x i32]* @reltable.posix_signal_handler.23 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([39 x i8]* @.str.18 to i64), i64 ptrtoint ([8 x i32]* @reltable.posix_signal_handler.23 to i64)) to i32)]
define void @posix_signal_handler(i32 %0, %struct.TYPE_3__* nocapture %1, i8* nocapture readnone %2) {
switch i32 %0, label %33 [
i32 129, label %29
i32 130, label %4
i32 132, label %5
i32 131, label %18
i32 128, label %23
i32 133, label %24
]
4: ; preds = %3
br label %29
5: ; preds = %3
%6 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %1, i64 0, i32 0
%7 = load i32, i32* %6
%8 = add i32 %7, -142
%9 = icmp ult i32 %8, 8
br i1 %9, label %10, label %14
10: ; preds = %5
%11 = sext i32 %8 to i64
%12 = shl i64 %11, 2
%13 = call i8* @llvm.load.relative.i64(i8* bitcast ([8 x i32]* @reltable.posix_signal_handler to i8*), i64 %12)
br label %14
14: ; preds = %5, %10
%15 = phi i8* [ %13, %10 ], [ getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0), %5 ]
%16 = load i32, i32* @stderr
%17 = tail call i32 @fputs(i8* %15, i32 %16)
br label %18
18: ; preds = %14, %3
%19 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %1, i64 0, i32 0
%20 = load i32, i32* %19
%21 = add i32 %20, -134
%22 = icmp ult i32 %21, 8
br i1 %22, label %25, label %29
23: ; preds = %3
br label %29
24: ; preds = %3
br label %29
25: ; preds = %18
%26 = sext i32 %21 to i64
%27 = shl i64 %26, 2
%28 = call i8* @llvm.load.relative.i64(i8* bitcast ([8 x i32]* @reltable.posix_signal_handler.23 to i8*), i64 %27)
br label %29
29: ; preds = %18, %25, %3, %4, %23, %24
%30 = phi i8* [ getelementptr inbounds ([58 x i8], [58 x i8]* @.str.21, i64 0, i64 0), %24 ], [ getelementptr inbounds ([63 x i8], [63 x i8]* @.str.20, i64 0, i64 0), %23 ], [ getelementptr inbounds ([63 x i8], [63 x i8]* @.str.1, i64 0, i64 0), %4 ], [ getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), %3 ], [ %28, %25 ], [ getelementptr inbounds ([36 x i8], [36 x i8]* @.str.19, i64 0, i64 0), %18 ]
%31 = load i32, i32* @stderr
%32 = tail call i32 @fputs(i8* %30, i32 %31)
br label %33
33: ; preds = %29, %3
%34 = tail call i32 (...) @posix_print_stack_trace()
%35 = tail call i32 @_Exit(i32 1)
unreachable
}