#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 cli {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ asprintf(char **, char *, ...);
int /*<<< orphan*/ cli_send(struct cli *, char *, scalar_t__);
int /*<<< orphan*/ free(char *);
int sscanf(char *, char *, int *, int *, int *, int *, int *);
scalar_t__ strlen(char *);
int _set_ipv4(struct cli *cli, int argc, char *argv[]) {
  if (argc <= 0) {
    {
      char *__tmp;
      asprintf(&__tmp, "> "
                       "argc <= 0 is invalid"
                       "\n\r");
      cli_send(cli, __tmp, strlen(__tmp) + 1);
      free(__tmp);
    };
    return (-1);
  }
  {
    char *__tmp;
    asprintf(&__tmp,
             "argc = %d, argv[0] = %s"
             "\n\r",
             argc, argv[0]);
    cli_send(cli, __tmp, strlen(__tmp) + 1);
    free(__tmp);
  };
  int ipv4[4];
  int mask;
  int num = sscanf(argv[0], "%d.%d.%d.%d/%d", &ipv4[0], &ipv4[1], &ipv4[2],
                   &ipv4[3], &mask);
  {
    char *__tmp;
    asprintf(&__tmp,
             "num = %d"
             "\n\r",
             num);
    cli_send(cli, __tmp, strlen(__tmp) + 1);
    free(__tmp);
  };
  if (num == 4) {
    {
      char *__tmp;
      asprintf(&__tmp,
               "ipv4 value = %d.%d.%d.%d"
               "\n\r",
               ipv4[0], ipv4[1], ipv4[2], ipv4[3]);
      cli_send(cli, __tmp, strlen(__tmp) + 1);
      free(__tmp);
    };
  } else if (num == 5) {
    {
      char *__tmp;
      asprintf(&__tmp,
               "ipv4 value = %d.%d.%d.%d"
               "\n\r",
               ipv4[0], ipv4[1], ipv4[2], ipv4[3]);
      cli_send(cli, __tmp, strlen(__tmp) + 1);
      free(__tmp);
    };
    {
      char *__tmp;
      asprintf(&__tmp,
               "mask = %d"
               "\n\r",
               mask);
      cli_send(cli, __tmp, strlen(__tmp) + 1);
      free(__tmp);
    };
  } else {
    {
      char *__tmp;
      asprintf(&__tmp, "> "
                       "input is wrong?"
                       "\n\r");
      cli_send(cli, __tmp, strlen(__tmp) + 1);
      free(__tmp);
    };
    return (-1);
  }
  return (0);
}


