#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ what_i_do(char *, char *);
void show_options(char *progname) {
  what_i_do(progname, "Smoothes the output of the d2 program");
  fprintf(stderr, "Usage: %s [options]\n", progname);
  fprintf(stderr, "Options:\n");
  fprintf(stderr, "Everything not being a valid option will be interpreted"
                  " as a possible datafile.\nStdin does NOT work.\n");
  fprintf(stderr, "\t-m dimension to start with [Default: 1]\n");
  fprintf(stderr, "\t-M dimension to end with [Default: whole file]\n");
  fprintf(stderr, "\t-a n average over (2n+1) values [Default: 1]\n");
  fprintf(stderr, "\t-E use rescaled data for the length scales\n\t\t"
                  "[Default: use units of data]\n");
  fprintf(stderr, "\t-o name of output file [Default: stdout,\n\t\t"
                  "-o without value means 'datafile'.av]\n");
  fprintf(stderr, "\t-V verbosity level [Default: 1]\n\t\t"
                  "0='only panic messages'\n\t\t"
                  "1='+ input/output messages'\n");
  fprintf(stderr, "\t-h show these options\n");
  exit(0);
}


x86 assembly (clang, -O0):
<show_options>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeb9(%rip),%rsi
call   1040 <what_i_do@plt>
mov    0x2e8d(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e72(%rip),%rax
mov    (%rax),%edi
lea    0xec4(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e5b(%rip),%rax
mov    (%rax),%edi
lea    0xeb7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e44(%rip),%rax
mov    (%rax),%edi
lea    0xf06(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e2d(%rip),%rax
mov    (%rax),%edi
lea    0xf19(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e16(%rip),%rax
mov    (%rax),%edi
lea    0xf33(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dff(%rip),%rax
mov    (%rax),%edi
lea    0xf4b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2de8(%rip),%rax
mov    (%rax),%edi
lea    0xf80(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dd1(%rip),%rax
mov    (%rax),%edi
lea    0xfbc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dba(%rip),%rax
mov    (%rax),%edi
lea    0xfff(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<show_options>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xec2(%rip),%rsi
call   1040 <what_i_do@plt>
mov    0x2e96(%rip),%r14
mov    (%r14),%edi
lea    0xed2(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xed3(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xecc(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xf21(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xf3a(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xf5a(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xf78(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xfb3(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xff5(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0x103e(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [38 x i8] c"Smoothes the output of the d2 program\00"
@stderr = global i32 0
@.str.1 = [21 x i8] c"Usage: %s [options]\0A\00"
@.str.2 = [10 x i8] c"Options:\0A\00"
@.str.3 = [102 x i8] c"Everything not being a valid option will be interpreted as a possible datafile.\0AStdin does NOT work.\0A\00"
@.str.4 = [42 x i8] c"\09-m dimension to start with [Default: 1]\0A\00"
@.str.5 = [49 x i8] c"\09-M dimension to end with [Default: whole file]\0A\00"
@.str.6 = [47 x i8] c"\09-a n average over (2n+1) values [Default: 1]\0A\00"
@.str.7 = [76 x i8] c"\09-E use rescaled data for the length scales\0A\09\09[Default: use units of data]\0A\00"
@.str.8 = [83 x i8] c"\09-o name of output file [Default: stdout,\0A\09\09-o without value means 'datafile'.av]\0A\00"
@.str.9 = [90 x i8] c"\09-V verbosity level [Default: 1]\0A\09\090='only panic messages'\0A\09\091='+ input/output messages'\0A\00"
@.str.10 = [24 x i8] c"\09-h show these options\0A\00"
define void @show_options(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @what_i_do(i8* %3, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %2
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%8 = load i32, i32* @stderr
%9 = call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.3, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.7, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.9, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0))
%26 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [38 x i8] c"Smoothes the output of the d2 program\00"
@stderr = global i32 0
@.str.1 = [21 x i8] c"Usage: %s [options]\0A\00"
@.str.2 = [10 x i8] c"Options:\0A\00"
@.str.3 = [102 x i8] c"Everything not being a valid option will be interpreted as a possible datafile.\0AStdin does NOT work.\0A\00"
@.str.4 = [42 x i8] c"\09-m dimension to start with [Default: 1]\0A\00"
@.str.5 = [49 x i8] c"\09-M dimension to end with [Default: whole file]\0A\00"
@.str.6 = [47 x i8] c"\09-a n average over (2n+1) values [Default: 1]\0A\00"
@.str.7 = [76 x i8] c"\09-E use rescaled data for the length scales\0A\09\09[Default: use units of data]\0A\00"
@.str.8 = [83 x i8] c"\09-o name of output file [Default: stdout,\0A\09\09-o without value means 'datafile'.av]\0A\00"
@.str.9 = [90 x i8] c"\09-V verbosity level [Default: 1]\0A\09\090='only panic messages'\0A\09\091='+ input/output messages'\0A\00"
@.str.10 = [24 x i8] c"\09-h show these options\0A\00"
define void @show_options(i8* %0) {
%2 = tail call i32 @what_i_do(i8* %0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%5 = load i32, i32* @stderr
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.9, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0))
%23 = tail call i32 @exit(i32 0)
unreachable
}