#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(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void info() {
  printf("Usage: getbound [options] <grid file>\n");
  printf("Where:\n");
  printf(
      "  <grid file> -- text file with node coordinates (see remarks below)\n");
  printf("    (use \"stdin\" or \"-\" for standard input)\n");
  printf("Options:\n");
  printf("  -c -- compact the polygon (exclude vertices that lie in between "
         "other\n");
  printf("        vertices)\n");
  printf("  -i <node type> -- input node type\n");
  printf("  -r -- Write boundary polygon vertex indices rather than physical "
         "coordinates\n");
  printf("  -v -- Verbose / version\n");
  printf("Node types:\n");
  printf("  DD -- double density nodes (default) \n");
  printf("  CO -- cell corner nodes\n");
  printf("Description:\n");
  printf("  `getbound' reads grid nodes from standard input. After that, it "
         "builds the\n");
  printf("   boundary polygon and writes it to standard output\n");
  printf("Remarks:\n");
  printf("  1. The grid file must contain header describing the node array "
         "dimension:\n");
  printf("     ## <nx> x <ny>\n");
  printf("     where for double density nodes nx = nce1 * 2 + 1, ny = nce2 * 2 "
         "+ 1;\n");
  printf("     for corner nodes  nx = nce1 + 1, ny = nce2 + 1; and for center "
         "nodes\n");
  printf("     nx = nce1, ny = nce2.\n");
  printf("  2. After the header, the grid file must contain (nx * ny) lines "
         "with X and\n");
  printf("     Y node coordinates.\n");
  printf("  3. An empty or commented line in the input grid file as well as "
         "NaNs for\n");
  printf("     node coordinates indicate an invalid node.\n");
  printf(
      "  4. A grid cell is valid if all corner nodes are valid (not NaNs).\n");
  printf("  5. The grid (union of all valid grid cells) must be simply "
         "connected.\n");
  exit(0);
}


