#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 */
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int INET_ADDRSTRLEN;
int anonip(int, int *, int *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int getopt(int, char **, char *);
int inet_addr(char *);
char *inet_ntop(int /*<<< orphan*/, int *, char *, int);
char *optarg;
size_t optind;
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ stderr;
int strtoul(char *, int /*<<< orphan*/ *, int);
int /*<<< orphan*/ usage(char *);
int main(int argc, char *argv[]) {
  uint32_t ip;
  uint32_t mask = 0;
  uint32_t key = 0;
  uint32_t ip2;
  char ipbuf[INET_ADDRSTRLEN];
  char maskbuf[INET_ADDRSTRLEN];
  char ip2buf[INET_ADDRSTRLEN];
  int opt;
  bool verbose = false;
  if (argc == 1) {
    usage(argv[0]);
    return 1;
  }
  while ((opt = getopt(argc, argv, "m:k:v")) != -1) {
    switch (opt) {
    case 'm':
      mask = inet_addr(optarg);
      break;
    case 'k':
      key = strtoul(optarg, NULL, 10);
      break;
    case 'v':
      verbose = true;
      break;
    default:
      fprintf(stderr, "Invalid option: %c\n", opt);
      break;
    }
  }
  if (!argv[optind]) {
    usage(argv[0]);
    return 1;
  }
  ip = inet_addr(argv[optind]);
  ip2 = anonip(ip, &mask, &key);
  if (verbose) {
    fprintf(stderr, "Using ip: %s\n",
            inet_ntop(AF_INET, &ip, ipbuf, INET_ADDRSTRLEN));
    fprintf(stderr, "Using netmask: %s\n",
            inet_ntop(AF_INET, &mask, maskbuf, INET_ADDRSTRLEN));
    fprintf(stderr, "Using key: 0x%.4X (%u)\n", key, key);
  }
  printf("%s\n", inet_ntop(AF_INET, &ip2, ip2buf, INET_ADDRSTRLEN));
  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)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    0x2e12(%rip),%rax
mov    (%rax),%ecx
mov    %rsp,%rdx
mov    %rdx,-0x28(%rbp)
mov    %rcx,%rsi
add    $0xf,%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x68(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x30(%rbp)
mov    (%rax),%ecx
mov    %rcx,%rsi
add    $0xf,%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x60(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x38(%rbp)
mov    (%rax),%eax
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x48(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    123f <main+0xbf>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1070 <usage@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0x4c(%rbp)
jmp    1441 <main+0x2c1>
jmp    1244 <main+0xc4>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xdae(%rip),%rdx
call   1080 <getopt@plt>
mov    %eax,-0x44(%rbp)
cmp    $0xffffffff,%eax
je     12fb <main+0x17b>
mov    -0x44(%rbp),%eax
mov    %eax,-0x6c(%rbp)
sub    $0x6b,%eax
je     12b0 <main+0x130>
jmp    1277 <main+0xf7>
mov    -0x6c(%rbp),%eax
sub    $0x6d,%eax
je     1299 <main+0x119>
jmp    1288 <main+0x108>
mov    -0x6c(%rbp),%eax
sub    $0x76,%eax
je     12d0 <main+0x150>
jmp    12dc <main+0x15c>
mov    0x2d58(%rip),%rax
mov    (%rax),%rdi
call   1050 <inet_addr@plt>
mov    %eax,-0x18(%rbp)
jmp    12f6 <main+0x176>
mov    0x2d41(%rip),%rax
mov    (%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1090 <strtoul@plt>
mov    %eax,-0x1c(%rbp)
jmp    12f6 <main+0x176>
movl   $0x1,-0x48(%rbp)
jmp    12f6 <main+0x176>
mov    0x2ce5(%rip),%rax
mov    (%rax),%edi
mov    -0x44(%rbp),%edx
lea    0xd17(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    1244 <main+0xc4>
mov    -0x10(%rbp),%rax
mov    0x2cd2(%rip),%rcx
mov    (%rcx),%rcx
cmpq   $0x0,(%rax,%rcx,8)
jne    1333 <main+0x1b3>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1070 <usage@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0x4c(%rbp)
jmp    1441 <main+0x2c1>
mov    -0x10(%rbp),%rax
mov    0x2c9a(%rip),%rcx
mov    (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
call   1050 <inet_addr@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x18(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
call   10a0 <anonip@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x48(%rbp)
je     1405 <main+0x285>
mov    -0x68(%rbp),%rdx
mov    0x2c53(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x74(%rbp)
mov    0x2c5f(%rip),%rax
mov    (%rax),%edi
mov    0x2c36(%rip),%rax
mov    (%rax),%ecx
lea    -0x14(%rbp),%rsi
call   1030 <inet_ntop@plt>
mov    -0x74(%rbp),%edi
mov    %rax,%rdx
lea    0xc78(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x60(%rbp),%rdx
mov    0x2c14(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x70(%rbp)
mov    0x2c20(%rip),%rax
mov    (%rax),%edi
mov    0x2bf7(%rip),%rax
mov    (%rax),%ecx
lea    -0x18(%rbp),%rsi
call   1030 <inet_ntop@plt>
mov    -0x70(%rbp),%edi
mov    %rax,%rdx
lea    0xc47(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2bd9(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
mov    -0x1c(%rbp),%ecx
lea    0xc3d(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x58(%rbp),%rdx
mov    0x2bd0(%rip),%rax
mov    (%rax),%edi
mov    0x2ba7(%rip),%rax
mov    (%rax),%ecx
lea    -0x20(%rbp),%rsi
call   1030 <inet_ntop@plt>
mov    %rax,%rsi
lea    0xc09(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x4c(%rbp)
mov    -0x28(%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    $0x48,%rsp
mov    %rsi,%r13
mov    %rsp,%r14
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    0x2e14(%rip),%rcx
mov    (%rcx),%eax
mov    %rsp,%rsi
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rsi
mov    %rsi,%rsp
mov    (%rcx),%eax
mov    %rsp,%rdx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rdx
mov    %rdx,%rsp
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,%rsp
cmp    $0x1,%edi
jne    11f3 <main+0x73>
mov    0x0(%r13),%rdi
call   1070 <usage@plt>
mov    $0x1,%eax
jmp    13b2 <main+0x232>
mov    %edi,%ebx
mov    %rsi,-0x58(%rbp)
mov    %rdx,-0x60(%rbp)
mov    %rcx,-0x68(%rbp)
mov    %r14,-0x50(%rbp)
lea    0xdf4(%rip),%r14
mov    0x2db5(%rip),%r12
lea    0xdec(%rip),%r15
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x38(%rbp)
jmp    1250 <main+0xd0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r12),%edi
mov    %r15,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %ebx,%edi
mov    %r13,%rsi
mov    %r14,%rdx
call   1080 <getopt@plt>
cmp    $0x6c,%eax
jg     1290 <main+0x110>
cmp    $0xffffffff,%eax
je     12b7 <main+0x137>
cmp    $0x6b,%eax
jne    1240 <main+0xc0>
mov    0x2d85(%rip),%rax
mov    (%rax),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1090 <strtoul@plt>
mov    %eax,-0x38(%rbp)
jmp    1250 <main+0xd0>
nopw   0x0(%rax,%rax,1)
cmp    $0x76,%eax
je     12ae <main+0x12e>
cmp    $0x6d,%eax
jne    1240 <main+0xc0>
mov    0x2d57(%rip),%rax
mov    (%rax),%rdi
call   1050 <inet_addr@plt>
mov    %eax,-0x3c(%rbp)
jmp    1250 <main+0xd0>
movl   $0x1,-0x34(%rbp)
jmp    1250 <main+0xd0>
mov    -0x38(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    0x2d0e(%rip),%rax
mov    (%rax),%rax
mov    0x0(%r13,%rax,8),%rdi
test   %rdi,%rdi
je     13a0 <main+0x220>
call   1050 <inet_addr@plt>
mov    %eax,-0x44(%rbp)
lea    -0x30(%rbp),%rsi
lea    -0x2c(%rbp),%rdx
mov    %eax,%edi
call   10a0 <anonip@plt>
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x34(%rbp)
mov    0x2cc0(%rip),%r15
je     1374 <main+0x1f4>
mov    (%r12),%ebx
mov    0x2cd3(%rip),%r14
mov    (%r14),%edi
mov    (%r15),%ecx
lea    -0x44(%rbp),%rsi
mov    -0x58(%rbp),%rdx
call   1030 <inet_ntop@plt>
lea    0xcf3(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%r12),%ebx
mov    (%r14),%edi
mov    (%r15),%ecx
lea    -0x30(%rbp),%rsi
mov    -0x60(%rbp),%rdx
call   1030 <inet_ntop@plt>
lea    0xcd7(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%r12),%edi
mov    -0x2c(%rbp),%ecx
lea    0xcd0(%rip),%rsi
mov    %ecx,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x2c65(%rip),%rax
mov    (%rax),%edi
mov    (%r15),%ecx
lea    -0x40(%rbp),%rsi
mov    -0x68(%rbp),%rdx
call   1030 <inet_ntop@plt>
lea    0xca3(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
xor    %eax,%eax
jmp    13ae <main+0x22e>
mov    0x0(%r13),%rdi
call   1070 <usage@plt>
mov    $0x1,%eax
mov    -0x50(%rbp),%r14
mov    %r14,%rsp
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@INET_ADDRSTRLEN = global i32 0
@.str = [6 x i8] c"m:k:v\00"
@optarg = global i8* null
@stderr = global i32 0
@.str.1 = [20 x i8] c"Invalid option: %c\0A\00"
@optind = global i64 0
@.str.2 = [14 x i8] c"Using ip: %s\0A\00"
@AF_INET = global i32 0
@.str.3 = [19 x i8] c"Using netmask: %s\0A\00"
@.str.4 = [24 x i8] c"Using key: 0x%.4X (%u)\0A\00"
@.str.5 = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i64
%13 = alloca i64
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
store i32 0, i32* %8
%17 = load i32, i32* @INET_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* @INET_ADDRSTRLEN
%22 = zext i32 %21 to i64
%23 = alloca i8, i64 %22
store i64 %22, i64* %12
%24 = load i32, i32* @INET_ADDRSTRLEN
%25 = zext i32 %24 to i64
%26 = alloca i8, i64 %25
store i64 %25, i64* %13
store i32 0, i32* %15
%27 = load i32, i32* %4
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %34
29: ; preds = %2
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 0
%32 = load i8*, i8** %31
%33 = call i32 @usage(i8* %32)
store i32 1, i32* %3
store i32 1, i32* %16
br label %95
34: ; preds = %2
br label %35
35: ; preds = %53, %34
%36 = load i32, i32* %4
%37 = load i8**, i8*** %5
%38 = call i32 @getopt(i32 %36, i8** %37, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
store i32 %38, i32* %14
%39 = icmp ne i32 %38, -1
br i1 %39, label %40, label %54
40: ; preds = %35
%41 = load i32, i32* %14
switch i32 %41, label %49 [
i32 109, label %42
i32 107, label %45
i32 118, label %48
]
42: ; preds = %40
%43 = load i8*, i8** @optarg
%44 = call i32 @inet_addr(i8* %43)
store i32 %44, i32* %7
br label %53
45: ; preds = %40
%46 = load i8*, i8** @optarg
%47 = call i32 @strtoul(i8* %46, i32* null, i32 10)
store i32 %47, i32* %8
br label %53
48: ; preds = %40
store i32 1, i32* %15
br label %53
49: ; preds = %40
%50 = load i32, i32* @stderr
%51 = load i32, i32* %14
%52 = call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %51)
br label %53
53: ; preds = %49, %48, %45, %42
br label %35
54: ; preds = %35
%55 = load i8**, i8*** %5
%56 = load i64, i64* @optind
%57 = getelementptr inbounds i8*, i8** %55, i64 %56
%58 = load i8*, i8** %57
%59 = icmp ne i8* %58, null
br i1 %59, label %65, label %60
60: ; preds = %54
%61 = load i8**, i8*** %5
%62 = getelementptr inbounds i8*, i8** %61, i64 0
%63 = load i8*, i8** %62
%64 = call i32 @usage(i8* %63)
store i32 1, i32* %3
store i32 1, i32* %16
br label %95
65: ; preds = %54
%66 = load i8**, i8*** %5
%67 = load i64, i64* @optind
%68 = getelementptr inbounds i8*, i8** %66, i64 %67
%69 = load i8*, i8** %68
%70 = call i32 @inet_addr(i8* %69)
store i32 %70, i32* %6
%71 = load i32, i32* %6
%72 = call i32 @anonip(i32 %71, i32* %7, i32* %8)
store i32 %72, i32* %9
%73 = load i32, i32* %15
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %90
75: ; preds = %65
%76 = load i32, i32* @stderr
%77 = load i32, i32* @AF_INET
%78 = load i32, i32* @INET_ADDRSTRLEN
%79 = call i8* @inet_ntop(i32 %77, i32* %6, i8* %20, i32 %78)
%80 = call i32 (i32, i8*, ...) @fprintf(i32 %76, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %79)
%81 = load i32, i32* @stderr
%82 = load i32, i32* @AF_INET
%83 = load i32, i32* @INET_ADDRSTRLEN
%84 = call i8* @inet_ntop(i32 %82, i32* %7, i8* %23, i32 %83)
%85 = call i32 (i32, i8*, ...) @fprintf(i32 %81, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %84)
%86 = load i32, i32* @stderr
%87 = load i32, i32* %8
%88 = load i32, i32* %8
%89 = call i32 (i32, i8*, ...) @fprintf(i32 %86, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i32 %87, i32 %88)
br label %90
90: ; preds = %75, %65
%91 = load i32, i32* @AF_INET
%92 = load i32, i32* @INET_ADDRSTRLEN
%93 = call i8* @inet_ntop(i32 %91, i32* %9, i8* %26, i32 %92)
%94 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %93)
store i32 0, i32* %3
store i32 1, i32* %16
br label %95
95: ; preds = %90, %60, %29
%96 = load i8*, i8** %10
%97 = load i32, i32* %3
ret i32 %97
}

LLVM IR (-O2):
@INET_ADDRSTRLEN = global i32 0
@.str = [6 x i8] c"m:k:v\00"
@optarg = global i8* null
@stderr = global i32 0
@.str.1 = [20 x i8] c"Invalid option: %c\0A\00"
@optind = global i64 0
@.str.2 = [14 x i8] c"Using ip: %s\0A\00"
@AF_INET = global i32 0
@.str.3 = [19 x i8] c"Using netmask: %s\0A\00"
@.str.4 = [24 x i8] c"Using key: 0x%.4X (%u)\0A\00"
@.str.5 = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%9 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%10 = bitcast i32* %6 to i8*
%11 = load i32, i32* @INET_ADDRSTRLEN
%12 = zext i32 %11 to i64
%13 = tail call i8* @llvm.stacksave()
%14 = alloca i8, i64 %12
%15 = load i32, i32* @INET_ADDRSTRLEN
%16 = zext i32 %15 to i64
%17 = alloca i8, i64 %16
%18 = alloca i8, i64 %16
%19 = icmp eq i32 %0, 1
br i1 %19, label %20, label %28
20: ; preds = %2
%21 = load i8*, i8** %1
%22 = tail call i32 @usage(i8* %21)
br label %74
23: ; preds = %38, %40
%24 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
switch i32 %24, label %40 [
i32 -1, label %43
i32 109, label %25
i32 107, label %32
i32 118, label %38
]
25: ; preds = %23
%26 = load i8*, i8** @optarg
%27 = tail call i32 @inet_addr(i8* %26)
br label %28
28: ; preds = %2, %25
%29 = phi i32 [ %27, %25 ], [ 0, %2 ]
%30 = phi i32 [ %36, %25 ], [ 0, %2 ]
%31 = phi i32 [ %39, %25 ], [ 0, %2 ]
br label %35
32: ; preds = %23
%33 = load i8*, i8** @optarg
%34 = tail call i32 @strtoul(i8* nocapture %33, i32* null, i32 10)
br label %35
35: ; preds = %28, %32
%36 = phi i32 [ %30, %28 ], [ %34, %32 ]
%37 = phi i32 [ %31, %28 ], [ %39, %32 ]
br label %38
38: ; preds = %23, %35
%39 = phi i32 [ %37, %35 ], [ 1, %23 ]
br label %23
40: ; preds = %23
%41 = load i32, i32* @stderr
%42 = tail call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %24)
br label %23
43: ; preds = %23
store i32 %36, i32* %5
store i32 %29, i32* %4
%44 = load i64, i64* @optind
%45 = getelementptr inbounds i8*, i8** %1, i64 %44
%46 = load i8*, i8** %45
%47 = icmp eq i8* %46, null
br i1 %47, label %48, label %51
48: ; preds = %43
%49 = load i8*, i8** %1
%50 = tail call i32 @usage(i8* %49)
br label %74
51: ; preds = %43
%52 = tail call i32 @inet_addr(i8* %46)
store i32 %52, i32* %3
%53 = call i32 @anonip(i32 %52, i32* %4, i32* %5)
store i32 %53, i32* %6
%54 = icmp eq i32 %39, 0
br i1 %54, label %69, label %55
55: ; preds = %51
%56 = load i32, i32* @stderr
%57 = load i32, i32* @AF_INET
%58 = load i32, i32* @INET_ADDRSTRLEN
%59 = call i8* @inet_ntop(i32 %57, i32* %3, i8* %14, i32 %58)
%60 = call i32 (i32, i8*, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %59)
%61 = load i32, i32* @stderr
%62 = load i32, i32* @AF_INET
%63 = load i32, i32* @INET_ADDRSTRLEN
%64 = call i8* @inet_ntop(i32 %62, i32* %4, i8* %17, i32 %63)
%65 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %64)
%66 = load i32, i32* @stderr
%67 = load i32, i32* %5
%68 = call i32 (i32, i8*, ...) @fprintf(i32 %66, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i32 %67, i32 %67)
br label %69
69: ; preds = %55, %51
%70 = load i32, i32* @AF_INET
%71 = load i32, i32* @INET_ADDRSTRLEN
%72 = call i8* @inet_ntop(i32 %70, i32* %6, i8* %18, i32 %71)
%73 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %72)
br label %74
74: ; preds = %69, %48, %20
%75 = phi i32 [ 1, %20 ], [ 0, %69 ], [ 1, %48 ]
ret i32 %75
}