#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 in_addr {
  int dummy;
};
struct hostent {
  char *h_name;
  char **h_aliases;
  int h_addrtype;
  char **h_addr_list;
  char *h_addr;
};
typedef int /*<<< orphan*/ ip_str;

/* Variables and functions */
#define AF_INET 129
#define AF_INET6 128
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
struct hostent *gethostbyaddr(struct in_addr *, int, int);
int /*<<< orphan*/ h_errno;
char *hstrerror(int /*<<< orphan*/);
scalar_t__ inet_aton(char *, struct in_addr *);
char *inet_ntop(int, char *, char *, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  char *ip_ptr = NULL, *name_str = NULL, **alias_pptr = NULL;
  char **addr_list_pptr = NULL;
  struct hostent *host_ptr = NULL;
  char ip_str[32];
  struct in_addr ip_addr;
  if (argc != 2) {
    fprintf(stderr, "Usage: ./%s host_IP\n", argv[0]);
    exit(EXIT_FAILURE);
  }
  printf("IP:%s\n", argv[1]);
  if (inet_aton(argv[1], &ip_addr) == 0) {
    perror("inet_aton() error");
    exit(EXIT_FAILURE);
  }
  if ((host_ptr = gethostbyaddr(&ip_addr, 4, AF_INET)) == NULL) {
    fprintf(stderr, "gethostbyaddr() error: %s", hstrerror(h_errno));
    exit(EXIT_FAILURE);
  }
  printf("official hostname(->h_name):%s\n", host_ptr->h_name);
  for (alias_pptr = host_ptr->h_aliases; *alias_pptr != NULL; alias_pptr++)
    printf("alias hostname(->h_aliases):%s\n", *alias_pptr);
  switch (host_ptr->h_addrtype) {
  case AF_INET:
  case AF_INET6:
    addr_list_pptr = host_ptr->h_addr_list;
    for (; *addr_list_pptr != NULL; addr_list_pptr++)
      printf("Ip address list:%s\n",
             inet_ntop(host_ptr->h_addrtype, *addr_list_pptr, ip_str,
                       sizeof(ip_str)));
    printf("first address in addr_list: %s\n",
           inet_ntop(host_ptr->h_addrtype, host_ptr->h_addr, ip_str,
                     sizeof(ip_str)));
    break;
  default:
    printf("unknown address type(not AF_INET || AF_INET6)\n");
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11f2 <main+0x72>
mov    0x2e09(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe21(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2de5(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    -0x68(%rbp),%rsi
call   1060 <inet_aton@plt>
cmp    $0x0,%rax
jne    123d <main+0xbd>
lea    0xdf2(%rip),%rdi
call   1070 <perror@plt>
mov    0x2d9a(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
lea    -0x68(%rbp),%rdi
mov    $0x4,%esi
mov    $0x81,%edx
call   1090 <gethostbyaddr@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
jne    1298 <main+0x118>
mov    0x2d73(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x6c(%rbp)
mov    0x2d77(%rip),%rax
mov    (%rax),%edi
call   1080 <hstrerror@plt>
mov    -0x6c(%rbp),%edi
mov    %rax,%rdx
lea    0xda9(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2d3f(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
mov    -0x38(%rbp),%rax
mov    (%rax),%rsi
lea    0xda2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
cmpq   $0x0,(%rax)
je     12ed <main+0x16d>
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
lea    0xd93(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x28(%rbp)
jmp    12b9 <main+0x139>
mov    -0x38(%rbp),%rax
mov    0x10(%rax),%eax
add    $0xffffff80,%eax
sub    $0x1,%eax
ja     1390 <main+0x210>
jmp    1305 <main+0x185>
mov    -0x38(%rbp),%rax
mov    0x18(%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
cmpq   $0x0,(%rax)
je     135d <main+0x1dd>
mov    -0x38(%rbp),%rax
mov    0x10(%rax),%edi
mov    -0x30(%rbp),%rax
mov    (%rax),%rsi
lea    -0x60(%rbp),%rdx
mov    $0x20,%ecx
call   1030 <inet_ntop@plt>
mov    %rax,%rsi
lea    0xd43(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x30(%rbp)
jmp    1311 <main+0x191>
mov    -0x38(%rbp),%rax
mov    0x10(%rax),%edi
mov    -0x38(%rbp),%rax
mov    0x20(%rax),%rsi
lea    -0x60(%rbp),%rdx
mov    $0x20,%ecx
call   1030 <inet_ntop@plt>
mov    %rax,%rsi
lea    0xd18(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    139e <main+0x21e>
lea    0xd25(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%rbx
cmp    $0x2,%edi
jne    12dc <main+0x14c>
mov    0x8(%rbx),%rsi
lea    0xe63(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
lea    0x8(%rsp),%rsi
call   1070 <inet_aton@plt>
test   %rax,%rax
je     12f1 <main+0x161>
lea    0x8(%rsp),%rdi
mov    $0x4,%esi
mov    $0x81,%edx
call   10a0 <gethostbyaddr@plt>
test   %rax,%rax
je     12ff <main+0x16f>
mov    %rax,%r12
mov    (%rax),%rsi
lea    0xe4e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%r12),%rbx
mov    (%rbx),%rsi
test   %rsi,%rsi
je     1236 <main+0xa6>
add    $0x8,%rbx
lea    0xe4f(%rip),%r14
nopl   0x0(%rax)
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rbx),%rsi
add    $0x8,%rbx
test   %rsi,%rsi
jne    1220 <main+0x90>
mov    0x10(%r12),%edi
mov    %edi,%eax
and    $0xfffffffe,%eax
cmp    $0x80,%eax
jne    12c2 <main+0x132>
mov    0x18(%r12),%rbx
mov    (%rbx),%rsi
test   %rsi,%rsi
je     129b <main+0x10b>
add    $0x8,%rbx
lea    0x10(%rsp),%r14
lea    0xe24(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdx
mov    $0x20,%ecx
call   1030 <inet_ntop@plt>
mov    %r15,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rbx),%rsi
add    $0x8,%rbx
mov    0x10(%r12),%edi
test   %rsi,%rsi
jne    1270 <main+0xe0>
mov    0x20(%r12),%rsi
lea    0x10(%rsp),%rdx
mov    $0x20,%ecx
call   1030 <inet_ntop@plt>
lea    0xde6(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    12ce <main+0x13e>
lea    0xdf3(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret
mov    0x2cf5(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xd11(%rip),%rsi
jmp    1322 <main+0x192>
lea    0xd24(%rip),%rdi
call   1080 <perror@plt>
jmp    1327 <main+0x197>
mov    0x2cd2(%rip),%rax
mov    (%rax),%ebx
mov    0x2cd9(%rip),%rax
mov    (%rax),%edi
call   1090 <hstrerror@plt>
lea    0xd11(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
call   1060 <fprintf@plt>
mov    0x2ca2(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
%struct.hostent = type { i8*, i8**, i32, i8**, i8* }
%struct.in_addr = type { i32 }
@stderr = global i32 0
@.str = [21 x i8] c"Usage: ./%s host_IP\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [7 x i8] c"IP:%s\0A\00"
@.str.2 = [18 x i8] c"inet_aton() error\00"
@.str.3 = [26 x i8] c"gethostbyaddr() error: %s\00"
@h_errno = global i32 0
@.str.4 = [32 x i8] c"official hostname(->h_name):%s\0A\00"
@.str.5 = [32 x i8] c"alias hostname(->h_aliases):%s\0A\00"
@.str.6 = [20 x i8] c"Ip address list:%s\0A\00"
@.str.7 = [32 x i8] c"first address in addr_list: %s\0A\00"
@.str.8 = [47 x i8] c"unknown address type(not AF_INET || AF_INET6)\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8**
%9 = alloca i8**
%10 = alloca %struct.hostent*
%11 = alloca [32 x i8]
%12 = alloca %struct.in_addr
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %6
store i8* null, i8** %7
store i8** null, i8*** %8
store i8** null, i8*** %9
store %struct.hostent* null, %struct.hostent** %10
%13 = load i32, i32* %4
%14 = icmp ne i32 %13, 2
br i1 %14, label %15, label %23
15: ; preds = %2
%16 = load i32, i32* @stderr
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 0
%19 = load i8*, i8** %18
%20 = call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %19)
%21 = load i32, i32* @EXIT_FAILURE
%22 = call i32 @exit(i32 %21)
unreachable
23: ; preds = %2
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %26)
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 1
%30 = load i8*, i8** %29
%31 = call i64 @inet_aton(i8* %30, %struct.in_addr* %12)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %23
%34 = call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%35 = load i32, i32* @EXIT_FAILURE
%36 = call i32 @exit(i32 %35)
unreachable
37: ; preds = %23
%38 = call %struct.hostent* @gethostbyaddr(%struct.in_addr* %12, i32 4, i32 129)
store %struct.hostent* %38, %struct.hostent** %10
%39 = icmp eq %struct.hostent* %38, null
br i1 %39, label %40, label %47
40: ; preds = %37
%41 = load i32, i32* @stderr
%42 = load i32, i32* @h_errno
%43 = call i8* @hstrerror(i32 %42)
%44 = call i32 @fprintf(i32 %41, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* %43)
%45 = load i32, i32* @EXIT_FAILURE
%46 = call i32 @exit(i32 %45)
unreachable
47: ; preds = %37
%48 = load %struct.hostent*, %struct.hostent** %10
%49 = getelementptr inbounds %struct.hostent, %struct.hostent* %48, i32 0, i32 0
%50 = load i8*, i8** %49
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i8* %50)
%52 = load %struct.hostent*, %struct.hostent** %10
%53 = getelementptr inbounds %struct.hostent, %struct.hostent* %52, i32 0, i32 1
%54 = load i8**, i8*** %53
store i8** %54, i8*** %8
br label %55
55: ; preds = %63, %47
%56 = load i8**, i8*** %8
%57 = load i8*, i8** %56
%58 = icmp ne i8* %57, null
br i1 %58, label %59, label %66
59: ; preds = %55
%60 = load i8**, i8*** %8
%61 = load i8*, i8** %60
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i8* %61)
br label %63
63: ; preds = %59
%64 = load i8**, i8*** %8
%65 = getelementptr inbounds i8*, i8** %64, i32 1
store i8** %65, i8*** %8
br label %55
66: ; preds = %55
%67 = load %struct.hostent*, %struct.hostent** %10
%68 = getelementptr inbounds %struct.hostent, %struct.hostent* %67, i32 0, i32 2
%69 = load i32, i32* %68
switch i32 %69, label %100 [
i32 129, label %70
i32 128, label %70
]
70: ; preds = %66, %66
%71 = load %struct.hostent*, %struct.hostent** %10
%72 = getelementptr inbounds %struct.hostent, %struct.hostent* %71, i32 0, i32 3
%73 = load i8**, i8*** %72
store i8** %73, i8*** %9
br label %74
74: ; preds = %87, %70
%75 = load i8**, i8*** %9
%76 = load i8*, i8** %75
%77 = icmp ne i8* %76, null
br i1 %77, label %78, label %90
78: ; preds = %74
%79 = load %struct.hostent*, %struct.hostent** %10
%80 = getelementptr inbounds %struct.hostent, %struct.hostent* %79, i32 0, i32 2
%81 = load i32, i32* %80
%82 = load i8**, i8*** %9
%83 = load i8*, i8** %82
%84 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%85 = call i8* @inet_ntop(i32 %81, i8* %83, i8* %84, i32 32)
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i8* %85)
br label %87
87: ; preds = %78
%88 = load i8**, i8*** %9
%89 = getelementptr inbounds i8*, i8** %88, i32 1
store i8** %89, i8*** %9
br label %74
90: ; preds = %74
%91 = load %struct.hostent*, %struct.hostent** %10
%92 = getelementptr inbounds %struct.hostent, %struct.hostent* %91, i32 0, i32 2
%93 = load i32, i32* %92
%94 = load %struct.hostent*, %struct.hostent** %10
%95 = getelementptr inbounds %struct.hostent, %struct.hostent* %94, i32 0, i32 4
%96 = load i8*, i8** %95
%97 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%98 = call i8* @inet_ntop(i32 %93, i8* %96, i8* %97, i32 32)
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i8* %98)
br label %102
100: ; preds = %66
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.8, i64 0, i64 0))
br label %102
102: ; preds = %100, %90
ret i32 0
}

LLVM IR (-O2):
%struct.in_addr = type { i32 }
%struct.hostent = type { i8*, i8**, i32, i8**, i8* }
@stderr = global i32 0
@.str = [21 x i8] c"Usage: ./%s host_IP\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [7 x i8] c"IP:%s\0A\00"
@.str.2 = [18 x i8] c"inet_aton() error\00"
@.str.3 = [26 x i8] c"gethostbyaddr() error: %s\00"
@h_errno = global i32 0
@.str.4 = [32 x i8] c"official hostname(->h_name):%s\0A\00"
@.str.5 = [32 x i8] c"alias hostname(->h_aliases):%s\0A\00"
@.str.6 = [20 x i8] c"Ip address list:%s\0A\00"
@.str.7 = [32 x i8] c"first address in addr_list: %s\0A\00"
@str = [46 x i8] c"unknown address type(not AF_INET || AF_INET6)\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [32 x i8]
%4 = alloca %struct.in_addr
%5 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%6 = bitcast %struct.in_addr* %4 to i8*
%7 = icmp eq i32 %0, 2
br i1 %7, label %14, label %8
8: ; preds = %2
%9 = load i32, i32* @stderr
%10 = load i8*, i8** %1
%11 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %10)
%12 = load i32, i32* @EXIT_FAILURE
%13 = tail call i32 @exit(i32 %12)
unreachable
14: ; preds = %2
%15 = getelementptr inbounds i8*, i8** %1, i64 1
%16 = load i8*, i8** %15
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %16)
%18 = load i8*, i8** %15
%19 = call i64 @inet_aton(i8* %18, %struct.in_addr* %4)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %25
21: ; preds = %14
%22 = call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%23 = load i32, i32* @EXIT_FAILURE
%24 = call i32 @exit(i32 %23)
unreachable
25: ; preds = %14
%26 = call %struct.hostent* @gethostbyaddr(%struct.in_addr* %4, i32 4, i32 129)
%27 = icmp eq %struct.hostent* %26, null
br i1 %27, label %28, label %35
28: ; preds = %25
%29 = load i32, i32* @stderr
%30 = load i32, i32* @h_errno
%31 = call i8* @hstrerror(i32 %30)
%32 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* %31)
%33 = load i32, i32* @EXIT_FAILURE
%34 = call i32 @exit(i32 %33)
unreachable
35: ; preds = %25
%36 = getelementptr inbounds %struct.hostent, %struct.hostent* %26, i64 0, i32 0
%37 = load i8*, i8** %36
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i8* %37)
%39 = getelementptr inbounds %struct.hostent, %struct.hostent* %26, i64 0, i32 1
%40 = load i8**, i8*** %39
%41 = load i8*, i8** %40
%42 = icmp eq i8* %41, null
br i1 %42, label %50, label %43
43: ; preds = %35, %43
%44 = phi i8* [ %48, %43 ], [ %41, %35 ]
%45 = phi i8** [ %47, %43 ], [ %40, %35 ]
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i8* %44)
%47 = getelementptr inbounds i8*, i8** %45, i64 1
%48 = load i8*, i8** %47
%49 = icmp eq i8* %48, null
br i1 %49, label %50, label %43
50: ; preds = %43, %35
%51 = getelementptr inbounds %struct.hostent, %struct.hostent* %26, i64 0, i32 2
%52 = load i32, i32* %51
%53 = and i32 %52, -2
%54 = icmp eq i32 %53, 128
br i1 %54, label %55, label %76
55: ; preds = %50
%56 = getelementptr inbounds %struct.hostent, %struct.hostent* %26, i64 0, i32 3
%57 = load i8**, i8*** %56
%58 = load i8*, i8** %57
%59 = icmp eq i8* %58, null
br i1 %59, label %70, label %60
60: ; preds = %55, %60
%61 = phi i32 [ %69, %60 ], [ %52, %55 ]
%62 = phi i8* [ %67, %60 ], [ %58, %55 ]
%63 = phi i8** [ %66, %60 ], [ %57, %55 ]
%64 = call i8* @inet_ntop(i32 %61, i8* %62, i8* %5, i32 32)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i8* %64)
%66 = getelementptr inbounds i8*, i8** %63, i64 1
%67 = load i8*, i8** %66
%68 = icmp eq i8* %67, null
%69 = load i32, i32* %51
br i1 %68, label %70, label %60
70: ; preds = %60, %55
%71 = phi i32 [ %52, %55 ], [ %69, %60 ]
%72 = getelementptr inbounds %struct.hostent, %struct.hostent* %26, i64 0, i32 4
%73 = load i8*, i8** %72
%74 = call i8* @inet_ntop(i32 %71, i8* %73, i8* %5, i32 32)
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i8* %74)
br label %78
76: ; preds = %50
%77 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str, i64 0, i64 0))
br label %78
78: ; preds = %76, %70
ret i32 0
}