#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);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ u(char *);
void usage(char *msg) {
  if (msg) {
    printf("\nCommand line error: %s\n", msg);
  }
  u("");
  u("Determine RMSE for given K value. Usage:");
  u("  cd FEATURES && knnHpSearch parms > output/file");
  u("where");
  u("  FEATURES is a directory containing the input files");
  u("  FEATURES/features.csv is a file contain features");
  u("  FEATURES/dates.csv is a file containing dates");
  u("  FEATURES/SALE-AMOUNT-log-std.csv is a file containing sale prices");
  u("  FEATURES/knnCache.txt is a file contains a KnnCache");
  u(" ");
  u("Params:");
  u("");
  u(" --obs OBS   Observation set id; must be 1A for now");
  u(" --k K       Number of neighbors");
  u(" ");
  u("DESCRIPTION");
  u(" For every test transaction in 2000, 2001, ..., 2009, determine error "
    "using K");
  u(" Calculate RMSE using these transaction errors");
  u(" Write results to ../ANALYSIS/knnHpSearch-OBS-K.txt");
  u(" ");
  u("EXAMPLE");
  u(" cd obs1/features");
  u(" knnHpSearch --obs 1A --k 23");
  u("  write RMSE for k == 23");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1157 <usage+0x27>
mov    -0x8(%rbp),%rsi
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
call   1040 <u@plt>
lea    0xeaf(%rip),%rdi
call   1040 <u@plt>
lea    0xecc(%rip),%rdi
call   1040 <u@plt>
lea    0xef1(%rip),%rdi
call   1040 <u@plt>
lea    0xeeb(%rip),%rdi
call   1040 <u@plt>
lea    0xf14(%rip),%rdi
call   1040 <u@plt>
lea    0xf3b(%rip),%rdi
call   1040 <u@plt>
lea    0xf5f(%rip),%rdi
call   1040 <u@plt>
lea    0xf97(%rip),%rdi
call   1040 <u@plt>
lea    0xfc1(%rip),%rdi
call   1040 <u@plt>
lea    0xfb7(%rip),%rdi
call   1040 <u@plt>
lea    0xe36(%rip),%rdi
call   1040 <u@plt>
lea    0xfa7(%rip),%rdi
call   1040 <u@plt>
lea    0xfcf(%rip),%rdi
call   1040 <u@plt>
lea    0xf85(%rip),%rdi
call   1040 <u@plt>
lea    0xfd8(%rip),%rdi
call   1040 <u@plt>
lea    0xfd8(%rip),%rdi
call   1040 <u@plt>
lea    0x101a(%rip),%rdi
call   1040 <u@plt>
lea    0x103d(%rip),%rdi
call   1040 <u@plt>
lea    0xf49(%rip),%rdi
call   1040 <u@plt>
lea    0x1059(%rip),%rdi
call   1040 <u@plt>
lea    0x1055(%rip),%rdi
call   1040 <u@plt>
lea    0x105b(%rip),%rdi
call   1040 <u@plt>
lea    0x106c(%rip),%rdi
call   1040 <u@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %r14
push   %rbx
push   %rax
test   %rdi,%rdi
je     1148 <usage+0x18>
mov    %rdi,%rsi
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
lea    0xec9(%rip),%r14
mov    %r14,%rdi
call   1040 <u@plt>
lea    0xebb(%rip),%rdi
call   1040 <u@plt>
lea    0xed8(%rip),%rdi
call   1040 <u@plt>
lea    0xefd(%rip),%rdi
call   1040 <u@plt>
lea    0xef7(%rip),%rdi
call   1040 <u@plt>
lea    0xf20(%rip),%rdi
call   1040 <u@plt>
lea    0xf47(%rip),%rdi
call   1040 <u@plt>
lea    0xf6b(%rip),%rdi
call   1040 <u@plt>
lea    0xfa3(%rip),%rdi
call   1040 <u@plt>
lea    0xfcd(%rip),%rbx
mov    %rbx,%rdi
call   1040 <u@plt>
lea    0xfc0(%rip),%rdi
call   1040 <u@plt>
mov    %r14,%rdi
call   1040 <u@plt>
lea    0xfb4(%rip),%rdi
call   1040 <u@plt>
lea    0xfdc(%rip),%rdi
call   1040 <u@plt>
mov    %rbx,%rdi
call   1040 <u@plt>
lea    0xfe9(%rip),%rdi
call   1040 <u@plt>
lea    0xfe9(%rip),%rdi
call   1040 <u@plt>
lea    0x102b(%rip),%rdi
call   1040 <u@plt>
lea    0x104e(%rip),%rdi
call   1040 <u@plt>
mov    %rbx,%rdi
call   1040 <u@plt>
lea    0x106e(%rip),%rdi
call   1040 <u@plt>
lea    0x106a(%rip),%rdi
call   1040 <u@plt>
lea    0x1070(%rip),%rdi
call   1040 <u@plt>
lea    0x1081(%rip),%rdi
call   1040 <u@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"\0ACommand line error: %s\0A\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [41 x i8] c"Determine RMSE for given K value. Usage:\00"
@.str.3 = [49 x i8] c" cd FEATURES && knnHpSearch parms > output/file\00"
@.str.4 = [6 x i8] c"where\00"
@.str.5 = [53 x i8] c" FEATURES is a directory containing the input files\00"
@.str.6 = [51 x i8] c" FEATURES/features.csv is a file contain features\00"
@.str.7 = [48 x i8] c" FEATURES/dates.csv is a file containing dates\00"
@.str.8 = [68 x i8] c" FEATURES/SALE-AMOUNT-log-std.csv is a file containing sale prices\00"
@.str.9 = [54 x i8] c" FEATURES/knnCache.txt is a file contains a KnnCache\00"
@.str.10 = [2 x i8] c" \00"
@.str.11 = [8 x i8] c"Params:\00"
@.str.12 = [52 x i8] c" --obs OBS Observation set id; must be 1A for now\00"
@.str.13 = [33 x i8] c" --k K Number of neighbors\00"
@.str.14 = [12 x i8] c"DESCRIPTION\00"
@.str.15 = [78 x i8] c" For every test transaction in 2000, 2001, ..., 2009, determine error using K\00"
@.str.16 = [47 x i8] c" Calculate RMSE using these transaction errors\00"
@.str.17 = [52 x i8] c" Write results to ../ANALYSIS/knnHpSearch-OBS-K.txt\00"
@.str.18 = [8 x i8] c"EXAMPLE\00"
@.str.19 = [18 x i8] c" cd obs1/features\00"
@.str.20 = [29 x i8] c" knnHpSearch --obs 1A --k 23\00"
@.str.21 = [25 x i8] c" write RMSE for k == 23\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp ne i8* %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i8*, i8** %2
%7 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %6)
br label %8
8: ; preds = %5, %1
%9 = call i32 @u(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 @u(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @u(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @u(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 @u(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 @u(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 @u(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0))
%16 = call i32 @u(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0))
%17 = call i32 @u(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.9, i64 0, i64 0))
%18 = call i32 @u(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%19 = call i32 @u(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%20 = call i32 @u(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%21 = call i32 @u(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.12, i64 0, i64 0))
%22 = call i32 @u(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.13, i64 0, i64 0))
%23 = call i32 @u(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%24 = call i32 @u(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0))
%25 = call i32 @u(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.15, i64 0, i64 0))
%26 = call i32 @u(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.16, i64 0, i64 0))
%27 = call i32 @u(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.17, i64 0, i64 0))
%28 = call i32 @u(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%29 = call i32 @u(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%30 = call i32 @u(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.19, i64 0, i64 0))
%31 = call i32 @u(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.20, i64 0, i64 0))
%32 = call i32 @u(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.21, i64 0, i64 0))
%33 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [25 x i8] c"\0ACommand line error: %s\0A\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [41 x i8] c"Determine RMSE for given K value. Usage:\00"
@.str.3 = [49 x i8] c" cd FEATURES && knnHpSearch parms > output/file\00"
@.str.4 = [6 x i8] c"where\00"
@.str.5 = [53 x i8] c" FEATURES is a directory containing the input files\00"
@.str.6 = [51 x i8] c" FEATURES/features.csv is a file contain features\00"
@.str.7 = [48 x i8] c" FEATURES/dates.csv is a file containing dates\00"
@.str.8 = [68 x i8] c" FEATURES/SALE-AMOUNT-log-std.csv is a file containing sale prices\00"
@.str.9 = [54 x i8] c" FEATURES/knnCache.txt is a file contains a KnnCache\00"
@.str.10 = [2 x i8] c" \00"
@.str.11 = [8 x i8] c"Params:\00"
@.str.12 = [52 x i8] c" --obs OBS Observation set id; must be 1A for now\00"
@.str.13 = [33 x i8] c" --k K Number of neighbors\00"
@.str.14 = [12 x i8] c"DESCRIPTION\00"
@.str.15 = [78 x i8] c" For every test transaction in 2000, 2001, ..., 2009, determine error using K\00"
@.str.16 = [47 x i8] c" Calculate RMSE using these transaction errors\00"
@.str.17 = [52 x i8] c" Write results to ../ANALYSIS/knnHpSearch-OBS-K.txt\00"
@.str.18 = [8 x i8] c"EXAMPLE\00"
@.str.19 = [18 x i8] c" cd obs1/features\00"
@.str.20 = [29 x i8] c" knnHpSearch --obs 1A --k 23\00"
@.str.21 = [25 x i8] c" write RMSE for k == 23\00"
define void @usage(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %5
5: ; preds = %3, %1
%6 = tail call i32 @u(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @u(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 @u(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @u(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 @u(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
%11 = tail call i32 @u(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0))
%12 = tail call i32 @u(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0))
%13 = tail call i32 @u(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0))
%14 = tail call i32 @u(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.9, i64 0, i64 0))
%15 = tail call i32 @u(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%16 = tail call i32 @u(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%17 = tail call i32 @u(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%18 = tail call i32 @u(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.12, i64 0, i64 0))
%19 = tail call i32 @u(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.13, i64 0, i64 0))
%20 = tail call i32 @u(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%21 = tail call i32 @u(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0))
%22 = tail call i32 @u(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.15, i64 0, i64 0))
%23 = tail call i32 @u(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.16, i64 0, i64 0))
%24 = tail call i32 @u(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.17, i64 0, i64 0))
%25 = tail call i32 @u(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%26 = tail call i32 @u(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%27 = tail call i32 @u(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.19, i64 0, i64 0))
%28 = tail call i32 @u(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.20, i64 0, i64 0))
%29 = tail call i32 @u(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.21, i64 0, i64 0))
%30 = tail call i32 @exit(i32 1)
unreachable
}