#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*/ print_copyright();
int /*<<< orphan*/ print_version(char *);
int /*<<< orphan*/ printf(char *, char *);
scalar_t__ strlen(char *);
int /*<<< orphan*/ usage();
void print_help() {
  printf("\nTool name:\n   %s\n", "metadata");
  usage();
  printf(
      "Description:\n%s\n\n",
      "   The metadata program retrieves data record contents from CEOS "
      "format\n"
      "   metadata files (a.k.a. \"leader files\") ...if the requested record\n"
      "   exists.");
  if (strlen("   <infile>  The basename of the input metadata (leader) file"))
    printf("Input:\n%s\n\n",
           "   <infile>  The basename of the input metadata (leader) file");
  if (strlen("   If the -save option is used, then a set of files named after "
             "the\n"
             "   basename, but with a record identifier suffix appended as a "
             "file\n"
             "   extension will be produced, i.e. basename.dssr"))
    printf(
        "Output:\n%s\n\n",
        "   If the -save option is used, then a set of files named after the\n"
        "   basename, but with a record identifier suffix appended as a file\n"
        "   extension will be produced, i.e. basename.dssr");
  if (strlen(
          "   -save        Write the records to an output file\n"
          "   -all         All records\n"
          "   -dssr        Data Set Summary record\n"
          "   -shr         Scene Header record\n"
          "   -mpdr        Map Projection Data Record\n"
          "   -ppdr        Platform Position Data record\n"
          "   -atdr        Attitude Data record\n"
          "   -ampr        ALOS Map Projection Data\n"
          "   -radr        Radiometric Data record\n"
          "   -ardr        ALOS Radiometric Data record\n"
          "   -rcdr        Radiometric Compensation Data record\n"
          "   -dqsr        Data Quality Summary record\n"
          "   -pdhr        Processed Data Histograms record\n"
          "   -sdhr        Signal Data Histograms record\n"
          "   -rasr        Range Spectra record\n"
          "   -ppr         Processing Parameter record\n"
          "   -facdr       ASF or ESA Facility Related Data record\n"
          "   -asf_facdr   Force ASF Facility Related Data record\n"
          "   -esa_facdr   Force ESA Facility Related Data record\n"
          "   -jaxa_facdr  Force JAXA Facility Related Data record\n"
          "   -ifdr        Image File Descriptor record\n"
          "   -lfdr        Leader File Descriptor record\n"
          "   -tfdr        Trailer File Descriptor record\n"
          "   -meta        Generate ASF internal metadata file\n\n"
          "   -license\n"
          "        Print copyright and license for this software then exit.\n"
          "   -version\n"
          "        Print version and copyright then exit.\n"
          "   -help\n"
          "        Print this help information and then exit."))
    printf("Options:\n%s\n\n",
           "   -save        Write the records to an output file\n"
           "   -all         All records\n"
           "   -dssr        Data Set Summary record\n"
           "   -shr         Scene Header record\n"
           "   -mpdr        Map Projection Data Record\n"
           "   -ppdr        Platform Position Data record\n"
           "   -atdr        Attitude Data record\n"
           "   -ampr        ALOS Map Projection Data\n"
           "   -radr        Radiometric Data record\n"
           "   -ardr        ALOS Radiometric Data record\n"
           "   -rcdr        Radiometric Compensation Data record\n"
           "   -dqsr        Data Quality Summary record\n"
           "   -pdhr        Processed Data Histograms record\n"
           "   -sdhr        Signal Data Histograms record\n"
           "   -rasr        Range Spectra record\n"
           "   -ppr         Processing Parameter record\n"
           "   -facdr       ASF or ESA Facility Related Data record\n"
           "   -asf_facdr   Force ASF Facility Related Data record\n"
           "   -esa_facdr   Force ESA Facility Related Data record\n"
           "   -jaxa_facdr  Force JAXA Facility Related Data record\n"
           "   -ifdr        Image File Descriptor record\n"
           "   -lfdr        Leader File Descriptor record\n"
           "   -tfdr        Trailer File Descriptor record\n"
           "   -meta        Generate ASF internal metadata file\n\n"
           "   -license\n"
           "        Print copyright and license for this software then exit.\n"
           "   -version\n"
           "        Print version and copyright then exit.\n"
           "   -help\n"
           "        Print this help information and then exit.");
  if (strlen(""))
    printf("Examples:\n%s\n\n", "");
  if (strlen(""))
    printf("Limitations:\n%s\n\n", "");
  if (strlen(""))
    printf("See Also:\n%s\n\n", "");
  printf("Contact:\n%s\n", "   "
                           "Alaska Satellite Facility"
                           "\n"
                           "   "
                           "Geophysical Institute"
                           "\n"
                           "   "
                           "University of Alaska Fairbanks"
                           "\n"
                           "   "
                           "P.O. Box 757320"
                           "\n"
                           "   "
                           "Fairbanks, AK 99775-7320"
                           "\n"
                           "   "
                           "http://www.asf.alaska.edu"
                           "\n"
                           "   "
                           "uso@asf.alaska.edu"
                           "\n");
  print_version("metadata");
  print_copyright();
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xea5(%rip),%rdi
lea    0xeb1(%rip),%rsi
call   1050 <printf@plt>
mov    $0x0,%al
call   1070 <usage@plt>
lea    0xea7(%rip),%rdi
lea    0xeb2(%rip),%rsi
call   1050 <printf@plt>
lea    0xf3e(%rip),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
je     11aa <print_help+0x5a>
lea    0xf66(%rip),%rdi
lea    0xf21(%rip),%rsi
call   1050 <printf@plt>
lea    0xf5f(%rip),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
je     11d3 <print_help+0x83>
lea    0x1003(%rip),%rdi
lea    0xf42(%rip),%rsi
call   1050 <printf@plt>
lea    0xffd(%rip),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
je     11fc <print_help+0xac>
lea    0x14f1(%rip),%rdi
lea    0xfe0(%rip),%rsi
call   1050 <printf@plt>
lea    0xe2a(%rip),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
je     1225 <print_help+0xd5>
lea    0x14d6(%rip),%rdi
lea    0xe0d(%rip),%rsi
call   1050 <printf@plt>
lea    0xe01(%rip),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
je     124e <print_help+0xfe>
lea    0x14bc(%rip),%rdi
lea    0xde4(%rip),%rsi
call   1050 <printf@plt>
lea    0xdd8(%rip),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
je     1277 <print_help+0x127>
lea    0x14a5(%rip),%rdi
lea    0xdbb(%rip),%rsi
call   1050 <printf@plt>
lea    0x14a1(%rip),%rdi
lea    0x14a7(%rip),%rsi
call   1050 <printf@plt>
lea    0xd82(%rip),%rdi
call   1030 <print_version@plt>
mov    $0x0,%al
call   1060 <print_copyright@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rbx
lea    0xeb8(%rip),%rdi
lea    0xec4(%rip),%rbx
mov    %rbx,%rsi
call   1040 <printf@plt>
xor    %eax,%eax
call   1060 <usage@plt>
lea    0xeb7(%rip),%rdi
lea    0xec2(%rip),%rsi
call   1040 <printf@plt>
lea    0xf8c(%rip),%rdi
lea    0xf47(%rip),%rsi
call   1040 <printf@plt>
lea    0x103f(%rip),%rdi
lea    0xf7e(%rip),%rsi
call   1040 <printf@plt>
lea    0x1543(%rip),%rdi
lea    0x1032(%rip),%rsi
call   1040 <printf@plt>
lea    0x153e(%rip),%rdi
lea    0x1544(%rip),%rsi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <print_version@plt>
xor    %eax,%eax
pop    %rbx
jmp    1050 <print_copyright@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"\0ATool name:\0A %s\0A\00"
@.str.1 = [9 x i8] c"metadata\00"
@.str.2 = [18 x i8] c"Description:\0A%s\0A\0A\00"
@.str.3 = [152 x i8] c" The metadata program retrieves data record contents from CEOS format\0A metadata files (a.k.a. \22leader files\22) ...if the requested record\0A exists.\00"
@.str.4 = [62 x i8] c" <infile> The basename of the input metadata (leader) file\00"
@.str.5 = [12 x i8] c"Input:\0A%s\0A\0A\00"
@.str.6 = [186 x i8] c" If the -save option is used, then a set of files named after the\0A basename, but with a record identifier suffix appended as a file\0A extension will be produced, i.e. basename.dssr\00"
@.str.7 = [13 x i8] c"Output:\0A%s\0A\0A\00"
@.str.8 = [1290 x i8] c" -save Write the records to an output file\0A -all All records\0A -dssr Data Set Summary record\0A -shr Scene Header record\0A -mpdr Map Projection Data Record\0A -ppdr Platform Position Data record\0A -atdr Attitude Data record\0A -ampr ALOS Map Projection Data\0A -radr Radiometric Data record\0A -ardr ALOS Radiometric Data record\0A -rcdr Radiometric Compensation Data record\0A -dqsr Data Quality Summary record\0A -pdhr Processed Data Histograms record\0A -sdhr Signal Data Histograms record\0A -rasr Range Spectra record\0A -ppr Processing Parameter record\0A -facdr ASF or ESA Facility Related Data record\0A -asf_facdr Force ASF Facility Related Data record\0A -esa_facdr Force ESA Facility Related Data record\0A -jaxa_facdr Force JAXA Facility Related Data record\0A -ifdr Image File Descriptor record\0A -lfdr Leader File Descriptor record\0A -tfdr Trailer File Descriptor record\0A -meta Generate ASF internal metadata file\0A\0A -license\0A Print copyright and license for this software then exit.\0A -version\0A Print version and copyright then exit.\0A -help\0A Print this help information and then exit.\00"
@.str.9 = [14 x i8] c"Options:\0A%s\0A\0A\00"
@.str.10 = [1 x i8] zeroinitializer
@.str.11 = [15 x i8] c"Examples:\0A%s\0A\0A\00"
@.str.12 = [18 x i8] c"Limitations:\0A%s\0A\0A\00"
@.str.13 = [15 x i8] c"See Also:\0A%s\0A\0A\00"
@.str.14 = [13 x i8] c"Contact:\0A%s\0A\00"
@.str.15 = [187 x i8] c" Alaska Satellite Facility\0A Geophysical Institute\0A University of Alaska Fairbanks\0A P.O. Box 757320\0A Fairbanks, AK 99775-7320\0A http://www.asf.alaska.edu\0A uso@asf.alaska.edu\0A\00"
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (...) @usage()
%3 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0))
%4 = call i64 @strlen(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0))
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0))
br label %8
8: ; preds = %6, %0
%9 = call i64 @strlen(i8* getelementptr inbounds ([186 x i8], [186 x i8]* @.str.6, i64 0, i64 0))
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([186 x i8], [186 x i8]* @.str.6, i64 0, i64 0))
br label %13
13: ; preds = %11, %8
%14 = call i64 @strlen(i8* getelementptr inbounds ([1290 x i8], [1290 x i8]* @.str.8, i64 0, i64 0))
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1290 x i8], [1290 x i8]* @.str.8, i64 0, i64 0))
br label %18
18: ; preds = %16, %13
%19 = call i64 @strlen(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0))
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0))
br label %23
23: ; preds = %21, %18
%24 = call i64 @strlen(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0))
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0))
br label %28
28: ; preds = %26, %23
%29 = call i64 @strlen(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0))
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0))
br label %33
33: ; preds = %31, %28
%34 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([187 x i8], [187 x i8]* @.str.15, i64 0, i64 0))
%35 = call i32 @print_version(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%36 = call i32 (...) @print_copyright()
ret void
}

