#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*/ printf(char *, ...);
scalar_t__ strcmp(char const *, char *);
void print_tessg_help(const char *progname) {
  printf("Usage: %s MODELFILE [OPTIONS]\n\n", progname);
  if (strcmp(progname + 4, "pot") == 0) {
    printf("Calculate the potential due to a tesseroid model on\n");
  } else {
    printf("Calculate the %s component due to a tesseroid model on\n",
           progname + 4);
  }
  printf("specified observation points.\n\n");
  printf("Values are calculated in the local coordinate system of the\n");
  printf("observation point: x-> North  y-> East  z-> Up (away from the\n");
  printf("center of the Earth).\n");
  printf("In order to maintain mainstream convention, component gz is\n");
  printf("calculated with z-> Down.\n\n");
  printf("All units either SI or degrees!\n\n");
  printf("The computation of the gravitational effect of the tesseroids\n");
  printf("is done using the Gauss-Legendre Quadrature (GLQ) numerical\n");
  printf("integration method.\n\n");
  printf("WARNING: Avoid computing directly on top or inside the\n");
  printf("         tesseroids! This will break the GLQ and the formulas!\n");
  printf("\n");
  printf("Input:\n");
  printf("  Computation points passed through standard input (stdin).\n");
  printf("  Reads 3 or more values per line and inteprets the first 3 as:\n");
  printf("    longitude, latitude and height\n");
  printf("  of a computation points. Height should be in meters.\n");
  printf("  Othervalues in the line are ignored.\n");
  printf("  Lines that start with # are ignored as comments.\n");
  printf("  Lines should be no longer than 10000 (ten thousand) characters.");
  printf("\n\n");
  printf("Output:\n");
  printf("  Printed to standard output (stdout) in the form:\n");
  printf("    lon lat height ... result\n");
  printf("  ... represents any values that were read from input and\n");
  printf("  ignored. In other words, the result is appended to the last\n");
  printf("  column of the input. Use this to pipe tessg* programs\n");
  printf("  together.\n");
  printf("  * Comments about the provenance of the data are inserted into\n");
  printf("    the top of the output\n\n");
  printf("MODELFILE: File containing the tesseroid model\n");
  printf("  * Each tesseroid is specified by the values of its borders\n");
  printf("    and density\n");
  printf("  * The file should contain one tesseroid per line\n");
  printf("  * Each line should have the following column format:\n");
  printf("      West East South North Top Bottom Density\n");
  printf("  * Top and Bottom should be read as 'height to top' and \n");
  printf("    'height to bottom' from the mean Earth radius. Use negative\n");
  printf("    values if bellow the surface, for example when modeling\n");
  printf("    deep structures, and positive if above the surface, for\n");
  printf("    example when modeling topography.\n");
  printf("  * If a line starts with # it will be considered a comment and\n");
  printf("    will be ignored.\n\n");
  printf("Options:\n");
  printf("  -a             Disable the automatic subdividing of\n");
  printf("                 tesseroids. Subdividing is done to ensure the\n");
  printf("                 GLQ gives accurate results. ONLY USE THIS\n");
  printf("                 OPTION IF YOU KNOW WHAT YOU ARE DOING!\n");
  printf("  -tRATIO        Use a custom distance-size ratio for the\n");
  printf("                 automatic subdivision of tesseroids. ONLY USE\n");
  printf("                 THIS OPTION IF YOU KNOW WHAT YOU ARE DOING!\n");
  printf("  -oOLON/OLAT/OR GLQ order to use in the longitudinal,\n");
  printf("                 latitudinal and radial integrations,\n");
  printf("                 respectively. Defaults to 2/2/2.\n");
  printf("                 Subdividing of tesseroids works best with the\n");
  printf("                 default order.\n");
  printf("  -h             Print instructions.\n");
  printf("  --version      Print version and license information.\n");
  printf("  -v             Enable verbose printing to stderr.\n");
  printf("  -lFILENAME     Print log messages to file FILENAME.\n");
  print_copyright();
}


