#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 */
struct sigma_dut {
  int dummy;
};
struct sigma_conn {
  int dummy;
};
struct sigma_cmd {
  int dummy;
};
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int atoi(char const *);
char *get_param(struct sigma_cmd *, char *);
char *get_station_ifname();
int set_eap_common(struct sigma_dut *, struct sigma_conn *, char const *,
                   struct sigma_cmd *);
scalar_t__ set_network(char const *, int, char *, char *);
scalar_t__ set_network_quoted(char const *, int, char *, char *);
int /*<<< orphan*/ snprintf(char *, int, char *, int);
scalar_t__ strcasecmp(char const *, char *);
int cmd_sta_set_eappeap(struct sigma_dut *dut, struct sigma_conn *conn,
                        struct sigma_cmd *cmd) {
  const char *intf = get_param(cmd, "Interface");
  const char *ifname, *val;
  int id;
  char buf[100];
  ifname = get_station_ifname();
  id = set_eap_common(dut, conn, ifname, cmd);
  if (id < 0)
    return id;
  if (set_network(ifname, id, "eap", "PEAP") < 0)
    return -2;
  if (set_network_quoted(ifname, id, "anonymous_identity", "anonymous") < 0)
    return -2;
  val = get_param(cmd, "innerEAP");
  if (val) {
    if (strcasecmp(val, "MSCHAPv2") == 0) {
      if (set_network_quoted(ifname, id, "phase2", "auth=MSCHAPV2") < 0)
        return -2;
    } else if (strcasecmp(val, "GTC") == 0) {
      if (set_network_quoted(ifname, id, "phase2", "auth=GTC") < 0)
        return -2;
    } else
      return -1;
  }
  val = get_param(cmd, "peapVersion");
  if (val) {
    int ver = atoi(val);
    if (ver < 0 || ver > 1)
      return -1;
    snprintf(buf, sizeof(buf), "peapver=%d", ver);
    if (set_network_quoted(ifname, id, "phase1", buf) < 0)
      return -2;
  }
  return 1;
}


