#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_6__ TYPE_3__;
typedef struct TYPE_5__ TYPE_2__;
typedef struct TYPE_4__ TYPE_1__;

/* Type definitions */
struct TYPE_6__ {
  int s_addr;
};
struct sockaddr_in {
  TYPE_3__ sin_addr;
};
struct TYPE_5__ {
  scalar_t__ sa_family;
};
struct TYPE_4__ {
  scalar_t__ ifcu_buf;
};
struct ifreq {
  int ifc_len;
  int /*<<< orphan*/ ifr_name;
  int /*<<< orphan*/ ifr_broadaddr;
  TYPE_2__ ifr_addr;
  TYPE_1__ ifc_ifcu;
};
struct ifconf {
  int ifc_len;
  int /*<<< orphan*/ ifr_name;
  int /*<<< orphan*/ ifr_broadaddr;
  TYPE_2__ ifr_addr;
  TYPE_1__ ifc_ifcu;
};
typedef int /*<<< orphan*/ ifr;
typedef scalar_t__ caddr_t;

/* Variables and functions */
scalar_t__ AF_INET;
int /*<<< orphan*/ PF_INET;
int /*<<< orphan*/ SIOCGIFADDR;
int /*<<< orphan*/ SIOCGIFBRDADDR;
int /*<<< orphan*/ SIOCGIFCONF;
int /*<<< orphan*/ SOCK_DGRAM;
int /*<<< orphan*/ close(int);
scalar_t__ ioctl(int, int /*<<< orphan*/, struct ifreq *);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ sprintf(char *, char *, int, int, int, int);
int /*<<< orphan*/ strcmp(int /*<<< orphan*/, char *);
void get_IP_conf(char intf[5], char intf_addr[16], char intf_bcast[16]) {
  struct ifconf ifc;
  struct ifreq ifr[10];
  int sd, ifc_num, addr, bcast, mask, network, i;
  sd = socket(PF_INET, SOCK_DGRAM, 0);
  if (sd > 0) {
    ifc.ifc_len = sizeof(ifr);
    ifc.ifc_ifcu.ifcu_buf = (caddr_t)ifr;
    if (ioctl(sd, SIOCGIFCONF, &ifc) == 0) {
      ifc_num = ifc.ifc_len / sizeof(struct ifreq);
      for (i = 0; i < ifc_num; ++i) {
        if (ifr[i].ifr_addr.sa_family != AF_INET) {
          continue;
        }
        if (ioctl(sd, SIOCGIFADDR, &ifr[i]) == 0) {
          addr = ((struct sockaddr_in *)(&ifr[i].ifr_addr))->sin_addr.s_addr;
        }
        if (ioctl(sd, SIOCGIFBRDADDR, &ifr[i]) == 0) {
          bcast =
              ((struct sockaddr_in *)(&ifr[i].ifr_broadaddr))->sin_addr.s_addr;
        }
        if (!strcmp(ifr[i].ifr_name, intf)) {
          sprintf(intf_addr, "%d.%d.%d.%d\0", (addr & 0xFF), (addr >> 8 & 0xFF),
                  (addr >> 16 & 0xFF), (addr >> 24 & 0xFF));
          sprintf(intf_bcast, "%d.%d.%d.%d\0", (bcast & 0xFF),
                  (bcast >> 8 & 0xFF), (bcast >> 16 & 0xFF),
                  (bcast >> 24 & 0xFF));
        }
      }
    }
    close(sd);
  }
}


