#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 SIGSEGV;
int /*<<< orphan*/ abort();
int /*<<< orphan*/ longjmperror();
int /*<<< orphan*/ printf(char *);
void longjmpsignalhandler(int signal) {
  if (signal == SIGSEGV) {
    longjmperror();
    printf("Error: longjmp failed\n");
    abort();
  }
  printf("Error: longjmp failed with code ");
  switch (signal) {
  case 1:
    printf("SIGHUP\n");
    break;
  case 2:
    printf("SIGINT\n");
    break;
  case 3:
    printf("SIGQUIT\n");
    break;
  case 4:
    printf("SIGILL\n");
    break;
  case 5:
    printf("SIGTRAP\n");
    break;
  case 6:
    printf("SIGABRT\n");
    break;
  case 7:
    printf("SIGEMT\n");
    break;
  case 8:
    printf("SIGFPE\n");
    break;
  case 9:
    printf("SIGKILL\n");
    break;
  case 10:
    printf("SIGBUS\n");
    break;
  case 11:
    printf("SIGSEGV\n");
    break;
  case 12:
    printf("SIGSYS\n");
    break;
  case 13:
    printf("SIGPIPE\n");
    break;
  case 14:
    printf("SIGALRM\n");
    break;
  case 15:
    printf("SIGTERM\n");
    break;
  case 16:
    printf("SIGURG\n");
    break;
  case 17:
    printf("SIGSTOP\n");
    break;
  case 18:
    printf("SIGTSTP\n");
    break;
  case 19:
    printf("SIGCONT\n");
    break;
  case 20:
    printf("SIGCHLD\n");
    break;
  case 21:
    printf("SIGTTIN\n");
    break;
  case 22:
    printf("SIGTTOU\n");
    break;
  case 23:
    printf("SIGIO\n");
    break;
  case 24:
    printf("SIGXCPU\n");
    break;
  case 25:
    printf("SIGXFSZ\n");
    break;
  case 26:
    printf("SIGVTALRM\n");
    break;
  case 27:
    printf("SIGPROF\n");
    break;
  case 28:
    printf("SIGWINCH\n");
    break;
  case 29:
    printf("SIGINFO\n");
    break;
  case 30:
    printf("SIGUSR1\n");
    break;
  case 31:
    printf("SIGUSR2\n");
    break;
  default:
    printf("UNKNOWN\n");
    break;
  }
  abort();
}


