#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: subgrid <grid file> [-i <imin>:<imax>] [-j <jmin>:<jmax>]\n");
  printf("                [-x|-y] [-v]\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("  -v -- verbose / version\n");
  printf("  -x -- print X coordinates only\n");
  printf("  -y -- print Y coordinates only\n");
  printf("Description:\n");
  printf("  `subgrid' reads grid nodes in \"X Y\\n\" format and writes nodes "
         "for the\n");
  printf("   specified subgrid\n");
  printf("Remarks:\n");
  printf("  1. The input must contain header describing the node array "
         "dimension:\n");
  printf("     ## <nx> x <ny>\n");
  printf("  2. After the header, the input must contain (nx * ny) lines with X "
         "and Y\n");
  printf("     node coordinates.\n");
  exit(0);
}


x86 assembly (clang, -O0):
<info>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf19(%rip),%rdi
call   1030 <printf@plt>
lea    0xf53(%rip),%rdi
call   1030 <printf@plt>
lea    0xf74(%rip),%rdi
call   1030 <printf@plt>
lea    0xf72(%rip),%rdi
call   1030 <printf@plt>
lea    0xf81(%rip),%rdi
call   1030 <printf@plt>
lea    0xf97(%rip),%rdi
call   1030 <printf@plt>
lea    0xfad(%rip),%rdi
call   1030 <printf@plt>
lea    0xfaf(%rip),%rdi
call   1030 <printf@plt>
lea    0xfec(%rip),%rdi
call   1030 <printf@plt>
lea    0xff6(%rip),%rdi
call   1030 <printf@plt>
lea    0xff4(%rip),%rdi
call   1030 <printf@plt>
lea    0x1031(%rip),%rdi
call   1030 <printf@plt>
lea    0x103a(%rip),%rdi
call   1030 <printf@plt>
lea    0x107a(%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    0xf0d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
call   1030 <puts@plt>
lea    0xf52(%rip),%rdi
call   1030 <puts@plt>
lea    0xf72(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf92(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa7(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe4(%rip),%rdi
call   1030 <puts@plt>
lea    0xfed(%rip),%rdi
call   1030 <puts@plt>
lea    0xfea(%rip),%rdi
call   1030 <puts@plt>
lea    0x1026(%rip),%rdi
call   1030 <puts@plt>
lea    0x102e(%rip),%rdi
call   1030 <puts@plt>
lea    0x106d(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [66 x i8] c"Usage: subgrid <grid file> [-i <imin>:<imax>] [-j <jmin>:<jmax>]\0A\00"
@.str.1 = [30 x i8] c" [-x|-y] [-v]\0A\00"
@.str.2 = [8 x i8] c"Where:\0A\00"
@.str.3 = [70 x i8] c" <grid file> -- text file with node coordinates (see remarks below)\0A\00"
@.str.4 = [45 x i8] c" (use \22stdin\22 or \22-\22 for standard input)\0A\00"
@.str.5 = [10 x i8] c"Options:\0A\00"
@.str.6 = [27 x i8] c" -v -- verbose / version\0A\00"
@.str.7 = [34 x i8] c" -x -- print X coordinates only\0A\00"
@.str.8 = [34 x i8] c" -y -- print Y coordinates only\0A\00"
@.str.9 = [14 x i8] c"Description:\0A\00"
@.str.10 = [73 x i8] c" `subgrid' reads grid nodes in \22X Y\\n\22 format and writes nodes for the\0A\00"
@.str.11 = [22 x i8] c" specified subgrid\0A\00"
@.str.12 = [10 x i8] c"Remarks:\0A\00"
@.str.13 = [73 x i8] c" 1. The input must contain header describing the node array dimension:\0A\00"
@.str.14 = [21 x i8] c" ## <nx> x <ny>\0A\00"
@.str.15 = [76 x i8] c" 2. After the header, the input must contain (nx * ny) lines with X and Y\0A\00"
@.str.16 = [24 x i8] c" node coordinates.\0A\00"
define void @info() {
%1 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [65 x i8] c"Usage: subgrid <grid file> [-i <imin>:<imax>] [-j <jmin>:<jmax>]\00"
@str.17 = [29 x i8] c" [-x|-y] [-v]\00"
@str.18 = [7 x i8] c"Where:\00"
@str.19 = [69 x i8] c" <grid file> -- text file with node coordinates (see remarks below)\00"
@str.20 = [44 x i8] c" (use \22stdin\22 or \22-\22 for standard input)\00"
@str.21 = [9 x i8] c"Options:\00"
@str.22 = [26 x i8] c" -v -- verbose / version\00"
@str.23 = [33 x i8] c" -x -- print X coordinates only\00"
@str.24 = [33 x i8] c" -y -- print Y coordinates only\00"
@str.25 = [13 x i8] c"Description:\00"
@str.26 = [72 x i8] c" `subgrid' reads grid nodes in \22X Y\\n\22 format and writes nodes for the\00"
@str.27 = [21 x i8] c" specified subgrid\00"
@str.28 = [9 x i8] c"Remarks:\00"
@str.29 = [72 x i8] c" 1. The input must contain header describing the node array dimension:\00"
@str.30 = [20 x i8] c" ## <nx> x <ny>\00"
@str.31 = [75 x i8] c" 2. After the header, the input must contain (nx * ny) lines with X and Y\00"
@str.32 = [23 x i8] c" node coordinates.\00"
define void @info() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.17, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.18, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.21, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.22, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.23, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.24, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.25, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.27, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.28, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.29, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.30, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.31, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.32, i64 0, i64 0))
%18 = tail call i32 @exit(i32 0)
unreachable
}