x86 assembly (clang, -O0):
<print_tessg_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
add    $0x4,%rdi
lea    0xec3(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    117f <print_tessg_help+0x4f>
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1195 <print_tessg_help+0x65>
mov    -0x8(%rbp),%rsi
add    $0x4,%rsi
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf07(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1021(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1029(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1053(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf79(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1077(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1071(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10d3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10e9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1113(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x112d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1153(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1179(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1174(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x119a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11ab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11d8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1209(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1234(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1233(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1266(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1274(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1296(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12c6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12c9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12ef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1319(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x133b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1368(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x139b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13ca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13f9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1412(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1445(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x144e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x144a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1473(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x14a5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x14d3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x14fe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x152b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x155d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x158d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x15b7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x15e0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1605(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1637(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x164a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1662(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x168d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x16b4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <print_copyright@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_tessg_help>:
push   %rbx
mov    %rdi,%rbx
lea    0xea5(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x4,%rbx
lea    0xeb0(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1190 <print_tessg_help+0x40>
lea    0xea0(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    119c <print_tessg_help+0x4c>
lea    0x19c9(%rip),%rdi
call   1040 <puts@plt>
lea    0xefb(%rip),%rdi
call   1040 <puts@plt>
lea    0xf0e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf70(%rip),%rdi
call   1040 <puts@plt>
lea    0xf7a(%rip),%rdi
call   1040 <puts@plt>
lea    0xfaa(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb9(%rip),%rdi
call   1040 <puts@plt>
lea    0xfce(%rip),%rdi
call   1040 <puts@plt>
lea    0x1000(%rip),%rdi
call   1040 <puts@plt>
lea    0x1030(%rip),%rdi
call   1040 <puts@plt>
lea    0x1039(%rip),%rdi
call   1040 <puts@plt>
lea    0x1064(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x108d(%rip),%rdi
call   1040 <puts@plt>
lea    0x1088(%rip),%rdi
call   1040 <puts@plt>
lea    0x10b8(%rip),%rdi
call   1040 <puts@plt>
lea    0x10ec(%rip),%rdi
call   1040 <puts@plt>
lea    0x1103(%rip),%rdi
call   1040 <puts@plt>
lea    0x112e(%rip),%rdi
call   1040 <puts@plt>
lea    0x1149(%rip),%rdi
call   1040 <puts@plt>
lea    0xdcb(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd7f(%rip),%rdi
call   1040 <puts@plt>
lea    0x1156(%rip),%rdi
call   1040 <puts@plt>
lea    0x1152(%rip),%rdi
call   1040 <puts@plt>
lea    0x1179(%rip),%rdi
call   1040 <puts@plt>
lea    0x118b(%rip),%rdi
call   1040 <puts@plt>
lea    0x11b9(%rip),%rdi
call   1040 <puts@plt>
lea    0x11eb(%rip),%rdi
call   1040 <puts@plt>
lea    0x1217(%rip),%rdi
call   1040 <puts@plt>
lea    0x1217(%rip),%rdi
call   1040 <puts@plt>
lea    0x124b(%rip),%rdi
call   1040 <puts@plt>
lea    0x125a(%rip),%rdi
call   1040 <puts@plt>
lea    0x127d(%rip),%rdi
call   1040 <puts@plt>
lea    0x12ae(%rip),%rdi
call   1040 <puts@plt>
lea    0x12b2(%rip),%rdi
call   1040 <puts@plt>
lea    0x12d9(%rip),%rdi
call   1040 <puts@plt>
lea    0x1304(%rip),%rdi
call   1040 <puts@plt>
lea    0x1327(%rip),%rdi
call   1040 <puts@plt>
lea    0x1355(%rip),%rdi
call   1040 <puts@plt>
lea    0x1389(%rip),%rdi
call   1040 <puts@plt>
lea    0x13b9(%rip),%rdi
call   1040 <puts@plt>
lea    0x13e9(%rip),%rdi
call   1040 <puts@plt>
lea    0x1403(%rip),%rdi
call   1040 <puts@plt>
lea    0x1437(%rip),%rdi
call   1040 <puts@plt>
lea    0x1441(%rip),%rdi
call   1040 <puts@plt>
lea    0x143e(%rip),%rdi
call   1040 <puts@plt>
lea    0x1468(%rip),%rdi
call   1040 <puts@plt>
lea    0x149b(%rip),%rdi
call   1040 <puts@plt>
lea    0x14ca(%rip),%rdi
call   1040 <puts@plt>
lea    0x14f6(%rip),%rdi
call   1040 <puts@plt>
lea    0x1524(%rip),%rdi
call   1040 <puts@plt>
lea    0x1557(%rip),%rdi
call   1040 <puts@plt>
lea    0x1588(%rip),%rdi
call   1040 <puts@plt>
lea    0x15b3(%rip),%rdi
call   1040 <puts@plt>
lea    0x15dd(%rip),%rdi
call   1040 <puts@plt>
lea    0x1603(%rip),%rdi
call   1040 <puts@plt>
lea    0x1636(%rip),%rdi
call   1040 <puts@plt>
lea    0x164a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1663(%rip),%rdi
call   1040 <puts@plt>
lea    0x168f(%rip),%rdi
call   1040 <puts@plt>
lea    0x16b7(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
pop    %rbx
jmp    1070 <print_copyright@plt>

LLVM IR (-O0):
@.str = [32 x i8] c"Usage: %s MODELFILE [OPTIONS]\0A\0A\00"
@.str.1 = [4 x i8] c"pot\00"
@.str.2 = [53 x i8] c"Calculate the potential due to a tesseroid model on\0A\00"
@.str.3 = [56 x i8] c"Calculate the %s component due to a tesseroid model on\0A\00"
@.str.4 = [32 x i8] c"specified observation points.\0A\0A\00"
@.str.5 = [61 x i8] c"Values are calculated in the local coordinate system of the\0A\00"
@.str.6 = [63 x i8] c"observation point: x-> North y-> East z-> Up (away from the\0A\00"
@.str.7 = [23 x i8] c"center of the Earth).\0A\00"
@.str.8 = [61 x i8] c"In order to maintain mainstream convention, component gz is\0A\00"
@.str.9 = [28 x i8] c"calculated with z-> Down.\0A\0A\00"
@.str.10 = [34 x i8] c"All units either SI or degrees!\0A\0A\00"
@.str.11 = [63 x i8] c"The computation of the gravitational effect of the tesseroids\0A\00"
@.str.12 = [61 x i8] c"is done using the Gauss-Legendre Quadrature (GLQ) numerical\0A\00"
@.str.13 = [22 x i8] c"integration method.\0A\0A\00"
@.str.14 = [56 x i8] c"WARNING: Avoid computing directly on top or inside the\0A\00"
@.str.15 = [64 x i8] c" tesseroids! This will break the GLQ and the formulas!\0A\00"
@.str.16 = [2 x i8] c"\0A\00"
@.str.17 = [8 x i8] c"Input:\0A\00"
@.str.18 = [61 x i8] c" Computation points passed through standard input (stdin).\0A\00"
@.str.19 = [65 x i8] c" Reads 3 or more values per line and inteprets the first 3 as:\0A\00"
@.str.20 = [36 x i8] c" longitude, latitude and height\0A\00"
@.str.21 = [56 x i8] c" of a computation points. Height should be in meters.\0A\00"
@.str.22 = [40 x i8] c" Othervalues in the line are ignored.\0A\00"
@.str.23 = [52 x i8] c" Lines that start with # are ignored as comments.\0A\00"
@.str.24 = [66 x i8] c" Lines should be no longer than 10000 (ten thousand) characters.\00"
@.str.25 = [3 x i8] c"\0A\0A\00"
@.str.26 = [9 x i8] c"Output:\0A\00"
@.str.27 = [52 x i8] c" Printed to standard output (stdout) in the form:\0A\00"
@.str.28 = [31 x i8] c" lon lat height ... result\0A\00"
@.str.29 = [59 x i8] c" ... represents any values that were read from input and\0A\00"
@.str.30 = [63 x i8] c" ignored. In other words, the result is appended to the last\0A\00"
@.str.31 = [57 x i8] c" column of the input. Use this to pipe tessg* programs\0A\00"
@.str.32 = [13 x i8] c" together.\0A\00"
@.str.33 = [65 x i8] c" * Comments about the provenance of the data are inserted into\0A\00"
@.str.34 = [28 x i8] c" the top of the output\0A\0A\00"
@.str.35 = [48 x i8] c"MODELFILE: File containing the tesseroid model\0A\00"
@.str.36 = [62 x i8] c" * Each tesseroid is specified by the values of its borders\0A\00"
@.str.37 = [17 x i8] c" and density\0A\00"
@.str.38 = [52 x i8] c" * The file should contain one tesseroid per line\0A\00"
@.str.39 = [56 x i8] c" * Each line should have the following column format:\0A\00"
@.str.40 = [48 x i8] c" West East South North Top Bottom Density\0A\00"
@.str.41 = [59 x i8] c" * Top and Bottom should be read as 'height to top' and \0A\00"
@.str.42 = [65 x i8] c" 'height to bottom' from the mean Earth radius. Use negative\0A\00"
@.str.43 = [61 x i8] c" values if bellow the surface, for example when modeling\0A\00"
@.str.44 = [61 x i8] c" deep structures, and positive if above the surface, for\0A\00"
@.str.45 = [39 x i8] c" example when modeling topography.\0A\00"
@.str.46 = [65 x i8] c" * If a line starts with # it will be considered a comment and\0A\00"
@.str.47 = [23 x i8] c" will be ignored.\0A\0A\00"
@.str.48 = [10 x i8] c"Options:\0A\00"
@.str.49 = [55 x i8] c" -a Disable the automatic subdividing of\0A\00"
@.str.50 = [64 x i8] c" tesseroids. Subdividing is done to ensure the\0A\00"
@.str.51 = [60 x i8] c" GLQ gives accurate results. ONLY USE THIS\0A\00"
@.str.52 = [57 x i8] c" OPTION IF YOU KNOW WHAT YOU ARE DOING!\0A\00"
@.str.53 = [59 x i8] c" -tRATIO Use a custom distance-size ratio for the\0A\00"
@.str.54 = [64 x i8] c" automatic subdivision of tesseroids. ONLY USE\0A\00"
@.str.55 = [62 x i8] c" THIS OPTION IF YOU KNOW WHAT YOU ARE DOING!\0A\00"
@.str.56 = [56 x i8] c" -oOLON/OLAT/OR GLQ order to use in the longitudinal,\0A\00"
@.str.57 = [55 x i8] c" latitudinal and radial integrations,\0A\00"
@.str.58 = [51 x i8] c" respectively. Defaults to 2/2/2.\0A\00"
@.str.59 = [64 x i8] c" Subdividing of tesseroids works best with the\0A\00"
@.str.60 = [33 x i8] c" default order.\0A\00"
@.str.61 = [38 x i8] c" -h Print instructions.\0A\00"
@.str.62 = [57 x i8] c" --version Print version and license information.\0A\00"
@.str.63 = [53 x i8] c" -v Enable verbose printing to stderr.\0A\00"
@.str.64 = [55 x i8] c" -lFILENAME Print log messages to file FILENAME.\0A\00"
define void @print_tessg_help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = load i8*, i8** %2
%6 = getelementptr inbounds i8, i8* %5, i64 4
%7 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0))
br label %15
11: ; preds = %1
%12 = load i8*, i8** %2
%13 = getelementptr inbounds i8, i8* %12, i64 4
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0), i8* %13)
br label %15
15: ; preds = %11, %9
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.5, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.6, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.11, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.12, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.15, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.18, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.19, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.20, i64 0, i64 0))
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.21, i64 0, i64 0))
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.22, i64 0, i64 0))
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.23, i64 0, i64 0))
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.24, i64 0, i64 0))
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.25, i64 0, i64 0))
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.26, i64 0, i64 0))
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.27, i64 0, i64 0))
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.28, i64 0, i64 0))
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.29, i64 0, i64 0))
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.30, i64 0, i64 0))
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.31, i64 0, i64 0))
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.32, i64 0, i64 0))
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.33, i64 0, i64 0))
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.34, i64 0, i64 0))
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.35, i64 0, i64 0))
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.36, i64 0, i64 0))
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.37, i64 0, i64 0))
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.38, i64 0, i64 0))
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.39, i64 0, i64 0))
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.40, i64 0, i64 0))
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.41, i64 0, i64 0))
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.42, i64 0, i64 0))
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.43, i64 0, i64 0))
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.44, i64 0, i64 0))
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.45, i64 0, i64 0))
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.46, i64 0, i64 0))
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.47, i64 0, i64 0))
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.48, i64 0, i64 0))
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.49, i64 0, i64 0))
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.50, i64 0, i64 0))
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.51, i64 0, i64 0))
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.52, i64 0, i64 0))
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.53, i64 0, i64 0))
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.54, i64 0, i64 0))
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.55, i64 0, i64 0))
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.56, i64 0, i64 0))
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.57, i64 0, i64 0))
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.58, i64 0, i64 0))
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.59, i64 0, i64 0))
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.60, i64 0, i64 0))
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.61, i64 0, i64 0))
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.62, i64 0, i64 0))
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.63, i64 0, i64 0))
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.64, i64 0, i64 0))
%77 = call i32 (...) @print_copyright()
ret void
}

