#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void print_usage() {
  fprintf(stderr, "hugectl [options] target\n");
  fprintf(stderr, "options:\n");
  fprintf(stderr, " %-25s  %s\n", "--help, -h", "Prints this message");
  fprintf(stderr, " %-25s  %s\n", "--verbose <level>, -v",
          "Increases/sets tracing levels");
  fprintf(stderr, " %-25s  %s\n", "--text[=<size>]",
          "Requests remapping of the program text");
  fprintf(stderr, " %-25s  %s\n", "--data[=<size>]",
          "Requests remapping of the program data");
  fprintf(stderr, " %-25s  %s\n", "--bss[=<size>]",
          "Requests remapping of the program bss");
  fprintf(stderr, " %-25s  %s\n", "--heap[=<size>]",
          "Requests remapping of the program heap");
  fprintf(stderr, " %-25s  %s\n", "", "(malloc space)");
  fprintf(stderr, " %-25s  %s\n", "--shm",
          "Requests remapping of shared memory segments");
  fprintf(stderr, " %-25s  %s\n", "--thp",
          "Setup the heap space to be aligned for merging");
  fprintf(stderr, " %-25s  %s\n", "",
          "by khugepaged into huge pages.  This requires");
  fprintf(stderr, " %-25s  %s\n", "",
          "kernel support for transparent huge pages to be");
  fprintf(stderr, " %-25s  %s\n", "", "enabled");
  fprintf(stderr, " %-25s  %s\n", "--no-preload",
          "Disable preloading the libhugetlbfs library");
  fprintf(stderr, " %-25s  %s\n", "--no-reserve",
          "Disable huge page reservation for segments");
  fprintf(stderr, " %-25s  %s\n", "--force-preload",
          "Force preloading the libhugetlbfs library");
  fprintf(stderr, " %-25s  %s\n", "--dry-run",
          "describe what would be done without doing it");
  fprintf(stderr, " %-25s  %s\n", "--library-use-path",
          "Use the system library path");
  fprintf(stderr, " %-25s  %s\n", "--share-text",
          "Share text segments between multiple");
  fprintf(stderr, " %-25s  %s\n", "", "application instances");
  fprintf(stderr, " %-25s  %s\n", "--library-path <path>",
          "Select a library prefix");
  fprintf(stderr, " %-25s  %s\n", "",
          "(Default: "
          ")");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
