#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 sockaddr_in6 {
  int /*<<< orphan*/ sin6_addr;
};
struct sockaddr_in {
  int /*<<< orphan*/ sin_addr;
};
struct addrinfo {
  scalar_t__ ai_family;
  scalar_t__ ai_addr;
  struct addrinfo *ai_next;
  int /*<<< orphan*/ ai_socktype;
};
typedef int /*<<< orphan*/ socklen_t;
typedef int /*<<< orphan*/ ipstr;

/* Variables and functions */
scalar_t__ AF_INET;
scalar_t__ AF_INET6;
scalar_t__ AF_UNSPEC;
int INET6_ADDRSTRLEN;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ abort();
int /*<<< orphan*/ asprintf(char **, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ freeaddrinfo(struct addrinfo *);
char *gai_strerror(int);
int getaddrinfo(char *, int /*<<< orphan*/ *, struct addrinfo *,
                struct addrinfo **);
int /*<<< orphan*/ inet_ntop(scalar_t__, void *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ memset(struct addrinfo *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, char *, ...);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  struct addrinfo hints, *res, *p;
  int status;
  char ipstr[INET6_ADDRSTRLEN];
  if (argc != 2) {
    fputs("Usage: showip hostname\n", stderr);
    return 1;
  }
  memset(&hints, 0, sizeof hints);
  hints.ai_family = AF_UNSPEC;
  hints.ai_socktype = SOCK_STREAM;
  if ((status = getaddrinfo(argv[1], NULL, &hints, &res)) != 0) {
    fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(status));
    return 2;
  }
  printf("IP addresses for %s:\n\n", argv[1]);
  for (p = res; p != NULL; p = p->ai_next) {
    void *addr;
    char *ipver;
    if (p->ai_family == AF_INET) {
      struct sockaddr_in *ipv4 = (struct sockaddr_in *)p->ai_addr;
      addr = &(ipv4->sin_addr);
      asprintf(&ipver, "IPv4");
    } else if (p->ai_family == AF_INET6) {
      struct sockaddr_in6 *ipv6 = (struct sockaddr_in6 *)p->ai_addr;
      addr = &(ipv6->sin6_addr);
      asprintf(&ipver, "IPv6");
    } else {
      abort();
    }
    inet_ntop(p->ai_family, addr, ipstr, (socklen_t)sizeof(ipstr));
    printf("  %s %s\n", ipver, ipstr);
  }
  freeaddrinfo(res);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e28(%rip),%rax
mov    (%rax),%eax
mov    %rax,-0x90(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x88(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x58(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     1221 <main+0x81>
mov    0x2dc0(%rip),%rax
mov    (%rax),%esi
lea    0xdf7(%rip),%rdi
call   1070 <fputs@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0x5c(%rbp)
jmp    13c5 <main+0x225>
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1080 <memset@plt>
mov    0x2da0(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    0x2d72(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
lea    -0x30(%rbp),%rdx
lea    -0x38(%rbp),%rcx
call   10b0 <getaddrinfo@plt>
mov    %eax,-0x44(%rbp)
cmp    $0x0,%eax
je     12af <main+0x10f>
mov    0x2d49(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x94(%rbp)
mov    -0x44(%rbp),%edi
call   1060 <gai_strerror@plt>
mov    -0x94(%rbp),%edi
mov    %rax,%rdx
lea    0xd81(%rip),%rsi
call   1090 <fprintf@plt>
movl   $0x2,-0x4(%rbp)
movl   $0x1,-0x5c(%rbp)
jmp    13c5 <main+0x225>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd6b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x38(%rbp),%rax
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
je     13ae <main+0x20e>
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
mov    0x2cfa(%rip),%rcx
cmp    (%rcx),%rax
jne    1318 <main+0x178>
mov    -0x40(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,-0x68(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xd32(%rip),%rsi
call   10a0 <asprintf@plt>
jmp    1364 <main+0x1c4>
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
mov    0x2caa(%rip),%rcx
cmp    (%rcx),%rax
jne    1358 <main+0x1b8>
mov    -0x40(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
mov    %rax,-0x68(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xcf7(%rip),%rsi
call   10a0 <asprintf@plt>
jmp    135f <main+0x1bf>
mov    $0x0,%al
call   1040 <abort@plt>
jmp    1364 <main+0x1c4>
mov    -0x88(%rbp),%rdx
mov    -0x90(%rbp),%rax
mov    -0x40(%rbp),%rcx
mov    (%rcx),%rdi
mov    -0x68(%rbp),%rsi
mov    %eax,%ecx
call   1030 <inet_ntop@plt>
mov    -0x88(%rbp),%rdx
mov    -0x70(%rbp),%rsi
lea    0xcb4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x40(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x40(%rbp)
jmp    12cd <main+0x12d>
mov    -0x38(%rbp),%rdi
call   10c0 <freeaddrinfo@plt>
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x5c(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsp,%r13
mov    0x2e2d(%rip),%rax
mov    (%rax),%r14d
mov    %rsp,%rbx
lea    0xf(%r14),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
cmp    $0x2,%edi
jne    1246 <main+0xa6>
mov    %rsi,%r15
lea    -0x60(%rbp),%r12
mov    %r12,%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1080 <memset@plt>
mov    0x2de7(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x60(%rbp)
mov    0x2db9(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x48(%rbp)
mov    0x8(%r15),%rdi
lea    -0x30(%rbp),%rcx
xor    %esi,%esi
mov    %r12,%rdx
call   10b0 <getaddrinfo@plt>
test   %eax,%eax
je     1266 <main+0xc6>
mov    0x2d9f(%rip),%rcx
mov    (%rcx),%ebx
mov    %eax,%edi
call   1060 <gai_strerror@plt>
lea    0xde7(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
call   1090 <fprintf@plt>
mov    $0x2,%r15d
jmp    1320 <main+0x180>
mov    0x2d73(%rip),%rax
mov    (%rax),%esi
lea    0xdaa(%rip),%rdi
call   1070 <fputs@plt>
mov    $0x1,%r15d
jmp    1320 <main+0x180>
mov    0x8(%r15),%rsi
lea    0xdb8(%rip),%rdi
xor    %r15d,%r15d
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x30(%rbp),%r12
test   %r12,%r12
je     1319 <main+0x179>
mov    %r13,-0x38(%rbp)
lea    0xdb7(%rip),%r13
jmp    12db <main+0x13b>
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x8(%r12),%r15
lea    -0x40(%rbp),%rdi
call   10a0 <asprintf@plt>
mov    (%r12),%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1030 <inet_ntop@plt>
mov    -0x40(%rbp),%rsi
mov    %r13,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%r12),%r12
test   %r12,%r12
je     130c <main+0x16c>
mov    (%r12),%rax
lea    0xd5a(%rip),%rsi
mov    0x2cf3(%rip),%rcx
cmp    (%rcx),%rax
je     12a0 <main+0x100>
lea    0xd4c(%rip),%rsi
mov    0x2cd0(%rip),%rcx
cmp    (%rcx),%rax
je     12a0 <main+0x100>
xor    %eax,%eax
call   1040 <abort@plt>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%r13
xor    %r15d,%r15d
jmp    131b <main+0x17b>
xor    %edi,%edi
call   10c0 <freeaddrinfo@plt>
mov    %r13,%rsp
mov    %r15d,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.addrinfo = type { i64, i64, %struct.addrinfo*, i32 }
%struct.sockaddr_in = type { i32 }
%struct.sockaddr_in6 = type { i32 }
@INET6_ADDRSTRLEN = global i32 0
@.str = [24 x i8] c"Usage: showip hostname\0A\00"
@stderr = global i32 0
@AF_UNSPEC = global i64 0
@SOCK_STREAM = global i32 0
@.str.1 = [17 x i8] c"getaddrinfo: %s\0A\00"
@.str.2 = [23 x i8] c"IP addresses for %s:\0A\0A\00"
@AF_INET = global i64 0
@.str.3 = [5 x i8] c"IPv4\00"
@AF_INET6 = global i64 0
@.str.4 = [5 x i8] c"IPv6\00"
@.str.5 = [9 x i8] c" %s %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.addrinfo
%7 = alloca %struct.addrinfo*
%8 = alloca %struct.addrinfo*
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca %struct.sockaddr_in*
%16 = alloca %struct.sockaddr_in6*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = load i32, i32* @INET6_ADDRSTRLEN
%18 = zext i32 %17 to i64
%19 = call i8* @llvm.stacksave()
store i8* %19, i8** %10
%20 = alloca i8, i64 %18
store i64 %18, i64* %11
%21 = load i32, i32* %4
%22 = icmp ne i32 %21, 2
br i1 %22, label %23, label %26
23: ; preds = %2
%24 = load i32, i32* @stderr
%25 = call i32 @fputs(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %24)
store i32 1, i32* %3
store i32 1, i32* %12
br label %100
26: ; preds = %2
%27 = call i32 @memset(%struct.addrinfo* %6, i32 0, i32 32)
%28 = load i64, i64* @AF_UNSPEC
%29 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %6, i32 0, i32 0
store i64 %28, i64* %29
%30 = load i32, i32* @SOCK_STREAM
%31 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %6, i32 0, i32 3
store i32 %30, i32* %31
%32 = load i8**, i8*** %5
%33 = getelementptr inbounds i8*, i8** %32, i64 1
%34 = load i8*, i8** %33
%35 = call i32 @getaddrinfo(i8* %34, i32* null, %struct.addrinfo* %6, %struct.addrinfo** %7)
store i32 %35, i32* %9
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %42
37: ; preds = %26
%38 = load i32, i32* @stderr
%39 = load i32, i32* %9
%40 = call i8* @gai_strerror(i32 %39)
%41 = call i32 @fprintf(i32 %38, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* %40)
store i32 2, i32* %3
store i32 1, i32* %12
br label %100
42: ; preds = %26
%43 = load i8**, i8*** %5
%44 = getelementptr inbounds i8*, i8** %43, i64 1
%45 = load i8*, i8** %44
%46 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* %45)
%47 = load %struct.addrinfo*, %struct.addrinfo** %7
store %struct.addrinfo* %47, %struct.addrinfo** %8
br label %48
48: ; preds = %93, %42
%49 = load %struct.addrinfo*, %struct.addrinfo** %8
%50 = icmp ne %struct.addrinfo* %49, null
br i1 %50, label %51, label %97
51: ; preds = %48
%52 = load %struct.addrinfo*, %struct.addrinfo** %8
%53 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %52, i32 0, i32 0
%54 = load i64, i64* %53
%55 = load i64, i64* @AF_INET
%56 = icmp eq i64 %54, %55
br i1 %56, label %57, label %66
57: ; preds = %51
%58 = load %struct.addrinfo*, %struct.addrinfo** %8
%59 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %58, i32 0, i32 1
%60 = load i64, i64* %59
%61 = inttoptr i64 %60 to %struct.sockaddr_in*
store %struct.sockaddr_in* %61, %struct.sockaddr_in** %15
%62 = load %struct.sockaddr_in*, %struct.sockaddr_in** %15
%63 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %62, i32 0, i32 0
%64 = bitcast i32* %63 to i8*
store i8* %64, i8** %13
%65 = call i32 @asprintf(i8** %14, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %84
66: ; preds = %51
%67 = load %struct.addrinfo*, %struct.addrinfo** %8
%68 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %67, i32 0, i32 0
%69 = load i64, i64* %68
%70 = load i64, i64* @AF_INET6
%71 = icmp eq i64 %69, %70
br i1 %71, label %72, label %81
72: ; preds = %66
%73 = load %struct.addrinfo*, %struct.addrinfo** %8
%74 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %73, i32 0, i32 1
%75 = load i64, i64* %74
%76 = inttoptr i64 %75 to %struct.sockaddr_in6*
store %struct.sockaddr_in6* %76, %struct.sockaddr_in6** %16
%77 = load %struct.sockaddr_in6*, %struct.sockaddr_in6** %16
%78 = getelementptr inbounds %struct.sockaddr_in6, %struct.sockaddr_in6* %77, i32 0, i32 0
%79 = bitcast i32* %78 to i8*
store i8* %79, i8** %13
%80 = call i32 @asprintf(i8** %14, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %83
81: ; preds = %66
%82 = call i32 (...) @abort()
unreachable
83: ; preds = %72
br label %84
84: ; preds = %83, %57
%85 = load %struct.addrinfo*, %struct.addrinfo** %8
%86 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %85, i32 0, i32 0
%87 = load i64, i64* %86
%88 = load i8*, i8** %13
%89 = trunc i64 %18 to i32
%90 = call i32 @inet_ntop(i64 %87, i8* %88, i8* %20, i32 %89)
%91 = load i8*, i8** %14
%92 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %91, i8* %20)
br label %93
93: ; preds = %84
%94 = load %struct.addrinfo*, %struct.addrinfo** %8
%95 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %94, i32 0, i32 2
%96 = load %struct.addrinfo*, %struct.addrinfo** %95
store %struct.addrinfo* %96, %struct.addrinfo** %8
br label %48
97: ; preds = %48
%98 = load %struct.addrinfo*, %struct.addrinfo** %7
%99 = call i32 @freeaddrinfo(%struct.addrinfo* %98)
store i32 0, i32* %3
store i32 1, i32* %12
br label %100
100: ; preds = %97, %37, %23
%101 = load i8*, i8** %10
%102 = load i32, i32* %3
ret i32 %102
}

LLVM IR (-O2):
%struct.addrinfo = type { i64, i64, %struct.addrinfo*, i32 }
@INET6_ADDRSTRLEN = global i32 0
@.str = [24 x i8] c"Usage: showip hostname\0A\00"
@stderr = global i32 0
@AF_UNSPEC = global i64 0
@SOCK_STREAM = global i32 0
@.str.1 = [17 x i8] c"getaddrinfo: %s\0A\00"
@.str.2 = [23 x i8] c"IP addresses for %s:\0A\0A\00"
@AF_INET = global i64 0
@.str.3 = [5 x i8] c"IPv4\00"
@AF_INET6 = global i64 0
@.str.4 = [5 x i8] c"IPv6\00"
@.str.5 = [9 x i8] c" %s %s\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.addrinfo
%4 = alloca %struct.addrinfo*
%5 = alloca i8*
%6 = bitcast %struct.addrinfo* %3 to i8*
%7 = bitcast %struct.addrinfo** %4 to i8*
%8 = load i32, i32* @INET6_ADDRSTRLEN
%9 = zext i32 %8 to i64
%10 = tail call i8* @llvm.stacksave()
%11 = alloca i8, i64 %9
%12 = icmp eq i32 %0, 2
br i1 %12, label %16, label %13
13: ; preds = %2
%14 = load i32, i32* @stderr
%15 = tail call i32 @fputs(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %14)
br label %66
16: ; preds = %2
%17 = call i32 @memset(%struct.addrinfo* %3, i32 0, i32 32)
%18 = load i64, i64* @AF_UNSPEC
%19 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %3, i64 0, i32 0
store i64 %18, i64* %19
%20 = load i32, i32* @SOCK_STREAM
%21 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %3, i64 0, i32 3
store i32 %20, i32* %21
%22 = getelementptr inbounds i8*, i8** %1, i64 1
%23 = load i8*, i8** %22
%24 = call i32 @getaddrinfo(i8* %23, i32* null, %struct.addrinfo* %3, %struct.addrinfo** %4)
%25 = icmp eq i32 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %16
%27 = load i32, i32* @stderr
%28 = call i8* @gai_strerror(i32 %24)
%29 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* %28)
br label %66
30: ; preds = %16
%31 = load i8*, i8** %22
%32 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* %31)
%33 = load %struct.addrinfo*, %struct.addrinfo** %4
%34 = icmp eq %struct.addrinfo* %33, null
br i1 %34, label %63, label %35
35: ; preds = %30
%36 = bitcast i8** %5 to i8*
br label %37
37: ; preds = %35, %48
%38 = phi %struct.addrinfo* [ %33, %35 ], [ %59, %48 ]
%39 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %38, i64 0, i32 0
%40 = load i64, i64* %39
%41 = load i64, i64* @AF_INET
%42 = icmp eq i64 %40, %41
br i1 %42, label %48, label %43
43: ; preds = %37
%44 = load i64, i64* @AF_INET6
%45 = icmp eq i64 %40, %44
br i1 %45, label %48, label %46
46: ; preds = %43
%47 = call i32 (...) @abort()
unreachable
48: ; preds = %43, %37
%49 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), %37 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), %43 ]
%50 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %38, i64 0, i32 1
%51 = load i64, i64* %50
%52 = call i32 @asprintf(i8** %5, i8* %49)
%53 = inttoptr i64 %51 to i8*
%54 = load i64, i64* %39
%55 = call i32 @inet_ntop(i64 %54, i8* %53, i8* %11, i32 %8)
%56 = load i8*, i8** %5
%57 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %56, i8* %11)
%58 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %38, i64 0, i32 2
%59 = load %struct.addrinfo*, %struct.addrinfo** %58
%60 = icmp eq %struct.addrinfo* %59, null
br i1 %60, label %61, label %37
61: ; preds = %48
%62 = load %struct.addrinfo*, %struct.addrinfo** %4
br label %63
63: ; preds = %61, %30
%64 = phi %struct.addrinfo* [ %62, %61 ], [ null, %30 ]
%65 = call i32 @freeaddrinfo(%struct.addrinfo* %64)
br label %66
66: ; preds = %63, %26, %13
%67 = phi i32 [ 1, %13 ], [ 2, %26 ], [ 0, %63 ]
ret i32 %67
}