#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 *);
void print_help() {
  printf("Usage: tessmass TESSFILE [OPTIONS]\n\n");
  printf("Calculate the mass of a tesseroid model.\n\n");
  printf("All units either SI or degrees!\n\n");
  printf("Input:\n");
  printf("  If TESSFILE is omited, will read from standard input (stdin)\n");
  printf("  TESSFILE: 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 'depth to top' and \n");
  printf("     'depth to bottom' from the mean Earth radius. Use negative\n");
  printf("     values if above the surface, for example when modeling\n");
  printf("     topography\n");
  printf("   * If a line starts with # it will be considered a comment\n");
  printf("     and will be ignored\n\n");
  printf("Output:\n");
  printf("  Printed to standard output (stdout) in same units as input\n\n");
  printf("Options:\n");
  printf("  -rLOW/HIGH   Only take into account tesseroids with\n");
  printf("               density between LOW and HIGH\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_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xeee(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf23(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf53(%rip),%rdi
call   1030 <printf@plt>
lea    0xf78(%rip),%rdi
call   1030 <printf@plt>
lea    0xfab(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb1(%rip),%rdi
call   1030 <printf@plt>
lea    0xfda(%rip),%rdi
call   1030 <printf@plt>
lea    0x1007(%rip),%rdi
call   1030 <printf@plt>
lea    0x102c(%rip),%rdi
call   1030 <printf@plt>
lea    0x105b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1090(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c1(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c6(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f8(%rip),%rdi
call   1030 <printf@plt>
lea    0x1107(%rip),%rdi
call   1030 <printf@plt>
lea    0x1104(%rip),%rdi
call   1030 <printf@plt>
lea    0x1137(%rip),%rdi
call   1030 <printf@plt>
lea    0x1135(%rip),%rdi
call   1030 <printf@plt>
lea    0x1160(%rip),%rdi
call   1030 <printf@plt>
lea    0x1181(%rip),%rdi
call   1030 <printf@plt>
lea    0x1199(%rip),%rdi
call   1030 <printf@plt>
lea    0x11c4(%rip),%rdi
call   1030 <printf@plt>
lea    0x11eb(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <print_copyright@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef0(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf23(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf51(%rip),%rdi
call   1030 <puts@plt>
lea    0xf75(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa7(%rip),%rdi
call   1030 <puts@plt>
lea    0xfac(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd4(%rip),%rdi
call   1030 <puts@plt>
lea    0x1000(%rip),%rdi
call   1030 <puts@plt>
lea    0x1024(%rip),%rdi
call   1030 <puts@plt>
lea    0x1052(%rip),%rdi
call   1030 <puts@plt>
lea    0x1086(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b6(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ba(%rip),%rdi
call   1030 <puts@plt>
lea    0x10eb(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f9(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f5(%rip),%rdi
call   1030 <puts@plt>
lea    0x1127(%rip),%rdi
call   1030 <puts@plt>
lea    0x1124(%rip),%rdi
call   1030 <puts@plt>
lea    0x114e(%rip),%rdi
call   1030 <puts@plt>
lea    0x116e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1185(%rip),%rdi
call   1030 <puts@plt>
lea    0x11af(%rip),%rdi
call   1030 <puts@plt>
lea    0x11d5(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <print_copyright@plt>

LLVM IR (-O0):
@.str = [37 x i8] c"Usage: tessmass TESSFILE [OPTIONS]\0A\0A\00"
@.str.1 = [43 x i8] c"Calculate the mass of a tesseroid model.\0A\0A\00"
@.str.2 = [34 x i8] c"All units either SI or degrees!\0A\0A\00"
@.str.3 = [8 x i8] c"Input:\0A\00"
@.str.4 = [64 x i8] c" If TESSFILE is omited, will read from standard input (stdin)\0A\00"
@.str.5 = [49 x i8] c" TESSFILE: File containing the tesseroid model\0A\00"
@.str.6 = [63 x i8] c" * Each tesseroid is specified by the values of its borders\0A\00"
@.str.7 = [18 x i8] c" and density\0A\00"
@.str.8 = [53 x i8] c" * The file should contain one tesseroid per line\0A\00"
@.str.9 = [57 x i8] c" * Each line should have the following column format:\0A\00"
@.str.10 = [49 x i8] c" West East South North Top Bottom Density\0A\00"
@.str.11 = [59 x i8] c" * Top and Bottom should be read as 'depth to top' and \0A\00"
@.str.12 = [65 x i8] c" 'depth to bottom' from the mean Earth radius. Use negative\0A\00"
@.str.13 = [61 x i8] c" values if above the surface, for example when modeling\0A\00"
@.str.14 = [17 x i8] c" topography\0A\00"
@.str.15 = [62 x i8] c" * If a line starts with # it will be considered a comment\0A\00"
@.str.16 = [27 x i8] c" and will be ignored\0A\0A\00"
@.str.17 = [9 x i8] c"Output:\0A\00"
@.str.18 = [63 x i8] c" Printed to standard output (stdout) in same units as input\0A\0A\00"
@.str.19 = [10 x i8] c"Options:\0A\00"
@.str.20 = [55 x i8] c" -rLOW/HIGH Only take into account tesseroids with\0A\00"
@.str.21 = [45 x i8] c" density between LOW and HIGH\0A\00"
@.str.22 = [36 x i8] c" -h Print instructions.\0A\00"
@.str.23 = [55 x i8] c" --version Print version and license information.\0A\00"
@.str.24 = [51 x i8] c" -v Enable verbose printing to stderr.\0A\00"
@.str.25 = [53 x i8] c" -lFILENAME Print log messages to file FILENAME.\0A\00"
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 (...) @print_copyright()
ret void
}

LLVM IR (-O2):
@str = [36 x i8] c"Usage: tessmass TESSFILE [OPTIONS]\0A\00"
@str.26 = [42 x i8] c"Calculate the mass of a tesseroid model.\0A\00"
@str.27 = [33 x i8] c"All units either SI or degrees!\0A\00"
@str.28 = [7 x i8] c"Input:\00"
@str.29 = [63 x i8] c" If TESSFILE is omited, will read from standard input (stdin)\00"
@str.30 = [48 x i8] c" TESSFILE: File containing the tesseroid model\00"
@str.31 = [62 x i8] c" * Each tesseroid is specified by the values of its borders\00"
@str.32 = [17 x i8] c" and density\00"
@str.33 = [52 x i8] c" * The file should contain one tesseroid per line\00"
@str.34 = [56 x i8] c" * Each line should have the following column format:\00"
@str.35 = [48 x i8] c" West East South North Top Bottom Density\00"
@str.36 = [58 x i8] c" * Top and Bottom should be read as 'depth to top' and \00"
@str.37 = [64 x i8] c" 'depth to bottom' from the mean Earth radius. Use negative\00"
@str.38 = [60 x i8] c" values if above the surface, for example when modeling\00"
@str.39 = [16 x i8] c" topography\00"
@str.40 = [61 x i8] c" * If a line starts with # it will be considered a comment\00"
@str.41 = [26 x i8] c" and will be ignored\0A\00"
@str.42 = [8 x i8] c"Output:\00"
@str.43 = [62 x i8] c" Printed to standard output (stdout) in same units as input\0A\00"
@str.44 = [9 x i8] c"Options:\00"
@str.45 = [54 x i8] c" -rLOW/HIGH Only take into account tesseroids with\00"
@str.46 = [44 x i8] c" density between LOW and HIGH\00"
@str.47 = [35 x i8] c" -h Print instructions.\00"
@str.48 = [54 x i8] c" --version Print version and license information.\00"
@str.49 = [50 x i8] c" -v Enable verbose printing to stderr.\00"
@str.50 = [52 x i8] c" -lFILENAME Print log messages to file FILENAME.\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.26, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.27, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.28, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.29, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.30, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.31, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.32, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.33, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.34, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.35, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.36, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.37, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.38, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.39, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.40, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.41, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.42, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.43, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.44, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.45, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.46, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.47, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.48, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.49, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.50, i64 0, i64 0))
%27 = tail call i32 (...) @print_copyright()
ret void
}