#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 */

/* Variables and functions */
int /*<<< orphan*/ getlocalhostip();
long inet_addr(char *);
int inet_aton(char *, long *);
long inet_network(char *);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  char *ip = 0;
  long ret = 0;
  int r = 0;
  getlocalhostip();
  r = ret = 0;
  ip = "12.34.56.78";
  printf("\nIP实际是:%s\n", ip);
  r = inet_aton(ip, &ret);
  printf("aton\tret = %11d,\tIP = %8X\n", r, ret);
  ret = inet_addr(ip);
  printf("addr\tret = %11d,\tIP = %8X\n", ret, ret);
  ret = inet_network(ip);
  printf("network\tret = %11d,\tIP = %8X\n", ret, ret);
  r = ret = 0;
  ip = "255.255.255.255";
  printf("\nIP实际是:%s\n", ip);
  r = inet_aton(ip, &ret);
  printf("aton\tret = %11d,\tIP = %X\n", r, ret);
  ret = inet_addr(ip);
  printf("addr\tret = %11d,\tIP = %X\n", ret, ret);
  ret = inet_network(ip);
  printf("network\tret = %11d,\tIP = %X\n", ret, ret);
  r = ret = 0;
  ip = "0.0.0.0";
  printf("\nIP实际是:%s\n", ip);
  r = inet_aton(ip, &ret);
  printf("aton\tret = %11d,\tIP = %X\n", r, ret);
  ret = inet_addr(ip);
  printf("addr\tret = %11d,\tIP = %X\n", ret, ret);
  ret = inet_network(ip);
  printf("network\tret = %11d,\tIP = %X\n", ret, ret);
  r = ret = 0;
  ip = "255.255.";
  printf("\nIP实际是:%s\n", ip);
  r = inet_aton(ip, &ret);
  printf("aton\tret = %11d,\tIP = %X\n", r, ret);
  ret = inet_addr(ip);
  printf("addr\tret = %11d,\tIP = %X\n", ret, ret);
  ret = inet_network(ip);
  printf("network\tret = %11d,\tIP = %X\n", ret, ret);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    $0x0,%al
