#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: insertgrid <master grid file> <grid file> <i> <j> [-v]\n");
  printf("       insertgrid -h\n");
  printf("       insertgrid -v\n");
  printf("Where:\n");
  printf("  <master grid file> -- text file with node coordinates of the grid "
         "to be\n");
  printf("                   modified (see remarks below) (use \"stdin\" or "
         "\"-\" for\n");
  printf("                   standard input)\n");
  printf(
      "  <grid file>   -- text file with nodes of the grid to be inserted\n");
  printf("  <i>, <j>      -- indices of location of node (i,j) = (0,0) of the "
         "slave\n");
  printf("                   grid in the master grid\n");
  printf(
      "  -i {DD|CO|CE} -- grid node type (double density, corner or center)\n");
  printf("Options:\n");
  printf("  -h -- print this information\n");
  printf("  -m -- merge grids (default = insert)\n");
  printf("  -v -- verbose / version\n");
  printf("Description:\n");
  printf("  `insertgrid' reads grid nodes from two files and inserts nodes "
         "from one\n");
  printf("  grid into another grid at specified location in index space.\n");
  printf("Remarks:\n");
  printf("  1. The input grid files must contain header describing the node "
         "array\n");
  printf("     dimension: ## <nx> x <ny>\n");
  printf("  2. After the header, the input files must contain (nx * ny) lines "
         "with\n");
  printf("     X and Y node coordinates.\n");
  printf("  3. The output grid will be verified if only the node type is "
         "specified.\n");
  exit(0);
}