LLVM IR (-O2):
@.str = [32 x i8] c"Usage: %s MODELFILE [OPTIONS]\0A\0A\00"
@.str.1 = [4 x i8] c"pot\00"
@.str.3 = [56 x i8] c"Calculate the %s component due to a tesseroid model on\0A\00"
@.str.24 = [66 x i8] c" Lines should be no longer than 10000 (ten thousand) characters.\00"
@str = [31 x i8] c"specified observation points.\0A\00"
@str.65 = [60 x i8] c"Values are calculated in the local coordinate system of the\00"
@str.66 = [62 x i8] c"observation point: x-> North y-> East z-> Up (away from the\00"
@str.67 = [22 x i8] c"center of the Earth).\00"
@str.68 = [60 x i8] c"In order to maintain mainstream convention, component gz is\00"
@str.69 = [27 x i8] c"calculated with z-> Down.\0A\00"
@str.70 = [33 x i8] c"All units either SI or degrees!\0A\00"
@str.71 = [62 x i8] c"The computation of the gravitational effect of the tesseroids\00"
@str.72 = [60 x i8] c"is done using the Gauss-Legendre Quadrature (GLQ) numerical\00"
@str.73 = [21 x i8] c"integration method.\0A\00"
@str.74 = [55 x i8] c"WARNING: Avoid computing directly on top or inside the\00"
@str.75 = [63 x i8] c" tesseroids! This will break the GLQ and the formulas!\00"
@str.76 = [7 x i8] c"Input:\00"
@str.77 = [60 x i8] c" Computation points passed through standard input (stdin).\00"
@str.78 = [64 x i8] c" Reads 3 or more values per line and inteprets the first 3 as:\00"
@str.79 = [35 x i8] c" longitude, latitude and height\00"
@str.80 = [55 x i8] c" of a computation points. Height should be in meters.\00"
@str.81 = [39 x i8] c" Othervalues in the line are ignored.\00"
@str.82 = [51 x i8] c" Lines that start with # are ignored as comments.\00"
@str.83 = [2 x i8] c"\0A\00"
@str.84 = [8 x i8] c"Output:\00"
@str.85 = [51 x i8] c" Printed to standard output (stdout) in the form:\00"
@str.86 = [30 x i8] c" lon lat height ... result\00"
@str.87 = [58 x i8] c" ... represents any values that were read from input and\00"
@str.88 = [62 x i8] c" ignored. In other words, the result is appended to the last\00"
@str.89 = [56 x i8] c" column of the input. Use this to pipe tessg* programs\00"
@str.90 = [12 x i8] c" together.\00"
@str.91 = [64 x i8] c" * Comments about the provenance of the data are inserted into\00"
@str.92 = [27 x i8] c" the top of the output\0A\00"
@str.93 = [47 x i8] c"MODELFILE: File containing the tesseroid model\00"
@str.94 = [61 x i8] c" * Each tesseroid is specified by the values of its borders\00"
@str.95 = [16 x i8] c" and density\00"
@str.96 = [51 x i8] c" * The file should contain one tesseroid per line\00"
@str.97 = [55 x i8] c" * Each line should have the following column format:\00"
@str.98 = [47 x i8] c" West East South North Top Bottom Density\00"
@str.99 = [58 x i8] c" * Top and Bottom should be read as 'height to top' and \00"
@str.100 = [64 x i8] c" 'height to bottom' from the mean Earth radius. Use negative\00"
@str.101 = [60 x i8] c" values if bellow the surface, for example when modeling\00"
@str.102 = [60 x i8] c" deep structures, and positive if above the surface, for\00"
@str.103 = [38 x i8] c" example when modeling topography.\00"
@str.104 = [64 x i8] c" * If a line starts with # it will be considered a comment and\00"
@str.105 = [22 x i8] c" will be ignored.\0A\00"
@str.106 = [9 x i8] c"Options:\00"
@str.107 = [54 x i8] c" -a Disable the automatic subdividing of\00"
@str.108 = [63 x i8] c" tesseroids. Subdividing is done to ensure the\00"
@str.109 = [59 x i8] c" GLQ gives accurate results. ONLY USE THIS\00"
@str.110 = [56 x i8] c" OPTION IF YOU KNOW WHAT YOU ARE DOING!\00"
@str.111 = [58 x i8] c" -tRATIO Use a custom distance-size ratio for the\00"
@str.112 = [63 x i8] c" automatic subdivision of tesseroids. ONLY USE\00"
@str.113 = [61 x i8] c" THIS OPTION IF YOU KNOW WHAT YOU ARE DOING!\00"
@str.114 = [55 x i8] c" -oOLON/OLAT/OR GLQ order to use in the longitudinal,\00"
@str.115 = [54 x i8] c" latitudinal and radial integrations,\00"
@str.116 = [50 x i8] c" respectively. Defaults to 2/2/2.\00"
@str.117 = [63 x i8] c" Subdividing of tesseroids works best with the\00"
@str.118 = [32 x i8] c" default order.\00"
@str.119 = [37 x i8] c" -h Print instructions.\00"
@str.120 = [56 x i8] c" --version Print version and license information.\00"
@str.121 = [52 x i8] c" -v Enable verbose printing to stderr.\00"
@str.122 = [54 x i8] c" -lFILENAME Print log messages to file FILENAME.\00"
@str.123 = [52 x i8] c"Calculate the potential due to a tesseroid model on\00"
define void @print_tessg_help(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = getelementptr inbounds i8, i8* %0, i64 4
%4 = tail call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.123, i64 0, i64 0))
br label %10
8: ; preds = %1
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0), i8* %3)
br label %10
10: ; preds = %8, %6
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.65, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.66, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.67, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.68, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.69, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.70, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.71, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.72, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.73, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.74, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.75, i64 0, i64 0))
%23 = tail call i32 @putchar(i32 10)
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.76, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.77, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.78, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.79, i64 0, i64 0))
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.80, i64 0, i64 0))
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.81, i64 0, i64 0))
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.82, i64 0, i64 0))
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.24, i64 0, i64 0))
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.83, i64 0, i64 0))
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.84, i64 0, i64 0))
%34 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.85, i64 0, i64 0))
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.86, i64 0, i64 0))
%36 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.87, i64 0, i64 0))
%37 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.88, i64 0, i64 0))
%38 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.89, i64 0, i64 0))
%39 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.90, i64 0, i64 0))
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.91, i64 0, i64 0))
%41 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.92, i64 0, i64 0))
%42 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.93, i64 0, i64 0))
%43 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.94, i64 0, i64 0))
%44 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.95, i64 0, i64 0))
%45 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.96, i64 0, i64 0))
%46 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.97, i64 0, i64 0))
%47 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.98, i64 0, i64 0))
%48 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.99, i64 0, i64 0))
%49 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.100, i64 0, i64 0))
%50 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.101, i64 0, i64 0))
%51 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.102, i64 0, i64 0))
%52 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.103, i64 0, i64 0))
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.104, i64 0, i64 0))
%54 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.105, i64 0, i64 0))
%55 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.106, i64 0, i64 0))
%56 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.107, i64 0, i64 0))
%57 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.108, i64 0, i64 0))
%58 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.109, i64 0, i64 0))
%59 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.110, i64 0, i64 0))
%60 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.111, i64 0, i64 0))
%61 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.112, i64 0, i64 0))
%62 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.113, i64 0, i64 0))
%63 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.114, i64 0, i64 0))
%64 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.115, i64 0, i64 0))
%65 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.116, i64 0, i64 0))
%66 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.117, i64 0, i64 0))
%67 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.118, i64 0, i64 0))
%68 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.119, i64 0, i64 0))
%69 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.120, i64 0, i64 0))
%70 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.121, i64 0, i64 0))
%71 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.122, i64 0, i64 0))
%72 = tail call i32 (...) @print_copyright()
ret void
}