#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*/ CmdLO_Add(char *, char *);
int /*<<< orphan*/ CmdLO_AddDefaultParameter(char *, char *);
int /*<<< orphan*/ CmdLO_AddDescription(char *, char *);
int /*<<< orphan*/ CmdLO_AddPossibleParameter(char *, char *);
int /*<<< orphan*/ CmdLO_Init(int);
void configureDefaultSet() {
  CmdLO_Init(1);
  CmdLO_Add("test", "--test");
  CmdLO_Add("test", "-t");
  CmdLO_Add("example", "--example");
  CmdLO_Add("example", "-e");
  CmdLO_Add("something", "-s");
  CmdLO_AddDefaultParameter("something", "sometest");
  CmdLO_AddDescription("test", "Well, this is a test command line option.");
  CmdLO_AddDescription("example", "An example commandline option");
  CmdLO_AddPossibleParameter("example", "test");
  CmdLO_AddPossibleParameter("example", "test2");
}


x86 assembly (clang, -O0):
<configureDefaultSet>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
call   1040 <CmdLO_Init@plt>
lea    0xe9d(%rip),%rdi
lea    0xe94(%rip),%rsi
call   1070 <CmdLO_Add@plt>
lea    0xe8a(%rip),%rdi
lea    0xe88(%rip),%rsi
call   1070 <CmdLO_Add@plt>
lea    0xe81(%rip),%rdi
lea    0xe78(%rip),%rsi
call   1070 <CmdLO_Add@plt>
lea    0xe6e(%rip),%rdi
lea    0xe6f(%rip),%rsi
call   1070 <CmdLO_Add@plt>
lea    0xe66(%rip),%rdi
lea    0xe69(%rip),%rsi
call   1070 <CmdLO_Add@plt>
lea    0xe53(%rip),%rdi
lea    0xe59(%rip),%rsi
call   1060 <CmdLO_AddDefaultParameter@plt>
lea    0xe2b(%rip),%rdi
lea    0xe4f(%rip),%rsi
call   1050 <CmdLO_AddDescription@plt>
lea    0xe22(%rip),%rdi
lea    0xe66(%rip),%rsi
call   1050 <CmdLO_AddDescription@plt>
lea    0xe0f(%rip),%rdi
lea    0xdfe(%rip),%rsi
call   1030 <CmdLO_AddPossibleParameter@plt>
lea    0xdfc(%rip),%rdi
lea    0xe5e(%rip),%rsi
call   1030 <CmdLO_AddPossibleParameter@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<configureDefaultSet>:
push   %r15
push   %r14
push   %rbx
mov    $0x1,%edi
call   1040 <CmdLO_Init@plt>
lea    0xe9c(%rip),%r14
lea    0xe93(%rip),%rsi
mov    %r14,%rdi
call   1070 <CmdLO_Add@plt>
lea    0xe8b(%rip),%rsi
mov    %r14,%rdi
call   1070 <CmdLO_Add@plt>
lea    0xe81(%rip),%r15
lea    0xe78(%rip),%rsi
mov    %r15,%rdi
call   1070 <CmdLO_Add@plt>
lea    0xe73(%rip),%rsi
mov    %r15,%rdi
call   1070 <CmdLO_Add@plt>
lea    0xe67(%rip),%rbx
lea    0xe6a(%rip),%rsi
mov    %rbx,%rdi
call   1070 <CmdLO_Add@plt>
lea    0xe5e(%rip),%rsi
mov    %rbx,%rdi
call   1060 <CmdLO_AddDefaultParameter@plt>
lea    0xe58(%rip),%rsi
mov    %r14,%rdi
call   1050 <CmdLO_AddDescription@plt>
lea    0xe73(%rip),%rsi
mov    %r15,%rdi
call   1050 <CmdLO_AddDescription@plt>
mov    %r15,%rdi
mov    %r14,%rsi
call   1030 <CmdLO_AddPossibleParameter@plt>
lea    0xe77(%rip),%rsi
mov    %r15,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <CmdLO_AddPossibleParameter@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"test\00"
@.str.1 = [7 x i8] c"--test\00"
@.str.2 = [3 x i8] c"-t\00"
@.str.3 = [8 x i8] c"example\00"
@.str.4 = [10 x i8] c"--example\00"
@.str.5 = [3 x i8] c"-e\00"
@.str.6 = [10 x i8] c"something\00"
@.str.7 = [3 x i8] c"-s\00"
@.str.8 = [9 x i8] c"sometest\00"
@.str.9 = [42 x i8] c"Well, this is a test command line option.\00"
@.str.10 = [30 x i8] c"An example commandline option\00"
@.str.11 = [6 x i8] c"test2\00"
define void @configureDefaultSet() {
%1 = call i32 @CmdLO_Init(i32 1)
%2 = call i32 @CmdLO_Add(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @CmdLO_Add(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @CmdLO_Add(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 @CmdLO_Add(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 @CmdLO_Add(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%7 = call i32 @CmdLO_AddDefaultParameter(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%8 = call i32 @CmdLO_AddDescription(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.9, i64 0, i64 0))
%9 = call i32 @CmdLO_AddDescription(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0))
%10 = call i32 @CmdLO_AddPossibleParameter(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @CmdLO_AddPossibleParameter(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"test\00"
@.str.1 = [7 x i8] c"--test\00"
@.str.2 = [3 x i8] c"-t\00"
@.str.3 = [8 x i8] c"example\00"
@.str.4 = [10 x i8] c"--example\00"
@.str.5 = [3 x i8] c"-e\00"
@.str.6 = [10 x i8] c"something\00"
@.str.7 = [3 x i8] c"-s\00"
@.str.8 = [9 x i8] c"sometest\00"
@.str.9 = [42 x i8] c"Well, this is a test command line option.\00"
@.str.10 = [30 x i8] c"An example commandline option\00"
@.str.11 = [6 x i8] c"test2\00"
define void @configureDefaultSet() {
%1 = tail call i32 @CmdLO_Init(i32 1)
%2 = tail call i32 @CmdLO_Add(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @CmdLO_Add(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @CmdLO_Add(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 @CmdLO_Add(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%6 = tail call i32 @CmdLO_Add(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%7 = tail call i32 @CmdLO_AddDefaultParameter(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%8 = tail call i32 @CmdLO_AddDescription(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.9, i64 0, i64 0))
%9 = tail call i32 @CmdLO_AddDescription(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0))
%10 = tail call i32 @CmdLO_AddPossibleParameter(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @CmdLO_AddPossibleParameter(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
ret void
}