#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *, ...);
void op_window_sum_usage(char *name, FILE *f, char *indent) {
  if (indent == NULL)
    indent = "";
  fprintf(f,
          "%sApply a windowed sum;  the signal is replaced by its sum over "
          "non-overlapping\n",
          indent);
  fprintf(f,
          "%swindows. The window's sum is written to the first entry in the "
          "window, with\n",
          indent);
  fprintf(f, "%sthe remaining entries set to zero.\n", indent);
  fprintf(f, "%s\n", indent);
  fprintf(f, "%susage: %s [options]\n", indent, name);
  fprintf(f,
          "%s  --window=chromosome      entire chromosome is a single window\n",
          indent);
  fprintf(f, "%s  --window=<length>        (W=) size of window\n", indent);
  fprintf(f,
          "%s  --denom=<value>          (D=) denominator; \"window\" or \"W\" "
          "can be used\n",
          indent);
  fprintf(f,
          "%s                           as the value; the value \"actual\" "
          "means to use the\n",
          indent);
  fprintf(f,
          "%s                           actual size of the window, in case "
          "it's truncated\n",
          indent);
  fprintf(f,
          "%s                           (by default, we do not use a "
          "denominator)\n",
          indent);
  fprintf(f,
          "%s  --zero=<value>           (Z=) zero value to fill window body\n",
          indent);
  fprintf(f, "%s                           (default is 0.0)\n", indent);
}


x86 assembly (clang, -O0):
<op_window_sum_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    113a <op_window_sum_usage+0x2a>
lea    0x11c4(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xeb7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xef2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xf2b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xf3b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x8(%rbp),%rcx
lea    0xf25(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xf26(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xf53(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xf6f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xfa5(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xfdf(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0x1019(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0x104b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0x1077(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<op_window_sum_usage>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %rdi,%r15
test   %rdx,%rdx
lea    0x11d2(%rip),%rax
cmove  %rax,%rbx
lea    0xecd(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf0a(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf45(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf57(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf47(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
mov    %r15,%rcx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf47(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf76(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf94(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xfcc(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0x1008(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0x1044(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0x1078(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0x10a6(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [81 x i8] c"%sApply a windowed sum; the signal is replaced by its sum over non-overlapping\0A\00"
@.str.2 = [79 x i8] c"%swindows. The window's sum is written to the first entry in the window, with\0A\00"
@.str.3 = [38 x i8] c"%sthe remaining entries set to zero.\0A\00"
@.str.4 = [4 x i8] c"%s\0A\00"
@.str.5 = [23 x i8] c"%susage: %s [options]\0A\00"
@.str.6 = [67 x i8] c"%s --window=chromosome entire chromosome is a single window\0A\00"
@.str.7 = [50 x i8] c"%s --window=<length> (W=) size of window\0A\00"
@.str.8 = [76 x i8] c"%s --denom=<value> (D=) denominator; \22window\22 or \22W\22 can be used\0A\00"
@.str.9 = [80 x i8] c"%s as the value; the value \22actual\22 means to use the\0A\00"
@.str.10 = [80 x i8] c"%s actual size of the window, in case it's truncated\0A\00"
@.str.11 = [72 x i8] c"%s (by default, we do not use a denominator)\0A\00"
@.str.12 = [66 x i8] c"%s --zero=<value> (Z=) zero value to fill window body\0A\00"
@.str.13 = [47 x i8] c"%s (default is 0.0)\0A\00"
define void @op_window_sum_usage(i8* %0, i32* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i8*
store i8* %0, i8** %4
store i32* %1, i32** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %6
%8 = icmp eq i8* %7, null
br i1 %8, label %9, label %10
9: ; preds = %3
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %6
br label %10
10: ; preds = %9, %3
%11 = load i32*, i32** %5
%12 = load i8*, i8** %6
%13 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%14 = load i32*, i32** %5
%15 = load i8*, i8** %6
%16 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.2, i64 0, i64 0), i8* %15)
%17 = load i32*, i32** %5
%18 = load i8*, i8** %6
%19 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), i8* %18)
%20 = load i32*, i32** %5
%21 = load i8*, i8** %6
%22 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %21)
%23 = load i32*, i32** %5
%24 = load i8*, i8** %6
%25 = load i8*, i8** %4
%26 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %23, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i8* %24, i8* %25)
%27 = load i32*, i32** %5
%28 = load i8*, i8** %6
%29 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %27, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.6, i64 0, i64 0), i8* %28)
%30 = load i32*, i32** %5
%31 = load i8*, i8** %6
%32 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %30, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0), i8* %31)
%33 = load i32*, i32** %5
%34 = load i8*, i8** %6
%35 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.8, i64 0, i64 0), i8* %34)
%36 = load i32*, i32** %5
%37 = load i8*, i8** %6
%38 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %36, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.9, i64 0, i64 0), i8* %37)
%39 = load i32*, i32** %5
%40 = load i8*, i8** %6
%41 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %39, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.10, i64 0, i64 0), i8* %40)
%42 = load i32*, i32** %5
%43 = load i8*, i8** %6
%44 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %42, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.11, i64 0, i64 0), i8* %43)
%45 = load i32*, i32** %5
%46 = load i8*, i8** %6
%47 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.12, i64 0, i64 0), i8* %46)
%48 = load i32*, i32** %5
%49 = load i8*, i8** %6
%50 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %48, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.13, i64 0, i64 0), i8* %49)
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [81 x i8] c"%sApply a windowed sum; the signal is replaced by its sum over non-overlapping\0A\00"
@.str.2 = [79 x i8] c"%swindows. The window's sum is written to the first entry in the window, with\0A\00"
@.str.3 = [38 x i8] c"%sthe remaining entries set to zero.\0A\00"
@.str.4 = [4 x i8] c"%s\0A\00"
@.str.5 = [23 x i8] c"%susage: %s [options]\0A\00"
@.str.6 = [67 x i8] c"%s --window=chromosome entire chromosome is a single window\0A\00"
@.str.7 = [50 x i8] c"%s --window=<length> (W=) size of window\0A\00"
@.str.8 = [76 x i8] c"%s --denom=<value> (D=) denominator; \22window\22 or \22W\22 can be used\0A\00"
@.str.9 = [80 x i8] c"%s as the value; the value \22actual\22 means to use the\0A\00"
@.str.10 = [80 x i8] c"%s actual size of the window, in case it's truncated\0A\00"
@.str.11 = [72 x i8] c"%s (by default, we do not use a denominator)\0A\00"
@.str.12 = [66 x i8] c"%s --zero=<value> (Z=) zero value to fill window body\0A\00"
@.str.13 = [47 x i8] c"%s (default is 0.0)\0A\00"
define void @op_window_sum_usage(i8* %0, i32* nocapture %1, i8* %2) {
%4 = icmp eq i8* %2, null
%5 = select i1 %4, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* %2
%6 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%7 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.2, i64 0, i64 0), i8* %5)
%8 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), i8* %5)
%9 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %5)
%10 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i8* %5, i8* %0)
%11 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.6, i64 0, i64 0), i8* %5)
%12 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0), i8* %5)
%13 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.8, i64 0, i64 0), i8* %5)
%14 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.9, i64 0, i64 0), i8* %5)
%15 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.10, i64 0, i64 0), i8* %5)
%16 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.11, i64 0, i64 0), i8* %5)
%17 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.12, i64 0, i64 0), i8* %5)
%18 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.13, i64 0, i64 0), i8* %5)
ret void
}