#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 *);
int /*<<< orphan*/ op_clump_usage_args(char *, int /*<<< orphan*/ *, char *);
void op_skimp_usage(char *name, FILE *f, char *indent) {
  if (indent == NULL)
    indent = "";
  fprintf(
      f,
      "%sFind intervals with an average below some threshold. Bases in such\n",
      indent);
  fprintf(f, "%sintervals are replaced with 1s; other bases with 0s.\n",
          indent);
  fprintf(f, "%s\n", indent);
  fprintf(f,
          "%sGiven length L and threshold T, we identify intervals with length "
          "at least L\n",
          indent);
  fprintf(
      f,
      "%ssuch that the average over that interval is no more than T.  After\n",
      indent);
  fprintf(f,
          "%sidentifying such intervals, the ends are then trimmed to remove "
          "signal higher\n",
          indent);
  fprintf(f,
          "%sthan T (since these are only increasing the average).  Thus the "
          "resulting\n",
          indent);
  fprintf(f,
          "%sintervals (actually runs of 1 rather than intervals) may be "
          "shorter than L.\n",
          indent);
  op_clump_usage_args(name, f, indent);
}


x86 assembly (clang, -O0):
<op_skimp_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    114a <op_skimp_usage+0x2a>
lea    0x10be(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xea7(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xed9(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xefd(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xeed(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xf29(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xf5b(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xf98(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xfd1(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <op_clump_usage_args@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<op_skimp_usage>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %rdi,%r15
test   %rdx,%rdx
lea    0x10cc(%rip),%rax
cmove  %rax,%rbx
lea    0xebd(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1040 <fprintf@plt>
lea    0xef1(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1040 <fprintf@plt>
lea    0xf17(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1040 <fprintf@plt>
lea    0xf09(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1040 <fprintf@plt>
lea    0xf47(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1040 <fprintf@plt>
lea    0xf7b(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1040 <fprintf@plt>
lea    0xfba(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1040 <fprintf@plt>
lea    0xff5(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1040 <fprintf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <op_clump_usage_args@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [70 x i8] c"%sFind intervals with an average below some threshold. Bases in such\0A\00"
@.str.2 = [56 x i8] c"%sintervals are replaced with 1s; other bases with 0s.\0A\00"
@.str.3 = [4 x i8] c"%s\0A\00"
@.str.4 = [80 x i8] c"%sGiven length L and threshold T, we identify intervals with length at least L\0A\00"
@.str.5 = [70 x i8] c"%ssuch that the average over that interval is no more than T. After\0A\00"
@.str.6 = [81 x i8] c"%sidentifying such intervals, the ends are then trimmed to remove signal higher\0A\00"
@.str.7 = [77 x i8] c"%sthan T (since these are only increasing the average). Thus the resulting\0A\00"
@.str.8 = [79 x i8] c"%sintervals (actually runs of 1 rather than intervals) may be shorter than L.\0A\00"
define void @op_skimp_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 @fprintf(i32* %11, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%14 = load i32*, i32** %5
%15 = load i8*, i8** %6
%16 = call i32 @fprintf(i32* %14, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0), i8* %15)
%17 = load i32*, i32** %5
%18 = load i8*, i8** %6
%19 = call i32 @fprintf(i32* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %18)
%20 = load i32*, i32** %5
%21 = load i8*, i8** %6
%22 = call i32 @fprintf(i32* %20, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.4, i64 0, i64 0), i8* %21)
%23 = load i32*, i32** %5
%24 = load i8*, i8** %6
%25 = call i32 @fprintf(i32* %23, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.5, i64 0, i64 0), i8* %24)
%26 = load i32*, i32** %5
%27 = load i8*, i8** %6
%28 = call i32 @fprintf(i32* %26, i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.6, i64 0, i64 0), i8* %27)
%29 = load i32*, i32** %5
%30 = load i8*, i8** %6
%31 = call i32 @fprintf(i32* %29, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.7, i64 0, i64 0), i8* %30)
%32 = load i32*, i32** %5
%33 = load i8*, i8** %6
%34 = call i32 @fprintf(i32* %32, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.8, i64 0, i64 0), i8* %33)
%35 = load i8*, i8** %4
%36 = load i32*, i32** %5
%37 = load i8*, i8** %6
%38 = call i32 @op_clump_usage_args(i8* %35, i32* %36, i8* %37)
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [70 x i8] c"%sFind intervals with an average below some threshold. Bases in such\0A\00"
@.str.2 = [56 x i8] c"%sintervals are replaced with 1s; other bases with 0s.\0A\00"
@.str.3 = [4 x i8] c"%s\0A\00"
@.str.4 = [80 x i8] c"%sGiven length L and threshold T, we identify intervals with length at least L\0A\00"
@.str.5 = [70 x i8] c"%ssuch that the average over that interval is no more than T. After\0A\00"
@.str.6 = [81 x i8] c"%sidentifying such intervals, the ends are then trimmed to remove signal higher\0A\00"
@.str.7 = [77 x i8] c"%sthan T (since these are only increasing the average). Thus the resulting\0A\00"
@.str.8 = [79 x i8] c"%sintervals (actually runs of 1 rather than intervals) may be shorter than L.\0A\00"
define void @op_skimp_usage(i8* %0, i32* %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 @fprintf(i32* %1, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%7 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0), i8* %5)
%8 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %5)
%9 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.4, i64 0, i64 0), i8* %5)
%10 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.5, i64 0, i64 0), i8* %5)
%11 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.6, i64 0, i64 0), i8* %5)
%12 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.7, i64 0, i64 0), i8* %5)
%13 = tail call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.8, i64 0, i64 0), i8* %5)
%14 = tail call i32 @op_clump_usage_args(i8* %0, i32* %1, i8* %5)
ret void
}