#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*/ exit(int);
int /*<<< orphan*/ printf(char *);
void help() {
  printf("\n*****************************\n");
  printf("Help Screen:\n\n");
  printf("\tIMPORTANT: To concatenate sound files they MUST have the same "
         "samplerate and number of channels.\n");
  printf("\tALSO IMPORTANT: ALL FILES PASSED AS ARGUMENTS MUST HAVE PROPER "
         "EXTENSIONS (i.e. .wav or .cs229)\n");
  printf("\n*****************************\n");
  printf("\tSupported Switches:");
  printf("-h (help), -w (wav file instead of cs229), -o filename (output to "
         "specified filename)\n");
  printf(
      "\tSupported Arguments: Inputfile1, Inputfile2...Inputfilen  Will concat "
      "file1 -> file2...->filen\n\tSwitches must come before arguments!\n");
  printf("\tEnsure all files are in the same directory if using relative path, "
         "otherwise use absolute.\n\n");
  printf("\tThis program will exit after writing the concatenation of the "
         "given files to the new file.\n\n");
  printf("For more information please see the included README file.\n\nWritten "
         "by Michael Johnson.\n\n");
  printf("\n*****************************\n\n");
  exit(1);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee9(%rip),%rdi
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
call   1030 <printf@plt>
lea    0xf43(%rip),%rdi
call   1030 <printf@plt>
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf96(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe1(%rip),%rdi
call   1030 <printf@plt>
lea    0x105c(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ae(%rip),%rdi
call   1030 <printf@plt>
lea    0x1100(%rip),%rdi
call   1030 <printf@plt>
lea    0x114d(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<help>:
push   %rbx
lea    0xfae(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xece(%rip),%rdi
call   1030 <puts@plt>
lea    0xed0(%rip),%rdi
call   1030 <puts@plt>
lea    0xf26(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xe8d(%rip),%rdi
call   1040 <printf@plt>
lea    0xf86(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd0(%rip),%rdi
call   1030 <puts@plt>
lea    0x104a(%rip),%rdi
call   1030 <puts@plt>
lea    0x109b(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ec(%rip),%rdi
call   1030 <puts@plt>
lea    0x1138(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [32 x i8] c"\0A*****************************\0A\00"
@.str.1 = [15 x i8] c"Help Screen:\0A\0A\00"
@.str.2 = [99 x i8] c"\09IMPORTANT: To concatenate sound files they MUST have the same samplerate and number of channels.\0A\00"
@.str.3 = [98 x i8] c"\09ALSO IMPORTANT: ALL FILES PASSED AS ARGUMENTS MUST HAVE PROPER EXTENSIONS (i.e. .wav or .cs229)\0A\00"
@.str.4 = [21 x i8] c"\09Supported Switches:\00"
@.str.5 = [87 x i8] c"-h (help), -w (wav file instead of cs229), -o filename (output to specified filename)\0A\00"
@.str.6 = [135 x i8] c"\09Supported Arguments: Inputfile1, Inputfile2...Inputfilen Will concat file1 -> file2...->filen\0A\09Switches must come before arguments!\0A\00"
@.str.7 = [94 x i8] c"\09Ensure all files are in the same directory if using relative path, otherwise use absolute.\0A\0A\00"
@.str.8 = [94 x i8] c"\09This program will exit after writing the concatenation of the given files to the new file.\0A\0A\00"
@.str.9 = [89 x i8] c"For more information please see the included README file.\0A\0AWritten by Michael Johnson.\0A\0A\00"
@.str.10 = [33 x i8] c"\0A*****************************\0A\0A\00"
define void @help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str.4 = [21 x i8] c"\09Supported Switches:\00"
@str.11 = [14 x i8] c"Help Screen:\0A\00"
@str.12 = [98 x i8] c"\09IMPORTANT: To concatenate sound files they MUST have the same samplerate and number of channels.\00"
@str.13 = [97 x i8] c"\09ALSO IMPORTANT: ALL FILES PASSED AS ARGUMENTS MUST HAVE PROPER EXTENSIONS (i.e. .wav or .cs229)\00"
@str.14 = [31 x i8] c"\0A*****************************\00"
@str.15 = [86 x i8] c"-h (help), -w (wav file instead of cs229), -o filename (output to specified filename)\00"
@str.16 = [134 x i8] c"\09Supported Arguments: Inputfile1, Inputfile2...Inputfilen Will concat file1 -> file2...->filen\0A\09Switches must come before arguments!\00"
@str.17 = [93 x i8] c"\09Ensure all files are in the same directory if using relative path, otherwise use absolute.\0A\00"
@str.18 = [93 x i8] c"\09This program will exit after writing the concatenation of the given files to the new file.\0A\00"
@str.19 = [88 x i8] c"For more information please see the included README file.\0A\0AWritten by Michael Johnson.\0A\00"
@str.20 = [32 x i8] c"\0A*****************************\0A\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.14, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.11, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([98 x i8], [98 x i8]* @str.12, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.15, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([134 x i8], [134 x i8]* @str.16, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.17, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.18, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @str.19, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.20, i64 0, i64 0))
%13 = tail call i32 @exit(i32 1)
unreachable
}