#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*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void DisplayUsage(void) {
  {
    fprintf(
        stderr, "%s\n",
        "usage: lle2cre [-v] [-e] [-i] [-g gpdfile] [-t]\n"
        "       default:                   Sa0.gpd\n"
        "               [-c col_start row_start cols rows corfile]\n"
        "               <filein >fileout\n"
        "\n"
        " input : filein (from stdin)\n"
        "         Each line of stdin must contain three ASCII fields "
        "representing\n"
        "         a measured elevation as follows:\n"
        "           latitude longitude elevation\n"
        "           where:\n"
        "             latitude is geographic (i.e. relative to ellipsoid) "
        "latitude\n"
        "               in degrees.\n"
        "             longitude is longitude in degrees.\n"
        "             elevation is elevation above wgs84 ellipsoid in meters.\n"
        "\n"
        " output: fileout (to stdout)\n"
        "           Each line of input creates a single line of\n"
        "           output containing the following three ASCII fields:\n"
        "             column row elevation\n"
        "               where:\n"
        "                 column is a column number in the defined grid.\n"
        "                 row is a row number in the defined grid.\n"
        "                 elevation is elevation above wgs84 ellipsoid in "
        "meters.\n"
        "\n"
        " option: v - verbose (may be repeated)\n"
        "         e - write output fields using exponential notation.\n"
        "         i - ignore values that fall outside of the grid boundaries,\n"
        "             and do not display an error (unless -vv is specified).\n"
        "         g gpdfile - defines the grid used to map latitude-longitude\n"
        "             pairs to column-row pairs. The default value of gpdfile "
        "is\n"
        "             Sa0.gpd.\n"
        "         c col_start row_start cols rows corfile - defines a "
        "sub-region\n"
        "             in the grid defined by gpdfile and an associated "
        "correction\n"
        "             file containing a 4-byte floating image. Each "
        "column-row\n"
        "             pair is used to look-up the nearest neighbor correction "
        "value\n"
        "             from corfile. The correction value is then added to "
        "elevation\n"
        "             before it is written to stdout. If the column-row pair "
        "falls\n"
        "             outside the sub-region, then the point is not written.\n"
        "         t - the third field on each input line is treated as a "
        "temperature\n"
        "             and is written as a fourth field on each output line. "
        "The\n"
        "             elevation on each input line is set to 0.\n"
        "\n");
    exit(EXIT_FAILURE);
  };
}


x86 assembly (clang, -O0):
<DisplayUsage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
lea    0xec9(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2e91(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<DisplayUsage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
lea    0xecc(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2e94(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [2112 x i8] c"usage: lle2cre [-v] [-e] [-i] [-g gpdfile] [-t]\0A default: Sa0.gpd\0A [-c col_start row_start cols rows corfile]\0A <filein >fileout\0A\0A input : filein (from stdin)\0A Each line of stdin must contain three ASCII fields representing\0A a measured elevation as follows:\0A latitude longitude elevation\0A where:\0A latitude is geographic (i.e. relative to ellipsoid) latitude\0A in degrees.\0A longitude is longitude in degrees.\0A elevation is elevation above wgs84 ellipsoid in meters.\0A\0A output: fileout (to stdout)\0A Each line of input creates a single line of\0A output containing the following three ASCII fields:\0A column row elevation\0A where:\0A column is a column number in the defined grid.\0A row is a row number in the defined grid.\0A elevation is elevation above wgs84 ellipsoid in meters.\0A\0A option: v - verbose (may be repeated)\0A e - write output fields using exponential notation.\0A i - ignore values that fall outside of the grid boundaries,\0A and do not display an error (unless -vv is specified).\0A g gpdfile - defines the grid used to map latitude-longitude\0A pairs to column-row pairs. The default value of gpdfile is\0A Sa0.gpd.\0A c col_start row_start cols rows corfile - defines a sub-region\0A in the grid defined by gpdfile and an associated correction\0A file containing a 4-byte floating image. Each column-row\0A pair is used to look-up the nearest neighbor correction value\0A from corfile. The correction value is then added to elevation\0A before it is written to stdout. If the column-row pair falls\0A outside the sub-region, then the point is not written.\0A t - the third field on each input line is treated as a temperature\0A and is written as a fourth field on each output line. The\0A elevation on each input line is set to 0.\0A\0A\00"
@EXIT_FAILURE = global i32 0
define void @DisplayUsage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2112 x i8], [2112 x i8]* @.str.1, i64 0, i64 0))
%3 = load i32, i32* @EXIT_FAILURE
%4 = call i32 @exit(i32 %3)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [2112 x i8] c"usage: lle2cre [-v] [-e] [-i] [-g gpdfile] [-t]\0A default: Sa0.gpd\0A [-c col_start row_start cols rows corfile]\0A <filein >fileout\0A\0A input : filein (from stdin)\0A Each line of stdin must contain three ASCII fields representing\0A a measured elevation as follows:\0A latitude longitude elevation\0A where:\0A latitude is geographic (i.e. relative to ellipsoid) latitude\0A in degrees.\0A longitude is longitude in degrees.\0A elevation is elevation above wgs84 ellipsoid in meters.\0A\0A output: fileout (to stdout)\0A Each line of input creates a single line of\0A output containing the following three ASCII fields:\0A column row elevation\0A where:\0A column is a column number in the defined grid.\0A row is a row number in the defined grid.\0A elevation is elevation above wgs84 ellipsoid in meters.\0A\0A option: v - verbose (may be repeated)\0A e - write output fields using exponential notation.\0A i - ignore values that fall outside of the grid boundaries,\0A and do not display an error (unless -vv is specified).\0A g gpdfile - defines the grid used to map latitude-longitude\0A pairs to column-row pairs. The default value of gpdfile is\0A Sa0.gpd.\0A c col_start row_start cols rows corfile - defines a sub-region\0A in the grid defined by gpdfile and an associated correction\0A file containing a 4-byte floating image. Each column-row\0A pair is used to look-up the nearest neighbor correction value\0A from corfile. The correction value is then added to elevation\0A before it is written to stdout. If the column-row pair falls\0A outside the sub-region, then the point is not written.\0A t - the third field on each input line is treated as a temperature\0A and is written as a fourth field on each output line. The\0A elevation on each input line is set to 0.\0A\0A\00"
@EXIT_FAILURE = global i32 0
define void @DisplayUsage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2112 x i8], [2112 x i8]* @.str.1, i64 0, i64 0))
%3 = load i32, i32* @EXIT_FAILURE
%4 = tail call i32 @exit(i32 %3)
unreachable
}