lea    0xedf(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%edi
lea    0xed2(%rip),%rsi
lea    0xed7(%rip),%rdx
lea    0xedb(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e72(%rip),%rax
mov    (%rax),%edi
lea    0xead(%rip),%rsi
lea    0xed1(%rip),%rdx
lea    0xee0(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e4d(%rip),%rax
mov    (%rax),%edi
lea    0xe88(%rip),%rsi
lea    0xee0(%rip),%rdx
lea    0xee9(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e28(%rip),%rax
mov    (%rax),%edi
lea    0xe63(%rip),%rsi
lea    0xef2(%rip),%rdx
lea    0xefb(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e03(%rip),%rax
mov    (%rax),%edi
lea    0xe3e(%rip),%rsi
lea    0xf04(%rip),%rdx
lea    0xf0c(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dde(%rip),%rax
mov    (%rax),%edi
lea    0xe19(%rip),%rsi
lea    0xf14(%rip),%rdx
lea    0xf1d(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2db9(%rip),%rax
mov    (%rax),%edi
lea    0xdf4(%rip),%rsi
lea    0xdec(%rip),%rdx
lea    0xf1f(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d94(%rip),%rax
mov    (%rax),%edi
lea    0xdcf(%rip),%rsi
lea    0xf10(%rip),%rdx
lea    0xf0f(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d6f(%rip),%rax
mov    (%rax),%edi
lea    0xdaa(%rip),%rsi
lea    0xf1e(%rip),%rdx
lea    0xf1d(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d4a(%rip),%rax
mov    (%rax),%edi
lea    0xd85(%rip),%rsi
lea    0xd7d(%rip),%rdx
lea    0xf27(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d25(%rip),%rax
mov    (%rax),%edi
lea    0xd60(%rip),%rsi
lea    0xd58(%rip),%rdx
lea    0xf30(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d00(%rip),%rax
mov    (%rax),%edi
lea    0xd3b(%rip),%rsi
lea    0xd33(%rip),%rdx
lea    0xf3b(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2cdb(%rip),%rax
mov    (%rax),%edi
lea    0xd16(%rip),%rsi
lea    0xf25(%rip),%rdx
lea    0xf2b(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2cb6(%rip),%rax
mov    (%rax),%edi
lea    0xcf1(%rip),%rsi
lea    0xf39(%rip),%rdx
lea    0xf3f(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c91(%rip),%rax
mov    (%rax),%edi
lea    0xccc(%rip),%rsi
lea    0xf4c(%rip),%rdx
lea    0xf55(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c6c(%rip),%rax
mov    (%rax),%edi
lea    0xca7(%rip),%rsi
lea    0xf61(%rip),%rdx
lea    0xf64(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c47(%rip),%rax
mov    (%rax),%edi
lea    0xc82(%rip),%rsi
lea    0xf73(%rip),%rdx
lea    0xf7f(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c22(%rip),%rax
mov    (%rax),%edi
lea    0xc5d(%rip),%rsi
lea    0xf7d(%rip),%rdx
lea    0xf83(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2bfd(%rip),%rax
mov    (%rax),%edi
lea    0xc38(%rip),%rsi
lea    0xc30(%rip),%rdx
lea    0xf83(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2bd8(%rip),%rax
mov    (%rax),%edi
lea    0xc13(%rip),%rsi
lea    0xf7b(%rip),%rdx
lea    0xf8a(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2bb3(%rip),%rax
mov    (%rax),%edi
lea    0xbee(%rip),%rsi
lea    0xbe6(%rip),%rdx
lea    0xf7d(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %r15
push   %r14
push   %rbx
mov    0x2ec4(%rip),%rbx
mov    (%rbx),%edi
lea    0xedb(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xee5(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xedf(%rip),%r15
lea    0xee4(%rip),%rdx
lea    0xee8(%rip),%rcx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xee9(%rip),%rdx
lea    0xef8(%rip),%rcx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf03(%rip),%rdx
lea    0xf0c(%rip),%rcx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf20(%rip),%rdx
lea    0xf29(%rip),%rcx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf3d(%rip),%rdx
lea    0xf45(%rip),%rcx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf58(%rip),%rdx
lea    0xf61(%rip),%rcx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe3b(%rip),%r14
lea    0xf6e(%rip),%rcx
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf67(%rip),%rdx
lea    0xf66(%rip),%rcx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf80(%rip),%rdx
lea    0xf7f(%rip),%rcx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf9b(%rip),%rcx
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfb3(%rip),%rcx
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfcd(%rip),%rcx
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfbf(%rip),%rdx
lea    0xfc5(%rip),%rcx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfde(%rip),%rdx
lea    0xfe4(%rip),%rcx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xffc(%rip),%rdx
lea    0x1005(%rip),%rcx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x101c(%rip),%rdx
lea    0x101f(%rip),%rcx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1039(%rip),%rdx
lea    0x1045(%rip),%rcx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x104e(%rip),%rdx
lea    0x1054(%rip),%rcx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1066(%rip),%rcx
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1066(%rip),%rdx
lea    0x1075(%rip),%rcx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x107a(%rip),%rcx
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [26 x i8] c"hugectl [options] target\0A\00"
@.str.1 = [10 x i8] c"options:\0A\00"
@.str.2 = [12 x i8] c" %-25s %s\0A\00"
@.str.3 = [11 x i8] c"--help, -h\00"
@.str.4 = [20 x i8] c"Prints this message\00"
@.str.5 = [22 x i8] c"--verbose <level>, -v\00"
@.str.6 = [30 x i8] c"Increases/sets tracing levels\00"
@.str.7 = [16 x i8] c"--text[=<size>]\00"
@.str.8 = [39 x i8] c"Requests remapping of the program text\00"
@.str.9 = [16 x i8] c"--data[=<size>]\00"
@.str.10 = [39 x i8] c"Requests remapping of the program data\00"
@.str.11 = [15 x i8] c"--bss[=<size>]\00"
@.str.12 = [38 x i8] c"Requests remapping of the program bss\00"
@.str.13 = [16 x i8] c"--heap[=<size>]\00"
@.str.14 = [39 x i8] c"Requests remapping of the program heap\00"
@.str.15 = [1 x i8] zeroinitializer
@.str.16 = [15 x i8] c"(malloc space)\00"
@.str.17 = [6 x i8] c"--shm\00"
@.str.18 = [45 x i8] c"Requests remapping of shared memory segments\00"
@.str.19 = [6 x i8] c"--thp\00"
@.str.20 = [47 x i8] c"Setup the heap space to be aligned for merging\00"
@.str.21 = [46 x i8] c"by khugepaged into huge pages. This requires\00"
@.str.22 = [48 x i8] c"kernel support for transparent huge pages to be\00"
@.str.23 = [8 x i8] c"enabled\00"
@.str.24 = [13 x i8] c"--no-preload\00"
@.str.25 = [44 x i8] c"Disable preloading the libhugetlbfs library\00"
@.str.26 = [13 x i8] c"--no-reserve\00"
@.str.27 = [43 x i8] c"Disable huge page reservation for segments\00"
@.str.28 = [16 x i8] c"--force-preload\00"
@.str.29 = [42 x i8] c"Force preloading the libhugetlbfs library\00"
@.str.30 = [10 x i8] c"--dry-run\00"
@.str.31 = [45 x i8] c"describe what would be done without doing it\00"
@.str.32 = [19 x i8] c"--library-use-path\00"
@.str.33 = [28 x i8] c"Use the system library path\00"
@.str.34 = [13 x i8] c"--share-text\00"
@.str.35 = [37 x i8] c"Share text segments between multiple\00"
@.str.36 = [22 x i8] c"application instances\00"
@.str.37 = [22 x i8] c"--library-path <path>\00"
@.str.38 = [24 x i8] c"Select a library prefix\00"
@.str.39 = [12 x i8] c"(Default: )\00"
define void @print_usage() {
%1 = load i32, i32* @stderr
%2 = call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.14, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.18, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.20, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.21, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.22, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.23, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.25, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.27, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.29, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.30, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.31, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.32, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.33, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.34, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.35, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.36, i64 0, i64 0))
%43 = load i32, i32* @stderr
%44 = call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.37, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.38, i64 0, i64 0))
%45 = load i32, i32* @stderr
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.39, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [26 x i8] c"hugectl [options] target\0A\00"
@.str.1 = [10 x i8] c"options:\0A\00"
@.str.2 = [12 x i8] c" %-25s %s\0A\00"
@.str.3 = [11 x i8] c"--help, -h\00"
@.str.4 = [20 x i8] c"Prints this message\00"
@.str.5 = [22 x i8] c"--verbose <level>, -v\00"
@.str.6 = [30 x i8] c"Increases/sets tracing levels\00"
@.str.7 = [16 x i8] c"--text[=<size>]\00"
@.str.8 = [39 x i8] c"Requests remapping of the program text\00"
@.str.9 = [16 x i8] c"--data[=<size>]\00"
@.str.10 = [39 x i8] c"Requests remapping of the program data\00"
@.str.11 = [15 x i8] c"--bss[=<size>]\00"
@.str.12 = [38 x i8] c"Requests remapping of the program bss\00"
@.str.13 = [16 x i8] c"--heap[=<size>]\00"
@.str.14 = [39 x i8] c"Requests remapping of the program heap\00"
@.str.15 = [1 x i8] zeroinitializer
@.str.16 = [15 x i8] c"(malloc space)\00"
@.str.17 = [6 x i8] c"--shm\00"
@.str.18 = [45 x i8] c"Requests remapping of shared memory segments\00"
@.str.19 = [6 x i8] c"--thp\00"
@.str.20 = [47 x i8] c"Setup the heap space to be aligned for merging\00"
@.str.21 = [46 x i8] c"by khugepaged into huge pages. This requires\00"
@.str.22 = [48 x i8] c"kernel support for transparent huge pages to be\00"
@.str.23 = [8 x i8] c"enabled\00"
@.str.24 = [13 x i8] c"--no-preload\00"
@.str.25 = [44 x i8] c"Disable preloading the libhugetlbfs library\00"
@.str.26 = [13 x i8] c"--no-reserve\00"
@.str.27 = [43 x i8] c"Disable huge page reservation for segments\00"
@.str.28 = [16 x i8] c"--force-preload\00"
@.str.29 = [42 x i8] c"Force preloading the libhugetlbfs library\00"
@.str.30 = [10 x i8] c"--dry-run\00"
@.str.31 = [45 x i8] c"describe what would be done without doing it\00"
@.str.32 = [19 x i8] c"--library-use-path\00"
@.str.33 = [28 x i8] c"Use the system library path\00"
@.str.34 = [13 x i8] c"--share-text\00"
@.str.35 = [37 x i8] c"Share text segments between multiple\00"
@.str.36 = [22 x i8] c"application instances\00"
@.str.37 = [22 x i8] c"--library-path <path>\00"
@.str.38 = [24 x i8] c"Select a library prefix\00"
@.str.39 = [12 x i8] c"(Default: )\00"
define void @print_usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.14, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.18, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.20, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = tail call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.21, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = tail call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.22, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = tail call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.23, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = tail call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.25, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = tail call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.27, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = tail call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.29, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = tail call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.30, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.31, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = tail call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.32, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.33, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = tail call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.34, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.35, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = tail call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.36, i64 0, i64 0))
%43 = load i32, i32* @stderr
%44 = tail call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.37, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.38, i64 0, i64 0))
%45 = load i32, i32* @stderr
%46 = tail call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.39, i64 0, i64 0))
ret void
}