#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 printHelp() {
  printf("\nUsage:\n renamefiles [options] [directory] file-selection "
         "rename-pattern\n\n");
  printf("Options:\n");
  printf(" --help             show help and exit\n");
  printf(" --version          show version and exit\n");
  printf(" --norename         show only filenames too rename\n");
  printf(" --noheader         display no header information\n");
  printf(" --nofooter         display no footer information\n");
  printf(" --nofilenames      display no filenames\n");
  printf(" --nooutput         display no information only errors\n");
  printf(" --nostarcheck      no check for a wildchar (*) in the file "
         "selection\n");
  printf(" --failmatchinfo    display filenames witch do not match and the "
         "reason\n");
  printf(" --nonamesplit      Use the filename as 1 string\n");
  printf("\n");
  printf("The only wildcard in the file-selection and rename-pattern is a *\n");
  printf("Quotes the parameters\n");
  printf("\n");
  printf("See how to use file-selection, rename-pattern and directory "
         "arguments from renamefiles manual.\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<printHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf24(%rip),%rdi
call   1030 <printf@plt>
lea    0xf22(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf85(%rip),%rdi
call   1030 <printf@plt>
lea    0xfac(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd3(%rip),%rdi
call   1030 <printf@plt>
lea    0xff1(%rip),%rdi
call   1030 <printf@plt>
lea    0x101d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1058(%rip),%rdi
call   1030 <printf@plt>
lea    0x1095(%rip),%rdi
call   1030 <printf@plt>
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
lea    0x10af(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e6(%rip),%rdi
call   1030 <printf@plt>
lea    0xe7a(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e5(%rip),%rdi
call   1030 <printf@plt>
lea    0xe62(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printHelp>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xf16(%rip),%rdi
call   1040 <puts@plt>
lea    0xf13(%rip),%rdi
call   1040 <puts@plt>
lea    0xf2e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf4c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf73(%rip),%rdi
call   1040 <puts@plt>
lea    0xf99(%rip),%rdi
call   1040 <puts@plt>
lea    0xfbf(%rip),%rdi
call   1040 <puts@plt>
lea    0xfdc(%rip),%rdi
call   1040 <puts@plt>
lea    0x1007(%rip),%rdi
call   1040 <puts@plt>
lea    0x1041(%rip),%rdi
call   1040 <puts@plt>
lea    0x107d(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1098(%rip),%rdi
call   1040 <puts@plt>
lea    0x10ce(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10ce(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [75 x i8] c"\0AUsage:\0A renamefiles [options] [directory] file-selection rename-pattern\0A\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [40 x i8] c" --help show help and exit\0A\00"
@.str.3 = [43 x i8] c" --version show version and exit\0A\00"
@.str.4 = [52 x i8] c" --norename show only filenames too rename\0A\00"
@.str.5 = [51 x i8] c" --noheader display no header information\0A\00"
@.str.6 = [51 x i8] c" --nofooter display no footer information\0A\00"
@.str.7 = [42 x i8] c" --nofilenames display no filenames\0A\00"
@.str.8 = [56 x i8] c" --nooutput display no information only errors\0A\00"
@.str.9 = [71 x i8] c" --nostarcheck no check for a wildchar (*) in the file selection\0A\00"
@.str.10 = [73 x i8] c" --failmatchinfo display filenames witch do not match and the reason\0A\00"
@.str.11 = [50 x i8] c" --nonamesplit Use the filename as 1 string\0A\00"
@.str.12 = [2 x i8] c"\0A\00"
@.str.13 = [67 x i8] c"The only wildcard in the file-selection and rename-pattern is a *\0A\00"
@.str.14 = [23 x i8] c"Quotes the parameters\0A\00"
@.str.15 = [96 x i8] c"See how to use file-selection, rename-pattern and directory arguments from renamefiles manual.\0A\00"
define void @printHelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.15, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [74 x i8] c"\0AUsage:\0A renamefiles [options] [directory] file-selection rename-pattern\0A\00"
@str.16 = [9 x i8] c"Options:\00"
@str.17 = [39 x i8] c" --help show help and exit\00"
@str.18 = [42 x i8] c" --version show version and exit\00"
@str.19 = [51 x i8] c" --norename show only filenames too rename\00"
@str.20 = [50 x i8] c" --noheader display no header information\00"
@str.21 = [50 x i8] c" --nofooter display no footer information\00"
@str.22 = [41 x i8] c" --nofilenames display no filenames\00"
@str.23 = [55 x i8] c" --nooutput display no information only errors\00"
@str.24 = [70 x i8] c" --nostarcheck no check for a wildchar (*) in the file selection\00"
@str.25 = [72 x i8] c" --failmatchinfo display filenames witch do not match and the reason\00"
@str.26 = [49 x i8] c" --nonamesplit Use the filename as 1 string\00"
@str.27 = [66 x i8] c"The only wildcard in the file-selection and rename-pattern is a *\00"
@str.28 = [22 x i8] c"Quotes the parameters\00"
@str.29 = [95 x i8] c"See how to use file-selection, rename-pattern and directory arguments from renamefiles manual.\00"
define void @printHelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.16, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.17, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.18, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.19, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.20, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.21, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.22, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.23, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.24, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.25, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.26, i64 0, i64 0))
%13 = tail call i32 @putchar(i32 10)
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.27, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.28, i64 0, i64 0))
%16 = tail call i32 @putchar(i32 10)
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @str.29, i64 0, i64 0))
%18 = tail call i32 @putchar(i32 10)
ret void
}