#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*/ printf(char *);
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ strlen(char *);
int /*<<< orphan*/ strncmp(char *, char *, int /*<<< orphan*/);
int help_show(int argc, char **argv) {
  if (argc == 3 && !strncmp(argv[1], "arp", strlen(argv[1])) &&
      (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2])))) {
    printf("\n\033[1mshow arp [<digit>|all]\033[0m\n"
           "  Show arp table for VPC <digit> (default this VPC) or all VPCs\n");
    return 1;
  }
  if (argc == 3 && !strncmp(argv[1], "dump", strlen(argv[1])) &&
      (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2])))) {
    printf(
        "\n\033[1mshow dump [<digit>|all]\033[0m\n"
        "  Show dump flags for VPC <digit> (default this VPC) or all VPCs\n");
    return 1;
  }
  if (argc == 3 && !strcmp(argv[1], "ip") &&
      (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2])))) {
    printf("\n\033[1mshow ip [<digit>|all]\033[0m\n"
           "  Show IPv4 details for VPC <digit> (default this VPC) or all "
           "VPCs, including\n"
           "  VPC Name, IP address, mask, gateway, DNS, MAC, lport, "
           "rhost:rport and MTU.\n");
    return 1;
  }
  if (argc == 3 && !strcmp(argv[1], "ipv6") &&
      (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2])))) {
    printf("\n\033[1mshow ipv6 [<digit>|all]\033[0m\n"
           "  Show IPv6 details for VPC <digit> (default this VPC) or all "
           "VPCs, including\n"
           "  VPC Name, IP address, mask, gateway, DNS, MAC, lport, "
           "rhost:rport and MTU\n");
    return 1;
  }
  if (argc > 1 && (!strcmp(argv[argc - 1], "?") ||
                   !strncmp(argv[argc - 1], "help", strlen(argv[argc - 1])))) {
    printf(
        "\n\033[1mshow [arp [<digit>|all]|dump|echo|history|ip "
        "[<digit>|all]|ipv6 [<digit>|all]]\033[0m\n"
        "    arp [<digit>|all]   Show arp table for VPC <digit> or all VPCs\n"
        "    dump [<digit>|all]  Show dump flags for VPC <digit> or all VPCs\n"
        "    echo                Show the status of the echo flag. see "
        "\033[1mset echo\033[0m\n"
        "    history             List the command history\n"
        "    ip [<digit>|all]    Show IPv4 details for VPC <digit> or all "
        "VPCs\n"
        "                        Shows VPC Name, IP address, mask, gateway, "
        "DNS, MAC, \n"
        "                        lport, rhost:rport and MTU\n"
        "    ipv6 [<digit>|all]  Show IPv6 details for VPC <digit> or all "
        "VPCs\n"
        "                        Shows VPC Name, IPv6 addresses/mask, gateway, "
        "MAC,\n"
        "                        lport, rhost:rport and MTU\n"
        "    version             Show the version information\n\n"
        "  Notes: if <digit> and <all> are missing, "
        "\033[1marp\033[0m/\033[1mdump\033[0m/\033[1mip\033[0m/"
        "\033[1mipv6\033[0m will display\n"
        "         the current VPC.\n");
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<help_show>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jne    11f6 <help_show+0xb6>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <strlen@plt>
mov    -0x18(%rbp),%rdi
mov    %eax,%edx
lea    0xe81(%rip),%rsi
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    11f6 <help_show+0xb6>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe68(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
je     11de <help_show+0x9e>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1040 <strlen@plt>
mov    -0x20(%rbp),%rdi
mov    %eax,%edx
lea    0xe36(%rip),%rsi
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    11f6 <help_show+0xb6>
lea    0xe26(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1452 <help_show+0x312>
cmpl   $0x3,-0x8(%rbp)
jne    129d <help_show+0x15d>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <strlen@plt>
mov    -0x28(%rbp),%rdi
mov    %eax,%edx
lea    0xe46(%rip),%rsi
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    129d <help_show+0x15d>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xdc1(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
je     1285 <help_show+0x145>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1040 <strlen@plt>
mov    -0x30(%rbp),%rdi
mov    %eax,%edx
lea    0xd8f(%rip),%rsi
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    129d <help_show+0x15d>
lea    0xde5(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1452 <help_show+0x312>
cmpl   $0x3,-0x8(%rbp)
jne    132d <help_show+0x1ed>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe1e(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    132d <help_show+0x1ed>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd31(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
je     1315 <help_show+0x1d5>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1040 <strlen@plt>
mov    -0x38(%rbp),%rdi
mov    %eax,%edx
lea    0xcff(%rip),%rsi
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    132d <help_show+0x1ed>
lea    0xdbb(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1452 <help_show+0x312>
cmpl   $0x3,-0x8(%rbp)
jne    13bd <help_show+0x27d>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe4c(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    13bd <help_show+0x27d>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xca1(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
je     13a5 <help_show+0x265>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1040 <strlen@plt>
mov    -0x40(%rbp),%rdi
mov    %eax,%edx
lea    0xc6f(%rip),%rsi
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    13bd <help_show+0x27d>
lea    0xdeb(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1452 <help_show+0x312>
cmpl   $0x1,-0x8(%rbp)
jle    144b <help_show+0x30b>
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc25(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
je     1433 <help_show+0x2f3>
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <strlen@plt>
mov    -0x48(%rbp),%rdi
mov    %eax,%edx
lea    0xbe1(%rip),%rsi
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    144b <help_show+0x30b>
lea    0xe19(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1452 <help_show+0x312>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help_show>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rsi,%r14
mov    %edi,%r13d
cmp    $0x3,%edi
jne    1257 <help_show+0x117>
mov    0x8(%r14),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
lea    0xe95(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     12b3 <help_show+0x173>
mov    0x8(%r14),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
lea    0xe7b(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     12f4 <help_show+0x1b4>
mov    0x8(%r14),%rbx
lea    0xe63(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    1200 <help_show+0xc0>
mov    0x10(%r14),%r12
lea    0xe40(%rip),%rsi
mov    %r12,%rdi
call   1060 <strcmp@plt>
lea    0x12a3(%rip),%r15
test   %eax,%eax
je     1333 <help_show+0x1f3>
mov    %r12,%rdi
call   1050 <strlen@plt>
lea    0xe1c(%rip),%rsi
mov    %r12,%rdi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1333 <help_show+0x1f3>
mov    0x8(%r14),%rbx
lea    0xe0c(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    1263 <help_show+0x123>
mov    0x10(%r14),%r12
lea    0xde6(%rip),%rsi
mov    %r12,%rdi
call   1060 <strcmp@plt>
lea    0x118e(%rip),%r15
test   %eax,%eax
je     1333 <help_show+0x1f3>
mov    %r12,%rdi
call   1050 <strlen@plt>
lea    0xdc2(%rip),%rsi
mov    %r12,%rdi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    1263 <help_show+0x123>
jmp    1333 <help_show+0x1f3>
xor    %eax,%eax
cmp    $0x2,%r13d
jl     1340 <help_show+0x200>
add    $0xffffffff,%r13d
mov    (%r14,%r13,8),%rbx
lea    0xd92(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
lea    0xd97(%rip),%r15
test   %eax,%eax
je     1333 <help_show+0x1f3>
mov    %rbx,%rdi
call   1050 <strlen@plt>
lea    0xd6e(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1030 <strncmp@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
jne    1340 <help_show+0x200>
jmp    1333 <help_show+0x1f3>
mov    0x10(%r14),%r12
lea    0xd46(%rip),%rsi
mov    %r12,%rdi
call   1060 <strcmp@plt>
lea    0x12c5(%rip),%r15
test   %eax,%eax
je     1333 <help_show+0x1f3>
mov    %r12,%rdi
call   1050 <strlen@plt>
lea    0xd26(%rip),%rsi
mov    %r12,%rdi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    117d <help_show+0x3d>
jmp    1333 <help_show+0x1f3>
mov    0x10(%r14),%r12
lea    0xd05(%rip),%rsi
mov    %r12,%rdi
call   1060 <strcmp@plt>
lea    0x1222(%rip),%r15
test   %eax,%eax
je     1333 <help_show+0x1f3>
mov    %r12,%rdi
call   1050 <strlen@plt>
lea    0xce5(%rip),%rsi
mov    %r12,%rdi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    11a2 <help_show+0x62>
mov    %r15,%rdi
call   1040 <puts@plt>
mov    $0x1,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [4 x i8] c"arp\00"
@.str.1 = [2 x i8] c"?\00"
@.str.2 = [5 x i8] c"help\00"
@.str.3 = [97 x i8] c"\0A\1B[1mshow arp [<digit>|all]\1B[0m\0A Show arp table for VPC <digit> (default this VPC) or all VPCs\0A\00"
@.str.4 = [5 x i8] c"dump\00"
@.str.5 = [99 x i8] c"\0A\1B[1mshow dump [<digit>|all]\1B[0m\0A Show dump flags for VPC <digit> (default this VPC) or all VPCs\0A\00"
@.str.6 = [3 x i8] c"ip\00"
@.str.7 = [187 x i8] c"\0A\1B[1mshow ip [<digit>|all]\1B[0m\0A Show IPv4 details for VPC <digit> (default this VPC) or all VPCs, including\0A VPC Name, IP address, mask, gateway, DNS, MAC, lport, rhost:rport and MTU.\0A\00"
@.str.8 = [5 x i8] c"ipv6\00"
@.str.9 = [188 x i8] c"\0A\1B[1mshow ipv6 [<digit>|all]\1B[0m\0A Show IPv6 details for VPC <digit> (default this VPC) or all VPCs, including\0A VPC Name, IP address, mask, gateway, DNS, MAC, lport, rhost:rport and MTU\0A\00"
@.str.10 = [932 x i8] c"\0A\1B[1mshow [arp [<digit>|all]|dump|echo|history|ip [<digit>|all]|ipv6 [<digit>|all]]\1B[0m\0A arp [<digit>|all] Show arp table for VPC <digit> or all VPCs\0A dump [<digit>|all] Show dump flags for VPC <digit> or all VPCs\0A echo Show the status of the echo flag. see \1B[1mset echo\1B[0m\0A history List the command history\0A ip [<digit>|all] Show IPv4 details for VPC <digit> or all VPCs\0A Shows VPC Name, IP address, mask, gateway, DNS, MAC, \0A lport, rhost:rport and MTU\0A ipv6 [<digit>|all] Show IPv6 details for VPC <digit> or all VPCs\0A Shows VPC Name, IPv6 addresses/mask, gateway, MAC,\0A lport, rhost:rport and MTU\0A version Show the version information\0A\0A Notes: if <digit> and <all> are missing, \1B[1marp\1B[0m/\1B[1mdump\1B[0m/\1B[1mip\1B[0m/\1B[1mipv6\1B[0m will display\0A the current VPC.\0A\00"
define i32 @help_show(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp eq i32 %6, 3
br i1 %7, label %8, label %36
8: ; preds = %2
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 1
%11 = load i8*, i8** %10
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 1
%14 = load i8*, i8** %13
%15 = call i32 @strlen(i8* %14)
%16 = call i32 @strncmp(i8* %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %36, label %18
18: ; preds = %8
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 2
%21 = load i8*, i8** %20
%22 = call i32 @strcmp(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %34
24: ; preds = %18
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 2
%27 = load i8*, i8** %26
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 2
%30 = load i8*, i8** %29
%31 = call i32 @strlen(i8* %30)
%32 = call i32 @strncmp(i8* %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %31)
%33 = icmp ne i32 %32, 0
br i1 %33, label %36, label %34
34: ; preds = %24, %18
%35 = call i32 @printf(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %3
br label %152
36: ; preds = %24, %8, %2
%37 = load i32, i32* %4
%38 = icmp eq i32 %37, 3
br i1 %38, label %39, label %67
39: ; preds = %36
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i64 1
%42 = load i8*, i8** %41
%43 = load i8**, i8*** %5
%44 = getelementptr inbounds i8*, i8** %43, i64 1
%45 = load i8*, i8** %44
%46 = call i32 @strlen(i8* %45)
%47 = call i32 @strncmp(i8* %42, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %46)
%48 = icmp ne i32 %47, 0
br i1 %48, label %67, label %49
49: ; preds = %39
%50 = load i8**, i8*** %5
%51 = getelementptr inbounds i8*, i8** %50, i64 2
%52 = load i8*, i8** %51
%53 = call i32 @strcmp(i8* %52, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %65
55: ; preds = %49
%56 = load i8**, i8*** %5
%57 = getelementptr inbounds i8*, i8** %56, i64 2
%58 = load i8*, i8** %57
%59 = load i8**, i8*** %5
%60 = getelementptr inbounds i8*, i8** %59, i64 2
%61 = load i8*, i8** %60
%62 = call i32 @strlen(i8* %61)
%63 = call i32 @strncmp(i8* %58, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %62)
%64 = icmp ne i32 %63, 0
br i1 %64, label %67, label %65
65: ; preds = %55, %49
%66 = call i32 @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.5, i64 0, i64 0))
store i32 1, i32* %3
br label %152
67: ; preds = %55, %39, %36
%68 = load i32, i32* %4
%69 = icmp eq i32 %68, 3
br i1 %69, label %70, label %94
70: ; preds = %67
%71 = load i8**, i8*** %5
%72 = getelementptr inbounds i8*, i8** %71, i64 1
%73 = load i8*, i8** %72
%74 = call i32 @strcmp(i8* %73, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%75 = icmp ne i32 %74, 0
br i1 %75, label %94, label %76
76: ; preds = %70
%77 = load i8**, i8*** %5
%78 = getelementptr inbounds i8*, i8** %77, i64 2
%79 = load i8*, i8** %78
%80 = call i32 @strcmp(i8* %79, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %92
82: ; preds = %76
%83 = load i8**, i8*** %5
%84 = getelementptr inbounds i8*, i8** %83, i64 2
%85 = load i8*, i8** %84
%86 = load i8**, i8*** %5
%87 = getelementptr inbounds i8*, i8** %86, i64 2
%88 = load i8*, i8** %87
%89 = call i32 @strlen(i8* %88)
%90 = call i32 @strncmp(i8* %85, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %89)
%91 = icmp ne i32 %90, 0
br i1 %91, label %94, label %92
92: ; preds = %82, %76
%93 = call i32 @printf(i8* getelementptr inbounds ([187 x i8], [187 x i8]* @.str.7, i64 0, i64 0))
store i32 1, i32* %3
br label %152
94: ; preds = %82, %70, %67
%95 = load i32, i32* %4
%96 = icmp eq i32 %95, 3
br i1 %96, label %97, label %121
97: ; preds = %94
%98 = load i8**, i8*** %5
%99 = getelementptr inbounds i8*, i8** %98, i64 1
%100 = load i8*, i8** %99
%101 = call i32 @strcmp(i8* %100, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%102 = icmp ne i32 %101, 0
br i1 %102, label %121, label %103
103: ; preds = %97
%104 = load i8**, i8*** %5
%105 = getelementptr inbounds i8*, i8** %104, i64 2
%106 = load i8*, i8** %105
%107 = call i32 @strcmp(i8* %106, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %119
109: ; preds = %103
%110 = load i8**, i8*** %5
%111 = getelementptr inbounds i8*, i8** %110, i64 2
%112 = load i8*, i8** %111
%113 = load i8**, i8*** %5
%114 = getelementptr inbounds i8*, i8** %113, i64 2
%115 = load i8*, i8** %114
%116 = call i32 @strlen(i8* %115)
%117 = call i32 @strncmp(i8* %112, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %116)
%118 = icmp ne i32 %117, 0
br i1 %118, label %121, label %119
119: ; preds = %109, %103
%120 = call i32 @printf(i8* getelementptr inbounds ([188 x i8], [188 x i8]* @.str.9, i64 0, i64 0))
store i32 1, i32* %3
br label %152
121: ; preds = %109, %97, %94
%122 = load i32, i32* %4
%123 = icmp sgt i32 %122, 1
br i1 %123, label %124, label %151
124: ; preds = %121
%125 = load i8**, i8*** %5
%126 = load i32, i32* %4
%127 = sub nsw i32 %126, 1
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i8*, i8** %125, i64 %128
%130 = load i8*, i8** %129
%131 = call i32 @strcmp(i8* %130, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%132 = icmp ne i32 %131, 0
br i1 %132, label %133, label %149
133: ; preds = %124
%134 = load i8**, i8*** %5
%135 = load i32, i32* %4
%136 = sub nsw i32 %135, 1
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds i8*, i8** %134, i64 %137
%139 = load i8*, i8** %138
%140 = load i8**, i8*** %5
%141 = load i32, i32* %4
%142 = sub nsw i32 %141, 1
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds i8*, i8** %140, i64 %143
%145 = load i8*, i8** %144
%146 = call i32 @strlen(i8* %145)
%147 = call i32 @strncmp(i8* %139, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %146)
%148 = icmp ne i32 %147, 0
br i1 %148, label %151, label %149
149: ; preds = %133, %124
%150 = call i32 @printf(i8* getelementptr inbounds ([932 x i8], [932 x i8]* @.str.10, i64 0, i64 0))
store i32 1, i32* %3
br label %152
151: ; preds = %133, %121
store i32 0, i32* %3
br label %152
152: ; preds = %151, %149, %119, %92, %65, %34
%153 = load i32, i32* %3
ret i32 %153
}

LLVM IR (-O2):
@.str = [4 x i8] c"arp\00"
@.str.1 = [2 x i8] c"?\00"
@.str.2 = [5 x i8] c"help\00"
@.str.4 = [5 x i8] c"dump\00"
@.str.6 = [3 x i8] c"ip\00"
@.str.8 = [5 x i8] c"ipv6\00"
@str = [931 x i8] c"\0A\1B[1mshow [arp [<digit>|all]|dump|echo|history|ip [<digit>|all]|ipv6 [<digit>|all]]\1B[0m\0A arp [<digit>|all] Show arp table for VPC <digit> or all VPCs\0A dump [<digit>|all] Show dump flags for VPC <digit> or all VPCs\0A echo Show the status of the echo flag. see \1B[1mset echo\1B[0m\0A history List the command history\0A ip [<digit>|all] Show IPv4 details for VPC <digit> or all VPCs\0A Shows VPC Name, IP address, mask, gateway, DNS, MAC, \0A lport, rhost:rport and MTU\0A ipv6 [<digit>|all] Show IPv6 details for VPC <digit> or all VPCs\0A Shows VPC Name, IPv6 addresses/mask, gateway, MAC,\0A lport, rhost:rport and MTU\0A version Show the version information\0A\0A Notes: if <digit> and <all> are missing, \1B[1marp\1B[0m/\1B[1mdump\1B[0m/\1B[1mip\1B[0m/\1B[1mipv6\1B[0m will display\0A the current VPC.\00"
@str.11 = [187 x i8] c"\0A\1B[1mshow ipv6 [<digit>|all]\1B[0m\0A Show IPv6 details for VPC <digit> (default this VPC) or all VPCs, including\0A VPC Name, IP address, mask, gateway, DNS, MAC, lport, rhost:rport and MTU\00"
@str.12 = [186 x i8] c"\0A\1B[1mshow ip [<digit>|all]\1B[0m\0A Show IPv4 details for VPC <digit> (default this VPC) or all VPCs, including\0A VPC Name, IP address, mask, gateway, DNS, MAC, lport, rhost:rport and MTU.\00"
@str.13 = [98 x i8] c"\0A\1B[1mshow dump [<digit>|all]\1B[0m\0A Show dump flags for VPC <digit> (default this VPC) or all VPCs\00"
@str.14 = [96 x i8] c"\0A\1B[1mshow arp [<digit>|all]\1B[0m\0A Show arp table for VPC <digit> (default this VPC) or all VPCs\00"
define i32 @help_show(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 3
br i1 %3, label %4, label %61
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32 @strlen(i8* %6)
%8 = tail call i32 @strncmp(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %19
10: ; preds = %4
%11 = getelementptr inbounds i8*, i8** %1, i64 2
%12 = load i8*, i8** %11
%13 = tail call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
br i1 %14, label %74, label %15
15: ; preds = %10
%16 = tail call i32 @strlen(i8* %12)
%17 = tail call i32 @strncmp(i8* %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %16)
%18 = icmp eq i32 %17, 0
br i1 %18, label %74, label %19
19: ; preds = %4, %15
%20 = load i8*, i8** %5
%21 = tail call i32 @strlen(i8* %20)
%22 = tail call i32 @strncmp(i8* %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %21)
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %33
24: ; preds = %19
%25 = getelementptr inbounds i8*, i8** %1, i64 2
%26 = load i8*, i8** %25
%27 = tail call i32 @strcmp(i8* dereferenceable(1) %26, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%28 = icmp eq i32 %27, 0
br i1 %28, label %74, label %29
29: ; preds = %24
%30 = tail call i32 @strlen(i8* %26)
%31 = tail call i32 @strncmp(i8* %26, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %30)
%32 = icmp eq i32 %31, 0
br i1 %32, label %74, label %33
33: ; preds = %19, %29
%34 = load i8*, i8** %5
%35 = tail call i32 @strcmp(i8* dereferenceable(1) %34, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %48
37: ; preds = %33
%38 = getelementptr inbounds i8*, i8** %1, i64 2
%39 = load i8*, i8** %38
%40 = tail call i32 @strcmp(i8* dereferenceable(1) %39, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%41 = icmp eq i32 %40, 0
br i1 %41, label %74, label %42
42: ; preds = %37
%43 = tail call i32 @strlen(i8* %39)
%44 = tail call i32 @strncmp(i8* %39, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %43)
%45 = icmp eq i32 %44, 0
br i1 %45, label %74, label %46
46: ; preds = %42
%47 = load i8*, i8** %5
br label %48
48: ; preds = %46, %33
%49 = phi i8* [ %47, %46 ], [ %34, %33 ]
%50 = tail call i32 @strcmp(i8* dereferenceable(1) %49, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %63
52: ; preds = %48
%53 = getelementptr inbounds i8*, i8** %1, i64 2
%54 = load i8*, i8** %53
%55 = tail call i32 @strcmp(i8* dereferenceable(1) %54, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%56 = icmp eq i32 %55, 0
br i1 %56, label %74, label %57
57: ; preds = %52
%58 = tail call i32 @strlen(i8* %54)
%59 = tail call i32 @strncmp(i8* %54, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %58)
%60 = icmp eq i32 %59, 0
br i1 %60, label %74, label %63
61: ; preds = %2
%62 = icmp sgt i32 %0, 1
br i1 %62, label %63, label %77
63: ; preds = %48, %57, %61
%64 = add nsw i32 %0, -1
%65 = zext i32 %64 to i64
%66 = getelementptr inbounds i8*, i8** %1, i64 %65
%67 = load i8*, i8** %66
%68 = tail call i32 @strcmp(i8* dereferenceable(1) %67, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%69 = icmp eq i32 %68, 0
br i1 %69, label %74, label %70
70: ; preds = %63
%71 = tail call i32 @strlen(i8* %67)
%72 = tail call i32 @strncmp(i8* %67, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %71)
%73 = icmp eq i32 %72, 0
br i1 %73, label %74, label %77
74: ; preds = %63, %70, %52, %57, %37, %42, %24, %29, %10, %15
%75 = phi i8* [ getelementptr inbounds ([96 x i8], [96 x i8]* @str.14, i64 0, i64 0), %15 ], [ getelementptr inbounds ([96 x i8], [96 x i8]* @str.14, i64 0, i64 0), %10 ], [ getelementptr inbounds ([98 x i8], [98 x i8]* @str.13, i64 0, i64 0), %29 ], [ getelementptr inbounds ([98 x i8], [98 x i8]* @str.13, i64 0, i64 0), %24 ], [ getelementptr inbounds ([186 x i8], [186 x i8]* @str.12, i64 0, i64 0), %42 ], [ getelementptr inbounds ([186 x i8], [186 x i8]* @str.12, i64 0, i64 0), %37 ], [ getelementptr inbounds ([187 x i8], [187 x i8]* @str.11, i64 0, i64 0), %57 ], [ getelementptr inbounds ([187 x i8], [187 x i8]* @str.11, i64 0, i64 0), %52 ], [ getelementptr inbounds ([931 x i8], [931 x i8]* @str, i64 0, i64 0), %70 ], [ getelementptr inbounds ([931 x i8], [931 x i8]* @str, i64 0, i64 0), %63 ]
%76 = tail call i32 @puts(i8* dereferenceable(1) %75)
br label %77
77: ; preds = %74, %61, %70
%78 = phi i32 [ 0, %70 ], [ 0, %61 ], [ 1, %74 ]
ret i32 %78
}