#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 */
typedef int /*<<< orphan*/ arphrd_names;

/* Variables and functions */
#define ARPHRD_ADAPT 174
#define ARPHRD_APPLETLK 173
#define ARPHRD_ARCNET 172
#define ARPHRD_ASH 171
#define ARPHRD_ATM 170
#define ARPHRD_AX25 169
#define ARPHRD_BIF 168
#define ARPHRD_CHAOS 167
#define ARPHRD_CSLIP 166
#define ARPHRD_CSLIP6 165
#define ARPHRD_DDCMP 164
#define ARPHRD_DLCI 163
#define ARPHRD_ECONET 162
#define ARPHRD_EETHER 161
#define ARPHRD_ETHER 160
#define ARPHRD_FCAL 159
#define ARPHRD_FCFABRIC 158
#define ARPHRD_FCPL 157
#define ARPHRD_FCPP 156
#define ARPHRD_FDDI 155
#define ARPHRD_FRAD 154
#define ARPHRD_HDLC 153
#define ARPHRD_HIPPI 152
#define ARPHRD_HWX25 151
#define ARPHRD_IEEE1394 150
#define ARPHRD_IEEE802 149
#define ARPHRD_IEEE80211 148
#define ARPHRD_IPDDP 147
#define ARPHRD_IPGRE 146
#define ARPHRD_IRDA 145
#define ARPHRD_LAPB 144
#define ARPHRD_LOCALTLK 143
#define ARPHRD_LOOPBACK 142
#define ARPHRD_METRICOM 141
#define ARPHRD_PIMREG 140
#define ARPHRD_PPP 139
#define ARPHRD_PRONET 138
#define ARPHRD_RAWHDLC 137
#define ARPHRD_ROSE 136
#define ARPHRD_RSRVD 135
#define ARPHRD_SIT 134
#define ARPHRD_SKIP 133
#define ARPHRD_SLIP 132
#define ARPHRD_SLIP6 131
#define ARPHRD_TUNNEL 130
#define ARPHRD_TUNNEL6 129
#define ARPHRD_X25 128
int /*<<< orphan*/ snprintf(char *, int, char *, int);
char *ll_type_n2a(int type, char *buf, int len) {
  static struct {
    int type;
    char *name;
  } arphrd_names[] = {
      {0, "generic"},
      {ARPHRD_ETHER, "ether"},
      {ARPHRD_EETHER, "eether"},
      {ARPHRD_AX25, "ax25"},
      {ARPHRD_PRONET, "pronet"},
      {ARPHRD_CHAOS, "chaos"},
      {ARPHRD_IEEE802, "tr"},
      {ARPHRD_ARCNET, "arcnet"},
      {ARPHRD_APPLETLK, "atalk"},
      {ARPHRD_DLCI, "dlci"},
      {ARPHRD_ATM, "atm"},
      {ARPHRD_METRICOM, "metricom"},
      {ARPHRD_IEEE1394, "ieee1394"},
      {ARPHRD_SLIP, "slip"},
      {ARPHRD_CSLIP, "cslip"},
      {ARPHRD_SLIP6, "slip6"},
      {ARPHRD_CSLIP6, "cslip6"},
      {ARPHRD_RSRVD, "rsrvd"},
      {ARPHRD_ADAPT, "adapt"},
      {ARPHRD_ROSE, "rose"},
      {ARPHRD_X25, "x25"},
      {ARPHRD_HWX25, "hwx25"},
      {ARPHRD_PPP, "ppp"},
      {ARPHRD_HDLC, "hdlc"},
      {ARPHRD_LAPB, "lapb"},
      {ARPHRD_DDCMP, "ddcmp"},
      {ARPHRD_RAWHDLC, "rawhdlc"},
      {ARPHRD_TUNNEL, "ipip"},
      {ARPHRD_TUNNEL6, "tunnel6"},
      {ARPHRD_FRAD, "frad"},
      {ARPHRD_SKIP, "skip"},
      {ARPHRD_LOOPBACK, "loopback"},
      {ARPHRD_LOCALTLK, "ltalk"},
      {ARPHRD_FDDI, "fddi"},
      {ARPHRD_BIF, "bif"},
      {ARPHRD_SIT, "sit"},
      {ARPHRD_IPDDP, "ip/ddp"},
      {ARPHRD_IPGRE, "gre"},
      {ARPHRD_PIMREG, "pimreg"},
      {ARPHRD_HIPPI, "hippi"},
      {ARPHRD_ASH, "ash"},
      {ARPHRD_ECONET, "econet"},
      {ARPHRD_IRDA, "irda"},
      {ARPHRD_FCPP, "fcpp"},
      {ARPHRD_FCAL, "fcal"},
      {ARPHRD_FCPL, "fcpl"},
      {ARPHRD_FCFABRIC, "fcfb0"},
      {ARPHRD_FCFABRIC + 1, "fcfb1"},
      {ARPHRD_FCFABRIC + 2, "fcfb2"},
      {ARPHRD_FCFABRIC + 3, "fcfb3"},
      {ARPHRD_FCFABRIC + 4, "fcfb4"},
      {ARPHRD_FCFABRIC + 5, "fcfb5"},
      {ARPHRD_FCFABRIC + 6, "fcfb6"},
      {ARPHRD_FCFABRIC + 7, "fcfb7"},
      {ARPHRD_FCFABRIC + 8, "fcfb8"},
      {ARPHRD_FCFABRIC + 9, "fcfb9"},
      {ARPHRD_FCFABRIC + 10, "fcfb10"},
      {ARPHRD_FCFABRIC + 11, "fcfb11"},
      {ARPHRD_FCFABRIC + 12, "fcfb12"},
      {ARPHRD_IEEE80211, "ieee802.11"},
  };
  int i;
  for (i = 0; i < sizeof(arphrd_names) / sizeof(arphrd_names[0]); i++) {
    if (arphrd_names[i].type == type)
      return arphrd_names[i].name;
  }
  snprintf(buf, len, "[%d]", type);
  return buf;
}


