#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("Create estimates, both for the Laufer comparison and for matrix "
    "completion");
  u(" ");
  u("Usage example:");
  u(" cd BUILD_DIRECTORY");
  u(" ./createEstimates PARAMS");
  u("where PARAMS are required:");
  u("--algo ALGO  for now, just knn");
  u("--obs  OBS   for now, just 1A");
  u("--radius INT");
  u("--which WHICH one of {laufer, mc}");
  u(" ");
  u("Files written:");
  u(" ANALYSIS/EXPERIMENT/estimates.csv with fields apn,date,radius,estimate");
  u(" ANALYSIS/EXPERIMENT/log.txt");
  u(" ");
  u("Files read:");
  u(" FEATURES/apn.csv");
  u(" FEATURES/SALE-AMOUNT-log.csv");
  u(" FEATURES/features.csv  the day column is recomputed and replaced used "
    "dates.csv");
  u(" FEATURES/dates.csv");
  u(" ");
  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    0xeee(%rip),%rdi
call   1040 <u@plt>
lea    0xee4(%rip),%rdi
call   1040 <u@plt>
lea    0xee7(%rip),%rdi
call   1040 <u@plt>
lea    0xeef(%rip),%rdi
call   1040 <u@plt>
lea    0xefd(%rip),%rdi
call   1040 <u@plt>
lea    0xf0c(%rip),%rdi
call   1040 <u@plt>
lea    0xf1f(%rip),%rdi
call   1040 <u@plt>
lea    0xf31(%rip),%rdi
call   1040 <u@plt>
lea    0xf32(%rip),%rdi
call   1040 <u@plt>
lea    0xe82(%rip),%rdi
call   1040 <u@plt>
lea    0xf3c(%rip),%rdi
call   1040 <u@plt>
lea    0xf3f(%rip),%rdi
call   1040 <u@plt>
lea    0xf7b(%rip),%rdi
call   1040 <u@plt>
lea    0xe52(%rip),%rdi
call   1040 <u@plt>
lea    0xf80(%rip),%rdi
call   1040 <u@plt>
lea    0xf80(%rip),%rdi
call   1040 <u@plt>
lea    0xf86(%rip),%rdi
call   1040 <u@plt>
lea    0xf98(%rip),%rdi
call   1040 <u@plt>
lea    0xfdd(%rip),%rdi
call   1040 <u@plt>
lea    0xe0a(%rip),%rdi
call   1040 <u@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
test   %rdi,%rdi
je     1145 <usage+0x15>
mov    %rdi,%rsi
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
call   1040 <u@plt>
lea    0xec1(%rip),%rdi
call   1040 <u@plt>
lea    0xf00(%rip),%rbx
mov    %rbx,%rdi
call   1040 <u@plt>
lea    0xef3(%rip),%rdi
call   1040 <u@plt>
lea    0xef6(%rip),%rdi
call   1040 <u@plt>
lea    0xefe(%rip),%rdi
call   1040 <u@plt>
lea    0xf0c(%rip),%rdi
call   1040 <u@plt>
lea    0xf1b(%rip),%rdi
call   1040 <u@plt>
lea    0xf2e(%rip),%rdi
call   1040 <u@plt>
lea    0xf40(%rip),%rdi
call   1040 <u@plt>
lea    0xf41(%rip),%rdi
call   1040 <u@plt>
mov    %rbx,%rdi
call   1040 <u@plt>
lea    0xf4f(%rip),%rdi
call   1040 <u@plt>
lea    0xf52(%rip),%rdi
call   1040 <u@plt>
lea    0xf8e(%rip),%rdi
call   1040 <u@plt>
mov    %rbx,%rdi
call   1040 <u@plt>
lea    0xf97(%rip),%rdi
call   1040 <u@plt>
lea    0xf97(%rip),%rdi
call   1040 <u@plt>
lea    0xf9d(%rip),%rdi
call   1040 <u@plt>
lea    0xfaf(%rip),%rdi
call   1040 <u@plt>
lea    0xff4(%rip),%rdi
call   1040 <u@plt>
mov    %rbx,%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 = [75 x i8] c"Create estimates, both for the Laufer comparison and for matrix completion\00"
@.str.3 = [2 x i8] c" \00"
@.str.4 = [15 x i8] c"Usage example:\00"
@.str.5 = [20 x i8] c" cd BUILD_DIRECTORY\00"
@.str.6 = [26 x i8] c" ./createEstimates PARAMS\00"
@.str.7 = [27 x i8] c"where PARAMS are required:\00"
@.str.8 = [31 x i8] c"--algo ALGO for now, just knn\00"
@.str.9 = [30 x i8] c"--obs OBS for now, just 1A\00"
@.str.10 = [13 x i8] c"--radius INT\00"
@.str.11 = [34 x i8] c"--which WHICH one of {laufer, mc}\00"
@.str.12 = [15 x i8] c"Files written:\00"
@.str.13 = [72 x i8] c" ANALYSIS/EXPERIMENT/estimates.csv with fields apn,date,radius,estimate\00"
@.str.14 = [29 x i8] c" ANALYSIS/EXPERIMENT/log.txt\00"
@.str.15 = [12 x i8] c"Files read:\00"
@.str.16 = [18 x i8] c" FEATURES/apn.csv\00"
@.str.17 = [30 x i8] c" FEATURES/SALE-AMOUNT-log.csv\00"
@.str.18 = [81 x i8] c" FEATURES/features.csv the day column is recomputed and replaced used dates.csv\00"
@.str.19 = [20 x i8] c" FEATURES/dates.csv\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 ([75 x i8], [75 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @u(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @u(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 @u(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 @u(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 @u(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%16 = call i32 @u(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0))
%17 = call i32 @u(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0))
%18 = call i32 @u(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%19 = call i32 @u(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.11, i64 0, i64 0))
%20 = call i32 @u(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%21 = call i32 @u(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0))
%22 = call i32 @u(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.13, i64 0, i64 0))
%23 = call i32 @u(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.14, i64 0, i64 0))
%24 = call i32 @u(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%25 = call i32 @u(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%26 = call i32 @u(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0))
%27 = call i32 @u(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.17, i64 0, i64 0))
%28 = call i32 @u(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.18, i64 0, i64 0))
%29 = call i32 @u(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.19, i64 0, i64 0))
%30 = call i32 @u(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%31 = 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 = [75 x i8] c"Create estimates, both for the Laufer comparison and for matrix completion\00"
@.str.3 = [2 x i8] c" \00"
@.str.4 = [15 x i8] c"Usage example:\00"
@.str.5 = [20 x i8] c" cd BUILD_DIRECTORY\00"
@.str.6 = [26 x i8] c" ./createEstimates PARAMS\00"
@.str.7 = [27 x i8] c"where PARAMS are required:\00"
@.str.8 = [31 x i8] c"--algo ALGO for now, just knn\00"
@.str.9 = [30 x i8] c"--obs OBS for now, just 1A\00"
@.str.10 = [13 x i8] c"--radius INT\00"
@.str.11 = [34 x i8] c"--which WHICH one of {laufer, mc}\00"
@.str.12 = [15 x i8] c"Files written:\00"
@.str.13 = [72 x i8] c" ANALYSIS/EXPERIMENT/estimates.csv with fields apn,date,radius,estimate\00"
@.str.14 = [29 x i8] c" ANALYSIS/EXPERIMENT/log.txt\00"
@.str.15 = [12 x i8] c"Files read:\00"
@.str.16 = [18 x i8] c" FEATURES/apn.csv\00"
@.str.17 = [30 x i8] c" FEATURES/SALE-AMOUNT-log.csv\00"
@.str.18 = [81 x i8] c" FEATURES/features.csv the day column is recomputed and replaced used dates.csv\00"
@.str.19 = [20 x i8] c" FEATURES/dates.csv\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 ([75 x i8], [75 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 @u(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @u(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 @u(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%11 = tail call i32 @u(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%12 = tail call i32 @u(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%13 = tail call i32 @u(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0))
%14 = tail call i32 @u(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0))
%15 = tail call i32 @u(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%16 = tail call i32 @u(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.11, i64 0, i64 0))
%17 = tail call i32 @u(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%18 = tail call i32 @u(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0))
%19 = tail call i32 @u(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.13, i64 0, i64 0))
%20 = tail call i32 @u(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.14, i64 0, i64 0))
%21 = tail call i32 @u(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%22 = tail call i32 @u(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%23 = tail call i32 @u(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0))
%24 = tail call i32 @u(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.17, i64 0, i64 0))
%25 = tail call i32 @u(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.18, i64 0, i64 0))
%26 = tail call i32 @u(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.19, i64 0, i64 0))
%27 = tail call i32 @u(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%28 = tail call i32 @exit(i32 1)
unreachable
}