#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 informationLimiter() {
  printf("****************************************************************\n");
  printf(
      "A simple limiting filter.\n  It will push up all samples by the gain ");
  printf("so long as they are below the limit.  Any peaks above the limit are "
         "pushed down to the limit.\n");
  printf("Any samples above the maximum value for their number of bytes are  "
         "also pushed down to that.\n");
  printf("Since this limiter works on the sample level, it is good for "
         "distortion (really more so than limiting).\n");
  printf("If you want to have clean limiting, be careful since this is easy to "
         "use wrong.\n");
  printf("The final parameter is <gain>,<limit> with no spaces.\n");
  printf("For example: ./a.out input.wav output.wav filters=limiter 103,255\n");
  printf("Use this for bigger encodings rather than smaller ones, or you may "
         "risk creating pure static or 0 noise.\n");
  printf("Gain and limit variables must be both positive integers (or else "
         "your mileage may vary)\n");
  printf("****************************************************************\n");
  return;
}


x86 assembly (clang, -O0):
<informationLimiter>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf54(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa7(%rip),%rdi
call   1030 <printf@plt>
lea    0xff9(%rip),%rdi
call   1030 <printf@plt>
lea    0x1056(%rip),%rdi
call   1030 <printf@plt>
lea    0x109b(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c6(%rip),%rdi
call   1030 <printf@plt>
lea    0x10fd(%rip),%rdi
call   1030 <printf@plt>
lea    0x115b(%rip),%rdi
call   1030 <printf@plt>
lea    0xe6d(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<informationLimiter>:
push   %rbx
lea    0x11c9(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xec9(%rip),%rdi
call   1040 <printf@plt>
lea    0xf02(%rip),%rdi
call   1030 <puts@plt>
lea    0xf54(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa5(%rip),%rdi
call   1030 <puts@plt>
lea    0x1001(%rip),%rdi
call   1030 <puts@plt>
lea    0x1045(%rip),%rdi
call   1030 <puts@plt>
lea    0x106f(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a5(%rip),%rdi
call   1030 <puts@plt>
lea    0x1102(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [66 x i8] c"****************************************************************\0A\00"
@.str.1 = [69 x i8] c"A simple limiting filter.\0A It will push up all samples by the gain \00"
@.str.2 = [95 x i8] c"so long as they are below the limit. Any peaks above the limit are pushed down to the limit.\0A\00"
@.str.3 = [94 x i8] c"Any samples above the maximum value for their number of bytes are also pushed down to that.\0A\00"
@.str.4 = [105 x i8] c"Since this limiter works on the sample level, it is good for distortion (really more so than limiting).\0A\00"
@.str.5 = [81 x i8] c"If you want to have clean limiting, be careful since this is easy to use wrong.\0A\00"
@.str.6 = [55 x i8] c"The final parameter is <gain>,<limit> with no spaces.\0A\00"
@.str.7 = [67 x i8] c"For example: ./a.out input.wav output.wav filters=limiter 103,255\0A\00"
@.str.8 = [106 x i8] c"Use this for bigger encodings rather than smaller ones, or you may risk creating pure static or 0 noise.\0A\00"
@.str.9 = [89 x i8] c"Gain and limit variables must be both positive integers (or else your mileage may vary)\0A\00"
define void @informationLimiter() {
%1 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([105 x i8], [105 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [69 x i8] c"A simple limiting filter.\0A It will push up all samples by the gain \00"
@str.10 = [94 x i8] c"so long as they are below the limit. Any peaks above the limit are pushed down to the limit.\00"
@str.11 = [93 x i8] c"Any samples above the maximum value for their number of bytes are also pushed down to that.\00"
@str.12 = [104 x i8] c"Since this limiter works on the sample level, it is good for distortion (really more so than limiting).\00"
@str.13 = [80 x i8] c"If you want to have clean limiting, be careful since this is easy to use wrong.\00"
@str.14 = [54 x i8] c"The final parameter is <gain>,<limit> with no spaces.\00"
@str.15 = [66 x i8] c"For example: ./a.out input.wav output.wav filters=limiter 103,255\00"
@str.16 = [105 x i8] c"Use this for bigger encodings rather than smaller ones, or you may risk creating pure static or 0 noise.\00"
@str.17 = [88 x i8] c"Gain and limit variables must be both positive integers (or else your mileage may vary)\00"
@str.18 = [65 x i8] c"****************************************************************\00"
define void @informationLimiter() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.18, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([94 x i8], [94 x i8]* @str.10, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.11, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @str.12, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.13, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.14, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.15, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([105 x i8], [105 x i8]* @str.16, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @str.17, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.18, i64 0, i64 0))
ret void
}