#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_FAILURE;
char *basename(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void usage(char *argv[]) {
  fprintf(stderr,
          "\n usage: %s [OPTIONS] <-f source_list> <-t target_list>\n\n",
          basename(argv[0]));
  fprintf(stderr, "\t-f <file>: list of stars in source reference frame\n");
  fprintf(stderr, "\t-t <file>: list of stars in target reference frame\n");
  fprintf(stderr, "\t-o <file>: write transformed source list to this file\n");
  fprintf(stderr,
          "\t-n <num>: use <num> brightest stars on both lists (default: %d)\n",
          (15));
  fprintf(stderr, "\t-a <nsrc>,<ntgt>: use <nsrc> and <ntgt> brightest stars "
                  "from source and target lists, respectively.\n");
  fprintf(stderr,
          "\t-d <diff>: triangles with <diff> above this value are considered "
          "different (default: %.1f)\n",
          (2.0));
  fprintf(stderr,
          "\t-s <scale>: multiply source list coordinates by this factor\n");
  fprintf(stderr, "\t-x: flip X-axis in source list\n");
  fprintf(stderr, "\t-y: flip Y-axis in source list\n");
  fprintf(stderr, "\t-c: write i.ref2stars and i.2stars for compatibility with "
                  "transfall\n");
  fprintf(stderr, "\t-v: verbose mode\n\n");
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2e9d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
call   1040 <basename@plt>
mov    -0xc(%rbp),%edi
mov    %rax,%rdx
lea    0xea7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%edi
lea    0xeca(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e5a(%rip),%rax
mov    (%rax),%edi
lea    0xee8(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e43(%rip),%rax
mov    (%rax),%edi
lea    0xf06(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e2c(%rip),%rax
mov    (%rax),%edi
lea    0xf27(%rip),%rsi
mov    $0xf,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e10(%rip),%rax
mov    (%rax),%edi
lea    0xf4d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2df9(%rip),%rax
mov    (%rax),%edi
lea    0xf9c(%rip),%rsi
movsd  0xe08(%rip),%xmm0
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    0x2dda(%rip),%rax
mov    (%rax),%edi
lea    0xfda(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dc3(%rip),%rax
mov    (%rax),%edi
lea    0x1001(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dac(%rip),%rax
mov    (%rax),%edi
lea    0x100b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d95(%rip),%rax
mov    (%rax),%edi
lea    0x1015(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d7e(%rip),%rax
mov    (%rax),%edi
lea    0x1044(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d5f(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %r14
push   %rbx
push   %rax
mov    0x2ea5(%rip),%r14
mov    (%r14),%ebx
mov    (%rdi),%rdi
call   1040 <basename@plt>
lea    0xebb(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xedf(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xf03(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xf27(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xf4e(%rip),%rsi
mov    $0xf,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xf7a(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xfcf(%rip),%rsi
movsd  0xe3b(%rip),%xmm0
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0x1013(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0x1040(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0x1050(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0x1060(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0x1095(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2db0(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [58 x i8] c"\0A usage: %s [OPTIONS] <-f source_list> <-t target_list>\0A\0A\00"
@.str.1 = [53 x i8] c"\09-f <file>: list of stars in source reference frame\0A\00"
@.str.2 = [53 x i8] c"\09-t <file>: list of stars in target reference frame\0A\00"
@.str.3 = [56 x i8] c"\09-o <file>: write transformed source list to this file\0A\00"
@.str.4 = [66 x i8] c"\09-n <num>: use <num> brightest stars on both lists (default: %d)\0A\00"
@.str.5 = [102 x i8] c"\09-a <nsrc>,<ntgt>: use <nsrc> and <ntgt> brightest stars from source and target lists, respectively.\0A\00"
@.str.6 = [93 x i8] c"\09-d <diff>: triangles with <diff> above this value are considered different (default: %.1f)\0A\00"
@.str.7 = [62 x i8] c"\09-s <scale>: multiply source list coordinates by this factor\0A\00"
@.str.8 = [33 x i8] c"\09-x: flip X-axis in source list\0A\00"
@.str.9 = [33 x i8] c"\09-y: flip Y-axis in source list\0A\00"
@.str.10 = [70 x i8] c"\09-c: write i.ref2stars and i.2stars for compatibility with transfall\0A\00"
@.str.11 = [20 x i8] c"\09-v: verbose mode\0A\0A\00"
@EXIT_FAILURE = global i32 0
define void @usage(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i32, i32* @stderr
%4 = load i8**, i8*** %2
%5 = getelementptr inbounds i8*, i8** %4, i64 0
%6 = load i8*, i8** %5
%7 = call i8* @basename(i8* %6)
%8 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = load i32, i32* @stderr
%10 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i64 0, i64 0), i32 15)
%17 = load i32, i32* @stderr
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.5, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.6, i64 0, i64 0), double 2.000000e+00)
%21 = load i32, i32* @stderr
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.7, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.10, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0))
%31 = load i32, i32* @EXIT_FAILURE
%32 = call i32 @exit(i32 %31)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [58 x i8] c"\0A usage: %s [OPTIONS] <-f source_list> <-t target_list>\0A\0A\00"
@.str.1 = [53 x i8] c"\09-f <file>: list of stars in source reference frame\0A\00"
@.str.2 = [53 x i8] c"\09-t <file>: list of stars in target reference frame\0A\00"
@.str.3 = [56 x i8] c"\09-o <file>: write transformed source list to this file\0A\00"
@.str.4 = [66 x i8] c"\09-n <num>: use <num> brightest stars on both lists (default: %d)\0A\00"
@.str.5 = [102 x i8] c"\09-a <nsrc>,<ntgt>: use <nsrc> and <ntgt> brightest stars from source and target lists, respectively.\0A\00"
@.str.6 = [93 x i8] c"\09-d <diff>: triangles with <diff> above this value are considered different (default: %.1f)\0A\00"
@.str.7 = [62 x i8] c"\09-s <scale>: multiply source list coordinates by this factor\0A\00"
@.str.8 = [33 x i8] c"\09-x: flip X-axis in source list\0A\00"
@.str.9 = [33 x i8] c"\09-y: flip Y-axis in source list\0A\00"
@.str.10 = [70 x i8] c"\09-c: write i.ref2stars and i.2stars for compatibility with transfall\0A\00"
@.str.11 = [20 x i8] c"\09-v: verbose mode\0A\0A\00"
@EXIT_FAILURE = global i32 0
define void @usage(i8** nocapture %0) {
%2 = load i32, i32* @stderr
%3 = load i8*, i8** %0
%4 = tail call i8* @basename(i8* %3)
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = load i32, i32* @stderr
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i64 0, i64 0), i32 15)
%14 = load i32, i32* @stderr
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.5, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.6, i64 0, i64 0), double 2.000000e+00)
%18 = load i32, i32* @stderr
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.7, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.10, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = tail call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0))
%28 = load i32, i32* @EXIT_FAILURE
%29 = tail call i32 @exit(i32 %28)
unreachable
}