#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 */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
uint32_t start_cmd_help(char *optarg) {
  printf("Usage: pofswitch [options] [target] ...\n");
  printf("Options:\n");
  printf("  -%c, --%-24s%-50s\n", 'i', "ip-addr",
         "IP address of the Controller. Default is 192.168.1.1.");
  printf("  -%c, --%-24s%-50s\n", 'p', "port",
         "Connection port number. Default is 6633.");
  printf("  -%c, --%-24s%-50s\n", 'f', "file", "Set config file.");
  printf("  -%c, --%-24s%-50s\n", 't', "test", "Test.");
  printf("  -%c, --%-24s%-50s\n", 'h', "help", "Print help message.");
  printf("  -%c, --%-24s%-50s\n", 'c', "close", "Close the POFSwitch.");
  printf("  -%c, --%-24s%-50s\n", 'v', "version",
         "Print the version number of POFSwitch.");
  printf("\nReport bugs to <lianglsh@mail.ustc.edu.com>\n");
  exit(0);
}


x86 assembly (clang, -O0):
<start_cmd_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0x69,%esi
lea    0xeed(%rip),%rdx
lea    0xeee(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec3(%rip),%rdi
mov    $0x70,%esi
lea    0xf0a(%rip),%rdx
lea    0xf08(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea2(%rip),%rdi
mov    $0x66,%esi
lea    0xf17(%rip),%rdx
lea    0xf15(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe81(%rip),%rdi
mov    $0x74,%esi
lea    0xf0c(%rip),%rdx
lea    0xf0a(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe60(%rip),%rdi
mov    $0x68,%esi
lea    0xef6(%rip),%rdx
lea    0xef4(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe3f(%rip),%rdi
mov    $0x63,%esi
lea    0xeee(%rip),%rdx
lea    0xeed(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe1e(%rip),%rdi
mov    $0x76,%esi
lea    0xee8(%rip),%rdx
lea    0xee9(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<start_cmd_help>:
push   %rbx
lea    0xfcd(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe9(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb0(%rip),%rbx
lea    0xebe(%rip),%rdx
lea    0xebf(%rip),%rcx
mov    %rbx,%rdi
mov    $0x69,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedf(%rip),%rdx
lea    0xedd(%rip),%rcx
mov    %rbx,%rdi
mov    $0x70,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef0(%rip),%rdx
lea    0xeee(%rip),%rcx
mov    %rbx,%rdi
mov    $0x66,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee9(%rip),%rdx
lea    0xee7(%rip),%rcx
mov    %rbx,%rdi
mov    $0x74,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed7(%rip),%rdx
lea    0xed5(%rip),%rcx
mov    %rbx,%rdi
mov    $0x68,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed3(%rip),%rdx
lea    0xed2(%rip),%rcx
mov    %rbx,%rdi
mov    $0x63,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed1(%rip),%rdx
lea    0xed2(%rip),%rcx
mov    %rbx,%rdi
mov    $0x76,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf14(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [41 x i8] c"Usage: pofswitch [options] [target] ...\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [21 x i8] c" -%c, --%-24s%-50s\0A\00"
@.str.3 = [8 x i8] c"ip-addr\00"
@.str.4 = [54 x i8] c"IP address of the Controller. Default is 192.168.1.1.\00"
@.str.5 = [5 x i8] c"port\00"
@.str.6 = [41 x i8] c"Connection port number. Default is 6633.\00"
@.str.7 = [5 x i8] c"file\00"
@.str.8 = [17 x i8] c"Set config file.\00"
@.str.9 = [5 x i8] c"test\00"
@.str.10 = [6 x i8] c"Test.\00"
@.str.11 = [5 x i8] c"help\00"
@.str.12 = [20 x i8] c"Print help message.\00"
@.str.13 = [6 x i8] c"close\00"
@.str.14 = [21 x i8] c"Close the POFSwitch.\00"
@.str.15 = [8 x i8] c"version\00"
@.str.16 = [39 x i8] c"Print the version number of POFSwitch.\00"
@.str.17 = [46 x i8] c"\0AReport bugs to <lianglsh@mail.ustc.edu.com>\0A\00"
define i32 @start_cmd_help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 105, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 112, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 102, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 116, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 104, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 99, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 118, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.16, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0))
%13 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str.2 = [21 x i8] c" -%c, --%-24s%-50s\0A\00"
@.str.3 = [8 x i8] c"ip-addr\00"
@.str.4 = [54 x i8] c"IP address of the Controller. Default is 192.168.1.1.\00"
@.str.5 = [5 x i8] c"port\00"
@.str.6 = [41 x i8] c"Connection port number. Default is 6633.\00"
@.str.7 = [5 x i8] c"file\00"
@.str.8 = [17 x i8] c"Set config file.\00"
@.str.9 = [5 x i8] c"test\00"
@.str.10 = [6 x i8] c"Test.\00"
@.str.11 = [5 x i8] c"help\00"
@.str.12 = [20 x i8] c"Print help message.\00"
@.str.13 = [6 x i8] c"close\00"
@.str.14 = [21 x i8] c"Close the POFSwitch.\00"
@.str.15 = [8 x i8] c"version\00"
@.str.16 = [39 x i8] c"Print the version number of POFSwitch.\00"
@str = [40 x i8] c"Usage: pofswitch [options] [target] ...\00"
@str.18 = [9 x i8] c"Options:\00"
@str.19 = [45 x i8] c"\0AReport bugs to <lianglsh@mail.ustc.edu.com>\00"
define i32 @start_cmd_help(i8* nocapture readnone %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.18, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 105, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 112, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 102, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 116, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 104, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 99, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 118, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.16, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.19, i64 0, i64 0))
%12 = tail call i32 @exit(i32 0)
unreachable
}