#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*/ errno;
char const *strerror(int /*<<< orphan*/);
const char *ssh_err(int n) {
  switch (n) {
  case 0:
    return "success";
  case -1:
    return "unexpected internal error";
  case -2:
    return "memory allocation failed";
  case -3:
    return "incomplete message";
  case -4:
    return "invalid format";
  case -5:
    return "bignum is negative";
  case -6:
    return "string is too large";
  case -7:
    return "bignum is too large";
  case -8:
    return "elliptic curve point is too large";
  case -9:
    return "insufficient buffer space";
  case -10:
    return "invalid argument";
  case -11:
    return "key bits do not match";
  case -12:
    return "invalid elliptic curve";
  case -13:
    return "key type does not match";
  case -14:
    return "unknown or unsupported key type";
  case -15:
    return "elliptic curve does not match";
  case -16:
    return "plain key provided where certificate required";
  case -17:
    return "key lacks certificate data";
  case -18:
    return "unknown/unsupported certificate type";
  case -19:
    return "invalid certificate signing key";
  case -20:
    return "invalid elliptic curve value";
  case -21:
    return "incorrect signature";
  case -22:
    return "error in libcrypto";
  case -23:
    return "unexpected bytes remain after decoding";
  case -24:
    return strerror(errno);
  case -25:
    return "invalid certificate";
  case -26:
    return "communication with agent failed";
  case -27:
    return "agent refused operation";
  case -28:
    return "DH GEX group out of range";
  case -29:
    return "disconnected";
  case -30:
    return "message authentication code incorrect";
  case -31:
    return "no matching cipher found";
  case -32:
    return "no matching MAC found";
  case -33:
    return "no matching compression method found";
  case -34:
    return "no matching key exchange method found";
  case -35:
    return "no matching host key type found";
  case -37:
    return "protocol version mismatch";
  case -38:
    return "could not read protocol version";
  case -36:
    return "could not load host key";
  case -39:
    return "rekeying not supported by peer";
  case -40:
    return "passphrase is too short (minimum five characters)";
  case -41:
    return "file changed while reading";
  case -42:
    return "key encrypted using unsupported cipher";
  case -43:
    return "incorrect passphrase supplied to decrypt private key";
  case -44:
    return "bad permissions";
  case -45:
    return "certificate does not match key";
  case -46:
    return "key not found";
  case -47:
    return "agent not present";
  case -48:
    return "agent contains no identities";
  case -49:
    return "internal error: buffer is read-only";
  case -50:
    return "KRL file has invalid magic number";
  case -51:
    return "Key is revoked";
  case -52:
    return "Connection closed";
  case -53:
    return "Connection timed out";
  case -54:
    return "Connection corrupted";
  case -55:
    return "Protocol error";
  case -56:
    return "Invalid key length";
  case -57:
    return "number is too large";
  case -58:
    return "signature algorithm not supported";
  case -59:
    return "requested feature not supported";
  case -60:
    return "device not found";
  default:
    return "unknown error";
  }
}