x86 assembly (clang, -O0):
<info>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
call   1030 <printf@plt>
lea    0xf26(%rip),%rdi
call   1030 <printf@plt>
lea    0xf47(%rip),%rdi
call   1030 <printf@plt>
lea    0xf45(%rip),%rdi
call   1030 <printf@plt>
lea    0xf82(%rip),%rdi
call   1030 <printf@plt>
lea    0xf89(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa2(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe6(%rip),%rdi
call   1030 <printf@plt>
lea    0xff5(%rip),%rdi
call   1030 <printf@plt>
lea    0xff6(%rip),%rdi
call   1030 <printf@plt>
lea    0x1013(%rip),%rdi
call   1030 <printf@plt>
lea    0x1022(%rip),%rdi
call   1030 <printf@plt>
lea    0x1024(%rip),%rdi
call   1030 <printf@plt>
lea    0x1066(%rip),%rdi
call   1030 <printf@plt>
lea    0x1090(%rip),%rdi
call   1030 <printf@plt>
lea    0x108e(%rip),%rdi
call   1030 <printf@plt>
lea    0x10cf(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d8(%rip),%rdi
call   1030 <printf@plt>
lea    0x1117(%rip),%rdi
call   1030 <printf@plt>
lea    0x1156(%rip),%rdi
call   1030 <printf@plt>
lea    0x1166(%rip),%rdi
call   1030 <printf@plt>
lea    0x11a8(%rip),%rdi
call   1030 <printf@plt>
lea    0x11b6(%rip),%rdi
call   1030 <printf@plt>
lea    0x11f6(%rip),%rdi
call   1030 <printf@plt>
lea    0x121b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1254(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<info>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef2(%rip),%rdi
call   1030 <puts@plt>
lea    0xeed(%rip),%rdi
call   1030 <puts@plt>
lea    0xf26(%rip),%rdi
call   1030 <puts@plt>
lea    0xf46(%rip),%rdi
call   1030 <puts@plt>
lea    0xf43(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf85(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9d(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe0(%rip),%rdi
call   1030 <puts@plt>
lea    0xfee(%rip),%rdi
call   1030 <puts@plt>
lea    0xfee(%rip),%rdi
call   1030 <puts@plt>
lea    0x100a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1018(%rip),%rdi
call   1030 <puts@plt>
lea    0x1019(%rip),%rdi
call   1030 <puts@plt>
lea    0x105a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1083(%rip),%rdi
call   1030 <puts@plt>
lea    0x1080(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c0(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c8(%rip),%rdi
call   1030 <puts@plt>
lea    0x1106(%rip),%rdi
call   1030 <puts@plt>
lea    0x1144(%rip),%rdi
call   1030 <puts@plt>
lea    0x1153(%rip),%rdi
call   1030 <puts@plt>
lea    0x1194(%rip),%rdi
call   1030 <puts@plt>
lea    0x11a1(%rip),%rdi
call   1030 <puts@plt>
lea    0x11e0(%rip),%rdi
call   1030 <puts@plt>
lea    0x1204(%rip),%rdi
call   1030 <puts@plt>
lea    0x123c(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [39 x i8] c"Usage: getbound [options] <grid file>\0A\00"
@.str.1 = [8 x i8] c"Where:\0A\00"
@.str.2 = [70 x i8] c" <grid file> -- text file with node coordinates (see remarks below)\0A\00"
@.str.3 = [45 x i8] c" (use \22stdin\22 or \22-\22 for standard input)\0A\00"
@.str.4 = [10 x i8] c"Options:\0A\00"
@.str.5 = [73 x i8] c" -c -- compact the polygon (exclude vertices that lie in between other\0A\00"
@.str.6 = [19 x i8] c" vertices)\0A\00"
@.str.7 = [37 x i8] c" -i <node type> -- input node type\0A\00"
@.str.8 = [80 x i8] c" -r -- Write boundary polygon vertex indices rather than physical coordinates\0A\00"
@.str.9 = [27 x i8] c" -v -- Verbose / version\0A\00"
@.str.10 = [13 x i8] c"Node types:\0A\00"
@.str.11 = [41 x i8] c" DD -- double density nodes (default) \0A\00"
@.str.12 = [27 x i8] c" CO -- cell corner nodes\0A\00"
@.str.13 = [14 x i8] c"Description:\0A\00"
@.str.14 = [78 x i8] c" `getbound' reads grid nodes from standard input. After that, it builds the\0A\00"
@.str.15 = [54 x i8] c" boundary polygon and writes it to standard output\0A\00"
@.str.16 = [10 x i8] c"Remarks:\0A\00"
@.str.17 = [77 x i8] c" 1. The grid file must contain header describing the node array dimension:\0A\00"
@.str.18 = [21 x i8] c" ## <nx> x <ny>\0A\00"
@.str.19 = [75 x i8] c" where for double density nodes nx = nce1 * 2 + 1, ny = nce2 * 2 + 1;\0A\00"
@.str.20 = [75 x i8] c" for corner nodes nx = nce1 + 1, ny = nce2 + 1; and for center nodes\0A\00"
@.str.21 = [28 x i8] c" nx = nce1, ny = nce2.\0A\00"
@.str.22 = [78 x i8] c" 2. After the header, the grid file must contain (nx * ny) lines with X and\0A\00"
@.str.23 = [26 x i8] c" Y node coordinates.\0A\00"
@.str.24 = [76 x i8] c" 3. An empty or commented line in the input grid file as well as NaNs for\0A\00"
@.str.25 = [49 x i8] c" node coordinates indicate an invalid node.\0A\00"
@.str.26 = [69 x i8] c" 4. A grid cell is valid if all corner nodes are valid (not NaNs).\0A\00"
@.str.27 = [73 x i8] c" 5. The grid (union of all valid grid cells) must be simply connected.\0A\00"
define void @info() {
%1 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.26, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.27, i64 0, i64 0))
%29 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [38 x i8] c"Usage: getbound [options] <grid file>\00"
@str.28 = [7 x i8] c"Where:\00"
@str.29 = [69 x i8] c" <grid file> -- text file with node coordinates (see remarks below)\00"
@str.30 = [44 x i8] c" (use \22stdin\22 or \22-\22 for standard input)\00"
@str.31 = [9 x i8] c"Options:\00"
@str.32 = [72 x i8] c" -c -- compact the polygon (exclude vertices that lie in between other\00"
@str.33 = [18 x i8] c" vertices)\00"
@str.34 = [36 x i8] c" -i <node type> -- input node type\00"
@str.35 = [79 x i8] c" -r -- Write boundary polygon vertex indices rather than physical coordinates\00"
@str.36 = [26 x i8] c" -v -- Verbose / version\00"
@str.37 = [12 x i8] c"Node types:\00"
@str.38 = [40 x i8] c" DD -- double density nodes (default) \00"
@str.39 = [26 x i8] c" CO -- cell corner nodes\00"
@str.40 = [13 x i8] c"Description:\00"
@str.41 = [77 x i8] c" `getbound' reads grid nodes from standard input. After that, it builds the\00"
@str.42 = [53 x i8] c" boundary polygon and writes it to standard output\00"
@str.43 = [9 x i8] c"Remarks:\00"
@str.44 = [76 x i8] c" 1. The grid file must contain header describing the node array dimension:\00"
@str.45 = [20 x i8] c" ## <nx> x <ny>\00"
@str.46 = [74 x i8] c" where for double density nodes nx = nce1 * 2 + 1, ny = nce2 * 2 + 1;\00"
@str.47 = [74 x i8] c" for corner nodes nx = nce1 + 1, ny = nce2 + 1; and for center nodes\00"
@str.48 = [27 x i8] c" nx = nce1, ny = nce2.\00"
@str.49 = [77 x i8] c" 2. After the header, the grid file must contain (nx * ny) lines with X and\00"
@str.50 = [25 x i8] c" Y node coordinates.\00"
@str.51 = [75 x i8] c" 3. An empty or commented line in the input grid file as well as NaNs for\00"
@str.52 = [48 x i8] c" node coordinates indicate an invalid node.\00"
@str.53 = [68 x i8] c" 4. A grid cell is valid if all corner nodes are valid (not NaNs).\00"
@str.54 = [72 x i8] c" 5. The grid (union of all valid grid cells) must be simply connected.\00"
define void @info() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.28, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.29, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.30, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.31, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.32, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.33, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.34, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.35, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.36, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.37, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.38, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.39, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.40, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.41, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.42, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.43, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.44, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.45, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.46, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.47, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.48, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.49, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.50, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.51, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.52, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.53, i64 0, i64 0))
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.54, i64 0, i64 0))
%29 = tail call i32 @exit(i32 0)
unreachable
}