#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*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ secat_format();
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
void help_catcomb() {
  char line[1000];
  fprintf(stderr, "\nUsage: \n");
  fprintf(stderr, "  catcomb [catfile1] [format1] ... [catfileN] ");
  fprintf(stderr, "[formatN]\n\n");
  fprintf(stderr, " ** or **\n\n");
  fprintf(stderr,
          "  catcomb -c [posfile] [catfile1] [format1] ... [catfileN] ");
  fprintf(stderr, "[formatN]\n\n");
  fprintf(stderr, " At least 2 input catalogs are required\n\n");
  fprintf(stderr, "OPTIONS:\n");
  fprintf(stderr, " (no flag)   Just match catalogs on positions\n");
  fprintf(stderr,
          " -c          Match catalogs on positions, but also calculate the\n");
  fprintf(stderr,
          "              offset of each object from a central position\n");
  fprintf(stderr, "             The central position is given in posfile,\n");
  fprintf(stderr,
          "              format: label ra_hr ra_min ra_sec dec_deg dec_amin");
  fprintf(stderr, " dec_asec\n\n");
  fprintf(stderr, "The format flags indicate the formats of the input ");
  fprintf(stderr, "catalogs.\n");
  fprintf(stderr, "Hit return to see format options: ");
  fgets(line, 1000, stdin);
  secat_format();
}


