#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_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(stderr, "%s",
          "   [-n numvect] [-r rr] [-p pp] [-f ff] [-norm norm] [-fftnorm] "
          "[--] infile\n");
  fprintf(stderr, "%s",
          "      Calculates the complex vector addition of a DFT frequency.\n");
  fprintf(stderr, "%s",
          "          -n: The number of DFT sub-vectors to save\n");
  fprintf(stderr, "%s", "              1 int value between 2 and 262144\n");
  fprintf(stderr, "%s", "              default: `1000'\n");
  fprintf(stderr, "%s", "          -r: The Fourier frequency to fold (bins)\n");
  fprintf(stderr, "%s",
          "              1 double value between 1.0 and 2000000000.0\n");
  fprintf(stderr, "%s", "          -p: The period to fold (s)\n");
  fprintf(stderr, "%s",
          "              1 double value between 0.00000001 and 100000.0\n");
  fprintf(stderr, "%s", "          -f: The frequency to fold (Hz)\n");
  fprintf(stderr, "%s",
          "              1 double value between 0.00000001 and 100000.0\n");
  fprintf(stderr, "%s",
          "       -norm: Raw power divided by this normalizes the power\n");
  fprintf(stderr, "%s", "              1 double value\n");
  fprintf(stderr, "%s",
          "    -fftnorm: Use local powers from '.fft' file to get 'norm'\n");
  fprintf(stderr, "%s",
          "      infile: Input data file name (without a suffix) of floating "
          "point data.  A '.inf' file of the same name must also exist\n");
  fprintf(stderr, "%s", "              1 value\n");
  fprintf(stderr, "%s", "  version: 12Mar10\n");
  fprintf(stderr, "%s", "  ");
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
lea    0xec8(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2e99(%rip),%rax
mov    (%rax),%edi
lea    0xeb0(%rip),%rsi
lea    0xef9(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2e7d(%rip),%rax
mov    (%rax),%edi
lea    0xe94(%rip),%rsi
lea    0xf1f(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
lea    0xe78(%rip),%rsi
lea    0xf38(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2e45(%rip),%rax
mov    (%rax),%edi
lea    0xe5c(%rip),%rsi
lea    0xf4c(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2e29(%rip),%rax
mov    (%rax),%edi
lea    0xe40(%rip),%rsi
lea    0xf4f(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
lea    0xe24(%rip),%rsi
lea    0xf67(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2df1(%rip),%rax
mov    (%rax),%edi
lea    0xe08(%rip),%rsi
lea    0xf86(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2dd5(%rip),%rax
mov    (%rax),%edi
lea    0xdec(%rip),%rsi
lea    0xf90(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2db9(%rip),%rax
mov    (%rax),%edi
lea    0xdd0(%rip),%rsi
lea    0xfb2(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2d9d(%rip),%rax
mov    (%rax),%edi
lea    0xdb4(%rip),%rsi
lea    0xf58(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2d81(%rip),%rax
mov    (%rax),%edi
lea    0xd98(%rip),%rsi
lea    0xfa4(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2d65(%rip),%rax
mov    (%rax),%edi
lea    0xd7c(%rip),%rsi
lea    0xfc6(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2d49(%rip),%rax
mov    (%rax),%edi
lea    0xd60(%rip),%rsi
lea    0xfc8(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2d2d(%rip),%rax
mov    (%rax),%edi
lea    0xd44(%rip),%rsi
lea    0xfeb(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2d11(%rip),%rax
mov    (%rax),%edi
lea    0xd28(%rip),%rsi
lea    0x104e(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2cf5(%rip),%rax
mov    (%rax),%edi
lea    0xd0c(%rip),%rsi
lea    0x1049(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2cd9(%rip),%rax
mov    (%rax),%edi
lea    0xcf0(%rip),%rsi
lea    0x1041(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2cb5(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %r15
push   %r14
push   %rbx
mov    0x2eb4(%rip),%r15
mov    (%r15),%edi
lea    0xeca(%rip),%rbx
lea    0xec6(%rip),%rdx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0xf01(%rip),%rdx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0xf31(%rip),%rdx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0xf54(%rip),%rdx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0xf72(%rip),%rdx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0xf7f(%rip),%rdx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0xfa1(%rip),%rdx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0xfca(%rip),%rdx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0xfde(%rip),%r14
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0x1007(%rip),%rdx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0x1011(%rip),%rdx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0x103d(%rip),%rdx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0x1049(%rip),%rdx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0x1076(%rip),%rdx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0x10e3(%rip),%rdx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0x10e8(%rip),%rdx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0x10ea(%rip),%rdx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    0x2d5b(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [77 x i8] c" [-n numvect] [-r rr] [-p pp] [-f ff] [-norm norm] [-fftnorm] [--] infile\0A\00"
@.str.2 = [66 x i8] c" Calculates the complex vector addition of a DFT frequency.\0A\00"
@.str.3 = [53 x i8] c" -n: The number of DFT sub-vectors to save\0A\00"
@.str.4 = [48 x i8] c" 1 int value between 2 and 262144\0A\00"
@.str.5 = [31 x i8] c" default: `1000'\0A\00"
@.str.6 = [52 x i8] c" -r: The Fourier frequency to fold (bins)\0A\00"
@.str.7 = [59 x i8] c" 1 double value between 1.0 and 2000000000.0\0A\00"
@.str.8 = [38 x i8] c" -p: The period to fold (s)\0A\00"
@.str.9 = [62 x i8] c" 1 double value between 0.00000001 and 100000.0\0A\00"
@.str.10 = [42 x i8] c" -f: The frequency to fold (Hz)\0A\00"
@.str.11 = [62 x i8] c" -norm: Raw power divided by this normalizes the power\0A\00"
@.str.12 = [30 x i8] c" 1 double value\0A\00"
@.str.13 = [63 x i8] c" -fftnorm: Use local powers from '.fft' file to get 'norm'\0A\00"
@.str.14 = [127 x i8] c" infile: Input data file name (without a suffix) of floating point data. A '.inf' file of the same name must also exist\0A\00"
@.str.15 = [23 x i8] c" 1 value\0A\00"
@.str.16 = [20 x i8] c" version: 12Mar10\0A\00"
@.str.17 = [3 x i8] c" \00"
@EXIT_FAILURE = global i32 0
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.1, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.2, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.11, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.13, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([127 x i8], [127 x i8]* @.str.14, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%37 = load i32, i32* @EXIT_FAILURE
%38 = call i32 @exit(i32 %37)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [77 x i8] c" [-n numvect] [-r rr] [-p pp] [-f ff] [-norm norm] [-fftnorm] [--] infile\0A\00"
@.str.2 = [66 x i8] c" Calculates the complex vector addition of a DFT frequency.\0A\00"
@.str.3 = [53 x i8] c" -n: The number of DFT sub-vectors to save\0A\00"
@.str.4 = [48 x i8] c" 1 int value between 2 and 262144\0A\00"
@.str.5 = [31 x i8] c" default: `1000'\0A\00"
@.str.6 = [52 x i8] c" -r: The Fourier frequency to fold (bins)\0A\00"
@.str.7 = [59 x i8] c" 1 double value between 1.0 and 2000000000.0\0A\00"
@.str.8 = [38 x i8] c" -p: The period to fold (s)\0A\00"
@.str.9 = [62 x i8] c" 1 double value between 0.00000001 and 100000.0\0A\00"
@.str.10 = [42 x i8] c" -f: The frequency to fold (Hz)\0A\00"
@.str.11 = [62 x i8] c" -norm: Raw power divided by this normalizes the power\0A\00"
@.str.12 = [30 x i8] c" 1 double value\0A\00"
@.str.13 = [63 x i8] c" -fftnorm: Use local powers from '.fft' file to get 'norm'\0A\00"
@.str.14 = [127 x i8] c" infile: Input data file name (without a suffix) of floating point data. A '.inf' file of the same name must also exist\0A\00"
@.str.15 = [23 x i8] c" 1 value\0A\00"
@.str.16 = [20 x i8] c" version: 12Mar10\0A\00"
@.str.17 = [3 x i8] c" \00"
@EXIT_FAILURE = global i32 0
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.1, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.2, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = tail call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.11, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = tail call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = tail call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.13, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = tail call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([127 x i8], [127 x i8]* @.str.14, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = tail call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = tail call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = tail call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%37 = load i32, i32* @EXIT_FAILURE
%38 = tail call i32 @exit(i32 %37)
unreachable
}