#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 sext2reg_help() {
  char line[1000];
  fprintf(stderr, "\nUsage: sext2reg [catfile] [informat] [outfile] ");
  fprintf(stderr, "[outformat] [dolabel]\n\n");
  fprintf(stderr, "Inputs:\n");
  fprintf(stderr, "  catfile   - file containing the SExtractor catalog\n");
  fprintf(stderr, "  informat  - indicates the format of the input file");
  fprintf(stderr, " (see below)\n");
  fprintf(stderr, "  outfile   - output ds9 region file\n");
  fprintf(stderr, "  outformat - either \"radec\", or \"xy\"\n");
  fprintf(stderr,
          "              (sets the format of the output region file)\n");
  fprintf(stderr, "  dolabel   - include labels? either 1 (yes) or 0 (no)\n\n");
  fprintf(stderr, "Hit return for possible input formats:  ");
  fgets(line, 1000, stdin);
  secat_format();
}


x86 assembly (clang, -O0):
<sext2reg_help>:
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    0xed1(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e6c(%rip),%rax
mov    (%rax),%edi
lea    0xed4(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e57(%rip),%rax
mov    (%rax),%edi
lea    0xec8(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e42(%rip),%rax
mov    (%rax),%edi
lea    0xee9(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e2d(%rip),%rax
mov    (%rax),%edi
lea    0xf09(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e18(%rip),%rax
mov    (%rax),%edi
lea    0xf02(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e03(%rip),%rax
mov    (%rax),%edi
lea    0xf13(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2dee(%rip),%rax
mov    (%rax),%edi
lea    0xf25(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2dd9(%rip),%rax
mov    (%rax),%edi
lea    0xf4b(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2dc4(%rip),%rax
mov    (%rax),%edi
lea    0xf6f(%rip),%rsi
call   1050 <fprintf@plt>
lea    -0x3f0(%rbp),%rdi
mov    0x2db8(%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):
<sext2reg_help>:
push   %rbx
sub    $0x3f0,%rsp
mov    0x2e99(%rip),%rbx
mov    (%rbx),%edi
lea    0xeb8(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xedb(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xee5(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xee0(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf08(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf2f(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf2f(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf47(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf60(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf8d(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfb8(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%edx
mov    %rsp,%rdi
mov    $0x3e8,%esi
call   1040 <fgets@plt>
xor    %eax,%eax
call   1030 <secat_format@plt>
add    $0x3f0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [49 x i8] c"\0AUsage: sext2reg [catfile] [informat] [outfile] \00"
@.str.1 = [24 x i8] c"[outformat] [dolabel]\0A\0A\00"
@.str.2 = [9 x i8] c"Inputs:\0A\00"
@.str.3 = [54 x i8] c" catfile - file containing the SExtractor catalog\0A\00"
@.str.4 = [53 x i8] c" informat - indicates the format of the input file\00"
@.str.5 = [14 x i8] c" (see below)\0A\00"
@.str.6 = [38 x i8] c" outfile - output ds9 region file\0A\00"
@.str.7 = [39 x i8] c" outformat - either \22radec\22, or \22xy\22\0A\00"
@.str.8 = [59 x i8] c" (sets the format of the output region file)\0A\00"
@.str.9 = [57 x i8] c" dolabel - include labels? either 1 (yes) or 0 (no)\0A\0A\00"
@.str.10 = [41 x i8] c"Hit return for possible input formats: \00"
@stdin = global i32 0
define void @sext2reg_help() {
%1 = alloca [1000 x i8]
%2 = load i32, i32* @stderr
%3 = call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @stderr
%5 = call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%6 = load i32, i32* @stderr
%7 = call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.9, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%24 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%25 = load i32, i32* @stdin
%26 = call i32 @fgets(i8* %24, i32 1000, i32 %25)
%27 = call i32 (...) @secat_format()
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [49 x i8] c"\0AUsage: sext2reg [catfile] [informat] [outfile] \00"
@.str.1 = [24 x i8] c"[outformat] [dolabel]\0A\0A\00"
@.str.2 = [9 x i8] c"Inputs:\0A\00"
@.str.3 = [54 x i8] c" catfile - file containing the SExtractor catalog\0A\00"
@.str.4 = [53 x i8] c" informat - indicates the format of the input file\00"
@.str.5 = [14 x i8] c" (see below)\0A\00"
@.str.6 = [38 x i8] c" outfile - output ds9 region file\0A\00"
@.str.7 = [39 x i8] c" outformat - either \22radec\22, or \22xy\22\0A\00"
@.str.8 = [59 x i8] c" (sets the format of the output region file)\0A\00"
@.str.9 = [57 x i8] c" dolabel - include labels? either 1 (yes) or 0 (no)\0A\0A\00"
@.str.10 = [41 x i8] c"Hit return for possible input formats: \00"
@stdin = global i32 0
define void @sext2reg_help() {
%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 ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.8, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.9, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = tail call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%25 = load i32, i32* @stdin
%26 = call i32 @fgets(i8* %2, i32 1000, i32 %25)
%27 = call i32 (...) @secat_format()
ret void
}