char *device_name(unsigned int family) {
  switch (family) {
  case 0x01:
    return "DS2401/DS1990A Serial Number iButton";
  case 0x02:
    return "DS1425/DS1991 MultiKey iButton";
  case 0x04:
    return "DS2402/DS1994 4K NVRAM memory, clock, timer";
  case 0x05:
    return "DS2405 Addressable Switch";
  case 0x06:
    return "DS1993 4K NVRAM Memory";
  case 0x08:
    return "DS1992 1K NVRAM Memory";
  case 0x09:
    return "DS2502/DS1982 1Kbit Add only memory";
  case 0x0A:
    return "DS1995 16K NVRAM Memory";
  case 0x0B:
    return "DS2505/DS1985 16K EPROM Memory";
  case 0x0C:
    return "DS1996/x2/x4 64K to 256K NVRAM Memory";
  case 0x0F:
    return "DS2506/DS1986 64K EEPROM Memory";
  case 0x10:
    return "DS1820/DS18S20/DS1920 Temperature Sensor";
  case 0x12:
    return "DS2406/2407 Dual Addressable Switch + 1Kbit memory";
  case 0x14:
    return "DS2430A/DS1971 256bit EEPROM iButton";
  case 0x18:
    return "DS1963S SHA iButton";
  case 0x1A:
    return "DS1963L 4kBit MONETARY iButton";
  case 0x1C:
    return "DS2422 1Kbit RAM + Counter";
  case 0x1D:
    return "DS2423 4Kbit RAM + Counter";
  case 0x1F:
    return "DS2409 MicroLAN Coupler";
  case 0x20:
    return "DS2450 Quad A/D Converter";
  case 0x21:
    return "DS1921/H/Z Thermochron iButton";
  case 0x22:
    return "DS1822 Econo-Temperature Sensor";
  case 0x23:
    return "DS2433/DS1973 4K EEPROM Memory";
  case 0x24:
    return "DS1425/DS1904 Real Time Clock";
  case 0x26:
    return "DS2438 Temperature, A/D Battery Monitor";
  case 0x27:
    return "DS2417 Real Time Clock with Interrupt";
  case 0x28:
    return "DS18B20 Temperature Sensor";
  case 0x29:
    return "DS2408 8-Channel Addressable Switch";
  case 0x2C:
    return "DS2890 Single Channel Digital Potentiometer";
  case 0x30:
    return "DS2760 Temperature, Current, A/D";
  case 0x33:
    return "DS2432/DS1961S 1K EEPROM with SHA-1 Engine";
  case 0x3A:
    return "DS2413 Dual Channel Addressable Switch";
  case 0x41:
    return "DS1923 Hygrochron Temperature/Humidity Logger with 8kB Data Log "
           "Memory";
  case 0x42:
    return "DS28EA00 Temperature Sensor with Sequence Detect and PIO";
  case 0x82:
    return "DS1425 Multi iButton";
  case 0x84:
    return "DS1427 TIME iButton";
  case 0x89:
    return "DS2502/1982 1024bit UniqueWare Add Only Memory";
  case 0x8B:
    return "DS2505/1985 16Kbit UniqueWare Add Only Memory";
  case 0x8F:
    return "DS2506/1986 64Kbit UniqueWare Add Only Memory";
  case 0x91:
    return "DS1981 512-bit EEPROM Memory UniqueWare Only";
  case 0x96:
    return "DS1955/DS1957B Java Cryptographic iButton";
  case 0xEE:
    return "Hobby Boards with Temperature Sensor";
  case 0xEF:
    return "Hobby Boards";
  default:
    return "Unknown Family Code";
  }
}