x86 assembly (clang, -O0):
<get_IP_conf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    0x2e52(%rip),%rax
mov    (%rax),%edi
mov    0x2e61(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1070 <socket@plt>
mov    %eax,-0x184(%rbp)
cmpl   $0x0,-0x184(%rbp)
jle    13b2 <get_IP_conf+0x262>
movl   $0x140,-0x38(%rbp)
lea    -0x180(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x184(%rbp),%edi
mov    0x2e06(%rip),%rax
mov    (%rax),%esi
lea    -0x38(%rbp),%rdx
call   1030 <ioctl@plt>
cmp    $0x0,%rax
jne    13a7 <get_IP_conf+0x257>
movslq -0x38(%rbp),%rax
shr    $0x5,%rax
mov    %eax,-0x188(%rbp)
movl   $0x0,-0x19c(%rbp)
mov    -0x19c(%rbp),%eax
cmp    -0x188(%rbp),%eax
jge    13a2 <get_IP_conf+0x252>
movslq -0x19c(%rbp),%rcx
lea    -0x180(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
mov    0x10(%rax),%rax
mov    0x2dcf(%rip),%rcx
cmp    (%rcx),%rax
je     121f <get_IP_conf+0xcf>
jmp    138e <get_IP_conf+0x23e>
mov    -0x184(%rbp),%edi
mov    0x2dbc(%rip),%rax
mov    (%rax),%esi
movslq -0x19c(%rbp),%rax
lea    -0x180(%rbp),%rdx
shl    $0x5,%rax
add    %rax,%rdx
call   1030 <ioctl@plt>
cmp    $0x0,%rax
jne    1270 <get_IP_conf+0x120>
movslq -0x19c(%rbp),%rcx
lea    -0x180(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
mov    0x10(%rax),%eax
mov    %eax,-0x18c(%rbp)
mov    -0x184(%rbp),%edi
mov    0x2d4b(%rip),%rax
mov    (%rax),%esi
movslq -0x19c(%rbp),%rax
lea    -0x180(%rbp),%rdx
shl    $0x5,%rax
add    %rax,%rdx
call   1030 <ioctl@plt>
cmp    $0x0,%rax
jne    12c1 <get_IP_conf+0x171>
movslq -0x19c(%rbp),%rcx
lea    -0x180(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
mov    0x8(%rax),%eax
mov    %eax,-0x190(%rbp)
movslq -0x19c(%rbp),%rcx
lea    -0x180(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
mov    0x4(%rax),%edi
mov    -0x8(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1389 <get_IP_conf+0x239>
mov    -0x10(%rbp),%rdi
mov    -0x18c(%rbp),%edx
and    $0xff,%edx
mov    -0x18c(%rbp),%ecx
sar    $0x8,%ecx
and    $0xff,%ecx
mov    -0x18c(%rbp),%r8d
sar    $0x10,%r8d
and    $0xff,%r8d
mov    -0x18c(%rbp),%r9d
sar    $0x18,%r9d
and    $0xff,%r9d
lea    0xccb(%rip),%rsi
call   1060 <sprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x190(%rbp),%edx
and    $0xff,%edx
mov    -0x190(%rbp),%ecx
sar    $0x8,%ecx
and    $0xff,%ecx
mov    -0x190(%rbp),%r8d
sar    $0x10,%r8d
and    $0xff,%r8d
mov    -0x190(%rbp),%r9d
sar    $0x18,%r9d
and    $0xff,%r9d
lea    0xc7c(%rip),%rsi
call   1060 <sprintf@plt>
jmp    138e <get_IP_conf+0x23e>
mov    -0x19c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x19c(%rbp)
jmp    11df <get_IP_conf+0x8f>
jmp    13a7 <get_IP_conf+0x257>
mov    -0x184(%rbp),%edi
call   1040 <close@plt>
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_IP_conf>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x188,%rsp
mov    %rdx,0x18(%rsp)
mov    %rsi,%r15
mov    %rdi,%r14
mov    0x2e4d(%rip),%rax
mov    (%rax),%edi
mov    0x2e5c(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1070 <socket@plt>
test   %eax,%eax
jle    12d1 <get_IP_conf+0x181>
mov    %eax,%r12d
movl   $0x140,0x20(%rsp)
lea    0x40(%rsp),%rbx
mov    %rbx,0x38(%rsp)
mov    0x2e0f(%rip),%rax
mov    (%rax),%esi
lea    0x20(%rsp),%rdx
mov    %r12d,%edi
call   1030 <ioctl@plt>
test   %rax,%rax
jne    12c9 <get_IP_conf+0x179>
mov    0x20(%rsp),%r13d
cmp    $0x20,%r13d
jl     12c9 <get_IP_conf+0x179>
shr    $0x5,%r13
mov    0x2e05(%rip),%rbp
mov    %r14,0x10(%rsp)
jmp    11fe <get_IP_conf+0xae>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x20,%rbx
add    $0xffffffffffffffff,%r13
je     12c9 <get_IP_conf+0x179>
mov    0x10(%rbx),%rax
cmp    0x0(%rbp),%rax
jne    11f0 <get_IP_conf+0xa0>
mov    0x2dd9(%rip),%rax
mov    (%rax),%esi
mov    %r12d,%edi
mov    %rbx,%rdx
call   1030 <ioctl@plt>
test   %rax,%rax
jne    1228 <get_IP_conf+0xd8>
mov    0x10(%rbx),%eax
mov    %eax,0xc(%rsp)
mov    0x2d99(%rip),%rax
mov    (%rax),%esi
mov    %r12d,%edi
mov    %rbx,%rdx
call   1030 <ioctl@plt>
test   %rax,%rax
jne    1248 <get_IP_conf+0xf8>
mov    0x8(%rbx),%eax
mov    %eax,0x8(%rsp)
mov    0x4(%rbx),%edi
mov    %r14,%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
jne    11f0 <get_IP_conf+0xa0>
mov    0xc(%rsp),%edx
movzbl %dl,%ebp
movzbl %dh,%ecx
mov    %edx,%eax
shr    $0x10,%eax
movzbl %al,%r8d
mov    %edx,%eax
shr    $0x18,%eax
mov    %r15,%rdi
mov    %r15,%r14
lea    0xd84(%rip),%r15
mov    %r15,%rsi
mov    %ebp,%edx
mov    %eax,%r9d
call   1060 <sprintf@plt>
mov    0x8(%rsp),%edx
movzbl %dl,%r9d
movzbl %dh,%ecx
mov    %edx,%eax
shr    $0x10,%eax
movzbl %al,%r8d
mov    %edx,%eax
shr    $0x18,%eax
mov    0x18(%rsp),%rdi
mov    %r15,%rsi
mov    %r14,%r15
mov    0x10(%rsp),%r14
mov    0x2d27(%rip),%rbp
mov    %r9d,%edx
mov    %eax,%r9d
call   1060 <sprintf@plt>
jmp    11f0 <get_IP_conf+0xa0>
mov    %r12d,%edi
call   1040 <close@plt>
add    $0x188,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.ifconf = type { i32, i32, i32, %struct.TYPE_5__, %struct.TYPE_4__ }
%struct.TYPE_5__ = type { i64 }
%struct.TYPE_4__ = type { i64 }
%struct.ifreq = type { i32, i32, i32, %struct.TYPE_5__, %struct.TYPE_4__ }
%struct.sockaddr_in = type { %struct.TYPE_6__ }
%struct.TYPE_6__ = type { i32 }
@PF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@SIOCGIFCONF = global i32 0
@AF_INET = global i64 0
@SIOCGIFADDR = global i32 0
@SIOCGIFBRDADDR = global i32 0
@.str = [13 x i8] c"%d.%d.%d.%d\00\00"
define void @get_IP_conf(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca %struct.ifconf
%8 = alloca [10 x %struct.ifreq]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%16 = load i32, i32* @PF_INET
%17 = load i32, i32* @SOCK_DGRAM
%18 = call i32 @socket(i32 %16, i32 %17, i32 0)
store i32 %18, i32* %9
%19 = load i32, i32* %9
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %130
21: ; preds = %3
%22 = getelementptr inbounds %struct.ifconf, %struct.ifconf* %7, i32 0, i32 0
store i32 320, i32* %22
%23 = getelementptr inbounds [10 x %struct.ifreq], [10 x %struct.ifreq]* %8, i64 0, i64 0
%24 = ptrtoint %struct.ifreq* %23 to i64
%25 = getelementptr inbounds %struct.ifconf, %struct.ifconf* %7, i32 0, i32 4
%26 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %25, i32 0, i32 0
store i64 %24, i64* %26
%27 = load i32, i32* %9
%28 = load i32, i32* @SIOCGIFCONF
%29 = bitcast %struct.ifconf* %7 to %struct.ifreq*
%30 = call i64 @ioctl(i32 %27, i32 %28, %struct.ifreq* %29)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %127
32: ; preds = %21
%33 = getelementptr inbounds %struct.ifconf, %struct.ifconf* %7, i32 0, i32 0
%34 = load i32, i32* %33
%35 = sext i32 %34 to i64
%36 = udiv i64 %35, 32
%37 = trunc i64 %36 to i32
store i32 %37, i32* %10
store i32 0, i32* %15
br label %38
38: ; preds = %123, %32
%39 = load i32, i32* %15
%40 = load i32, i32* %10
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %126
42: ; preds = %38
%43 = load i32, i32* %15
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [10 x %struct.ifreq], [10 x %struct.ifreq]* %8, i64 0, i64 %44
%46 = getelementptr inbounds %struct.ifreq, %struct.ifreq* %45, i32 0, i32 3
%47 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %46, i32 0, i32 0
%48 = load i64, i64* %47
%49 = load i64, i64* @AF_INET
%50 = icmp ne i64 %48, %49
br i1 %50, label %51, label %52
51: ; preds = %42
br label %123
52: ; preds = %42
%53 = load i32, i32* %9
%54 = load i32, i32* @SIOCGIFADDR
%55 = load i32, i32* %15
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [10 x %struct.ifreq], [10 x %struct.ifreq]* %8, i64 0, i64 %56
%58 = call i64 @ioctl(i32 %53, i32 %54, %struct.ifreq* %57)
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %69
60: ; preds = %52
%61 = load i32, i32* %15
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [10 x %struct.ifreq], [10 x %struct.ifreq]* %8, i64 0, i64 %62
%64 = getelementptr inbounds %struct.ifreq, %struct.ifreq* %63, i32 0, i32 3
%65 = bitcast %struct.TYPE_5__* %64 to %struct.sockaddr_in*
%66 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %65, i32 0, i32 0
%67 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %66, i32 0, i32 0
%68 = load i32, i32* %67
store i32 %68, i32* %11
br label %69
69: ; preds = %60, %52
%70 = load i32, i32* %9
%71 = load i32, i32* @SIOCGIFBRDADDR
%72 = load i32, i32* %15
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [10 x %struct.ifreq], [10 x %struct.ifreq]* %8, i64 0, i64 %73
%75 = call i64 @ioctl(i32 %70, i32 %71, %struct.ifreq* %74)
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %86
77: ; preds = %69
%78 = load i32, i32* %15
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [10 x %struct.ifreq], [10 x %struct.ifreq]* %8, i64 0, i64 %79
%81 = getelementptr inbounds %struct.ifreq, %struct.ifreq* %80, i32 0, i32 2
%82 = bitcast i32* %81 to %struct.sockaddr_in*
%83 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %82, i32 0, i32 0
%84 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %83, i32 0, i32 0
%85 = load i32, i32* %84
store i32 %85, i32* %12
br label %86
86: ; preds = %77, %69
%87 = load i32, i32* %15
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [10 x %struct.ifreq], [10 x %struct.ifreq]* %8, i64 0, i64 %88
%90 = getelementptr inbounds %struct.ifreq, %struct.ifreq* %89, i32 0, i32 1
%91 = load i32, i32* %90
%92 = load i8*, i8** %4
%93 = call i32 @strcmp(i32 %91, i8* %92)
%94 = icmp ne i32 %93, 0
br i1 %94, label %122, label %95
95: ; preds = %86
%96 = load i8*, i8** %5
%97 = load i32, i32* %11
%98 = and i32 %97, 255
%99 = load i32, i32* %11
%100 = ashr i32 %99, 8
%101 = and i32 %100, 255
%102 = load i32, i32* %11
%103 = ashr i32 %102, 16
%104 = and i32 %103, 255
%105 = load i32, i32* %11
%106 = ashr i32 %105, 24
%107 = and i32 %106, 255
%108 = call i32 @sprintf(i8* %96, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %98, i32 %101, i32 %104, i32 %107)
%109 = load i8*, i8** %6
%110 = load i32, i32* %12
%111 = and i32 %110, 255
%112 = load i32, i32* %12
%113 = ashr i32 %112, 8
%114 = and i32 %113, 255
%115 = load i32, i32* %12
%116 = ashr i32 %115, 16
%117 = and i32 %116, 255
%118 = load i32, i32* %12
%119 = ashr i32 %118, 24
%120 = and i32 %119, 255
%121 = call i32 @sprintf(i8* %109, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %111, i32 %114, i32 %117, i32 %120)
br label %122
122: ; preds = %95, %86
br label %123
123: ; preds = %122, %51
%124 = load i32, i32* %15
%125 = add nsw i32 %124, 1
store i32 %125, i32* %15
br label %38
126: ; preds = %38
br label %127
127: ; preds = %126, %21
%128 = load i32, i32* %9
%129 = call i32 @close(i32 %128)
br label %130
130: ; preds = %127, %3
ret void
}

LLVM IR (-O2):
%struct.ifconf = type { i32, i32, i32, %struct.TYPE_5__, %struct.TYPE_4__ }
%struct.TYPE_5__ = type { i64 }
%struct.TYPE_4__ = type { i64 }
%struct.ifreq = type { i32, i32, i32, %struct.TYPE_5__, %struct.TYPE_4__ }
@PF_INET = global i32 0
@SOCK_DGRAM = global i32 0
@SIOCGIFCONF = global i32 0
@AF_INET = global i64 0
@SIOCGIFADDR = global i32 0
@SIOCGIFBRDADDR = global i32 0
@.str = [13 x i8] c"%d.%d.%d.%d\00\00"
define void @get_IP_conf(i8* %0, i8* nocapture writeonly %1, i8* nocapture writeonly %2) {
%4 = alloca %struct.ifconf
%5 = alloca [10 x %struct.ifreq]
%6 = bitcast %struct.ifconf* %4 to i8*
%7 = bitcast [10 x %struct.ifreq]* %5 to i8*
%8 = load i32, i32* @PF_INET
%9 = load i32, i32* @SOCK_DGRAM
%10 = tail call i32 @socket(i32 %8, i32 %9, i32 0)
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %79
12: ; preds = %3
%13 = getelementptr inbounds %struct.ifconf, %struct.ifconf* %4, i64 0, i32 0
store i32 320, i32* %13
%14 = ptrtoint [10 x %struct.ifreq]* %5 to i64
%15 = getelementptr inbounds %struct.ifconf, %struct.ifconf* %4, i64 0, i32 4, i32 0
store i64 %14, i64* %15
%16 = load i32, i32* @SIOCGIFCONF
%17 = bitcast %struct.ifconf* %4 to %struct.ifreq*
%18 = call i64 @ioctl(i32 %10, i32 %16, %struct.ifreq* %17)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %77
20: ; preds = %12
%21 = load i32, i32* %13
%22 = icmp sgt i32 %21, 31
br i1 %22, label %23, label %77
23: ; preds = %20
%24 = lshr i32 %21, 5
%25 = zext i32 %24 to i64
br label %26
26: ; preds = %23, %72
%27 = phi i64 [ 0, %23 ], [ %75, %72 ]
%28 = phi i32 [ undef, %23 ], [ %74, %72 ]
%29 = phi i32 [ undef, %23 ], [ %73, %72 ]
%30 = getelementptr inbounds [10 x %struct.ifreq], [10 x %struct.ifreq]* %5, i64 0, i64 %27
%31 = getelementptr inbounds [10 x %struct.ifreq], [10 x %struct.ifreq]* %5, i64 0, i64 %27, i32 3
%32 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %31, i64 0, i32 0
%33 = load i64, i64* %32
%34 = load i64, i64* @AF_INET
%35 = icmp eq i64 %33, %34
br i1 %35, label %36, label %72
36: ; preds = %26
%37 = load i32, i32* @SIOCGIFADDR
%38 = call i64 @ioctl(i32 %10, i32 %37, %struct.ifreq* %30)
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %36
%41 = bitcast %struct.TYPE_5__* %31 to i32*
%42 = load i32, i32* %41
br label %43
43: ; preds = %40, %36
%44 = phi i32 [ %42, %40 ], [ %28, %36 ]
%45 = load i32, i32* @SIOCGIFBRDADDR
%46 = call i64 @ioctl(i32 %10, i32 %45, %struct.ifreq* %30)
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %43
%49 = getelementptr inbounds [10 x %struct.ifreq], [10 x %struct.ifreq]* %5, i64 0, i64 %27, i32 2
%50 = load i32, i32* %49
br label %51
51: ; preds = %48, %43
%52 = phi i32 [ %50, %48 ], [ %29, %43 ]
%53 = getelementptr inbounds [10 x %struct.ifreq], [10 x %struct.ifreq]* %5, i64 0, i64 %27, i32 1
%54 = load i32, i32* %53
%55 = call i32 @strcmp(i32 %54, i8* %0)
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %72
57: ; preds = %51
%58 = and i32 %44, 255
%59 = lshr i32 %44, 8
%60 = and i32 %59, 255
%61 = lshr i32 %44, 16
%62 = and i32 %61, 255
%63 = lshr i32 %44, 24
%64 = call i32 @sprintf(i8* dereferenceable(1) %1, i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %58, i32 %60, i32 %62, i32 %63)
%65 = and i32 %52, 255
%66 = lshr i32 %52, 8
%67 = and i32 %66, 255
%68 = lshr i32 %52, 16
%69 = and i32 %68, 255
%70 = lshr i32 %52, 24
%71 = call i32 @sprintf(i8* dereferenceable(1) %2, i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %65, i32 %67, i32 %69, i32 %70)
br label %72
72: ; preds = %51, %57, %26
%73 = phi i32 [ %29, %26 ], [ %52, %51 ], [ %52, %57 ]
%74 = phi i32 [ %28, %26 ], [ %44, %51 ], [ %44, %57 ]
%75 = add nuw nsw i64 %27, 1
%76 = icmp eq i64 %75, %25
br i1 %76, label %77, label %26
77: ; preds = %72, %20, %12
%78 = call i32 @close(i32 %10)
br label %79
79: ; preds = %77, %3
ret void
}