#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 sockaddr_nl {
  int nlmsg_len;
  scalar_t__ nlmsg_flags;
  void *nlmsg_pid;
  scalar_t__ nl_groups;
  void *nl_pid;
  void *nl_family;
};
struct sockaddr {
  int dummy;
};
struct nlmsghdr {
  int nlmsg_len;
  scalar_t__ nlmsg_flags;
  void *nlmsg_pid;
  scalar_t__ nl_groups;
  void *nl_pid;
  void *nl_family;
};
struct msghdr {
  int msg_namelen;
  int msg_iovlen;
  struct iovec *msg_iov;
  void *msg_name;
};
struct iovec {
  int iov_len;
  void *iov_base;
};
typedef int /*<<< orphan*/ src_addr;
typedef int /*<<< orphan*/ dest_addr;

/* Variables and functions */
void *AF_NETLINK;
char *NLMSG_DATA(struct sockaddr_nl *);
int NLMSG_SPACE(int);
int /*<<< orphan*/ PF_NETLINK;
int /*<<< orphan*/ SOCK_RAW;
int /*<<< orphan*/ bind(int, struct sockaddr *, int);
void *getpid();
char *malloc(int);
int /*<<< orphan*/ memset(struct sockaddr_nl *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ recvmsg(int, struct msghdr *, int /*<<< orphan*/);
int /*<<< orphan*/ sendmsg(int, struct msghdr *, int /*<<< orphan*/);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int);
int /*<<< orphan*/ strcpy(char *, char *);
int echo_kernel(char *in_msg, char *out_msg) {
  struct sockaddr_nl src_addr, dest_addr;
  struct nlmsghdr *nlh = NULL;
  struct iovec iov;
  int sock_fd;
  struct msghdr msg;
  char *temp = malloc(1024);
  sock_fd = socket(PF_NETLINK, SOCK_RAW, 31);
  if (sock_fd < 0)
    return -1;
  memset(&src_addr, 0, sizeof(src_addr));
  src_addr.nl_family = AF_NETLINK;
  src_addr.nl_pid = getpid();
  bind(sock_fd, (struct sockaddr *)&src_addr, sizeof(src_addr));
  memset(&dest_addr, 0, sizeof(dest_addr));
  memset(&dest_addr, 0, sizeof(dest_addr));
  dest_addr.nl_family = AF_NETLINK;
  dest_addr.nl_pid = 0;
  dest_addr.nl_groups = 0;
  nlh = (struct nlmsghdr *)malloc(NLMSG_SPACE(1024));
  memset(nlh, 0, NLMSG_SPACE(1024));
  nlh->nlmsg_len = NLMSG_SPACE(1024);
  nlh->nlmsg_pid = getpid();
  nlh->nlmsg_flags = 0;
  strcpy(NLMSG_DATA(nlh), in_msg);
  iov.iov_base = (void *)nlh;
  iov.iov_len = nlh->nlmsg_len;
  msg.msg_name = (void *)&dest_addr;
  msg.msg_namelen = sizeof(dest_addr);
  msg.msg_iov = &iov;
  msg.msg_iovlen = 1;
  printf("Sending result request to kernel\n");
  sendmsg(sock_fd, &msg, 0);
  printf("Waiting for response from kernel\n");
  recvmsg(sock_fd, &msg, 0);
  temp = (char *)NLMSG_DATA(nlh);
  strcpy(out_msg, temp);
  memset(nlh, 0, NLMSG_SPACE(1024));
  return 0;
}


