#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*/ data_dump(unsigned char *, int, int);
int get16(unsigned char *);
int /*<<< orphan*/ ip_dump(unsigned char *, int, int);
int /*<<< orphan*/ lprintf(int, char *, ...);
void icmp_dump(unsigned char *data, int length, int hexdump) {
  int type;
  int code;
  int pointer;
  unsigned char *address;
  int id, seq;
  type = data[0];
  code = data[1];
  pointer = data[4];
  address = data + 4;
  id = get16(data + 4);
  seq = get16(data + 6);
  data += 8;
  length -= 8;
  lprintf(9, "ICMP: type ");
  switch (type) {
  case 3:
    lprintf(1, "Unreachable ");
    lprintf(9, "code ");
    switch (code) {
    case 0:
      lprintf(1, "Network");
      break;
    case 1:
      lprintf(1, "Host");
      break;
    case 2:
      lprintf(1, "Protocol");
      break;
    case 3:
      lprintf(1, "Port");
      break;
    case 4:
      lprintf(1, "Fragmentation");
      break;
    case 5:
      lprintf(1, "Source route");
      break;
    case 6:
      lprintf(1, "Dest net unknown");
      break;
    case 7:
      lprintf(1, "Dest host unknown");
      break;
    case 8:
      lprintf(1, "Source host isolated");
      break;
    case 9:
      lprintf(1, "Net prohibited");
      break;
    case 10:
      lprintf(1, "Host prohibited");
      break;
    case 11:
      lprintf(1, "Net TOS");
      break;
    case 12:
      lprintf(1, "Host TOS");
      break;
    case 13:
      lprintf(1, "Administratively Prohibited");
      break;
    default:
      lprintf(1, "%d", code);
      break;
    }
    lprintf(9, "\nReturned ");
    ip_dump(data, length, hexdump);
    break;
  case 5:
    lprintf(1, "Redirect ");
    lprintf(9, "code ");
    switch (code) {
    case 0:
      lprintf(1, "Network");
      break;
    case 1:
      lprintf(1, "Host");
      break;
    case 2:
      lprintf(1, "TOS & Network");
      break;
    case 3:
      lprintf(1, "TOS & Host");
      break;
    default:
      lprintf(1, "%d", code);
      break;
    }
    lprintf(9, " new gateway %d.%d.%d.%d", address[0], address[1], address[2],
            address[3]);
    lprintf(9, "\nReturned ");
    ip_dump(data, length, hexdump);
    break;
  case 11:
    lprintf(1, "Time Exceeded code ");
    lprintf(1, "Time Exceeded ");
    lprintf(9, "code ");
    switch (code) {
    case 0:
      lprintf(1, "Time-to-live");
      break;
    case 1:
      lprintf(1, "Fragment reassembly");
      break;
    default:
      lprintf(1, "%d", code);
      break;
    }
    lprintf(9, "\nReturned ");
    ip_dump(data, length, hexdump);
    break;
  case 12:
    lprintf(1, "Parameter Problem pointer %d", pointer);
    lprintf(9, "\nReturned ");
    ip_dump(data, length, hexdump);
    break;
  case 4:
    lprintf(1, "Source Quench");
    lprintf(9, "\nReturned ");
    ip_dump(data, length, hexdump);
    break;
  case 8:
    lprintf(9, "Echo Request id %d seq %d\n", id, seq);
    data_dump(data, length, hexdump);
    break;
  case 0:
    lprintf(9, "Echo Reply id %d seq %d\n", id, seq);
    data_dump(data, length, hexdump);
    break;
  case 15:
    lprintf(9, "Information Request id %d seq %d\n", id, seq);
    data_dump(data, length, hexdump);
    break;
  case 16:
    lprintf(9, "Information Reply id %d seq %d\n", id, seq);
    data_dump(data, length, hexdump);
    break;
  case 13:
    lprintf(9, "Timestamp Request id %d seq %d\n", id, seq);
    data_dump(data, length, hexdump);
    break;
  case 14:
    lprintf(9, "Timestamp Reply id %d seq %d\n", id, seq);
    data_dump(data, length, hexdump);
    break;
  default:
    lprintf(9, "%d\n", type);
    data_dump(data, length, hexdump);
    break;
  }
}