call   1040 <getlocalhostip@plt>
movq   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
lea    0xe66(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xe63(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1070 <inet_aton@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%rdx
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1060 <inet_addr@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xe47(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <inet_network@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
lea    0xe40(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1070 <inet_aton@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%rdx
lea    0xe1c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1060 <inet_addr@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xe13(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <inet_network@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
lea    0xe0a(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xd35(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1070 <inet_aton@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%rdx
lea    0xd85(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1060 <inet_addr@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xd7c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <inet_network@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xd73(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movq   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
lea    0xd7b(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xc9e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1070 <inet_aton@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%rdx
lea    0xcee(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1060 <inet_addr@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xce5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <inet_network@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xcdc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %eax,%eax
call   1040 <getlocalhostip@plt>
movq   $0x0,(%rsp)
lea    0xe9b(%rip),%r14
lea    0xe88(%rip),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rsp,%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1070 <inet_aton@plt>
mov    (%rsp),%rdx
lea    0xe7f(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1060 <inet_addr@plt>
mov    %rax,(%rsp)
lea    0xe7e(%rip),%rdi
mov    %rax,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1030 <inet_network@plt>
mov    %rax,(%rsp)
lea    0xe79(%rip),%rdi
mov    %rax,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
movq   $0x0,(%rsp)
lea    0xe7b(%rip),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1070 <inet_aton@plt>
mov    (%rsp),%rdx
lea    0xe68(%rip),%r12
mov    %r12,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1060 <inet_addr@plt>
mov    %rax,(%rsp)
lea    0xe63(%rip),%r13
mov    %r13,%rdi
mov    %rax,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1030 <inet_network@plt>
mov    %rax,(%rsp)
lea    0xe5a(%rip),%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
movq   $0x0,(%rsp)
lea    0xe58(%rip),%rbp
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
call   1070 <inet_aton@plt>
mov    (%rsp),%rdx
mov    %r12,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
call   1060 <inet_addr@plt>
mov    %rax,(%rsp)
mov    %r13,%rdi
mov    %rax,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
call   1030 <inet_network@plt>
mov    %rax,(%rsp)
mov    %rbx,%rdi
mov    %rax,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
movq   $0x0,(%rsp)
lea    0xdf1(%rip),%rbp
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
call   1070 <inet_aton@plt>
mov    (%rsp),%rdx
mov    %r12,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
call   1060 <inet_addr@plt>
mov    %rax,(%rsp)
mov    %r13,%rdi
mov    %rax,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
call   1030 <inet_network@plt>
mov    %rax,(%rsp)
mov    %rbx,%rdi
mov    %rax,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"12.34.56.78\00"
@.str.1 = [17 x i8] c"\0AIP\E5\AE\9E\E9\99\85\E6\98\AF:%s\0A\00"
@.str.2 = [27 x i8] c"aton\09ret = %11d,\09IP = %8X\0A\00"
@.str.3 = [27 x i8] c"addr\09ret = %11d,\09IP = %8X\0A\00"
@.str.4 = [30 x i8] c"network\09ret = %11d,\09IP = %8X\0A\00"
@.str.5 = [16 x i8] c"255.255.255.255\00"
@.str.6 = [26 x i8] c"aton\09ret = %11d,\09IP = %X\0A\00"
@.str.7 = [26 x i8] c"addr\09ret = %11d,\09IP = %X\0A\00"
@.str.8 = [29 x i8] c"network\09ret = %11d,\09IP = %X\0A\00"
@.str.9 = [8 x i8] c"0.0.0.0\00"
@.str.10 = [9 x i8] c"255.255.\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %6
store i64 0, i64* %7
store i32 0, i32* %8
%9 = call i32 (...) @getlocalhostip()
store i64 0, i64* %7
store i32 0, i32* %8
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8** %6
%10 = load i8*, i8** %6
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* %10)
%12 = load i8*, i8** %6
%13 = call i32 @inet_aton(i8* %12, i64* %7)
store i32 %13, i32* %8
%14 = load i32, i32* %8
%15 = load i64, i64* %7
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %14, i64 %15)
%17 = load i8*, i8** %6
%18 = call i64 @inet_addr(i8* %17)
store i64 %18, i64* %7
%19 = load i64, i64* %7
%20 = load i64, i64* %7
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i64 %19, i64 %20)
%22 = load i8*, i8** %6
%23 = call i64 @inet_network(i8* %22)
store i64 %23, i64* %7
%24 = load i64, i64* %7
%25 = load i64, i64* %7
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i64 %24, i64 %25)
store i64 0, i64* %7
store i32 0, i32* %8
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8** %6
%27 = load i8*, i8** %6
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* %27)
%29 = load i8*, i8** %6
%30 = call i32 @inet_aton(i8* %29, i64* %7)
store i32 %30, i32* %8
%31 = load i32, i32* %8
%32 = load i64, i64* %7
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 %31, i64 %32)
%34 = load i8*, i8** %6
%35 = call i64 @inet_addr(i8* %34)
store i64 %35, i64* %7
%36 = load i64, i64* %7
%37 = load i64, i64* %7
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i64 %36, i64 %37)
%39 = load i8*, i8** %6
%40 = call i64 @inet_network(i8* %39)
store i64 %40, i64* %7
%41 = load i64, i64* %7
%42 = load i64, i64* %7
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i64 %41, i64 %42)
store i64 0, i64* %7
store i32 0, i32* %8
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8** %6
%44 = load i8*, i8** %6
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* %44)
%46 = load i8*, i8** %6
%47 = call i32 @inet_aton(i8* %46, i64* %7)
store i32 %47, i32* %8
%48 = load i32, i32* %8
%49 = load i64, i64* %7
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 %48, i64 %49)
%51 = load i8*, i8** %6
%52 = call i64 @inet_addr(i8* %51)
store i64 %52, i64* %7
%53 = load i64, i64* %7
%54 = load i64, i64* %7
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i64 %53, i64 %54)
%56 = load i8*, i8** %6
%57 = call i64 @inet_network(i8* %56)
store i64 %57, i64* %7
%58 = load i64, i64* %7
%59 = load i64, i64* %7
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i64 %58, i64 %59)
store i64 0, i64* %7
store i32 0, i32* %8
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8** %6
%61 = load i8*, i8** %6
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* %61)
%63 = load i8*, i8** %6
%64 = call i32 @inet_aton(i8* %63, i64* %7)
store i32 %64, i32* %8
%65 = load i32, i32* %8
%66 = load i64, i64* %7
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 %65, i64 %66)
%68 = load i8*, i8** %6
%69 = call i64 @inet_addr(i8* %68)
store i64 %69, i64* %7
%70 = load i64, i64* %7
%71 = load i64, i64* %7
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i64 %70, i64 %71)
%73 = load i8*, i8** %6
%74 = call i64 @inet_network(i8* %73)
store i64 %74, i64* %7
%75 = load i64, i64* %7
%76 = load i64, i64* %7
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i64 %75, i64 %76)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"12.34.56.78\00"
@.str.1 = [17 x i8] c"\0AIP\E5\AE\9E\E9\99\85\E6\98\AF:%s\0A\00"
@.str.2 = [27 x i8] c"aton\09ret = %11d,\09IP = %8X\0A\00"
@.str.3 = [27 x i8] c"addr\09ret = %11d,\09IP = %8X\0A\00"
@.str.4 = [30 x i8] c"network\09ret = %11d,\09IP = %8X\0A\00"
@.str.5 = [16 x i8] c"255.255.255.255\00"
@.str.6 = [26 x i8] c"aton\09ret = %11d,\09IP = %X\0A\00"
@.str.7 = [26 x i8] c"addr\09ret = %11d,\09IP = %X\0A\00"
@.str.8 = [29 x i8] c"network\09ret = %11d,\09IP = %X\0A\00"
@.str.9 = [8 x i8] c"0.0.0.0\00"
@.str.10 = [9 x i8] c"255.255.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i64
%4 = bitcast i64* %3 to i8*
%5 = tail call i32 (...) @getlocalhostip()
store i64 0, i64* %3
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @inet_aton(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i64* %3)
%8 = load i64, i64* %3
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %7, i64 %8)
%10 = call i64 @inet_addr(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
store i64 %10, i64* %3
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i64 %10, i64 %10)
%12 = call i64 @inet_network(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
store i64 %12, i64* %3
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i64 %12, i64 %12)
store i64 0, i64* %3
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%15 = call i32 @inet_aton(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i64* %3)
%16 = load i64, i64* %3
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 %15, i64 %16)
%18 = call i64 @inet_addr(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
store i64 %18, i64* %3
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i64 %18, i64 %18)
%20 = call i64 @inet_network(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
store i64 %20, i64* %3
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i64 %20, i64 %20)
store i64 0, i64* %3
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%23 = call i32 @inet_aton(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i64* %3)
%24 = load i64, i64* %3
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 %23, i64 %24)
%26 = call i64 @inet_addr(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
store i64 %26, i64* %3
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i64 %26, i64 %26)
%28 = call i64 @inet_network(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
store i64 %28, i64* %3
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i64 %28, i64 %28)
store i64 0, i64* %3
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%31 = call i32 @inet_aton(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i64* %3)
%32 = load i64, i64* %3
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 %31, i64 %32)
%34 = call i64 @inet_addr(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
store i64 %34, i64* %3
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i64 %34, i64 %34)
%36 = call i64 @inet_network(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
store i64 %36, i64* %3
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i64 %36, i64 %36)
ret i32 0
}