#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_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
typedef int /*<<< orphan*/ xdrproc_t;
struct TYPE_3__ {
  int /*<<< orphan*/ ypbind_binding_addr;
};
struct TYPE_4__ {
  TYPE_1__ ypbind_bindinfo;
};
struct ypbind_resp {
  scalar_t__ ypbind_status;
  TYPE_2__ ypbind_resp_u;
};
struct timeval {
  int tv_sec;
  scalar_t__ tv_usec;
};
struct sockaddr_in {
  int dummy;
};
struct in_addr {
  int /*<<< orphan*/ s_addr;
};
struct hostent {
  char *h_name;
};
typedef int /*<<< orphan*/ ss_addr;
typedef int /*<<< orphan*/ CLIENT;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int RPC_ANYSOCK;
int RPC_SUCCESS;
int /*<<< orphan*/ YPBINDPROC_DOMAIN;
int /*<<< orphan*/ YPBINDPROG;
int /*<<< orphan*/ YPBINDVERS;
scalar_t__ YPBIND_SUCC_VAL;
int YPERR_YPBIND;
int clnt_call(int /*<<< orphan*/ *, int /*<<< orphan*/, int /*<<< orphan*/,
              char **, int /*<<< orphan*/, struct ypbind_resp *,
              struct timeval);
int /*<<< orphan*/ clnt_destroy(int /*<<< orphan*/ *);
int /*<<< orphan*/ *clntudp_create(struct sockaddr_in *, int /*<<< orphan*/,
                                   int /*<<< orphan*/, struct timeval, int *);
struct hostent *gethostbyaddr(char *, int, int /*<<< orphan*/);
char *inet_ntoa(struct in_addr);
int /*<<< orphan*/ memmove(int /*<<< orphan*/ *, int /*<<< orphan*/ *, int);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ warnx(char *, ...);
scalar_t__ xdr_domainname;
scalar_t__ xdr_ypbind_resp;
int /*<<< orphan*/ yperr_string(int);
int bind_host(char *dom, struct sockaddr_in *sin) {
  struct hostent *hent = NULL;
  struct ypbind_resp ypbr;
  struct in_addr ss_addr;
  struct timeval tv;
  CLIENT *client;
  int sock, r;
  sock = RPC_ANYSOCK;
  tv.tv_sec = 15;
  tv.tv_usec = 0;
  client = clntudp_create(sin, YPBINDPROG, YPBINDVERS, tv, &sock);
  if (client == NULL) {
    warnx("host is not bound to a ypmaster");
    return (YPERR_YPBIND);
  }
  tv.tv_sec = 5;
  tv.tv_usec = 0;
  r = clnt_call(client, YPBINDPROC_DOMAIN, (xdrproc_t)xdr_domainname, &dom,
                (xdrproc_t)xdr_ypbind_resp, &ypbr, tv);
  if (r != RPC_SUCCESS) {
    warnx("can't clnt_call: %s", yperr_string(YPERR_YPBIND));
    clnt_destroy(client);
    return (YPERR_YPBIND);
  } else {
    if (ypbr.ypbind_status != YPBIND_SUCC_VAL) {
      warnx("can't yp_bind: reason: %s", yperr_string(ypbr.ypbind_status));
      clnt_destroy(client);
      return (r);
    }
  }
  clnt_destroy(client);
  memmove(&ss_addr.s_addr,
          &ypbr.ypbind_resp_u.ypbind_bindinfo.ypbind_binding_addr,
          sizeof(ss_addr));
  hent =
      gethostbyaddr((char *)&ss_addr.s_addr, sizeof(ss_addr.s_addr), AF_INET);
  if (hent != NULL)
    printf("%s\n", hent->h_name);
  else
    printf("%s\n", inet_ntoa(ss_addr));
  return (0);
}


