#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*/ fprintf(int /*<<< orphan*/, char *, char *, float);
int /*<<< orphan*/ stderr;
void usage(char *argv0, float threshold) {
  char *help =
      "Usage: %s [switches] -i filename -n num_clusters\n"
      "       -i filename    : file containing data to be clustered\n"
      "       -b             : input file is in binary format (default no)\n"
      "       -n num_clusters: number of clusters (K must > 1)\n"
      "       -t threshold   : threshold value (default %.4f)\n"
      "       -s splitNumber : split the data into s block (default 1)\n"
      "       -g             : display clustered data graph (default no)\n"
      "       -o             : output timing results (default no)\n"
      "       -d             : enable debug mode\n";
  fprintf(stderr, help, argv0, threshold);
  exit(-1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
lea    0xec8(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0x2e9d(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rsi
mov    -0x8(%rbp),%rdx
movss  -0xc(%rbp),%xmm0
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [521 x i8] c"Usage: %s [switches] -i filename -n num_clusters\0A -i filename : file containing data to be clustered\0A -b : input file is in binary format (default no)\0A -n num_clusters: number of clusters (K must > 1)\0A -t threshold : threshold value (default %.4f)\0A -s splitNumber : split the data into s block (default 1)\0A -g : display clustered data graph (default no)\0A -o : output timing results (default no)\0A -d : enable debug mode\0A\00"
@stderr = global i32 0
define void @usage(i8* %0, float %1) {
%3 = alloca i8*
%4 = alloca float
%5 = alloca i8*
store i8* %0, i8** %3
store float %1, float* %4
store i8* getelementptr inbounds ([521 x i8], [521 x i8]* @.str, i64 0, i64 0), i8** %5
%6 = load i32, i32* @stderr
%7 = load i8*, i8** %5
%8 = load i8*, i8** %3
%9 = load float, float* %4
%10 = call i32 @fprintf(i32 %6, i8* %7, i8* %8, float %9)
%11 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@.str = [521 x i8] c"Usage: %s [switches] -i filename -n num_clusters\0A -i filename : file containing data to be clustered\0A -b : input file is in binary format (default no)\0A -n num_clusters: number of clusters (K must > 1)\0A -t threshold : threshold value (default %.4f)\0A -s splitNumber : split the data into s block (default 1)\0A -g : display clustered data graph (default no)\0A -o : output timing results (default no)\0A -d : enable debug mode\0A\00"
@stderr = global i32 0
define void @usage(i8* %0, float %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([521 x i8], [521 x i8]* @.str, i64 0, i64 0), i8* %0, float %1)
%5 = tail call i32 @exit(i32 -1)
unreachable
}