x86 assembly (clang, -O0):
<_set_ipv4>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
cmpl   $0x0,-0x14(%rbp)
jg     11c4 <_set_ipv4+0x74>
lea    -0x28(%rbp),%rdi
lea    0xe85(%rip),%rsi
mov    $0x0,%al
call   1060 <asprintf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x80(%rbp),%rdi
mov    -0x78(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1070 <cli_send@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1458 <_set_ipv4+0x308>
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rax
mov    (%rax),%rcx
lea    -0x30(%rbp),%rdi
lea    0xe40(%rip),%rsi
mov    $0x0,%al
call   1060 <asprintf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0x30(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xa0(%rbp),%rdi
mov    -0x98(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1070 <cli_send@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
lea    -0x40(%rbp),%rdx
lea    -0x40(%rbp),%rcx
add    $0x4,%rcx
lea    -0x40(%rbp),%r8
add    $0x8,%r8
lea    -0x40(%rbp),%r9
add    $0xc,%r9
lea    0xde7(%rip),%rsi
lea    -0x44(%rbp),%rax
mov    %rax,(%rsp)
call   1050 <sscanf@plt>
mov    %eax,-0x48(%rbp)
mov    -0x48(%rbp),%edx
lea    -0x50(%rbp),%rdi
lea    0xdd8(%rip),%rsi
mov    $0x0,%al
call   1060 <asprintf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x50(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x90(%rbp),%rdi
mov    -0x88(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1070 <cli_send@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
cmpl   $0x4,-0x48(%rbp)
jne    1324 <_set_ipv4+0x1d4>
mov    -0x40(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x34(%rbp),%r9d
lea    -0x58(%rbp),%rdi
lea    0xd77(%rip),%rsi
mov    $0x0,%al
call   1060 <asprintf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0xb0(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    -0x58(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xb0(%rbp),%rdi
mov    -0xa8(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1070 <cli_send@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
jmp    1451 <_set_ipv4+0x301>
cmpl   $0x5,-0x48(%rbp)
jne    13ec <_set_ipv4+0x29c>
mov    -0x40(%rbp),%edx
mov    -0x3c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x34(%rbp),%r9d
lea    -0x60(%rbp),%rdi
lea    0xd06(%rip),%rsi
mov    $0x0,%al
call   1060 <asprintf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0xd0(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0xc8(%rbp)
mov    -0x60(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xd0(%rbp),%rdi
mov    -0xc8(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1070 <cli_send@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
mov    -0x44(%rbp),%edx
lea    -0x68(%rbp),%rdi
lea    0xcca(%rip),%rsi
mov    $0x0,%al
call   1060 <asprintf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0xc0(%rbp)
mov    -0x68(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    -0x68(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xc0(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1070 <cli_send@plt>
mov    -0x68(%rbp),%rdi
call   1030 <free@plt>
jmp    144c <_set_ipv4+0x2fc>
lea    -0x70(%rbp),%rdi
lea    0xc7d(%rip),%rsi
mov    $0x0,%al
call   1060 <asprintf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0xe0(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,-0xd8(%rbp)
mov    -0x70(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xe0(%rbp),%rdi
mov    -0xd8(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1070 <cli_send@plt>
mov    -0x70(%rbp),%rdi
call   1030 <free@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1458 <_set_ipv4+0x308>
jmp    1451 <_set_ipv4+0x301>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_set_ipv4>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %rdi,%r15
test   %esi,%esi
jle    124f <_set_ipv4+0xff>
mov    %rdx,%rbp
mov    %esi,%edx
mov    0x0(%rbp),%rcx
lea    0xea4(%rip),%rsi
xor    %r14d,%r14d
lea    0x10(%rsp),%rdi
xor    %eax,%eax
call   1060 <asprintf@plt>
mov    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1070 <cli_send@plt>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
mov    0x0(%rbp),%rdi
lea    0x14(%rsp),%rcx
lea    0x18(%rsp),%r8
lea    0x1c(%rsp),%r9
lea    0x24(%rsp),%rax
mov    %rax,(%rsp)
lea    0xe66(%rip),%rsi
lea    0x10(%rsp),%rdx
call   1050 <sscanf@plt>
mov    %eax,%ebp
lea    0xe62(%rip),%rsi
lea    0x8(%rsp),%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1060 <asprintf@plt>
mov    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1070 <cli_send@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
cmp    $0x5,%ebp
je     1288 <_set_ipv4+0x138>
cmp    $0x4,%ebp
jne    1312 <_set_ipv4+0x1c2>
mov    0x10(%rsp),%edx
mov    0x14(%rsp),%ecx
mov    0x18(%rsp),%r8d
mov    0x1c(%rsp),%r9d
lea    0xe12(%rip),%rsi
xor    %r14d,%r14d
lea    0x8(%rsp),%rdi
xor    %eax,%eax
call   1060 <asprintf@plt>
jmp    12ea <_set_ipv4+0x19a>
lea    0xdaa(%rip),%rsi
lea    0x10(%rsp),%rdi
xor    %eax,%eax
call   1060 <asprintf@plt>
mov    0x10(%rsp),%rbp
mov    %rbp,%rdi
call   1040 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %r15,%rdi
mov    %rbp,%rsi
call   1070 <cli_send@plt>
mov    0x10(%rsp),%rdi
jmp    1346 <_set_ipv4+0x1f6>
mov    0x10(%rsp),%edx
mov    0x14(%rsp),%ecx
mov    0x18(%rsp),%r8d
mov    0x1c(%rsp),%r9d
lea    0xdac(%rip),%rsi
lea    0x8(%rsp),%rdi
xor    %eax,%eax
call   1060 <asprintf@plt>
mov    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1070 <cli_send@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    0x24(%rsp),%edx
lea    0xd8a(%rip),%rsi
lea    0x8(%rsp),%rdi
xor    %eax,%eax
call   1060 <asprintf@plt>
mov    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1070 <cli_send@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
jmp    1351 <_set_ipv4+0x201>
lea    0xd5b(%rip),%rsi
lea    0x8(%rsp),%rdi
xor    %eax,%eax
call   1060 <asprintf@plt>
mov    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1070 <cli_send@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    $0xffffffff,%r14d
mov    %r14d,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.cli = type { i32 }
@.str = [25 x i8] c"> argc <= 0 is invalid\0A\0D\00"
@.str.1 = [26 x i8] c"argc = %d, argv[0] = %s\0A\0D\00"
@.str.2 = [15 x i8] c"%d.%d.%d.%d/%d\00"
@.str.3 = [11 x i8] c"num = %d\0A\0D\00"
@.str.4 = [27 x i8] c"ipv4 value = %d.%d.%d.%d\0A\0D\00"
@.str.5 = [12 x i8] c"mask = %d\0A\0D\00"
@.str.6 = [20 x i8] c"> input is wrong?\0A\0D\00"
define i32 @_set_ipv4(%struct.cli* %0, i32 %1, i8** %2) {
%4 = alloca i32
%5 = alloca %struct.cli*
%6 = alloca i32
%7 = alloca i8**
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca [4 x i32]
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i8*
store %struct.cli* %0, %struct.cli** %5
store i32 %1, i32* %6
store i8** %2, i8*** %7
%18 = load i32, i32* %6
%19 = icmp sle i32 %18, 0
br i1 %19, label %20, label %30
20: ; preds = %3
%21 = call i32 (i8**, i8*, ...) @asprintf(i8** %8, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%22 = load %struct.cli*, %struct.cli** %5
%23 = load i8*, i8** %8
%24 = load i8*, i8** %8
%25 = call i64 @strlen(i8* %24)
%26 = add nsw i64 %25, 1
%27 = call i32 @cli_send(%struct.cli* %22, i8* %23, i64 %26)
%28 = load i8*, i8** %8
%29 = call i32 @free(i8* %28)
store i32 -1, i32* %4
br label %125
30: ; preds = %3
%31 = load i32, i32* %6
%32 = load i8**, i8*** %7
%33 = getelementptr inbounds i8*, i8** %32, i64 0
%34 = load i8*, i8** %33
%35 = call i32 (i8**, i8*, ...) @asprintf(i8** %9, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i32 %31, i8* %34)
%36 = load %struct.cli*, %struct.cli** %5
%37 = load i8*, i8** %9
%38 = load i8*, i8** %9
%39 = call i64 @strlen(i8* %38)
%40 = add nsw i64 %39, 1
%41 = call i32 @cli_send(%struct.cli* %36, i8* %37, i64 %40)
%42 = load i8*, i8** %9
%43 = call i32 @free(i8* %42)
%44 = load i8**, i8*** %7
%45 = getelementptr inbounds i8*, i8** %44, i64 0
%46 = load i8*, i8** %45
%47 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 0
%48 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 1
%49 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 2
%50 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 3
%51 = call i32 @sscanf(i8* %46, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32* %47, i32* %48, i32* %49, i32* %50, i32* %11)
store i32 %51, i32* %12
%52 = load i32, i32* %12
%53 = call i32 (i8**, i8*, ...) @asprintf(i8** %13, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %52)
%54 = load %struct.cli*, %struct.cli** %5
%55 = load i8*, i8** %13
%56 = load i8*, i8** %13
%57 = call i64 @strlen(i8* %56)
%58 = add nsw i64 %57, 1
%59 = call i32 @cli_send(%struct.cli* %54, i8* %55, i64 %58)
%60 = load i8*, i8** %13
%61 = call i32 @free(i8* %60)
%62 = load i32, i32* %12
%63 = icmp eq i32 %62, 4
br i1 %63, label %64, label %82
64: ; preds = %30
%65 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 0
%66 = load i32, i32* %65
%67 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 1
%68 = load i32, i32* %67
%69 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 2
%70 = load i32, i32* %69
%71 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 3
%72 = load i32, i32* %71
%73 = call i32 (i8**, i8*, ...) @asprintf(i8** %14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i32 %66, i32 %68, i32 %70, i32 %72)
%74 = load %struct.cli*, %struct.cli** %5
%75 = load i8*, i8** %14
%76 = load i8*, i8** %14
%77 = call i64 @strlen(i8* %76)
%78 = add nsw i64 %77, 1
%79 = call i32 @cli_send(%struct.cli* %74, i8* %75, i64 %78)
%80 = load i8*, i8** %14
%81 = call i32 @free(i8* %80)
br label %124
82: ; preds = %30
%83 = load i32, i32* %12
%84 = icmp eq i32 %83, 5
br i1 %84, label %85, label %113
85: ; preds = %82
%86 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 0
%87 = load i32, i32* %86
%88 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 1
%89 = load i32, i32* %88
%90 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 2
%91 = load i32, i32* %90
%92 = getelementptr inbounds [4 x i32], [4 x i32]* %10, i64 0, i64 3
%93 = load i32, i32* %92
%94 = call i32 (i8**, i8*, ...) @asprintf(i8** %15, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i32 %87, i32 %89, i32 %91, i32 %93)
%95 = load %struct.cli*, %struct.cli** %5
%96 = load i8*, i8** %15
%97 = load i8*, i8** %15
%98 = call i64 @strlen(i8* %97)
%99 = add nsw i64 %98, 1
%100 = call i32 @cli_send(%struct.cli* %95, i8* %96, i64 %99)
%101 = load i8*, i8** %15
%102 = call i32 @free(i8* %101)
%103 = load i32, i32* %11
%104 = call i32 (i8**, i8*, ...) @asprintf(i8** %16, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %103)
%105 = load %struct.cli*, %struct.cli** %5
%106 = load i8*, i8** %16
%107 = load i8*, i8** %16
%108 = call i64 @strlen(i8* %107)
%109 = add nsw i64 %108, 1
%110 = call i32 @cli_send(%struct.cli* %105, i8* %106, i64 %109)
%111 = load i8*, i8** %16
%112 = call i32 @free(i8* %111)
br label %123
113: ; preds = %82
%114 = call i32 (i8**, i8*, ...) @asprintf(i8** %17, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%115 = load %struct.cli*, %struct.cli** %5
%116 = load i8*, i8** %17
%117 = load i8*, i8** %17
%118 = call i64 @strlen(i8* %117)
%119 = add nsw i64 %118, 1
%120 = call i32 @cli_send(%struct.cli* %115, i8* %116, i64 %119)
%121 = load i8*, i8** %17
%122 = call i32 @free(i8* %121)
store i32 -1, i32* %4
br label %125
123: ; preds = %85
br label %124
124: ; preds = %123, %64
store i32 0, i32* %4
br label %125
125: ; preds = %124, %113, %20
%126 = load i32, i32* %4
ret i32 %126
}

LLVM IR (-O2):
%struct.cli = type { i32 }
@.str = [25 x i8] c"> argc <= 0 is invalid\0A\0D\00"
@.str.1 = [26 x i8] c"argc = %d, argv[0] = %s\0A\0D\00"
@.str.2 = [15 x i8] c"%d.%d.%d.%d/%d\00"
@.str.3 = [11 x i8] c"num = %d\0A\0D\00"
@.str.4 = [27 x i8] c"ipv4 value = %d.%d.%d.%d\0A\0D\00"
@.str.5 = [12 x i8] c"mask = %d\0A\0D\00"
@.str.6 = [20 x i8] c"> input is wrong?\0A\0D\00"
define i32 @_set_ipv4(%struct.cli* %0, i32 %1, i8** nocapture %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca [4 x i32]
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = icmp slt i32 %1, 1
br i1 %13, label %14, label %23
14: ; preds = %3
%15 = bitcast i8** %4 to i8*
%16 = call i32 (i8**, i8*, ...) @asprintf(i8** %4, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%17 = load i8*, i8** %4
%18 = call i64 @strlen(i8* dereferenceable(1) %17)
%19 = add nsw i64 %18, 1
%20 = call i32 @cli_send(%struct.cli* %0, i8* %17, i64 %19)
%21 = load i8*, i8** %4
%22 = call i32 @free(i8* %21)
br label %95
23: ; preds = %3
%24 = bitcast i8** %5 to i8*
%25 = load i8*, i8** %2
%26 = call i32 (i8**, i8*, ...) @asprintf(i8** %5, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i32 %1, i8* %25)
%27 = load i8*, i8** %5
%28 = call i64 @strlen(i8* dereferenceable(1) %27)
%29 = add nsw i64 %28, 1
%30 = call i32 @cli_send(%struct.cli* %0, i8* %27, i64 %29)
%31 = load i8*, i8** %5
%32 = call i32 @free(i8* %31)
%33 = bitcast [4 x i32]* %6 to i8*
%34 = bitcast i32* %7 to i8*
%35 = load i8*, i8** %2
%36 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%37 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 1
%38 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 2
%39 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 3
%40 = call i32 @sscanf(i8* %35, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32* %36, i32* %37, i32* %38, i32* %39, i32* %7)
%41 = bitcast i8** %8 to i8*
%42 = call i32 (i8**, i8*, ...) @asprintf(i8** %8, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %40)
%43 = load i8*, i8** %8
%44 = call i64 @strlen(i8* dereferenceable(1) %43)
%45 = add nsw i64 %44, 1
%46 = call i32 @cli_send(%struct.cli* %0, i8* %43, i64 %45)
%47 = load i8*, i8** %8
%48 = call i32 @free(i8* %47)
switch i32 %40, label %84 [
i32 4, label %49
i32 5, label %62
]
49: ; preds = %23
%50 = bitcast i8** %9 to i8*
%51 = load i32, i32* %36
%52 = load i32, i32* %37
%53 = load i32, i32* %38
%54 = load i32, i32* %39
%55 = call i32 (i8**, i8*, ...) @asprintf(i8** %9, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i32 %51, i32 %52, i32 %53, i32 %54)
%56 = load i8*, i8** %9
%57 = call i64 @strlen(i8* dereferenceable(1) %56)
%58 = add nsw i64 %57, 1
%59 = call i32 @cli_send(%struct.cli* %0, i8* %56, i64 %58)
%60 = load i8*, i8** %9
%61 = call i32 @free(i8* %60)
br label %93
62: ; preds = %23
%63 = bitcast i8** %10 to i8*
%64 = load i32, i32* %36
%65 = load i32, i32* %37
%66 = load i32, i32* %38
%67 = load i32, i32* %39
%68 = call i32 (i8**, i8*, ...) @asprintf(i8** %10, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i32 %64, i32 %65, i32 %66, i32 %67)
%69 = load i8*, i8** %10
%70 = call i64 @strlen(i8* dereferenceable(1) %69)
%71 = add nsw i64 %70, 1
%72 = call i32 @cli_send(%struct.cli* %0, i8* %69, i64 %71)
%73 = load i8*, i8** %10
%74 = call i32 @free(i8* %73)
%75 = bitcast i8** %11 to i8*
%76 = load i32, i32* %7
%77 = call i32 (i8**, i8*, ...) @asprintf(i8** %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %76)
%78 = load i8*, i8** %11
%79 = call i64 @strlen(i8* dereferenceable(1) %78)
%80 = add nsw i64 %79, 1
%81 = call i32 @cli_send(%struct.cli* %0, i8* %78, i64 %80)
%82 = load i8*, i8** %11
%83 = call i32 @free(i8* %82)
br label %93
84: ; preds = %23
%85 = bitcast i8** %12 to i8*
%86 = call i32 (i8**, i8*, ...) @asprintf(i8** %12, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%87 = load i8*, i8** %12
%88 = call i64 @strlen(i8* dereferenceable(1) %87)
%89 = add nsw i64 %88, 1
%90 = call i32 @cli_send(%struct.cli* %0, i8* %87, i64 %89)
%91 = load i8*, i8** %12
%92 = call i32 @free(i8* %91)
br label %93
93: ; preds = %49, %62, %84
%94 = phi i32 [ -1, %84 ], [ 0, %62 ], [ 0, %49 ]
br label %95
95: ; preds = %93, %14
%96 = phi i32 [ -1, %14 ], [ %94, %93 ]
ret i32 %96
}