#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 TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  int /*<<< orphan*/ sin_port;
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
struct pollfd {
  int fd;
  int /*<<< orphan*/ events;
};
typedef int /*<<< orphan*/ server;
typedef int /*<<< orphan*/ other;
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ IPPROTO_UDP;
int /*<<< orphan*/ MSG_DONTWAIT;
int /*<<< orphan*/ POLLIN;
int /*<<< orphan*/ SOCK_DGRAM;
int /*<<< orphan*/ atoi(char *);
int bind(int, struct sockaddr *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ htons(int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
scalar_t__ poll(struct pollfd *, int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int recvfrom(int, unsigned char *, int, int /*<<< orphan*/, struct sockaddr *,
             int *);
int /*<<< orphan*/ shutdown(int, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  if (argc != 2) {
    puts("usage: program <port>");
    return 0;
  }
  unsigned char buf[1000];
  int sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
  if (sock == -1) {
    perror("socket error");
    return 1;
  } else {
    printf("socket ok\n");
  }
  struct pollfd fds[1] = {{.fd = sock, .events = POLLIN}};
  struct sockaddr_in server = {.sin_family = AF_INET,
                               .sin_addr.s_addr = INADDR_ANY,
                               .sin_port = htons(atoi(argv[1]))};
  struct sockaddr_in other;
  int slen = sizeof(other);
  if (bind(sock, (struct sockaddr *)&server, sizeof(server)) == -1) {
    perror("bind error");
    close(sock);
    return 1;
  } else {
    printf("bind ok\n");
  }
  while (1) {
    if (poll(fds, 1, 5000)) {
      int numread = recvfrom(sock, buf, sizeof(buf), MSG_DONTWAIT,
                             (struct sockaddr *)&other, &slen);
      if (numread == -1) {
        perror("recv error");
      } else {
        printf("recv %d bytes\n", numread);
        for (int i = 0; i < numread; i++) {
          printf("0x%02X, ", buf[i]);
        }
        printf("\n");
      }
    } else
      printf("poll timeout\n");
  }
  shutdown(sock, 2);
  close(sock);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x440,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11db <main+0x3b>
lea    0xe36(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,-0x4(%rbp)
jmp    13e0 <main+0x240>
mov    0x2e06(%rip),%rax
mov    (%rax),%edi
mov    0x2ded(%rip),%rax
mov    (%rax),%esi
mov    0x2dbc(%rip),%rax
mov    (%rax),%edx
call   10c0 <socket@plt>
mov    %eax,-0x404(%rbp)
cmpl   $0xffffffff,-0x404(%rbp)
jne    1226 <main+0x86>
lea    0xe01(%rip),%rdi
call   10a0 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    13e0 <main+0x240>
lea    0xdf6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x404(%rbp),%eax
mov    %eax,-0x410(%rbp)
mov    0x2d89(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x40c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,%edi
call   1040 <htons@plt>
mov    %eax,-0x420(%rbp)
mov    0x2d70(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x41c(%rbp)
mov    0x2d69(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x418(%rbp)
movl   $0xc,-0x434(%rbp)
mov    -0x404(%rbp),%edi
lea    -0x420(%rbp),%rsi
mov    $0xc,%edx
call   1090 <bind@plt>
cmp    $0xffffffff,%eax
jne    12d4 <main+0x134>
lea    0xd76(%rip),%rdi
call   10a0 <perror@plt>
mov    -0x404(%rbp),%edi
call   1060 <close@plt>
movl   $0x1,-0x4(%rbp)
jmp    13e0 <main+0x240>
lea    0xd5e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12e7 <main+0x147>
lea    -0x410(%rbp),%rdi
mov    $0x1,%esi
mov    $0x1388,%edx
call   1080 <poll@plt>
cmp    $0x0,%rax
je     13cd <main+0x22d>
mov    -0x404(%rbp),%edi
lea    -0x400(%rbp),%rsi
mov    0x2ca5(%rip),%rax
mov    (%rax),%ecx
lea    -0x430(%rbp),%r8
mov    $0x3e8,%edx
lea    -0x434(%rbp),%r9
call   1070 <recvfrom@plt>
mov    %eax,-0x438(%rbp)
cmpl   $0xffffffff,-0x438(%rbp)
jne    1359 <main+0x1b9>
lea    0xcf3(%rip),%rdi
call   10a0 <perror@plt>
jmp    13c8 <main+0x228>
mov    -0x438(%rbp),%esi
lea    0xce7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x43c(%rbp)
mov    -0x43c(%rbp),%eax
cmp    -0x438(%rbp),%eax
jge    13ba <main+0x21a>
movslq -0x43c(%rbp),%rax
movzbl -0x400(%rbp,%rax,1),%esi
ff
lea    0xcbd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x43c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x43c(%rbp)
jmp    1377 <main+0x1d7>
lea    0xc7f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13db <main+0x23b>
lea    0xc91(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12e7 <main+0x147>
mov    -0x4(%rbp),%eax
add    $0x440,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x418,%rsp
cmp    $0x2,%edi
jne    1331 <main+0x181>
mov    %rsi,%rbx
mov    0x2e14(%rip),%r14
mov    (%r14),%edi
mov    0x2dfa(%rip),%rax
mov    (%rax),%esi
mov    0x2dc9(%rip),%rax
mov    (%rax),%edx
call   10d0 <socket@plt>
cmp    $0xffffffff,%eax
je     1351 <main+0x1a1>
mov    %eax,%r13d
lea    0xe50(%rip),%rdi
call   1040 <puts@plt>
mov    %r13d,(%rsp)
mov    0x2dbf(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x4(%rsp)
mov    0x8(%rbx),%rdi
call   10c0 <atoi@plt>
mov    %eax,%edi
call   1050 <htons@plt>
mov    %eax,0x10(%rsp)
mov    0x2dae(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x14(%rsp)
mov    (%r14),%eax
mov    %eax,0x18(%rsp)
movl   $0xc,0xc(%rsp)
lea    0x10(%rsp),%rsi
mov    %r13d,%edi
mov    $0xc,%edx
call   10a0 <bind@plt>
cmp    $0xffffffff,%eax
je     1364 <main+0x1b4>
lea    0xdf2(%rip),%rdi
call   1040 <puts@plt>
mov    %rsp,%rbp
lea    0xdeb(%rip),%r12
mov    0x2d41(%rip),%rbx
lea    0xdc2(%rip),%r14
jmp    1298 <main+0xe8>
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
call   1040 <puts@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x1388,%edx
call   1090 <poll@plt>
test   %rax,%rax
je     1290 <main+0xe0>
mov    (%rbx),%ecx
mov    %r13d,%edi
lea    0x30(%rsp),%rsi
mov    $0x3e8,%edx
lea    0x20(%rsp),%r8
lea    0xc(%rsp),%r9
call   1080 <recvfrom@plt>
cmp    $0xffffffff,%eax
jne    12e0 <main+0x130>
lea    0xd55(%rip),%rdi
call   10b0 <perror@plt>
jmp    1298 <main+0xe8>
mov    %eax,%r15d
lea    0xd4f(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
test   %r15d,%r15d
jle    1318 <main+0x168>
mov    %r15d,%ebp
xor    %ebx,%ebx
nopl   (%rax)
movzbl 0x30(%rsp,%rbx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1300 <main+0x150>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rsp,%rbp
mov    0x2c94(%rip),%rbx
jmp    1298 <main+0xe8>
lea    0xcc8(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x418,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcbe(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x1,%eax
jmp    133f <main+0x18f>
lea    0xcb8(%rip),%rdi
call   10b0 <perror@plt>
mov    %r13d,%edi
call   1070 <close@plt>
mov    $0x1,%eax
jmp    133f <main+0x18f>

LLVM IR (-O0):
%struct.pollfd = type { i32, i32 }
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [22 x i8] c"usage: program <port>\00"
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@IPPROTO_UDP = global i32 0
@.str.1 = [13 x i8] c"socket error\00"
@.str.2 = [11 x i8] c"socket ok\0A\00"
@POLLIN = global i32 0
@INADDR_ANY = global i32 0
@.str.3 = [11 x i8] c"bind error\00"
@.str.4 = [9 x i8] c"bind ok\0A\00"
@MSG_DONTWAIT = global i32 0
@.str.5 = [11 x i8] c"recv error\00"
@.str.6 = [15 x i8] c"recv %d bytes\0A\00"
@.str.7 = [9 x i8] c"0x%02X, \00"
@.str.8 = [2 x i8] c"\0A\00"
@.str.9 = [14 x i8] c"poll timeout\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [1000 x i8]
%7 = alloca i32
%8 = alloca [1 x %struct.pollfd]
%9 = alloca %struct.sockaddr_in
%10 = alloca %struct.sockaddr_in
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp ne i32 %14, 2
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %94
18: ; preds = %2
%19 = load i32, i32* @AF_INET
%20 = load i32, i32* @SOCK_DGRAM
%21 = load i32, i32* @IPPROTO_UDP
%22 = call i32 @socket(i32 %19, i32 %20, i32 %21)
store i32 %22, i32* %7
%23 = load i32, i32* %7
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %27
25: ; preds = %18
%26 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %3
br label %94
27: ; preds = %18
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
br label %29
29: ; preds = %27
%30 = getelementptr inbounds [1 x %struct.pollfd], [1 x %struct.pollfd]* %8, i64 0, i64 0
%31 = getelementptr inbounds %struct.pollfd, %struct.pollfd* %30, i32 0, i32 0
%32 = load i32, i32* %7
store i32 %32, i32* %31
%33 = getelementptr inbounds %struct.pollfd, %struct.pollfd* %30, i32 0, i32 1
%34 = load i32, i32* @POLLIN
store i32 %34, i32* %33
%35 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 0
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 1
%38 = load i8*, i8** %37
%39 = call i32 @atoi(i8* %38)
%40 = call i32 @htons(i32 %39)
store i32 %40, i32* %35
%41 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 1
%42 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %41, i32 0, i32 0
%43 = load i32, i32* @INADDR_ANY
store i32 %43, i32* %42
%44 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 2
%45 = load i32, i32* @AF_INET
store i32 %45, i32* %44
store i32 12, i32* %11
%46 = load i32, i32* %7
%47 = bitcast %struct.sockaddr_in* %9 to %struct.sockaddr*
%48 = call i32 @bind(i32 %46, %struct.sockaddr* %47, i32 12)
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %54
50: ; preds = %29
%51 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%52 = load i32, i32* %7
%53 = call i32 @close(i32 %52)
store i32 1, i32* %3
br label %94
54: ; preds = %29
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
br label %56
56: ; preds = %54
br label %57
57: ; preds = %56, %93
%58 = getelementptr inbounds [1 x %struct.pollfd], [1 x %struct.pollfd]* %8, i64 0, i64 0
%59 = call i64 @poll(%struct.pollfd* %58, i32 1, i32 5000)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %91
61: ; preds = %57
%62 = load i32, i32* %7
%63 = getelementptr inbounds [1000 x i8], [1000 x i8]* %6, i64 0, i64 0
%64 = load i32, i32* @MSG_DONTWAIT
%65 = bitcast %struct.sockaddr_in* %10 to %struct.sockaddr*
%66 = call i32 @recvfrom(i32 %62, i8* %63, i32 1000, i32 %64, %struct.sockaddr* %65, i32* %11)
store i32 %66, i32* %12
%67 = load i32, i32* %12
%68 = icmp eq i32 %67, -1
br i1 %68, label %69, label %71
69: ; preds = %61
%70 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
br label %90
71: ; preds = %61
%72 = load i32, i32* %12
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %72)
store i32 0, i32* %13
br label %74
74: ; preds = %85, %71
%75 = load i32, i32* %13
%76 = load i32, i32* %12
%77 = icmp slt i32 %75, %76
br i1 %77, label %78, label %88
78: ; preds = %74
%79 = load i32, i32* %13
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [1000 x i8], [1000 x i8]* %6, i64 0, i64 %80
%82 = load i8, i8* %81
%83 = zext i8 %82 to i32
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i32 %83)
br label %85
85: ; preds = %78
%86 = load i32, i32* %13
%87 = add nsw i32 %86, 1
store i32 %87, i32* %13
br label %74
88: ; preds = %74
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %90
90: ; preds = %88, %69
br label %93
91: ; preds = %57
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0))
br label %93
93: ; preds = %91, %90
br label %57
94: ; preds = %50, %25, %16
%95 = load i32, i32* %3
ret i32 %95
}

LLVM IR (-O2):
%struct.pollfd = type { i32, i32 }
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@.str = [22 x i8] c"usage: program <port>\00"
@AF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@IPPROTO_UDP = global i32 0
@.str.1 = [13 x i8] c"socket error\00"
@POLLIN = global i32 0
@INADDR_ANY = global i32 0
@.str.3 = [11 x i8] c"bind error\00"
@MSG_DONTWAIT = global i32 0
@.str.5 = [11 x i8] c"recv error\00"
@.str.6 = [15 x i8] c"recv %d bytes\0A\00"
@.str.7 = [9 x i8] c"0x%02X, \00"
@str = [10 x i8] c"socket ok\00"
@str.10 = [8 x i8] c"bind ok\00"
@str.11 = [13 x i8] c"poll timeout\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [1000 x i8]
%4 = alloca [1 x %struct.pollfd]
%5 = alloca %struct.sockaddr_in
%6 = alloca %struct.sockaddr_in
%7 = alloca i32
%8 = icmp eq i32 %0, 2
br i1 %8, label %11, label %9
9: ; preds = %2
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
br label %76
11: ; preds = %2
%12 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%13 = load i32, i32* @AF_INET
%14 = load i32, i32* @SOCK_DGRAM
%15 = load i32, i32* @IPPROTO_UDP
%16 = tail call i32 @socket(i32 %13, i32 %14, i32 %15)
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %20
18: ; preds = %11
%19 = tail call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %75
20: ; preds = %11
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%22 = bitcast [1 x %struct.pollfd]* %4 to i8*
%23 = getelementptr inbounds [1 x %struct.pollfd], [1 x %struct.pollfd]* %4, i64 0, i64 0
%24 = getelementptr inbounds [1 x %struct.pollfd], [1 x %struct.pollfd]* %4, i64 0, i64 0, i32 0
store i32 %16, i32* %24
%25 = getelementptr inbounds [1 x %struct.pollfd], [1 x %struct.pollfd]* %4, i64 0, i64 0, i32 1
%26 = load i32, i32* @POLLIN
store i32 %26, i32* %25
%27 = bitcast %struct.sockaddr_in* %5 to i8*
%28 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 0
%29 = getelementptr inbounds i8*, i8** %1, i64 1
%30 = load i8*, i8** %29
%31 = tail call i32 @atoi(i8* %30)
%32 = tail call i32 @htons(i32 %31)
store i32 %32, i32* %28
%33 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 1, i32 0
%34 = load i32, i32* @INADDR_ANY
store i32 %34, i32* %33
%35 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i64 0, i32 2
%36 = load i32, i32* @AF_INET
store i32 %36, i32* %35
%37 = bitcast %struct.sockaddr_in* %6 to i8*
%38 = bitcast i32* %7 to i8*
store i32 12, i32* %7
%39 = bitcast %struct.sockaddr_in* %5 to %struct.sockaddr*
%40 = call i32 @bind(i32 %16, %struct.sockaddr* %39, i32 12)
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %45
42: ; preds = %20
%43 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%44 = call i32 @close(i32 %16)
br label %75
45: ; preds = %20
%46 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.10, i64 0, i64 0))
%47 = bitcast %struct.sockaddr_in* %6 to %struct.sockaddr*
br label %48
48: ; preds = %57, %45
%49 = call i64 @poll(%struct.pollfd* %23, i32 1, i32 5000)
%50 = icmp eq i64 %49, 0
br i1 %50, label %73, label %51
51: ; preds = %48
%52 = load i32, i32* @MSG_DONTWAIT
%53 = call i32 @recvfrom(i32 %16, i8* %12, i32 1000, i32 %52, %struct.sockaddr* %47, i32* %7)
%54 = icmp eq i32 %53, -1
br i1 %54, label %55, label %58
55: ; preds = %51
%56 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
br label %57
57: ; preds = %55, %63, %73
br label %48
58: ; preds = %51
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %53)
%60 = icmp sgt i32 %53, 0
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = zext i32 %53 to i64
br label %65
63: ; preds = %65, %58
%64 = call i32 @putchar(i32 10)
br label %57
65: ; preds = %61, %65
%66 = phi i64 [ 0, %61 ], [ %71, %65 ]
%67 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 %66
%68 = load i8, i8* %67
%69 = zext i8 %68 to i32
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i32 %69)
%71 = add nuw nsw i64 %66, 1
%72 = icmp eq i64 %71, %62
br i1 %72, label %63, label %65
73: ; preds = %48
%74 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.11, i64 0, i64 0))
br label %57
75: ; preds = %42, %18
br label %76
76: ; preds = %75, %9
%77 = phi i32 [ 0, %9 ], [ 1, %75 ]
ret i32 %77
}