#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*/ printf(char *);
void usage() {
  printf("\n\nUSAGE: ");
  printf(
      "\n   fragstats in_image out_file cellsize edge_dist data_type [rows]");
  printf("\n   [cols] [background] [max_classes] [wt_file] [id_image] "
         "[desc_file]");
  printf("\n   [bound_wght] [diags] [prox_dist] [nndist] [patch_stats] "
         "[class_stats]");
  printf("\n\nin_image:    name of input image file {char}");
  printf("\nout_file:    basename for output files {char}");
  printf("\ncellsize:    size of cells in meters in in_image {float}");
  printf("\nedge_dist:   distance from edge in meters for core area {float}");
  printf("\ndata_type:   type of input image file {int}:");
  printf("\n             1 - SVF             2 - ascii  3 - 8 bit binary");
  printf("\n             4 - 16 bit binary   5 - ERDAS  6 - IDRISI");
  printf("\nrows:        optional; #rows in image; required if data_type 2,3,4 "
         "{int}");
  printf("\ncols:        optional; #cols in image; required if data_type 2,3,4 "
         "{int}");
  printf("\nbackground:  optional; value of background cells (positive) {int} "
         "{NONE]");
  printf("\nmax_classes: optional; max possible classes in landscape {int} "
         "[NONE]");
  printf("\nwt_file:     optional; name of file containing weights for each");
  printf("\n             combination of patch type {char} [NONE]");
  printf("\nid_image:    optional; method for assigning patch IDs:");
  printf("\n             1 - create and output ID image");
  printf("\n             2 - do not output an ID image [default]");
  printf("\n               - name of ID image; data_type must be same as "
         "in_image");
  printf(
      "\ndesc_file:   optional; name of file containing character descriptors");
  printf("\n             for each patch type {char} [NONE]");
  printf("\nbound_wght:  optional; proportion of landscape boundary and "
         "background");
  printf("\n             class edges to be considered edge {float} [0.0]");
  printf("\ndiags:       optional; use diagonals in patch finding {y/n} [YES]");
  printf("\nprox_dist:   optional; search radius in meters for proximity "
         "{float} [NONE]");
  printf("\nnndist:      optional; calculate nearest neighbor {y/n} [YES] ");
  printf("\npatch_stats: optional; print patch level stats {y/n} [YES]");
  printf("\nclass_stats: optional; print class level stats {y/n} [YES]");
  printf("\n\nNOTE:  use a $ in place of skipped optional parameters");
  printf("\n\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf56(%rip),%rdi
call   1030 <printf@plt>
lea    0xf94(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb7(%rip),%rdi
call   1030 <printf@plt>
lea    0xfda(%rip),%rdi
call   1030 <printf@plt>
lea    0x1008(%rip),%rdi
call   1030 <printf@plt>
lea    0x103d(%rip),%rdi
call   1030 <printf@plt>
lea    0x105f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1091(%rip),%rdi
call   1030 <printf@plt>
lea    0x10bd(%rip),%rdi
call   1030 <printf@plt>
lea    0x10fb(%rip),%rdi
call   1030 <printf@plt>
lea    0x1139(%rip),%rdi
call   1030 <printf@plt>
lea    0x1177(%rip),%rdi
call   1030 <printf@plt>
lea    0x11b2(%rip),%rdi
call   1030 <printf@plt>
lea    0x11e7(%rip),%rdi
call   1030 <printf@plt>
lea    0x1211(%rip),%rdi
call   1030 <printf@plt>
lea    0x123d(%rip),%rdi
call   1030 <printf@plt>
lea    0x125e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1288(%rip),%rdi
call   1030 <printf@plt>
lea    0x12c3(%rip),%rdi
call   1030 <printf@plt>
lea    0x12fd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1321(%rip),%rdi
call   1030 <printf@plt>
lea    0x135d(%rip),%rdi
call   1030 <printf@plt>
lea    0x138f(%rip),%rdi
call   1030 <printf@plt>
lea    0x13c6(%rip),%rdi
call   1030 <printf@plt>
lea    0x1407(%rip),%rdi
call   1030 <printf@plt>
lea    0x143b(%rip),%rdi
call   1030 <printf@plt>
lea    0x146b(%rip),%rdi
call   1030 <printf@plt>
lea    0x149b(%rip),%rdi
call   1030 <printf@plt>
lea    0x14c8(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
lea    0xed6(%rip),%rdi
call   1040 <printf@plt>
lea    0xf0e(%rip),%rdi
call   1040 <printf@plt>
lea    0xf49(%rip),%rdi
call   1040 <printf@plt>
lea    0xf87(%rip),%rdi
call   1040 <printf@plt>
lea    0xfaa(%rip),%rdi
call   1040 <printf@plt>
lea    0xfcd(%rip),%rdi
call   1040 <printf@plt>
lea    0xffb(%rip),%rdi
call   1040 <printf@plt>
lea    0x1030(%rip),%rdi
call   1040 <printf@plt>
lea    0x1052(%rip),%rdi
call   1040 <printf@plt>
lea    0x1084(%rip),%rdi
call   1040 <printf@plt>
lea    0x10b0(%rip),%rdi
call   1040 <printf@plt>
lea    0x10ee(%rip),%rdi
call   1040 <printf@plt>
lea    0x112c(%rip),%rdi
call   1040 <printf@plt>
lea    0x116a(%rip),%rdi
call   1040 <printf@plt>
lea    0x11a5(%rip),%rdi
call   1040 <printf@plt>
lea    0x11da(%rip),%rdi
call   1040 <printf@plt>
lea    0x1204(%rip),%rdi
call   1040 <printf@plt>
lea    0x1230(%rip),%rdi
call   1040 <printf@plt>
lea    0x1251(%rip),%rdi
call   1040 <printf@plt>
lea    0x127b(%rip),%rdi
call   1040 <printf@plt>
lea    0x12b6(%rip),%rdi
call   1040 <printf@plt>
lea    0x12f0(%rip),%rdi
call   1040 <printf@plt>
lea    0x1314(%rip),%rdi
call   1040 <printf@plt>
lea    0x1350(%rip),%rdi
call   1040 <printf@plt>
lea    0x1382(%rip),%rdi
call   1040 <printf@plt>
lea    0x13b9(%rip),%rdi
call   1040 <printf@plt>
lea    0x13fa(%rip),%rdi
call   1040 <printf@plt>
lea    0x142e(%rip),%rdi
call   1040 <printf@plt>
lea    0x145e(%rip),%rdi
call   1040 <printf@plt>
lea    0x148e(%rip),%rdi
call   1040 <printf@plt>
lea    0x14bb(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"\0A\0AUSAGE: \00"
@.str.1 = [68 x i8] c"\0A fragstats in_image out_file cellsize edge_dist data_type [rows]\00"
@.str.2 = [71 x i8] c"\0A [cols] [background] [max_classes] [wt_file] [id_image] [desc_file]\00"
@.str.3 = [74 x i8] c"\0A [bound_wght] [diags] [prox_dist] [nndist] [patch_stats] [class_stats]\00"
@.str.4 = [47 x i8] c"\0A\0Ain_image: name of input image file {char}\00"
@.str.5 = [47 x i8] c"\0Aout_file: basename for output files {char}\00"
@.str.6 = [58 x i8] c"\0Acellsize: size of cells in meters in in_image {float}\00"
@.str.7 = [65 x i8] c"\0Aedge_dist: distance from edge in meters for core area {float}\00"
@.str.8 = [46 x i8] c"\0Adata_type: type of input image file {int}:\00"
@.str.9 = [62 x i8] c"\0A 1 - SVF 2 - ascii 3 - 8 bit binary\00"
@.str.10 = [56 x i8] c"\0A 4 - 16 bit binary 5 - ERDAS 6 - IDRISI\00"
@.str.11 = [74 x i8] c"\0Arows: optional; #rows in image; required if data_type 2,3,4 {int}\00"
@.str.12 = [74 x i8] c"\0Acols: optional; #cols in image; required if data_type 2,3,4 {int}\00"
@.str.13 = [74 x i8] c"\0Abackground: optional; value of background cells (positive) {int} {NONE]\00"
@.str.14 = [71 x i8] c"\0Amax_classes: optional; max possible classes in landscape {int} [NONE]\00"
@.str.15 = [65 x i8] c"\0Awt_file: optional; name of file containing weights for each\00"
@.str.16 = [54 x i8] c"\0A combination of patch type {char} [NONE]\00"
@.str.17 = [56 x i8] c"\0Aid_image: optional; method for assigning patch IDs:\00"
@.str.18 = [45 x i8] c"\0A 1 - create and output ID image\00"
@.str.19 = [54 x i8] c"\0A 2 - do not output an ID image [default]\00"
@.str.20 = [71 x i8] c"\0A - name of ID image; data_type must be same as in_image\00"
@.str.21 = [70 x i8] c"\0Adesc_file: optional; name of file containing character descriptors\00"
@.str.22 = [48 x i8] c"\0A for each patch type {char} [NONE]\00"
@.str.23 = [72 x i8] c"\0Abound_wght: optional; proportion of landscape boundary and background\00"
@.str.24 = [62 x i8] c"\0A class edges to be considered edge {float} [0.0]\00"
@.str.25 = [67 x i8] c"\0Adiags: optional; use diagonals in patch finding {y/n} [YES]\00"
@.str.26 = [77 x i8] c"\0Aprox_dist: optional; search radius in meters for proximity {float} [NONE]\00"
@.str.27 = [64 x i8] c"\0Anndist: optional; calculate nearest neighbor {y/n} [YES] \00"
@.str.28 = [60 x i8] c"\0Apatch_stats: optional; print patch level stats {y/n} [YES]\00"
@.str.29 = [60 x i8] c"\0Aclass_stats: optional; print class level stats {y/n} [YES]\00"
@.str.30 = [57 x i8] c"\0A\0ANOTE: use a $ in place of skipped optional parameters\00"
@.str.31 = [3 x i8] c"\0A\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.26, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.27, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.28, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.29, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.30, i64 0, i64 0))
%32 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"\0A\0AUSAGE: \00"
@.str.1 = [68 x i8] c"\0A fragstats in_image out_file cellsize edge_dist data_type [rows]\00"
@.str.2 = [71 x i8] c"\0A [cols] [background] [max_classes] [wt_file] [id_image] [desc_file]\00"
@.str.3 = [74 x i8] c"\0A [bound_wght] [diags] [prox_dist] [nndist] [patch_stats] [class_stats]\00"
@.str.4 = [47 x i8] c"\0A\0Ain_image: name of input image file {char}\00"
@.str.5 = [47 x i8] c"\0Aout_file: basename for output files {char}\00"
@.str.6 = [58 x i8] c"\0Acellsize: size of cells in meters in in_image {float}\00"
@.str.7 = [65 x i8] c"\0Aedge_dist: distance from edge in meters for core area {float}\00"
@.str.8 = [46 x i8] c"\0Adata_type: type of input image file {int}:\00"
@.str.9 = [62 x i8] c"\0A 1 - SVF 2 - ascii 3 - 8 bit binary\00"
@.str.10 = [56 x i8] c"\0A 4 - 16 bit binary 5 - ERDAS 6 - IDRISI\00"
@.str.11 = [74 x i8] c"\0Arows: optional; #rows in image; required if data_type 2,3,4 {int}\00"
@.str.12 = [74 x i8] c"\0Acols: optional; #cols in image; required if data_type 2,3,4 {int}\00"
@.str.13 = [74 x i8] c"\0Abackground: optional; value of background cells (positive) {int} {NONE]\00"
@.str.14 = [71 x i8] c"\0Amax_classes: optional; max possible classes in landscape {int} [NONE]\00"
@.str.15 = [65 x i8] c"\0Awt_file: optional; name of file containing weights for each\00"
@.str.16 = [54 x i8] c"\0A combination of patch type {char} [NONE]\00"
@.str.17 = [56 x i8] c"\0Aid_image: optional; method for assigning patch IDs:\00"
@.str.18 = [45 x i8] c"\0A 1 - create and output ID image\00"
@.str.19 = [54 x i8] c"\0A 2 - do not output an ID image [default]\00"
@.str.20 = [71 x i8] c"\0A - name of ID image; data_type must be same as in_image\00"
@.str.21 = [70 x i8] c"\0Adesc_file: optional; name of file containing character descriptors\00"
@.str.22 = [48 x i8] c"\0A for each patch type {char} [NONE]\00"
@.str.23 = [72 x i8] c"\0Abound_wght: optional; proportion of landscape boundary and background\00"
@.str.24 = [62 x i8] c"\0A class edges to be considered edge {float} [0.0]\00"
@.str.25 = [67 x i8] c"\0Adiags: optional; use diagonals in patch finding {y/n} [YES]\00"
@.str.26 = [77 x i8] c"\0Aprox_dist: optional; search radius in meters for proximity {float} [NONE]\00"
@.str.27 = [64 x i8] c"\0Anndist: optional; calculate nearest neighbor {y/n} [YES] \00"
@.str.28 = [60 x i8] c"\0Apatch_stats: optional; print patch level stats {y/n} [YES]\00"
@.str.29 = [60 x i8] c"\0Aclass_stats: optional; print class level stats {y/n} [YES]\00"
@.str.30 = [57 x i8] c"\0A\0ANOTE: use a $ in place of skipped optional parameters\00"
@str = [2 x i8] c"\0A\00"
define void @usage() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str.14, i64 0, i64 0))
%16 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.15, i64 0, i64 0))
%17 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.16, i64 0, i64 0))
%18 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.17, i64 0, i64 0))
%19 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.18, i64 0, i64 0))
%20 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.19, i64 0, i64 0))
%21 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str.20, i64 0, i64 0))
%22 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.21, i64 0, i64 0))
%23 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.22, i64 0, i64 0))
%24 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.23, i64 0, i64 0))
%25 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.24, i64 0, i64 0))
%26 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.25, i64 0, i64 0))
%27 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str.26, i64 0, i64 0))
%28 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.27, i64 0, i64 0))
%29 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.28, i64 0, i64 0))
%30 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.29, i64 0, i64 0))
%31 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.30, i64 0, i64 0))
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
ret void
}