#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*/ printf(char *);
void print_usage(void) {
  printf("Usage: tuner [options]\n");
  printf("Options:\n");
  printf("\t-k <training file>\n\tCalculate the tuning constant K\n\n");
  printf("\t-v <training file>\n\tVerify evaluation tracing\n\n");
  printf("\t-t <training file> <parameter file>\n\tTune parameters\n\n");
  printf("\t-e <training file>\n\tCalculate error\n\n");
  printf("\t-p <output file>\n\tPrint all tunable parameters\n\n");
  printf("\t-n <nthreads>\n\tThe number of threads to use\n\n");
  printf("\t-i <niterations>\n\tThe number of iterations to run\n\n");
  printf("\t-o [local|adam]\n\tOptimization algorithm to use for tuning\n\n");
  printf("\t-z\n\tPrint tuning parameters with all values set to zero\n\n");
  printf("\t-h\n\tDisplay this message\n\n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf86(%rip),%rdi
call   1030 <printf@plt>
lea    0xfac(%rip),%rdi
call   1030 <printf@plt>
lea    0xfcf(%rip),%rdi
call   1030 <printf@plt>
lea    0xff8(%rip),%rdi
call   1030 <printf@plt>
lea    0x1029(%rip),%rdi
call   1030 <printf@plt>
lea    0x1058(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef3(%rip),%rdi
call   1030 <puts@plt>
lea    0xef0(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf69(%rip),%rdi
call   1030 <puts@plt>
lea    0xf83(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfca(%rip),%rdi
call   1030 <puts@plt>
lea    0xff2(%rip),%rdi
call   1030 <puts@plt>
lea    0x1022(%rip),%rdi
call   1030 <puts@plt>
lea    0x1050(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"Usage: tuner [options]\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [55 x i8] c"\09-k <training file>\0A\09Calculate the tuning constant K\0A\0A\00"
@.str.3 = [49 x i8] c"\09-v <training file>\0A\09Verify evaluation tracing\0A\0A\00"
@.str.4 = [56 x i8] c"\09-t <training file> <parameter file>\0A\09Tune parameters\0A\0A\00"
@.str.5 = [39 x i8] c"\09-e <training file>\0A\09Calculate error\0A\0A\00"
@.str.6 = [50 x i8] c"\09-p <output file>\0A\09Print all tunable parameters\0A\0A\00"
@.str.7 = [47 x i8] c"\09-n <nthreads>\0A\09The number of threads to use\0A\0A\00"
@.str.8 = [53 x i8] c"\09-i <niterations>\0A\09The number of iterations to run\0A\0A\00"
@.str.9 = [61 x i8] c"\09-o [local|adam]\0A\09Optimization algorithm to use for tuning\0A\0A\00"
@.str.10 = [59 x i8] c"\09-z\0A\09Print tuning parameters with all values set to zero\0A\0A\00"
@.str.11 = [28 x i8] c"\09-h\0A\09Display this message\0A\0A\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [23 x i8] c"Usage: tuner [options]\00"
@str.12 = [9 x i8] c"Options:\00"
@str.13 = [54 x i8] c"\09-k <training file>\0A\09Calculate the tuning constant K\0A\00"
@str.14 = [48 x i8] c"\09-v <training file>\0A\09Verify evaluation tracing\0A\00"
@str.15 = [55 x i8] c"\09-t <training file> <parameter file>\0A\09Tune parameters\0A\00"
@str.16 = [38 x i8] c"\09-e <training file>\0A\09Calculate error\0A\00"
@str.17 = [49 x i8] c"\09-p <output file>\0A\09Print all tunable parameters\0A\00"
@str.18 = [46 x i8] c"\09-n <nthreads>\0A\09The number of threads to use\0A\00"
@str.19 = [52 x i8] c"\09-i <niterations>\0A\09The number of iterations to run\0A\00"
@str.20 = [60 x i8] c"\09-o [local|adam]\0A\09Optimization algorithm to use for tuning\0A\00"
@str.21 = [58 x i8] c"\09-z\0A\09Print tuning parameters with all values set to zero\0A\00"
@str.22 = [27 x i8] c"\09-h\0A\09Display this message\0A\00"
define void @print_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.12, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.13, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.14, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.22, i64 0, i64 0))
ret void
}