x86 assembly (clang, -O0):
<icmp_dump>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
movzbl 0x1(%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movzbl 0x4(%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
add    $0x4,%rdi
call   1050 <get16@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x8(%rbp),%rdi
add    $0x6,%rdi
call   1050 <get16@plt>
mov    %eax,-0x30(%rbp)
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0xfffffff8,%eax
mov    %eax,-0xc(%rbp)
lea    0xed2(%rip),%rsi
xor    %eax,%eax
mov    $0x9,%edi
call   1060 <lprintf@plt>
mov    -0x14(%rbp),%eax
mov    %rax,-0x38(%rbp)
sub    $0x10,%rax
ja     173c <icmp_dump+0x5fc>
mov    -0x38(%rbp),%rax
lea    0xe1e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xea6(%rip),%rsi
xor    %eax,%eax
mov    %al,-0x41(%rbp)
mov    $0x1,%edi
call   1060 <lprintf@plt>
mov    -0x41(%rbp),%al
lea    0xf9c(%rip),%rsi
mov    $0x9,%edi
call   1060 <lprintf@plt>
mov    -0x18(%rbp),%eax
mov    %rax,-0x40(%rbp)
sub    $0xd,%rax
ja     138a <icmp_dump+0x24a>
mov    -0x40(%rbp),%rax
lea    0xe23(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x1,%edi
lea    0xf27(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    13a0 <icmp_dump+0x260>
mov    $0x1,%edi
lea    0xf1d(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    13a0 <icmp_dump+0x260>
mov    $0x1,%edi
lea    0xe2f(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    13a0 <icmp_dump+0x260>
mov    $0x1,%edi
lea    0xe20(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    13a0 <icmp_dump+0x260>
mov    $0x1,%edi
lea    0xe0d(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    13a0 <icmp_dump+0x260>
mov    $0x1,%edi
lea    0xe03(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    13a0 <icmp_dump+0x260>
mov    $0x1,%edi
lea    0xdf8(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    13a0 <icmp_dump+0x260>
mov    $0x1,%edi
lea    0xdf1(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    13a0 <icmp_dump+0x260>
mov    $0x1,%edi
lea    0xdeb(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    13a0 <icmp_dump+0x260>
mov    $0x1,%edi
lea    0xde8(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    13a0 <icmp_dump+0x260>
mov    $0x1,%edi
lea    0xddf(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    13a0 <icmp_dump+0x260>
mov    $0x1,%edi
lea    0xdd7(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    13a0 <icmp_dump+0x260>
mov    $0x1,%edi
lea    0xdc7(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    13a0 <icmp_dump+0x260>
mov    $0x1,%edi
lea    0xdb8(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    13a0 <icmp_dump+0x260>
mov    -0x18(%rbp),%edx
mov    $0x1,%edi
lea    0xe5e(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    $0x9,%edi
lea    0xda6(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1040 <ip_dump@plt>
jmp    1761 <icmp_dump+0x621>
lea    0xd8f(%rip),%rsi
xor    %eax,%eax
mov    %al,-0x51(%rbp)
mov    $0x1,%edi
call   1060 <lprintf@plt>
mov    -0x51(%rbp),%al
lea    0xdc0(%rip),%rsi
mov    $0x9,%edi
call   1060 <lprintf@plt>
mov    -0x18(%rbp),%eax
mov    %rax,-0x50(%rbp)
sub    $0x3,%rax
ja     1476 <icmp_dump+0x336>
mov    -0x50(%rbp),%rax
lea    0xc37(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x1,%edi
lea    0xd4b(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    148c <icmp_dump+0x34c>
mov    $0x1,%edi
lea    0xd41(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    148c <icmp_dump+0x34c>
mov    $0x1,%edi
lea    0xd15(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    148c <icmp_dump+0x34c>
mov    $0x1,%edi
lea    0xd0b(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    148c <icmp_dump+0x34c>
mov    -0x18(%rbp),%edx
mov    $0x1,%edi
lea    0xd72(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    -0x28(%rbp),%rax
movzbl (%rax),%edx
mov    -0x28(%rbp),%rax
movzbl 0x1(%rax),%ecx
mov    -0x28(%rbp),%rax
movzbl 0x2(%rax),%r8d
mov    -0x28(%rbp),%rax
movzbl 0x3(%rax),%r9d
mov    $0x9,%edi
lea    0xcc7(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    $0x9,%edi
lea    0xc86(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1040 <ip_dump@plt>
jmp    1761 <icmp_dump+0x621>
lea    0xcab(%rip),%rsi
xor    %eax,%eax
mov    %al,-0x59(%rbp)
mov    $0x1,%edi
mov    %edi,-0x60(%rbp)
call   1060 <lprintf@plt>
mov    -0x60(%rbp),%edi
mov    -0x59(%rbp),%al
lea    0xca0(%rip),%rsi
call   1060 <lprintf@plt>
mov    -0x59(%rbp),%al
lea    0xc8b(%rip),%rsi
mov    $0x9,%edi
call   1060 <lprintf@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0x58(%rbp)
test   %eax,%eax
je     154a <icmp_dump+0x40a>
jmp    1539 <icmp_dump+0x3f9>
mov    -0x58(%rbp),%eax
sub    $0x1,%eax
je     1562 <icmp_dump+0x422>
jmp    157a <icmp_dump+0x43a>
mov    $0x1,%edi
lea    0xc66(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    1590 <icmp_dump+0x450>
mov    $0x1,%edi
lea    0xc5b(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
jmp    1590 <icmp_dump+0x450>
mov    -0x18(%rbp),%edx
mov    $0x1,%edi
lea    0xc6e(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    $0x9,%edi
lea    0xbb6(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1040 <ip_dump@plt>
jmp    1761 <icmp_dump+0x621>
mov    -0x1c(%rbp),%edx
mov    $0x1,%edi
lea    0xc17(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    $0x9,%edi
lea    0xb79(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1040 <ip_dump@plt>
jmp    1761 <icmp_dump+0x621>
mov    $0x1,%edi
lea    0xbfa(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    $0x9,%edi
lea    0xb3f(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1040 <ip_dump@plt>
jmp    1761 <icmp_dump+0x621>
mov    -0x2c(%rbp),%edx
mov    -0x30(%rbp),%ecx
mov    $0x9,%edi
lea    0xbc8(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1030 <data_dump@plt>
jmp    1761 <icmp_dump+0x621>
mov    -0x2c(%rbp),%edx
mov    -0x30(%rbp),%ecx
mov    $0x9,%edi
lea    0xbb6(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1030 <data_dump@plt>
jmp    1761 <icmp_dump+0x621>
mov    -0x2c(%rbp),%edx
mov    -0x30(%rbp),%ecx
mov    $0x9,%edi
lea    0xba2(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1030 <data_dump@plt>
jmp    1761 <icmp_dump+0x621>
mov    -0x2c(%rbp),%edx
mov    -0x30(%rbp),%ecx
mov    $0x9,%edi
lea    0xb97(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1030 <data_dump@plt>
jmp    1761 <icmp_dump+0x621>
mov    -0x2c(%rbp),%edx
mov    -0x30(%rbp),%ecx
mov    $0x9,%edi
lea    0xb8a(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1030 <data_dump@plt>
jmp    1761 <icmp_dump+0x621>
mov    -0x2c(%rbp),%edx
mov    -0x30(%rbp),%ecx
mov    $0x9,%edi
lea    0xb7d(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1030 <data_dump@plt>
jmp    1761 <icmp_dump+0x621>
mov    -0x14(%rbp),%edx
mov    $0x9,%edi
lea    0xb0f(%rip),%rsi
mov    $0x0,%al
call   1060 <lprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1030 <data_dump@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<icmp_dump>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %edx,0x4(%rsp)
mov    %esi,%r13d
mov    %rdi,%rbp
movzbl (%rdi),%r15d
movzbl 0x1(%rdi),%eax
mov    %eax,0x14(%rsp)
add    $0x4,%rdi
movzbl 0x4(%rbp),%r12d
call   1050 <get16@plt>
mov    %eax,%ebx
lea    0x6(%rbp),%rdi
call   1050 <get16@plt>
mov    %eax,%r14d
lea    0x8(%rbp),%rax
mov    %rax,0x8(%rsp)
add    $0xfffffff8,%r13d
mov    %r13d,(%rsp)
lea    0xef4(%rip),%rsi
mov    $0x9,%edi
xor    %eax,%eax
call   1060 <lprintf@plt>
cmp    $0x10,%r15
ja     11d2 <icmp_dump+0x92>
lea    0xe4f(%rip),%rax
movslq (%rax,%r15,4),%rcx
add    %rax,%rcx
jmp    *%rcx
lea    0x1062(%rip),%rsi
jmp    131d <icmp_dump+0x1dd>
lea    0x1091(%rip),%rsi
jmp    131d <icmp_dump+0x1dd>
lea    0x1081(%rip),%rsi
mov    $0x9,%edi
mov    %r15d,%edx
xor    %eax,%eax
call   1060 <lprintf@plt>
jmp    132e <icmp_dump+0x1ee>
lea    0xea4(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1060 <lprintf@plt>
lea    0xfa0(%rip),%rsi
mov    $0x9,%edi
xor    %eax,%eax
call   1060 <lprintf@plt>
mov    0x14(%rsp),%edx
cmp    $0xd,%dl
ja     134d <icmp_dump+0x20d>
mov    %edx,%eax
lea    0xe2b(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf34(%rip),%rsi
jmp    1369 <icmp_dump+0x229>
lea    0xfb5(%rip),%rsi
jmp    1369 <icmp_dump+0x229>
lea    0xf0c(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1060 <lprintf@plt>
lea    0xf43(%rip),%rsi
mov    $0x9,%edi
xor    %eax,%eax
call   1060 <lprintf@plt>
mov    0x14(%rsp),%edx
cmp    $0x3,%dl
ja     1380 <icmp_dump+0x240>
mov    %edx,%eax
lea    0xdbe(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xed7(%rip),%rsi
jmp    13a5 <icmp_dump+0x265>
lea    0xf66(%rip),%rsi
jmp    131d <icmp_dump+0x1dd>
lea    0xeee(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1060 <lprintf@plt>
lea    0xeef(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1060 <lprintf@plt>
lea    0xed6(%rip),%rsi
mov    $0x9,%edi
xor    %eax,%eax
call   1060 <lprintf@plt>
mov    0x14(%rsp),%edx
cmp    $0x1,%dl
je     1362 <icmp_dump+0x222>
test   %dl,%dl
jne    134d <icmp_dump+0x20d>
lea    0xecb(%rip),%rsi
jmp    1369 <icmp_dump+0x229>
lea    0xee3(%rip),%rsi
mov    $0x1,%edi
mov    %r12d,%edx
jmp    1359 <icmp_dump+0x219>
lea    0xf73(%rip),%rsi
jmp    131d <icmp_dump+0x1dd>
lea    0xf8a(%rip),%rsi
jmp    131d <icmp_dump+0x1dd>
lea    0xf1f(%rip),%rsi
mov    $0x9,%edi
mov    %ebx,%edx
mov    %r14d,%ecx
xor    %eax,%eax
call   1060 <lprintf@plt>
mov    0x8(%rsp),%rdi
mov    (%rsp),%esi
mov    0x4(%rsp),%edx
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <data_dump@plt>
lea    0xea3(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1060 <lprintf@plt>
jmp    13d6 <icmp_dump+0x296>
lea    0xe60(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1060 <lprintf@plt>
jmp    13d6 <icmp_dump+0x296>
lea    0xde9(%rip),%rsi
jmp    13a5 <icmp_dump+0x265>
lea    0xe70(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1060 <lprintf@plt>
jmp    13b1 <icmp_dump+0x271>
lea    0xddf(%rip),%rsi
jmp    13a5 <icmp_dump+0x265>
lea    0xdd0(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1060 <lprintf@plt>
movzbl 0x4(%rbp),%edx
movzbl 0x5(%rbp),%ecx
movzbl 0x6(%rbp),%r8d
movzbl 0x7(%rbp),%r9d
lea    0xdb6(%rip),%rsi
mov    $0x9,%edi
xor    %eax,%eax
call   1060 <lprintf@plt>
lea    0xd75(%rip),%rsi
mov    $0x9,%edi
xor    %eax,%eax
call   1060 <lprintf@plt>
mov    0x8(%rsp),%rdi
mov    (%rsp),%esi
mov    0x4(%rsp),%edx
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <ip_dump@plt>
lea    0xd6c(%rip),%rsi
jmp    1369 <icmp_dump+0x229>
lea    0xc8a(%rip),%rsi
jmp    1369 <icmp_dump+0x229>
lea    0xc87(%rip),%rsi
jmp    1369 <icmp_dump+0x229>
lea    0xc80(%rip),%rsi
jmp    1369 <icmp_dump+0x229>
lea    0xc82(%rip),%rsi
jmp    1369 <icmp_dump+0x229>
lea    0xc83(%rip),%rsi
jmp    1369 <icmp_dump+0x229>
lea    0xc88(%rip),%rsi
jmp    1369 <icmp_dump+0x229>
lea    0xc8e(%rip),%rsi
jmp    1369 <icmp_dump+0x229>
lea    0xc97(%rip),%rsi
jmp    1369 <icmp_dump+0x229>
lea    0xc9a(%rip),%rsi
jmp    1369 <icmp_dump+0x229>
lea    0xc9e(%rip),%rsi
jmp    1369 <icmp_dump+0x229>
lea    0xc9a(%rip),%rsi
jmp    1369 <icmp_dump+0x229>
lea    0xc97(%rip),%rsi
jmp    1369 <icmp_dump+0x229>

LLVM IR (-O0):
@.str = [12 x i8] c"ICMP: type \00"
@.str.1 = [13 x i8] c"Unreachable \00"
@.str.2 = [6 x i8] c"code \00"
@.str.3 = [8 x i8] c"Network\00"
@.str.4 = [5 x i8] c"Host\00"
@.str.5 = [9 x i8] c"Protocol\00"
@.str.6 = [5 x i8] c"Port\00"
@.str.7 = [14 x i8] c"Fragmentation\00"
@.str.8 = [13 x i8] c"Source route\00"
@.str.9 = [17 x i8] c"Dest net unknown\00"
@.str.10 = [18 x i8] c"Dest host unknown\00"
@.str.11 = [21 x i8] c"Source host isolated\00"
@.str.12 = [15 x i8] c"Net prohibited\00"
@.str.13 = [16 x i8] c"Host prohibited\00"
@.str.14 = [8 x i8] c"Net TOS\00"
@.str.15 = [9 x i8] c"Host TOS\00"
@.str.16 = [28 x i8] c"Administratively Prohibited\00"
@.str.17 = [3 x i8] c"%d\00"
@.str.18 = [11 x i8] c"\0AReturned \00"
@.str.19 = [10 x i8] c"Redirect \00"
@.str.20 = [14 x i8] c"TOS & Network\00"
@.str.21 = [11 x i8] c"TOS & Host\00"
@.str.22 = [25 x i8] c" new gateway %d.%d.%d.%d\00"
@.str.23 = [20 x i8] c"Time Exceeded code \00"
@.str.24 = [15 x i8] c"Time Exceeded \00"
@.str.25 = [13 x i8] c"Time-to-live\00"
@.str.26 = [20 x i8] c"Fragment reassembly\00"
@.str.27 = [29 x i8] c"Parameter Problem pointer %d\00"
@.str.28 = [14 x i8] c"Source Quench\00"
@.str.29 = [27 x i8] c"Echo Request id %d seq %d\0A\00"
@.str.30 = [25 x i8] c"Echo Reply id %d seq %d\0A\00"
@.str.31 = [34 x i8] c"Information Request id %d seq %d\0A\00"
@.str.32 = [32 x i8] c"Information Reply id %d seq %d\0A\00"
@.str.33 = [32 x i8] c"Timestamp Request id %d seq %d\0A\00"
@.str.34 = [30 x i8] c"Timestamp Reply id %d seq %d\0A\00"
@.str.35 = [4 x i8] c"%d\0A\00"
define void @icmp_dump(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%13 = load i8*, i8** %4
%14 = getelementptr inbounds i8, i8* %13, i64 0
%15 = load i8, i8* %14
%16 = zext i8 %15 to i32
store i32 %16, i32* %7
%17 = load i8*, i8** %4
%18 = getelementptr inbounds i8, i8* %17, i64 1
%19 = load i8, i8* %18
%20 = zext i8 %19 to i32
store i32 %20, i32* %8
%21 = load i8*, i8** %4
%22 = getelementptr inbounds i8, i8* %21, i64 4
%23 = load i8, i8* %22
%24 = zext i8 %23 to i32
store i32 %24, i32* %9
%25 = load i8*, i8** %4
%26 = getelementptr inbounds i8, i8* %25, i64 4
store i8* %26, i8** %10
%27 = load i8*, i8** %4
%28 = getelementptr inbounds i8, i8* %27, i64 4
%29 = call i32 @get16(i8* %28)
store i32 %29, i32* %11
%30 = load i8*, i8** %4
%31 = getelementptr inbounds i8, i8* %30, i64 6
%32 = call i32 @get16(i8* %31)
store i32 %32, i32* %12
%33 = load i8*, i8** %4
%34 = getelementptr inbounds i8, i8* %33, i64 8
store i8* %34, i8** %4
%35 = load i32, i32* %5
%36 = sub nsw i32 %35, 8
store i32 %36, i32* %5
%37 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%38 = load i32, i32* %7
switch i32 %38, label %199 [
i32 3, label %39
i32 5, label %80
i32 11, label %118
i32 12, label %136
i32 4, label %144
i32 8, label %151
i32 0, label %159
i32 15, label %167
i32 16, label %175
i32 13, label %183
i32 14, label %191
]
39: ; preds = %3
%40 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%41 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%42 = load i32, i32* %8
switch i32 %42, label %71 [
i32 0, label %43
i32 1, label %45
i32 2, label %47
i32 3, label %49
i32 4, label %51
i32 5, label %53
i32 6, label %55
i32 7, label %57
i32 8, label %59
i32 9, label %61
i32 10, label %63
i32 11, label %65
i32 12, label %67
i32 13, label %69
]
43: ; preds = %39
%44 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %74
45: ; preds = %39
%46 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %74
47: ; preds = %39
%48 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
br label %74
49: ; preds = %39
%50 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %74
51: ; preds = %39
%52 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
br label %74
53: ; preds = %39
%54 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
br label %74
55: ; preds = %39
%56 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
br label %74
57: ; preds = %39
%58 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0))
br label %74
59: ; preds = %39
%60 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0))
br label %74
61: ; preds = %39
%62 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0))
br label %74
63: ; preds = %39
%64 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
br label %74
65: ; preds = %39
%66 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
br label %74
67: ; preds = %39
%68 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0))
br label %74
69: ; preds = %39
%70 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0))
br label %74
71: ; preds = %39
%72 = load i32, i32* %8
%73 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i32 %72)
br label %74
74: ; preds = %71, %69, %67, %65, %63, %61, %59, %57, %55, %53, %51, %49, %47, %45, %43
%75 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0))
%76 = load i8*, i8** %4
%77 = load i32, i32* %5
%78 = load i32, i32* %6
%79 = call i32 @ip_dump(i8* %76, i32 %77, i32 %78)
br label %206
80: ; preds = %3
%81 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
%82 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%83 = load i32, i32* %8
switch i32 %83, label %92 [
i32 0, label %84
i32 1, label %86
i32 2, label %88
i32 3, label %90
]
84: ; preds = %80
%85 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %95
86: ; preds = %80
%87 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %95
88: ; preds = %80
%89 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.20, i64 0, i64 0))
br label %95
90: ; preds = %80
%91 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0))
br label %95
92: ; preds = %80
%93 = load i32, i32* %8
%94 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i32 %93)
br label %95
95: ; preds = %92, %90, %88, %86, %84
%96 = load i8*, i8** %10
%97 = getelementptr inbounds i8, i8* %96, i64 0
%98 = load i8, i8* %97
%99 = zext i8 %98 to i32
%100 = load i8*, i8** %10
%101 = getelementptr inbounds i8, i8* %100, i64 1
%102 = load i8, i8* %101
%103 = zext i8 %102 to i32
%104 = load i8*, i8** %10
%105 = getelementptr inbounds i8, i8* %104, i64 2
%106 = load i8, i8* %105
%107 = zext i8 %106 to i32
%108 = load i8*, i8** %10
%109 = getelementptr inbounds i8, i8* %108, i64 3
%110 = load i8, i8* %109
%111 = zext i8 %110 to i32
%112 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.22, i64 0, i64 0), i32 %99, i32 %103, i32 %107, i32 %111)
%113 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0))
%114 = load i8*, i8** %4
%115 = load i32, i32* %5
%116 = load i32, i32* %6
%117 = call i32 @ip_dump(i8* %114, i32 %115, i32 %116)
br label %206
118: ; preds = %3
%119 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.23, i64 0, i64 0))
%120 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0))
%121 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%122 = load i32, i32* %8
switch i32 %122, label %127 [
i32 0, label %123
i32 1, label %125
]
123: ; preds = %118
%124 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.25, i64 0, i64 0))
br label %130
125: ; preds = %118
%126 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.26, i64 0, i64 0))
br label %130
127: ; preds = %118
%128 = load i32, i32* %8
%129 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i32 %128)
br label %130
130: ; preds = %127, %125, %123
%131 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0))
%132 = load i8*, i8** %4
%133 = load i32, i32* %5
%134 = load i32, i32* %6
%135 = call i32 @ip_dump(i8* %132, i32 %133, i32 %134)
br label %206
136: ; preds = %3
%137 = load i32, i32* %9
%138 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.27, i64 0, i64 0), i32 %137)
%139 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0))
%140 = load i8*, i8** %4
%141 = load i32, i32* %5
%142 = load i32, i32* %6
%143 = call i32 @ip_dump(i8* %140, i32 %141, i32 %142)
br label %206
144: ; preds = %3
%145 = call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.28, i64 0, i64 0))
%146 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0))
%147 = load i8*, i8** %4
%148 = load i32, i32* %5
%149 = load i32, i32* %6
%150 = call i32 @ip_dump(i8* %147, i32 %148, i32 %149)
br label %206
151: ; preds = %3
%152 = load i32, i32* %11
%153 = load i32, i32* %12
%154 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.29, i64 0, i64 0), i32 %152, i32 %153)
%155 = load i8*, i8** %4
%156 = load i32, i32* %5
%157 = load i32, i32* %6
%158 = call i32 @data_dump(i8* %155, i32 %156, i32 %157)
br label %206
159: ; preds = %3
%160 = load i32, i32* %11
%161 = load i32, i32* %12
%162 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.30, i64 0, i64 0), i32 %160, i32 %161)
%163 = load i8*, i8** %4
%164 = load i32, i32* %5
%165 = load i32, i32* %6
%166 = call i32 @data_dump(i8* %163, i32 %164, i32 %165)
br label %206
167: ; preds = %3
%168 = load i32, i32* %11
%169 = load i32, i32* %12
%170 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.31, i64 0, i64 0), i32 %168, i32 %169)
%171 = load i8*, i8** %4
%172 = load i32, i32* %5
%173 = load i32, i32* %6
%174 = call i32 @data_dump(i8* %171, i32 %172, i32 %173)
br label %206
175: ; preds = %3
%176 = load i32, i32* %11
%177 = load i32, i32* %12
%178 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.32, i64 0, i64 0), i32 %176, i32 %177)
%179 = load i8*, i8** %4
%180 = load i32, i32* %5
%181 = load i32, i32* %6
%182 = call i32 @data_dump(i8* %179, i32 %180, i32 %181)
br label %206
183: ; preds = %3
%184 = load i32, i32* %11
%185 = load i32, i32* %12
%186 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i32 %184, i32 %185)
%187 = load i8*, i8** %4
%188 = load i32, i32* %5
%189 = load i32, i32* %6
%190 = call i32 @data_dump(i8* %187, i32 %188, i32 %189)
br label %206
191: ; preds = %3
%192 = load i32, i32* %11
%193 = load i32, i32* %12
%194 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.34, i64 0, i64 0), i32 %192, i32 %193)
%195 = load i8*, i8** %4
%196 = load i32, i32* %5
%197 = load i32, i32* %6
%198 = call i32 @data_dump(i8* %195, i32 %196, i32 %197)
br label %206
199: ; preds = %3
%200 = load i32, i32* %7
%201 = call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.35, i64 0, i64 0), i32 %200)
%202 = load i8*, i8** %4
%203 = load i32, i32* %5
%204 = load i32, i32* %6
%205 = call i32 @data_dump(i8* %202, i32 %203, i32 %204)
br label %206
206: ; preds = %199, %191, %183, %175, %167, %159, %151, %144, %136, %130, %95, %74
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"ICMP: type \00"
@.str.1 = [13 x i8] c"Unreachable \00"
@.str.2 = [6 x i8] c"code \00"
@.str.3 = [8 x i8] c"Network\00"
@.str.4 = [5 x i8] c"Host\00"
@.str.5 = [9 x i8] c"Protocol\00"
@.str.6 = [5 x i8] c"Port\00"
@.str.7 = [14 x i8] c"Fragmentation\00"
@.str.8 = [13 x i8] c"Source route\00"
@.str.9 = [17 x i8] c"Dest net unknown\00"
@.str.10 = [18 x i8] c"Dest host unknown\00"
@.str.11 = [21 x i8] c"Source host isolated\00"
@.str.12 = [15 x i8] c"Net prohibited\00"
@.str.13 = [16 x i8] c"Host prohibited\00"
@.str.14 = [8 x i8] c"Net TOS\00"
@.str.15 = [9 x i8] c"Host TOS\00"
@.str.16 = [28 x i8] c"Administratively Prohibited\00"
@.str.17 = [3 x i8] c"%d\00"
@.str.18 = [11 x i8] c"\0AReturned \00"
@.str.19 = [10 x i8] c"Redirect \00"
@.str.20 = [14 x i8] c"TOS & Network\00"
@.str.21 = [11 x i8] c"TOS & Host\00"
@.str.22 = [25 x i8] c" new gateway %d.%d.%d.%d\00"
@.str.23 = [20 x i8] c"Time Exceeded code \00"
@.str.24 = [15 x i8] c"Time Exceeded \00"
@.str.25 = [13 x i8] c"Time-to-live\00"
@.str.26 = [20 x i8] c"Fragment reassembly\00"
@.str.27 = [29 x i8] c"Parameter Problem pointer %d\00"
@.str.28 = [14 x i8] c"Source Quench\00"
@.str.29 = [27 x i8] c"Echo Request id %d seq %d\0A\00"
@.str.30 = [25 x i8] c"Echo Reply id %d seq %d\0A\00"
@.str.31 = [34 x i8] c"Information Request id %d seq %d\0A\00"
@.str.32 = [32 x i8] c"Information Reply id %d seq %d\0A\00"
@.str.33 = [32 x i8] c"Timestamp Request id %d seq %d\0A\00"
@.str.34 = [30 x i8] c"Timestamp Reply id %d seq %d\0A\00"
@.str.35 = [4 x i8] c"%d\0A\00"
define void @icmp_dump(i8* %0, i32 %1, i32 %2) {
%4 = load i8, i8* %0
%5 = getelementptr inbounds i8, i8* %0, i64 1
%6 = load i8, i8* %5
%7 = zext i8 %6 to i32
%8 = getelementptr inbounds i8, i8* %0, i64 4
%9 = load i8, i8* %8
%10 = tail call i32 @get16(i8* %8)
%11 = getelementptr inbounds i8, i8* %0, i64 6
%12 = tail call i32 @get16(i8* %11)
%13 = getelementptr inbounds i8, i8* %0, i64 8
%14 = add nsw i32 %1, -8
%15 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
switch i8 %4, label %119 [
i8 3, label %16
i8 5, label %52
i8 11, label %79
i8 12, label %92
i8 4, label %97
i8 8, label %101
i8 0, label %104
i8 15, label %107
i8 16, label %110
i8 13, label %113
i8 14, label %116
]
16: ; preds = %3
%17 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%18 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
switch i8 %6, label %47 [
i8 0, label %19
i8 1, label %21
i8 2, label %23
i8 3, label %25
i8 4, label %27
i8 5, label %29
i8 6, label %31
i8 7, label %33
i8 8, label %35
i8 9, label %37
i8 10, label %39
i8 11, label %41
i8 12, label %43
i8 13, label %45
]
19: ; preds = %16
%20 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %49
21: ; preds = %16
%22 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %49
23: ; preds = %16
%24 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
br label %49
25: ; preds = %16
%26 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %49
27: ; preds = %16
%28 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
br label %49
29: ; preds = %16
%30 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
br label %49
31: ; preds = %16
%32 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
br label %49
33: ; preds = %16
%34 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0))
br label %49
35: ; preds = %16
%36 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0))
br label %49
37: ; preds = %16
%38 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0))
br label %49
39: ; preds = %16
%40 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
br label %49
41: ; preds = %16
%42 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
br label %49
43: ; preds = %16
%44 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0))
br label %49
45: ; preds = %16
%46 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0))
br label %49
47: ; preds = %16
%48 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i32 %7)
br label %49
49: ; preds = %47, %45, %43, %41, %39, %37, %35, %33, %31, %29, %27, %25, %23, %21, %19
%50 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0))
%51 = tail call i32 @ip_dump(i8* %13, i32 %14, i32 %2)
br label %123
52: ; preds = %3
%53 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
%54 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
switch i8 %6, label %63 [
i8 0, label %55
i8 1, label %57
i8 2, label %59
i8 3, label %61
]
55: ; preds = %52
%56 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %65
57: ; preds = %52
%58 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %65
59: ; preds = %52
%60 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.20, i64 0, i64 0))
br label %65
61: ; preds = %52
%62 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0))
br label %65
63: ; preds = %52
%64 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i32 %7)
br label %65
65: ; preds = %63, %61, %59, %57, %55
%66 = load i8, i8* %8
%67 = zext i8 %66 to i32
%68 = getelementptr inbounds i8, i8* %0, i64 5
%69 = load i8, i8* %68
%70 = zext i8 %69 to i32
%71 = load i8, i8* %11
%72 = zext i8 %71 to i32
%73 = getelementptr inbounds i8, i8* %0, i64 7
%74 = load i8, i8* %73
%75 = zext i8 %74 to i32
%76 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.22, i64 0, i64 0), i32 %67, i32 %70, i32 %72, i32 %75)
%77 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0))
%78 = tail call i32 @ip_dump(i8* %13, i32 %14, i32 %2)
br label %123
79: ; preds = %3
%80 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.23, i64 0, i64 0))
%81 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0))
%82 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
switch i8 %6, label %87 [
i8 0, label %83
i8 1, label %85
]
83: ; preds = %79
%84 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.25, i64 0, i64 0))
br label %89
85: ; preds = %79
%86 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.26, i64 0, i64 0))
br label %89
87: ; preds = %79
%88 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i32 %7)
br label %89
89: ; preds = %87, %85, %83
%90 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0))
%91 = tail call i32 @ip_dump(i8* %13, i32 %14, i32 %2)
br label %123
92: ; preds = %3
%93 = zext i8 %9 to i32
%94 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.27, i64 0, i64 0), i32 %93)
%95 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0))
%96 = tail call i32 @ip_dump(i8* %13, i32 %14, i32 %2)
br label %123
97: ; preds = %3
%98 = tail call i32 (i32, i8*, ...) @lprintf(i32 1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.28, i64 0, i64 0))
%99 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0))
%100 = tail call i32 @ip_dump(i8* %13, i32 %14, i32 %2)
br label %123
101: ; preds = %3
%102 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.29, i64 0, i64 0), i32 %10, i32 %12)
%103 = tail call i32 @data_dump(i8* %13, i32 %14, i32 %2)
br label %123
104: ; preds = %3
%105 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.30, i64 0, i64 0), i32 %10, i32 %12)
%106 = tail call i32 @data_dump(i8* %13, i32 %14, i32 %2)
br label %123
107: ; preds = %3
%108 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.31, i64 0, i64 0), i32 %10, i32 %12)
%109 = tail call i32 @data_dump(i8* %13, i32 %14, i32 %2)
br label %123
110: ; preds = %3
%111 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.32, i64 0, i64 0), i32 %10, i32 %12)
%112 = tail call i32 @data_dump(i8* %13, i32 %14, i32 %2)
br label %123
113: ; preds = %3
%114 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i32 %10, i32 %12)
%115 = tail call i32 @data_dump(i8* %13, i32 %14, i32 %2)
br label %123
116: ; preds = %3
%117 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.34, i64 0, i64 0), i32 %10, i32 %12)
%118 = tail call i32 @data_dump(i8* %13, i32 %14, i32 %2)
br label %123
119: ; preds = %3
%120 = zext i8 %4 to i32
%121 = tail call i32 (i32, i8*, ...) @lprintf(i32 9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.35, i64 0, i64 0), i32 %120)
%122 = tail call i32 @data_dump(i8* %13, i32 %14, i32 %2)
br label %123
123: ; preds = %119, %116, %113, %110, %107, %104, %101, %97, %92, %89, %65, %49
ret void
}