x86 assembly (clang, -O0):
<cmd_sta_set_eappeap>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
lea    0xe5e(%rip),%rsi
call   1040 <get_param@plt>
mov    %rax,-0x28(%rbp)
mov    $0x0,%al
call   1090 <get_station_ifname@plt>
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x20(%rbp),%rcx
call   1080 <set_eap_common@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jge    11e3 <cmd_sta_set_eappeap+0x63>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    13c4 <cmd_sta_set_eappeap+0x244>
mov    -0x30(%rbp),%rdi
mov    -0x3c(%rbp),%esi
lea    0xe19(%rip),%rdx
lea    0xe16(%rip),%rcx
call   1070 <set_network@plt>
cmp    $0x0,%rax
jge    1213 <cmd_sta_set_eappeap+0x93>
movl   $0xfffffffe,-0x4(%rbp)
jmp    13c4 <cmd_sta_set_eappeap+0x244>
mov    -0x30(%rbp),%rdi
mov    -0x3c(%rbp),%esi
lea    0xdf2(%rip),%rdx
lea    0xdfe(%rip),%rcx
call   1060 <set_network_quoted@plt>
cmp    $0x0,%rax
jge    1243 <cmd_sta_set_eappeap+0xc3>
movl   $0xfffffffe,-0x4(%rbp)
jmp    13c4 <cmd_sta_set_eappeap+0x244>
mov    -0x20(%rbp),%rdi
lea    0xde2(%rip),%rsi
call   1040 <get_param@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     1316 <cmd_sta_set_eappeap+0x196>
mov    -0x38(%rbp),%rdi
lea    0xdcc(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    12b1 <cmd_sta_set_eappeap+0x131>
mov    -0x30(%rbp),%rdi
mov    -0x3c(%rbp),%esi
lea    0xdb8(%rip),%rdx
lea    0xdb8(%rip),%rcx
call   1060 <set_network_quoted@plt>
cmp    $0x0,%rax
jge    12ac <cmd_sta_set_eappeap+0x12c>
movl   $0xfffffffe,-0x4(%rbp)
jmp    13c4 <cmd_sta_set_eappeap+0x244>
jmp    1311 <cmd_sta_set_eappeap+0x191>
mov    -0x38(%rbp),%rdi
lea    0xda0(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1300 <cmd_sta_set_eappeap+0x180>
mov    -0x30(%rbp),%rdi
mov    -0x3c(%rbp),%esi
lea    0xd69(%rip),%rdx
lea    0xd77(%rip),%rcx
call   1060 <set_network_quoted@plt>
cmp    $0x0,%rax
jge    12fb <cmd_sta_set_eappeap+0x17b>
movl   $0xfffffffe,-0x4(%rbp)
jmp    13c4 <cmd_sta_set_eappeap+0x244>
jmp    130c <cmd_sta_set_eappeap+0x18c>
movl   $0xffffffff,-0x4(%rbp)
jmp    13c4 <cmd_sta_set_eappeap+0x244>
jmp    1311 <cmd_sta_set_eappeap+0x191>
jmp    1316 <cmd_sta_set_eappeap+0x196>
mov    -0x20(%rbp),%rdi
lea    0xd3f(%rip),%rsi
call   1040 <get_param@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     13bd <cmd_sta_set_eappeap+0x23d>
mov    -0x38(%rbp),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0xa4(%rbp)
cmpl   $0x0,-0xa4(%rbp)
jl     135e <cmd_sta_set_eappeap+0x1de>
cmpl   $0x1,-0xa4(%rbp)
jle    136a <cmd_sta_set_eappeap+0x1ea>
movl   $0xffffffff,-0x4(%rbp)
jmp    13c4 <cmd_sta_set_eappeap+0x244>
lea    -0xa0(%rbp),%rdi
mov    -0xa4(%rbp),%ecx
mov    $0x64,%esi
lea    0xce9(%rip),%rdx
call   1050 <snprintf@plt>
mov    -0x30(%rbp),%rdi
mov    -0x3c(%rbp),%esi
lea    -0xa0(%rbp),%rcx
lea    0xcda(%rip),%rdx
call   1060 <set_network_quoted@plt>
cmp    $0x0,%rax
jge    13b8 <cmd_sta_set_eappeap+0x238>
movl   $0xfffffffe,-0x4(%rbp)
jmp    13c4 <cmd_sta_set_eappeap+0x244>
jmp    13bd <cmd_sta_set_eappeap+0x23d>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmd_sta_set_eappeap>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rdx,%r13
mov    %rsi,%rbp
mov    %rdi,%rbx
lea    0xe62(%rip),%rsi
mov    %rdx,%rdi
call   1040 <get_param@plt>
xor    %eax,%eax
call   1090 <get_station_ifname@plt>
mov    %rax,%r14
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %rax,%rdx
mov    %r13,%rcx
call   1080 <set_eap_common@plt>
mov    %eax,%r15d
test   %eax,%eax
js     127e <cmd_sta_set_eappeap+0xfe>
lea    0xe37(%rip),%rdx
lea    0xe34(%rip),%rcx
mov    %r14,%rdi
mov    %r15d,%esi
call   1070 <set_network@plt>
mov    $0xfffffffe,%ebp
test   %rax,%rax
js     1277 <cmd_sta_set_eappeap+0xf7>
lea    0xe19(%rip),%rdx
lea    0xe25(%rip),%rcx
mov    %r14,%rdi
mov    %r15d,%esi
call   1060 <set_network_quoted@plt>
test   %rax,%rax
js     1277 <cmd_sta_set_eappeap+0xf7>
lea    0xe18(%rip),%rsi
mov    %r13,%rdi
call   1040 <get_param@plt>
test   %rax,%rax
je     12b0 <cmd_sta_set_eappeap+0x130>
mov    %rax,%r12
lea    0xe06(%rip),%rsi
mov    %rax,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1292 <cmd_sta_set_eappeap+0x112>
lea    0xe15(%rip),%rsi
mov    %r12,%rdi
call   1030 <strcasecmp@plt>
mov    $0xffffffff,%ebp
test   %rax,%rax
jne    1281 <cmd_sta_set_eappeap+0x101>
lea    0xde2(%rip),%rdx
lea    0xdf0(%rip),%rcx
mov    %r14,%rdi
mov    %r15d,%esi
call   1060 <set_network_quoted@plt>
test   %rax,%rax
jns    12b0 <cmd_sta_set_eappeap+0x130>
mov    $0xfffffffe,%ebp
jmp    1281 <cmd_sta_set_eappeap+0x101>
mov    %r15d,%ebp
mov    %ebp,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xda9(%rip),%rdx
lea    0xda9(%rip),%rcx
mov    %r14,%rdi
mov    %r15d,%esi
call   1060 <set_network_quoted@plt>
test   %rax,%rax
js     1281 <cmd_sta_set_eappeap+0x101>
lea    0xda9(%rip),%rsi
mov    %r13,%rdi
call   1040 <get_param@plt>
test   %rax,%rax
je     1312 <cmd_sta_set_eappeap+0x192>
mov    %rax,%rdi
call   10a0 <atoi@plt>
mov    $0xffffffff,%ebp
cmp    $0x1,%eax
ja     1281 <cmd_sta_set_eappeap+0x101>
lea    0xd8f(%rip),%rdx
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x64,%esi
mov    %eax,%ecx
call   1050 <snprintf@plt>
lea    0xd81(%rip),%rdx
mov    %r14,%rdi
mov    %r15d,%esi
mov    %rbx,%rcx
call   1060 <set_network_quoted@plt>
mov    $0xfffffffe,%ebp
test   %rax,%rax
js     1281 <cmd_sta_set_eappeap+0x101>
mov    $0x1,%ebp
jmp    1281 <cmd_sta_set_eappeap+0x101>

LLVM IR (-O0):
%struct.sigma_dut = type { i32 }
%struct.sigma_conn = type { i32 }
%struct.sigma_cmd = type { i32 }
@.str = [10 x i8] c"Interface\00"
@.str.1 = [4 x i8] c"eap\00"
@.str.2 = [5 x i8] c"PEAP\00"
@.str.3 = [19 x i8] c"anonymous_identity\00"
@.str.4 = [10 x i8] c"anonymous\00"
@.str.5 = [9 x i8] c"innerEAP\00"
@.str.6 = [9 x i8] c"MSCHAPv2\00"
@.str.7 = [7 x i8] c"phase2\00"
@.str.8 = [14 x i8] c"auth=MSCHAPV2\00"
@.str.9 = [4 x i8] c"GTC\00"
@.str.10 = [9 x i8] c"auth=GTC\00"
@.str.11 = [12 x i8] c"peapVersion\00"
@.str.12 = [11 x i8] c"peapver=%d\00"
@.str.13 = [7 x i8] c"phase1\00"
define i32 @cmd_sta_set_eappeap(%struct.sigma_dut* %0, %struct.sigma_conn* %1, %struct.sigma_cmd* %2) {
%4 = alloca i32
%5 = alloca %struct.sigma_dut*
%6 = alloca %struct.sigma_conn*
%7 = alloca %struct.sigma_cmd*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca [100 x i8]
%13 = alloca i32
store %struct.sigma_dut* %0, %struct.sigma_dut** %5
store %struct.sigma_conn* %1, %struct.sigma_conn** %6
store %struct.sigma_cmd* %2, %struct.sigma_cmd** %7
%14 = load %struct.sigma_cmd*, %struct.sigma_cmd** %7
%15 = call i8* @get_param(%struct.sigma_cmd* %14, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
store i8* %15, i8** %8
%16 = call i8* (...) @get_station_ifname()
store i8* %16, i8** %9
%17 = load %struct.sigma_dut*, %struct.sigma_dut** %5
%18 = load %struct.sigma_conn*, %struct.sigma_conn** %6
%19 = load i8*, i8** %9
%20 = load %struct.sigma_cmd*, %struct.sigma_cmd** %7
%21 = call i32 @set_eap_common(%struct.sigma_dut* %17, %struct.sigma_conn* %18, i8* %19, %struct.sigma_cmd* %20)
store i32 %21, i32* %11
%22 = load i32, i32* %11
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %3
%25 = load i32, i32* %11
store i32 %25, i32* %4
br label %94
26: ; preds = %3
%27 = load i8*, i8** %9
%28 = load i32, i32* %11
%29 = call i64 @set_network(i8* %27, i32 %28, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %26
store i32 -2, i32* %4
br label %94
32: ; preds = %26
%33 = load i8*, i8** %9
%34 = load i32, i32* %11
%35 = call i64 @set_network_quoted(i8* %33, i32 %34, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%36 = icmp slt i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %32
store i32 -2, i32* %4
br label %94
38: ; preds = %32
%39 = load %struct.sigma_cmd*, %struct.sigma_cmd** %7
%40 = call i8* @get_param(%struct.sigma_cmd* %39, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
store i8* %40, i8** %10
%41 = load i8*, i8** %10
%42 = icmp ne i8* %41, null
br i1 %42, label %43, label %68
43: ; preds = %38
%44 = load i8*, i8** %10
%45 = call i64 @strcasecmp(i8* %44, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %54
47: ; preds = %43
%48 = load i8*, i8** %9
%49 = load i32, i32* %11
%50 = call i64 @set_network_quoted(i8* %48, i32 %49, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%51 = icmp slt i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %47
store i32 -2, i32* %4
br label %94
53: ; preds = %47
br label %67
54: ; preds = %43
%55 = load i8*, i8** %10
%56 = call i64 @strcasecmp(i8* %55, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %65
58: ; preds = %54
%59 = load i8*, i8** %9
%60 = load i32, i32* %11
%61 = call i64 @set_network_quoted(i8* %59, i32 %60, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%62 = icmp slt i64 %61, 0
br i1 %62, label %63, label %64
63: ; preds = %58
store i32 -2, i32* %4
br label %94
64: ; preds = %58
br label %66
65: ; preds = %54
store i32 -1, i32* %4
br label %94
66: ; preds = %64
br label %67
67: ; preds = %66, %53
br label %68
68: ; preds = %67, %38
%69 = load %struct.sigma_cmd*, %struct.sigma_cmd** %7
%70 = call i8* @get_param(%struct.sigma_cmd* %69, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0))
store i8* %70, i8** %10
%71 = load i8*, i8** %10
%72 = icmp ne i8* %71, null
br i1 %72, label %73, label %93
73: ; preds = %68
%74 = load i8*, i8** %10
%75 = call i32 @atoi(i8* %74)
store i32 %75, i32* %13
%76 = load i32, i32* %13
%77 = icmp slt i32 %76, 0
br i1 %77, label %81, label %78
78: ; preds = %73
%79 = load i32, i32* %13
%80 = icmp sgt i32 %79, 1
br i1 %80, label %81, label %82
81: ; preds = %78, %73
store i32 -1, i32* %4
br label %94
82: ; preds = %78
%83 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 0
%84 = load i32, i32* %13
%85 = call i32 @snprintf(i8* %83, i32 100, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 %84)
%86 = load i8*, i8** %9
%87 = load i32, i32* %11
%88 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 0
%89 = call i64 @set_network_quoted(i8* %86, i32 %87, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i8* %88)
%90 = icmp slt i64 %89, 0
br i1 %90, label %91, label %92
91: ; preds = %82
store i32 -2, i32* %4
br label %94
92: ; preds = %82
br label %93
93: ; preds = %92, %68
store i32 1, i32* %4
br label %94
94: ; preds = %93, %91, %81, %65, %63, %52, %37, %31, %24
%95 = load i32, i32* %4
ret i32 %95
}

LLVM IR (-O2):
%struct.sigma_dut = type { i32 }
%struct.sigma_conn = type { i32 }
%struct.sigma_cmd = type { i32 }
@.str = [10 x i8] c"Interface\00"
@.str.1 = [4 x i8] c"eap\00"
@.str.2 = [5 x i8] c"PEAP\00"
@.str.3 = [19 x i8] c"anonymous_identity\00"
@.str.4 = [10 x i8] c"anonymous\00"
@.str.5 = [9 x i8] c"innerEAP\00"
@.str.6 = [9 x i8] c"MSCHAPv2\00"
@.str.7 = [7 x i8] c"phase2\00"
@.str.8 = [14 x i8] c"auth=MSCHAPV2\00"
@.str.9 = [4 x i8] c"GTC\00"
@.str.10 = [9 x i8] c"auth=GTC\00"
@.str.11 = [12 x i8] c"peapVersion\00"
@.str.12 = [11 x i8] c"peapver=%d\00"
@.str.13 = [7 x i8] c"phase1\00"
define i32 @cmd_sta_set_eappeap(%struct.sigma_dut* %0, %struct.sigma_conn* %1, %struct.sigma_cmd* %2) {
%4 = alloca [100 x i8]
%5 = tail call i8* @get_param(%struct.sigma_cmd* %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%7 = tail call i8* (...) @get_station_ifname()
%8 = tail call i32 @set_eap_common(%struct.sigma_dut* %0, %struct.sigma_conn* %1, i8* %7, %struct.sigma_cmd* %2)
%9 = icmp slt i32 %8, 0
br i1 %9, label %42, label %10
10: ; preds = %3
%11 = tail call i64 @set_network(i8* %7, i32 %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp slt i64 %11, 0
br i1 %12, label %42, label %13
13: ; preds = %10
%14 = tail call i64 @set_network_quoted(i8* %7, i32 %8, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%15 = icmp slt i64 %14, 0
br i1 %15, label %42, label %16
16: ; preds = %13
%17 = tail call i8* @get_param(%struct.sigma_cmd* %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%18 = icmp eq i8* %17, null
br i1 %18, label %31, label %19
19: ; preds = %16
%20 = tail call i64 @strcasecmp(i8* %17, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = tail call i64 @set_network_quoted(i8* %7, i32 %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%24 = icmp slt i64 %23, 0
br i1 %24, label %42, label %31
25: ; preds = %19
%26 = tail call i64 @strcasecmp(i8* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %42
28: ; preds = %25
%29 = tail call i64 @set_network_quoted(i8* %7, i32 %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%30 = icmp slt i64 %29, 0
br i1 %30, label %42, label %31
31: ; preds = %22, %28, %16
%32 = tail call i8* @get_param(%struct.sigma_cmd* %2, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0))
%33 = icmp eq i8* %32, null
br i1 %33, label %41, label %34
34: ; preds = %31
%35 = tail call i32 @atoi(i8* %32)
%36 = icmp ugt i32 %35, 1
br i1 %36, label %42, label %37
37: ; preds = %34
%38 = call i32 @snprintf(i8* %6, i32 100, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 %35)
%39 = call i64 @set_network_quoted(i8* %7, i32 %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i8* %6)
%40 = icmp sgt i64 %39, -1
br i1 %40, label %41, label %42
41: ; preds = %37, %31
br label %42
42: ; preds = %34, %25, %28, %22, %13, %10, %3, %37, %41
%43 = phi i32 [ 1, %41 ], [ -2, %37 ], [ %8, %3 ], [ -2, %10 ], [ -2, %13 ], [ -2, %22 ], [ -2, %28 ], [ -1, %25 ], [ -1, %34 ]
ret i32 %43
}