x86 assembly (clang, -O0):
<info>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf08(%rip),%rdi
call   1030 <printf@plt>
lea    0xf12(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
call   1030 <printf@plt>
lea    0xf57(%rip),%rdi
call   1030 <printf@plt>
lea    0xf94(%rip),%rdi
call   1030 <printf@plt>
lea    0xfac(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe4(%rip),%rdi
call   1030 <printf@plt>
lea    0x1023(%rip),%rdi
call   1030 <printf@plt>
lea    0x1043(%rip),%rdi
call   1030 <printf@plt>
lea    0x107d(%rip),%rdi
call   1030 <printf@plt>
lea    0x107b(%rip),%rdi
call   1030 <printf@plt>
lea    0x108f(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ab(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ba(%rip),%rdi
call   1030 <printf@plt>
lea    0x10bc(%rip),%rdi
call   1030 <printf@plt>
lea    0x10fb(%rip),%rdi
call   1030 <printf@plt>
lea    0x112f(%rip),%rdi
call   1030 <printf@plt>
lea    0x112d(%rip),%rdi
call   1030 <printf@plt>
lea    0x116a(%rip),%rdi
call   1030 <printf@plt>
lea    0x117e(%rip),%rdi
call   1030 <printf@plt>
lea    0x11bc(%rip),%rdi
call   1030 <printf@plt>
lea    0x11d0(%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    0xf0a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf13(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf17(%rip),%rdi
call   1030 <puts@plt>
lea    0xf55(%rip),%rdi
call   1030 <puts@plt>
lea    0xf91(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdf(%rip),%rdi
call   1030 <puts@plt>
lea    0x101d(%rip),%rdi
call   1030 <puts@plt>
lea    0x103c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1075(%rip),%rdi
call   1030 <puts@plt>
lea    0x1072(%rip),%rdi
call   1030 <puts@plt>
lea    0x1085(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a0(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ae(%rip),%rdi
call   1030 <puts@plt>
lea    0x10af(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ed(%rip),%rdi
call   1030 <puts@plt>
lea    0x1120(%rip),%rdi
call   1030 <puts@plt>
lea    0x111d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1159(%rip),%rdi
call   1030 <puts@plt>
lea    0x116c(%rip),%rdi
call   1030 <puts@plt>
lea    0x11a9(%rip),%rdi
call   1030 <puts@plt>
lea    0x11bc(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [63 x i8] c"Usage: insertgrid <master grid file> <grid file> <i> <j> [-v]\0A\00"
@.str.1 = [22 x i8] c" insertgrid -h\0A\00"
@.str.2 = [22 x i8] c" insertgrid -v\0A\00"
@.str.3 = [8 x i8] c"Where:\0A\00"
@.str.4 = [75 x i8] c" <master grid file> -- text file with node coordinates of the grid to be\0A\00"
@.str.5 = [73 x i8] c" modified (see remarks below) (use \22stdin\22 or \22-\22 for\0A\00"
@.str.6 = [36 x i8] c" standard input)\0A\00"
@.str.7 = [68 x i8] c" <grid file> -- text file with nodes of the grid to be inserted\0A\00"
@.str.8 = [75 x i8] c" <i>, <j> -- indices of location of node (i,j) = (0,0) of the slave\0A\00"
@.str.9 = [44 x i8] c" grid in the master grid\0A\00"
@.str.10 = [70 x i8] c" -i {DD|CO|CE} -- grid node type (double density, corner or center)\0A\00"
@.str.11 = [10 x i8] c"Options:\0A\00"
@.str.12 = [32 x i8] c" -h -- print this information\0A\00"
@.str.13 = [40 x i8] c" -m -- merge grids (default = insert)\0A\00"
@.str.14 = [27 x i8] c" -v -- verbose / version\0A\00"
@.str.15 = [14 x i8] c"Description:\0A\00"
@.str.16 = [75 x i8] c" `insertgrid' reads grid nodes from two files and inserts nodes from one\0A\00"
@.str.17 = [64 x i8] c" grid into another grid at specified location in index space.\0A\00"
@.str.18 = [10 x i8] c"Remarks:\0A\00"
@.str.19 = [73 x i8] c" 1. The input grid files must contain header describing the node array\0A\00"
@.str.20 = [32 x i8] c" dimension: ## <nx> x <ny>\0A\00"
@.str.21 = [74 x i8] c" 2. After the header, the input files must contain (nx * ny) lines with\0A\00"
@.str.22 = [32 x i8] c" X and Y node coordinates.\0A\00"
@.str.23 = [75 x i8] c" 3. The output grid will be verified if only the node type is specified.\0A\00"
define void @info() {
%1 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 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 ([75 x i8], [75 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 ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [62 x i8] c"Usage: insertgrid <master grid file> <grid file> <i> <j> [-v]\00"
@str.24 = [21 x i8] c" insertgrid -h\00"
@str.25 = [21 x i8] c" insertgrid -v\00"
@str.26 = [7 x i8] c"Where:\00"
@str.27 = [74 x i8] c" <master grid file> -- text file with node coordinates of the grid to be\00"
@str.28 = [72 x i8] c" modified (see remarks below) (use \22stdin\22 or \22-\22 for\00"
@str.29 = [35 x i8] c" standard input)\00"
@str.30 = [67 x i8] c" <grid file> -- text file with nodes of the grid to be inserted\00"
@str.31 = [74 x i8] c" <i>, <j> -- indices of location of node (i,j) = (0,0) of the slave\00"
@str.32 = [43 x i8] c" grid in the master grid\00"
@str.33 = [69 x i8] c" -i {DD|CO|CE} -- grid node type (double density, corner or center)\00"
@str.34 = [9 x i8] c"Options:\00"
@str.35 = [31 x i8] c" -h -- print this information\00"
@str.36 = [39 x i8] c" -m -- merge grids (default = insert)\00"
@str.37 = [26 x i8] c" -v -- verbose / version\00"
@str.38 = [13 x i8] c"Description:\00"
@str.39 = [74 x i8] c" `insertgrid' reads grid nodes from two files and inserts nodes from one\00"
@str.40 = [63 x i8] c" grid into another grid at specified location in index space.\00"
@str.41 = [9 x i8] c"Remarks:\00"
@str.42 = [72 x i8] c" 1. The input grid files must contain header describing the node array\00"
@str.43 = [31 x i8] c" dimension: ## <nx> x <ny>\00"
@str.44 = [73 x i8] c" 2. After the header, the input files must contain (nx * ny) lines with\00"
@str.45 = [31 x i8] c" X and Y node coordinates.\00"
@str.46 = [74 x i8] c" 3. The output grid will be verified if only the node type is specified.\00"
define void @info() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.24, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.25, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.26, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.27, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.28, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.29, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.30, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.31, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.32, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.33, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.34, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.35, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.36, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.37, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.38, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.39, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.40, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.41, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.42, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.43, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.44, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.45, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.46, i64 0, i64 0))
%25 = tail call i32 @exit(i32 0)
unreachable
}