#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 generalInformation() {
  printf("****************************************************************\n");
  printf("Before you do anything, the size of a short must be 2 on your "
         "system.  It is %lu\n",
         sizeof(short));
  printf("If that number was not 2, you must go into the code and change ");
  printf(" 'typedef short TWO_BYTE' to use a real 2 byte integer.\n");
  printf("\n");
  printf("Welcome to the tutorial!\n");
  printf(
      "This is a simple program where you can pass command line arguments to");
  printf(" filter wave files.  The files MUST be waves.\n");
  printf("\n");
  printf("You should enter your desired parameters as followes:\n");
  printf("./a.out <input_name> <output_name> filter=<filter_type> "
         "<additional_parameter (if needed)>\n");
  printf("\n");
  printf("Wakas represent a value you decide.\n");
  printf("The input name is the name of the file you wish to filter, while");
  printf(" the output name is the name of the file you wish to output with");
  printf(" your desired filter.\n");
  printf("The filter types are 'limiter', 'sample_rate', "
         "'low_pass','high_pass', and 'reverse_order' (without the '').\n");
  printf("\n");
  printf("To learn more about any filter, run with one argument, being "
         "'information=<filter_type>', where filtertype ");
  printf("can be any of the aforementioned filters.\n");
  printf("To learn about how anything works in detail, check the "
         "documentation.\n");
  printf("Certain filters are highly file dependent.  Be careful and run them "
         "properly please.\n");
  printf("When you write your 5 arguments, it will assume you wrote them "
         "right, and if you didn't your mileage may vary.\n");
  printf("This program can deal with any uncompressed (PADDED) digitization "
         "level under 32 bits.\n");
  printf("If there is no padding for a block align of a power of 2, then this "
         "fails.");
  printf("Don't stray from the instructions.\nThank you!\n");
  printf("****************************************************************\n");
  return;
}


