#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct sockaddr_in {
  int /*<<< orphan*/ sin_port;
  int /*<<< orphan*/ sin_addr;
};
struct msghdr {
  TYPE_1__ *msg_iov;
  scalar_t__ msg_controllen;
  int /*<<< orphan*/ *msg_name;
};
struct cmsghdr {
  scalar_t__ cmsg_level;
  scalar_t__ cmsg_type;
  scalar_t__ cmsg_len;
};
struct TYPE_2__ {
  scalar_t__ iov_base;
};

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
scalar_t__ CMSG_DATA(struct cmsghdr *);
struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *);
struct cmsghdr *CMSG_NXTHDR(struct msghdr *, struct cmsghdr *);
int INET_ADDRSTRLEN;
scalar_t__ IPPROTO_IP;
scalar_t__ IP_TOS;
int /*<<< orphan*/ inet_ntop(int /*<<< orphan*/, int /*<<< orphan*/ *, char *,
                             int);
unsigned short ntohs(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void display_msg(struct msghdr *msg, int msg_len) {
  struct cmsghdr *cmptr;
  char str_addr[INET_ADDRSTRLEN];
  unsigned short port;
  int *ecnptr;
  unsigned char received_ecn;
  unsigned int i;
  if (msg->msg_name != NULL) {
    inet_ntop(AF_INET, &((struct sockaddr_in *)msg->msg_name)->sin_addr,
              str_addr, sizeof(struct sockaddr_in));
    port = ntohs(((struct sockaddr_in *)msg->msg_name)->sin_port);
    printf("UDP message received from: %s:%d\n", str_addr, port);
  }
  printf("Ctrl len: %d\n", (int)msg->msg_controllen);
  for (cmptr = CMSG_FIRSTHDR(msg); cmptr != NULL;
       cmptr = CMSG_NXTHDR(msg, cmptr)) {
    printf("Length: %d, level: %d, type: %d\n", (int)cmptr->cmsg_len,
           (int)cmptr->cmsg_level, (int)cmptr->cmsg_type);
    if (cmptr->cmsg_level == IPPROTO_IP && cmptr->cmsg_type == IP_TOS) {
      ecnptr = (int *)CMSG_DATA(cmptr);
      received_ecn = *ecnptr;
      printf("ECN bits: %d\n", (int)(received_ecn & 0x03));
    }
  }
  printf("Msg len: %d \n", msg_len);
  printf("Buffer dump: ");
  for (i = 0; i < msg_len; ++i) {
    printf("%c", ((char *)msg->msg_iov[0].iov_base)[i]);
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<display_msg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    0x2e52(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x48(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
cmpq   $0x0,0x10(%rax)
je     11f6 <display_msg+0x96>
mov    -0x48(%rbp),%rdx
mov    0x2e33(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%rsi
add    $0x4,%rsi
mov    $0x8,%ecx
call   1030 <inet_ntop@plt>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%rax
mov    (%rax),%edi
call   1070 <ntohs@plt>
mov    -0x48(%rbp),%rsi
mov    %ax,-0x2a(%rbp)
movzwl -0x2a(%rbp),%edx
lea    0xe11(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rax
mov    %eax,%esi
lea    0xe1b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1080 <CMSG_FIRSTHDR@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     12c6 <display_msg+0x166>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rax
mov    %eax,%esi
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %eax,%edx
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
mov    %eax,%ecx
lea    0xde6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    0x2d81(%rip),%rcx
cmp    (%rcx),%rax
jne    12ab <display_msg+0x14b>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x2d61(%rip),%rcx
cmp    (%rcx),%rax
jne    12ab <display_msg+0x14b>
mov    -0x18(%rbp),%rdi
call   1040 <CMSG_DATA@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    (%rax),%eax
mov    %al,-0x39(%rbp)
movzbl -0x39(%rbp),%esi
and    $0x3,%esi
lea    0xdad(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12b0 <display_msg+0x150>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1060 <CMSG_NXTHDR@plt>
mov    %rax,-0x18(%rbp)
jmp    121b <display_msg+0xbb>
mov    -0xc(%rbp),%esi
lea    0xd8f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd8f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0xc(%rbp),%eax
jae    1325 <display_msg+0x1c5>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%rax
mov    -0x40(%rbp),%ecx
movsbl (%rax,%rcx,1),%esi
lea    0xd6b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    12ec <display_msg+0x18c>
lea    0xd3f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<display_msg>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %esi,-0x2c(%rbp)
mov    %rdi,%r15
mov    0x2e3d(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    0x10(%rdi),%rsi
test   %rsi,%rsi
je     11e0 <display_msg+0x70>
mov    0x2e3a(%rip),%rax
mov    (%rax),%edi
add    $0x4,%rsi
mov    %rbx,%rdx
mov    $0x8,%ecx
call   1030 <inet_ntop@plt>
mov    0x10(%r15),%rax
mov    (%rax),%edi
call   1080 <ntohs@plt>
movzwl %ax,%edx
lea    0xe2a(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x8(%r15),%esi
lea    0xe37(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r15,%rdi
call   1090 <CMSG_FIRSTHDR@plt>
test   %rax,%rax
je     1274 <display_msg+0x104>
mov    %rax,%rbx
lea    0xe27(%rip),%r12
mov    0x2dd0(%rip),%r14
mov    0x2dc1(%rip),%r13
jmp    1233 <display_msg+0xc3>
nopl   0x0(%rax)
mov    %r15,%rdi
mov    %rbx,%rsi
call   1070 <CMSG_NXTHDR@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1274 <display_msg+0x104>
mov    0x10(%rbx),%esi
mov    (%rbx),%edx
mov    0x8(%rbx),%ecx
mov    %r12,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%rbx),%rax
cmp    (%r14),%rax
jne    1220 <display_msg+0xb0>
mov    0x8(%rbx),%rax
cmp    0x0(%r13),%rax
jne    1220 <display_msg+0xb0>
mov    %rbx,%rdi
call   1050 <CMSG_DATA@plt>
mov    (%rax),%esi
and    $0x3,%esi
lea    0xde6(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1220 <display_msg+0xb0>
lea    0xde4(%rip),%rdi
mov    -0x2c(%rbp),%ebx
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xddf(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebx,%ebx
je     12b8 <display_msg+0x148>
mov    %ebx,%r14d
xor    %ebx,%ebx
xchg   %ax,%ax
mov    (%r15),%rax
mov    (%rax),%rax
movsbl (%rax,%rbx,1),%edi
call   1040 <putchar@plt>
add    $0x1,%rbx
cmp    %rbx,%r14
jne    12a0 <display_msg+0x130>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.msghdr = type { %struct.TYPE_2__*, i64, i32* }
%struct.TYPE_2__ = type { i64 }
%struct.cmsghdr = type { i64, i64, i64 }
%struct.sockaddr_in = type { i32, i32 }
@INET_ADDRSTRLEN = global i32 0
@AF_INET = global i32 0
@.str = [34 x i8] c"UDP message received from: %s:%d\0A\00"
@.str.1 = [14 x i8] c"Ctrl len: %d\0A\00"
@.str.2 = [33 x i8] c"Length: %d, level: %d, type: %d\0A\00"
@IPPROTO_IP = global i64 0
@IP_TOS = global i64 0
@.str.3 = [14 x i8] c"ECN bits: %d\0A\00"
@.str.4 = [14 x i8] c"Msg len: %d \0A\00"
@.str.5 = [14 x i8] c"Buffer dump: \00"
@.str.6 = [3 x i8] c"%c\00"
@.str.7 = [2 x i8] c"\0A\00"
define void @display_msg(%struct.msghdr* %0, i32 %1) {
%3 = alloca %struct.msghdr*
%4 = alloca i32
%5 = alloca %struct.cmsghdr*
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i16
%9 = alloca i32*
%10 = alloca i8
%11 = alloca i32
store %struct.msghdr* %0, %struct.msghdr** %3
store i32 %1, i32* %4
%12 = load i32, i32* @INET_ADDRSTRLEN
%13 = zext i32 %12 to i64
%14 = call i8* @llvm.stacksave()
store i8* %14, i8** %6
%15 = alloca i8, i64 %13
store i64 %13, i64* %7
%16 = load %struct.msghdr*, %struct.msghdr** %3
%17 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %16, i32 0, i32 2
%18 = load i32*, i32** %17
%19 = icmp ne i32* %18, null
br i1 %19, label %20, label %38
20: ; preds = %2
%21 = load i32, i32* @AF_INET
%22 = load %struct.msghdr*, %struct.msghdr** %3
%23 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %22, i32 0, i32 2
%24 = load i32*, i32** %23
%25 = bitcast i32* %24 to %struct.sockaddr_in*
%26 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %25, i32 0, i32 1
%27 = call i32 @inet_ntop(i32 %21, i32* %26, i8* %15, i32 8)
%28 = load %struct.msghdr*, %struct.msghdr** %3
%29 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %28, i32 0, i32 2
%30 = load i32*, i32** %29
%31 = bitcast i32* %30 to %struct.sockaddr_in*
%32 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %31, i32 0, i32 0
%33 = load i32, i32* %32
%34 = call zeroext i16 @ntohs(i32 %33)
store i16 %34, i16* %8
%35 = load i16, i16* %8
%36 = zext i16 %35 to i32
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %15, i32 %36)
br label %38
38: ; preds = %20, %2
%39 = load %struct.msghdr*, %struct.msghdr** %3
%40 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %39, i32 0, i32 1
%41 = load i64, i64* %40
%42 = trunc i64 %41 to i32
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %42)
%44 = load %struct.msghdr*, %struct.msghdr** %3
%45 = call %struct.cmsghdr* @CMSG_FIRSTHDR(%struct.msghdr* %44)
store %struct.cmsghdr* %45, %struct.cmsghdr** %5
br label %46
46: ; preds = %86, %38
%47 = load %struct.cmsghdr*, %struct.cmsghdr** %5
%48 = icmp ne %struct.cmsghdr* %47, null
br i1 %48, label %49, label %90
49: ; preds = %46
%50 = load %struct.cmsghdr*, %struct.cmsghdr** %5
%51 = getelementptr inbounds %struct.cmsghdr, %struct.cmsghdr* %50, i32 0, i32 2
%52 = load i64, i64* %51
%53 = trunc i64 %52 to i32
%54 = load %struct.cmsghdr*, %struct.cmsghdr** %5
%55 = getelementptr inbounds %struct.cmsghdr, %struct.cmsghdr* %54, i32 0, i32 0
%56 = load i64, i64* %55
%57 = trunc i64 %56 to i32
%58 = load %struct.cmsghdr*, %struct.cmsghdr** %5
%59 = getelementptr inbounds %struct.cmsghdr, %struct.cmsghdr* %58, i32 0, i32 1
%60 = load i64, i64* %59
%61 = trunc i64 %60 to i32
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %53, i32 %57, i32 %61)
%63 = load %struct.cmsghdr*, %struct.cmsghdr** %5
%64 = getelementptr inbounds %struct.cmsghdr, %struct.cmsghdr* %63, i32 0, i32 0
%65 = load i64, i64* %64
%66 = load i64, i64* @IPPROTO_IP
%67 = icmp eq i64 %65, %66
br i1 %67, label %68, label %85
68: ; preds = %49
%69 = load %struct.cmsghdr*, %struct.cmsghdr** %5
%70 = getelementptr inbounds %struct.cmsghdr, %struct.cmsghdr* %69, i32 0, i32 1
%71 = load i64, i64* %70
%72 = load i64, i64* @IP_TOS
%73 = icmp eq i64 %71, %72
br i1 %73, label %74, label %85
74: ; preds = %68
%75 = load %struct.cmsghdr*, %struct.cmsghdr** %5
%76 = call i64 @CMSG_DATA(%struct.cmsghdr* %75)
%77 = inttoptr i64 %76 to i32*
store i32* %77, i32** %9
%78 = load i32*, i32** %9
%79 = load i32, i32* %78
%80 = trunc i32 %79 to i8
store i8 %80, i8* %10
%81 = load i8, i8* %10
%82 = zext i8 %81 to i32
%83 = and i32 %82, 3
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %83)
br label %85
85: ; preds = %74, %68, %49
br label %86
86: ; preds = %85
%87 = load %struct.msghdr*, %struct.msghdr** %3
%88 = load %struct.cmsghdr*, %struct.cmsghdr** %5
%89 = call %struct.cmsghdr* @CMSG_NXTHDR(%struct.msghdr* %87, %struct.cmsghdr* %88)
store %struct.cmsghdr* %89, %struct.cmsghdr** %5
br label %46
90: ; preds = %46
%91 = load i32, i32* %4
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %91)
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %11
br label %94
94: ; preds = %112, %90
%95 = load i32, i32* %11
%96 = load i32, i32* %4
%97 = icmp ult i32 %95, %96
br i1 %97, label %98, label %115
98: ; preds = %94
%99 = load %struct.msghdr*, %struct.msghdr** %3
%100 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %99, i32 0, i32 0
%101 = load %struct.TYPE_2__*, %struct.TYPE_2__** %100
%102 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %101, i64 0
%103 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %102, i32 0, i32 0
%104 = load i64, i64* %103
%105 = inttoptr i64 %104 to i8*
%106 = load i32, i32* %11
%107 = zext i32 %106 to i64
%108 = getelementptr inbounds i8, i8* %105, i64 %107
%109 = load i8, i8* %108
%110 = sext i8 %109 to i32
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 %110)
br label %112
112: ; preds = %98
%113 = load i32, i32* %11
%114 = add i32 %113, 1
store i32 %114, i32* %11
br label %94
115: ; preds = %94
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%117 = load i8*, i8** %6
ret void
}

LLVM IR (-O2):
%struct.msghdr = type { %struct.TYPE_2__*, i64, i32* }
%struct.TYPE_2__ = type { i64 }
%struct.sockaddr_in = type { i32, i32 }
%struct.cmsghdr = type { i64, i64, i64 }
@INET_ADDRSTRLEN = global i32 0
@AF_INET = global i32 0
@.str = [34 x i8] c"UDP message received from: %s:%d\0A\00"
@.str.1 = [14 x i8] c"Ctrl len: %d\0A\00"
@.str.2 = [33 x i8] c"Length: %d, level: %d, type: %d\0A\00"
@IPPROTO_IP = global i64 0
@IP_TOS = global i64 0
@.str.3 = [14 x i8] c"ECN bits: %d\0A\00"
@.str.4 = [14 x i8] c"Msg len: %d \0A\00"
@.str.5 = [14 x i8] c"Buffer dump: \00"
define void @display_msg(%struct.msghdr* %0, i32 %1) {
%3 = load i32, i32* @INET_ADDRSTRLEN
%4 = zext i32 %3 to i64
%5 = alloca i8, i64 %4
%6 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %0, i64 0, i32 2
%7 = load i32*, i32** %6
%8 = icmp eq i32* %7, null
br i1 %8, label %20, label %9
9: ; preds = %2
%10 = load i32, i32* @AF_INET
%11 = getelementptr inbounds i32, i32* %7, i64 1
%12 = call i32 @inet_ntop(i32 %10, i32* %11, i8* %5, i32 8)
%13 = bitcast i32** %6 to %struct.sockaddr_in**
%14 = load %struct.sockaddr_in*, %struct.sockaddr_in** %13
%15 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %14, i64 0, i32 0
%16 = load i32, i32* %15
%17 = call zeroext i16 @ntohs(i32 %16)
%18 = zext i16 %17 to i32
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %5, i32 %18)
br label %20
20: ; preds = %9, %2
%21 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %0, i64 0, i32 1
%22 = load i64, i64* %21
%23 = trunc i64 %22 to i32
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %23)
%25 = call %struct.cmsghdr* @CMSG_FIRSTHDR(%struct.msghdr* %0)
%26 = icmp eq %struct.cmsghdr* %25, null
br i1 %26, label %55, label %27
27: ; preds = %20, %52
%28 = phi %struct.cmsghdr* [ %53, %52 ], [ %25, %20 ]
%29 = getelementptr inbounds %struct.cmsghdr, %struct.cmsghdr* %28, i64 0, i32 2
%30 = load i64, i64* %29
%31 = trunc i64 %30 to i32
%32 = getelementptr inbounds %struct.cmsghdr, %struct.cmsghdr* %28, i64 0, i32 0
%33 = load i64, i64* %32
%34 = trunc i64 %33 to i32
%35 = getelementptr inbounds %struct.cmsghdr, %struct.cmsghdr* %28, i64 0, i32 1
%36 = load i64, i64* %35
%37 = trunc i64 %36 to i32
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %31, i32 %34, i32 %37)
%39 = load i64, i64* %32
%40 = load i64, i64* @IPPROTO_IP
%41 = icmp eq i64 %39, %40
br i1 %41, label %42, label %52
42: ; preds = %27
%43 = load i64, i64* %35
%44 = load i64, i64* @IP_TOS
%45 = icmp eq i64 %43, %44
br i1 %45, label %46, label %52
46: ; preds = %42
%47 = call i64 @CMSG_DATA(%struct.cmsghdr* %28)
%48 = inttoptr i64 %47 to i32*
%49 = load i32, i32* %48
%50 = and i32 %49, 3
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %50)
br label %52
52: ; preds = %27, %42, %46
%53 = call %struct.cmsghdr* @CMSG_NXTHDR(%struct.msghdr* %0, %struct.cmsghdr* %28)
%54 = icmp eq %struct.cmsghdr* %53, null
br i1 %54, label %55, label %27
55: ; preds = %52, %20
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %1)
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%58 = icmp eq i32 %1, 0
br i1 %58, label %74, label %59
59: ; preds = %55
%60 = getelementptr inbounds %struct.msghdr, %struct.msghdr* %0, i64 0, i32 0
%61 = zext i32 %1 to i64
br label %62
62: ; preds = %59, %62
%63 = phi i64 [ 0, %59 ], [ %72, %62 ]
%64 = load %struct.TYPE_2__*, %struct.TYPE_2__** %60
%65 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %64, i64 0, i32 0
%66 = load i64, i64* %65
%67 = inttoptr i64 %66 to i8*
%68 = getelementptr inbounds i8, i8* %67, i64 %63
%69 = load i8, i8* %68
%70 = sext i8 %69 to i32
%71 = call i32 @putchar(i32 %70)
%72 = add nuw nsw i64 %63, 1
%73 = icmp eq i64 %72, %61
br i1 %73, label %74, label %62
74: ; preds = %62, %55
%75 = call i32 @putchar(i32 10)
ret void
}