#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 usage(FILE *stream, const char *name) {
  fprintf(stream, "Usage: %s -x L/R [-l lscale -L lmax -p precision]\n\n",
          name);
  fprintf(stream, "\t-x L/R:    ratio of L and R, L/R > 0\n");
  fprintf(stream, "\t-L lmax:   use lmax\n");
  fprintf(stream,
          "\t-l lscale: use lmax = lscale*R/L (ignored if -L is used), "
          "default: %g\n",
          7.0);
  fprintf(stream, "\t-p prec:   use precision, default: %g\n", 5e-9);
  fprintf(stream, "\t-c cores:  how many cores to use, default: 1\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xee1(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf03(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf18(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf1c(%rip),%rsi
movsd  0xe9b(%rip),%xmm0
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf4a(%rip),%rsi
movsd  0xe79(%rip),%xmm0
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf58(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rsi,%rdx
mov    %rdi,%rbx
lea    0xee2(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf08(%rip),%rdi
mov    $0x26,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf16(%rip),%rdi
mov    $0x15,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf13(%rip),%rsi
movsd  0xe8a(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <fprintf@plt>
lea    0xf42(%rip),%rsi
movsd  0xe79(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <fprintf@plt>
lea    0xf51(%rip),%rdi
mov    $0x2e,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [52 x i8] c"Usage: %s -x L/R [-l lscale -L lmax -p precision]\0A\0A\00"
@.str.1 = [39 x i8] c"\09-x L/R: ratio of L and R, L/R > 0\0A\00"
@.str.2 = [22 x i8] c"\09-L lmax: use lmax\0A\00"
@.str.3 = [72 x i8] c"\09-l lscale: use lmax = lscale*R/L (ignored if -L is used), default: %g\0A\00"
@.str.4 = [40 x i8] c"\09-p prec: use precision, default: %g\0A\00"
@.str.5 = [47 x i8] c"\09-c cores: how many cores to use, default: 1\0A\00"
define void @usage(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
store i32* %0, i32** %3
store i8* %1, i8** %4
%5 = load i32*, i32** %3
%6 = load i8*, i8** %4
%7 = call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load i32*, i32** %3
%9 = call i32 (i32*, i8*, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%10 = load i32*, i32** %3
%11 = call i32 (i32*, i8*, ...) @fprintf(i32* %10, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%12 = load i32*, i32** %3
%13 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), double 7.000000e+00)
%14 = load i32*, i32** %3
%15 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0), double 5.000000e-09)
%16 = load i32*, i32** %3
%17 = call i32 (i32*, i8*, ...) @fprintf(i32* %16, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [52 x i8] c"Usage: %s -x L/R [-l lscale -L lmax -p precision]\0A\0A\00"
@.str.1 = [39 x i8] c"\09-x L/R: ratio of L and R, L/R > 0\0A\00"
@.str.2 = [22 x i8] c"\09-L lmax: use lmax\0A\00"
@.str.3 = [72 x i8] c"\09-l lscale: use lmax = lscale*R/L (ignored if -L is used), default: %g\0A\00"
@.str.4 = [40 x i8] c"\09-p prec: use precision, default: %g\0A\00"
@.str.5 = [47 x i8] c"\09-c cores: how many cores to use, default: 1\0A\00"
define void @usage(i32* nocapture %0, i8* %1) {
%3 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0), i8* %1)
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i64 38, i64 1, i32* %0)
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i64 21, i64 1, i32* %0)
%6 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0), double 7.000000e+00)
%7 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0), double 5.000000e-09)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i64 0, i64 0), i64 46, i64 1, i32* %0)
ret void
}