#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*/ ifconfig4Netmask(char *, int);
int /*<<< orphan*/ ifconfigCheckCopyInput(char *, int, char const *, int const);
int ifconfigExec(char *);
int /*<<< orphan*/ ifconfigSplit(char *, int, char *, int, char const *,
                                 int const, char);
int /*<<< orphan*/ memcpy(char *, char *, int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ sprintf(char *, char *, char *, ...);
int /*<<< orphan*/ sscanf(char *, char *, int *);
scalar_t__ strlen(char *);
int ifconfig4(const char *ifname, const int ifname_len, const char *addr,
              const int addr_len) {
  char cmd[1024];
  memset(cmd, 0, 1024);
  char ifname_s[256];
  memset(ifname_s, 0, 256);
  char ip_s[256];
  memset(ip_s, 0, 256);
  char netmask_s[16];
  memset(netmask_s, 0, 16);
  char prefixlen_s[4];
  memset(prefixlen_s, 0, 4);
  int ret;
  if (!ifconfigCheckCopyInput(ifname_s, 256, ifname, ifname_len))
    return 0;
  if (!ifconfigSplit(ip_s, 256, prefixlen_s, 4, addr, addr_len, '/'))
    return 0;
  if (strlen(prefixlen_s) == 0)
    memcpy(prefixlen_s, "32", 2);
  ret = 0;
  sscanf(prefixlen_s, "%d", &ret);
  ifconfig4Netmask(netmask_s, ret);
  sprintf(cmd, "ip link set dev \"%s\" up", ifname_s);
  ret = ifconfigExec(cmd);
  if (ret == 0) {
    sprintf(cmd, "ip -4 addr flush dev \"%s\" scope global", ifname_s);
    ret = ifconfigExec(cmd);
    if (ret != 0) {
      return 0;
    }
    sprintf(cmd, "ip -4 addr add dev \"%s\" \"%s/%s\" broadcast + scope global",
            ifname_s, ip_s, prefixlen_s);
    ret = ifconfigExec(cmd);
    if (ret != 0) {
      return 0;
    }
    return 1;
  }
  sprintf(cmd, "ifconfig \"%s\" up", ifname_s);
  ret = ifconfigExec(cmd);
  if (ret == 0) {
    sprintf(cmd, "ifconfig \"%s\" \"%s\" netmask \"%s\"", ifname_s, ip_s,
            netmask_s);
    ret = ifconfigExec(cmd);
    if (ret != 0) {
      return 0;
    }
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<ifconfig4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x650,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
lea    -0x430(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
lea    -0x530(%rbp),%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1080 <memset@plt>
lea    -0x630(%rbp),%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1080 <memset@plt>
lea    -0x640(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1080 <memset@plt>
lea    -0x644(%rbp),%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1080 <memset@plt>
lea    -0x530(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
mov    $0x100,%esi
call   1030 <ifconfigCheckCopyInput@plt>
cmp    $0x0,%eax
jne    1235 <ifconfig4+0xa5>
movl   $0x0,-0x4(%rbp)
jmp    1460 <ifconfig4+0x2d0>
lea    -0x630(%rbp),%rdi
lea    -0x644(%rbp),%rdx
mov    -0x20(%rbp),%r8
mov    -0x24(%rbp),%r9d
mov    $0x100,%esi
mov    $0x4,%ecx
movl   $0x2f,(%rsp)
call   1060 <ifconfigSplit@plt>
cmp    $0x0,%eax
jne    1276 <ifconfig4+0xe6>
movl   $0x0,-0x4(%rbp)
jmp    1460 <ifconfig4+0x2d0>
lea    -0x644(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x0,%rax
jne    12a4 <ifconfig4+0x114>
lea    -0x644(%rbp),%rdi
lea    0xd66(%rip),%rsi
mov    $0x2,%edx
call   1090 <memcpy@plt>
movl   $0x0,-0x648(%rbp)
lea    -0x644(%rbp),%rdi
lea    0xd47(%rip),%rsi
lea    -0x648(%rbp),%rdx
call   10a0 <sscanf@plt>
lea    -0x640(%rbp),%rdi
mov    -0x648(%rbp),%esi
call   1040 <ifconfig4Netmask@plt>
lea    -0x430(%rbp),%rdi
lea    -0x530(%rbp),%rdx
lea    0xd17(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x430(%rbp),%rdi
call   1070 <ifconfigExec@plt>
mov    %eax,-0x648(%rbp)
cmpl   $0x0,-0x648(%rbp)
jne    13bd <ifconfig4+0x22d>
lea    -0x430(%rbp),%rdi
lea    -0x530(%rbp),%rdx
lea    0xcf4(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x430(%rbp),%rdi
call   1070 <ifconfigExec@plt>
mov    %eax,-0x648(%rbp)
cmpl   $0x0,-0x648(%rbp)
je     135c <ifconfig4+0x1cc>
movl   $0x0,-0x4(%rbp)
jmp    1460 <ifconfig4+0x2d0>
lea    -0x430(%rbp),%rdi
lea    -0x530(%rbp),%rdx
lea    -0x630(%rbp),%rcx
lea    -0x644(%rbp),%r8
lea    0xcc6(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x430(%rbp),%rdi
call   1070 <ifconfigExec@plt>
mov    %eax,-0x648(%rbp)
cmpl   $0x0,-0x648(%rbp)
je     13b1 <ifconfig4+0x221>
movl   $0x0,-0x4(%rbp)
jmp    1460 <ifconfig4+0x2d0>
movl   $0x1,-0x4(%rbp)
jmp    1460 <ifconfig4+0x2d0>
lea    -0x430(%rbp),%rdi
lea    -0x530(%rbp),%rdx
lea    0xcac(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x430(%rbp),%rdi
call   1070 <ifconfigExec@plt>
mov    %eax,-0x648(%rbp)
cmpl   $0x0,-0x648(%rbp)
jne    1459 <ifconfig4+0x2c9>
lea    -0x430(%rbp),%rdi
lea    -0x530(%rbp),%rdx
lea    -0x630(%rbp),%rcx
lea    -0x640(%rbp),%r8
lea    0xc74(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x430(%rbp),%rdi
call   1070 <ifconfigExec@plt>
mov    %eax,-0x648(%rbp)
cmpl   $0x0,-0x648(%rbp)
je     144d <ifconfig4+0x2bd>
movl   $0x0,-0x4(%rbp)
jmp    1460 <ifconfig4+0x2d0>
movl   $0x1,-0x4(%rbp)
jmp    1460 <ifconfig4+0x2d0>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x650,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ifconfig4>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x628,%rsp
mov    %ecx,%r14d
mov    %rdx,%r15
mov    %esi,%ebp
mov    %rdi,%rbx
lea    0x220(%rsp),%rdi
xor    %r13d,%r13d
xor    %esi,%esi
mov    $0x400,%edx
call   1070 <memset@plt>
lea    0x20(%rsp),%r12
mov    %r12,%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1070 <memset@plt>
lea    0x120(%rsp),%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1070 <memset@plt>
lea    0x10(%rsp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1070 <memset@plt>
lea    0xc(%rsp),%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1070 <memset@plt>
mov    %r12,%rdi
mov    $0x100,%esi
mov    %rbx,%rdx
mov    %ebp,%ecx
call   1030 <ifconfigCheckCopyInput@plt>
test   %eax,%eax
je     138a <ifconfig4+0x20a>
movl   $0x2f,(%rsp)
lea    0x120(%rsp),%rdi
lea    0xc(%rsp),%rdx
mov    $0x100,%esi
mov    $0x4,%ecx
mov    %r15,%r8
mov    %r14d,%r9d
call   1050 <ifconfigSplit@plt>
test   %eax,%eax
je     1317 <ifconfig4+0x197>
cmpb   $0x0,0xc(%rsp)
jne    1265 <ifconfig4+0xe5>
lea    0xdaa(%rip),%rsi
lea    0xc(%rsp),%rdi
mov    $0x2,%edx
call   1080 <memcpy@plt>
movl   $0x0,0x8(%rsp)
lea    0xd8f(%rip),%rsi
lea    0xc(%rsp),%rdi
lea    0x8(%rsp),%rdx
call   1090 <sscanf@plt>
mov    0x8(%rsp),%esi
lea    0x10(%rsp),%rdi
call   1040 <ifconfig4Netmask@plt>
lea    0xd6e(%rip),%rsi
lea    0x220(%rsp),%rbx
lea    0x20(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <sprintf@plt>
mov    %rbx,%rdi
call   1060 <ifconfigExec@plt>
mov    %eax,0x8(%rsp)
test   %eax,%eax
je     131c <ifconfig4+0x19c>
lea    0xdb8(%rip),%rsi
xor    %r13d,%r13d
lea    0x220(%rsp),%rbx
lea    0x20(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <sprintf@plt>
mov    %rbx,%rdi
call   1060 <ifconfigExec@plt>
mov    %eax,0x8(%rsp)
test   %eax,%eax
jne    138a <ifconfig4+0x20a>
lea    0xd94(%rip),%rsi
lea    0x220(%rsp),%rbx
lea    0x20(%rsp),%rdx
lea    0x120(%rsp),%rcx
lea    0x10(%rsp),%r8
jmp    136e <ifconfig4+0x1ee>
xor    %r13d,%r13d
jmp    138a <ifconfig4+0x20a>
lea    0xcfb(%rip),%rsi
xor    %r13d,%r13d
lea    0x220(%rsp),%rbx
lea    0x20(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <sprintf@plt>
mov    %rbx,%rdi
call   1060 <ifconfigExec@plt>
mov    %eax,0x8(%rsp)
test   %eax,%eax
jne    138a <ifconfig4+0x20a>
lea    0xcf1(%rip),%rsi
lea    0x220(%rsp),%rbx
lea    0x20(%rsp),%rdx
lea    0x120(%rsp),%rcx
lea    0xc(%rsp),%r8
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <sprintf@plt>
mov    %rbx,%rdi
call   1060 <ifconfigExec@plt>
mov    %eax,0x8(%rsp)
test   %eax,%eax
sete   %r13b
movzbl %r13b,%eax
add    $0x628,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"32\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [24 x i8] c"ip link set dev \22%s\22 up\00"
@.str.3 = [39 x i8] c"ip -4 addr flush dev \22%s\22 scope global\00"
@.str.4 = [57 x i8] c"ip -4 addr add dev \22%s\22 \22%s/%s\22 broadcast + scope global\00"
@.str.5 = [17 x i8] c"ifconfig \22%s\22 up\00"
@.str.6 = [32 x i8] c"ifconfig \22%s\22 \22%s\22 netmask \22%s\22\00"
define i32 @ifconfig4(i8* %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca [1024 x i8]
%11 = alloca [256 x i8]
%12 = alloca [256 x i8]
%13 = alloca [16 x i8]
%14 = alloca [4 x i8]
%15 = alloca i32
store i8* %0, i8** %6
store i32 %1, i32* %7
store i8* %2, i8** %8
store i32 %3, i32* %9
%16 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%17 = call i32 @memset(i8* %16, i32 0, i32 1024)
%18 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%19 = call i32 @memset(i8* %18, i32 0, i32 256)
%20 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
%21 = call i32 @memset(i8* %20, i32 0, i32 256)
%22 = getelementptr inbounds [16 x i8], [16 x i8]* %13, i64 0, i64 0
%23 = call i32 @memset(i8* %22, i32 0, i32 16)
%24 = getelementptr inbounds [4 x i8], [4 x i8]* %14, i64 0, i64 0
%25 = call i32 @memset(i8* %24, i32 0, i32 4)
%26 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%27 = load i8*, i8** %6
%28 = load i32, i32* %7
%29 = call i32 @ifconfigCheckCopyInput(i8* %26, i32 256, i8* %27, i32 %28)
%30 = icmp ne i32 %29, 0
br i1 %30, label %32, label %31
31: ; preds = %4
store i32 0, i32* %5
br label %102
32: ; preds = %4
%33 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
%34 = getelementptr inbounds [4 x i8], [4 x i8]* %14, i64 0, i64 0
%35 = load i8*, i8** %8
%36 = load i32, i32* %9
%37 = call i32 @ifconfigSplit(i8* %33, i32 256, i8* %34, i32 4, i8* %35, i32 %36, i8 signext 47)
%38 = icmp ne i32 %37, 0
br i1 %38, label %40, label %39
39: ; preds = %32
store i32 0, i32* %5
br label %102
40: ; preds = %32
%41 = getelementptr inbounds [4 x i8], [4 x i8]* %14, i64 0, i64 0
%42 = call i64 @strlen(i8* %41)
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %40
%45 = getelementptr inbounds [4 x i8], [4 x i8]* %14, i64 0, i64 0
%46 = call i32 @memcpy(i8* %45, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
br label %47
47: ; preds = %44, %40
store i32 0, i32* %15
%48 = getelementptr inbounds [4 x i8], [4 x i8]* %14, i64 0, i64 0
%49 = call i32 @sscanf(i8* %48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %15)
%50 = getelementptr inbounds [16 x i8], [16 x i8]* %13, i64 0, i64 0
%51 = load i32, i32* %15
%52 = call i32 @ifconfig4Netmask(i8* %50, i32 %51)
%53 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%54 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%55 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %53, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* %54)
%56 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%57 = call i32 @ifconfigExec(i8* %56)
store i32 %57, i32* %15
%58 = load i32, i32* %15
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %81
60: ; preds = %47
%61 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%62 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%63 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %61, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i8* %62)
%64 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%65 = call i32 @ifconfigExec(i8* %64)
store i32 %65, i32* %15
%66 = load i32, i32* %15
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %69
68: ; preds = %60
store i32 0, i32* %5
br label %102
69: ; preds = %60
%70 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%71 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%72 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
%73 = getelementptr inbounds [4 x i8], [4 x i8]* %14, i64 0, i64 0
%74 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %70, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0), i8* %71, i8* %72, i8* %73)
%75 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%76 = call i32 @ifconfigExec(i8* %75)
store i32 %76, i32* %15
%77 = load i32, i32* %15
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %80
79: ; preds = %69
store i32 0, i32* %5
br label %102
80: ; preds = %69
store i32 1, i32* %5
br label %102
81: ; preds = %47
%82 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%83 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%84 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %82, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i8* %83)
%85 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%86 = call i32 @ifconfigExec(i8* %85)
store i32 %86, i32* %15
%87 = load i32, i32* %15
%88 = icmp eq i32 %87, 0
br i1 %88, label %89, label %101
89: ; preds = %81
%90 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%91 = getelementptr inbounds [256 x i8], [256 x i8]* %11, i64 0, i64 0
%92 = getelementptr inbounds [256 x i8], [256 x i8]* %12, i64 0, i64 0
%93 = getelementptr inbounds [16 x i8], [16 x i8]* %13, i64 0, i64 0
%94 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %90, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i8* %91, i8* %92, i8* %93)
%95 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%96 = call i32 @ifconfigExec(i8* %95)
store i32 %96, i32* %15
%97 = load i32, i32* %15
%98 = icmp ne i32 %97, 0
br i1 %98, label %99, label %100
99: ; preds = %89
store i32 0, i32* %5
br label %102
100: ; preds = %89
store i32 1, i32* %5
br label %102
101: ; preds = %81
store i32 0, i32* %5
br label %102
102: ; preds = %101, %100, %99, %80, %79, %68, %39, %31
%103 = load i32, i32* %5
ret i32 %103
}

LLVM IR (-O2):
@.str = [3 x i8] c"32\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [24 x i8] c"ip link set dev \22%s\22 up\00"
@.str.3 = [39 x i8] c"ip -4 addr flush dev \22%s\22 scope global\00"
@.str.4 = [57 x i8] c"ip -4 addr add dev \22%s\22 \22%s/%s\22 broadcast + scope global\00"
@.str.5 = [17 x i8] c"ifconfig \22%s\22 up\00"
@.str.6 = [32 x i8] c"ifconfig \22%s\22 \22%s\22 netmask \22%s\22\00"
define i32 @ifconfig4(i8* %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca [1024 x i8]
%6 = alloca [256 x i8]
%7 = alloca [256 x i8]
%8 = alloca [16 x i8]
%9 = alloca [4 x i8]
%10 = alloca i32
%11 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%12 = call i32 @memset(i8* %11, i32 0, i32 1024)
%13 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%14 = call i32 @memset(i8* %13, i32 0, i32 256)
%15 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%16 = call i32 @memset(i8* %15, i32 0, i32 256)
%17 = getelementptr inbounds [16 x i8], [16 x i8]* %8, i64 0, i64 0
%18 = call i32 @memset(i8* %17, i32 0, i32 16)
%19 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%20 = call i32 @memset(i8* %19, i32 0, i32 4)
%21 = bitcast i32* %10 to i8*
%22 = call i32 @ifconfigCheckCopyInput(i8* %13, i32 256, i8* %0, i32 %1)
%23 = icmp eq i32 %22, 0
br i1 %23, label %55, label %24
24: ; preds = %4
%25 = call i32 @ifconfigSplit(i8* %15, i32 256, i8* %19, i32 4, i8* %2, i32 %3, i8 signext 47)
%26 = icmp eq i32 %25, 0
br i1 %26, label %55, label %27
27: ; preds = %24
%28 = load i8, i8* %19
%29 = icmp eq i8 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 @memcpy(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
br label %32
32: ; preds = %30, %27
store i32 0, i32* %10
%33 = call i32 @sscanf(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %10)
%34 = load i32, i32* %10
%35 = call i32 @ifconfig4Netmask(i8* %17, i32 %34)
%36 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* %13)
%37 = call i32 @ifconfigExec(i8* %11)
store i32 %37, i32* %10
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %47
39: ; preds = %32
%40 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i8* %13)
%41 = call i32 @ifconfigExec(i8* %11)
store i32 %41, i32* %10
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %55
43: ; preds = %39
%44 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0), i8* %13, i8* %15, i8* %19)
%45 = call i32 @ifconfigExec(i8* %11)
store i32 %45, i32* %10
%46 = icmp eq i32 %45, 0
br label %55
47: ; preds = %32
%48 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i8* %13)
%49 = call i32 @ifconfigExec(i8* %11)
store i32 %49, i32* %10
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %55
51: ; preds = %47
%52 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i8* %13, i8* %15, i8* %17)
%53 = call i32 @ifconfigExec(i8* %11)
store i32 %53, i32* %10
%54 = icmp eq i32 %53, 0
br label %55
55: ; preds = %47, %51, %43, %39, %24, %4
%56 = phi i1 [ false, %4 ], [ false, %24 ], [ false, %39 ], [ %46, %43 ], [ %54, %51 ], [ false, %47 ]
%57 = zext i1 %56 to i32
ret i32 %57
}