x86 assembly (clang, -O0):
<generalInformation>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf19(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf8a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfcd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xffe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1027(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1067(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x107e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10b1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10e4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10ed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x113f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x119d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11ba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11f3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x123b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x129d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12e7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1324(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<generalInformation>:
push   %rbx
lea    0x1449(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xeb9(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xef8(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x10a9(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10cb(%rip),%rdi
call   1040 <puts@plt>
lea    0xf08(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x10ca(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10e2(%rip),%rdi
call   1040 <puts@plt>
lea    0x110c(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1151(%rip),%rdi
call   1040 <puts@plt>
lea    0xefc(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf2f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x114d(%rip),%rdi
call   1040 <puts@plt>
lea    0x1157(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf40(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x11a0(%rip),%rdi
call   1040 <puts@plt>
lea    0x11be(%rip),%rdi
call   1040 <puts@plt>
lea    0x11f8(%rip),%rdi
call   1040 <puts@plt>
lea    0x1241(%rip),%rdi
call   1040 <puts@plt>
lea    0x12a4(%rip),%rdi
call   1040 <puts@plt>
lea    0xf62(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x12e1(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [66 x i8] c"****************************************************************\0A\00"
@.str.1 = [82 x i8] c"Before you do anything, the size of a short must be 2 on your system. It is %lu\0A\00"
@.str.2 = [64 x i8] c"If that number was not 2, you must go into the code and change \00"
@.str.3 = [57 x i8] c" 'typedef short TWO_BYTE' to use a real 2 byte integer.\0A\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [26 x i8] c"Welcome to the tutorial!\0A\00"
@.str.6 = [70 x i8] c"This is a simple program where you can pass command line arguments to\00"
@.str.7 = [47 x i8] c" filter wave files. The files MUST be waves.\0A\00"
@.str.8 = [55 x i8] c"You should enter your desired parameters as followes:\0A\00"
@.str.9 = [92 x i8] c"./a.out <input_name> <output_name> filter=<filter_type> <additional_parameter (if needed)>\0A\00"
@.str.10 = [37 x i8] c"Wakas represent a value you decide.\0A\00"
@.str.11 = [65 x i8] c"The input name is the name of the file you wish to filter, while\00"
@.str.12 = [65 x i8] c" the output name is the name of the file you wish to output with\00"
@.str.13 = [23 x i8] c" your desired filter.\0A\00"
@.str.14 = [110 x i8] c"The filter types are 'limiter', 'sample_rate', 'low_pass','high_pass', and 'reverse_order' (without the '').\0A\00"
@.str.15 = [108 x i8] c"To learn more about any filter, run with one argument, being 'information=<filter_type>', where filtertype \00"
@.str.16 = [43 x i8] c"can be any of the aforementioned filters.\0A\00"
@.str.17 = [71 x i8] c"To learn about how anything works in detail, check the documentation.\0A\00"
@.str.18 = [86 x i8] c"Certain filters are highly file dependent. Be careful and run them properly please.\0A\00"
@.str.19 = [112 x i8] c"When you write your 5 arguments, it will assume you wrote them right, and if you didn't your mileage may vary.\0A\00"
@.str.20 = [88 x i8] c"This program can deal with any uncompressed (PADDED) digitization level under 32 bits.\0A\00"
@.str.21 = [75 x i8] c"If there is no padding for a block align of a power of 2, then this fails.\00"
@.str.22 = [47 x i8] c"Don't stray from the instructions.\0AThank you!\0A\00"
define void @generalInformation() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.1, i64 0, i64 0), i64 2)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.12, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.14, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([108 x i8], [108 x i8]* @.str.15, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.16, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.17, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.18, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([112 x i8], [112 x i8]* @.str.19, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.20, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.21, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.22, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [82 x i8] c"Before you do anything, the size of a short must be 2 on your system. It is %lu\0A\00"
@.str.2 = [64 x i8] c"If that number was not 2, you must go into the code and change \00"
@.str.6 = [70 x i8] c"This is a simple program where you can pass command line arguments to\00"
@.str.11 = [65 x i8] c"The input name is the name of the file you wish to filter, while\00"
@.str.12 = [65 x i8] c" the output name is the name of the file you wish to output with\00"
@.str.15 = [108 x i8] c"To learn more about any filter, run with one argument, being 'information=<filter_type>', where filtertype \00"
@.str.21 = [75 x i8] c"If there is no padding for a block align of a power of 2, then this fails.\00"
@str.23 = [56 x i8] c" 'typedef short TWO_BYTE' to use a real 2 byte integer.\00"
@str.24 = [25 x i8] c"Welcome to the tutorial!\00"
@str.25 = [46 x i8] c" filter wave files. The files MUST be waves.\00"
@str.26 = [54 x i8] c"You should enter your desired parameters as followes:\00"
@str.27 = [91 x i8] c"./a.out <input_name> <output_name> filter=<filter_type> <additional_parameter (if needed)>\00"
@str.28 = [36 x i8] c"Wakas represent a value you decide.\00"
@str.29 = [22 x i8] c" your desired filter.\00"
@str.30 = [109 x i8] c"The filter types are 'limiter', 'sample_rate', 'low_pass','high_pass', and 'reverse_order' (without the '').\00"
@str.31 = [42 x i8] c"can be any of the aforementioned filters.\00"
@str.32 = [70 x i8] c"To learn about how anything works in detail, check the documentation.\00"
@str.33 = [85 x i8] c"Certain filters are highly file dependent. Be careful and run them properly please.\00"
@str.34 = [111 x i8] c"When you write your 5 arguments, it will assume you wrote them right, and if you didn't your mileage may vary.\00"
@str.35 = [87 x i8] c"This program can deal with any uncompressed (PADDED) digitization level under 32 bits.\00"
@str.36 = [46 x i8] c"Don't stray from the instructions.\0AThank you!\00"
@str.37 = [65 x i8] c"****************************************************************\00"
define void @generalInformation() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.37, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @.str.1, i64 0, i64 0), i64 2)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.23, i64 0, i64 0))
%5 = tail call i32 @putchar(i32 10)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.24, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.25, i64 0, i64 0))
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.26, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([91 x i8], [91 x i8]* @str.27, i64 0, i64 0))
%12 = tail call i32 @putchar(i32 10)
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.28, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.11, i64 0, i64 0))
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.12, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.29, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([109 x i8], [109 x i8]* @str.30, i64 0, i64 0))
%18 = tail call i32 @putchar(i32 10)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([108 x i8], [108 x i8]* @.str.15, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.31, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.32, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.33, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([111 x i8], [111 x i8]* @str.34, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str.35, i64 0, i64 0))
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str.21, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.36, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.37, i64 0, i64 0))
ret void
}