#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 hostent {
  char *h_name;
  char **h_aliases;
  char **h_addr_list;
  int /*<<< orphan*/ h_addrtype;
  int /*<<< orphan*/ h_length;
};

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
struct hostent *gethostbyaddr(char *, int /*<<< orphan*/, int /*<<< orphan*/);
struct hostent *gethostbyname(char *);
int /*<<< orphan*/ h_errno;
char *hstrerror(int /*<<< orphan*/);
char *inet_ntop(int /*<<< orphan*/, char *, char *, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  struct hostent *ent, *ano_ent;
  char **paliase;
  char **addrlist;
  char *pname;
  char buf[48];
  while (--argc > 0) {
    pname = *++argv;
    if ((ent = gethostbyname(pname)) == NULL) {
      fprintf(stderr, "error occur:%s\n", hstrerror(h_errno));
      continue;
    }
    fprintf(stderr, "the official name:\n");
    fprintf(stderr, "	%s\n", ent->h_name);
    fprintf(stderr, "alias:\n");
    paliase = ent->h_aliases;
    while (*paliase != NULL) {
      fprintf(stderr, "	%s\n", *paliase);
      paliase++;
    }
    fprintf(stderr, "addresses:\n");
    addrlist = ent->h_addr_list;
    while (*addrlist != NULL) {
      fprintf(stderr, "	%s\n", inet_ntop(AF_INET, *addrlist, buf, 48));
      ano_ent = gethostbyaddr(*addrlist, ent->h_length, ent->h_addrtype);
      if (ano_ent == NULL) {
        fprintf(stderr, "invoke gethostbyaddr fail\n");
        perror("");
      } else if (ano_ent->h_name != NULL)
        fprintf(stderr, "the hostname:%s\n", ano_ent->h_name);
      else
        fprintf(stderr, "no host name\n");
      addrlist++;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
cmp    $0x0,%eax
jle    13a4 <main+0x244>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
mov    0x8(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
call   1040 <gethostbyname@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    11ec <main+0x8c>
mov    0x2e10(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x74(%rbp)
mov    0x2e14(%rip),%rax
mov    (%rax),%edi
call   1070 <hstrerror@plt>
mov    -0x74(%rbp),%edi
mov    %rax,%rdx
lea    0xe20(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    1179 <main+0x19>
mov    0x2ddd(%rip),%rax
mov    (%rax),%edi
lea    0xe14(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2dc6(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%rdx
lea    0xe0a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2da8(%rip),%rax
mov    (%rax),%edi
lea    0xdf8(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
cmpq   $0x0,(%rax)
je     1281 <main+0x121>
mov    0x2d77(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%rax
mov    (%rax),%rdx
lea    0xdbb(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x28(%rbp)
jmp    1244 <main+0xe4>
mov    0x2d48(%rip),%rax
mov    (%rax),%edi
lea    0xda0(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
cmpq   $0x0,(%rax)
je     139f <main+0x23f>
mov    0x2d17(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x78(%rbp)
mov    0x2d23(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rax
mov    (%rax),%rsi
lea    -0x70(%rbp),%rdx
mov    $0x30,%ecx
call   1030 <inet_ntop@plt>
mov    -0x78(%rbp),%edi
mov    %rax,%rdx
lea    0xd3b(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x30(%rbp),%rax
mov    (%rax),%rdi
mov    -0x18(%rbp),%rax
mov    0x1c(%rax),%esi
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%edx
call   1080 <gethostbyaddr@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1341 <main+0x1e1>
mov    0x2cb0(%rip),%rax
mov    (%rax),%edi
lea    0xd14(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
lea    0xcec(%rip),%rdi
call   1060 <perror@plt>
jmp    138e <main+0x22e>
mov    -0x20(%rbp),%rax
cmpq   $0x0,(%rax)
je     1372 <main+0x212>
mov    0x2c7a(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rax
mov    (%rax),%rdx
lea    0xcf2(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    1389 <main+0x229>
mov    0x2c57(%rip),%rax
mov    (%rax),%edi
lea    0xce7(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    138e <main+0x22e>
mov    -0x30(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x30(%rbp)
jmp    12a4 <main+0x144>
jmp    1179 <main+0x19>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
cmp    $0x2,%edi
jl     131f <main+0x1bf>
mov    %rsi,%r15
mov    %edi,%ebx
mov    0x2e4d(%rip),%r12
lea    0xe9a(%rip),%r14
jmp    11cd <main+0x6d>
nopl   0x0(%rax)
mov    0x2e49(%rip),%rax
mov    (%rax),%edi
call   1070 <hstrerror@plt>
mov    %r15d,%edi
lea    0xe58(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%rsp),%r15
mov    0x8(%rsp),%rcx
lea    -0x1(%rcx),%eax
add    $0x8,%r15
cmp    $0x2,%ecx
mov    %eax,%ebx
jle    131f <main+0x1bf>
mov    %r15,(%rsp)
mov    0x8(%r15),%rdi
call   1040 <gethostbyname@plt>
mov    (%r12),%r15d
test   %rax,%rax
mov    %rbx,0x8(%rsp)
je     1190 <main+0x30>
mov    %rax,%r13
mov    %r15d,%edi
lea    0xe1b(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r12),%edi
mov    0x0(%r13),%rdx
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%r12),%edi
lea    0xe10(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x8(%r13),%rbx
mov    (%rbx),%rdx
test   %rdx,%rdx
je     124a <main+0xea>
add    $0x8,%rbx
mov    (%r12),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    (%rbx),%rdx
add    $0x8,%rbx
test   %rdx,%rdx
jne    1230 <main+0xd0>
mov    (%r12),%edi
lea    0xddc(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x10(%r13),%rbp
mov    0x0(%rbp),%rsi
test   %rsi,%rsi
mov    (%rsp),%r15
je     11b6 <main+0x56>
add    $0x8,%rbp
jmp    129f <main+0x13f>
nopw   0x0(%rax,%rax,1)
lea    0xdd1(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x0(%rbp),%rsi
add    $0x8,%rbp
test   %rsi,%rsi
je     11b6 <main+0x56>
mov    (%r12),%ebx
mov    0x2d3e(%rip),%rax
mov    (%rax),%edi
lea    0x10(%rsp),%rdx
mov    $0x30,%ecx
call   1030 <inet_ntop@plt>
mov    %ebx,%edi
mov    %r14,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    0x18(%r13),%edx
mov    0x1c(%r13),%esi
call   1080 <gethostbyaddr@plt>
test   %rax,%rax
je     12fc <main+0x19c>
mov    (%rax),%rdx
mov    (%r12),%edi
test   %rdx,%rdx
jne    1280 <main+0x120>
lea    0xd76(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    128e <main+0x12e>
mov    (%r12),%edi
lea    0xd36(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    0xd0e(%rip),%rdi
call   1060 <perror@plt>
jmp    128e <main+0x12e>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.hostent = type { i8*, i8**, i8**, i32, i32 }
@stderr = global i32 0
@.str = [16 x i8] c"error occur:%s\0A\00"
@h_errno = global i32 0
@.str.1 = [20 x i8] c"the official name:\0A\00"
@.str.2 = [5 x i8] c"\09%s\0A\00"
@.str.3 = [8 x i8] c"alias:\0A\00"
@.str.4 = [12 x i8] c"addresses:\0A\00"
@AF_INET = global i32 0
@.str.5 = [27 x i8] c"invoke gethostbyaddr fail\0A\00"
@.str.6 = [1 x i8] zeroinitializer
@.str.7 = [17 x i8] c"the hostname:%s\0A\00"
@.str.8 = [14 x i8] c"no host name\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.hostent*
%7 = alloca %struct.hostent*
%8 = alloca i8**
%9 = alloca i8**
%10 = alloca i8*
%11 = alloca [48 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %12
12: ; preds = %103, %23, %2
%13 = load i32, i32* %4
%14 = add nsw i32 %13, -1
store i32 %14, i32* %4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %104
16: ; preds = %12
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i32 1
store i8** %18, i8*** %5
%19 = load i8*, i8** %18
store i8* %19, i8** %10
%20 = load i8*, i8** %10
%21 = call %struct.hostent* @gethostbyname(i8* %20)
store %struct.hostent* %21, %struct.hostent** %6
%22 = icmp eq %struct.hostent* %21, null
br i1 %22, label %23, label %28
23: ; preds = %16
%24 = load i32, i32* @stderr
%25 = load i32, i32* @h_errno
%26 = call i8* @hstrerror(i32 %25)
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %26)
br label %12
28: ; preds = %16
%29 = load i32, i32* @stderr
%30 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = load %struct.hostent*, %struct.hostent** %6
%33 = getelementptr inbounds %struct.hostent, %struct.hostent* %32, i32 0, i32 0
%34 = load i8*, i8** %33
%35 = call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %34)
%36 = load i32, i32* @stderr
%37 = call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%38 = load %struct.hostent*, %struct.hostent** %6
%39 = getelementptr inbounds %struct.hostent, %struct.hostent* %38, i32 0, i32 1
%40 = load i8**, i8*** %39
store i8** %40, i8*** %8
br label %41
41: ; preds = %45, %28
%42 = load i8**, i8*** %8
%43 = load i8*, i8** %42
%44 = icmp ne i8* %43, null
br i1 %44, label %45, label %52
45: ; preds = %41
%46 = load i32, i32* @stderr
%47 = load i8**, i8*** %8
%48 = load i8*, i8** %47
%49 = call i32 (i32, i8*, ...) @fprintf(i32 %46, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %48)
%50 = load i8**, i8*** %8
%51 = getelementptr inbounds i8*, i8** %50, i32 1
store i8** %51, i8*** %8
br label %41
52: ; preds = %41
%53 = load i32, i32* @stderr
%54 = call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%55 = load %struct.hostent*, %struct.hostent** %6
%56 = getelementptr inbounds %struct.hostent, %struct.hostent* %55, i32 0, i32 2
%57 = load i8**, i8*** %56
store i8** %57, i8*** %9
br label %58
58: ; preds = %100, %52
%59 = load i8**, i8*** %9
%60 = load i8*, i8** %59
%61 = icmp ne i8* %60, null
br i1 %61, label %62, label %103
62: ; preds = %58
%63 = load i32, i32* @stderr
%64 = load i32, i32* @AF_INET
%65 = load i8**, i8*** %9
%66 = load i8*, i8** %65
%67 = getelementptr inbounds [48 x i8], [48 x i8]* %11, i64 0, i64 0
%68 = call i8* @inet_ntop(i32 %64, i8* %66, i8* %67, i32 48)
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %68)
%70 = load i8**, i8*** %9
%71 = load i8*, i8** %70
%72 = load %struct.hostent*, %struct.hostent** %6
%73 = getelementptr inbounds %struct.hostent, %struct.hostent* %72, i32 0, i32 4
%74 = load i32, i32* %73
%75 = load %struct.hostent*, %struct.hostent** %6
%76 = getelementptr inbounds %struct.hostent, %struct.hostent* %75, i32 0, i32 3
%77 = load i32, i32* %76
%78 = call %struct.hostent* @gethostbyaddr(i8* %71, i32 %74, i32 %77)
store %struct.hostent* %78, %struct.hostent** %7
%79 = load %struct.hostent*, %struct.hostent** %7
%80 = icmp eq %struct.hostent* %79, null
br i1 %80, label %81, label %85
81: ; preds = %62
%82 = load i32, i32* @stderr
%83 = call i32 (i32, i8*, ...) @fprintf(i32 %82, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%84 = call i32 @perror(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
br label %100
85: ; preds = %62
%86 = load %struct.hostent*, %struct.hostent** %7
%87 = getelementptr inbounds %struct.hostent, %struct.hostent* %86, i32 0, i32 0
%88 = load i8*, i8** %87
%89 = icmp ne i8* %88, null
br i1 %89, label %90, label %96
90: ; preds = %85
%91 = load i32, i32* @stderr
%92 = load %struct.hostent*, %struct.hostent** %7
%93 = getelementptr inbounds %struct.hostent, %struct.hostent* %92, i32 0, i32 0
%94 = load i8*, i8** %93
%95 = call i32 (i32, i8*, ...) @fprintf(i32 %91, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i8* %94)
br label %99
96: ; preds = %85
%97 = load i32, i32* @stderr
%98 = call i32 (i32, i8*, ...) @fprintf(i32 %97, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
br label %99
99: ; preds = %96, %90
br label %100
100: ; preds = %99, %81
%101 = load i8**, i8*** %9
%102 = getelementptr inbounds i8*, i8** %101, i32 1
store i8** %102, i8*** %9
br label %58
103: ; preds = %58
br label %12
104: ; preds = %12
ret i32 0
}

LLVM IR (-O2):
%struct.hostent = type { i8*, i8**, i8**, i32, i32 }
@stderr = global i32 0
@.str = [16 x i8] c"error occur:%s\0A\00"
@h_errno = global i32 0
@.str.1 = [20 x i8] c"the official name:\0A\00"
@.str.2 = [5 x i8] c"\09%s\0A\00"
@.str.3 = [8 x i8] c"alias:\0A\00"
@.str.4 = [12 x i8] c"addresses:\0A\00"
@AF_INET = global i32 0
@.str.5 = [27 x i8] c"invoke gethostbyaddr fail\0A\00"
@.str.6 = [1 x i8] zeroinitializer
@.str.7 = [17 x i8] c"the hostname:%s\0A\00"
@.str.8 = [14 x i8] c"no host name\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [48 x i8]
%4 = getelementptr inbounds [48 x i8], [48 x i8]* %3, i64 0, i64 0
%5 = icmp sgt i32 %0, 1
br i1 %5, label %6, label %80
6: ; preds = %2, %19
%7 = phi i32 [ %9, %19 ], [ %0, %2 ]
%8 = phi i8** [ %10, %19 ], [ %1, %2 ]
%9 = add nsw i32 %7, -1
%10 = getelementptr inbounds i8*, i8** %8, i64 1
%11 = load i8*, i8** %10
%12 = call %struct.hostent* @gethostbyname(i8* %11)
%13 = icmp eq %struct.hostent* %12, null
%14 = load i32, i32* @stderr
br i1 %13, label %15, label %21
15: ; preds = %6
%16 = load i32, i32* @h_errno
%17 = call i8* @hstrerror(i32 %16)
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %17)
br label %19
19: ; preds = %76, %41, %15
%20 = icmp sgt i32 %7, 2
br i1 %20, label %6, label %80
21: ; preds = %6
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = getelementptr inbounds %struct.hostent, %struct.hostent* %12, i64 0, i32 0
%25 = load i8*, i8** %24
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %25)
%27 = load i32, i32* @stderr
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%29 = getelementptr inbounds %struct.hostent, %struct.hostent* %12, i64 0, i32 1
%30 = load i8**, i8*** %29
%31 = load i8*, i8** %30
%32 = icmp eq i8* %31, null
br i1 %32, label %41, label %33
33: ; preds = %21, %33
%34 = phi i8* [ %39, %33 ], [ %31, %21 ]
%35 = phi i8** [ %38, %33 ], [ %30, %21 ]
%36 = load i32, i32* @stderr
%37 = call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %34)
%38 = getelementptr inbounds i8*, i8** %35, i64 1
%39 = load i8*, i8** %38
%40 = icmp eq i8* %39, null
br i1 %40, label %41, label %33
41: ; preds = %33, %21
%42 = load i32, i32* @stderr
%43 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%44 = getelementptr inbounds %struct.hostent, %struct.hostent* %12, i64 0, i32 2
%45 = load i8**, i8*** %44
%46 = load i8*, i8** %45
%47 = icmp eq i8* %46, null
br i1 %47, label %19, label %48
48: ; preds = %41
%49 = getelementptr inbounds %struct.hostent, %struct.hostent* %12, i64 0, i32 4
%50 = getelementptr inbounds %struct.hostent, %struct.hostent* %12, i64 0, i32 3
br label %51
51: ; preds = %48, %76
%52 = phi i8* [ %46, %48 ], [ %78, %76 ]
%53 = phi i8** [ %45, %48 ], [ %77, %76 ]
%54 = load i32, i32* @stderr
%55 = load i32, i32* @AF_INET
%56 = call i8* @inet_ntop(i32 %55, i8* %52, i8* %4, i32 48)
%57 = call i32 (i32, i8*, ...) @fprintf(i32 %54, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %56)
%58 = load i8*, i8** %53
%59 = load i32, i32* %49
%60 = load i32, i32* %50
%61 = call %struct.hostent* @gethostbyaddr(i8* %58, i32 %59, i32 %60)
%62 = icmp eq %struct.hostent* %61, null
br i1 %62, label %63, label %67
63: ; preds = %51
%64 = load i32, i32* @stderr
%65 = call i32 (i32, i8*, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%66 = call i32 @perror(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
br label %76
67: ; preds = %51
%68 = getelementptr inbounds %struct.hostent, %struct.hostent* %61, i64 0, i32 0
%69 = load i8*, i8** %68
%70 = icmp eq i8* %69, null
%71 = load i32, i32* @stderr
br i1 %70, label %74, label %72
72: ; preds = %67
%73 = call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i8* %69)
br label %76
74: ; preds = %67
%75 = call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
br label %76
76: ; preds = %72, %74, %63
%77 = getelementptr inbounds i8*, i8** %53, i64 1
%78 = load i8*, i8** %77
%79 = icmp eq i8* %78, null
br i1 %79, label %19, label %51
80: ; preds = %19, %2
ret i32 0
}