x86 assembly (clang, -O0):
<ll_type_n2a>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movslq -0x20(%rbp),%rax
cmp    $0x3c,%rax
jae    1186 <ll_type_n2a+0x76>
movslq -0x20(%rbp),%rcx
lea    0x2eee(%rip),%rax
shl    $0x4,%rcx
add    %rcx,%rax
mov    (%rax),%eax
cmp    -0xc(%rbp),%eax
jne    1173 <ll_type_n2a+0x63>
movslq -0x20(%rbp),%rcx
lea    0x2ed1(%rip),%rax
shl    $0x4,%rcx
add    %rcx,%rax
mov    0x8(%rax),%rax
mov    %rax,-0x8(%rbp)
jmp    11a4 <ll_type_n2a+0x94>
jmp    1178 <ll_type_n2a+0x68>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1129 <ll_type_n2a+0x19>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0xc(%rbp),%ecx
lea    0xfb6(%rip),%rdx
call   1030 <snprintf@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ll_type_n2a>:
push   %rbx
mov    %rsi,%rbx
mov    %edi,%ecx
mov    $0x4,%eax
lea    0x297e(%rip),%rsi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    %ecx,-0x40(%rsi)
je     116c <ll_type_n2a+0x5c>
cmp    %ecx,-0x30(%rsi)
je     1172 <ll_type_n2a+0x62>
cmp    %ecx,-0x20(%rsi)
je     1178 <ll_type_n2a+0x68>
cmp    %ecx,-0x10(%rsi)
je     117e <ll_type_n2a+0x6e>
cmp    %ecx,(%rsi)
je     1182 <ll_type_n2a+0x72>
add    $0x5,%rax
add    $0x50,%rsi
cmp    $0x40,%rax
jne    1130 <ll_type_n2a+0x20>
lea    0xff0(%rip),%rax
mov    %rbx,%rdi
mov    %edx,%esi
mov    %rax,%rdx
call   1030 <snprintf@plt>
jmp    1194 <ll_type_n2a+0x84>
add    $0xfffffffffffffffc,%rax
jmp    1182 <ll_type_n2a+0x72>
add    $0xfffffffffffffffd,%rax
jmp    1182 <ll_type_n2a+0x72>
add    $0xfffffffffffffffe,%rax
jmp    1182 <ll_type_n2a+0x72>
add    $0xffffffffffffffff,%rax
mov    %eax,%eax
shl    $0x4,%rax
lea    0x28d1(%rip),%rcx
mov    0x8(%rax,%rcx,1),%rbx
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
%struct.anon = type { i32, i8* }
@ll_type_n2a.arphrd_names = internal global [60 x %struct.anon] [%struct.anon { i32 0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0) }, %struct.anon { i32 160, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0) }, %struct.anon { i32 161, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0) }, %struct.anon { i32 169, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0) }, %struct.anon { i32 138, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i32 0, i32 0) }, %struct.anon { i32 167, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i32 0, i32 0) }, %struct.anon { i32 149, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i32 0, i32 0) }, %struct.anon { i32 172, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i32 0, i32 0) }, %struct.anon { i32 173, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i32 0, i32 0) }, %struct.anon { i32 163, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0) }, %struct.anon { i32 170, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0) }, %struct.anon { i32 141, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i32 0, i32 0) }, %struct.anon { i32 150, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i32 0, i32 0) }, %struct.anon { i32 132, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i32 0, i32 0) }, %struct.anon { i32 166, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i32 0, i32 0) }, %struct.anon { i32 131, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i32 0, i32 0) }, %struct.anon { i32 165, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i32 0, i32 0) }, %struct.anon { i32 135, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i32 0, i32 0) }, %struct.anon { i32 174, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i32 0, i32 0) }, %struct.anon { i32 136, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i32 0, i32 0) }, %struct.anon { i32 128, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i32 0, i32 0) }, %struct.anon { i32 151, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i32 0, i32 0) }, %struct.anon { i32 139, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i32 0, i32 0) }, %struct.anon { i32 153, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i32 0, i32 0) }, %struct.anon { i32 144, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i32 0, i32 0) }, %struct.anon { i32 164, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i32 0, i32 0) }, %struct.anon { i32 137, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.26, i32 0, i32 0) }, %struct.anon { i32 130, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i32 0, i32 0) }, %struct.anon { i32 129, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i32 0, i32 0) }, %struct.anon { i32 154, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i32 0, i32 0) }, %struct.anon { i32 133, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.30, i32 0, i32 0) }, %struct.anon { i32 142, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.31, i32 0, i32 0) }, %struct.anon { i32 143, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.32, i32 0, i32 0) }, %struct.anon { i32 155, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i32 0, i32 0) }, %struct.anon { i32 168, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.34, i32 0, i32 0) }, %struct.anon { i32 134, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.35, i32 0, i32 0) }, %struct.anon { i32 147, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.36, i32 0, i32 0) }, %struct.anon { i32 146, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.37, i32 0, i32 0) }, %struct.anon { i32 140, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.38, i32 0, i32 0) }, %struct.anon { i32 152, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.39, i32 0, i32 0) }, %struct.anon { i32 171, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.40, i32 0, i32 0) }, %struct.anon { i32 162, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.41, i32 0, i32 0) }, %struct.anon { i32 145, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.42, i32 0, i32 0) }, %struct.anon { i32 156, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.43, i32 0, i32 0) }, %struct.anon { i32 159, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.44, i32 0, i32 0) }, %struct.anon { i32 157, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.45, i32 0, i32 0) }, %struct.anon { i32 158, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.46, i32 0, i32 0) }, %struct.anon { i32 159, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.47, i32 0, i32 0) }, %struct.anon { i32 160, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.48, i32 0, i32 0) }, %struct.anon { i32 161, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.49, i32 0, i32 0) }, %struct.anon { i32 162, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.50, i32 0, i32 0) }, %struct.anon { i32 163, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.51, i32 0, i32 0) }, %struct.anon { i32 164, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.52, i32 0, i32 0) }, %struct.anon { i32 165, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.53, i32 0, i32 0) }, %struct.anon { i32 166, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.54, i32 0, i32 0) }, %struct.anon { i32 167, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.55, i32 0, i32 0) }, %struct.anon { i32 168, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.56, i32 0, i32 0) }, %struct.anon { i32 169, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.57, i32 0, i32 0) }, %struct.anon { i32 170, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.58, i32 0, i32 0) }, %struct.anon { i32 148, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.59, i32 0, i32 0) }]
@.str = [8 x i8] c"generic\00"
@.str.1 = [6 x i8] c"ether\00"
@.str.2 = [7 x i8] c"eether\00"
@.str.3 = [5 x i8] c"ax25\00"
@.str.4 = [7 x i8] c"pronet\00"
@.str.5 = [6 x i8] c"chaos\00"
@.str.6 = [3 x i8] c"tr\00"
@.str.7 = [7 x i8] c"arcnet\00"
@.str.8 = [6 x i8] c"atalk\00"
@.str.9 = [5 x i8] c"dlci\00"
@.str.10 = [4 x i8] c"atm\00"
@.str.11 = [9 x i8] c"metricom\00"
@.str.12 = [9 x i8] c"ieee1394\00"
@.str.13 = [5 x i8] c"slip\00"
@.str.14 = [6 x i8] c"cslip\00"
@.str.15 = [6 x i8] c"slip6\00"
@.str.16 = [7 x i8] c"cslip6\00"
@.str.17 = [6 x i8] c"rsrvd\00"
@.str.18 = [6 x i8] c"adapt\00"
@.str.19 = [5 x i8] c"rose\00"
@.str.20 = [4 x i8] c"x25\00"
@.str.21 = [6 x i8] c"hwx25\00"
@.str.22 = [4 x i8] c"ppp\00"
@.str.23 = [5 x i8] c"hdlc\00"
@.str.24 = [5 x i8] c"lapb\00"
@.str.25 = [6 x i8] c"ddcmp\00"
@.str.26 = [8 x i8] c"rawhdlc\00"
@.str.27 = [5 x i8] c"ipip\00"
@.str.28 = [8 x i8] c"tunnel6\00"
@.str.29 = [5 x i8] c"frad\00"
@.str.30 = [5 x i8] c"skip\00"
@.str.31 = [9 x i8] c"loopback\00"
@.str.32 = [6 x i8] c"ltalk\00"
@.str.33 = [5 x i8] c"fddi\00"
@.str.34 = [4 x i8] c"bif\00"
@.str.35 = [4 x i8] c"sit\00"
@.str.36 = [7 x i8] c"ip/ddp\00"
@.str.37 = [4 x i8] c"gre\00"
@.str.38 = [7 x i8] c"pimreg\00"
@.str.39 = [6 x i8] c"hippi\00"
@.str.40 = [4 x i8] c"ash\00"
@.str.41 = [7 x i8] c"econet\00"
@.str.42 = [5 x i8] c"irda\00"
@.str.43 = [5 x i8] c"fcpp\00"
@.str.44 = [5 x i8] c"fcal\00"
@.str.45 = [5 x i8] c"fcpl\00"
@.str.46 = [6 x i8] c"fcfb0\00"
@.str.47 = [6 x i8] c"fcfb1\00"
@.str.48 = [6 x i8] c"fcfb2\00"
@.str.49 = [6 x i8] c"fcfb3\00"
@.str.50 = [6 x i8] c"fcfb4\00"
@.str.51 = [6 x i8] c"fcfb5\00"
@.str.52 = [6 x i8] c"fcfb6\00"
@.str.53 = [6 x i8] c"fcfb7\00"
@.str.54 = [6 x i8] c"fcfb8\00"
@.str.55 = [6 x i8] c"fcfb9\00"
@.str.56 = [7 x i8] c"fcfb10\00"
@.str.57 = [7 x i8] c"fcfb11\00"
@.str.58 = [7 x i8] c"fcfb12\00"
@.str.59 = [11 x i8] c"ieee802.11\00"
@.str.60 = [5 x i8] c"[%d]\00"
define i8* @ll_type_n2a(i32 %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 0, i32* %8
br label %9
9: ; preds = %28, %3
%10 = load i32, i32* %8
%11 = sext i32 %10 to i64
%12 = icmp ult i64 %11, 60
br i1 %12, label %13, label %31
13: ; preds = %9
%14 = load i32, i32* %8
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [60 x %struct.anon], [60 x %struct.anon]* @ll_type_n2a.arphrd_names, i64 0, i64 %15
%17 = getelementptr inbounds %struct.anon, %struct.anon* %16, i32 0, i32 0
%18 = load i32, i32* %17
%19 = load i32, i32* %5
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %27
21: ; preds = %13
%22 = load i32, i32* %8
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [60 x %struct.anon], [60 x %struct.anon]* @ll_type_n2a.arphrd_names, i64 0, i64 %23
%25 = getelementptr inbounds %struct.anon, %struct.anon* %24, i32 0, i32 1
%26 = load i8*, i8** %25
store i8* %26, i8** %4
br label %37
27: ; preds = %13
br label %28
28: ; preds = %27
%29 = load i32, i32* %8
%30 = add nsw i32 %29, 1
store i32 %30, i32* %8
br label %9
31: ; preds = %9
%32 = load i8*, i8** %6
%33 = load i32, i32* %7
%34 = load i32, i32* %5
%35 = call i32 @snprintf(i8* %32, i32 %33, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.60, i64 0, i64 0), i32 %34)
%36 = load i8*, i8** %6
store i8* %36, i8** %4
br label %37
37: ; preds = %31, %21
%38 = load i8*, i8** %4
ret i8* %38
}