x86 assembly (clang, -O0):
<longjmpsignalhandler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    0x2ea3(%rip),%rcx
cmp    (%rcx),%eax
jne    1167 <longjmpsignalhandler+0x37>
mov    $0x0,%al
call   1050 <longjmperror@plt>
lea    0xf21(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <abort@plt>
lea    0xf25(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x1e,%eax
ja     13ab <longjmpsignalhandler+0x27b>
mov    -0x10(%rbp),%rax
lea    0xe6d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf11(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xf08(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xeff(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xef7(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xeee(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xee6(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xede(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xed5(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xecc(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xec4(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xebb(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xeb3(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xeaa(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xea2(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe9a(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe92(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe89(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe81(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe79(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe71(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe69(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe61(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe59(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe4f(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe47(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe3f(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe39(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe31(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe2a(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe22(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe1a(%rip),%rdi
call   1040 <printf@plt>
jmp    13b7 <longjmpsignalhandler+0x287>
lea    0xe12(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <abort@plt>

x86 assembly (clang, -O2):
<longjmpsignalhandler>:
push   %rbx
mov    0x2ea0(%rip),%rax
cmp    %edi,(%rax)
jne    115c <longjmpsignalhandler+0x1c>
xor    %eax,%eax
call   1060 <longjmperror@plt>
lea    0xfc0(%rip),%rdi
jmp    118c <longjmpsignalhandler+0x4c>
mov    %edi,%ebx
lea    0xe9b(%rip),%rdi
call   1050 <printf@plt>
add    $0xffffffff,%ebx
cmp    $0x1e,%ebx
ja     1185 <longjmpsignalhandler+0x45>
movslq %ebx,%rax
lea    0xfb4(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    118c <longjmpsignalhandler+0x4c>
lea    0xf86(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@SIGSEGV = global i32 0
@.str = [23 x i8] c"Error: longjmp failed\0A\00"
@.str.1 = [33 x i8] c"Error: longjmp failed with code \00"
@.str.2 = [8 x i8] c"SIGHUP\0A\00"
@.str.3 = [8 x i8] c"SIGINT\0A\00"
@.str.4 = [9 x i8] c"SIGQUIT\0A\00"
@.str.5 = [8 x i8] c"SIGILL\0A\00"
@.str.6 = [9 x i8] c"SIGTRAP\0A\00"
@.str.7 = [9 x i8] c"SIGABRT\0A\00"
@.str.8 = [8 x i8] c"SIGEMT\0A\00"
@.str.9 = [8 x i8] c"SIGFPE\0A\00"
@.str.10 = [9 x i8] c"SIGKILL\0A\00"
@.str.11 = [8 x i8] c"SIGBUS\0A\00"
@.str.12 = [9 x i8] c"SIGSEGV\0A\00"
@.str.13 = [8 x i8] c"SIGSYS\0A\00"
@.str.14 = [9 x i8] c"SIGPIPE\0A\00"
@.str.15 = [9 x i8] c"SIGALRM\0A\00"
@.str.16 = [9 x i8] c"SIGTERM\0A\00"
@.str.17 = [8 x i8] c"SIGURG\0A\00"
@.str.18 = [9 x i8] c"SIGSTOP\0A\00"
@.str.19 = [9 x i8] c"SIGTSTP\0A\00"
@.str.20 = [9 x i8] c"SIGCONT\0A\00"
@.str.21 = [9 x i8] c"SIGCHLD\0A\00"
@.str.22 = [9 x i8] c"SIGTTIN\0A\00"
@.str.23 = [9 x i8] c"SIGTTOU\0A\00"
@.str.24 = [7 x i8] c"SIGIO\0A\00"
@.str.25 = [9 x i8] c"SIGXCPU\0A\00"
@.str.26 = [9 x i8] c"SIGXFSZ\0A\00"
@.str.27 = [11 x i8] c"SIGVTALRM\0A\00"
@.str.28 = [9 x i8] c"SIGPROF\0A\00"
@.str.29 = [10 x i8] c"SIGWINCH\0A\00"
@.str.30 = [9 x i8] c"SIGINFO\0A\00"
@.str.31 = [9 x i8] c"SIGUSR1\0A\00"
@.str.32 = [9 x i8] c"SIGUSR2\0A\00"
@.str.33 = [9 x i8] c"UNKNOWN\0A\00"
define void @longjmpsignalhandler(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @SIGSEGV
%5 = icmp eq i32 %3, %4
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = call i32 (...) @longjmperror()
%8 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (...) @abort()
unreachable
10: ; preds = %1
%11 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%12 = load i32, i32* %2
switch i32 %12, label %75 [
i32 1, label %13
i32 2, label %15
i32 3, label %17
i32 4, label %19
i32 5, label %21
i32 6, label %23
i32 7, label %25
i32 8, label %27
i32 9, label %29
i32 10, label %31
i32 11, label %33
i32 12, label %35
i32 13, label %37
i32 14, label %39
i32 15, label %41
i32 16, label %43
i32 17, label %45
i32 18, label %47
i32 19, label %49
i32 20, label %51
i32 21, label %53
i32 22, label %55
i32 23, label %57
i32 24, label %59
i32 25, label %61
i32 26, label %63
i32 27, label %65
i32 28, label %67
i32 29, label %69
i32 30, label %71
i32 31, label %73
]
13: ; preds = %10
%14 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %77
15: ; preds = %10
%16 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %77
17: ; preds = %10
%18 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
br label %77
19: ; preds = %10
%20 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %77
21: ; preds = %10
%22 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
br label %77
23: ; preds = %10
%24 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %77
25: ; preds = %10
%26 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
br label %77
27: ; preds = %10
%28 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
br label %77
29: ; preds = %10
%30 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
br label %77
31: ; preds = %10
%32 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %77
33: ; preds = %10
%34 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0))
br label %77
35: ; preds = %10
%36 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
br label %77
37: ; preds = %10
%38 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
br label %77
39: ; preds = %10
%40 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0))
br label %77
41: ; preds = %10
%42 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0))
br label %77
43: ; preds = %10
%44 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
br label %77
45: ; preds = %10
%46 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0))
br label %77
47: ; preds = %10
%48 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0))
br label %77
49: ; preds = %10
%50 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0))
br label %77
51: ; preds = %10
%52 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
br label %77
53: ; preds = %10
%54 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.22, i64 0, i64 0))
br label %77
55: ; preds = %10
%56 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.23, i64 0, i64 0))
br label %77
57: ; preds = %10
%58 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.24, i64 0, i64 0))
br label %77
59: ; preds = %10
%60 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0))
br label %77
61: ; preds = %10
%62 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.26, i64 0, i64 0))
br label %77
63: ; preds = %10
%64 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.27, i64 0, i64 0))
br label %77
65: ; preds = %10
%66 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.28, i64 0, i64 0))
br label %77
67: ; preds = %10
%68 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.29, i64 0, i64 0))
br label %77
69: ; preds = %10
%70 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.30, i64 0, i64 0))
br label %77
71: ; preds = %10
%72 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.31, i64 0, i64 0))
br label %77
73: ; preds = %10
%74 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.32, i64 0, i64 0))
br label %77
75: ; preds = %10
%76 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.33, i64 0, i64 0))
br label %77
77: ; preds = %75, %73, %71, %69, %67, %65, %63, %61, %59, %57, %55, %53, %51, %49, %47, %45, %43, %41, %39, %37, %35, %33, %31, %29, %27, %25, %23, %21, %19, %17, %15, %13
%78 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
@SIGSEGV = global i32 0
@.str.1 = [33 x i8] c"Error: longjmp failed with code \00"
@str = [8 x i8] c"SIGUSR2\00"
@str.34 = [8 x i8] c"SIGUSR1\00"
@str.35 = [8 x i8] c"SIGINFO\00"
@str.36 = [9 x i8] c"SIGWINCH\00"
@str.37 = [8 x i8] c"SIGPROF\00"
@str.38 = [10 x i8] c"SIGVTALRM\00"
@str.39 = [8 x i8] c"SIGXFSZ\00"
@str.40 = [8 x i8] c"SIGXCPU\00"
@str.41 = [6 x i8] c"SIGIO\00"
@str.42 = [8 x i8] c"SIGTTOU\00"
@str.43 = [8 x i8] c"SIGTTIN\00"
@str.44 = [8 x i8] c"SIGCHLD\00"
@str.45 = [8 x i8] c"SIGCONT\00"
@str.46 = [8 x i8] c"SIGTSTP\00"
@str.47 = [8 x i8] c"SIGSTOP\00"
@str.48 = [7 x i8] c"SIGURG\00"
@str.49 = [8 x i8] c"SIGTERM\00"
@str.50 = [8 x i8] c"SIGALRM\00"
@str.51 = [8 x i8] c"SIGPIPE\00"
@str.52 = [7 x i8] c"SIGSYS\00"
@str.53 = [8 x i8] c"SIGSEGV\00"
@str.54 = [7 x i8] c"SIGBUS\00"
@str.55 = [8 x i8] c"SIGKILL\00"
@str.56 = [7 x i8] c"SIGFPE\00"
@str.57 = [7 x i8] c"SIGEMT\00"
@str.58 = [8 x i8] c"SIGABRT\00"
@str.59 = [8 x i8] c"SIGTRAP\00"
@str.60 = [7 x i8] c"SIGILL\00"
@str.61 = [8 x i8] c"SIGQUIT\00"
@str.62 = [7 x i8] c"SIGINT\00"
@str.63 = [7 x i8] c"SIGHUP\00"
@str.64 = [8 x i8] c"UNKNOWN\00"
@str.65 = [22 x i8] c"Error: longjmp failed\00"
@reltable.longjmpsignalhandler = [31 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.63 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.62 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.61 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.60 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.59 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.58 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.57 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.56 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.55 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.54 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.53 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.52 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.51 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.50 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.49 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.48 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.47 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.46 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.45 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.44 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.43 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.42 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @str.41 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.40 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.39 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @str.38 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.37 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @str.36 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.35 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.34 to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str to i64), i64 ptrtoint ([31 x i32]* @reltable.longjmpsignalhandler to i64)) to i32)]
define void @longjmpsignalhandler(i32 %0) {
%2 = load i32, i32* @SIGSEGV
%3 = icmp eq i32 %2, %0
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = tail call i32 (...) @longjmperror()
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.65, i64 0, i64 0))
%7 = tail call i32 (...) @abort()
unreachable
8: ; preds = %1
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%10 = add i32 %0, -1
%11 = icmp ult i32 %10, 31
br i1 %11, label %12, label %16
12: ; preds = %8
%13 = sext i32 %10 to i64
%14 = shl i64 %13, 2
%15 = call i8* @llvm.load.relative.i64(i8* bitcast ([31 x i32]* @reltable.longjmpsignalhandler to i8*), i64 %14)
br label %16
16: ; preds = %8, %12
%17 = phi i8* [ %15, %12 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @str.64, i64 0, i64 0), %8 ]
%18 = tail call i32 @puts(i8* dereferenceable(1) %17)
%19 = tail call i32 (...) @abort()
unreachable
}