#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 in_addr {
  int dummy;
};
struct TYPE_3__ {
  struct in_addr ypbind_binding_addr;
};
struct TYPE_4__ {
  TYPE_1__ ypbind_bindinfo;
  int /*<<< orphan*/ ypbind_error;
};
struct ypbind_resp {
  scalar_t__ ypbind_status;
  TYPE_2__ ypbind_respbody;
};
struct timeval {
  int tv_sec;
  scalar_t__ tv_usec;
};
struct sockaddr_in {
  int dummy;
};
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*/ printf(char *, char *);
int /*<<< orphan*/ warnx(char *, int /*<<< orphan*/);
scalar_t__ xdr_domainname;
scalar_t__ xdr_ypbind_resp;
int /*<<< orphan*/ ypbinderr_string(int /*<<< orphan*/);
int /*<<< orphan*/ yperr_string(int);
int bind_host(char *dom, struct sockaddr_in *lsin) {
  struct hostent *hent = NULL;
  struct ypbind_resp ypbr;
  struct timeval tv;
  CLIENT *client;
  int sock, r;
  struct in_addr ss_addr;
  sock = RPC_ANYSOCK;
  tv.tv_sec = 15;
  tv.tv_usec = 0;
  client = clntudp_create(lsin, YPBINDPROG, YPBINDVERS, tv, &sock);
  if (client == NULL) {
    warnx("can't clntudp_create: %s", yperr_string(YPERR_YPBIND));
    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",
            ypbinderr_string(ypbr.ypbind_respbody.ypbind_error));
      clnt_destroy(client);
      return (r);
    }
  }
  clnt_destroy(client);
  ss_addr = ypbr.ypbind_respbody.ypbind_bindinfo.ypbind_binding_addr;
  hent = gethostbyaddr((char *)&ss_addr, sizeof(ss_addr), AF_INET);
  if (hent)
    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,-0x4c(%rbp)
