#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", "create_thumbs");
  usage();
  printf(
      "Description:\n%s\n\n",
      "     This program takes any number of files and generates thumbnail "
      "(or\n"
      "     browse) images.  If a directory is specified, all files in that\n"
      "     directory are processed.  If -R is specified, any subdirectories\n"
      "     are also processed, recursively.\n\n"
      "     The generated thumbnails have the same basename as the input\n"
      "     file but with '_thumb.jpg' or '_thumb.tif' added.  If -browse\n"
      "     is specified, the output file name will be the basename with\n"
      "     just '.jpg' or '.tif' added.");
  if (strlen("     At least one input file or directory is required.\n"))
    printf("Input:\n%s\n\n",
           "     At least one input file or directory is required.\n");
  if (strlen("     The program will produce one thumbnail for each input file "
             "found.\n"))
    printf("Output:\n%s\n\n", "     The program will produce one thumbnail for "
                              "each input file found.\n");
  if (strlen(
          "     -size <size>\n"
          "          Generate thumbnails (or browse images) of the given size "
          "in pixels.\n"
          "          The default is 1024 pixels.  If the input image isn't "
          "square, the longer\n"
          "          side will be scaled to the given size, the other "
          "dimension will be\n"
          "          determined so as to keep the same aspect ratio.\n"
          "          NOTE: Cannot be used together with the -scale option.\n"
          "\n"
          "     -recursive (-R, -r)\n"
          "          Recurse into subdirectories, looking for additional CEOS "
          "files\n"
          "          to generate thumbnails for.\n"
          "\n"
          "     -out-dir (-output-dir, -o)\n"
          "          Specify a directory where all thumbnails are placed.  "
          "Without\n"
          "          this option, all thumbnails are placed in the same "
          "directory as\n"
          "          the CEOS file.\n"
          "\n"
          "     -L0 <stf|ceos|jaxa_L0>\n"
          "          Force Level 0 (zero) processing.  'stf' or 'ceos' "
          "indicates input file\n"
          "          format.  Level 0 stf or ceos processing results in the "
          "following additional\n"
          "          processing steps:\n\n"
          "            - import into ASF Internal Format\n"
          "            - range-doppler (ardop) processing\n"
          "            - conversion of amplitude output from slant range to "
          "ground range\n"
          "            - scale ground range amplitude image to size indicated "
          "by -size or -scale\n"
          "              command line parameters\n"
          "            - image is flipped/rotated to north-up, west-left "
          "orientation\n"
          "            - image is exported to the selected output graphics "
          "file format\n"
          "          jaxa_L0 Level 0 processing refers to JAXA AVNIR-2 Level 0 "
          "(optical)\n"
          "          processing, and the processing steps are therefore:\n"
          "            - import into ASF Internal Format\n"
          "            - scale image to size indicated by -size or -scale\n"
          "              command line parameters\n"
          "            - (image is NOT flipped/rotated to north-up, west-left "
          "orientation)\n"
          "              (... this capability is coming soon however.)\n"
          "            - image is exported to the selected output graphics "
          "file format\n"
          "\n"
          "     -output-format <tiff|jpeg>\n"
          "          Choose graphics file format for output file.  Default is "
          "JPEG.\n"
          "\n"
          "     -log <log file>\n"
          "          Output will be written to a specified log file.\n"
          "\n"
          "     -quiet (-q)\n"
          "          Supresses all non-error output.\n"
          "\n"
          "     -verbose (-v)\n"
          "          Prints out files that were ignored (i.e., not CEOS "
          "files).\n"
          "\n"
          "     -license\n"
          "          Print copyright and license for this software then exit.\n"
          "\n"
          "     -version (-v)\n"
          "          Print version and copyright then exit.\n"
          "\n"
          "     -scale (-s)\n"
          "          Downscale factor, i.e. -scale 8 will result in an output "
          "image\n"
          "          scaled to 1/8th the original size.  Scaling will use the "
          "closest\n"
          "          integer value.\n"
          "\n"
          "     -browse (-b)\n"
          "          For browse images that should be named <basename>.ext "
          "rather\n"
          "          than <basename>_thumb.ext.  This option prevends '_thumb' "
          "from\n"
          "          being appended to the output basename.\n"
          "\n"
          "     -save-metadata\n"
          "          Results in all metadata files (intermediate and final) to "
          "be saved\n"
          "          in the output directory.\n"
          "\n"
          "     -help\n"
          "          Print a help page and exit."))
    printf(
        "Options:\n%s\n\n",
        "     -size <size>\n"
        "          Generate thumbnails (or browse images) of the given size in "
        "pixels.\n"
        "          The default is 1024 pixels.  If the input image isn't "
        "square, the longer\n"
        "          side will be scaled to the given size, the other dimension "
        "will be\n"
        "          determined so as to keep the same aspect ratio.\n"
        "          NOTE: Cannot be used together with the -scale option.\n"
        "\n"
        "     -recursive (-R, -r)\n"
        "          Recurse into subdirectories, looking for additional CEOS "
        "files\n"
        "          to generate thumbnails for.\n"
        "\n"
        "     -out-dir (-output-dir, -o)\n"
        "          Specify a directory where all thumbnails are placed.  "
        "Without\n"
        "          this option, all thumbnails are placed in the same "
        "directory as\n"
        "          the CEOS file.\n"
        "\n"
        "     -L0 <stf|ceos|jaxa_L0>\n"
        "          Force Level 0 (zero) processing.  'stf' or 'ceos' indicates "
        "input file\n"
        "          format.  Level 0 stf or ceos processing results in the "
        "following additional\n"
        "          processing steps:\n\n"
        "            - import into ASF Internal Format\n"
        "            - range-doppler (ardop) processing\n"
        "            - conversion of amplitude output from slant range to "
        "ground range\n"
        "            - scale ground range amplitude image to size indicated by "
        "-size or -scale\n"
        "              command line parameters\n"
        "            - image is flipped/rotated to north-up, west-left "
        "orientation\n"
        "            - image is exported to the selected output graphics file "
        "format\n"
        "          jaxa_L0 Level 0 processing refers to JAXA AVNIR-2 Level 0 "
        "(optical)\n"
        "          processing, and the processing steps are therefore:\n"
        "            - import into ASF Internal Format\n"
        "            - scale image to size indicated by -size or -scale\n"
        "              command line parameters\n"
        "            - (image is NOT flipped/rotated to north-up, west-left "
        "orientation)\n"
        "              (... this capability is coming soon however.)\n"
        "            - image is exported to the selected output graphics file "
        "format\n"
        "\n"
        "     -output-format <tiff|jpeg>\n"
        "          Choose graphics file format for output file.  Default is "
        "JPEG.\n"
        "\n"
        "     -log <log file>\n"
        "          Output will be written to a specified log file.\n"
        "\n"
        "     -quiet (-q)\n"
        "          Supresses all non-error output.\n"
        "\n"
        "     -verbose (-v)\n"
        "          Prints out files that were ignored (i.e., not CEOS files).\n"
        "\n"
        "     -license\n"
        "          Print copyright and license for this software then exit.\n"
        "\n"
        "     -version (-v)\n"
        "          Print version and copyright then exit.\n"
        "\n"
        "     -scale (-s)\n"
        "          Downscale factor, i.e. -scale 8 will result in an output "
        "image\n"
        "          scaled to 1/8th the original size.  Scaling will use the "
        "closest\n"
        "          integer value.\n"
        "\n"
        "     -browse (-b)\n"
        "          For browse images that should be named <basename>.ext "
        "rather\n"
        "          than <basename>_thumb.ext.  This option prevends '_thumb' "
        "from\n"
        "          being appended to the output basename.\n"
        "\n"
        "     -save-metadata\n"
        "          Results in all metadata files (intermediate and final) to "
        "be saved\n"
        "          in the output directory.\n"
        "\n"
        "     -help\n"
        "          Print a help page and exit.");
  if (strlen(
          "     Generate thumbnails for all files in the current directory:\n"
          "     > "
          "create_thumbs"
          " .\n\n"
          "     Generate thumbnails for files in the directory n60s:\n"
          "     > "
          "create_thumbs"
          " n60s\n\n"
          "     Generate thumbnails for all files in the current directory,\n"
          "     and all subdirectories.\n"
          "     > "
          "create_thumbs"
          " -r .\n\n"
          "     Generate a large thumbnail for the single file file1.D:\n"
          "     > "
          "create_thumbs"
          " -size 1024 file.D\n\n"
          "     Generate a browse image for an STF Level 0 file:\n"
          "     > "
          "create_thumbs"
          " -L0 stf -browse -scale 8 file.000\n\n"))
    printf("Examples:\n%s\n\n",
           "     Generate thumbnails for all files in the current directory:\n"
           "     > "
           "create_thumbs"
           " .\n\n"
           "     Generate thumbnails for files in the directory n60s:\n"
           "     > "
           "create_thumbs"
           " n60s\n\n"
           "     Generate thumbnails for all files in the current directory,\n"
           "     and all subdirectories.\n"
           "     > "
           "create_thumbs"
           " -r .\n\n"
           "     Generate a large thumbnail for the single file file1.D:\n"
           "     > "
           "create_thumbs"
           " -size 1024 file.D\n\n"
           "     Generate a browse image for an STF Level 0 file:\n"
           "     > "
           "create_thumbs"
           " -L0 stf -browse -scale 8 file.000\n\n");
  if (strlen("     1. The output file naming convention is not "
             "user-customizable."))
    printf(
        "Limitations:\n%s\n\n",
        "     1. The output file naming convention is not user-customizable.");
  if (strlen("    mapready\n"
             "    asf_mapready"))
    printf("See Also:\n%s\n\n", "    mapready\n"
                                "    asf_mapready");
  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("create_thumbs");
  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    0xeac(%rip),%rdi
