#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*/ fprintf(int /*<<< orphan*/, char *, char const *,
                           char const *);
int /*<<< orphan*/ stderr;
void print_usage(const char *name) {
  fprintf(stderr,
          "first pass, accumulate statistics (can be repeated to cover all "
          "tonal range):\n"
          "%s [OPTIONS] <inputraw.ppm (16-bit)> <inputjpg.ppm (8-bit)>\n"
          "\n"
          "second pass, compute the curves:\n"
          " %s -z [OPTIONS]\n"
          "\n"
          "OPTIONS:\n"
          " -n <integer>    Number of nodes for the curve\n"
          " -b <filename>   Basecurve output filename\n"
          " -c <filename>   Basecurve Fit curve output filename\n"
          " -t <filename>   Tonecurve output filename\n"
          " -u <filename>   Tonecurve Fit curve output filename\n"
          " -a              Tonecurve Fit the a* and b* channels\n"
          " -s <filename>   Save state\n"
          " -z              Compute the fitting curve\n"
          " -e <filename>   Retrieve model and make from file's Exif metadata\n"
          " -h              Print this help message\n"
          "\n"
          "convert the raw with `dcraw -6 -W -g 1 1 -w input.raw'\n"
          "and the jpg with `convert input.jpg output.ppm'\n"
          "plot the results with `gnuplot plot.(basecurve|tonecurve) depending "
          "on target module'\n"
          "\n"
          "first do a pass over a few images to accumulate data in the save "
          "state file, and then\n"
          "compute the fit curve using option -z\n",
          name, name);
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x8(%rbp),%rcx
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
mov    %rdi,%rcx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
mov    %rcx,%rdx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [987 x i8] c"first pass, accumulate statistics (can be repeated to cover all tonal range):\0A%s [OPTIONS] <inputraw.ppm (16-bit)> <inputjpg.ppm (8-bit)>\0A\0Asecond pass, compute the curves:\0A %s -z [OPTIONS]\0A\0AOPTIONS:\0A -n <integer> Number of nodes for the curve\0A -b <filename> Basecurve output filename\0A -c <filename> Basecurve Fit curve output filename\0A -t <filename> Tonecurve output filename\0A -u <filename> Tonecurve Fit curve output filename\0A -a Tonecurve Fit the a* and b* channels\0A -s <filename> Save state\0A -z Compute the fitting curve\0A -e <filename> Retrieve model and make from file's Exif metadata\0A -h Print this help message\0A\0Aconvert the raw with `dcraw -6 -W -g 1 1 -w input.raw'\0Aand the jpg with `convert input.jpg output.ppm'\0Aplot the results with `gnuplot plot.(basecurve|tonecurve) depending on target module'\0A\0Afirst do a pass over a few images to accumulate data in the save state file, and then\0Acompute the fit curve using option -z\0A\00"
define void @print_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([987 x i8], [987 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %5)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [987 x i8] c"first pass, accumulate statistics (can be repeated to cover all tonal range):\0A%s [OPTIONS] <inputraw.ppm (16-bit)> <inputjpg.ppm (8-bit)>\0A\0Asecond pass, compute the curves:\0A %s -z [OPTIONS]\0A\0AOPTIONS:\0A -n <integer> Number of nodes for the curve\0A -b <filename> Basecurve output filename\0A -c <filename> Basecurve Fit curve output filename\0A -t <filename> Tonecurve output filename\0A -u <filename> Tonecurve Fit curve output filename\0A -a Tonecurve Fit the a* and b* channels\0A -s <filename> Save state\0A -z Compute the fitting curve\0A -e <filename> Retrieve model and make from file's Exif metadata\0A -h Print this help message\0A\0Aconvert the raw with `dcraw -6 -W -g 1 1 -w input.raw'\0Aand the jpg with `convert input.jpg output.ppm'\0Aplot the results with `gnuplot plot.(basecurve|tonecurve) depending on target module'\0A\0Afirst do a pass over a few images to accumulate data in the save state file, and then\0Acompute the fit curve using option -z\0A\00"
define void @print_usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([987 x i8], [987 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %0)
ret void
}