movl   $0xf,-0x40(%rbp)
movq   $0x0,-0x38(%rbp)
mov    -0x18(%rbp),%rdi
mov    0x2de2(%rip),%rax
mov    (%rax),%esi
mov    0x2de1(%rip),%rax
mov    (%rax),%edx
mov    -0x40(%rbp),%ecx
mov    -0x38(%rbp),%r8
lea    -0x4c(%rbp),%r9
call   10b0 <clntudp_create@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jne    1225 <bind_host+0x95>
mov    0x2d99(%rip),%rax
mov    (%rax),%edi
call   1070 <yperr_string@plt>
mov    %eax,%esi
lea    0xdf1(%rip),%rdi
call   1050 <warnx@plt>
mov    0x2d7d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1374 <bind_host+0x1e4>
movl   $0x5,-0x40(%rbp)
movq   $0x0,-0x38(%rbp)
mov    -0x48(%rbp),%rdi
mov    0x2db1(%rip),%rax
mov    (%rax),%esi
mov    0x2d58(%rip),%rax
mov    (%rax),%rax
mov    %eax,%edx
mov    0x2d8c(%rip),%rax
mov    (%rax),%rax
mov    %eax,%r8d
lea    -0x10(%rbp),%rcx
lea    -0x30(%rbp),%r9
lea    -0x40(%rbp),%rax
mov    (%rax),%r10
mov    %r10,(%rsp)
mov    0x8(%rax),%rax
mov    %rax,0x8(%rsp)
call   1080 <clnt_call@plt>
mov    %eax,-0x50(%rbp)
mov    -0x50(%rbp),%eax
mov    0x2d40(%rip),%rcx
cmp    (%rcx),%eax
je     12c6 <bind_host+0x136>
mov    0x2d01(%rip),%rax
mov    (%rax),%edi
call   1070 <yperr_string@plt>
mov    %eax,%esi
lea    0xd72(%rip),%rdi
call   1050 <warnx@plt>
mov    -0x48(%rbp),%rdi
call   1090 <clnt_destroy@plt>
mov    0x2cdc(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1374 <bind_host+0x1e4>
mov    -0x30(%rbp),%rax
mov    0x2cd7(%rip),%rcx
cmp    (%rcx),%rax
je     1304 <bind_host+0x174>
mov    -0x24(%rbp),%edi
call   1060 <ypbinderr_string@plt>
mov    %eax,%esi
lea    0xd42(%rip),%rdi
call   1050 <warnx@plt>
mov    -0x48(%rbp),%rdi
call   1090 <clnt_destroy@plt>
mov    -0x50(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1374 <bind_host+0x1e4>
jmp    1309 <bind_host+0x179>
mov    -0x48(%rbp),%rdi
call   1090 <clnt_destroy@plt>
mov    -0x28(%rbp),%eax
mov    %eax,-0x58(%rbp)
lea    -0x58(%rbp),%rdi
mov    0x2cb5(%rip),%rax
mov    (%rax),%edx
mov    $0x4,%esi
call   10a0 <gethostbyaddr@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1356 <bind_host+0x1c6>
mov    -0x20(%rbp),%rax
mov    (%rax),%rsi
lea    0xcfb(%rip),%rdi
call   1040 <printf@plt>
jmp    136d <bind_host+0x1dd>
mov    -0x58(%rbp),%edi
call   1030 <inet_ntoa@plt>
mov    %rax,%rsi
lea    0xcdf(%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,0x30(%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     1281 <bind_host+0xf1>
mov    %rax,%rbx
movl   $0x5,0x38(%rsp)
movq   $0x0,0x40(%rsp)
mov    0x2dfa(%rip),%rax
mov    (%rax),%esi
mov    0x2da1(%rip),%rax
mov    (%rax),%edx
mov    0x2dd8(%rip),%rax
mov    (%rax),%r8d
movups 0x38(%rsp),%xmm0
movups %xmm0,(%rsp)
lea    0x30(%rsp),%rcx
lea    0x20(%rsp),%r9
mov    %rbx,%rdi
call   1080 <clnt_call@plt>
mov    %eax,%ebp
mov    0x2d99(%rip),%rax
cmp    (%rax),%ebp
jne    12a1 <bind_host+0x111>
mov    0x20(%rsp),%rax
mov    0x2d69(%rip),%rcx
cmp    (%rcx),%rax
jne    12cb <bind_host+0x13b>
mov    %rbx,%rdi
call   1090 <clnt_destroy@plt>
mov    0x28(%rsp),%eax
mov    %eax,0x18(%rsp)
mov    0x2d79(%rip),%rax
mov    (%rax),%edx
lea    0x18(%rsp),%rdi
mov    $0x4,%esi
call   10a0 <gethostbyaddr@plt>
test   %rax,%rax
je     12ec <bind_host+0x15c>
mov    (%rax),%rsi
lea    0xdc8(%rip),%rdi
jmp    12ff <bind_host+0x16f>
mov    0x2d10(%rip),%rbx
mov    (%rbx),%edi
call   1070 <yperr_string@plt>
lea    0xd6a(%rip),%rdi
mov    %eax,%esi
call   1050 <warnx@plt>
mov    (%rbx),%ebp
jmp    1306 <bind_host+0x176>
mov    0x2cf0(%rip),%rbp
mov    0x0(%rbp),%edi
call   1070 <yperr_string@plt>
lea    0xd62(%rip),%rdi
mov    %eax,%esi
call   1050 <warnx@plt>
mov    %rbx,%rdi
call   1090 <clnt_destroy@plt>
mov    0x0(%rbp),%ebp
jmp    1306 <bind_host+0x176>
mov    0x2c(%rsp),%edi
call   1060 <ypbinderr_string@plt>
lea    0xd52(%rip),%rdi
mov    %eax,%esi
call   1050 <warnx@plt>
mov    %rbx,%rdi
call   1090 <clnt_destroy@plt>
jmp    1306 <bind_host+0x176>
mov    0x18(%rsp),%edi
call   1030 <inet_ntoa@plt>
lea    0xd4b(%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__, i32 }
%struct.TYPE_3__ = type { %struct.in_addr }
%struct.in_addr = type { i32 }
%struct.timeval = type { i32, i64 }
@RPC_ANYSOCK = global i32 0
@YPBINDPROG = global i32 0
@YPBINDVERS = global i32 0
@.str = [25 x i8] c"can't clntudp_create: %s\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.timeval
%9 = alloca i32*
%10 = alloca i32
%11 = alloca i32
%12 = alloca %struct.in_addr
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* %10
%14 = getelementptr inbounds %struct.timeval, %struct.timeval* %8, i32 0, i32 0
store i32 15, i32* %14
%15 = getelementptr inbounds %struct.timeval, %struct.timeval* %8, 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* %8 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* %10)
store i32* %24, i32** %9
%25 = load i32*, i32** %9
%26 = icmp eq i32* %25, null
br i1 %26, label %27, label %32
27: ; preds = %2
%28 = load i32, i32* @YPERR_YPBIND
%29 = call i32 @yperr_string(i32 %28)
%30 = call i32 @warnx(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %29)
%31 = load i32, i32* @YPERR_YPBIND
store i32 %31, i32* %3
br label %91
32: ; preds = %2
%33 = getelementptr inbounds %struct.timeval, %struct.timeval* %8, i32 0, i32 0
store i32 5, i32* %33
%34 = getelementptr inbounds %struct.timeval, %struct.timeval* %8, i32 0, i32 1
store i64 0, i64* %34
%35 = load i32*, i32** %9
%36 = load i32, i32* @YPBINDPROC_DOMAIN
%37 = load i64, i64* @xdr_domainname
%38 = trunc i64 %37 to i32
%39 = load i64, i64* @xdr_ypbind_resp
%40 = trunc i64 %39 to i32
%41 = call i32 @clnt_call(i32* %35, i32 %36, i32 %38, i8** %4, i32 %40, %struct.ypbind_resp* %7, %struct.timeval* byval(%struct.timeval) align 8 %8)
store i32 %41, i32* %11
%42 = load i32, i32* %11
%43 = load i32, i32* @RPC_SUCCESS
%44 = icmp ne i32 %42, %43
br i1 %44, label %45, label %52
45: ; preds = %32
%46 = load i32, i32* @YPERR_YPBIND
%47 = call i32 @yperr_string(i32 %46)
%48 = call i32 @warnx(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %47)
%49 = load i32*, i32** %9
%50 = call i32 @clnt_destroy(i32* %49)
%51 = load i32, i32* @YPERR_YPBIND
store i32 %51, i32* %3
br label %91
52: ; preds = %32
%53 = getelementptr inbounds %struct.ypbind_resp, %struct.ypbind_resp* %7, i32 0, i32 0
%54 = load i64, i64* %53
%55 = load i64, i64* @YPBIND_SUCC_VAL
%56 = icmp ne i64 %54, %55
br i1 %56, label %57, label %66
57: ; preds = %52
%58 = getelementptr inbounds %struct.ypbind_resp, %struct.ypbind_resp* %7, i32 0, i32 1
%59 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %58, i32 0, i32 1
%60 = load i32, i32* %59
%61 = call i32 @ypbinderr_string(i32 %60)
%62 = call i32 @warnx(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %61)
%63 = load i32*, i32** %9
%64 = call i32 @clnt_destroy(i32* %63)
%65 = load i32, i32* %11
store i32 %65, i32* %3
br label %91
66: ; preds = %52
br label %67
67: ; preds = %66
%68 = load i32*, i32** %9
%69 = call i32 @clnt_destroy(i32* %68)
%70 = getelementptr inbounds %struct.ypbind_resp, %struct.ypbind_resp* %7, i32 0, i32 1
%71 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %70, i32 0, i32 0
%72 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %71, i32 0, i32 0
%73 = bitcast %struct.in_addr* %12 to i8*
%74 = bitcast %struct.in_addr* %72 to i8*
%75 = bitcast %struct.in_addr* %12 to i8*
%76 = load i32, i32* @AF_INET
%77 = call %struct.hostent* @gethostbyaddr(i8* %75, i32 4, i32 %76)
store %struct.hostent* %77, %struct.hostent** %6
%78 = load %struct.hostent*, %struct.hostent** %6
%79 = icmp ne %struct.hostent* %78, null
br i1 %79, label %80, label %85
80: ; preds = %67
%81 = load %struct.hostent*, %struct.hostent** %6
%82 = getelementptr inbounds %struct.hostent, %struct.hostent* %81, i32 0, i32 0
%83 = load i8*, i8** %82
%84 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %83)
br label %90
85: ; preds = %67
%86 = getelementptr inbounds %struct.in_addr, %struct.in_addr* %12, i32 0, i32 0
%87 = load i32, i32* %86
%88 = call i8* @inet_ntoa(i32 %87)
%89 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %88)
br label %90
90: ; preds = %85, %80
store i32 0, i32* %3
br label %91
91: ; preds = %90, %57, %45, %27
%92 = load i32, i32* %3
ret i32 %92
}

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