#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*/ SMake_Greet(char *);
char *WhiteSpace(int);
int /*<<< orphan*/ printf(char *, ...);
int strlen(char const *);
void SMake_Usage(const char *pName) {
  SMake_Greet("Simple-Make");
  int nLength = strlen(pName) + 6;
  printf("Usage: %s [-f <'flags'>] [-b <path>] [-i <path>] [-c <path>]\n",
         pName);
  printf(" %s [-l <'libs'>] [-e <paths>] [-g <name>] [-o <path>]\n",
         WhiteSpace(nLength));
  printf(" %s [-p <name>] [-s <path>] [-d] [-v] [-x] [-h]\n",
         WhiteSpace(nLength));
  printf("Options are:\n");
  printf("  -f <'flags'>        # Compiler flags\n");
  printf("  -l <'libs'>         # Linked libraries\n");
  printf("  -b <path>           # Install destination for binary\n");
  printf("  -c <path>           # Specify path to config file\n");
  printf("  -e <paths>          # Exclude files or directories\n");
  printf("  -g <name>           # Specify the desired compiler\n");
  printf("  -i <path>           # Install destination for includes\n");
  printf("  -o <path>           # Object output destination\n");
  printf("  -p <name>           # Program or library name\n");
  printf("  -s <path>           # Path to source files\n");
  printf("  -d                  # Virtual directory\n");
  printf("  -v                  # Verbosity level\n");
  printf("  -x                  # Create Makefile for CPP\n");
  printf("  -h                  # Print version and usage\n\n");
  printf("Hints:\n1) You can exclude multiple files and directories with \"|\" "
         "tokenizer\n");
  printf("2) To build static/shared library use parameter: -p "
         "<name>.a/<name>.so\n");
  printf("3) You can specify the desired compiler like: -g "
         "arm-histbv320-linux-gcc\n");
  printf("Example: %s -p lib.a -f '-Wall' -l '-lpthread' -e "
         "./dir1|./file1|./file2\n\n",
         pName);
}