LLVM IR (-O2):
@.str = [19 x i8] c"\0ATool name:\0A %s\0A\00"
@.str.1 = [9 x i8] c"metadata\00"
@.str.2 = [18 x i8] c"Description:\0A%s\0A\0A\00"
@.str.3 = [152 x i8] c" The metadata program retrieves data record contents from CEOS format\0A metadata files (a.k.a. \22leader files\22) ...if the requested record\0A exists.\00"
@.str.4 = [62 x i8] c" <infile> The basename of the input metadata (leader) file\00"
@.str.5 = [12 x i8] c"Input:\0A%s\0A\0A\00"
@.str.6 = [186 x i8] c" If the -save option is used, then a set of files named after the\0A basename, but with a record identifier suffix appended as a file\0A extension will be produced, i.e. basename.dssr\00"
@.str.7 = [13 x i8] c"Output:\0A%s\0A\0A\00"
@.str.8 = [1290 x i8] c" -save Write the records to an output file\0A -all All records\0A -dssr Data Set Summary record\0A -shr Scene Header record\0A -mpdr Map Projection Data Record\0A -ppdr Platform Position Data record\0A -atdr Attitude Data record\0A -ampr ALOS Map Projection Data\0A -radr Radiometric Data record\0A -ardr ALOS Radiometric Data record\0A -rcdr Radiometric Compensation Data record\0A -dqsr Data Quality Summary record\0A -pdhr Processed Data Histograms record\0A -sdhr Signal Data Histograms record\0A -rasr Range Spectra record\0A -ppr Processing Parameter record\0A -facdr ASF or ESA Facility Related Data record\0A -asf_facdr Force ASF Facility Related Data record\0A -esa_facdr Force ESA Facility Related Data record\0A -jaxa_facdr Force JAXA Facility Related Data record\0A -ifdr Image File Descriptor record\0A -lfdr Leader File Descriptor record\0A -tfdr Trailer File Descriptor record\0A -meta Generate ASF internal metadata file\0A\0A -license\0A Print copyright and license for this software then exit.\0A -version\0A Print version and copyright then exit.\0A -help\0A Print this help information and then exit.\00"
@.str.9 = [14 x i8] c"Options:\0A%s\0A\0A\00"
@.str.14 = [13 x i8] c"Contact:\0A%s\0A\00"
@.str.15 = [187 x i8] c" Alaska Satellite Facility\0A Geophysical Institute\0A University of Alaska Fairbanks\0A P.O. Box 757320\0A Fairbanks, AK 99775-7320\0A http://www.asf.alaska.edu\0A uso@asf.alaska.edu\0A\00"
define void @print_help() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (...) @usage()
%3 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([186 x i8], [186 x i8]* @.str.6, i64 0, i64 0))
%6 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1290 x i8], [1290 x i8]* @.str.8, i64 0, i64 0))
%7 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([187 x i8], [187 x i8]* @.str.15, i64 0, i64 0))
%8 = tail call i32 @print_version(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 (...) @print_copyright()
ret void
}