x86 assembly (clang, -O0):
<bind_host>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
mov    0x2e21(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
movl   $0xf,-0x48(%rbp)
movq   $0x0,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
mov    0x2de2(%rip),%rax
mov    (%rax),%esi
mov    0x2de1(%rip),%rax
mov    (%rax),%edx
mov    -0x48(%rbp),%ecx
mov    -0x40(%rbp),%r8
lea    -0x54(%rbp),%r9
call   10b0 <clntudp_create@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
jne    1217 <bind_host+0x87>
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1050 <warnx@plt>
mov    0x2d8b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    137d <bind_host+0x1ed>
movl   $0x5,-0x48(%rbp)
movq   $0x0,-0x40(%rbp)
mov    -0x50(%rbp),%rdi
mov    0x2dbf(%rip),%rax
mov    (%rax),%esi
mov    0x2d66(%rip),%rax
mov    (%rax),%rax
mov    %eax,%edx
mov    0x2d9a(%rip),%rax
mov    (%rax),%rax
mov    %eax,%r8d
lea    -0x10(%rbp),%rcx
lea    -0x30(%rbp),%r9
lea    -0x48(%rbp),%rax
mov    (%rax),%r10
mov    %r10,(%rsp)
mov    0x8(%rax),%rax
mov    %rax,0x8(%rsp)
call   1070 <clnt_call@plt>
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
mov    0x2d4e(%rip),%rcx
cmp    (%rcx),%eax
je     12ba <bind_host+0x12a>
mov    0x2d0f(%rip),%rax
mov    (%rax),%edi
call   1060 <yperr_string@plt>
mov    %eax,%esi
lea    0xd87(%rip),%rdi
mov    $0x0,%al
call   1050 <warnx@plt>
mov    -0x50(%rbp),%rdi
call   1090 <clnt_destroy@plt>
mov    0x2ce8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    137d <bind_host+0x1ed>
mov    -0x30(%rbp),%rax
mov    0x2ce3(%rip),%rcx
cmp    (%rcx),%rax
je     12fd <bind_host+0x16d>
mov    -0x30(%rbp),%rax
mov    %eax,%edi
call   1060 <yperr_string@plt>
mov    %eax,%esi
lea    0xd52(%rip),%rdi
mov    $0x0,%al
call   1050 <warnx@plt>
mov    -0x50(%rbp),%rdi
call   1090 <clnt_destroy@plt>
mov    -0x58(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    137d <bind_host+0x1ed>
jmp    1302 <bind_host+0x172>
mov    -0x50(%rbp),%rdi
call   1090 <clnt_destroy@plt>
lea    -0x38(%rbp),%rdi
lea    -0x30(%rbp),%rsi
add    $0x8,%rsi
mov    $0x4,%edx
call   1080 <memmove@plt>
lea    -0x38(%rbp),%rdi
mov    0x2cac(%rip),%rax
mov    (%rax),%edx
mov    $0x4,%esi
call   10a0 <gethostbyaddr@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     135f <bind_host+0x1cf>
mov    -0x20(%rbp),%rax
mov    (%rax),%rsi
lea    0xcf9(%rip),%rdi
call   1040 <printf@plt>
jmp    1376 <bind_host+0x1e6>
mov    -0x38(%rbp),%edi
call   1030 <inet_ntoa@plt>
mov    %rax,%rsi
lea    0xcdd(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bind_host>:
push   %rbp
push   %rbx
sub    $0x48,%rsp
mov    %rsi,%rax
mov    %rdi,0x20(%rsp)
mov    0x2e2b(%rip),%rcx
mov    (%rcx),%ecx
mov    %ecx,0x1c(%rsp)
mov    0x2dfe(%rip),%rcx
mov    (%rcx),%esi
mov    0x2dfd(%rip),%rcx
mov    (%rcx),%edx
lea    0x1c(%rsp),%r9
mov    %rax,%rdi
mov    $0xf,%ecx
xor    %r8d,%r8d
call   10b0 <clntudp_create@plt>
test   %rax,%rax
je     128e <bind_host+0xfe>
mov    %rax,%rbx
movl   $0x5,0x28(%rsp)
movq   $0x0,0x30(%rsp)
mov    0x2dfa(%rip),%rax
mov    (%rax),%esi
mov    0x2da1(%rip),%rax
mov    (%rax),%edx
mov    0x2dd8(%rip),%rax
mov    (%rax),%r8d
movups 0x28(%rsp),%xmm0
movups %xmm0,(%rsp)
lea    0x20(%rsp),%rcx
lea    0x38(%rsp),%r9
mov    %rbx,%rdi
call   1070 <clnt_call@plt>
mov    %eax,%ebp
mov    0x2d99(%rip),%rax
cmp    (%rax),%ebp
jne    12a7 <bind_host+0x117>
mov    0x38(%rsp),%rdi
mov    0x2d69(%rip),%rax
cmp    (%rax),%rdi
jne    12d3 <bind_host+0x143>
mov    %rbx,%rdi
call   1090 <clnt_destroy@plt>
lea    0x40(%rsp),%rsi
lea    0x18(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x4,%edx
call   1080 <memmove@plt>
mov    0x2d6a(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0x4,%esi
call   10a0 <gethostbyaddr@plt>
test   %rax,%rax
je     12f2 <bind_host+0x162>
mov    (%rax),%rsi
lea    0xdc2(%rip),%rdi
jmp    1305 <bind_host+0x175>
lea    0xd6b(%rip),%rdi
xor    %eax,%eax
call   1050 <warnx@plt>
mov    0x2cf5(%rip),%rax
mov    (%rax),%ebp
jmp    130c <bind_host+0x17c>
mov    0x2cea(%rip),%rbp
mov    0x0(%rbp),%edi
call   1060 <yperr_string@plt>
lea    0xd63(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <warnx@plt>
mov    %rbx,%rdi
call   1090 <clnt_destroy@plt>
mov    0x0(%rbp),%ebp
jmp    130c <bind_host+0x17c>
call   1060 <yperr_string@plt>
lea    0xd55(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <warnx@plt>
mov    %rbx,%rdi
call   1090 <clnt_destroy@plt>
jmp    130c <bind_host+0x17c>
mov    0x18(%rsp),%edi
call   1030 <inet_ntoa@plt>
lea    0xd4c(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x48,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
%struct.sockaddr_in = type { i32 }
%struct.hostent = type { i8* }
%struct.ypbind_resp = type { i64, %struct.TYPE_4__ }
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32 }
%struct.in_addr = type { i32 }
%struct.timeval = type { i32, i64 }
@RPC_ANYSOCK = global i32 0
@YPBINDPROG = global i32 0
@YPBINDVERS = global i32 0
@.str = [32 x i8] c"host is not bound to a ypmaster\00"
@YPERR_YPBIND = global i32 0
@YPBINDPROC_DOMAIN = global i32 0
@xdr_domainname = global i64 0
@xdr_ypbind_resp = global i64 0
@RPC_SUCCESS = global i32 0
@.str.1 = [20 x i8] c"can't clnt_call: %s\00"
@YPBIND_SUCC_VAL = global i64 0
@.str.2 = [26 x i8] c"can't yp_bind: reason: %s\00"
@AF_INET = global i32 0
@.str.3 = [4 x i8] c"%s\0A\00"
define i32 @bind_host(i8* %0, %struct.sockaddr_in* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca %struct.sockaddr_in*
%6 = alloca %struct.hostent*
%7 = alloca %struct.ypbind_resp
%8 = alloca %struct.in_addr
%9 = alloca %struct.timeval
%10 = alloca i32*
%11 = alloca i32
%12 = alloca i32
store i8* %0, i8** %4
store %struct.sockaddr_in* %1, %struct.sockaddr_in** %5
store %struct.hostent* null, %struct.hostent** %6
%13 = load i32, i32* @RPC_ANYSOCK
store i32 %13, i32* %11
%14 = getelementptr inbounds %struct.timeval, %struct.timeval* %9, i32 0, i32 0
store i32 15, i32* %14
%15 = getelementptr inbounds %struct.timeval, %struct.timeval* %9, i32 0, i32 1
store i64 0, i64* %15
%16 = load %struct.sockaddr_in*, %struct.sockaddr_in** %5
%17 = load i32, i32* @YPBINDPROG
%18 = load i32, i32* @YPBINDVERS
%19 = bitcast %struct.timeval* %9 to { i32, i64 }*
%20 = getelementptr inbounds { i32, i64 }, { i32, i64 }* %19, i32 0, i32 0
%21 = load i32, i32* %20
%22 = getelementptr inbounds { i32, i64 }, { i32, i64 }* %19, i32 0, i32 1
%23 = load i64, i64* %22
%24 = call i32* @clntudp_create(%struct.sockaddr_in* %16, i32 %17, i32 %18, i32 %21, i64 %23, i32* %11)
store i32* %24, i32** %10
%25 = load i32*, i32** %10
%26 = icmp eq i32* %25, null
br i1 %26, label %27, label %30
27: ; preds = %2
%28 = call i32 (i8*, ...) @warnx(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%29 = load i32, i32* @YPERR_YPBIND
store i32 %29, i32* %3
br label %90
30: ; preds = %2
%31 = getelementptr inbounds %struct.timeval, %struct.timeval* %9, i32 0, i32 0
store i32 5, i32* %31
%32 = getelementptr inbounds %struct.timeval, %struct.timeval* %9, i32 0, i32 1
store i64 0, i64* %32
%33 = load i32*, i32** %10
%34 = load i32, i32* @YPBINDPROC_DOMAIN
%35 = load i64, i64* @xdr_domainname
%36 = trunc i64 %35 to i32
%37 = load i64, i64* @xdr_ypbind_resp
%38 = trunc i64 %37 to i32
%39 = call i32 @clnt_call(i32* %33, i32 %34, i32 %36, i8** %4, i32 %38, %struct.ypbind_resp* %7, %struct.timeval* byval(%struct.timeval) align 8 %9)
store i32 %39, i32* %12
%40 = load i32, i32* %12
%41 = load i32, i32* @RPC_SUCCESS
%42 = icmp ne i32 %40, %41
br i1 %42, label %43, label %50
43: ; preds = %30
%44 = load i32, i32* @YPERR_YPBIND
%45 = call i32 @yperr_string(i32 %44)
%46 = call i32 (i8*, ...) @warnx(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %45)
%47 = load i32*, i32** %10
%48 = call i32 @clnt_destroy(i32* %47)
%49 = load i32, i32* @YPERR_YPBIND
store i32 %49, i32* %3
br label %90
50: ; preds = %30
%51 = getelementptr inbounds %struct.ypbind_resp, %struct.ypbind_resp* %7, i32 0, i32 0
%52 = load i64, i64* %51
%53 = load i64, i64* @YPBIND_SUCC_VAL
%54 = icmp ne i64 %52, %53
br i1 %54, label %55, label %64
55: ; preds = %50
%56 = getelementptr inbounds %struct.ypbind_resp, %struct.ypbind_resp* %7, i32 0, i32 0
%57 = load i64, i64* %56
%58 = trunc i64 %57 to i32
%59 = call i32 @yperr_string(i32 %58)
%60 = call i32 (i8*, ...) @warnx(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %59)
%61 = load i32*, i32** %10
%62 = call i32 @clnt_destroy(i32* %61)
%63 = load i32, i32* %12
store i32 %63, i32* %3
br label %90
64: ; preds = %50
br label %65
65: ; preds = %64
%66 = load i32*, i32** %10
%67 = call i32 @clnt_destroy(i32* %66)
%68 = getelementptr inbounds %struct.in_addr, %struct.in_addr* %8, i32 0, i32 0
%69 = getelementptr inbounds %struct.ypbind_resp, %struct.ypbind_resp* %7, i32 0, i32 1
%70 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %69, i32 0, i32 0
%71 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %70, i32 0, i32 0
%72 = call i32 @memmove(i32* %68, i32* %71, i32 4)
%73 = getelementptr inbounds %struct.in_addr, %struct.in_addr* %8, i32 0, i32 0
%74 = bitcast i32* %73 to i8*
%75 = load i32, i32* @AF_INET
%76 = call %struct.hostent* @gethostbyaddr(i8* %74, i32 4, i32 %75)
store %struct.hostent* %76, %struct.hostent** %6
%77 = load %struct.hostent*, %struct.hostent** %6
%78 = icmp ne %struct.hostent* %77, null
br i1 %78, label %79, label %84
79: ; preds = %65
%80 = load %struct.hostent*, %struct.hostent** %6
%81 = getelementptr inbounds %struct.hostent, %struct.hostent* %80, i32 0, i32 0
%82 = load i8*, i8** %81
%83 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %82)
br label %89
84: ; preds = %65
%85 = getelementptr inbounds %struct.in_addr, %struct.in_addr* %8, i32 0, i32 0
%86 = load i32, i32* %85
%87 = call i8* @inet_ntoa(i32 %86)
%88 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %87)
br label %89
89: ; preds = %84, %79
store i32 0, i32* %3
br label %90
90: ; preds = %89, %55, %43, %27
%91 = load i32, i32* %3
ret i32 %91
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32 }
%struct.ypbind_resp = type { i64, %struct.TYPE_4__ }
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32 }
%struct.in_addr = type { i32 }
%struct.timeval = type { i32, i64 }
%struct.hostent = type { i8* }
@RPC_ANYSOCK = global i32 0
@YPBINDPROG = global i32 0
@YPBINDVERS = global i32 0
@.str = [32 x i8] c"host is not bound to a ypmaster\00"
@YPERR_YPBIND = global i32 0
@YPBINDPROC_DOMAIN = global i32 0
@xdr_domainname = global i64 0
@xdr_ypbind_resp = global i64 0
@RPC_SUCCESS = global i32 0
@.str.1 = [20 x i8] c"can't clnt_call: %s\00"
@YPBIND_SUCC_VAL = global i64 0
@.str.2 = [26 x i8] c"can't yp_bind: reason: %s\00"
@AF_INET = global i32 0
@.str.3 = [4 x i8] c"%s\0A\00"
define i32 @bind_host(i8* %0, %struct.sockaddr_in* %1) {
%3 = alloca i8*
%4 = alloca %struct.ypbind_resp
%5 = alloca %struct.in_addr
%6 = alloca %struct.timeval
%7 = alloca i32
store i8* %0, i8** %3
%8 = bitcast %struct.ypbind_resp* %4 to i8*
%9 = bitcast %struct.in_addr* %5 to i8*
%10 = bitcast %struct.timeval* %6 to i8*
%11 = bitcast i32* %7 to i8*
%12 = load i32, i32* @RPC_ANYSOCK
store i32 %12, i32* %7
%13 = load i32, i32* @YPBINDPROG
%14 = load i32, i32* @YPBINDVERS
%15 = call i32* @clntudp_create(%struct.sockaddr_in* %1, i32 %13, i32 %14, i32 15, i64 0, i32* %7)
%16 = icmp eq i32* %15, null
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = call i32 (i8*, ...) @warnx(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%19 = load i32, i32* @YPERR_YPBIND
br label %63
20: ; preds = %2
%21 = getelementptr inbounds %struct.timeval, %struct.timeval* %6, i64 0, i32 1
%22 = getelementptr inbounds %struct.timeval, %struct.timeval* %6, i64 0, i32 0
store i32 5, i32* %22
store i64 0, i64* %21
%23 = load i32, i32* @YPBINDPROC_DOMAIN
%24 = load i64, i64* @xdr_domainname
%25 = trunc i64 %24 to i32
%26 = load i64, i64* @xdr_ypbind_resp
%27 = trunc i64 %26 to i32
%28 = call i32 @clnt_call(i32* %15, i32 %23, i32 %25, i8** %3, i32 %27, %struct.ypbind_resp* %4, %struct.timeval* byval(%struct.timeval) align 8 %6)
%29 = load i32, i32* @RPC_SUCCESS
%30 = icmp eq i32 %28, %29
br i1 %30, label %37, label %31
31: ; preds = %20
%32 = load i32, i32* @YPERR_YPBIND
%33 = call i32 @yperr_string(i32 %32)
%34 = call i32 (i8*, ...) @warnx(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %33)
%35 = call i32 @clnt_destroy(i32* %15)
%36 = load i32, i32* @YPERR_YPBIND
br label %63
37: ; preds = %20
%38 = getelementptr inbounds %struct.ypbind_resp, %struct.ypbind_resp* %4, i64 0, i32 0
%39 = load i64, i64* %38
%40 = load i64, i64* @YPBIND_SUCC_VAL
%41 = icmp eq i64 %39, %40
br i1 %41, label %47, label %42
42: ; preds = %37
%43 = trunc i64 %39 to i32
%44 = call i32 @yperr_string(i32 %43)
%45 = call i32 (i8*, ...) @warnx(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %44)
%46 = call i32 @clnt_destroy(i32* %15)
br label %63
47: ; preds = %37
%48 = call i32 @clnt_destroy(i32* %15)
%49 = getelementptr inbounds %struct.in_addr, %struct.in_addr* %5, i64 0, i32 0
%50 = getelementptr inbounds %struct.ypbind_resp, %struct.ypbind_resp* %4, i64 0, i32 1, i32 0, i32 0
%51 = call i32 @memmove(i32* %49, i32* %50, i32 4)
%52 = load i32, i32* @AF_INET
%53 = call %struct.hostent* @gethostbyaddr(i8* %9, i32 4, i32 %52)
%54 = icmp eq %struct.hostent* %53, null
br i1 %54, label %59, label %55
55: ; preds = %47
%56 = getelementptr inbounds %struct.hostent, %struct.hostent* %53, i64 0, i32 0
%57 = load i8*, i8** %56
%58 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %57)
br label %63
59: ; preds = %47
%60 = load i32, i32* %49
%61 = call i8* @inet_ntoa(i32 %60)
%62 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %61)
br label %63
63: ; preds = %55, %59, %42, %31, %17
%64 = phi i32 [ %19, %17 ], [ %36, %31 ], [ %28, %42 ], [ 0, %59 ], [ 0, %55 ]
ret i32 %64
}