LLVM IR (-O2):
%struct.anon = type { i32, i8* }
@ll_type_n2a.arphrd_names = internal unnamed_addr constant [60 x %struct.anon] [%struct.anon { i32 0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0) }, %struct.anon { i32 160, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0) }, %struct.anon { i32 161, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0) }, %struct.anon { i32 169, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0) }, %struct.anon { i32 138, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i32 0, i32 0) }, %struct.anon { i32 167, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i32 0, i32 0) }, %struct.anon { i32 149, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i32 0, i32 0) }, %struct.anon { i32 172, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i32 0, i32 0) }, %struct.anon { i32 173, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i32 0, i32 0) }, %struct.anon { i32 163, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0) }, %struct.anon { i32 170, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0) }, %struct.anon { i32 141, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i32 0, i32 0) }, %struct.anon { i32 150, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i32 0, i32 0) }, %struct.anon { i32 132, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i32 0, i32 0) }, %struct.anon { i32 166, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i32 0, i32 0) }, %struct.anon { i32 131, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i32 0, i32 0) }, %struct.anon { i32 165, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i32 0, i32 0) }, %struct.anon { i32 135, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i32 0, i32 0) }, %struct.anon { i32 174, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i32 0, i32 0) }, %struct.anon { i32 136, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i32 0, i32 0) }, %struct.anon { i32 128, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i32 0, i32 0) }, %struct.anon { i32 151, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i32 0, i32 0) }, %struct.anon { i32 139, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i32 0, i32 0) }, %struct.anon { i32 153, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i32 0, i32 0) }, %struct.anon { i32 144, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i32 0, i32 0) }, %struct.anon { i32 164, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i32 0, i32 0) }, %struct.anon { i32 137, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.26, i32 0, i32 0) }, %struct.anon { i32 130, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i32 0, i32 0) }, %struct.anon { i32 129, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i32 0, i32 0) }, %struct.anon { i32 154, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i32 0, i32 0) }, %struct.anon { i32 133, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.30, i32 0, i32 0) }, %struct.anon { i32 142, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.31, i32 0, i32 0) }, %struct.anon { i32 143, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.32, i32 0, i32 0) }, %struct.anon { i32 155, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i32 0, i32 0) }, %struct.anon { i32 168, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.34, i32 0, i32 0) }, %struct.anon { i32 134, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.35, i32 0, i32 0) }, %struct.anon { i32 147, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.36, i32 0, i32 0) }, %struct.anon { i32 146, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.37, i32 0, i32 0) }, %struct.anon { i32 140, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.38, i32 0, i32 0) }, %struct.anon { i32 152, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.39, i32 0, i32 0) }, %struct.anon { i32 171, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.40, i32 0, i32 0) }, %struct.anon { i32 162, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.41, i32 0, i32 0) }, %struct.anon { i32 145, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.42, i32 0, i32 0) }, %struct.anon { i32 156, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.43, i32 0, i32 0) }, %struct.anon { i32 159, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.44, i32 0, i32 0) }, %struct.anon { i32 157, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.45, i32 0, i32 0) }, %struct.anon { i32 158, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.46, i32 0, i32 0) }, %struct.anon { i32 159, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.47, i32 0, i32 0) }, %struct.anon { i32 160, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.48, i32 0, i32 0) }, %struct.anon { i32 161, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.49, i32 0, i32 0) }, %struct.anon { i32 162, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.50, i32 0, i32 0) }, %struct.anon { i32 163, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.51, i32 0, i32 0) }, %struct.anon { i32 164, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.52, i32 0, i32 0) }, %struct.anon { i32 165, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.53, i32 0, i32 0) }, %struct.anon { i32 166, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.54, i32 0, i32 0) }, %struct.anon { i32 167, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.55, i32 0, i32 0) }, %struct.anon { i32 168, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.56, i32 0, i32 0) }, %struct.anon { i32 169, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.57, i32 0, i32 0) }, %struct.anon { i32 170, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.58, i32 0, i32 0) }, %struct.anon { i32 148, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.59, i32 0, i32 0) }]
@.str = [8 x i8] c"generic\00"
@.str.1 = [6 x i8] c"ether\00"
@.str.2 = [7 x i8] c"eether\00"
@.str.3 = [5 x i8] c"ax25\00"
@.str.4 = [7 x i8] c"pronet\00"
@.str.5 = [6 x i8] c"chaos\00"
@.str.6 = [3 x i8] c"tr\00"
@.str.7 = [7 x i8] c"arcnet\00"
@.str.8 = [6 x i8] c"atalk\00"
@.str.9 = [5 x i8] c"dlci\00"
@.str.10 = [4 x i8] c"atm\00"
@.str.11 = [9 x i8] c"metricom\00"
@.str.12 = [9 x i8] c"ieee1394\00"
@.str.13 = [5 x i8] c"slip\00"
@.str.14 = [6 x i8] c"cslip\00"
@.str.15 = [6 x i8] c"slip6\00"
@.str.16 = [7 x i8] c"cslip6\00"
@.str.17 = [6 x i8] c"rsrvd\00"
@.str.18 = [6 x i8] c"adapt\00"
@.str.19 = [5 x i8] c"rose\00"
@.str.20 = [4 x i8] c"x25\00"
@.str.21 = [6 x i8] c"hwx25\00"
@.str.22 = [4 x i8] c"ppp\00"
@.str.23 = [5 x i8] c"hdlc\00"
@.str.24 = [5 x i8] c"lapb\00"
@.str.25 = [6 x i8] c"ddcmp\00"
@.str.26 = [8 x i8] c"rawhdlc\00"
@.str.27 = [5 x i8] c"ipip\00"
@.str.28 = [8 x i8] c"tunnel6\00"
@.str.29 = [5 x i8] c"frad\00"
@.str.30 = [5 x i8] c"skip\00"
@.str.31 = [9 x i8] c"loopback\00"
@.str.32 = [6 x i8] c"ltalk\00"
@.str.33 = [5 x i8] c"fddi\00"
@.str.34 = [4 x i8] c"bif\00"
@.str.35 = [4 x i8] c"sit\00"
@.str.36 = [7 x i8] c"ip/ddp\00"
@.str.37 = [4 x i8] c"gre\00"
@.str.38 = [7 x i8] c"pimreg\00"
@.str.39 = [6 x i8] c"hippi\00"
@.str.40 = [4 x i8] c"ash\00"
@.str.41 = [7 x i8] c"econet\00"
@.str.42 = [5 x i8] c"irda\00"
@.str.43 = [5 x i8] c"fcpp\00"
@.str.44 = [5 x i8] c"fcal\00"
@.str.45 = [5 x i8] c"fcpl\00"
@.str.46 = [6 x i8] c"fcfb0\00"
@.str.47 = [6 x i8] c"fcfb1\00"
@.str.48 = [6 x i8] c"fcfb2\00"
@.str.49 = [6 x i8] c"fcfb3\00"
@.str.50 = [6 x i8] c"fcfb4\00"
@.str.51 = [6 x i8] c"fcfb5\00"
@.str.52 = [6 x i8] c"fcfb6\00"
@.str.53 = [6 x i8] c"fcfb7\00"
@.str.54 = [6 x i8] c"fcfb8\00"
@.str.55 = [6 x i8] c"fcfb9\00"
@.str.56 = [7 x i8] c"fcfb10\00"
@.str.57 = [7 x i8] c"fcfb11\00"
@.str.58 = [7 x i8] c"fcfb12\00"
@.str.59 = [11 x i8] c"ieee802.11\00"
@.str.60 = [5 x i8] c"[%d]\00"
define i8* @ll_type_n2a(i32 %0, i8* %1, i32 %2) {
br label %4
4: ; preds = %34, %3
%5 = phi i64 [ 0, %3 ], [ %35, %34 ]
%6 = getelementptr inbounds [60 x %struct.anon], [60 x %struct.anon]* @ll_type_n2a.arphrd_names, i64 0, i64 %5, i32 0
%7 = load i32, i32* %6
%8 = icmp eq i32 %7, %0
br i1 %8, label %9, label %14
9: ; preds = %29, %24, %19, %14, %4
%10 = phi i64 [ %5, %4 ], [ %15, %14 ], [ %20, %19 ], [ %25, %24 ], [ %30, %29 ]
%11 = and i64 %10, 4294967295
%12 = getelementptr inbounds [60 x %struct.anon], [60 x %struct.anon]* @ll_type_n2a.arphrd_names, i64 0, i64 %11, i32 1
%13 = load i8*, i8** %12
br label %39
14: ; preds = %4
%15 = add nuw nsw i64 %5, 1
%16 = getelementptr inbounds [60 x %struct.anon], [60 x %struct.anon]* @ll_type_n2a.arphrd_names, i64 0, i64 %15, i32 0
%17 = load i32, i32* %16
%18 = icmp eq i32 %17, %0
br i1 %18, label %9, label %19
19: ; preds = %14
%20 = add nuw nsw i64 %5, 2
%21 = getelementptr inbounds [60 x %struct.anon], [60 x %struct.anon]* @ll_type_n2a.arphrd_names, i64 0, i64 %20, i32 0
%22 = load i32, i32* %21
%23 = icmp eq i32 %22, %0
br i1 %23, label %9, label %24
24: ; preds = %19
%25 = add nuw nsw i64 %5, 3
%26 = getelementptr inbounds [60 x %struct.anon], [60 x %struct.anon]* @ll_type_n2a.arphrd_names, i64 0, i64 %25, i32 0
%27 = load i32, i32* %26
%28 = icmp eq i32 %27, %0
br i1 %28, label %9, label %29
29: ; preds = %24
%30 = add nuw nsw i64 %5, 4
%31 = getelementptr inbounds [60 x %struct.anon], [60 x %struct.anon]* @ll_type_n2a.arphrd_names, i64 0, i64 %30, i32 0
%32 = load i32, i32* %31
%33 = icmp eq i32 %32, %0
br i1 %33, label %9, label %34
34: ; preds = %29
%35 = add nuw nsw i64 %5, 5
%36 = icmp eq i64 %35, 60
br i1 %36, label %37, label %4
37: ; preds = %34
%38 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.60, i64 0, i64 0), i32 %0)
br label %39
39: ; preds = %37, %9
%40 = phi i8* [ %13, %9 ], [ %1, %37 ]
ret i8* %40
}