lea    0xeb7(%rip),%rsi
call   1050 <printf@plt>
lea    0x108e(%rip),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
je     11aa <print_help+0x5a>
lea    0x10b0(%rip),%rdi
lea    0x1071(%rip),%rsi
call   1050 <printf@plt>
lea    0x10a9(%rip),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
je     11d3 <print_help+0x83>
lea    0x10db(%rip),%rdi
lea    0x108c(%rip),%rsi
call   1050 <printf@plt>
lea    0x10d5(%rip),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
je     11fc <print_help+0xac>
lea    0x1c53(%rip),%rdi
lea    0x10b8(%rip),%rsi
call   1050 <printf@plt>
lea    0x1c4e(%rip),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
je     1225 <print_help+0xd5>
lea    0x1e33(%rip),%rdi
lea    0x1c31(%rip),%rsi
call   1050 <printf@plt>
lea    0x1e2f(%rip),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
je     124e <print_help+0xfe>
lea    0x1e5d(%rip),%rdi
lea    0x1e12(%rip),%rsi
call   1050 <printf@plt>
lea    0x1e5c(%rip),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
je     1277 <print_help+0x127>
lea    0x1e64(%rip),%rdi
lea    0x1e3f(%rip),%rsi
call   1050 <printf@plt>
lea    0x1e60(%rip),%rdi
lea    0x1e66(%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    0xebc(%rip),%rdi
lea    0xec7(%rip),%rsi
call   1040 <printf@plt>
lea    0x10d6(%rip),%rdi
lea    0x1097(%rip),%rsi
call   1040 <printf@plt>
lea    0x1117(%rip),%rdi
lea    0x10c8(%rip),%rsi
call   1040 <printf@plt>
lea    0x1ca5(%rip),%rdi
lea    0x110a(%rip),%rsi
call   1040 <printf@plt>
lea    0x1e9b(%rip),%rdi
lea    0x1c99(%rip),%rsi
call   1040 <printf@plt>
lea    0x1edb(%rip),%rdi
lea    0x1e90(%rip),%rsi
call   1040 <printf@plt>
lea    0x1ef8(%rip),%rdi
lea    0x1ed3(%rip),%rsi
call   1040 <printf@plt>
lea    0x1ef4(%rip),%rdi
lea    0x1efa(%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 = [14 x i8] c"create_thumbs\00"
@.str.2 = [18 x i8] c"Description:\0A%s\0A\0A\00"
@.str.3 = [483 x i8] c" This program takes any number of files and generates thumbnail (or\0A browse) images. If a directory is specified, all files in that\0A directory are processed. If -R is specified, any subdirectories\0A are also processed, recursively.\0A\0A The generated thumbnails have the same basename as the input\0A file but with '_thumb.jpg' or '_thumb.tif' added. If -browse\0A is specified, the output file name will be the basename with\0A just '.jpg' or '.tif' added.\00"
@.str.4 = [56 x i8] c" At least one input file or directory is required.\0A\00"
@.str.5 = [12 x i8] c"Input:\0A%s\0A\0A\00"
@.str.6 = [72 x i8] c" The program will produce one thumbnail for each input file found.\0A\00"
@.str.7 = [13 x i8] c"Output:\0A%s\0A\0A\00"
@.str.8 = [2964 x i8] c" -size <size>\0A Generate thumbnails (or browse images) of the given size in pixels.\0A The default is 1024 pixels. If the input image isn't square, the longer\0A side will be scaled to the given size, the other dimension will be\0A determined so as to keep the same aspect ratio.\0A NOTE: Cannot be used together with the -scale option.\0A\0A -recursive (-R, -r)\0A Recurse into subdirectories, looking for additional CEOS files\0A to generate thumbnails for.\0A\0A -out-dir (-output-dir, -o)\0A Specify a directory where all thumbnails are placed. Without\0A this option, all thumbnails are placed in the same directory as\0A the CEOS file.\0A\0A -L0 <stf|ceos|jaxa_L0>\0A Force Level 0 (zero) processing. 'stf' or 'ceos' indicates input file\0A format. Level 0 stf or ceos processing results in the following additional\0A processing steps:\0A\0A - import into ASF Internal Format\0A - range-doppler (ardop) processing\0A - conversion of amplitude output from slant range to ground range\0A - scale ground range amplitude image to size indicated by -size or -scale\0A command line parameters\0A - image is flipped/rotated to north-up, west-left orientation\0A - image is exported to the selected output graphics file format\0A jaxa_L0 Level 0 processing refers to JAXA AVNIR-2 Level 0 (optical)\0A processing, and the processing steps are therefore:\0A - import into ASF Internal Format\0A - scale image to size indicated by -size or -scale\0A command line parameters\0A - (image is NOT flipped/rotated to north-up, west-left orientation)\0A (... this capability is coming soon however.)\0A - image is exported to the selected output graphics file format\0A\0A -output-format <tiff|jpeg>\0A Choose graphics file format for output file. Default is JPEG.\0A\0A -log <log file>\0A Output will be written to a specified log file.\0A\0A -quiet (-q)\0A Supresses all non-error output.\0A\0A -verbose (-v)\0A Prints out files that were ignored (i.e., not CEOS files).\0A\0A -license\0A Print copyright and license for this software then exit.\0A\0A -version (-v)\0A Print version and copyright then exit.\0A\0A -scale (-s)\0A Downscale factor, i.e. -scale 8 will result in an output image\0A scaled to 1/8th the original size. Scaling will use the closest\0A integer value.\0A\0A -browse (-b)\0A For browse images that should be named <basename>.ext rather\0A than <basename>_thumb.ext. This option prevends '_thumb' from\0A being appended to the output basename.\0A\0A -save-metadata\0A Results in all metadata files (intermediate and final) to be saved\0A in the output directory.\0A\0A -help\0A Print a help page and exit.\00"
@.str.9 = [14 x i8] c"Options:\0A%s\0A\0A\00"
@.str.10 = [507 x i8] c" Generate thumbnails for all files in the current directory:\0A > create_thumbs .\0A\0A Generate thumbnails for files in the directory n60s:\0A > create_thumbs n60s\0A\0A Generate thumbnails for all files in the current directory,\0A and all subdirectories.\0A > create_thumbs -r .\0A\0A Generate a large thumbnail for the single file file1.D:\0A > create_thumbs -size 1024 file.D\0A\0A Generate a browse image for an STF Level 0 file:\0A > create_thumbs -L0 stf -browse -scale 8 file.000\0A\0A\00"
@.str.11 = [15 x i8] c"Examples:\0A%s\0A\0A\00"
@.str.12 = [68 x i8] c" 1. The output file naming convention is not user-customizable.\00"
@.str.13 = [18 x i8] c"Limitations:\0A%s\0A\0A\00"
@.str.14 = [30 x i8] c" mapready\0A asf_mapready\00"
@.str.15 = [15 x i8] c"See Also:\0A%s\0A\0A\00"
@.str.16 = [13 x i8] c"Contact:\0A%s\0A\00"
@.str.17 = [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 ([14 x i8], [14 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 ([483 x i8], [483 x i8]* @.str.3, i64 0, i64 0))
%4 = call i64 @strlen(i8* getelementptr inbounds ([56 x i8], [56 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 ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0))
br label %8
8: ; preds = %6, %0
%9 = call i64 @strlen(i8* getelementptr inbounds ([72 x i8], [72 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 ([72 x i8], [72 x i8]* @.str.6, i64 0, i64 0))
br label %13
13: ; preds = %11, %8
%14 = call i64 @strlen(i8* getelementptr inbounds ([2964 x i8], [2964 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 ([2964 x i8], [2964 x i8]* @.str.8, i64 0, i64 0))
br label %18
18: ; preds = %16, %13
%19 = call i64 @strlen(i8* getelementptr inbounds ([507 x i8], [507 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 ([507 x i8], [507 x i8]* @.str.10, i64 0, i64 0))
br label %23
23: ; preds = %21, %18
%24 = call i64 @strlen(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.12, 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.13, i64 0, i64 0), i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.12, i64 0, i64 0))
br label %28
28: ; preds = %26, %23
%29 = call i64 @strlen(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, 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.15, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, 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.16, i64 0, i64 0), i8* getelementptr inbounds ([187 x i8], [187 x i8]* @.str.17, i64 0, i64 0))
%35 = call i32 @print_version(i8* getelementptr inbounds ([14 x i8], [14 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 = [14 x i8] c"create_thumbs\00"
@.str.2 = [18 x i8] c"Description:\0A%s\0A\0A\00"
@.str.3 = [483 x i8] c" This program takes any number of files and generates thumbnail (or\0A browse) images. If a directory is specified, all files in that\0A directory are processed. If -R is specified, any subdirectories\0A are also processed, recursively.\0A\0A The generated thumbnails have the same basename as the input\0A file but with '_thumb.jpg' or '_thumb.tif' added. If -browse\0A is specified, the output file name will be the basename with\0A just '.jpg' or '.tif' added.\00"
@.str.4 = [56 x i8] c" At least one input file or directory is required.\0A\00"
@.str.5 = [12 x i8] c"Input:\0A%s\0A\0A\00"
@.str.6 = [72 x i8] c" The program will produce one thumbnail for each input file found.\0A\00"
@.str.7 = [13 x i8] c"Output:\0A%s\0A\0A\00"
@.str.8 = [2964 x i8] c" -size <size>\0A Generate thumbnails (or browse images) of the given size in pixels.\0A The default is 1024 pixels. If the input image isn't square, the longer\0A side will be scaled to the given size, the other dimension will be\0A determined so as to keep the same aspect ratio.\0A NOTE: Cannot be used together with the -scale option.\0A\0A -recursive (-R, -r)\0A Recurse into subdirectories, looking for additional CEOS files\0A to generate thumbnails for.\0A\0A -out-dir (-output-dir, -o)\0A Specify a directory where all thumbnails are placed. Without\0A this option, all thumbnails are placed in the same directory as\0A the CEOS file.\0A\0A -L0 <stf|ceos|jaxa_L0>\0A Force Level 0 (zero) processing. 'stf' or 'ceos' indicates input file\0A format. Level 0 stf or ceos processing results in the following additional\0A processing steps:\0A\0A - import into ASF Internal Format\0A - range-doppler (ardop) processing\0A - conversion of amplitude output from slant range to ground range\0A - scale ground range amplitude image to size indicated by -size or -scale\0A command line parameters\0A - image is flipped/rotated to north-up, west-left orientation\0A - image is exported to the selected output graphics file format\0A jaxa_L0 Level 0 processing refers to JAXA AVNIR-2 Level 0 (optical)\0A processing, and the processing steps are therefore:\0A - import into ASF Internal Format\0A - scale image to size indicated by -size or -scale\0A command line parameters\0A - (image is NOT flipped/rotated to north-up, west-left orientation)\0A (... this capability is coming soon however.)\0A - image is exported to the selected output graphics file format\0A\0A -output-format <tiff|jpeg>\0A Choose graphics file format for output file. Default is JPEG.\0A\0A -log <log file>\0A Output will be written to a specified log file.\0A\0A -quiet (-q)\0A Supresses all non-error output.\0A\0A -verbose (-v)\0A Prints out files that were ignored (i.e., not CEOS files).\0A\0A -license\0A Print copyright and license for this software then exit.\0A\0A -version (-v)\0A Print version and copyright then exit.\0A\0A -scale (-s)\0A Downscale factor, i.e. -scale 8 will result in an output image\0A scaled to 1/8th the original size. Scaling will use the closest\0A integer value.\0A\0A -browse (-b)\0A For browse images that should be named <basename>.ext rather\0A than <basename>_thumb.ext. This option prevends '_thumb' from\0A being appended to the output basename.\0A\0A -save-metadata\0A Results in all metadata files (intermediate and final) to be saved\0A in the output directory.\0A\0A -help\0A Print a help page and exit.\00"
@.str.9 = [14 x i8] c"Options:\0A%s\0A\0A\00"
@.str.10 = [507 x i8] c" Generate thumbnails for all files in the current directory:\0A > create_thumbs .\0A\0A Generate thumbnails for files in the directory n60s:\0A > create_thumbs n60s\0A\0A Generate thumbnails for all files in the current directory,\0A and all subdirectories.\0A > create_thumbs -r .\0A\0A Generate a large thumbnail for the single file file1.D:\0A > create_thumbs -size 1024 file.D\0A\0A Generate a browse image for an STF Level 0 file:\0A > create_thumbs -L0 stf -browse -scale 8 file.000\0A\0A\00"
@.str.11 = [15 x i8] c"Examples:\0A%s\0A\0A\00"
@.str.12 = [68 x i8] c" 1. The output file naming convention is not user-customizable.\00"
@.str.13 = [18 x i8] c"Limitations:\0A%s\0A\0A\00"
@.str.14 = [30 x i8] c" mapready\0A asf_mapready\00"
@.str.15 = [15 x i8] c"See Also:\0A%s\0A\0A\00"
@.str.16 = [13 x i8] c"Contact:\0A%s\0A\00"
@.str.17 = [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 ([14 x i8], [14 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 ([483 x i8], [483 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 ([56 x i8], [56 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 ([72 x i8], [72 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 ([2964 x i8], [2964 x i8]* @.str.8, i64 0, i64 0))
%7 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([507 x i8], [507 x i8]* @.str.10, i64 0, i64 0))
%8 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.12, i64 0, i64 0))
%9 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0))
%10 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([187 x i8], [187 x i8]* @.str.17, i64 0, i64 0))
%11 = tail call i32 @print_version(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%12 = tail call i32 (...) @print_copyright()
ret void
}