x86 assembly (clang, -O0):
<echo_kernel>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movq   $0x0,-0x80(%rbp)
mov    $0x400,%edi
call   10a0 <malloc@plt>
mov    %rax,-0xb8(%rbp)
mov    0x2ded(%rip),%rax
mov    (%rax),%edi
mov    0x2dfc(%rip),%rax
mov    (%rax),%esi
mov    $0x1f,%edx
call   10d0 <socket@plt>
mov    %eax,-0x94(%rbp)
cmpl   $0x0,-0x94(%rbp)
jge    1217 <echo_kernel+0x67>
movl   $0xffffffff,-0x4(%rbp)
jmp    13e1 <echo_kernel+0x231>
lea    -0x48(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1070 <memset@plt>
mov    0x2db2(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    $0x0,%al
call   1050 <getpid@plt>
mov    %rax,-0x28(%rbp)
mov    -0x94(%rbp),%edi
lea    -0x48(%rbp),%rsi
mov    $0x30,%edx
call   10c0 <bind@plt>
lea    -0x78(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1070 <memset@plt>
lea    -0x78(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1070 <memset@plt>
mov    0x2d65(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x50(%rbp)
movq   $0x0,-0x58(%rbp)
movq   $0x0,-0x60(%rbp)
mov    $0x400,%edi
call   1080 <NLMSG_SPACE@plt>
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
mov    %rax,-0xc8(%rbp)
mov    $0x400,%edi
call   1080 <NLMSG_SPACE@plt>
mov    -0xc8(%rbp),%rdi
mov    %eax,%edx
xor    %esi,%esi
call   1070 <memset@plt>
mov    $0x400,%edi
call   1080 <NLMSG_SPACE@plt>
mov    %eax,%ecx
mov    -0x80(%rbp),%rax
mov    %ecx,(%rax)
mov    $0x0,%al
call   1050 <getpid@plt>
mov    %rax,%rcx
mov    -0x80(%rbp),%rax
mov    %rcx,0x10(%rax)
mov    -0x80(%rbp),%rax
movq   $0x0,0x8(%rax)
mov    -0x80(%rbp),%rdi
call   1090 <NLMSG_DATA@plt>
mov    %rax,%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x80(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x80(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x90(%rbp)
lea    -0x78(%rbp),%rax
mov    %rax,-0xa0(%rbp)
movl   $0x30,-0xb0(%rbp)
lea    -0x90(%rbp),%rax
mov    %rax,-0xa8(%rbp)
movl   $0x1,-0xac(%rbp)
lea    0xca4(%rip),%rdi
call   1060 <printf@plt>
mov    -0x94(%rbp),%edi
lea    -0xb0(%rbp),%rsi
xor    %edx,%edx
call   1040 <sendmsg@plt>
lea    0xca6(%rip),%rdi
call   1060 <printf@plt>
mov    -0x94(%rbp),%edi
lea    -0xb0(%rbp),%rsi
xor    %edx,%edx
call   10b0 <recvmsg@plt>
mov    -0x80(%rbp),%rdi
call   1090 <NLMSG_DATA@plt>
mov    %rax,-0xb8(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x80(%rbp),%rax
mov    %rax,-0xc0(%rbp)
mov    $0x400,%edi
call   1080 <NLMSG_SPACE@plt>
mov    -0xc0(%rbp),%rdi
mov    %eax,%edx
xor    %esi,%esi
call   1070 <memset@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<echo_kernel>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %rsi,%rbx
mov    %rdi,%r12
mov    0x2e02(%rip),%rax
mov    (%rax),%edi
mov    0x2e11(%rip),%rax
mov    (%rax),%esi
mov    $0x1f,%edx
call   10d0 <socket@plt>
test   %eax,%eax
js     1353 <echo_kernel+0x1a3>
mov    %eax,%ebp
mov    %rbx,0x8(%rsp)
lea    0x68(%rsp),%rbx
xor    %r15d,%r15d
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1070 <memset@plt>
mov    0x2dd0(%rip),%r14
mov    (%r14),%rax
mov    %rax,0x90(%rsp)
xor    %eax,%eax
call   1060 <getpid@plt>
mov    %rax,0x88(%rsp)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x30,%edx
call   10c0 <bind@plt>
lea    0x38(%rsp),%r13
mov    %r13,%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1070 <memset@plt>
mov    %r13,%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1070 <memset@plt>
mov    (%r14),%rax
mov    %rax,0x60(%rsp)
xorps  %xmm0,%xmm0
movups %xmm0,0x50(%rsp)
mov    $0x400,%edi
call   1080 <NLMSG_SPACE@plt>
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,%rbx
mov    $0x400,%edi
call   1080 <NLMSG_SPACE@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    %eax,%edx
call   1070 <memset@plt>
mov    $0x400,%edi
call   1080 <NLMSG_SPACE@plt>
mov    %eax,(%rbx)
xor    %eax,%eax
call   1060 <getpid@plt>
mov    %rax,0x10(%rbx)
movq   $0x0,0x8(%rbx)
mov    %rbx,%rdi
call   1090 <NLMSG_DATA@plt>
mov    %rax,%rdi
mov    %r12,%rsi
call   1030 <strcpy@plt>
mov    %rbx,0x18(%rsp)
mov    (%rbx),%eax
mov    %eax,0x10(%rsp)
mov    %r13,0x30(%rsp)
movabs $0x100000030,%rax
mov    %rax,0x20(%rsp)
lea    0x10(%rsp),%rax
mov    %rax,0x28(%rsp)
lea    0xd08(%rip),%rdi
call   1050 <puts@plt>
lea    0x20(%rsp),%r12
mov    %ebp,%edi
mov    %r12,%rsi
xor    %edx,%edx
call   1040 <sendmsg@plt>
lea    0xd0c(%rip),%rdi
call   1050 <puts@plt>
mov    %ebp,%edi
mov    %r12,%rsi
xor    %edx,%edx
call   10b0 <recvmsg@plt>
mov    %rbx,%rdi
call   1090 <NLMSG_DATA@plt>
mov    0x8(%rsp),%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
mov    $0x400,%edi
call   1080 <NLMSG_SPACE@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    %eax,%edx
call   1070 <memset@plt>
jmp    1359 <echo_kernel+0x1a9>
mov    $0xffffffff,%r15d
mov    %r15d,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.sockaddr_nl = type { i32, i64, i8*, i64, i8*, i8* }
%struct.nlmsghdr = type { i32, i64, i8*, i64, i8*, i8* }
%struct.iovec = type { i32, i8* }
%struct.msghdr = type { i32, i32, %struct.iovec*, i8* }
%struct.sockaddr = type { i32 }
@PF_NETLINK = global i32 0
@SOCK_RAW = global i32 0
@AF_NETLINK = global i8* null
@.str = [34 x i8] c"Sending result request to kernel\0A\00"
@.str.1 = [34 x i8] c"Waiting for response from kernel\0A\00"
define i32 @echo_kernel(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca %struct.sockaddr_nl
%7 = alloca %struct.sockaddr_nl
%8 = alloca %struct.nlmsghdr*
%9 = alloca %struct.iovec
%10 = alloca i32
%11 = alloca %struct.msghdr
%12 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store %struct.nlmsghdr* null, %struct.nlmsghdr** %8
%13 = call i8* @malloc(i32 1024)
store i8* %13, i8** %12
%14 = load i32, i32* @PF_NETLINK
%15 = load i32, i32* @SOCK_RAW
%16 = call i32 @socket(i32 %14, i32 %15, i32 31)
store i32 %16, i32* %10
%17 = load i32, i32* %10
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %2
store i32 -1, i32* %3
br label %83
20: ; preds = %2
%21 = call i32 @memset(%struct.sockaddr_nl* %6, i32 0, i32 48)
%22 = load i8*, i8** @AF_NETLINK
%23 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %6, i32 0, i32 5
store i8* %22, i8** %23
%24 = call i8* (...) @getpid()
%25 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %6, i32 0, i32 4
store i8* %24, i8** %25
%26 = load i32, i32* %10
%27 = bitcast %struct.sockaddr_nl* %6 to %struct.sockaddr*
%28 = call i32 @bind(i32 %26, %struct.sockaddr* %27, i32 48)
%29 = call i32 @memset(%struct.sockaddr_nl* %7, i32 0, i32 48)
%30 = call i32 @memset(%struct.sockaddr_nl* %7, i32 0, i32 48)
%31 = load i8*, i8** @AF_NETLINK
%32 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %7, i32 0, i32 5
store i8* %31, i8** %32
%33 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %7, i32 0, i32 4
store i8* null, i8** %33
%34 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %7, i32 0, i32 3
store i64 0, i64* %34
%35 = call i32 @NLMSG_SPACE(i32 1024)
%36 = call i8* @malloc(i32 %35)
%37 = bitcast i8* %36 to %struct.nlmsghdr*
store %struct.nlmsghdr* %37, %struct.nlmsghdr** %8
%38 = load %struct.nlmsghdr*, %struct.nlmsghdr** %8
%39 = bitcast %struct.nlmsghdr* %38 to %struct.sockaddr_nl*
%40 = call i32 @NLMSG_SPACE(i32 1024)
%41 = call i32 @memset(%struct.sockaddr_nl* %39, i32 0, i32 %40)
%42 = call i32 @NLMSG_SPACE(i32 1024)
%43 = load %struct.nlmsghdr*, %struct.nlmsghdr** %8
%44 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %43, i32 0, i32 0
store i32 %42, i32* %44
%45 = call i8* (...) @getpid()
%46 = load %struct.nlmsghdr*, %struct.nlmsghdr** %8
%47 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %46, i32 0, i32 2
store i8* %45, i8** %47
%48 = load %struct.nlmsghdr*, %struct.nlmsghdr** %8
%49 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %48, i32 0, i32 1
store i64 0, i64* %49
%50 = load %struct.nlmsghdr*, %struct.nlmsghdr** %8
%51 = bitcast %struct.nlmsghdr* %50 to %struct.sockaddr_nl*
%52 = call i8* @NLMSG_DATA(%struct.sockaddr_nl* %51)
%53 = load i8*, i8** %4
%54 = call i32 @strcpy(i8* %52, i8* %53)
%55 = load %struct.nlmsghdr*, %struct.nlmsghdr** %8
%56 = bitcast %struct.nlmsghdr* %55 to i8*
%57 = getelementptr inbounds %struct.iovec, %struct.iovec* %9, i32 0, i32 1
store i8* %56, i8** %57
%58 = load %struct.nlmsghdr*, %struct.nlmsghdr** %8
%59 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %58, i32 0, i32 0
%60 = load i32, i32* %59
%61 = getelementptr inbounds %struct.iovec, %struct.iovec* %9, i32 0, i32 0
store i32 %60, i32* %61
%62 = bitcast %struct.sockaddr_nl* %7 to i8*
%63 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %11, i32 0, i32 3
store i8* %62, i8** %63
%64 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %11, i32 0, i32 0
store i32 48, i32* %64
%65 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %11, i32 0, i32 2
store %struct.iovec* %9, %struct.iovec** %65
%66 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %11, i32 0, i32 1
store i32 1, i32* %66
%67 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%68 = load i32, i32* %10
%69 = call i32 @sendmsg(i32 %68, %struct.msghdr* %11, i32 0)
%70 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%71 = load i32, i32* %10
%72 = call i32 @recvmsg(i32 %71, %struct.msghdr* %11, i32 0)
%73 = load %struct.nlmsghdr*, %struct.nlmsghdr** %8
%74 = bitcast %struct.nlmsghdr* %73 to %struct.sockaddr_nl*
%75 = call i8* @NLMSG_DATA(%struct.sockaddr_nl* %74)
store i8* %75, i8** %12
%76 = load i8*, i8** %5
%77 = load i8*, i8** %12
%78 = call i32 @strcpy(i8* %76, i8* %77)
%79 = load %struct.nlmsghdr*, %struct.nlmsghdr** %8
%80 = bitcast %struct.nlmsghdr* %79 to %struct.sockaddr_nl*
%81 = call i32 @NLMSG_SPACE(i32 1024)
%82 = call i32 @memset(%struct.sockaddr_nl* %80, i32 0, i32 %81)
store i32 0, i32* %3
br label %83
83: ; preds = %20, %19
%84 = load i32, i32* %3
ret i32 %84
}

LLVM IR (-O2):
%struct.sockaddr_nl = type { i32, i64, i8*, i64, i8*, i8* }
%struct.iovec = type { i32, i8* }
%struct.msghdr = type { i32, i32, %struct.iovec*, i8* }
%struct.nlmsghdr = type { i32, i64, i8*, i64, i8*, i8* }
%struct.sockaddr = type { i32 }
@PF_NETLINK = global i32 0
@SOCK_RAW = global i32 0
@AF_NETLINK = global i8* null
@str = [33 x i8] c"Sending result request to kernel\00"
@str.2 = [33 x i8] c"Waiting for response from kernel\00"
define i32 @echo_kernel(i8* %0, i8* %1) {
%3 = alloca %struct.sockaddr_nl
%4 = alloca %struct.sockaddr_nl
%5 = alloca %struct.iovec
%6 = alloca %struct.msghdr
%7 = bitcast %struct.sockaddr_nl* %3 to i8*
%8 = bitcast %struct.sockaddr_nl* %4 to i8*
%9 = bitcast %struct.iovec* %5 to i8*
%10 = bitcast %struct.msghdr* %6 to i8*
%11 = load i32, i32* @PF_NETLINK
%12 = load i32, i32* @SOCK_RAW
%13 = tail call i32 @socket(i32 %11, i32 %12, i32 31)
%14 = icmp slt i32 %13, 0
br i1 %14, label %58, label %15
15: ; preds = %2
%16 = call i32 @memset(%struct.sockaddr_nl* %3, i32 0, i32 48)
%17 = load i8*, i8** @AF_NETLINK
%18 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %3, i64 0, i32 5
store i8* %17, i8** %18
%19 = call i8* (...) @getpid()
%20 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %3, i64 0, i32 4
store i8* %19, i8** %20
%21 = bitcast %struct.sockaddr_nl* %3 to %struct.sockaddr*
%22 = call i32 @bind(i32 %13, %struct.sockaddr* %21, i32 48)
%23 = call i32 @memset(%struct.sockaddr_nl* %4, i32 0, i32 48)
%24 = call i32 @memset(%struct.sockaddr_nl* %4, i32 0, i32 48)
%25 = load i8*, i8** @AF_NETLINK
%26 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %4, i64 0, i32 5
store i8* %25, i8** %26
%27 = getelementptr inbounds %struct.sockaddr_nl, %struct.sockaddr_nl* %4, i64 0, i32 3
%28 = bitcast i64* %27 to i8*
%29 = call i32 @NLMSG_SPACE(i32 1024)
%30 = call i8* @malloc(i32 %29)
%31 = bitcast i8* %30 to %struct.nlmsghdr*
%32 = bitcast i8* %30 to %struct.sockaddr_nl*
%33 = call i32 @NLMSG_SPACE(i32 1024)
%34 = call i32 @memset(%struct.sockaddr_nl* %32, i32 0, i32 %33)
%35 = call i32 @NLMSG_SPACE(i32 1024)
%36 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %31, i64 0, i32 0
store i32 %35, i32* %36
%37 = call i8* (...) @getpid()
%38 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %31, i64 0, i32 2
store i8* %37, i8** %38
%39 = getelementptr inbounds %struct.nlmsghdr, %struct.nlmsghdr* %31, i64 0, i32 1
store i64 0, i64* %39
%40 = call i8* @NLMSG_DATA(%struct.sockaddr_nl* %32)
%41 = call i32 @strcpy(i8* %40, i8* %0)
%42 = getelementptr inbounds %struct.iovec, %struct.iovec* %5, i64 0, i32 1
store i8* %30, i8** %42
%43 = load i32, i32* %36
%44 = getelementptr inbounds %struct.iovec, %struct.iovec* %5, i64 0, i32 0
store i32 %43, i32* %44
%45 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %6, i64 0, i32 3
%46 = bitcast i8** %45 to %struct.sockaddr_nl**
store %struct.sockaddr_nl* %4, %struct.sockaddr_nl** %46
%47 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %6, i64 0, i32 0
store i32 48, i32* %47
%48 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %6, i64 0, i32 2
store %struct.iovec* %5, %struct.iovec** %48
%49 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %6, i64 0, i32 1
store i32 1, i32* %49
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
%51 = call i32 @sendmsg(i32 %13, %struct.msghdr* %6, i32 0)
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.2, i64 0, i64 0))
%53 = call i32 @recvmsg(i32 %13, %struct.msghdr* %6, i32 0)
%54 = call i8* @NLMSG_DATA(%struct.sockaddr_nl* %32)
%55 = call i32 @strcpy(i8* %1, i8* %54)
%56 = call i32 @NLMSG_SPACE(i32 1024)
%57 = call i32 @memset(%struct.sockaddr_nl* %32, i32 0, i32 %56)
br label %58
58: ; preds = %2, %15
%59 = phi i32 [ 0, %15 ], [ -1, %2 ]
ret i32 %59
}