#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*/ disp_usage(char *, char *);
void usage() {
  disp_usage("Grid2GMT", "<controlfile> <gridroot> <outroot> V "
                         "[G][S][Ennndx][M] ix1 iy1 ix2 iy2 [length_units]");
  disp_usage("Grid2GMT",
             "<controlfile> <gridroot> <outroot> VL [G][S][Ennndx][M] lat1 "
             "long1 lat2 long2 [length_units]");
  disp_usage("Grid2GMT",
             "<controlfile> <gridroot> <outroot> H "
             "[G][S][Ennndx][M][R|Cphase/scale/min_n_rdgs] iz [length_units]");
  disp_usage(
      "Grid2GMT",
      "<controlfile> <gridroot> <outroot> L "
      "[G][S][Ennndx][M][R|Cphase/scale/min_n_rdgs] [ix iy iz] [length_units]");
  disp_usage("Grid2GMT",
             "Options: -title <title>\n"
             "         -length-units <km, ...>\n"
             "         -plot-lat-lon : set default for gmt script to lat-lon "
             "projection and axes\n"
             "         -no_plot_stations : do not plot station labels\n"
             "         -no_plot_contours : do not plot grid contours\n"
             "         -label_contours : plot contour level labels\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee7(%rip),%rsi
call   1030 <disp_usage@plt>
lea    0xed2(%rip),%rdi
lea    0xf2a(%rip),%rsi
call   1030 <disp_usage@plt>
lea    0xebf(%rip),%rdi
lea    0xf74(%rip),%rsi
call   1030 <disp_usage@plt>
lea    0xeac(%rip),%rdi
lea    0xfc5(%rip),%rsi
call   1030 <disp_usage@plt>
lea    0xe99(%rip),%rdi
lea    0x101e(%rip),%rsi
call   1030 <disp_usage@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
lea    0xee8(%rip),%rbx
lea    0xeea(%rip),%rsi
mov    %rbx,%rdi
call   1030 <disp_usage@plt>
lea    0xf31(%rip),%rsi
mov    %rbx,%rdi
call   1030 <disp_usage@plt>
lea    0xf7f(%rip),%rsi
mov    %rbx,%rdi
call   1030 <disp_usage@plt>
lea    0xfd4(%rip),%rsi
mov    %rbx,%rdi
call   1030 <disp_usage@plt>
lea    0x1031(%rip),%rsi
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <disp_usage@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"Grid2GMT\00"
@.str.1 = [86 x i8] c"<controlfile> <gridroot> <outroot> V [G][S][Ennndx][M] ix1 iy1 ix2 iy2 [length_units]\00"
@.str.2 = [93 x i8] c"<controlfile> <gridroot> <outroot> VL [G][S][Ennndx][M] lat1 long1 lat2 long2 [length_units]\00"
@.str.3 = [100 x i8] c"<controlfile> <gridroot> <outroot> H [G][S][Ennndx][M][R|Cphase/scale/min_n_rdgs] iz [length_units]\00"
@.str.4 = [108 x i8] c"<controlfile> <gridroot> <outroot> L [G][S][Ennndx][M][R|Cphase/scale/min_n_rdgs] [ix iy iz] [length_units]\00"
@.str.5 = [305 x i8] c"Options: -title <title>\0A -length-units <km, ...>\0A -plot-lat-lon : set default for gmt script to lat-lon projection and axes\0A -no_plot_stations : do not plot station labels\0A -no_plot_contours : do not plot grid contours\0A -label_contours : plot contour level labels\0A\00"
define void @usage() {
%1 = call i32 @disp_usage(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @disp_usage(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 @disp_usage(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 @disp_usage(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([108 x i8], [108 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 @disp_usage(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([305 x i8], [305 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"Grid2GMT\00"
@.str.1 = [86 x i8] c"<controlfile> <gridroot> <outroot> V [G][S][Ennndx][M] ix1 iy1 ix2 iy2 [length_units]\00"
@.str.2 = [93 x i8] c"<controlfile> <gridroot> <outroot> VL [G][S][Ennndx][M] lat1 long1 lat2 long2 [length_units]\00"
@.str.3 = [100 x i8] c"<controlfile> <gridroot> <outroot> H [G][S][Ennndx][M][R|Cphase/scale/min_n_rdgs] iz [length_units]\00"
@.str.4 = [108 x i8] c"<controlfile> <gridroot> <outroot> L [G][S][Ennndx][M][R|Cphase/scale/min_n_rdgs] [ix iy iz] [length_units]\00"
@.str.5 = [305 x i8] c"Options: -title <title>\0A -length-units <km, ...>\0A -plot-lat-lon : set default for gmt script to lat-lon projection and axes\0A -no_plot_stations : do not plot station labels\0A -no_plot_contours : do not plot grid contours\0A -label_contours : plot contour level labels\0A\00"
define void @usage() {
%1 = tail call i32 @disp_usage(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @disp_usage(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @disp_usage(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @disp_usage(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([108 x i8], [108 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 @disp_usage(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([305 x i8], [305 x i8]* @.str.5, i64 0, i64 0))
ret void
}