x86 assembly (clang, -O0):
<ssh_err>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x3c,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x3c,%eax
ja     151b <ssh_err+0x40b>
mov    -0x18(%rbp),%rax
lea    0xec5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xfa9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0xfa1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0xfab(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0xfb4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0xfb7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0xfb6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0xfb9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0xfbd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0xfc1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0xfd3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0xfdd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0xfde(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0xfe4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0xfeb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0xff3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1003(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1011(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x102f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x103a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x104f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x105f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x106c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1070(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1073(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
mov    0x2d15(%rip),%rax
mov    (%rax),%edi
call   1030 <strerror@plt>
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1073(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1077(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1087(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x108f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1099(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1096(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x10ac(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x10b5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x10bb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x10d0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x10e6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x10f6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1100(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1110(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1118(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1127(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1149(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1154(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x116b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1190(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1190(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x119f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x119d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x119f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x11ac(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x11c0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x11d2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x11d1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x11d3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x11d8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x11dd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x11dc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x11df(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x11e3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x11f5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1205(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1526 <ssh_err+0x416>
lea    0x1206(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ssh_err>:
add    $0x3c,%edi
cmp    $0x3c,%edi
ja     1137 <ssh_err+0x27>
lea    0xfd5(%rip),%rax
lea    0xeda(%rip),%rcx
movslq (%rcx,%rdi,4),%rdx
add    %rcx,%rdx
jmp    *%rdx
lea    0x15e1(%rip),%rax
ret
lea    0x15ea(%rip),%rax
ret
lea    0x15b1(%rip),%rax
ret
lea    0x1587(%rip),%rax
ret
lea    0x156b(%rip),%rax
ret
lea    0x1550(%rip),%rax
ret
lea    0x1539(%rip),%rax
ret
lea    0x151c(%rip),%rax
ret
lea    0x14ff(%rip),%rax
ret
lea    0x14e5(%rip),%rax
ret
lea    0x14ce(%rip),%rax
ret
lea    0x14a4(%rip),%rax
ret
lea    0x1478(%rip),%rax
ret
lea    0x1453(%rip),%rax
ret
lea    0x1439(%rip),%rax
ret
lea    0x1423(%rip),%rax
ret
lea    0x13fc(%rip),%rax
ret
lea    0x13e4(%rip),%rax
ret
lea    0x13a7(%rip),%rax
ret
lea    0x1378(%rip),%rax
ret
lea    0x1355(%rip),%rax
ret
lea    0x131b(%rip),%rax
ret
lea    0x12f4(%rip),%rax
ret
lea    0x12b4(%rip),%rax
ret
lea    0x1292(%rip),%rax
ret
lea    0x12c4(%rip),%rax
ret
lea    0x1262(%rip),%rax
ret
lea    0x1234(%rip),%rax
ret
lea    0x1207(%rip),%rax
ret
lea    0x11e9(%rip),%rax
ret
lea    0x11c8(%rip),%rax
ret
lea    0x119a(%rip),%rax
ret
lea    0x1185(%rip),%rax
ret
lea    0x1163(%rip),%rax
ret
lea    0x1143(%rip),%rax
ret
lea    0x111b(%rip),%rax
ret
lea    0x10ff(%rip),%rax
ret
mov    0x2d82(%rip),%rax
mov    (%rax),%edi
jmp    1030 <strerror@plt>
lea    0x10c2(%rip),%rax
ret
lea    0x10a7(%rip),%rax
ret
lea    0x108b(%rip),%rax
ret
lea    0x1066(%rip),%rax
ret
lea    0x103e(%rip),%rax
ret
lea    0x1011(%rip),%rax
ret
lea    0xfee(%rip),%rax
ret
lea    0xfb8(%rip),%rax
ret
lea    0xf92(%rip),%rax
ret
lea    0xf6a(%rip),%rax
ret
lea    0xf4a(%rip),%rax
ret
lea    0xf2b(%rip),%rax
ret
lea    0xf0d(%rip),%rax
ret
lea    0xef4(%rip),%rax
ret
lea    0xed2(%rip),%rax
ret
lea    0xea8(%rip),%rax
ret
lea    0xe8c(%rip),%rax
ret
lea    0xe70(%rip),%rax
ret
lea    0xe55(%rip),%rax
ret
lea    0xe3e(%rip),%rax
ret
lea    0xe23(%rip),%rax
ret
lea    0xe02(%rip),%rax
ret
lea    0xde0(%rip),%rax
ret

LLVM IR (-O0):
@.str = [8 x i8] c"success\00"
@.str.1 = [26 x i8] c"unexpected internal error\00"
@.str.2 = [25 x i8] c"memory allocation failed\00"
@.str.3 = [19 x i8] c"incomplete message\00"
@.str.4 = [15 x i8] c"invalid format\00"
@.str.5 = [19 x i8] c"bignum is negative\00"
@.str.6 = [20 x i8] c"string is too large\00"
@.str.7 = [20 x i8] c"bignum is too large\00"
@.str.8 = [34 x i8] c"elliptic curve point is too large\00"
@.str.9 = [26 x i8] c"insufficient buffer space\00"
@.str.10 = [17 x i8] c"invalid argument\00"
@.str.11 = [22 x i8] c"key bits do not match\00"
@.str.12 = [23 x i8] c"invalid elliptic curve\00"
@.str.13 = [24 x i8] c"key type does not match\00"
@.str.14 = [32 x i8] c"unknown or unsupported key type\00"
@.str.15 = [30 x i8] c"elliptic curve does not match\00"
@.str.16 = [46 x i8] c"plain key provided where certificate required\00"
@.str.17 = [27 x i8] c"key lacks certificate data\00"
@.str.18 = [37 x i8] c"unknown/unsupported certificate type\00"
@.str.19 = [32 x i8] c"invalid certificate signing key\00"
@.str.20 = [29 x i8] c"invalid elliptic curve value\00"
@.str.21 = [20 x i8] c"incorrect signature\00"
@.str.22 = [19 x i8] c"error in libcrypto\00"
@.str.23 = [39 x i8] c"unexpected bytes remain after decoding\00"
@errno = global i32 0
@.str.24 = [20 x i8] c"invalid certificate\00"
@.str.25 = [32 x i8] c"communication with agent failed\00"
@.str.26 = [24 x i8] c"agent refused operation\00"
@.str.27 = [26 x i8] c"DH GEX group out of range\00"
@.str.28 = [13 x i8] c"disconnected\00"
@.str.29 = [38 x i8] c"message authentication code incorrect\00"
@.str.30 = [25 x i8] c"no matching cipher found\00"
@.str.31 = [22 x i8] c"no matching MAC found\00"
@.str.32 = [37 x i8] c"no matching compression method found\00"
@.str.33 = [38 x i8] c"no matching key exchange method found\00"
@.str.34 = [32 x i8] c"no matching host key type found\00"
@.str.35 = [26 x i8] c"protocol version mismatch\00"
@.str.36 = [32 x i8] c"could not read protocol version\00"
@.str.37 = [24 x i8] c"could not load host key\00"
@.str.38 = [31 x i8] c"rekeying not supported by peer\00"
@.str.39 = [50 x i8] c"passphrase is too short (minimum five characters)\00"
@.str.40 = [27 x i8] c"file changed while reading\00"
@.str.41 = [39 x i8] c"key encrypted using unsupported cipher\00"
@.str.42 = [53 x i8] c"incorrect passphrase supplied to decrypt private key\00"
@.str.43 = [16 x i8] c"bad permissions\00"
@.str.44 = [31 x i8] c"certificate does not match key\00"
@.str.45 = [14 x i8] c"key not found\00"
@.str.46 = [18 x i8] c"agent not present\00"
@.str.47 = [29 x i8] c"agent contains no identities\00"
@.str.48 = [36 x i8] c"internal error: buffer is read-only\00"
@.str.49 = [34 x i8] c"KRL file has invalid magic number\00"
@.str.50 = [15 x i8] c"Key is revoked\00"
@.str.51 = [18 x i8] c"Connection closed\00"
@.str.52 = [21 x i8] c"Connection timed out\00"
@.str.53 = [21 x i8] c"Connection corrupted\00"
@.str.54 = [15 x i8] c"Protocol error\00"
@.str.55 = [19 x i8] c"Invalid key length\00"
@.str.56 = [20 x i8] c"number is too large\00"
@.str.57 = [34 x i8] c"signature algorithm not supported\00"
@.str.58 = [32 x i8] c"requested feature not supported\00"
@.str.59 = [17 x i8] c"device not found\00"
@.str.60 = [14 x i8] c"unknown error\00"
define i8* @ssh_err(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %68 [
i32 0, label %5
i32 -1, label %6
i32 -2, label %7
i32 -3, label %8
i32 -4, label %9
i32 -5, label %10
i32 -6, label %11
i32 -7, label %12
i32 -8, label %13
i32 -9, label %14
i32 -10, label %15
i32 -11, label %16
i32 -12, label %17
i32 -13, label %18
i32 -14, label %19
i32 -15, label %20
i32 -16, label %21
i32 -17, label %22
i32 -18, label %23
i32 -19, label %24
i32 -20, label %25
i32 -21, label %26
i32 -22, label %27
i32 -23, label %28
i32 -24, label %29
i32 -25, label %32
i32 -26, label %33
i32 -27, label %34
i32 -28, label %35
i32 -29, label %36
i32 -30, label %37
i32 -31, label %38
i32 -32, label %39
i32 -33, label %40
i32 -34, label %41
i32 -35, label %42
i32 -37, label %43
i32 -38, label %44
i32 -36, label %45
i32 -39, label %46
i32 -40, label %47
i32 -41, label %48
i32 -42, label %49
i32 -43, label %50
i32 -44, label %51
i32 -45, label %52
i32 -46, label %53
i32 -47, label %54
i32 -48, label %55
i32 -49, label %56
i32 -50, label %57
i32 -51, label %58
i32 -52, label %59
i32 -53, label %60
i32 -54, label %61
i32 -55, label %62
i32 -56, label %63
i32 -57, label %64
i32 -58, label %65
i32 -59, label %66
i32 -60, label %67
]
5: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** %2
br label %69
6: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %69
7: ; preds = %1
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %69
8: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %69
9: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %69
10: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %69
11: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %69
12: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %69
13: ; preds = %1
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %69
14: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %69
15: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %69
16: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %69
17: ; preds = %1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %69
18: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %69
19: ; preds = %1
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %69
20: ; preds = %1
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %69
21: ; preds = %1
store i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %69
22: ; preds = %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %69
23: ; preds = %1
store i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %69
24: ; preds = %1
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %69
25: ; preds = %1
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %69
26: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %69
27: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %69
28: ; preds = %1
store i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.23, i64 0, i64 0), i8** %2
br label %69
29: ; preds = %1
%30 = load i32, i32* @errno
%31 = call i8* @strerror(i32 %30)
store i8* %31, i8** %2
br label %69
32: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %69
33: ; preds = %1
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.25, i64 0, i64 0), i8** %2
br label %69
34: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.26, i64 0, i64 0), i8** %2
br label %69
35: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.27, i64 0, i64 0), i8** %2
br label %69
36: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.28, i64 0, i64 0), i8** %2
br label %69
37: ; preds = %1
store i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.29, i64 0, i64 0), i8** %2
br label %69
38: ; preds = %1
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.30, i64 0, i64 0), i8** %2
br label %69
39: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.31, i64 0, i64 0), i8** %2
br label %69
40: ; preds = %1
store i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.32, i64 0, i64 0), i8** %2
br label %69
41: ; preds = %1
store i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.33, i64 0, i64 0), i8** %2
br label %69
42: ; preds = %1
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.34, i64 0, i64 0), i8** %2
br label %69
43: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.35, i64 0, i64 0), i8** %2
br label %69
44: ; preds = %1
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.36, i64 0, i64 0), i8** %2
br label %69
45: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.37, i64 0, i64 0), i8** %2
br label %69
46: ; preds = %1
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.38, i64 0, i64 0), i8** %2
br label %69
47: ; preds = %1
store i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.39, i64 0, i64 0), i8** %2
br label %69
48: ; preds = %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.40, i64 0, i64 0), i8** %2
br label %69
49: ; preds = %1
store i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.41, i64 0, i64 0), i8** %2
br label %69
50: ; preds = %1
store i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.42, i64 0, i64 0), i8** %2
br label %69
51: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.43, i64 0, i64 0), i8** %2
br label %69
52: ; preds = %1
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.44, i64 0, i64 0), i8** %2
br label %69
53: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.45, i64 0, i64 0), i8** %2
br label %69
54: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.46, i64 0, i64 0), i8** %2
br label %69
55: ; preds = %1
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.47, i64 0, i64 0), i8** %2
br label %69
56: ; preds = %1
store i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.48, i64 0, i64 0), i8** %2
br label %69
57: ; preds = %1
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.49, i64 0, i64 0), i8** %2
br label %69
58: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.50, i64 0, i64 0), i8** %2
br label %69
59: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.51, i64 0, i64 0), i8** %2
br label %69
60: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.52, i64 0, i64 0), i8** %2
br label %69
61: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.53, i64 0, i64 0), i8** %2
br label %69
62: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.54, i64 0, i64 0), i8** %2
br label %69
63: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.55, i64 0, i64 0), i8** %2
br label %69
64: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.56, i64 0, i64 0), i8** %2
br label %69
65: ; preds = %1
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.57, i64 0, i64 0), i8** %2
br label %69
66: ; preds = %1
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.58, i64 0, i64 0), i8** %2
br label %69
67: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.59, i64 0, i64 0), i8** %2
br label %69
68: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.60, i64 0, i64 0), i8** %2
br label %69
69: ; preds = %68, %67, %66, %65, %64, %63, %62, %61, %60, %59, %58, %57, %56, %55, %54, %53, %52, %51, %50, %49, %48, %47, %46, %45, %44, %43, %42, %41, %40, %39, %38, %37, %36, %35, %34, %33, %32, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%70 = load i8*, i8** %2
ret i8* %70
}

