#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 */
struct iphdr {
  int version;
  scalar_t__ protocol;
  int ihl;
  scalar_t__ type;
  void *checksum;
  void *check;
  int /*<<< orphan*/ daddr;
  int /*<<< orphan*/ saddr;
  int /*<<< orphan*/ tot_len;
};
struct icmphdr {
  int version;
  scalar_t__ protocol;
  int ihl;
  scalar_t__ type;
  void *checksum;
  void *check;
  int /*<<< orphan*/ daddr;
  int /*<<< orphan*/ saddr;
  int /*<<< orphan*/ tot_len;
};
typedef scalar_t__ ssize_t;
typedef int /*<<< orphan*/ cmd;
typedef int /*<<< orphan*/ __be32;

/* Variables and functions */
scalar_t__ ICMP_ECHO;
scalar_t__ ICMP_ECHOREPLY;
int IFNAMSIZ;
scalar_t__ IPPROTO_ICMP;
void *checksum(struct iphdr *, unsigned short);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
unsigned char ntohs(int /*<<< orphan*/);
scalar_t__ read(int, unsigned char *, int);
int /*<<< orphan*/ sprintf(unsigned char *, char *, char *);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ system(unsigned char *);
int tun_open(char *);
int /*<<< orphan*/ write(int, unsigned char *, unsigned char);
int main() {
  char name[IFNAMSIZ];
  unsigned char cmd[1024];
  int fd;
  memset(name, 0, IFNAMSIZ);
  fd = tun_open(name);
  if (fd == -1)
    return 1;
  fprintf(stdout, "%s opened\n", name);
  sprintf(cmd, "ifconfig %s 10.0.1.1 up", name);
  system(cmd);
  sprintf(cmd, "route add 10.0.1.2 dev %s", name);
  system(cmd);
  while (1) {
    ssize_t readen = read(fd, cmd, sizeof(cmd));
    if (readen > 0) {
      struct iphdr *ipHdr = (struct iphdr *)cmd;
      if (ipHdr->version == 4 && ipHdr->protocol == IPPROTO_ICMP) {
        unsigned char ipHdrLen = ipHdr->ihl << 2;
        struct icmphdr *icmpHdr = (struct icmphdr *)(cmd + ipHdrLen);
        if (icmpHdr->type == ICMP_ECHO) {
          unsigned short ipLen = ntohs(ipHdr->tot_len) - ipHdrLen;
          __be32 tmp = ipHdr->saddr;
          ipHdr->saddr = ipHdr->daddr;
          ipHdr->daddr = tmp;
          ipHdr->check = 0;
          ipHdr->check = checksum(ipHdr, ipHdrLen);
          icmpHdr->type = ICMP_ECHOREPLY;
          icmpHdr->checksum = 0;
          icmpHdr->checksum = checksum(icmpHdr, ipLen);
          write(fd, cmd, ipHdrLen + ipLen);
        }
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x460,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e2f(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x10(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0x458(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x18(%rbp)
mov    0x2e00(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1060 <memset@plt>
mov    -0x458(%rbp),%rdi
call   1090 <tun_open@plt>
mov    %eax,-0x424(%rbp)
cmpl   $0xffffffff,-0x424(%rbp)
jne    1216 <main+0x86>
movl   $0x1,-0x4(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret
mov    -0x458(%rbp),%rdx
mov    0x2da4(%rip),%rax
mov    (%rax),%edi
lea    0xdd3(%rip),%rsi
call   1080 <fprintf@plt>
mov    -0x458(%rbp),%rdx
lea    -0x420(%rbp),%rdi
lea    0xdc4(%rip),%rsi
call   10b0 <sprintf@plt>
lea    -0x420(%rbp),%rdi
call   1040 <system@plt>
mov    -0x458(%rbp),%rdx
lea    -0x420(%rbp),%rdi
lea    0xdb6(%rip),%rsi
call   10b0 <sprintf@plt>
lea    -0x420(%rbp),%rdi
call   1040 <system@plt>
jmp    1283 <main+0xf3>
mov    -0x424(%rbp),%edi
lea    -0x420(%rbp),%rsi
mov    $0x400,%edx
call   1070 <read@plt>
mov    %rax,-0x430(%rbp)
cmpq   $0x0,-0x430(%rbp)
jle    142e <main+0x29e>
lea    -0x420(%rbp),%rax
mov    %rax,-0x438(%rbp)
mov    -0x438(%rbp),%rax
cmpl   $0x4,(%rax)
jne    1429 <main+0x299>
mov    -0x438(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x2d09(%rip),%rcx
cmp    (%rcx),%rax
jne    1429 <main+0x299>
mov    -0x438(%rbp),%rax
mov    0x10(%rax),%eax
shl    $0x2,%eax
mov    %al,-0x439(%rbp)
lea    -0x420(%rbp),%rax
movzbl -0x439(%rbp),%ecx
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x448(%rbp)
mov    -0x448(%rbp),%rax
mov    0x18(%rax),%rax
mov    0x2ca8(%rip),%rcx
cmp    (%rcx),%rax
jne    1424 <main+0x294>
mov    -0x438(%rbp),%rax
mov    0x38(%rax),%edi
call   10a0 <ntohs@plt>
movzbl %al,%eax
movzbl -0x439(%rbp),%ecx
sub    %ecx,%eax
mov    %ax,-0x44a(%rbp)
mov    -0x438(%rbp),%rax
mov    0x34(%rax),%eax
mov    %eax,-0x450(%rbp)
mov    -0x438(%rbp),%rax
mov    0x30(%rax),%ecx
mov    -0x438(%rbp),%rax
mov    %ecx,0x34(%rax)
mov    -0x450(%rbp),%ecx
mov    -0x438(%rbp),%rax
mov    %ecx,0x30(%rax)
mov    -0x438(%rbp),%rax
movq   $0x0,0x28(%rax)
mov    -0x438(%rbp),%rdi
movzbl -0x439(%rbp),%eax
movzwl %ax,%esi
call   1050 <checksum@plt>
mov    %rax,%rcx
mov    -0x438(%rbp),%rax
mov    %rcx,0x28(%rax)
mov    0x2bff(%rip),%rax
mov    (%rax),%rcx
mov    -0x448(%rbp),%rax
mov    %rcx,0x18(%rax)
mov    -0x448(%rbp),%rax
movq   $0x0,0x20(%rax)
mov    -0x448(%rbp),%rdi
movzwl -0x44a(%rbp),%esi
call   1050 <checksum@plt>
mov    %rax,%rcx
mov    -0x448(%rbp),%rax
mov    %rcx,0x20(%rax)
mov    -0x424(%rbp),%edi
lea    -0x420(%rbp),%rsi
movzbl -0x439(%rbp),%eax
movzwl -0x44a(%rbp),%ecx
add    %ecx,%eax
movzbl %al,%edx
call   1030 <write@plt>
jmp    1429 <main+0x299>
jmp    142e <main+0x29e>
jmp    127e <main+0xee>

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x408,%rsp
mov    0x2e2d(%rip),%rax
mov    (%rax),%edx
mov    %rsp,%r15
mov    %rdx,%rax
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r15
mov    %r15,%rsp
mov    %r15,%rdi
xor    %esi,%esi
call   1060 <memset@plt>
mov    %r15,%rdi
call   1090 <tun_open@plt>
cmp    $0xffffffff,%eax
je     1317 <main+0x187>
mov    %eax,%r12d
mov    0x2de2(%rip),%rax
mov    (%rax),%edi
lea    0xe11(%rip),%rsi
mov    %r15,%rdx
call   1080 <fprintf@plt>
lea    0xe0d(%rip),%rsi
lea    -0x430(%rbp),%r13
mov    %r13,%rdi
mov    %r15,%rdx
call   10b0 <sprintf@plt>
mov    %r13,%rdi
call   1040 <system@plt>
lea    0xe04(%rip),%rsi
mov    %r13,%rdi
mov    %r15,%rdx
call   10b0 <sprintf@plt>
mov    %r13,%rdi
call   1040 <system@plt>
mov    0x2daf(%rip),%r14
mov    0x2d90(%rip),%r15
mov    %r12d,%edi
mov    %r13,%rsi
mov    $0x400,%edx
call   1070 <read@plt>
test   %rax,%rax
jle    1240 <main+0xb0>
cmpl   $0x4,-0x430(%rbp)
jne    1240 <main+0xb0>
mov    -0x428(%rbp),%rax
cmp    (%r14),%rax
jne    1240 <main+0xb0>
movzbl -0x420(%rbp),%eax
shl    $0x2,%al
movzbl %al,%ebx
mov    -0x418(%rbp,%rbx,1),%rax
ff
cmp    (%r15),%rax
jne    1240 <main+0xb0>
lea    (%rbx,%rbp,1),%r15
add    $0xfffffffffffffbd0,%r15
mov    -0x3f8(%rbp),%edi
call   10a0 <ntohs@plt>
rolq   $0x20,-0x400(%rbp)
20
movzbl %al,%eax
mov    %eax,-0x2c(%rbp)
mov    %r13,%r14
mov    %eax,%r13d
sub    %ebx,%r13d
movq   $0x0,-0x408(%rbp)
mov    %r14,%rdi
mov    %ebx,%esi
call   1050 <checksum@plt>
mov    %rax,-0x408(%rbp)
mov    0x2cec(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x18(%r15)
movq   $0x0,0x20(%r15)
movzwl %r13w,%esi
mov    %r14,%r13
mov    0x2cf7(%rip),%r14
mov    %r15,%rdi
call   1050 <checksum@plt>
mov    %rax,0x20(%r15)
mov    0x2ccc(%rip),%r15
mov    %r12d,%edi
mov    %r13,%rsi
mov    -0x2c(%rbp),%edx
call   1030 <write@plt>
jmp    1240 <main+0xb0>
mov    $0x1,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.iphdr = type { i32, i64, i32, i64, i8*, i8*, i32, i32, i32 }
%struct.icmphdr = type { i32, i64, i32, i64, i8*, i8*, i32, i32, i32 }
@IFNAMSIZ = global i32 0
@stdout = global i32 0
@.str = [11 x i8] c"%s opened\0A\00"
@.str.1 = [24 x i8] c"ifconfig %s 10.0.1.1 up\00"
@.str.2 = [26 x i8] c"route add 10.0.1.2 dev %s\00"
@IPPROTO_ICMP = global i64 0
@ICMP_ECHO = global i64 0
@ICMP_ECHOREPLY = global i64 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i64
%4 = alloca [1024 x i8]
%5 = alloca i32
%6 = alloca i64
%7 = alloca %struct.iphdr*
%8 = alloca i8
%9 = alloca %struct.icmphdr*
%10 = alloca i16
%11 = alloca i32
store i32 0, i32* %1
%12 = load i32, i32* @IFNAMSIZ
%13 = zext i32 %12 to i64
%14 = call i8* @llvm.stacksave()
store i8* %14, i8** %2
%15 = alloca i8, i64 %13
store i64 %13, i64* %3
%16 = load i32, i32* @IFNAMSIZ
%17 = call i32 @memset(i8* %15, i32 0, i32 %16)
%18 = call i32 @tun_open(i8* %15)
store i32 %18, i32* %5
%19 = load i32, i32* %5
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %24
21: ; preds = %0
store i32 1, i32* %1
%22 = load i8*, i8** %2
%23 = load i32, i32* %1
ret i32 %23
24: ; preds = %0
%25 = load i32, i32* @stdout
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %15)
%27 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%28 = call i32 @sprintf(i8* %27, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %15)
%29 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%30 = call i32 @system(i8* %29)
%31 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%32 = call i32 @sprintf(i8* %31, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %15)
%33 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%34 = call i32 @system(i8* %33)
br label %35
35: ; preds = %123, %24
br label %36
36: ; preds = %35
%37 = load i32, i32* %5
%38 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%39 = call i64 @read(i32 %37, i8* %38, i32 1024)
store i64 %39, i64* %6
%40 = load i64, i64* %6
%41 = icmp sgt i64 %40, 0
br i1 %41, label %42, label %123
42: ; preds = %36
%43 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%44 = bitcast i8* %43 to %struct.iphdr*
store %struct.iphdr* %44, %struct.iphdr** %7
%45 = load %struct.iphdr*, %struct.iphdr** %7
%46 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %45, i32 0, i32 0
%47 = load i32, i32* %46
%48 = icmp eq i32 %47, 4
br i1 %48, label %49, label %122
49: ; preds = %42
%50 = load %struct.iphdr*, %struct.iphdr** %7
%51 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %50, i32 0, i32 1
%52 = load i64, i64* %51
%53 = load i64, i64* @IPPROTO_ICMP
%54 = icmp eq i64 %52, %53
br i1 %54, label %55, label %122
55: ; preds = %49
%56 = load %struct.iphdr*, %struct.iphdr** %7
%57 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %56, i32 0, i32 2
%58 = load i32, i32* %57
%59 = shl i32 %58, 2
%60 = trunc i32 %59 to i8
store i8 %60, i8* %8
%61 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%62 = load i8, i8* %8
%63 = zext i8 %62 to i32
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8, i8* %61, i64 %64
%66 = bitcast i8* %65 to %struct.icmphdr*
store %struct.icmphdr* %66, %struct.icmphdr** %9
%67 = load %struct.icmphdr*, %struct.icmphdr** %9
%68 = getelementptr inbounds %struct.icmphdr, %struct.icmphdr* %67, i32 0, i32 3
%69 = load i64, i64* %68
%70 = load i64, i64* @ICMP_ECHO
%71 = icmp eq i64 %69, %70
br i1 %71, label %72, label %121
72: ; preds = %55
%73 = load %struct.iphdr*, %struct.iphdr** %7
%74 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %73, i32 0, i32 8
%75 = load i32, i32* %74
%76 = call zeroext i8 @ntohs(i32 %75)
%77 = zext i8 %76 to i32
%78 = load i8, i8* %8
%79 = zext i8 %78 to i32
%80 = sub nsw i32 %77, %79
%81 = trunc i32 %80 to i16
store i16 %81, i16* %10
%82 = load %struct.iphdr*, %struct.iphdr** %7
%83 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %82, i32 0, i32 7
%84 = load i32, i32* %83
store i32 %84, i32* %11
%85 = load %struct.iphdr*, %struct.iphdr** %7
%86 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %85, i32 0, i32 6
%87 = load i32, i32* %86
%88 = load %struct.iphdr*, %struct.iphdr** %7
%89 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %88, i32 0, i32 7
store i32 %87, i32* %89
%90 = load i32, i32* %11
%91 = load %struct.iphdr*, %struct.iphdr** %7
%92 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %91, i32 0, i32 6
store i32 %90, i32* %92
%93 = load %struct.iphdr*, %struct.iphdr** %7
%94 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %93, i32 0, i32 5
store i8* null, i8** %94
%95 = load %struct.iphdr*, %struct.iphdr** %7
%96 = load i8, i8* %8
%97 = zext i8 %96 to i16
%98 = call i8* @checksum(%struct.iphdr* %95, i16 zeroext %97)
%99 = load %struct.iphdr*, %struct.iphdr** %7
%100 = getelementptr inbounds %struct.iphdr, %struct.iphdr* %99, i32 0, i32 5
store i8* %98, i8** %100
%101 = load i64, i64* @ICMP_ECHOREPLY
%102 = load %struct.icmphdr*, %struct.icmphdr** %9
%103 = getelementptr inbounds %struct.icmphdr, %struct.icmphdr* %102, i32 0, i32 3
store i64 %101, i64* %103
%104 = load %struct.icmphdr*, %struct.icmphdr** %9
%105 = getelementptr inbounds %struct.icmphdr, %struct.icmphdr* %104, i32 0, i32 4
store i8* null, i8** %105
%106 = load %struct.icmphdr*, %struct.icmphdr** %9
%107 = bitcast %struct.icmphdr* %106 to %struct.iphdr*
%108 = load i16, i16* %10
%109 = call i8* @checksum(%struct.iphdr* %107, i16 zeroext %108)
%110 = load %struct.icmphdr*, %struct.icmphdr** %9
%111 = getelementptr inbounds %struct.icmphdr, %struct.icmphdr* %110, i32 0, i32 4
store i8* %109, i8** %111
%112 = load i32, i32* %5
%113 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%114 = load i8, i8* %8
%115 = zext i8 %114 to i32
%116 = load i16, i16* %10
%117 = zext i16 %116 to i32
%118 = add nsw i32 %115, %117
%119 = trunc i32 %118 to i8
%120 = call i32 @write(i32 %112, i8* %113, i8 zeroext %119)
br label %121
121: ; preds = %72, %55
br label %122
122: ; preds = %121, %49, %42
br label %123
123: ; preds = %122, %36
br label %35
}

LLVM IR (-O2):
%struct.iphdr = type { i32, i64, i32, i64, i8*, i8*, i32, i32, i32 }
@IFNAMSIZ = global i32 0
@stdout = global i32 0
@.str = [11 x i8] c"%s opened\0A\00"
@.str.1 = [24 x i8] c"ifconfig %s 10.0.1.1 up\00"
@.str.2 = [26 x i8] c"route add 10.0.1.2 dev %s\00"
@IPPROTO_ICMP = global i64 0
@ICMP_ECHO = global i64 0
@ICMP_ECHOREPLY = global i64 0
define i32 @main() {
%1 = alloca [1024 x i8]
%2 = load i32, i32* @IFNAMSIZ
%3 = zext i32 %2 to i64
%4 = alloca i8, i64 %3
%5 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%6 = call i32 @memset(i8* %4, i32 0, i32 %2)
%7 = call i32 @tun_open(i8* %4)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %10
9: ; preds = %0
ret i32 1
10: ; preds = %0
%11 = load i32, i32* @stdout
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %4)
%13 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%14 = call i32 @system(i8* %5)
%15 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %4)
%16 = call i32 @system(i8* %5)
%17 = bitcast [1024 x i8]* %1 to %struct.iphdr*
%18 = bitcast [1024 x i8]* %1 to i32*
%19 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 8
%20 = bitcast i8* %19 to i64*
%21 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 16
%22 = bitcast i8* %21 to i32*
%23 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 56
%24 = bitcast i8* %23 to i32*
%25 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 52
%26 = bitcast i8* %25 to i32*
%27 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 48
%28 = bitcast i8* %27 to i32*
%29 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 40
%30 = bitcast i8* %29 to i8**
br label %31
31: ; preds = %41, %10
%32 = call i64 @read(i32 %7, i8* %5, i32 1024)
%33 = icmp sgt i64 %32, 0
%34 = load i32, i32* %18
%35 = icmp eq i32 %34, 4
%36 = select i1 %33, i1 %35, i1 false
br i1 %36, label %37, label %41
37: ; preds = %31
%38 = load i64, i64* %20
%39 = load i64, i64* @IPPROTO_ICMP
%40 = icmp eq i64 %38, %39
br i1 %40, label %42, label %41
41: ; preds = %37, %53, %42, %31
br label %31
42: ; preds = %37
%43 = load i32, i32* %22
%44 = trunc i32 %43 to i8
%45 = shl i8 %44, 2
%46 = zext i8 %45 to i64
%47 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 %46
%48 = getelementptr inbounds i8, i8* %47, i64 24
%49 = bitcast i8* %48 to i64*
%50 = load i64, i64* %49
%51 = load i64, i64* @ICMP_ECHO
%52 = icmp eq i64 %50, %51
br i1 %52, label %53, label %41
53: ; preds = %42
%54 = zext i8 %45 to i16
%55 = load i32, i32* %24
%56 = call zeroext i8 @ntohs(i32 %55)
%57 = zext i8 %56 to i16
%58 = sub nsw i16 %57, %54
%59 = load i32, i32* %26
%60 = load i32, i32* %28
store i32 %60, i32* %26
store i32 %59, i32* %28
store i8* null, i8** %30
%61 = call i8* @checksum(%struct.iphdr* %17, i16 zeroext %54)
store i8* %61, i8** %30
%62 = load i64, i64* @ICMP_ECHOREPLY
store i64 %62, i64* %49
%63 = getelementptr inbounds i8, i8* %47, i64 32
%64 = bitcast i8* %63 to i8**
store i8* null, i8** %64
%65 = bitcast i8* %47 to %struct.iphdr*
%66 = call i8* @checksum(%struct.iphdr* %65, i16 zeroext %58)
store i8* %66, i8** %64
%67 = call i32 @write(i32 %7, i8* %5, i8 zeroext %56)
br label %41
}