#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_ip(int argc, char **argv) {
  if (!strncmp(argv[0], "dhcp", strlen(argv[0])) ||
      (argc == 3 && !strncmp(argv[1], "dhcp", strlen(argv[1])) &&
       (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2]))))) {
    printf("\n\033[1mip dhcp [-options]\033[0m\n"
           "  Attempt to obtain IPv4 address, mask, gateway and DNS via DHCP\n"
           "  options:\n"
           "    -d         Show DHCP packet decode\n"
           "    -r         Renew DHCP lease\n"
           "    -x         Release DHCP lease\n");
    return 1;
  }
  if (argc == 3 && !strncmp(argv[1], "mtu", strlen(argv[1])) &&
      (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2])))) {
    printf("\n\033[1mip mtu <value>\033[0m\n"
           "  Set IPv4 MTU to <value>, at least 576.\n");
    return 1;
  }
  if (argc == 3 && !strncmp(argv[1], "dns", strlen(argv[1])) &&
      (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2])))) {
    printf("\n\033[1mip dns <ip>\033[0m\n"
           "  Set DNS server <ip>, delete if <ip> is '0'\n");
    return 1;
  }
  if (argc == 3 && !strncmp(argv[1], "domain", strlen(argv[1])) &&
      (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2])))) {
    printf("\n\033[1mip domain <name>\033[0m\n"
           "  Sets local domain name. \n"
           "  If there's no '.' in the host name: the name is assumed within "
           "the local domain, \n"
           "  it is a short name relative to the local domain. The resolver "
           "will append the local\n"
           "  domain name to the hostname to resolve it\n");
    return 1;
  }
  printf("\n\033[1mip [arguments]\033[0m\n"
         "  Configure the current VPC's IP settings\n"
         "  arguments:\n"
         "    <address> [/<mask>] [<gateway>]\n"
         "    <address> [<gateway>] [/<mask>]\n"
         "                   Set the VPC's ip, default gateway ip and network "
         "mask\n"
         "                   Default IPv4 mask is /24, IPv6 is /64. In the "
         "ether mode, \n"
         "                   the ip of the tapx is the maximum host ID of the "
         "subnet. \n"
         "                   \033[1mip 10.1.1.70 /26 10.1.1.65\033[0m set the "
         "VPC's ip to 10.1.1.70, \n"
         "                   the gateway to 10.1.1.65, the netmask to "
         "255.255.255.192, \n"
         "                   the tapx ip to 10.1.1.126 in the ether mode.\n"
         "                   </mask> may be written as /26, 26 or "
         "255.255.255.192\n"
         "    auto           Attempt to obtain IPv6 address, mask and gateway "
         "using SLAAC\n"
         "    dhcp -[d|r|x]  Attempt to obtain IPv4 address, mask, gateway, "
         "DNS via DHCP\n"
         "          -d         Show DHCP packet decode\n"
         "          -r         Renew DHCP lease\n"
         "          -x         Release DHCP lease\n"
         "    dns <ip>       Set DNS server <ip>, delete if <ip> is '0'\n"
         "    domain <name>  set local domain name\n"
         "    mtu <value>    Set IPv4 MTU to <value>, at least 576. \n");
  return 1;
}


