#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*/ strlen(char const *);
int /*<<< orphan*/ write(int, char const *, int /*<<< orphan*/);
void usage(void) {
  const char *usage_str =
      "fft-pgm [-a <kaiser-bessel alpha>] [-l | -L] [-n <FFT size (2^n)>] [-s "
      "<stepsize>] [-o <output PGM file>] infile.wav\n"
      "-l gives a linear scaling, default is logarithmic (can be specified "
      "explicitly with -L as well).\n"
      "Default values are: -n 11 (2048-bit real FFT, so actually a 1024-bit "
      "complex FFT)\n"
      "                    -a 12.0 (Kaiser-Bessel window alpha of 12.0)\n"
      "                    -s 128 (128 steps per decade in log-frequency "
      "plot)\n"
      "If no output filename is specified, the output image is written to "
      "standard output.\n";
  write(1, usage_str, strlen(usage_str));
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x10(%rbp),%rsi
mov    %eax,%edx
mov    $0x1,%edi
call   1030 <write@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
lea    0xed8(%rip),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
mov    %eax,%edx
pop    %rbx
jmp    1030 <write@plt>

LLVM IR (-O0):
@.str = [518 x i8] c"fft-pgm [-a <kaiser-bessel alpha>] [-l | -L] [-n <FFT size (2^n)>] [-s <stepsize>] [-o <output PGM file>] infile.wav\0A-l gives a linear scaling, default is logarithmic (can be specified explicitly with -L as well).\0ADefault values are: -n 11 (2048-bit real FFT, so actually a 1024-bit complex FFT)\0A -a 12.0 (Kaiser-Bessel window alpha of 12.0)\0A -s 128 (128 steps per decade in log-frequency plot)\0AIf no output filename is specified, the output image is written to standard output.\0A\00"
define void @usage() {
%1 = alloca i8*
store i8* getelementptr inbounds ([518 x i8], [518 x i8]* @.str, i64 0, i64 0), i8** %1
%2 = load i8*, i8** %1
%3 = load i8*, i8** %1
%4 = call i32 @strlen(i8* %3)
%5 = call i32 @write(i32 1, i8* %2, i32 %4)
ret void
}

LLVM IR (-O2):
@.str = [518 x i8] c"fft-pgm [-a <kaiser-bessel alpha>] [-l | -L] [-n <FFT size (2^n)>] [-s <stepsize>] [-o <output PGM file>] infile.wav\0A-l gives a linear scaling, default is logarithmic (can be specified explicitly with -L as well).\0ADefault values are: -n 11 (2048-bit real FFT, so actually a 1024-bit complex FFT)\0A -a 12.0 (Kaiser-Bessel window alpha of 12.0)\0A -s 128 (128 steps per decade in log-frequency plot)\0AIf no output filename is specified, the output image is written to standard output.\0A\00"
define void @usage() {
%1 = tail call i32 @strlen(i8* getelementptr inbounds ([518 x i8], [518 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([518 x i8], [518 x i8]* @.str, i64 0, i64 0), i32 %1)
ret void
}