x86 assembly (clang, -O0):
<device_name>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0xee,%eax
ja     13e2 <device_name+0x2e2>
mov    -0x18(%rbp),%rax
lea    0xed7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1283(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x1298(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x12a7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x12c3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x12cd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x12d4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x12db(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x12ef(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x12f7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x1306(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x131c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x132c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x1345(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x1368(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x137d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x1381(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x1390(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x139b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x13a6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x13ae(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x13b8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x13c7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x13d7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x13e6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x13f4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x140c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x1422(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x142d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x1441(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x145d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x146e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x1489(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x14a0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x14d7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x1500(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x1505(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x1509(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x1528(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x1546(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x1564(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x1581(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x159b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x15b0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    13ed <device_name+0x2ed>
lea    0x15ad(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<device_name>:
add    $0xffffffff,%edi
cmp    $0xee,%edi
ja     112a <device_name+0x2a>
lea    0x12aa(%rip),%rax
lea    0xee7(%rip),%rcx
movslq (%rcx,%rdi,4),%rdx
add    %rcx,%rdx
jmp    *%rdx
lea    0x12b8(%rip),%rax
ret
lea    0x1865(%rip),%rax
ret
lea    0x12c7(%rip),%rax
ret
lea    0x12eb(%rip),%rax
ret
lea    0x12fd(%rip),%rax
ret
lea    0x130c(%rip),%rax
ret
lea    0x131b(%rip),%rax
ret
lea    0x1337(%rip),%rax
ret
lea    0x1347(%rip),%rax
ret
lea    0x135e(%rip),%rax
ret
lea    0x137c(%rip),%rax
ret
lea    0x1394(%rip),%rax
ret
lea    0x13b5(%rip),%rax
ret
lea    0x13e0(%rip),%rax
ret
lea    0x13fd(%rip),%rax
ret
lea    0x1409(%rip),%rax
ret
lea    0x1420(%rip),%rax
ret
lea    0x1433(%rip),%rax
ret
lea    0x1446(%rip),%rax
ret
lea    0x1456(%rip),%rax
ret
lea    0x1468(%rip),%rax
ret
lea    0x147f(%rip),%rax
ret
lea    0x1497(%rip),%rax
ret
lea    0x14ae(%rip),%rax
ret
lea    0x14c4(%rip),%rax
ret
lea    0x14e4(%rip),%rax
ret
lea    0x1502(%rip),%rax
ret
lea    0x1515(%rip),%rax
ret
lea    0x1531(%rip),%rax
ret
lea    0x1555(%rip),%rax
ret
lea    0x156e(%rip),%rax
ret
lea    0x1591(%rip),%rax
ret
lea    0x15b0(%rip),%rax
ret
lea    0x15ef(%rip),%rax
ret
lea    0x1620(%rip),%rax
ret
lea    0x162d(%rip),%rax
ret
lea    0x1639(%rip),%rax
ret
lea    0x1660(%rip),%rax
ret
lea    0x1686(%rip),%rax
ret
lea    0x16ac(%rip),%rax
ret
lea    0x16d1(%rip),%rax
ret
lea    0x16f3(%rip),%rax
ret
lea    0x1710(%rip),%rax
ret

LLVM IR (-O0):
@.str = [37 x i8] c"DS2401/DS1990A Serial Number iButton\00"
@.str.1 = [31 x i8] c"DS1425/DS1991 MultiKey iButton\00"
@.str.2 = [44 x i8] c"DS2402/DS1994 4K NVRAM memory, clock, timer\00"
@.str.3 = [26 x i8] c"DS2405 Addressable Switch\00"
@.str.4 = [23 x i8] c"DS1993 4K NVRAM Memory\00"
@.str.5 = [23 x i8] c"DS1992 1K NVRAM Memory\00"
@.str.6 = [36 x i8] c"DS2502/DS1982 1Kbit Add only memory\00"
@.str.7 = [24 x i8] c"DS1995 16K NVRAM Memory\00"
@.str.8 = [31 x i8] c"DS2505/DS1985 16K EPROM Memory\00"
@.str.9 = [38 x i8] c"DS1996/x2/x4 64K to 256K NVRAM Memory\00"
@.str.10 = [32 x i8] c"DS2506/DS1986 64K EEPROM Memory\00"
@.str.11 = [41 x i8] c"DS1820/DS18S20/DS1920 Temperature Sensor\00"
@.str.12 = [51 x i8] c"DS2406/2407 Dual Addressable Switch + 1Kbit memory\00"
@.str.13 = [37 x i8] c"DS2430A/DS1971 256bit EEPROM iButton\00"
@.str.14 = [20 x i8] c"DS1963S SHA iButton\00"
@.str.15 = [31 x i8] c"DS1963L 4kBit MONETARY iButton\00"
@.str.16 = [27 x i8] c"DS2422 1Kbit RAM + Counter\00"
@.str.17 = [27 x i8] c"DS2423 4Kbit RAM + Counter\00"
@.str.18 = [24 x i8] c"DS2409 MicroLAN Coupler\00"
@.str.19 = [26 x i8] c"DS2450 Quad A/D Converter\00"
@.str.20 = [31 x i8] c"DS1921/H/Z Thermochron iButton\00"
@.str.21 = [32 x i8] c"DS1822 Econo-Temperature Sensor\00"
@.str.22 = [31 x i8] c"DS2433/DS1973 4K EEPROM Memory\00"
@.str.23 = [30 x i8] c"DS1425/DS1904 Real Time Clock\00"
@.str.24 = [40 x i8] c"DS2438 Temperature, A/D Battery Monitor\00"
@.str.25 = [38 x i8] c"DS2417 Real Time Clock with Interrupt\00"
@.str.26 = [27 x i8] c"DS18B20 Temperature Sensor\00"
@.str.27 = [36 x i8] c"DS2408 8-Channel Addressable Switch\00"
@.str.28 = [44 x i8] c"DS2890 Single Channel Digital Potentiometer\00"
@.str.29 = [33 x i8] c"DS2760 Temperature, Current, A/D\00"
@.str.30 = [43 x i8] c"DS2432/DS1961S 1K EEPROM with SHA-1 Engine\00"
@.str.31 = [39 x i8] c"DS2413 Dual Channel Addressable Switch\00"
@.str.32 = [71 x i8] c"DS1923 Hygrochron Temperature/Humidity Logger with 8kB Data Log Memory\00"
@.str.33 = [57 x i8] c"DS28EA00 Temperature Sensor with Sequence Detect and PIO\00"
@.str.34 = [21 x i8] c"DS1425 Multi iButton\00"
@.str.35 = [20 x i8] c"DS1427 TIME iButton\00"
@.str.36 = [47 x i8] c"DS2502/1982 1024bit UniqueWare Add Only Memory\00"
@.str.37 = [46 x i8] c"DS2505/1985 16Kbit UniqueWare Add Only Memory\00"
@.str.38 = [46 x i8] c"DS2506/1986 64Kbit UniqueWare Add Only Memory\00"
@.str.39 = [45 x i8] c"DS1981 512-bit EEPROM Memory UniqueWare Only\00"
@.str.40 = [42 x i8] c"DS1955/DS1957B Java Cryptographic iButton\00"
@.str.41 = [37 x i8] c"Hobby Boards with Temperature Sensor\00"
@.str.42 = [13 x i8] c"Hobby Boards\00"
@.str.43 = [20 x i8] c"Unknown Family Code\00"
define i8* @device_name(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %48 [
i32 1, label %5
i32 2, label %6
i32 4, label %7
i32 5, label %8
i32 6, label %9
i32 8, label %10
i32 9, label %11
i32 10, label %12
i32 11, label %13
i32 12, label %14
i32 15, label %15
i32 16, label %16
i32 18, label %17
i32 20, label %18
i32 24, label %19
i32 26, label %20
i32 28, label %21
i32 29, label %22
i32 31, label %23
i32 32, label %24
i32 33, label %25
i32 34, label %26
i32 35, label %27
i32 36, label %28
i32 38, label %29
i32 39, label %30
i32 40, label %31
i32 41, label %32
i32 44, label %33
i32 48, label %34
i32 51, label %35
i32 58, label %36
i32 65, label %37
i32 66, label %38
i32 130, label %39
i32 132, label %40
i32 137, label %41
i32 139, label %42
i32 143, label %43
i32 145, label %44
i32 150, label %45
i32 238, label %46
i32 239, label %47
]
5: ; preds = %1
store i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i8** %2
br label %49
6: ; preds = %1
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %49
7: ; preds = %1
store i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %49
8: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %49
9: ; preds = %1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %49
10: ; preds = %1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %49
11: ; preds = %1
store i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %49
12: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %49
13: ; preds = %1
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %49
14: ; preds = %1
store i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %49
15: ; preds = %1
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %49
16: ; preds = %1
store i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %49
17: ; preds = %1
store i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %49
18: ; preds = %1
store i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %49
19: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %49
20: ; preds = %1
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %49
21: ; preds = %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %49
22: ; preds = %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %49
23: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %49
24: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %49
25: ; preds = %1
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %49
26: ; preds = %1
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %49
27: ; preds = %1
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %49
28: ; preds = %1
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.23, i64 0, i64 0), i8** %2
br label %49
29: ; preds = %1
store i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %49
30: ; preds = %1
store i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.25, i64 0, i64 0), i8** %2
br label %49
31: ; preds = %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.26, i64 0, i64 0), i8** %2
br label %49
32: ; preds = %1
store i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.27, i64 0, i64 0), i8** %2
br label %49
33: ; preds = %1
store i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.28, i64 0, i64 0), i8** %2
br label %49
34: ; preds = %1
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.29, i64 0, i64 0), i8** %2
br label %49
35: ; preds = %1
store i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.30, i64 0, i64 0), i8** %2
br label %49
36: ; preds = %1
store i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.31, i64 0, i64 0), i8** %2
br label %49
37: ; preds = %1
store i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.32, i64 0, i64 0), i8** %2
br label %49
38: ; preds = %1
store i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.33, i64 0, i64 0), i8** %2
br label %49
39: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.34, i64 0, i64 0), i8** %2
br label %49
40: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.35, i64 0, i64 0), i8** %2
br label %49
41: ; preds = %1
store i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.36, i64 0, i64 0), i8** %2
br label %49
42: ; preds = %1
store i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.37, i64 0, i64 0), i8** %2
br label %49
43: ; preds = %1
store i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.38, i64 0, i64 0), i8** %2
br label %49
44: ; preds = %1
store i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.39, i64 0, i64 0), i8** %2
br label %49
45: ; preds = %1
store i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.40, i64 0, i64 0), i8** %2
br label %49
46: ; preds = %1
store i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.41, i64 0, i64 0), i8** %2
br label %49
47: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.42, i64 0, i64 0), i8** %2
br label %49
48: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.43, i64 0, i64 0), i8** %2
br label %49
49: ; preds = %48, %47, %46, %45, %44, %43, %42, %41, %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %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
%50 = load i8*, i8** %2
ret i8* %50
}

LLVM IR (-O2):
@.str = [37 x i8] c"DS2401/DS1990A Serial Number iButton\00"
@.str.1 = [31 x i8] c"DS1425/DS1991 MultiKey iButton\00"
@.str.2 = [44 x i8] c"DS2402/DS1994 4K NVRAM memory, clock, timer\00"
@.str.3 = [26 x i8] c"DS2405 Addressable Switch\00"
@.str.4 = [23 x i8] c"DS1993 4K NVRAM Memory\00"
@.str.5 = [23 x i8] c"DS1992 1K NVRAM Memory\00"
@.str.6 = [36 x i8] c"DS2502/DS1982 1Kbit Add only memory\00"
@.str.7 = [24 x i8] c"DS1995 16K NVRAM Memory\00"
@.str.8 = [31 x i8] c"DS2505/DS1985 16K EPROM Memory\00"
@.str.9 = [38 x i8] c"DS1996/x2/x4 64K to 256K NVRAM Memory\00"
@.str.10 = [32 x i8] c"DS2506/DS1986 64K EEPROM Memory\00"
@.str.11 = [41 x i8] c"DS1820/DS18S20/DS1920 Temperature Sensor\00"
@.str.12 = [51 x i8] c"DS2406/2407 Dual Addressable Switch + 1Kbit memory\00"
@.str.13 = [37 x i8] c"DS2430A/DS1971 256bit EEPROM iButton\00"
@.str.14 = [20 x i8] c"DS1963S SHA iButton\00"
@.str.15 = [31 x i8] c"DS1963L 4kBit MONETARY iButton\00"
@.str.16 = [27 x i8] c"DS2422 1Kbit RAM + Counter\00"
@.str.17 = [27 x i8] c"DS2423 4Kbit RAM + Counter\00"
@.str.18 = [24 x i8] c"DS2409 MicroLAN Coupler\00"
@.str.19 = [26 x i8] c"DS2450 Quad A/D Converter\00"
@.str.20 = [31 x i8] c"DS1921/H/Z Thermochron iButton\00"
@.str.21 = [32 x i8] c"DS1822 Econo-Temperature Sensor\00"
@.str.22 = [31 x i8] c"DS2433/DS1973 4K EEPROM Memory\00"
@.str.23 = [30 x i8] c"DS1425/DS1904 Real Time Clock\00"
@.str.24 = [40 x i8] c"DS2438 Temperature, A/D Battery Monitor\00"
@.str.25 = [38 x i8] c"DS2417 Real Time Clock with Interrupt\00"
@.str.26 = [27 x i8] c"DS18B20 Temperature Sensor\00"
@.str.27 = [36 x i8] c"DS2408 8-Channel Addressable Switch\00"
@.str.28 = [44 x i8] c"DS2890 Single Channel Digital Potentiometer\00"
@.str.29 = [33 x i8] c"DS2760 Temperature, Current, A/D\00"
@.str.30 = [43 x i8] c"DS2432/DS1961S 1K EEPROM with SHA-1 Engine\00"
@.str.31 = [39 x i8] c"DS2413 Dual Channel Addressable Switch\00"
@.str.32 = [71 x i8] c"DS1923 Hygrochron Temperature/Humidity Logger with 8kB Data Log Memory\00"
@.str.33 = [57 x i8] c"DS28EA00 Temperature Sensor with Sequence Detect and PIO\00"
@.str.34 = [21 x i8] c"DS1425 Multi iButton\00"
@.str.35 = [20 x i8] c"DS1427 TIME iButton\00"
@.str.36 = [47 x i8] c"DS2502/1982 1024bit UniqueWare Add Only Memory\00"
@.str.37 = [46 x i8] c"DS2505/1985 16Kbit UniqueWare Add Only Memory\00"
@.str.38 = [46 x i8] c"DS2506/1986 64Kbit UniqueWare Add Only Memory\00"
@.str.39 = [45 x i8] c"DS1981 512-bit EEPROM Memory UniqueWare Only\00"
@.str.40 = [42 x i8] c"DS1955/DS1957B Java Cryptographic iButton\00"
@.str.41 = [37 x i8] c"Hobby Boards with Temperature Sensor\00"
@.str.42 = [13 x i8] c"Hobby Boards\00"
@.str.43 = [20 x i8] c"Unknown Family Code\00"
define i8* @device_name(i32 %0) {
switch i32 %0, label %44 [
i32 1, label %45
i32 2, label %2
i32 4, label %3
i32 5, label %4
i32 6, label %5
i32 8, label %6
i32 9, label %7
i32 10, label %8
i32 11, label %9
i32 12, label %10
i32 15, label %11
i32 16, label %12
i32 18, label %13
i32 20, label %14
i32 24, label %15
i32 26, label %16
i32 28, label %17
i32 29, label %18
i32 31, label %19
i32 32, label %20
i32 33, label %21
i32 34, label %22
i32 35, label %23
i32 36, label %24
i32 38, label %25
i32 39, label %26
i32 40, label %27
i32 41, label %28
i32 44, label %29
i32 48, label %30
i32 51, label %31
i32 58, label %32
i32 65, label %33
i32 66, label %34
i32 130, label %35
i32 132, label %36
i32 137, label %37
i32 139, label %38
i32 143, label %39
i32 145, label %40
i32 150, label %41
i32 238, label %42
i32 239, label %43
]
2: ; preds = %1
br label %45
3: ; preds = %1
br label %45
4: ; preds = %1
br label %45
5: ; preds = %1
br label %45
6: ; preds = %1
br label %45
7: ; preds = %1
br label %45
8: ; preds = %1
br label %45
9: ; preds = %1
br label %45
10: ; preds = %1
br label %45
11: ; preds = %1
br label %45
12: ; preds = %1
br label %45
13: ; preds = %1
br label %45
14: ; preds = %1
br label %45
15: ; preds = %1
br label %45
16: ; preds = %1
br label %45
17: ; preds = %1
br label %45
18: ; preds = %1
br label %45
19: ; preds = %1
br label %45
20: ; preds = %1
br label %45
21: ; preds = %1
br label %45
22: ; preds = %1
br label %45
23: ; preds = %1
br label %45
24: ; preds = %1
br label %45
25: ; preds = %1
br label %45
26: ; preds = %1
br label %45
27: ; preds = %1
br label %45
28: ; preds = %1
br label %45
29: ; preds = %1
br label %45
30: ; preds = %1
br label %45
31: ; preds = %1
br label %45
32: ; preds = %1
br label %45
33: ; preds = %1
br label %45
34: ; preds = %1
br label %45
35: ; preds = %1
br label %45
36: ; preds = %1
br label %45
37: ; preds = %1
br label %45
38: ; preds = %1
br label %45
39: ; preds = %1
br label %45
40: ; preds = %1
br label %45
41: ; preds = %1
br label %45
42: ; preds = %1
br label %45
43: ; preds = %1
br label %45
44: ; preds = %1
br label %45
45: ; preds = %1, %44, %43, %42, %41, %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %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, %4, %3, %2
%46 = phi i8* [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.43, i64 0, i64 0), %44 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.42, i64 0, i64 0), %43 ], [ getelementptr inbounds ([37 x i8], [37 x i8]* @.str.41, i64 0, i64 0), %42 ], [ getelementptr inbounds ([42 x i8], [42 x i8]* @.str.40, i64 0, i64 0), %41 ], [ getelementptr inbounds ([45 x i8], [45 x i8]* @.str.39, i64 0, i64 0), %40 ], [ getelementptr inbounds ([46 x i8], [46 x i8]* @.str.38, i64 0, i64 0), %39 ], [ getelementptr inbounds ([46 x i8], [46 x i8]* @.str.37, i64 0, i64 0), %38 ], [ getelementptr inbounds ([47 x i8], [47 x i8]* @.str.36, i64 0, i64 0), %37 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.35, i64 0, i64 0), %36 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.34, i64 0, i64 0), %35 ], [ getelementptr inbounds ([57 x i8], [57 x i8]* @.str.33, i64 0, i64 0), %34 ], [ getelementptr inbounds ([71 x i8], [71 x i8]* @.str.32, i64 0, i64 0), %33 ], [ getelementptr inbounds ([39 x i8], [39 x i8]* @.str.31, i64 0, i64 0), %32 ], [ getelementptr inbounds ([43 x i8], [43 x i8]* @.str.30, i64 0, i64 0), %31 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.29, i64 0, i64 0), %30 ], [ getelementptr inbounds ([44 x i8], [44 x i8]* @.str.28, i64 0, i64 0), %29 ], [ getelementptr inbounds ([36 x i8], [36 x i8]* @.str.27, i64 0, i64 0), %28 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.26, i64 0, i64 0), %27 ], [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.25, i64 0, i64 0), %26 ], [ getelementptr inbounds ([40 x i8], [40 x i8]* @.str.24, i64 0, i64 0), %25 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.23, i64 0, i64 0), %24 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.22, i64 0, i64 0), %23 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @.str.21, i64 0, i64 0), %22 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.20, i64 0, i64 0), %21 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.19, i64 0, i64 0), %20 ], [ getelementptr inbounds ([24 x i8], [24 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 ([27 x i8], [27 x i8]* @.str.16, i64 0, i64 0), %17 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.15, i64 0, i64 0), %16 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0), %15 ], [ getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i64 0, i64 0), %14 ], [ getelementptr inbounds ([51 x i8], [51 x i8]* @.str.12, i64 0, i64 0), %13 ], [ getelementptr inbounds ([41 x i8], [41 x i8]* @.str.11, i64 0, i64 0), %12 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0), %11 ], [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), %10 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), %9 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), %8 ], [ getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0), %7 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %46
}