x86 assembly (clang, -O0):
<help_catcomb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3f0,%rsp
mov    0x2e96(%rip),%rax
mov    (%rax),%edi
lea    0xeb5(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e81(%rip),%rax
mov    (%rax),%edi
lea    0xeaa(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e6c(%rip),%rax
mov    (%rax),%edi
lea    0xec4(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e57(%rip),%rax
mov    (%rax),%edi
lea    0xebb(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e42(%rip),%rax
mov    (%rax),%edi
lea    0xeb2(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e2d(%rip),%rax
mov    (%rax),%edi
lea    0xe85(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e18(%rip),%rax
mov    (%rax),%edi
lea    0xec4(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e03(%rip),%rax
mov    (%rax),%edi
lea    0xed9(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2dee(%rip),%rax
mov    (%rax),%edi
lea    0xece(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2dd9(%rip),%rax
mov    (%rax),%edi
lea    0xee8(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2dc4(%rip),%rax
mov    (%rax),%edi
lea    0xf15(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2daf(%rip),%rax
mov    (%rax),%edi
lea    0xf3d(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2d9a(%rip),%rax
mov    (%rax),%edi
lea    0xf60(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2d85(%rip),%rax
mov    (%rax),%edi
lea    0xf8c(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2d70(%rip),%rax
mov    (%rax),%edi
lea    0xf83(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2d5b(%rip),%rax
mov    (%rax),%edi
lea    0xfa2(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2d46(%rip),%rax
mov    (%rax),%edi
lea    0xf98(%rip),%rsi
call   1050 <fprintf@plt>
lea    -0x3f0(%rbp),%rdi
mov    0x2d3a(%rip),%rax
mov    (%rax),%edx
mov    $0x3e8,%esi
call   1040 <fgets@plt>
mov    $0x0,%al
call   1030 <secat_format@plt>
add    $0x3f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help_catcomb>:
push   %r14
push   %rbx
sub    $0x3e8,%rsp
mov    0x2e97(%rip),%rbx
mov    (%rbx),%edi
lea    0xeb6(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xeb2(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xed3(%rip),%r14
mov    %r14,%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xece(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xecc(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xef0(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf0c(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf08(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf29(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf5d(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf8c(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfb6(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfe9(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfe7(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0x100d(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0x100a(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2db3(%rip),%rax
mov    (%rax),%edx
mov    %rsp,%rdi
mov    $0x3e8,%esi
call   1040 <fgets@plt>
xor    %eax,%eax
call   1030 <secat_format@plt>
add    $0x3e8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [10 x i8] c"\0AUsage: \0A\00"
@.str.1 = [47 x i8] c" catcomb [catfile1] [format1] ... [catfileN] \00"
@.str.2 = [12 x i8] c"[formatN]\0A\0A\00"
@.str.3 = [12 x i8] c" ** or **\0A\0A\00"
@.str.4 = [60 x i8] c" catcomb -c [posfile] [catfile1] [format1] ... [catfileN] \00"
@.str.5 = [42 x i8] c" At least 2 input catalogs are required\0A\0A\00"
@.str.6 = [10 x i8] c"OPTIONS:\0A\00"
@.str.7 = [47 x i8] c" (no flag) Just match catalogs on positions\0A\00"
@.str.8 = [66 x i8] c" -c Match catalogs on positions, but also calculate the\0A\00"
@.str.9 = [61 x i8] c" offset of each object from a central position\0A\00"
@.str.10 = [56 x i8] c" The central position is given in posfile,\0A\00"
@.str.11 = [65 x i8] c" format: label ra_hr ra_min ra_sec dec_deg dec_amin\00"
@.str.12 = [12 x i8] c" dec_asec\0A\0A\00"
@.str.13 = [52 x i8] c"The format flags indicate the formats of the input \00"
@.str.14 = [11 x i8] c"catalogs.\0A\00"
@.str.15 = [35 x i8] c"Hit return to see format options: \00"
@stdin = global i32 0
define void @help_catcomb() {
%1 = alloca [1000 x i8]
%2 = load i32, i32* @stderr
%3 = call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @stderr
%5 = call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0))
%6 = load i32, i32* @stderr
%7 = call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.4, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.8, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = call i32 @fprintf(i32 %24, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.11, i64 0, i64 0))
%28 = load i32, i32* @stderr
%29 = call i32 @fprintf(i32 %28, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = call i32 @fprintf(i32 %30, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.13, i64 0, i64 0))
%32 = load i32, i32* @stderr
%33 = call i32 @fprintf(i32 %32, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%34 = load i32, i32* @stderr
%35 = call i32 @fprintf(i32 %34, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.15, i64 0, i64 0))
%36 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%37 = load i32, i32* @stdin
%38 = call i32 @fgets(i8* %36, i32 1000, i32 %37)
%39 = call i32 (...) @secat_format()
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [10 x i8] c"\0AUsage: \0A\00"
@.str.1 = [47 x i8] c" catcomb [catfile1] [format1] ... [catfileN] \00"
@.str.2 = [12 x i8] c"[formatN]\0A\0A\00"
@.str.3 = [12 x i8] c" ** or **\0A\0A\00"
@.str.4 = [60 x i8] c" catcomb -c [posfile] [catfile1] [format1] ... [catfileN] \00"
@.str.5 = [42 x i8] c" At least 2 input catalogs are required\0A\0A\00"
@.str.6 = [10 x i8] c"OPTIONS:\0A\00"
@.str.7 = [47 x i8] c" (no flag) Just match catalogs on positions\0A\00"
@.str.8 = [66 x i8] c" -c Match catalogs on positions, but also calculate the\0A\00"
@.str.9 = [61 x i8] c" offset of each object from a central position\0A\00"
@.str.10 = [56 x i8] c" The central position is given in posfile,\0A\00"
@.str.11 = [65 x i8] c" format: label ra_hr ra_min ra_sec dec_deg dec_amin\00"
@.str.12 = [12 x i8] c" dec_asec\0A\0A\00"
@.str.13 = [52 x i8] c"The format flags indicate the formats of the input \00"
@.str.14 = [11 x i8] c"catalogs.\0A\00"
@.str.15 = [35 x i8] c"Hit return to see format options: \00"
@stdin = global i32 0
define void @help_catcomb() {
%1 = alloca [1000 x i8]
%2 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.4, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.8, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = tail call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = tail call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = tail call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.11, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = tail call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = tail call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.13, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = tail call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = tail call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.15, i64 0, i64 0))
%37 = load i32, i32* @stdin
%38 = call i32 @fgets(i8* %2, i32 1000, i32 %37)
%39 = call i32 (...) @secat_format()
ret void
}