x86 assembly (clang, -O0):
<help_ip>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1040 <strlen@plt>
mov    -0x18(%rbp),%rdi
mov    %eax,%edx
lea    0xe8d(%rip),%rsi
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1210 <help_ip+0xd0>
cmpl   $0x3,-0x8(%rbp)
jne    1228 <help_ip+0xe8>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <strlen@plt>
mov    -0x20(%rbp),%rdi
mov    %eax,%edx
lea    0xe4f(%rip),%rsi
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1228 <help_ip+0xe8>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe37(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
je     1210 <help_ip+0xd0>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1040 <strlen@plt>
mov    -0x28(%rbp),%rdi
mov    %eax,%edx
lea    0xe05(%rip),%rsi
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1228 <help_ip+0xe8>
lea    0xdf5(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1430 <help_ip+0x2f0>
cmpl   $0x3,-0x8(%rbp)
jne    12cf <help_ip+0x18f>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <strlen@plt>
mov    -0x30(%rbp),%rdi
mov    %eax,%edx
lea    0xe86(%rip),%rsi
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    12cf <help_ip+0x18f>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd90(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
je     12b7 <help_ip+0x177>
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    0xd5e(%rip),%rsi
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    12cf <help_ip+0x18f>
lea    0xe24(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1430 <help_ip+0x2f0>
cmpl   $0x3,-0x8(%rbp)
jne    1376 <help_ip+0x236>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <strlen@plt>
mov    -0x40(%rbp),%rdi
mov    %eax,%edx
lea    0xe25(%rip),%rsi
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1376 <help_ip+0x236>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xce9(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
je     135e <help_ip+0x21e>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1040 <strlen@plt>
mov    -0x48(%rbp),%rdi
mov    %eax,%edx
lea    0xcb7(%rip),%rsi
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1376 <help_ip+0x236>
lea    0xdc3(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1430 <help_ip+0x2f0>
cmpl   $0x3,-0x8(%rbp)
jne    141d <help_ip+0x2dd>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x50(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <strlen@plt>
mov    -0x50(%rbp),%rdi
mov    %eax,%edx
lea    0xdc5(%rip),%rsi
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    141d <help_ip+0x2dd>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xc42(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
je     1405 <help_ip+0x2c5>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1040 <strlen@plt>
mov    -0x58(%rbp),%rdi
mov    %eax,%edx
lea    0xc10(%rip),%rsi
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    141d <help_ip+0x2dd>
lea    0xd66(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1430 <help_ip+0x2f0>
lea    0xe5a(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help_ip>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %edi,%ebp
mov    (%rsi),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
lea    0xea2(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1030 <strncmp@plt>
lea    0xeac(%rip),%rbx
test   %eax,%eax
je     121b <help_ip+0xdb>
cmp    $0x3,%ebp
jne    1214 <help_ip+0xd4>
mov    0x8(%r14),%rbp
mov    %rbp,%rdi
call   1050 <strlen@plt>
lea    0xe6d(%rip),%rsi
mov    %rbp,%rdi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1233 <help_ip+0xf3>
mov    0x8(%r14),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
lea    0xe54(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     126d <help_ip+0x12d>
mov    0x8(%r14),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
lea    0xe33(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     12b1 <help_ip+0x171>
mov    0x8(%r14),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
lea    0xe12(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     12f9 <help_ip+0x1b9>
lea    0xed1(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x10(%r14),%rbp
lea    0xdc7(%rip),%rsi
mov    %rbp,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
je     121b <help_ip+0xdb>
mov    %rbp,%rdi
call   1050 <strlen@plt>
lea    0xdae(%rip),%rsi
mov    %rbp,%rdi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    11a5 <help_ip+0x65>
jmp    121b <help_ip+0xdb>
mov    0x10(%r14),%r15
lea    0xd8d(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
lea    0x1415(%rip),%rbx
test   %eax,%eax
je     121b <help_ip+0xdb>
mov    %r15,%rdi
call   1050 <strlen@plt>
lea    0xd6d(%rip),%rsi
mov    %r15,%rdi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    11ca <help_ip+0x8a>
jmp    121b <help_ip+0xdb>
mov    0x10(%r14),%r15
lea    0xd49(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
lea    0x138f(%rip),%rbx
test   %eax,%eax
je     121b <help_ip+0xdb>
mov    %r15,%rdi
call   1050 <strlen@plt>
lea    0xd25(%rip),%rsi
mov    %r15,%rdi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    11ef <help_ip+0xaf>
jmp    121b <help_ip+0xdb>
mov    0x10(%r14),%r14
lea    0xd01(%rip),%rsi
mov    %r14,%rdi
call   1060 <strcmp@plt>
lea    0x123c(%rip),%rbx
test   %eax,%eax
je     121b <help_ip+0xdb>
mov    %r14,%rdi
call   1050 <strlen@plt>
lea    0xcdd(%rip),%rsi
mov    %r14,%rdi
mov    %eax,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    1214 <help_ip+0xd4>
jmp    121b <help_ip+0xdb>

LLVM IR (-O0):
@.str = [5 x i8] c"dhcp\00"
@.str.1 = [2 x i8] c"?\00"
@.str.2 = [5 x i8] c"help\00"
@.str.3 = [210 x i8] c"\0A\1B[1mip dhcp [-options]\1B[0m\0A Attempt to obtain IPv4 address, mask, gateway and DNS via DHCP\0A options:\0A -d Show DHCP packet decode\0A -r Renew DHCP lease\0A -x Release DHCP lease\0A\00"
@.str.4 = [4 x i8] c"mtu\00"
@.str.5 = [66 x i8] c"\0A\1B[1mip mtu <value>\1B[0m\0A Set IPv4 MTU to <value>, at least 576.\0A\00"
@.str.6 = [4 x i8] c"dns\00"
@.str.7 = [67 x i8] c"\0A\1B[1mip dns <ip>\1B[0m\0A Set DNS server <ip>, delete if <ip> is '0'\0A\00"
@.str.8 = [7 x i8] c"domain\00"
@.str.9 = [268 x i8] c"\0A\1B[1mip domain <name>\1B[0m\0A Sets local domain name. \0A If there's no '.' in the host name: the name is assumed within the local domain, \0A it is a short name relative to the local domain. The resolver will append the local\0A domain name to the hostname to resolve it\0A\00"
@.str.10 = [1124 x i8] c"\0A\1B[1mip [arguments]\1B[0m\0A Configure the current VPC's IP settings\0A arguments:\0A <address> [/<mask>] [<gateway>]\0A <address> [<gateway>] [/<mask>]\0A Set the VPC's ip, default gateway ip and network mask\0A Default IPv4 mask is /24, IPv6 is /64. In the ether mode, \0A the ip of the tapx is the maximum host ID of the subnet. \0A \1B[1mip 10.1.1.70 /26 10.1.1.65\1B[0m set the VPC's ip to 10.1.1.70, \0A the gateway to 10.1.1.65, the netmask to 255.255.255.192, \0A the tapx ip to 10.1.1.126 in the ether mode.\0A </mask> may be written as /26, 26 or 255.255.255.192\0A auto Attempt to obtain IPv6 address, mask and gateway using SLAAC\0A dhcp -[d|r|x] Attempt to obtain IPv4 address, mask, gateway, DNS via DHCP\0A -d Show DHCP packet decode\0A -r Renew DHCP lease\0A -x Release DHCP lease\0A dns <ip> Set DNS server <ip>, delete if <ip> is '0'\0A domain <name> set local domain name\0A mtu <value> Set IPv4 MTU to <value>, at least 576. \0A\00"
define i32 @help_ip(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 i8**, i8*** %5
%7 = getelementptr inbounds i8*, i8** %6, i64 0
%8 = load i8*, i8** %7
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 0
%11 = load i8*, i8** %10
%12 = call i32 @strlen(i8* %11)
%13 = call i32 @strncmp(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %12)
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %44
15: ; preds = %2
%16 = load i32, i32* %4
%17 = icmp eq i32 %16, 3
br i1 %17, label %18, label %46
18: ; preds = %15
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%21 = load i8*, i8** %20
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = call i32 @strlen(i8* %24)
%26 = call i32 @strncmp(i8* %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %25)
%27 = icmp ne i32 %26, 0
br i1 %27, label %46, label %28
28: ; preds = %18
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 2
%31 = load i8*, i8** %30
%32 = call i32 @strcmp(i8* %31, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %44
34: ; preds = %28
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 2
%37 = load i8*, i8** %36
%38 = load i8**, i8*** %5
%39 = getelementptr inbounds i8*, i8** %38, i64 2
%40 = load i8*, i8** %39
%41 = call i32 @strlen(i8* %40)
%42 = call i32 @strncmp(i8* %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %41)
%43 = icmp ne i32 %42, 0
br i1 %43, label %46, label %44
44: ; preds = %34, %28, %2
%45 = call i32 @printf(i8* getelementptr inbounds ([210 x i8], [210 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %3
br label %141
46: ; preds = %34, %18, %15
%47 = load i32, i32* %4
%48 = icmp eq i32 %47, 3
br i1 %48, label %49, label %77
49: ; preds = %46
%50 = load i8**, i8*** %5
%51 = getelementptr inbounds i8*, i8** %50, i64 1
%52 = load i8*, i8** %51
%53 = load i8**, i8*** %5
%54 = getelementptr inbounds i8*, i8** %53, i64 1
%55 = load i8*, i8** %54
%56 = call i32 @strlen(i8* %55)
%57 = call i32 @strncmp(i8* %52, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %56)
%58 = icmp ne i32 %57, 0
br i1 %58, label %77, label %59
59: ; preds = %49
%60 = load i8**, i8*** %5
%61 = getelementptr inbounds i8*, i8** %60, i64 2
%62 = load i8*, i8** %61
%63 = call i32 @strcmp(i8* %62, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %75
65: ; preds = %59
%66 = load i8**, i8*** %5
%67 = getelementptr inbounds i8*, i8** %66, i64 2
%68 = load i8*, i8** %67
%69 = load i8**, i8*** %5
%70 = getelementptr inbounds i8*, i8** %69, i64 2
%71 = load i8*, i8** %70
%72 = call i32 @strlen(i8* %71)
%73 = call i32 @strncmp(i8* %68, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %72)
%74 = icmp ne i32 %73, 0
br i1 %74, label %77, label %75
75: ; preds = %65, %59
%76 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i64 0, i64 0))
store i32 1, i32* %3
br label %141
77: ; preds = %65, %49, %46
%78 = load i32, i32* %4
%79 = icmp eq i32 %78, 3
br i1 %79, label %80, label %108
80: ; preds = %77
%81 = load i8**, i8*** %5
%82 = getelementptr inbounds i8*, i8** %81, i64 1
%83 = load i8*, i8** %82
%84 = load i8**, i8*** %5
%85 = getelementptr inbounds i8*, i8** %84, i64 1
%86 = load i8*, i8** %85
%87 = call i32 @strlen(i8* %86)
%88 = call i32 @strncmp(i8* %83, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %87)
%89 = icmp ne i32 %88, 0
br i1 %89, label %108, label %90
90: ; preds = %80
%91 = load i8**, i8*** %5
%92 = getelementptr inbounds i8*, i8** %91, i64 2
%93 = load i8*, i8** %92
%94 = call i32 @strcmp(i8* %93, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %106
96: ; preds = %90
%97 = load i8**, i8*** %5
%98 = getelementptr inbounds i8*, i8** %97, i64 2
%99 = load i8*, i8** %98
%100 = load i8**, i8*** %5
%101 = getelementptr inbounds i8*, i8** %100, i64 2
%102 = load i8*, i8** %101
%103 = call i32 @strlen(i8* %102)
%104 = call i32 @strncmp(i8* %99, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %103)
%105 = icmp ne i32 %104, 0
br i1 %105, label %108, label %106
106: ; preds = %96, %90
%107 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.7, i64 0, i64 0))
store i32 1, i32* %3
br label %141
108: ; preds = %96, %80, %77
%109 = load i32, i32* %4
%110 = icmp eq i32 %109, 3
br i1 %110, label %111, label %139
111: ; preds = %108
%112 = load i8**, i8*** %5
%113 = getelementptr inbounds i8*, i8** %112, i64 1
%114 = load i8*, i8** %113
%115 = load i8**, i8*** %5
%116 = getelementptr inbounds i8*, i8** %115, i64 1
%117 = load i8*, i8** %116
%118 = call i32 @strlen(i8* %117)
%119 = call i32 @strncmp(i8* %114, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 %118)
%120 = icmp ne i32 %119, 0
br i1 %120, label %139, label %121
121: ; preds = %111
%122 = load i8**, i8*** %5
%123 = getelementptr inbounds i8*, i8** %122, i64 2
%124 = load i8*, i8** %123
%125 = call i32 @strcmp(i8* %124, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%126 = icmp ne i32 %125, 0
br i1 %126, label %127, label %137
127: ; preds = %121
%128 = load i8**, i8*** %5
%129 = getelementptr inbounds i8*, i8** %128, i64 2
%130 = load i8*, i8** %129
%131 = load i8**, i8*** %5
%132 = getelementptr inbounds i8*, i8** %131, i64 2
%133 = load i8*, i8** %132
%134 = call i32 @strlen(i8* %133)
%135 = call i32 @strncmp(i8* %130, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %134)
%136 = icmp ne i32 %135, 0
br i1 %136, label %139, label %137
137: ; preds = %127, %121
%138 = call i32 @printf(i8* getelementptr inbounds ([268 x i8], [268 x i8]* @.str.9, i64 0, i64 0))
store i32 1, i32* %3
br label %141
139: ; preds = %127, %111, %108
%140 = call i32 @printf(i8* getelementptr inbounds ([1124 x i8], [1124 x i8]* @.str.10, i64 0, i64 0))
store i32 1, i32* %3
br label %141
141: ; preds = %139, %137, %106, %75, %44
%142 = load i32, i32* %3
ret i32 %142
}

LLVM IR (-O2):
@.str = [5 x i8] c"dhcp\00"
@.str.1 = [2 x i8] c"?\00"
@.str.2 = [5 x i8] c"help\00"
@.str.4 = [4 x i8] c"mtu\00"
@.str.6 = [4 x i8] c"dns\00"
@.str.8 = [7 x i8] c"domain\00"
@str = [209 x i8] c"\0A\1B[1mip dhcp [-options]\1B[0m\0A Attempt to obtain IPv4 address, mask, gateway and DNS via DHCP\0A options:\0A -d Show DHCP packet decode\0A -r Renew DHCP lease\0A -x Release DHCP lease\00"
@str.11 = [1123 x i8] c"\0A\1B[1mip [arguments]\1B[0m\0A Configure the current VPC's IP settings\0A arguments:\0A <address> [/<mask>] [<gateway>]\0A <address> [<gateway>] [/<mask>]\0A Set the VPC's ip, default gateway ip and network mask\0A Default IPv4 mask is /24, IPv6 is /64. In the ether mode, \0A the ip of the tapx is the maximum host ID of the subnet. \0A \1B[1mip 10.1.1.70 /26 10.1.1.65\1B[0m set the VPC's ip to 10.1.1.70, \0A the gateway to 10.1.1.65, the netmask to 255.255.255.192, \0A the tapx ip to 10.1.1.126 in the ether mode.\0A </mask> may be written as /26, 26 or 255.255.255.192\0A auto Attempt to obtain IPv6 address, mask and gateway using SLAAC\0A dhcp -[d|r|x] Attempt to obtain IPv4 address, mask, gateway, DNS via DHCP\0A -d Show DHCP packet decode\0A -r Renew DHCP lease\0A -x Release DHCP lease\0A dns <ip> Set DNS server <ip>, delete if <ip> is '0'\0A domain <name> set local domain name\0A mtu <value> Set IPv4 MTU to <value>, at least 576. \00"
@str.12 = [267 x i8] c"\0A\1B[1mip domain <name>\1B[0m\0A Sets local domain name. \0A If there's no '.' in the host name: the name is assumed within the local domain, \0A it is a short name relative to the local domain. The resolver will append the local\0A domain name to the hostname to resolve it\00"
@str.13 = [66 x i8] c"\0A\1B[1mip dns <ip>\1B[0m\0A Set DNS server <ip>, delete if <ip> is '0'\00"
@str.14 = [65 x i8] c"\0A\1B[1mip mtu <value>\1B[0m\0A Set IPv4 MTU to <value>, at least 576.\00"
define i32 @help_ip(i32 %0, i8** nocapture %1) {
%3 = load i8*, i8** %1
%4 = tail call i32 @strlen(i8* %3)
%5 = tail call i32 @strncmp(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = icmp eq i32 %5, 0
br i1 %6, label %67, label %7
7: ; preds = %2
%8 = icmp eq i32 %0, 3
br i1 %8, label %9, label %66
9: ; preds = %7
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32 @strlen(i8* %11)
%13 = tail call i32 @strncmp(i8* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %12)
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %24
15: ; preds = %9
%16 = getelementptr inbounds i8*, i8** %1, i64 2
%17 = load i8*, i8** %16
%18 = tail call i32 @strcmp(i8* dereferenceable(1) %17, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
br i1 %19, label %67, label %20
20: ; preds = %15
%21 = tail call i32 @strlen(i8* %17)
%22 = tail call i32 @strncmp(i8* %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %21)
%23 = icmp eq i32 %22, 0
br i1 %23, label %67, label %24
24: ; preds = %9, %20
%25 = load i8*, i8** %10
%26 = tail call i32 @strlen(i8* %25)
%27 = tail call i32 @strncmp(i8* %25, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %26)
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %38
29: ; preds = %24
%30 = getelementptr inbounds i8*, i8** %1, i64 2
%31 = load i8*, i8** %30
%32 = tail call i32 @strcmp(i8* dereferenceable(1) %31, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%33 = icmp eq i32 %32, 0
br i1 %33, label %67, label %34
34: ; preds = %29
%35 = tail call i32 @strlen(i8* %31)
%36 = tail call i32 @strncmp(i8* %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %35)
%37 = icmp eq i32 %36, 0
br i1 %37, label %67, label %38
38: ; preds = %24, %34
%39 = load i8*, i8** %10
%40 = tail call i32 @strlen(i8* %39)
%41 = tail call i32 @strncmp(i8* %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %40)
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %52
43: ; preds = %38
%44 = getelementptr inbounds i8*, i8** %1, i64 2
%45 = load i8*, i8** %44
%46 = tail call i32 @strcmp(i8* dereferenceable(1) %45, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%47 = icmp eq i32 %46, 0
br i1 %47, label %67, label %48
48: ; preds = %43
%49 = tail call i32 @strlen(i8* %45)
%50 = tail call i32 @strncmp(i8* %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %49)
%51 = icmp eq i32 %50, 0
br i1 %51, label %67, label %52
52: ; preds = %38, %48
%53 = load i8*, i8** %10
%54 = tail call i32 @strlen(i8* %53)
%55 = tail call i32 @strncmp(i8* %53, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 %54)
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %66
57: ; preds = %52
%58 = getelementptr inbounds i8*, i8** %1, i64 2
%59 = load i8*, i8** %58
%60 = tail call i32 @strcmp(i8* dereferenceable(1) %59, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%61 = icmp eq i32 %60, 0
br i1 %61, label %67, label %62
62: ; preds = %57
%63 = tail call i32 @strlen(i8* %59)
%64 = tail call i32 @strncmp(i8* %59, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %63)
%65 = icmp eq i32 %64, 0
br i1 %65, label %67, label %66
66: ; preds = %7, %62, %52
br label %67
67: ; preds = %57, %62, %43, %48, %29, %34, %2, %15, %20, %66
%68 = phi i8* [ getelementptr inbounds ([1123 x i8], [1123 x i8]* @str.11, i64 0, i64 0), %66 ], [ getelementptr inbounds ([209 x i8], [209 x i8]* @str, i64 0, i64 0), %20 ], [ getelementptr inbounds ([209 x i8], [209 x i8]* @str, i64 0, i64 0), %15 ], [ getelementptr inbounds ([209 x i8], [209 x i8]* @str, i64 0, i64 0), %2 ], [ getelementptr inbounds ([65 x i8], [65 x i8]* @str.14, i64 0, i64 0), %34 ], [ getelementptr inbounds ([65 x i8], [65 x i8]* @str.14, i64 0, i64 0), %29 ], [ getelementptr inbounds ([66 x i8], [66 x i8]* @str.13, i64 0, i64 0), %48 ], [ getelementptr inbounds ([66 x i8], [66 x i8]* @str.13, i64 0, i64 0), %43 ], [ getelementptr inbounds ([267 x i8], [267 x i8]* @str.12, i64 0, i64 0), %62 ], [ getelementptr inbounds ([267 x i8], [267 x i8]* @str.12, i64 0, i64 0), %57 ]
%69 = tail call i32 @puts(i8* dereferenceable(1) %68)
ret i32 1
}