x86 assembly (clang, -O0):
<SMake_Usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xead(%rip),%rdi
call   1060 <SMake_Greet@plt>
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
add    $0x6,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%edi
call   1050 <WhiteSpace@plt>
mov    %rax,%rsi
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%edi
call   1050 <WhiteSpace@plt>
mov    %rax,%rsi
lea    0xede(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf01(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf01(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf1b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf37(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf61(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf88(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfb0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfd8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x1004(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x1029(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x104c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x106c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x1089(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x10a4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x10c7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x10eb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x112a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x1164(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0x119c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SMake_Usage>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xea3(%rip),%rdi
call   1070 <SMake_Greet@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
lea    0x6(%rax),%ebp
lea    0xe98(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebp,%edi
call   1060 <WhiteSpace@plt>
lea    0xebe(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebp,%edi
call   1060 <WhiteSpace@plt>
lea    0xede(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf49(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf65(%rip),%rdi
call   1030 <puts@plt>
lea    0xf82(%rip),%rdi
call   1030 <puts@plt>
lea    0xfad(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd5(%rip),%rdi
call   1030 <puts@plt>
lea    0xffe(%rip),%rdi
call   1030 <puts@plt>
lea    0x1027(%rip),%rdi
call   1030 <puts@plt>
lea    0x1054(%rip),%rdi
call   1030 <puts@plt>
lea    0x107a(%rip),%rdi
call   1030 <puts@plt>
lea    0x109e(%rip),%rdi
call   1030 <puts@plt>
lea    0x10bf(%rip),%rdi
call   1030 <puts@plt>
lea    0x10dd(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f9(%rip),%rdi
call   1030 <puts@plt>
lea    0x111d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1142(%rip),%rdi
call   1030 <puts@plt>
lea    0x1182(%rip),%rdi
call   1030 <puts@plt>
lea    0x11bd(%rip),%rdi
call   1030 <puts@plt>
lea    0xe26(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1050 <printf@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"Simple-Make\00"
@.str.1 = [62 x i8] c"Usage: %s [-f <'flags'>] [-b <path>] [-i <path>] [-c <path>]\0A\00"
@.str.2 = [56 x i8] c" %s [-l <'libs'>] [-e <paths>] [-g <name>] [-o <path>]\0A\00"
@.str.3 = [49 x i8] c" %s [-p <name>] [-s <path>] [-d] [-v] [-x] [-h]\0A\00"
@.str.4 = [14 x i8] c"Options are:\0A\00"
@.str.5 = [40 x i8] c" -f <'flags'> # Compiler flags\0A\00"
@.str.6 = [42 x i8] c" -l <'libs'> # Linked libraries\0A\00"
@.str.7 = [56 x i8] c" -b <path> # Install destination for binary\0A\00"
@.str.8 = [53 x i8] c" -c <path> # Specify path to config file\0A\00"
@.str.9 = [54 x i8] c" -e <paths> # Exclude files or directories\0A\00"
@.str.10 = [54 x i8] c" -g <name> # Specify the desired compiler\0A\00"
@.str.11 = [58 x i8] c" -i <path> # Install destination for includes\0A\00"
@.str.12 = [51 x i8] c" -o <path> # Object output destination\0A\00"
@.str.13 = [49 x i8] c" -p <name> # Program or library name\0A\00"
@.str.14 = [46 x i8] c" -s <path> # Path to source files\0A\00"
@.str.15 = [43 x i8] c" -d # Virtual directory\0A\00"
@.str.16 = [41 x i8] c" -v # Verbosity level\0A\00"
@.str.17 = [49 x i8] c" -x # Create Makefile for CPP\0A\00"
@.str.18 = [50 x i8] c" -h # Print version and usage\0A\0A\00"
@.str.19 = [77 x i8] c"Hints:\0A1) You can exclude multiple files and directories with \22|\22 tokenizer\0A\00"
@.str.20 = [72 x i8] c"2) To build static/shared library use parameter: -p <name>.a/<name>.so\0A\00"
@.str.21 = [74 x i8] c"3) You can specify the desired compiler like: -g arm-histbv320-linux-gcc\0A\00"
@.str.22 = [75 x i8] c"Example: %s -p lib.a -f '-Wall' -l '-lpthread' -e ./dir1|./file1|./file2\0A\0A\00"
define void @SMake_Usage(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = call i32 @SMake_Greet(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%5 = load i8*, i8** %2
%6 = call i32 @strlen(i8* %5)
%7 = add nsw i32 %6, 6
store i32 %7, i32* %3
%8 = load i8*, i8** %2
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%10 = load i32, i32* %3
%11 = call i8* @WhiteSpace(i32 %10)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0), i8* %11)
%13 = load i32, i32* %3
%14 = call i8* @WhiteSpace(i32 %13)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0), i8* %14)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.7, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.9, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.10, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.11, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.12, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.14, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.15, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.16, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.17, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.18, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.19, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.20, i64 0, i64 0))
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.21, i64 0, i64 0))
%34 = load i8*, i8** %2
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.22, i64 0, i64 0), i8* %34)
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"Simple-Make\00"
@.str.1 = [62 x i8] c"Usage: %s [-f <'flags'>] [-b <path>] [-i <path>] [-c <path>]\0A\00"
@.str.2 = [56 x i8] c" %s [-l <'libs'>] [-e <paths>] [-g <name>] [-o <path>]\0A\00"
@.str.3 = [49 x i8] c" %s [-p <name>] [-s <path>] [-d] [-v] [-x] [-h]\0A\00"
@.str.22 = [75 x i8] c"Example: %s -p lib.a -f '-Wall' -l '-lpthread' -e ./dir1|./file1|./file2\0A\0A\00"
@str = [13 x i8] c"Options are:\00"
@str.23 = [39 x i8] c" -f <'flags'> # Compiler flags\00"
@str.24 = [41 x i8] c" -l <'libs'> # Linked libraries\00"
@str.25 = [55 x i8] c" -b <path> # Install destination for binary\00"
@str.26 = [52 x i8] c" -c <path> # Specify path to config file\00"
@str.27 = [53 x i8] c" -e <paths> # Exclude files or directories\00"
@str.28 = [53 x i8] c" -g <name> # Specify the desired compiler\00"
@str.29 = [57 x i8] c" -i <path> # Install destination for includes\00"
@str.30 = [50 x i8] c" -o <path> # Object output destination\00"
@str.31 = [48 x i8] c" -p <name> # Program or library name\00"
@str.32 = [45 x i8] c" -s <path> # Path to source files\00"
@str.33 = [42 x i8] c" -d # Virtual directory\00"
@str.34 = [40 x i8] c" -v # Verbosity level\00"
@str.35 = [48 x i8] c" -x # Create Makefile for CPP\00"
@str.36 = [49 x i8] c" -h # Print version and usage\0A\00"
@str.37 = [76 x i8] c"Hints:\0A1) You can exclude multiple files and directories with \22|\22 tokenizer\00"
@str.38 = [71 x i8] c"2) To build static/shared library use parameter: -p <name>.a/<name>.so\00"
@str.39 = [73 x i8] c"3) You can specify the desired compiler like: -g arm-histbv320-linux-gcc\00"
define void @SMake_Usage(i8* %0) {
%2 = tail call i32 @SMake_Greet(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @strlen(i8* %0)
%4 = add nsw i32 %3, 6
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%6 = tail call i8* @WhiteSpace(i32 %4)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0), i8* %6)
%8 = tail call i8* @WhiteSpace(i32 %4)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0), i8* %8)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.23, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.24, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.25, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.26, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.27, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.28, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.29, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.30, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.31, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.32, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.33, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.34, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.35, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.36, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.37, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.38, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.39, i64 0, i64 0))
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str.22, i64 0, i64 0), i8* %0)
ret void
}