LLVM IR (-O2):
@.str = [8 x i8] c"success\00"
@.str.1 = [26 x i8] c"unexpected internal error\00"
@.str.2 = [25 x i8] c"memory allocation failed\00"
@.str.3 = [19 x i8] c"incomplete message\00"
@.str.4 = [15 x i8] c"invalid format\00"
@.str.5 = [19 x i8] c"bignum is negative\00"
@.str.6 = [20 x i8] c"string is too large\00"
@.str.7 = [20 x i8] c"bignum is too large\00"
@.str.8 = [34 x i8] c"elliptic curve point is too large\00"
@.str.9 = [26 x i8] c"insufficient buffer space\00"
@.str.10 = [17 x i8] c"invalid argument\00"
@.str.11 = [22 x i8] c"key bits do not match\00"
@.str.12 = [23 x i8] c"invalid elliptic curve\00"
@.str.13 = [24 x i8] c"key type does not match\00"
@.str.14 = [32 x i8] c"unknown or unsupported key type\00"
@.str.15 = [30 x i8] c"elliptic curve does not match\00"
@.str.16 = [46 x i8] c"plain key provided where certificate required\00"
@.str.17 = [27 x i8] c"key lacks certificate data\00"
@.str.18 = [37 x i8] c"unknown/unsupported certificate type\00"
@.str.19 = [32 x i8] c"invalid certificate signing key\00"
@.str.20 = [29 x i8] c"invalid elliptic curve value\00"
@.str.21 = [20 x i8] c"incorrect signature\00"
@.str.22 = [19 x i8] c"error in libcrypto\00"
@.str.23 = [39 x i8] c"unexpected bytes remain after decoding\00"
@errno = global i32 0
@.str.24 = [20 x i8] c"invalid certificate\00"
@.str.25 = [32 x i8] c"communication with agent failed\00"
@.str.26 = [24 x i8] c"agent refused operation\00"
@.str.27 = [26 x i8] c"DH GEX group out of range\00"
@.str.28 = [13 x i8] c"disconnected\00"
@.str.29 = [38 x i8] c"message authentication code incorrect\00"
@.str.30 = [25 x i8] c"no matching cipher found\00"
@.str.31 = [22 x i8] c"no matching MAC found\00"
@.str.32 = [37 x i8] c"no matching compression method found\00"
@.str.33 = [38 x i8] c"no matching key exchange method found\00"
@.str.34 = [32 x i8] c"no matching host key type found\00"
@.str.35 = [26 x i8] c"protocol version mismatch\00"
@.str.36 = [32 x i8] c"could not read protocol version\00"
@.str.37 = [24 x i8] c"could not load host key\00"
@.str.38 = [31 x i8] c"rekeying not supported by peer\00"
@.str.39 = [50 x i8] c"passphrase is too short (minimum five characters)\00"
@.str.40 = [27 x i8] c"file changed while reading\00"
@.str.41 = [39 x i8] c"key encrypted using unsupported cipher\00"
@.str.42 = [53 x i8] c"incorrect passphrase supplied to decrypt private key\00"
@.str.43 = [16 x i8] c"bad permissions\00"
@.str.44 = [31 x i8] c"certificate does not match key\00"
@.str.45 = [14 x i8] c"key not found\00"
@.str.46 = [18 x i8] c"agent not present\00"
@.str.47 = [29 x i8] c"agent contains no identities\00"
@.str.48 = [36 x i8] c"internal error: buffer is read-only\00"
@.str.49 = [34 x i8] c"KRL file has invalid magic number\00"
@.str.50 = [15 x i8] c"Key is revoked\00"
@.str.51 = [18 x i8] c"Connection closed\00"
@.str.52 = [21 x i8] c"Connection timed out\00"
@.str.53 = [21 x i8] c"Connection corrupted\00"
@.str.54 = [15 x i8] c"Protocol error\00"
@.str.55 = [19 x i8] c"Invalid key length\00"
@.str.56 = [20 x i8] c"number is too large\00"
@.str.57 = [34 x i8] c"signature algorithm not supported\00"
@.str.58 = [32 x i8] c"requested feature not supported\00"
@.str.59 = [17 x i8] c"device not found\00"
@.str.60 = [14 x i8] c"unknown error\00"
define i8* @ssh_err(i32 %0) {
switch i32 %0, label %64 [
i32 0, label %65
i32 -1, label %2
i32 -2, label %3
i32 -3, label %4
i32 -4, label %5
i32 -5, label %6
i32 -6, label %7
i32 -7, label %8
i32 -8, label %9
i32 -9, label %10
i32 -10, label %11
i32 -11, label %12
i32 -12, label %13
i32 -13, label %14
i32 -14, label %15
i32 -15, label %16
i32 -16, label %17
i32 -17, label %18
i32 -18, label %19
i32 -19, label %20
i32 -20, label %21
i32 -21, label %22
i32 -22, label %23
i32 -23, label %24
i32 -24, label %25
i32 -25, label %28
i32 -26, label %29
i32 -27, label %30
i32 -28, label %31
i32 -29, label %32
i32 -30, label %33
i32 -31, label %34
i32 -32, label %35
i32 -33, label %36
i32 -34, label %37
i32 -35, label %38
i32 -37, label %39
i32 -38, label %40
i32 -36, label %41
i32 -39, label %42
i32 -40, label %43
i32 -41, label %44
i32 -42, label %45
i32 -43, label %46
i32 -44, label %47
i32 -45, label %48
i32 -46, label %49
i32 -47, label %50
i32 -48, label %51
i32 -49, label %52
i32 -50, label %53
i32 -51, label %54
i32 -52, label %55
i32 -53, label %56
i32 -54, label %57
i32 -55, label %58
i32 -56, label %59
i32 -57, label %60
i32 -58, label %61
i32 -59, label %62
i32 -60, label %63
]
2: ; preds = %1
br label %65
3: ; preds = %1
br label %65
4: ; preds = %1
br label %65
5: ; preds = %1
br label %65
6: ; preds = %1
br label %65
7: ; preds = %1
br label %65
8: ; preds = %1
br label %65
9: ; preds = %1
br label %65
10: ; preds = %1
br label %65
11: ; preds = %1
br label %65
12: ; preds = %1
br label %65
13: ; preds = %1
br label %65
14: ; preds = %1
br label %65
15: ; preds = %1
br label %65
16: ; preds = %1
br label %65
17: ; preds = %1
br label %65
18: ; preds = %1
br label %65
19: ; preds = %1
br label %65
20: ; preds = %1
br label %65
21: ; preds = %1
br label %65
22: ; preds = %1
br label %65
23: ; preds = %1
br label %65
24: ; preds = %1
br label %65
25: ; preds = %1
%26 = load i32, i32* @errno
%27 = tail call i8* @strerror(i32 %26)
br label %65
28: ; preds = %1
br label %65
29: ; preds = %1
br label %65
30: ; preds = %1
br label %65
31: ; preds = %1
br label %65
32: ; preds = %1
br label %65
33: ; preds = %1
br label %65
34: ; preds = %1
br label %65
35: ; preds = %1
br label %65
36: ; preds = %1
br label %65
37: ; preds = %1
br label %65
38: ; preds = %1
br label %65
39: ; preds = %1
br label %65
40: ; preds = %1
br label %65
41: ; preds = %1
br label %65
42: ; preds = %1
br label %65
43: ; preds = %1
br label %65
44: ; preds = %1
br label %65
45: ; preds = %1
br label %65
46: ; preds = %1
br label %65
47: ; preds = %1
br label %65
48: ; preds = %1
br label %65
49: ; preds = %1
br label %65
50: ; preds = %1
br label %65
51: ; preds = %1
br label %65
52: ; preds = %1
br label %65
53: ; preds = %1
br label %65
54: ; preds = %1
br label %65
55: ; preds = %1
br label %65
56: ; preds = %1
br label %65
57: ; preds = %1
br label %65
58: ; preds = %1
br label %65
59: ; preds = %1
br label %65
60: ; preds = %1
br label %65
61: ; preds = %1
br label %65
62: ; preds = %1
br label %65
63: ; preds = %1
br label %65
64: ; preds = %1
br label %65
65: ; preds = %1, %64, %63, %62, %61, %60, %59, %58, %57, %56, %55, %54, %53, %52, %51, %50, %49, %48, %47, %46, %45, %44, %43, %42, %41, %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %29, %28, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5, %4, %3, %2
%66 = phi i8* [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.60, i64 0, i64 0), %64 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.59, i64 0, i64 0), %63 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @.str.58, i64 0, i64 0), %62 ], [ getelementptr inbounds ([34 x i8], [34 x i8]* @.str.57, i64 0, i64 0), %61 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.56, i64 0, i64 0), %60 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.55, i64 0, i64 0), %59 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.54, i64 0, i64 0), %58 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.53, i64 0, i64 0), %57 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.52, i64 0, i64 0), %56 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.51, i64 0, i64 0), %55 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.50, i64 0, i64 0), %54 ], [ getelementptr inbounds ([34 x i8], [34 x i8]* @.str.49, i64 0, i64 0), %53 ], [ getelementptr inbounds ([36 x i8], [36 x i8]* @.str.48, i64 0, i64 0), %52 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.47, i64 0, i64 0), %51 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.46, i64 0, i64 0), %50 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.45, i64 0, i64 0), %49 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.44, i64 0, i64 0), %48 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.43, i64 0, i64 0), %47 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @.str.42, i64 0, i64 0), %46 ], [ getelementptr inbounds ([39 x i8], [39 x i8]* @.str.41, i64 0, i64 0), %45 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.40, i64 0, i64 0), %44 ], [ getelementptr inbounds ([50 x i8], [50 x i8]* @.str.39, i64 0, i64 0), %43 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.38, i64 0, i64 0), %42 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.37, i64 0, i64 0), %41 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @.str.36, i64 0, i64 0), %40 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.35, i64 0, i64 0), %39 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @.str.34, i64 0, i64 0), %38 ], [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.33, i64 0, i64 0), %37 ], [ getelementptr inbounds ([37 x i8], [37 x i8]* @.str.32, i64 0, i64 0), %36 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.31, i64 0, i64 0), %35 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.30, i64 0, i64 0), %34 ], [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.29, i64 0, i64 0), %33 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.28, i64 0, i64 0), %32 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.27, i64 0, i64 0), %31 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.26, i64 0, i64 0), %30 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @.str.25, i64 0, i64 0), %29 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.24, i64 0, i64 0), %28 ], [ %27, %25 ], [ getelementptr inbounds ([39 x i8], [39 x i8]* @.str.23, i64 0, i64 0), %24 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.22, i64 0, i64 0), %23 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.21, i64 0, i64 0), %22 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.20, i64 0, i64 0), %21 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @.str.19, i64 0, i64 0), %20 ], [ getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0), %19 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0), %18 ], [ getelementptr inbounds ([46 x i8], [46 x i8]* @.str.16, i64 0, i64 0), %17 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), %16 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @.str.14, i64 0, i64 0), %15 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0), %14 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), %13 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), %12 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), %11 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0), %10 ], [ getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), %9 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), %8 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), %7 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %66
}