#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 *);
void medlc_ShowExample(FILE *outfile) {
  fprintf(
      outfile,
      "echo EXAMPLES/1 | \\\n"
      "   gawk '{for(i=1; i <= 10; i += 1) print $1;}' | \\\n"
      "   ./vartools -l - -L USERLIB/src/medlc.so \\\n"
      "      -expr 'mag=10.0+err*gauss()' \\\n"
      "      -o EXAMPLES/OUTDIR1/ nameformat \"sim%d.txt\" \\\n"
      "      -medlc EXAMPLES/OUTDIR1/testmedlc.txt \\\n"
      "      -quiet\n\n"
      "Example use of the -medlc command. We read in the light curve "
      "EXAMPLES/1 ten times (this is done with the initial gawk command). Then "
      "in each case the light curve magnitudes are replaced with gaussian "
      "random noise, simply for the purpose of simulating 10 noisy light "
      "curves with the same time sampling. The simulated light curves are "
      "output to EXAMPLES/OUTDIR1/sim1.txt ... EXAMPLES/OUTDIR1/sim10.txt. We "
      "then compute the median of these simulated light curves, with the "
      "result written to EXAMPLES/OUTDIR1/testmedlc.txt.\n\n");
}


x86 assembly (clang, -O0):
<medlc_ShowExample>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<medlc_ShowExample>:
lea    0xee9(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [789 x i8] c"echo EXAMPLES/1 | \\\0A gawk '{for(i=1; i <= 10; i += 1) print $1;}' | \\\0A ./vartools -l - -L USERLIB/src/medlc.so \\\0A -expr 'mag=10.0+err*gauss()' \\\0A -o EXAMPLES/OUTDIR1/ nameformat \22sim%d.txt\22 \\\0A -medlc EXAMPLES/OUTDIR1/testmedlc.txt \\\0A -quiet\0A\0AExample use of the -medlc command. We read in the light curve EXAMPLES/1 ten times (this is done with the initial gawk command). Then in each case the light curve magnitudes are replaced with gaussian random noise, simply for the purpose of simulating 10 noisy light curves with the same time sampling. The simulated light curves are output to EXAMPLES/OUTDIR1/sim1.txt ... EXAMPLES/OUTDIR1/sim10.txt. We then compute the median of these simulated light curves, with the result written to EXAMPLES/OUTDIR1/testmedlc.txt.\0A\0A\00"
define void @medlc_ShowExample(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @fprintf(i32* %3, i8* getelementptr inbounds ([789 x i8], [789 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [789 x i8] c"echo EXAMPLES/1 | \\\0A gawk '{for(i=1; i <= 10; i += 1) print $1;}' | \\\0A ./vartools -l - -L USERLIB/src/medlc.so \\\0A -expr 'mag=10.0+err*gauss()' \\\0A -o EXAMPLES/OUTDIR1/ nameformat \22sim%d.txt\22 \\\0A -medlc EXAMPLES/OUTDIR1/testmedlc.txt \\\0A -quiet\0A\0AExample use of the -medlc command. We read in the light curve EXAMPLES/1 ten times (this is done with the initial gawk command). Then in each case the light curve magnitudes are replaced with gaussian random noise, simply for the purpose of simulating 10 noisy light curves with the same time sampling. The simulated light curves are output to EXAMPLES/OUTDIR1/sim1.txt ... EXAMPLES/OUTDIR1/sim10.txt. We then compute the median of these simulated light curves, with the result written to EXAMPLES/OUTDIR1/testmedlc.txt.\0A\0A\00"
define void @medlc_ShowExample(i32* nocapture %0) {
%2 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([789 x i8], [789 x i8]* @.str, i64 0, i64 0))
ret void
}