#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 *, ...);
void help_message() {
  printf("*********************************************************************"
         "***********\n");
  printf("\nlifer - A Windows link file (a.k.a. shortcut) analyser\n");
  printf("Version: %u.%u.%u\n\n", 5, 0, 23);
  printf("Usage: lifer  [-vhs] [-o csv|tsv|txt|xml] file(s)|directory\n");
  printf("       lifer   -i    [-o txt|xml]         file(s)|directory\n\n");
  printf("Options:\n");
  printf("  -v    print version number\n");
  printf("  -h    print this help\n");
  printf("  -s    shortened output (default is to output all fields)\n");
  printf("  -o    output type (choose from csv, tsv, txt or xml). \n");
  printf("        The default is txt.\n");
  printf("  -i    print idlist information (only with output type: 'txt' or "
         "'xml')\n\n");
  printf(
      "Output is to standard output, therefore to send to a file, use the\n");
  printf("redirection operator '>'.\n\n");
  printf("Example:\n  lifer -o csv {DIRECTORY} > Links.csv\n\n");
  printf("This will create a comma seperated file named Links.csv in the "
         "current\n");
  printf("directory. The file can be viewed in a spreadsheet and will contain "
         "details\n");
  printf("of all the link files found in the named directory.\n\n");
  printf("*********************************************************************"
         "***********\n");
}


x86 assembly (clang, -O0):
<help_message>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf54(%rip),%rdi
mov    $0x5,%esi
xor    %edx,%edx
mov    $0x17,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf7d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x101e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x102d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x106a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10ae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10d2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x110c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x114b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xddd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help_message>:
push   %rbx
lea    0x120c(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xedd(%rip),%rdi
call   1030 <puts@plt>
lea    0xebd(%rip),%rdi
mov    $0x5,%esi
xor    %edx,%edx
mov    $0x17,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeef(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf50(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf99(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd6(%rip),%rdi
call   1030 <puts@plt>
lea    0x1014(%rip),%rdi
call   1030 <puts@plt>
lea    0x104b(%rip),%rdi
call   1030 <puts@plt>
lea    0x105a(%rip),%rdi
call   1030 <puts@plt>
lea    0x107f(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ba(%rip),%rdi
call   1030 <puts@plt>
lea    0x10fa(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [82 x i8] c"********************************************************************************\0A\00"
@.str.1 = [57 x i8] c"\0Alifer - A Windows link file (a.k.a. shortcut) analyser\0A\00"
@.str.2 = [20 x i8] c"Version: %u.%u.%u\0A\0A\00"
@.str.3 = [61 x i8] c"Usage: lifer [-vhs] [-o csv|tsv|txt|xml] file(s)|directory\0A\00"
@.str.4 = [62 x i8] c" lifer -i [-o txt|xml] file(s)|directory\0A\0A\00"
@.str.5 = [10 x i8] c"Options:\0A\00"
@.str.6 = [30 x i8] c" -v print version number\0A\00"
@.str.7 = [25 x i8] c" -h print this help\0A\00"
@.str.8 = [60 x i8] c" -s shortened output (default is to output all fields)\0A\00"
@.str.9 = [58 x i8] c" -o output type (choose from csv, tsv, txt or xml). \0A\00"
@.str.10 = [29 x i8] c" The default is txt.\0A\00"
@.str.11 = [75 x i8] c" -i print idlist information (only with output type: 'txt' or 'xml')\0A\0A\00"
@.str.12 = [68 x i8] c"Output is to standard output, therefore to send to a file, use the\0A\00"
@.str.13 = [28 x i8] c"redirection operator '>'.\0A\0A\00"
@.str.14 = [50 x i8] c"Example:\0A lifer -o csv {DIRECTORY} > Links.csv\0A\0A\00"
@.str.15 = [72 x i8] c"This will create a comma seperated file named Links.csv in the current\0A\00"
@.str.16 = [77 x i8] c"directory. The file can be viewed in a spreadsheet and will contain details\0A\00"
@.str.17 = [54 x i8] c"of all the link files found in the named directory.\0A\0A\00"
define void @help_message() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 5, i32 0, i32 23)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.2 = [20 x i8] c"Version: %u.%u.%u\0A\0A\00"
@str.18 = [56 x i8] c"\0Alifer - A Windows link file (a.k.a. shortcut) analyser\00"
@str.19 = [60 x i8] c"Usage: lifer [-vhs] [-o csv|tsv|txt|xml] file(s)|directory\00"
@str.20 = [61 x i8] c" lifer -i [-o txt|xml] file(s)|directory\0A\00"
@str.21 = [9 x i8] c"Options:\00"
@str.22 = [29 x i8] c" -v print version number\00"
@str.23 = [24 x i8] c" -h print this help\00"
@str.24 = [59 x i8] c" -s shortened output (default is to output all fields)\00"
@str.25 = [57 x i8] c" -o output type (choose from csv, tsv, txt or xml). \00"
@str.26 = [28 x i8] c" The default is txt.\00"
@str.27 = [74 x i8] c" -i print idlist information (only with output type: 'txt' or 'xml')\0A\00"
@str.28 = [67 x i8] c"Output is to standard output, therefore to send to a file, use the\00"
@str.29 = [27 x i8] c"redirection operator '>'.\0A\00"
@str.30 = [49 x i8] c"Example:\0A lifer -o csv {DIRECTORY} > Links.csv\0A\00"
@str.31 = [71 x i8] c"This will create a comma seperated file named Links.csv in the current\00"
@str.32 = [76 x i8] c"directory. The file can be viewed in a spreadsheet and will contain details\00"
@str.33 = [53 x i8] c"of all the link files found in the named directory.\0A\00"
@str.34 = [81 x i8] c"********************************************************************************\00"
define void @help_message() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.34, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.18, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 5, i32 0, i32 23)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.21, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.22, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.23, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.24, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.25, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.27, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.28, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.29, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.30, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.31, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.32, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.33, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.34, i64 0, i64 0))
ret void
}