#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_2__ TYPE_1__;

/* Type definitions */
typedef int uint8_t;
typedef void *uint32_t;
struct TYPE_2__ {
  scalar_t__ s_addr;
};
struct sockaddr_in {
  TYPE_1__ sin_addr;
};
struct hostent {
  scalar_t__ h_addrtype;
  char *h_name;
  scalar_t__ *h_addr_list;
  int /*<<< orphan*/ h_length;
};

/* Variables and functions */
scalar_t__ AF_INET6;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ get_myaddress(struct sockaddr_in *);
struct hostent *gethostbyaddr(scalar_t__, int /*<<< orphan*/, scalar_t__);
struct hostent *gethostbyname(char *);
int /*<<< orphan*/ gethostname(char *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  struct hostent *myhost;
  struct hostent *myhost_byaddr;
  struct sockaddr_in my_addr;
  union {
    uint32_t addr;
    uint8_t parts[4];
  } myu;
  char name[1024];
  gethostname(name, 1024);
  printf("hostname is  <%s> (as reported by gethostname)\n", name);
  myhost = gethostbyname(name);
  if (myhost == NULL) {
    fprintf(stderr, "Cannot 'gethostbyname (hostname --> @IP)' check your "
                    "/etc/hosts file.\n");
    exit(1);
  }
  myu.addr = *((uint32_t *)myhost->h_addr_list[0]);
  printf("@IP returned is <%d.%d.%d.%d> <addrtype= %s> (as reported by "
         "gethostbyname)\n",
         myu.parts[0], myu.parts[1], myu.parts[2], myu.parts[3],
         (myhost->h_addrtype == AF_INET6 ? "AF_INET6" : "AF_INET"));
  myhost_byaddr = gethostbyaddr(myhost->h_addr_list[0], myhost->h_length,
                                myhost->h_addrtype);
  if (myhost_byaddr == NULL) {
    fprintf(stderr, "Cannot 'gethostbyaddr (@IP --> hostname)' check your "
                    "/etc/hosts file\n");
    exit(1);
  }
  myu.addr = *((uint32_t *)myhost_byaddr->h_addr_list[0]);
  printf("hostname returned is <%s> for @IP <%d.%d.%d.%d> <addrtype= %s> (as "
         "reported by gethostbyaddr)\n",
         myhost_byaddr->h_name, myu.parts[0], myu.parts[1], myu.parts[2],
         myu.parts[3],
         (myhost_byaddr->h_addrtype == AF_INET6 ? "AF_INET6" : "AF_INET"));
  get_myaddress(&my_addr);
  myu.addr = (uint32_t)(my_addr.sin_addr.s_addr);
  printf(
      "@IP returned is <%d.%d.%d.%d> (as returned by get_myaddress (rpclib))\n",
      myu.parts[0], myu.parts[1], myu.parts[2], myu.parts[3]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x450,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x440(%rbp),%rdi
mov    $0x400,%esi
call   1070 <gethostname@plt>
lea    -0x440(%rbp),%rsi
lea    0xe58(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x440(%rbp),%rdi
call   1050 <gethostbyname@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    11e9 <main+0x79>
mov    0x2e07(%rip),%rax
mov    (%rax),%edi
lea    0xe56(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rax
mov    (%rax),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%esi
mov    -0x34(%rbp),%edx
mov    -0x30(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
mov    0x2dd2(%rip),%rax
mov    (%rax),%r10
lea    0xead(%rip),%r9
lea    0xe9d(%rip),%rax
cmp    %r10,%rdi
cmove  %rax,%r9
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rax
mov    (%rax),%rdi
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%esi
mov    -0x18(%rbp),%rax
mov    (%rax),%rdx
call   1080 <gethostbyaddr@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1288 <main+0x118>
mov    0x2d68(%rip),%rax
mov    (%rax),%edi
lea    0xe5c(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x20(%rbp),%rax
mov    0x10(%rax),%rax
mov    (%rax),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%rax
mov    0x8(%rax),%rsi
mov    -0x38(%rbp),%edx
mov    -0x34(%rbp),%ecx
mov    -0x30(%rbp),%r8d
mov    -0x2c(%rbp),%r9d
mov    -0x20(%rbp),%rax
mov    (%rax),%r10
mov    0x2d2a(%rip),%rax
mov    (%rax),%r11
lea    0xe05(%rip),%rax
lea    0xdf5(%rip),%rdi
cmp    %r11,%r10
cmove  %rdi,%rax
lea    0xe3e(%rip),%rdi
mov    %rax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x28(%rbp),%rdi
call   1040 <get_myaddress@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%esi
mov    -0x34(%rbp),%edx
mov    -0x30(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x450,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x418,%rsp
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x400,%esi
call   1070 <gethostname@plt>
lea    0xe69(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1050 <gethostbyname@plt>
test   %rax,%rax
je     1273 <main+0x103>
mov    %rax,%rbx
mov    (%rax),%rax
mov    0x10(%rbx),%rcx
mov    (%rcx),%rcx
mov    (%rcx),%rsi
mov    %rsi,%rdx
shr    $0x20,%rdx
mov    0x2e18(%rip),%r15
cmp    (%r15),%rax
lea    0xeea(%rip),%r12
lea    0xeec(%rip),%r14
mov    %r14,%r9
cmove  %r12,%r9
lea    0xe88(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    (%rbx),%rdx
mov    0x10(%rbx),%rax
mov    (%rax),%rdi
mov    0x18(%rbx),%esi
call   1080 <gethostbyaddr@plt>
test   %rax,%rax
je     1285 <main+0x115>
mov    0x10(%rax),%rcx
mov    (%rcx),%rcx
mov    (%rcx),%rdx
mov    (%rax),%rdi
mov    0x8(%rax),%rsi
mov    %rdx,%rcx
shr    $0x20,%rcx
cmp    (%r15),%rdi
cmove  %r12,%r14
mov    %r14,(%rsp)
lea    0xee4(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x8(%rsp),%rdi
call   1040 <get_myaddress@plt>
mov    0x8(%rsp),%rsi
mov    %rsi,%rdx
shr    $0x20,%rdx
lea    0xf1f(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x418,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret
mov    0x2d5e(%rip),%rax
mov    (%rax),%edi
lea    0xdad(%rip),%rsi
jmp    1295 <main+0x125>
mov    0x2d4c(%rip),%rax
mov    (%rax),%edi
lea    0xe40(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
%struct.hostent = type { i64, i8*, i64*, i32 }
%struct.sockaddr_in = type { %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i64 }
%union.anon = type { i8*, [8 x i8] }
@.str = [48 x i8] c"hostname is <%s> (as reported by gethostname)\0A\00"
@stderr = global i32 0
@.str.1 = [71 x i8] c"Cannot 'gethostbyname (hostname --> @IP)' check your /etc/hosts file.\0A\00"
@.str.2 = [77 x i8] c"@IP returned is <%d.%d.%d.%d> <addrtype= %s> (as reported by gethostbyname)\0A\00"
@AF_INET6 = global i64 0
@.str.3 = [9 x i8] c"AF_INET6\00"
@.str.4 = [8 x i8] c"AF_INET\00"
@.str.5 = [70 x i8] c"Cannot 'gethostbyaddr (@IP --> hostname)' check your /etc/hosts file\0A\00"
@.str.6 = [95 x i8] c"hostname returned is <%s> for @IP <%d.%d.%d.%d> <addrtype= %s> (as reported by gethostbyaddr)\0A\00"
@.str.7 = [71 x i8] c"@IP returned is <%d.%d.%d.%d> (as returned by get_myaddress (rpclib))\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 %struct.sockaddr_in
%9 = alloca %union.anon
%10 = alloca [1024 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%12 = call i32 @gethostname(i8* %11, i32 1024)
%13 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* %13)
%15 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%16 = call %struct.hostent* @gethostbyname(i8* %15)
store %struct.hostent* %16, %struct.hostent** %6
%17 = load %struct.hostent*, %struct.hostent** %6
%18 = icmp eq %struct.hostent* %17, null
br i1 %18, label %19, label %23
19: ; preds = %2
%20 = load i32, i32* @stderr
%21 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.1, i64 0, i64 0))
%22 = call i32 @exit(i32 1)
unreachable
23: ; preds = %2
%24 = load %struct.hostent*, %struct.hostent** %6
%25 = getelementptr inbounds %struct.hostent, %struct.hostent* %24, i32 0, i32 2
%26 = load i64*, i64** %25
%27 = getelementptr inbounds i64, i64* %26, i64 0
%28 = load i64, i64* %27
%29 = inttoptr i64 %28 to i8**
%30 = load i8*, i8** %29
%31 = bitcast %union.anon* %9 to i8**
store i8* %30, i8** %31
%32 = bitcast %union.anon* %9 to [4 x i32]*
%33 = getelementptr inbounds [4 x i32], [4 x i32]* %32, i64 0, i64 0
%34 = load i32, i32* %33
%35 = bitcast %union.anon* %9 to [4 x i32]*
%36 = getelementptr inbounds [4 x i32], [4 x i32]* %35, i64 0, i64 1
%37 = load i32, i32* %36
%38 = bitcast %union.anon* %9 to [4 x i32]*
%39 = getelementptr inbounds [4 x i32], [4 x i32]* %38, i64 0, i64 2
%40 = load i32, i32* %39
%41 = bitcast %union.anon* %9 to [4 x i32]*
%42 = getelementptr inbounds [4 x i32], [4 x i32]* %41, i64 0, i64 3
%43 = load i32, i32* %42
%44 = load %struct.hostent*, %struct.hostent** %6
%45 = getelementptr inbounds %struct.hostent, %struct.hostent* %44, i32 0, i32 0
%46 = load i64, i64* %45
%47 = load i64, i64* @AF_INET6
%48 = icmp eq i64 %46, %47
%49 = zext i1 %48 to i64
%50 = select i1 %48, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0)
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.2, i64 0, i64 0), i32 %34, i32 %37, i32 %40, i32 %43, i8* %50)
%52 = load %struct.hostent*, %struct.hostent** %6
%53 = getelementptr inbounds %struct.hostent, %struct.hostent* %52, i32 0, i32 2
%54 = load i64*, i64** %53
%55 = getelementptr inbounds i64, i64* %54, i64 0
%56 = load i64, i64* %55
%57 = load %struct.hostent*, %struct.hostent** %6
%58 = getelementptr inbounds %struct.hostent, %struct.hostent* %57, i32 0, i32 3
%59 = load i32, i32* %58
%60 = load %struct.hostent*, %struct.hostent** %6
%61 = getelementptr inbounds %struct.hostent, %struct.hostent* %60, i32 0, i32 0
%62 = load i64, i64* %61
%63 = call %struct.hostent* @gethostbyaddr(i64 %56, i32 %59, i64 %62)
store %struct.hostent* %63, %struct.hostent** %7
%64 = load %struct.hostent*, %struct.hostent** %7
%65 = icmp eq %struct.hostent* %64, null
br i1 %65, label %66, label %70
66: ; preds = %23
%67 = load i32, i32* @stderr
%68 = call i32 @fprintf(i32 %67, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.5, i64 0, i64 0))
%69 = call i32 @exit(i32 1)
unreachable
70: ; preds = %23
%71 = load %struct.hostent*, %struct.hostent** %7
%72 = getelementptr inbounds %struct.hostent, %struct.hostent* %71, i32 0, i32 2
%73 = load i64*, i64** %72
%74 = getelementptr inbounds i64, i64* %73, i64 0
%75 = load i64, i64* %74
%76 = inttoptr i64 %75 to i8**
%77 = load i8*, i8** %76
%78 = bitcast %union.anon* %9 to i8**
store i8* %77, i8** %78
%79 = load %struct.hostent*, %struct.hostent** %7
%80 = getelementptr inbounds %struct.hostent, %struct.hostent* %79, i32 0, i32 1
%81 = load i8*, i8** %80
%82 = bitcast %union.anon* %9 to [4 x i32]*
%83 = getelementptr inbounds [4 x i32], [4 x i32]* %82, i64 0, i64 0
%84 = load i32, i32* %83
%85 = bitcast %union.anon* %9 to [4 x i32]*
%86 = getelementptr inbounds [4 x i32], [4 x i32]* %85, i64 0, i64 1
%87 = load i32, i32* %86
%88 = bitcast %union.anon* %9 to [4 x i32]*
%89 = getelementptr inbounds [4 x i32], [4 x i32]* %88, i64 0, i64 2
%90 = load i32, i32* %89
%91 = bitcast %union.anon* %9 to [4 x i32]*
%92 = getelementptr inbounds [4 x i32], [4 x i32]* %91, i64 0, i64 3
%93 = load i32, i32* %92
%94 = load %struct.hostent*, %struct.hostent** %7
%95 = getelementptr inbounds %struct.hostent, %struct.hostent* %94, i32 0, i32 0
%96 = load i64, i64* %95
%97 = load i64, i64* @AF_INET6
%98 = icmp eq i64 %96, %97
%99 = zext i1 %98 to i64
%100 = select i1 %98, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0)
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.6, i64 0, i64 0), i8* %81, i32 %84, i32 %87, i32 %90, i32 %93, i8* %100)
%102 = call i32 @get_myaddress(%struct.sockaddr_in* %8)
%103 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %8, i32 0, i32 0
%104 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %103, i32 0, i32 0
%105 = load i64, i64* %104
%106 = inttoptr i64 %105 to i8*
%107 = bitcast %union.anon* %9 to i8**
store i8* %106, i8** %107
%108 = bitcast %union.anon* %9 to [4 x i32]*
%109 = getelementptr inbounds [4 x i32], [4 x i32]* %108, i64 0, i64 0
%110 = load i32, i32* %109
%111 = bitcast %union.anon* %9 to [4 x i32]*
%112 = getelementptr inbounds [4 x i32], [4 x i32]* %111, i64 0, i64 1
%113 = load i32, i32* %112
%114 = bitcast %union.anon* %9 to [4 x i32]*
%115 = getelementptr inbounds [4 x i32], [4 x i32]* %114, i64 0, i64 2
%116 = load i32, i32* %115
%117 = bitcast %union.anon* %9 to [4 x i32]*
%118 = getelementptr inbounds [4 x i32], [4 x i32]* %117, i64 0, i64 3
%119 = load i32, i32* %118
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.7, i64 0, i64 0), i32 %110, i32 %113, i32 %116, i32 %119)
ret i32 0
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i64 }
%struct.hostent = type { i64, i8*, i64*, i32 }
@.str = [48 x i8] c"hostname is <%s> (as reported by gethostname)\0A\00"
@stderr = global i32 0
@.str.1 = [71 x i8] c"Cannot 'gethostbyname (hostname --> @IP)' check your /etc/hosts file.\0A\00"
@.str.2 = [77 x i8] c"@IP returned is <%d.%d.%d.%d> <addrtype= %s> (as reported by gethostbyname)\0A\00"
@AF_INET6 = global i64 0
@.str.3 = [9 x i8] c"AF_INET6\00"
@.str.4 = [8 x i8] c"AF_INET\00"
@.str.5 = [70 x i8] c"Cannot 'gethostbyaddr (@IP --> hostname)' check your /etc/hosts file\0A\00"
@.str.6 = [95 x i8] c"hostname returned is <%s> for @IP <%d.%d.%d.%d> <addrtype= %s> (as reported by gethostbyaddr)\0A\00"
@.str.7 = [71 x i8] c"@IP returned is <%d.%d.%d.%d> (as returned by get_myaddress (rpclib))\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca %struct.sockaddr_in
%4 = alloca [1024 x i8]
%5 = bitcast %struct.sockaddr_in* %3 to i8*
%6 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%7 = call i32 @gethostname(i8* %6, i32 1024)
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* %6)
%9 = call %struct.hostent* @gethostbyname(i8* %6)
%10 = icmp eq %struct.hostent* %9, null
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load i32, i32* @stderr
%13 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 @exit(i32 1)
unreachable
15: ; preds = %2
%16 = getelementptr inbounds %struct.hostent, %struct.hostent* %9, i64 0, i32 2
%17 = load i64*, i64** %16
%18 = load i64, i64* %17
%19 = inttoptr i64 %18 to i8**
%20 = load i8*, i8** %19
%21 = ptrtoint i8* %20 to i64
%22 = trunc i64 %21 to i32
%23 = lshr i64 %21, 32
%24 = trunc i64 %23 to i32
%25 = getelementptr inbounds %struct.hostent, %struct.hostent* %9, i64 0, i32 0
%26 = load i64, i64* %25
%27 = load i64, i64* @AF_INET6
%28 = icmp eq i64 %26, %27
%29 = select i1 %28, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str.2, i64 0, i64 0), i32 %22, i32 %24, i32 undef, i32 undef, i8* %29)
%31 = load i64*, i64** %16
%32 = load i64, i64* %31
%33 = getelementptr inbounds %struct.hostent, %struct.hostent* %9, i64 0, i32 3
%34 = load i32, i32* %33
%35 = load i64, i64* %25
%36 = call %struct.hostent* @gethostbyaddr(i64 %32, i32 %34, i64 %35)
%37 = icmp eq %struct.hostent* %36, null
br i1 %37, label %38, label %42
38: ; preds = %15
%39 = load i32, i32* @stderr
%40 = call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.5, i64 0, i64 0))
%41 = call i32 @exit(i32 1)
unreachable
42: ; preds = %15
%43 = getelementptr inbounds %struct.hostent, %struct.hostent* %36, i64 0, i32 2
%44 = load i64*, i64** %43
%45 = load i64, i64* %44
%46 = inttoptr i64 %45 to i8**
%47 = load i8*, i8** %46
%48 = getelementptr inbounds %struct.hostent, %struct.hostent* %36, i64 0, i32 1
%49 = load i8*, i8** %48
%50 = ptrtoint i8* %47 to i64
%51 = trunc i64 %50 to i32
%52 = lshr i64 %50, 32
%53 = trunc i64 %52 to i32
%54 = getelementptr inbounds %struct.hostent, %struct.hostent* %36, i64 0, i32 0
%55 = load i64, i64* %54
%56 = load i64, i64* @AF_INET6
%57 = icmp eq i64 %55, %56
%58 = select i1 %57, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0)
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @.str.6, i64 0, i64 0), i8* %49, i32 %51, i32 %53, i32 undef, i32 undef, i8* %58)
%60 = call i32 @get_myaddress(%struct.sockaddr_in* %3)
%61 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0, i32 0
%62 = load i64, i64* %61
%63 = trunc i64 %62 to i32
%64 = lshr i64 %62, 32
%65 = trunc i64 %64 to i32
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str.7, i64 0, i64 0), i32 %63, i32 %65, i32 undef, i32 undef)
ret i32 0
}