#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*/ uint32_t;
struct iphdr {
  int ihl;
  int tos;
  int frag_off;
  int ttl;
  int protocol;
  int /*<<< orphan*/ tot_len;
  int /*<<< orphan*/ check;
  int /*<<< orphan*/ id;
  int /*<<< orphan*/ daddr;
  int /*<<< orphan*/ saddr;
};

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int ETHER_HDR_LEN;
int INET_ADDRSTRLEN;
int IP_OFFMASK;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ *inet_ntop(int /*<<< orphan*/, int /*<<< orphan*/ *, char *,
                              int);
int /*<<< orphan*/ ip4_print_flags(int);
int /*<<< orphan*/ ip4_print_options(char const *);
int /*<<< orphan*/ ip4_print_protocol(int);
int /*<<< orphan*/ ip4_print_tos(int);
char *malloc(int);
int ntohs(int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ tcp_complete_analysis(unsigned char const *, int, int);
int /*<<< orphan*/ udp_analysis(unsigned char const *, int);
void ip4_complete_analysis(const unsigned char *packet, const uint32_t len) {
  const struct iphdr *ip4_header;
  char *src, *dst;
  const char *opts = NULL;
  ip4_header = (const struct iphdr *)(packet + ETHER_HDR_LEN);
  src = malloc(INET_ADDRSTRLEN * sizeof(char));
  dst = malloc(INET_ADDRSTRLEN * sizeof(char));
  if (src == NULL) {
    fprintf(stderr, "Error: could not allocate memory for source address.");
    fprintf(stderr, " Discarding packet.\n");
    return;
  }
  if (dst == NULL) {
    fprintf(stderr, "Error: could not allocate memory for dest address.");
    fprintf(stderr, " Discarding packet.\n");
    free(src);
    return;
  }
  if ((inet_ntop(AF_INET, &ip4_header->saddr, src, INET_ADDRSTRLEN)) == NULL) {
    fprintf(stderr, "Error retrieving source address. Discarding packet.\n");
    return;
  }
  if ((inet_ntop(AF_INET, &ip4_header->daddr, dst, INET_ADDRSTRLEN)) == NULL) {
    fprintf(stderr, "Error retrieving dest address. Discarding packet.\n");
    return;
  }
  fprintf(stdout, "\t+-----------------------------+\n");
  fprintf(stdout, "\t| Internet protocol version 4 |\n");
  fprintf(stdout, "\t+-----------------------------+\n");
  fprintf(stdout, "\tVersion: 4\n");
  fprintf(stdout, "\tHeader length: %u\n", ip4_header->ihl);
  fprintf(stdout, "\tDifferentiated services field: 0x%x\n", ip4_header->tos);
  ip4_print_tos(ip4_header->tos);
  fprintf(stdout, "\tTotal length: %d bytes\n", ntohs(ip4_header->tot_len));
  fprintf(stdout, "\tIdentification: 0x%x\n", ntohs(ip4_header->id));
  fprintf(stdout, "\tFlags: 0x%x\n", ip4_header->frag_off);
  ip4_print_flags(ip4_header->frag_off);
  fprintf(stdout, "\tFragment offset: %d\n",
          ((ip4_header->frag_off) & IP_OFFMASK));
  fprintf(stdout, "\tTime to live: %d\n", ip4_header->ttl);
  fprintf(stdout, "\tProtocol: ");
  ip4_print_protocol(ip4_header->protocol);
  fprintf(stdout, "\n");
  fprintf(stdout, "\tHeader checksum: 0x%x (validation disabled)\n",
          ntohs(ip4_header->check));
  fprintf(stdout, "\tSource: %s\n", src);
  fprintf(stdout, "\tDestination: %s\n", dst);
  if (ip4_header->ihl > 5) {
    opts = (const char *)(packet + ETHER_HDR_LEN + (32 * 5));
    ip4_print_options(opts);
  }
  free(src);
  free(dst);
  switch (ip4_header->protocol) {
  case 6:
    tcp_complete_analysis(packet, ip4_header->ihl, ntohs(ip4_header->tot_len));
    fprintf(stdout, "\n");
    break;
  case 17:
    udp_analysis(packet, ip4_header->ihl);
    fprintf(stdout, "\n");
    break;
  default:
    fprintf(stdout, "\n");
    break;
  }
}


x86 assembly (clang, -O0):
<ip4_complete_analysis>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movq   $0x0,-0x30(%rbp)
mov    -0x8(%rbp),%rax
mov    0x2de6(%rip),%rcx
movslq (%rcx),%rcx
add    %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    0x2de5(%rip),%rax
movslq (%rax),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    0x2dcc(%rip),%rax
movslq (%rax),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    124c <ip4_complete_analysis+0x9c>
mov    0x2db0(%rip),%rax
mov    (%rax),%edi
lea    0xdd7(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2d99(%rip),%rax
mov    (%rax),%edi
lea    0xe48(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    161d <ip4_complete_analysis+0x46d>
cmpq   $0x0,-0x28(%rbp)
jne    1293 <ip4_complete_analysis+0xe3>
mov    0x2d72(%rip),%rax
mov    (%rax),%edi
lea    0xdce(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2d5b(%rip),%rax
mov    (%rax),%edi
lea    0xe0a(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x20(%rbp),%rdi
call   1050 <free@plt>
jmp    161d <ip4_complete_analysis+0x46d>
mov    0x2d4e(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rsi
add    $0x24,%rsi
mov    -0x20(%rbp),%rdx
mov    0x2d19(%rip),%rax
mov    (%rax),%ecx
call   1030 <inet_ntop@plt>
cmp    $0x0,%rax
jne    12dc <ip4_complete_analysis+0x12c>
mov    0x2d09(%rip),%rax
mov    (%rax),%edi
lea    0xd98(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    161d <ip4_complete_analysis+0x46d>
mov    0x2d05(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rsi
add    $0x20,%rsi
mov    -0x28(%rbp),%rdx
mov    0x2cd0(%rip),%rax
mov    (%rax),%ecx
call   1030 <inet_ntop@plt>
cmp    $0x0,%rax
jne    1325 <ip4_complete_analysis+0x175>
mov    0x2cc0(%rip),%rax
mov    (%rax),%edi
lea    0xd84(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    161d <ip4_complete_analysis+0x46d>
mov    0x2c94(%rip),%rax
mov    (%rax),%edi
lea    0xd9b(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2c7d(%rip),%rax
mov    (%rax),%edi
lea    0xda6(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2c66(%rip),%rax
mov    (%rax),%edi
lea    0xd6d(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2c4f(%rip),%rax
mov    (%rax),%edi
lea    0xd9a(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2c38(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%edx
lea    0xd8a(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2c1b(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rax
mov    0x4(%rax),%edx
lea    0xd80(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x18(%rbp),%rax
mov    0x4(%rax),%edi
call   10c0 <ip4_print_tos@plt>
mov    0x2bf1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x18(%rbp),%rax
mov    0x14(%rax),%edi
call   10a0 <ntohs@plt>
mov    -0x3c(%rbp),%edi
mov    %eax,%edx
lea    0xd6f(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2bc6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    -0x18(%rbp),%rax
mov    0x1c(%rax),%edi
call   10a0 <ntohs@plt>
mov    -0x38(%rbp),%edi
mov    %eax,%edx
lea    0xd5d(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2b9b(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%edx
lea    0xd56(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%edi
call   10b0 <ip4_print_flags@plt>
mov    0x2b71(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%edx
mov    0x2b81(%rip),%rax
and    (%rax),%edx
lea    0xd31(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2b4a(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rax
mov    0xc(%rax),%edx
lea    0xd29(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2b2c(%rip),%rax
mov    (%rax),%edi
lea    0xd25(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%edi
call   1040 <ip4_print_protocol@plt>
mov    0x2b09(%rip),%rax
mov    (%rax),%edi
lea    0xd3a(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2af2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%edi
call   10a0 <ntohs@plt>
mov    -0x34(%rbp),%edi
mov    %eax,%edx
lea    0xce3(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2ac7(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rdx
lea    0xcf6(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2aac(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%rdx
lea    0xce8(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x18(%rbp),%rax
cmpl   $0x5,(%rax)
jle    1559 <ip4_complete_analysis+0x3a9>
mov    -0x8(%rbp),%rax
mov    0x2a78(%rip),%rcx
movslq (%rcx),%rcx
add    %rcx,%rax
add    $0xa0,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
call   1090 <ip4_print_options@plt>
mov    -0x20(%rbp),%rdi
call   1050 <free@plt>
mov    -0x28(%rbp),%rdi
call   1050 <free@plt>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%eax
mov    %eax,-0x40(%rbp)
sub    $0x6,%eax
je     1594 <ip4_complete_analysis+0x3e4>
jmp    1583 <ip4_complete_analysis+0x3d3>
mov    -0x40(%rbp),%eax
sub    $0x11,%eax
je     15db <ip4_complete_analysis+0x42b>
jmp    1606 <ip4_complete_analysis+0x456>
mov    -0x8(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
mov    -0x18(%rbp),%rax
mov    0x14(%rax),%edi
call   10a0 <ntohs@plt>
mov    -0x50(%rbp),%rdi
mov    -0x44(%rbp),%esi
mov    %eax,%edx
call   1060 <tcp_complete_analysis@plt>
mov    0x29fa(%rip),%rax
mov    (%rax),%edi
lea    0xc2b(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    161d <ip4_complete_analysis+0x46d>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
call   10d0 <udp_analysis@plt>
mov    0x29cf(%rip),%rax
mov    (%rax),%edi
lea    0xc00(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    161d <ip4_complete_analysis+0x46d>
mov    0x29b3(%rip),%rax
mov    (%rax),%edi
lea    0xbe4(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ip4_complete_analysis>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdi,%rbx
mov    0x2df0(%rip),%rax
movslq (%rax),%r14
mov    0x2df6(%rip),%r15
mov    (%r15),%ebp
mov    %ebp,%edi
call   1080 <malloc@plt>
mov    %rax,%r12
mov    %ebp,%edi
call   1080 <malloc@plt>
test   %r12,%r12
je     143e <ip4_complete_analysis+0x28e>
test   %rax,%rax
je     1460 <ip4_complete_analysis+0x2b0>
mov    %rax,0x10(%rsp)
mov    %rbx,0x8(%rsp)
add    %rbx,%r14
mov    0x2ddc(%rip),%r13
mov    0x0(%r13),%edi
lea    0x24(%r14),%rsi
mov    %r12,%rdx
mov    %ebp,%ecx
call   1030 <inet_ntop@plt>
test   %rax,%rax
je     149d <ip4_complete_analysis+0x2ed>
mov    0x0(%r13),%edi
lea    0x20(%r14),%rsi
mov    (%r15),%ecx
mov    0x10(%rsp),%rbx
mov    %rbx,%rdx
call   1030 <inet_ntop@plt>
test   %rax,%rax
je     14af <ip4_complete_analysis+0x2ff>
mov    0x2d71(%rip),%r13
mov    0x0(%r13),%edi
lea    0xe76(%rip),%rbp
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x0(%r13),%edi
lea    0xe83(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x0(%r13),%edi
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x0(%r13),%edi
lea    0xe85(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x0(%r13),%edi
mov    (%r14),%edx
lea    0xe7d(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x0(%r13),%edi
mov    0x4(%r14),%edx
lea    0xe7b(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x4(%r14),%edi
call   10c0 <ip4_print_tos@plt>
mov    0x0(%r13),%ebp
mov    0x14(%r14),%edi
call   10a0 <ntohs@plt>
lea    0xe7d(%rip),%rsi
mov    %ebp,%edi
mov    %eax,%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x0(%r13),%ebp
mov    0x1c(%r14),%edi
call   10a0 <ntohs@plt>
lea    0xe77(%rip),%rsi
mov    %ebp,%edi
mov    %eax,%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x0(%r13),%edi
mov    0x8(%r14),%edx
lea    0xe74(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x8(%r14),%edi
call   10b0 <ip4_print_flags@plt>
mov    0x0(%r13),%edi
mov    0x2cae(%rip),%rax
mov    (%rax),%edx
and    0x8(%r14),%edx
lea    0xe5a(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x0(%r13),%edi
mov    0xc(%r14),%edx
lea    0xe5a(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x0(%r13),%edi
lea    0xe5b(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x10(%r14),%edi
call   1040 <ip4_print_protocol@plt>
mov    0x0(%r13),%edi
lea    0xe78(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x0(%r13),%ebp
mov    0x18(%r14),%edi
call   10a0 <ntohs@plt>
lea    0xe31(%rip),%rsi
mov    %ebp,%edi
mov    %eax,%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x0(%r13),%edi
lea    0xe49(%rip),%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x0(%r13),%edi
lea    0xe41(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1070 <fprintf@plt>
cmpl   $0x6,(%r14)
jl     13f7 <ip4_complete_analysis+0x247>
mov    0x2bd9(%rip),%rax
movslq (%rax),%rax
mov    0x8(%rsp),%rcx
lea    (%rcx,%rax,1),%rdi
add    $0xa0,%rdi
call   1090 <ip4_print_options@plt>
mov    %r12,%rdi
call   1050 <free@plt>
mov    0x10(%rsp),%rdi
call   1050 <free@plt>
mov    0x10(%r14),%eax
cmp    $0x11,%eax
je     14c1 <ip4_complete_analysis+0x311>
cmp    $0x6,%eax
jne    14ce <ip4_complete_analysis+0x31e>
mov    (%r14),%ebp
mov    0x14(%r14),%edi
call   10a0 <ntohs@plt>
mov    0x8(%rsp),%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1060 <tcp_complete_analysis@plt>
jmp    14ce <ip4_complete_analysis+0x31e>
mov    0x2b8b(%rip),%rbx
mov    (%rbx),%edi
lea    0xbb2(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    (%rbx),%edi
lea    0xc2a(%rip),%rsi
jmp    14d9 <ip4_complete_analysis+0x329>
mov    0x2b69(%rip),%rbx
mov    (%rbx),%edi
lea    0xbc5(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    (%rbx),%edi
lea    0xc08(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    %r12,%rdi
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <free@plt>
mov    0x2b2c(%rip),%rax
mov    (%rax),%edi
lea    0xbbb(%rip),%rsi
jmp    14d9 <ip4_complete_analysis+0x329>
mov    0x2b1a(%rip),%rax
mov    (%rax),%edi
lea    0xbde(%rip),%rsi
jmp    14d9 <ip4_complete_analysis+0x329>
mov    (%r14),%esi
mov    0x8(%rsp),%rdi
call   10d0 <udp_analysis@plt>
mov    0x0(%r13),%edi
lea    0xd21(%rip),%rsi
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1070 <fprintf@plt>

LLVM IR (-O0):
%struct.iphdr = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
@ETHER_HDR_LEN = global i32 0
@INET_ADDRSTRLEN = global i32 0
@stderr = global i32 0
@.str = [53 x i8] c"Error: could not allocate memory for source address.\00"
@.str.1 = [21 x i8] c" Discarding packet.\0A\00"
@.str.2 = [51 x i8] c"Error: could not allocate memory for dest address.\00"
@AF_INET = global i32 0
@.str.3 = [53 x i8] c"Error retrieving source address. Discarding packet.\0A\00"
@.str.4 = [51 x i8] c"Error retrieving dest address. Discarding packet.\0A\00"
@stdout = global i32 0
@.str.5 = [34 x i8] c"\09+-----------------------------+\0A\00"
@.str.6 = [34 x i8] c"\09| Internet protocol version 4 |\0A\00"
@.str.7 = [13 x i8] c"\09Version: 4\0A\00"
@.str.8 = [20 x i8] c"\09Header length: %u\0A\00"
@.str.9 = [38 x i8] c"\09Differentiated services field: 0x%x\0A\00"
@.str.10 = [25 x i8] c"\09Total length: %d bytes\0A\00"
@.str.11 = [23 x i8] c"\09Identification: 0x%x\0A\00"
@.str.12 = [14 x i8] c"\09Flags: 0x%x\0A\00"
@.str.13 = [22 x i8] c"\09Fragment offset: %d\0A\00"
@IP_OFFMASK = global i32 0
@.str.14 = [19 x i8] c"\09Time to live: %d\0A\00"
@.str.15 = [12 x i8] c"\09Protocol: \00"
@.str.16 = [2 x i8] c"\0A\00"
@.str.17 = [46 x i8] c"\09Header checksum: 0x%x (validation disabled)\0A\00"
@.str.18 = [13 x i8] c"\09Source: %s\0A\00"
@.str.19 = [18 x i8] c"\09Destination: %s\0A\00"
define void @ip4_complete_analysis(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca %struct.iphdr*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
store i8* %0, i8** %3
store i32 %1, i32* %4
store i8* null, i8** %8
%9 = load i8*, i8** %3
%10 = load i32, i32* @ETHER_HDR_LEN
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, i8* %9, i64 %11
%13 = bitcast i8* %12 to %struct.iphdr*
store %struct.iphdr* %13, %struct.iphdr** %5
%14 = load i32, i32* @INET_ADDRSTRLEN
%15 = sext i32 %14 to i64
%16 = mul i64 %15, 1
%17 = trunc i64 %16 to i32
%18 = call i8* @malloc(i32 %17)
store i8* %18, i8** %6
%19 = load i32, i32* @INET_ADDRSTRLEN
%20 = sext i32 %19 to i64
%21 = mul i64 %20, 1
%22 = trunc i64 %21 to i32
%23 = call i8* @malloc(i32 %22)
store i8* %23, i8** %7
%24 = load i8*, i8** %6
%25 = icmp eq i8* %24, null
br i1 %25, label %26, label %31
26: ; preds = %2
%27 = load i32, i32* @stderr
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
br label %182
31: ; preds = %2
%32 = load i8*, i8** %7
%33 = icmp eq i8* %32, null
br i1 %33, label %34, label %41
34: ; preds = %31
%35 = load i32, i32* @stderr
%36 = call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%39 = load i8*, i8** %6
%40 = call i32 @free(i8* %39)
br label %182
41: ; preds = %31
%42 = load i32, i32* @AF_INET
%43 = load %struct.iphdr*, %struct.iphdr** %5
%44 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %43, i32 0, i32 9
%45 = load i8*, i8** %6
%46 = load i32, i32* @INET_ADDRSTRLEN
%47 = call i32* @inet_ntop(i32 %42, i32* %44, i8* %45, i32 %46)
%48 = icmp eq i32* %47, null
br i1 %48, label %49, label %52
49: ; preds = %41
%50 = load i32, i32* @stderr
%51 = call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0))
br label %182
52: ; preds = %41
%53 = load i32, i32* @AF_INET
%54 = load %struct.iphdr*, %struct.iphdr** %5
%55 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %54, i32 0, i32 8
%56 = load i8*, i8** %7
%57 = load i32, i32* @INET_ADDRSTRLEN
%58 = call i32* @inet_ntop(i32 %53, i32* %55, i8* %56, i32 %57)
%59 = icmp eq i32* %58, null
br i1 %59, label %60, label %63
60: ; preds = %52
%61 = load i32, i32* @stderr
%62 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0))
br label %182
63: ; preds = %52
%64 = load i32, i32* @stdout
%65 = call i32 (i32, i8*, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%66 = load i32, i32* @stdout
%67 = call i32 (i32, i8*, ...) @fprintf(i32 %66, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%68 = load i32, i32* @stdout
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%70 = load i32, i32* @stdout
%71 = call i32 (i32, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%72 = load i32, i32* @stdout
%73 = load %struct.iphdr*, %struct.iphdr** %5
%74 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %73, i32 0, i32 0
%75 = load i32, i32* %74
%76 = call i32 (i32, i8*, ...) @fprintf(i32 %72, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 %75)
%77 = load i32, i32* @stdout
%78 = load %struct.iphdr*, %struct.iphdr** %5
%79 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %78, i32 0, i32 1
%80 = load i32, i32* %79
%81 = call i32 (i32, i8*, ...) @fprintf(i32 %77, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i32 %80)
%82 = load %struct.iphdr*, %struct.iphdr** %5
%83 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %82, i32 0, i32 1
%84 = load i32, i32* %83
%85 = call i32 @ip4_print_tos(i32 %84)
%86 = load i32, i32* @stdout
%87 = load %struct.iphdr*, %struct.iphdr** %5
%88 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %87, i32 0, i32 5
%89 = load i32, i32* %88
%90 = call i32 @ntohs(i32 %89)
%91 = call i32 (i32, i8*, ...) @fprintf(i32 %86, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i32 %90)
%92 = load i32, i32* @stdout
%93 = load %struct.iphdr*, %struct.iphdr** %5
%94 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %93, i32 0, i32 7
%95 = load i32, i32* %94
%96 = call i32 @ntohs(i32 %95)
%97 = call i32 (i32, i8*, ...) @fprintf(i32 %92, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0), i32 %96)
%98 = load i32, i32* @stdout
%99 = load %struct.iphdr*, %struct.iphdr** %5
%100 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %99, i32 0, i32 2
%101 = load i32, i32* %100
%102 = call i32 (i32, i8*, ...) @fprintf(i32 %98, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i32 %101)
%103 = load %struct.iphdr*, %struct.iphdr** %5
%104 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %103, i32 0, i32 2
%105 = load i32, i32* %104
%106 = call i32 @ip4_print_flags(i32 %105)
%107 = load i32, i32* @stdout
%108 = load %struct.iphdr*, %struct.iphdr** %5
%109 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %108, i32 0, i32 2
%110 = load i32, i32* %109
%111 = load i32, i32* @IP_OFFMASK
%112 = and i32 %110, %111
%113 = call i32 (i32, i8*, ...) @fprintf(i32 %107, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0), i32 %112)
%114 = load i32, i32* @stdout
%115 = load %struct.iphdr*, %struct.iphdr** %5
%116 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %115, i32 0, i32 3
%117 = load i32, i32* %116
%118 = call i32 (i32, i8*, ...) @fprintf(i32 %114, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), i32 %117)
%119 = load i32, i32* @stdout
%120 = call i32 (i32, i8*, ...) @fprintf(i32 %119, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%121 = load %struct.iphdr*, %struct.iphdr** %5
%122 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %121, i32 0, i32 4
%123 = load i32, i32* %122
%124 = call i32 @ip4_print_protocol(i32 %123)
%125 = load i32, i32* @stdout
%126 = call i32 (i32, i8*, ...) @fprintf(i32 %125, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%127 = load i32, i32* @stdout
%128 = load %struct.iphdr*, %struct.iphdr** %5
%129 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %128, i32 0, i32 6
%130 = load i32, i32* %129
%131 = call i32 @ntohs(i32 %130)
%132 = call i32 (i32, i8*, ...) @fprintf(i32 %127, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0), i32 %131)
%133 = load i32, i32* @stdout
%134 = load i8*, i8** %6
%135 = call i32 (i32, i8*, ...) @fprintf(i32 %133, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i8* %134)
%136 = load i32, i32* @stdout
%137 = load i8*, i8** %7
%138 = call i32 (i32, i8*, ...) @fprintf(i32 %136, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.19, i64 0, i64 0), i8* %137)
%139 = load %struct.iphdr*, %struct.iphdr** %5
%140 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %139, i32 0, i32 0
%141 = load i32, i32* %140
%142 = icmp sgt i32 %141, 5
br i1 %142, label %143, label %151
143: ; preds = %63
%144 = load i8*, i8** %3
%145 = load i32, i32* @ETHER_HDR_LEN
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds i8, i8* %144, i64 %146
%148 = getelementptr inbounds i8, i8* %147, i64 160
store i8* %148, i8** %8
%149 = load i8*, i8** %8
%150 = call i32 @ip4_print_options(i8* %149)
br label %151
151: ; preds = %143, %63
%152 = load i8*, i8** %6
%153 = call i32 @free(i8* %152)
%154 = load i8*, i8** %7
%155 = call i32 @free(i8* %154)
%156 = load %struct.iphdr*, %struct.iphdr** %5
%157 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %156, i32 0, i32 4
%158 = load i32, i32* %157
switch i32 %158, label %179 [
i32 6, label %159
i32 17, label %171
]
159: ; preds = %151
%160 = load i8*, i8** %3
%161 = load %struct.iphdr*, %struct.iphdr** %5
%162 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %161, i32 0, i32 0
%163 = load i32, i32* %162
%164 = load %struct.iphdr*, %struct.iphdr** %5
%165 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %164, i32 0, i32 5
%166 = load i32, i32* %165
%167 = call i32 @ntohs(i32 %166)
%168 = call i32 @tcp_complete_analysis(i8* %160, i32 %163, i32 %167)
%169 = load i32, i32* @stdout
%170 = call i32 (i32, i8*, ...) @fprintf(i32 %169, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
br label %182
171: ; preds = %151
%172 = load i8*, i8** %3
%173 = load %struct.iphdr*, %struct.iphdr** %5
%174 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %173, i32 0, i32 0
%175 = load i32, i32* %174
%176 = call i32 @udp_analysis(i8* %172, i32 %175)
%177 = load i32, i32* @stdout
%178 = call i32 (i32, i8*, ...) @fprintf(i32 %177, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
br label %182
179: ; preds = %151
%180 = load i32, i32* @stdout
%181 = call i32 (i32, i8*, ...) @fprintf(i32 %180, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
br label %182
182: ; preds = %26, %34, %49, %60, %179, %171, %159
ret void
}

LLVM IR (-O2):
@ETHER_HDR_LEN = global i32 0
@INET_ADDRSTRLEN = global i32 0
@stderr = global i32 0
@.str = [53 x i8] c"Error: could not allocate memory for source address.\00"
@.str.1 = [21 x i8] c" Discarding packet.\0A\00"
@.str.2 = [51 x i8] c"Error: could not allocate memory for dest address.\00"
@AF_INET = global i32 0
@.str.3 = [53 x i8] c"Error retrieving source address. Discarding packet.\0A\00"
@.str.4 = [51 x i8] c"Error retrieving dest address. Discarding packet.\0A\00"
@stdout = global i32 0
@.str.5 = [34 x i8] c"\09+-----------------------------+\0A\00"
@.str.6 = [34 x i8] c"\09| Internet protocol version 4 |\0A\00"
@.str.7 = [13 x i8] c"\09Version: 4\0A\00"
@.str.8 = [20 x i8] c"\09Header length: %u\0A\00"
@.str.9 = [38 x i8] c"\09Differentiated services field: 0x%x\0A\00"
@.str.10 = [25 x i8] c"\09Total length: %d bytes\0A\00"
@.str.11 = [23 x i8] c"\09Identification: 0x%x\0A\00"
@.str.12 = [14 x i8] c"\09Flags: 0x%x\0A\00"
@.str.13 = [22 x i8] c"\09Fragment offset: %d\0A\00"
@IP_OFFMASK = global i32 0
@.str.14 = [19 x i8] c"\09Time to live: %d\0A\00"
@.str.15 = [12 x i8] c"\09Protocol: \00"
@.str.16 = [2 x i8] c"\0A\00"
@.str.17 = [46 x i8] c"\09Header checksum: 0x%x (validation disabled)\0A\00"
@.str.18 = [13 x i8] c"\09Source: %s\0A\00"
@.str.19 = [18 x i8] c"\09Destination: %s\0A\00"
define void @ip4_complete_analysis(i8* %0, i32 %1) {
%3 = load i32, i32* @ETHER_HDR_LEN
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds i8, i8* %0, i64 %4
%6 = load i32, i32* @INET_ADDRSTRLEN
%7 = tail call i8* @malloc(i32 %6)
%8 = tail call i8* @malloc(i32 %6)
%9 = icmp eq i8* %7, null
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
br label %136
15: ; preds = %2
%16 = icmp eq i8* %8, null
br i1 %16, label %17, label %23
17: ; preds = %15
%18 = load i32, i32* @stderr
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%22 = tail call i32 @free(i8* %7)
br label %136
23: ; preds = %15
%24 = load i32, i32* @AF_INET
%25 = getelementptr inbounds i8, i8* %5, i64 36
%26 = bitcast i8* %25 to i32*
%27 = tail call i32* @inet_ntop(i32 %24, i32* %26, i8* %7, i32 %6)
%28 = icmp eq i32* %27, null
br i1 %28, label %29, label %32
29: ; preds = %23
%30 = load i32, i32* @stderr
%31 = tail call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0))
br label %136
32: ; preds = %23
%33 = load i32, i32* @AF_INET
%34 = getelementptr inbounds i8, i8* %5, i64 32
%35 = bitcast i8* %34 to i32*
%36 = load i32, i32* @INET_ADDRSTRLEN
%37 = tail call i32* @inet_ntop(i32 %33, i32* %35, i8* %8, i32 %36)
%38 = icmp eq i32* %37, null
br i1 %38, label %39, label %42
39: ; preds = %32
%40 = load i32, i32* @stderr
%41 = tail call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0))
br label %136
42: ; preds = %32
%43 = load i32, i32* @stdout
%44 = tail call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%45 = load i32, i32* @stdout
%46 = tail call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%47 = load i32, i32* @stdout
%48 = tail call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%49 = load i32, i32* @stdout
%50 = tail call i32 (i32, i8*, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%51 = load i32, i32* @stdout
%52 = bitcast i8* %5 to i32*
%53 = load i32, i32* %52
%54 = tail call i32 (i32, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 %53)
%55 = load i32, i32* @stdout
%56 = getelementptr inbounds i8, i8* %5, i64 4
%57 = bitcast i8* %56 to i32*
%58 = load i32, i32* %57
%59 = tail call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i32 %58)
%60 = load i32, i32* %57
%61 = tail call i32 @ip4_print_tos(i32 %60)
%62 = load i32, i32* @stdout
%63 = getelementptr inbounds i8, i8* %5, i64 20
%64 = bitcast i8* %63 to i32*
%65 = load i32, i32* %64
%66 = tail call i32 @ntohs(i32 %65)
%67 = tail call i32 (i32, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i32 %66)
%68 = load i32, i32* @stdout
%69 = getelementptr inbounds i8, i8* %5, i64 28
%70 = bitcast i8* %69 to i32*
%71 = load i32, i32* %70
%72 = tail call i32 @ntohs(i32 %71)
%73 = tail call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0), i32 %72)
%74 = load i32, i32* @stdout
%75 = getelementptr inbounds i8, i8* %5, i64 8
%76 = bitcast i8* %75 to i32*
%77 = load i32, i32* %76
%78 = tail call i32 (i32, i8*, ...) @fprintf(i32 %74, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i32 %77)
%79 = load i32, i32* %76
%80 = tail call i32 @ip4_print_flags(i32 %79)
%81 = load i32, i32* @stdout
%82 = load i32, i32* %76
%83 = load i32, i32* @IP_OFFMASK
%84 = and i32 %83, %82
%85 = tail call i32 (i32, i8*, ...) @fprintf(i32 %81, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0), i32 %84)
%86 = load i32, i32* @stdout
%87 = getelementptr inbounds i8, i8* %5, i64 12
%88 = bitcast i8* %87 to i32*
%89 = load i32, i32* %88
%90 = tail call i32 (i32, i8*, ...) @fprintf(i32 %86, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), i32 %89)
%91 = load i32, i32* @stdout
%92 = tail call i32 (i32, i8*, ...) @fprintf(i32 %91, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%93 = getelementptr inbounds i8, i8* %5, i64 16
%94 = bitcast i8* %93 to i32*
%95 = load i32, i32* %94
%96 = tail call i32 @ip4_print_protocol(i32 %95)
%97 = load i32, i32* @stdout
%98 = tail call i32 (i32, i8*, ...) @fprintf(i32 %97, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%99 = load i32, i32* @stdout
%100 = getelementptr inbounds i8, i8* %5, i64 24
%101 = bitcast i8* %100 to i32*
%102 = load i32, i32* %101
%103 = tail call i32 @ntohs(i32 %102)
%104 = tail call i32 (i32, i8*, ...) @fprintf(i32 %99, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0), i32 %103)
%105 = load i32, i32* @stdout
%106 = tail call i32 (i32, i8*, ...) @fprintf(i32 %105, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i8* %7)
%107 = load i32, i32* @stdout
%108 = tail call i32 (i32, i8*, ...) @fprintf(i32 %107, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.19, i64 0, i64 0), i8* %8)
%109 = load i32, i32* %52
%110 = icmp sgt i32 %109, 5
br i1 %110, label %111, label %117
111: ; preds = %42
%112 = load i32, i32* @ETHER_HDR_LEN
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i8, i8* %0, i64 %113
%115 = getelementptr inbounds i8, i8* %114, i64 160
%116 = tail call i32 @ip4_print_options(i8* %115)
br label %117
117: ; preds = %111, %42
%118 = tail call i32 @free(i8* %7)
%119 = tail call i32 @free(i8* %8)
%120 = load i32, i32* %94
switch i32 %120, label %133 [
i32 6, label %121
i32 17, label %128
]
121: ; preds = %117
%122 = load i32, i32* %52
%123 = load i32, i32* %64
%124 = tail call i32 @ntohs(i32 %123)
%125 = tail call i32 @tcp_complete_analysis(i8* %0, i32 %122, i32 %124)
%126 = load i32, i32* @stdout
%127 = tail call i32 (i32, i8*, ...) @fprintf(i32 %126, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
br label %136
128: ; preds = %117
%129 = load i32, i32* %52
%130 = tail call i32 @udp_analysis(i8* %0, i32 %129)
%131 = load i32, i32* @stdout
%132 = tail call i32 (i32, i8*, ...) @fprintf(i32 %131, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
br label %136
133: ; preds = %117
%134 = load i32, i32* @stdout
%135 = tail call i32 (i32, i8*, ...) @fprintf(i32 %134, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
br label %136
136: ; preds = %121, %128, %133, %39, %29, %17, %10
ret void
}