#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);
int /*<<< orphan*/ printf(char *, ...);
void usage() {
  printf("\n");
  printf("vmtouch v%s - the Virtual Memory Toucher by Doug Hoyte\n", "1.3.1");
  printf("Portable file system cache diagnostics and control\n\n");
  printf("Usage: vmtouch [OPTIONS] ... FILES OR DIRECTORIES ...\n\nOptions:\n");
  printf("  -t touch pages into memory\n");
  printf("  -e evict pages from memory\n");
  printf("  -l lock pages in physical memory with mlock(2)\n");
  printf("  -L lock pages in physical memory with mlockall(2)\n");
  printf("  -d daemon mode\n");
  printf("  -m <size> max file size to touch\n");
  printf("  -p <range> use the specified portion instead of the entire file\n");
  printf("  -f follow symbolic links\n");
  printf("  -F don't crawl different filesystems\n");
  printf("  -h also count hardlinked copies\n");
  printf(
      "  -i <pattern> ignores files and directories that match this pattern\n");
  printf("  -I <pattern> only process files that match this pattern\n");
  printf("  -b <list file> get files or directories from the list file\n");
  printf("  -0 in batch mode (-b) separate paths with NUL byte instead of "
         "newline\n");
  printf(
      "  -w wait until all pages are locked (only useful together with -d)\n");
  printf(
      "  -P <pidfile> write a pidfile (only useful together with -l or -L)\n");
  printf("  -v verbose\n");
  printf("  -q quiet\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xf46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec7(%rip),%rdi
lea    0xef8(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfcf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1004(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1012(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x102c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1041(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1079(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10d6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1111(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1148(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x117f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x117f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xeae(%rip),%rdi
lea    0xedf(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xed7(%rip),%rdi
call   1040 <puts@plt>
lea    0xeff(%rip),%rdi
call   1040 <puts@plt>
lea    0xf33(%rip),%rdi
call   1040 <puts@plt>
lea    0xf44(%rip),%rdi
call   1040 <puts@plt>
lea    0xf55(%rip),%rdi
call   1040 <puts@plt>
lea    0xf7a(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa2(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa7(%rip),%rdi
call   1040 <puts@plt>
lea    0xfbe(%rip),%rdi
call   1040 <puts@plt>
lea    0xff4(%rip),%rdi
call   1040 <puts@plt>
lea    0x1003(%rip),%rdi
call   1040 <puts@plt>
lea    0x101e(%rip),%rdi
call   1040 <puts@plt>
lea    0x1034(%rip),%rdi
call   1040 <puts@plt>
lea    0x106d(%rip),%rdi
call   1040 <puts@plt>
lea    0x109b(%rip),%rdi
call   1040 <puts@plt>
lea    0x10cc(%rip),%rdi
call   1040 <puts@plt>
lea    0x1108(%rip),%rdi
call   1040 <puts@plt>
lea    0x1140(%rip),%rdi
call   1040 <puts@plt>
lea    0x1178(%rip),%rdi
call   1040 <puts@plt>
lea    0x1179(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [56 x i8] c"vmtouch v%s - the Virtual Memory Toucher by Doug Hoyte\0A\00"
@.str.2 = [6 x i8] c"1.3.1\00"
@.str.3 = [53 x i8] c"Portable file system cache diagnostics and control\0A\0A\00"
@.str.4 = [65 x i8] c"Usage: vmtouch [OPTIONS] ... FILES OR DIRECTORIES ...\0A\0AOptions:\0A\00"
@.str.5 = [30 x i8] c" -t touch pages into memory\0A\00"
@.str.6 = [30 x i8] c" -e evict pages from memory\0A\00"
@.str.7 = [50 x i8] c" -l lock pages in physical memory with mlock(2)\0A\00"
@.str.8 = [53 x i8] c" -L lock pages in physical memory with mlockall(2)\0A\00"
@.str.9 = [18 x i8] c" -d daemon mode\0A\00"
@.str.10 = [36 x i8] c" -m <size> max file size to touch\0A\00"
@.str.11 = [67 x i8] c" -p <range> use the specified portion instead of the entire file\0A\00"
@.str.12 = [28 x i8] c" -f follow symbolic links\0A\00"
@.str.13 = [40 x i8] c" -F don't crawl different filesystems\0A\00"
@.str.14 = [35 x i8] c" -h also count hardlinked copies\0A\00"
@.str.15 = [70 x i8] c" -i <pattern> ignores files and directories that match this pattern\0A\00"
@.str.16 = [59 x i8] c" -I <pattern> only process files that match this pattern\0A\00"
@.str.17 = [62 x i8] c" -b <list file> get files or directories from the list file\0A\00"
@.str.18 = [73 x i8] c" -0 in batch mode (-b) separate paths with NUL byte instead of newline\0A\00"
@.str.19 = [69 x i8] c" -w wait until all pages are locked (only useful together with -d)\0A\00"
@.str.20 = [69 x i8] c" -P <pidfile> write a pidfile (only useful together with -l or -L)\0A\00"
@.str.21 = [14 x i8] c" -v verbose\0A\00"
@.str.22 = [12 x i8] c" -q quiet\0A\00"
define void @usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.11, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.13, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.15, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.16, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.17, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.18, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.19, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.20, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.21, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.22, i64 0, i64 0))
%23 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str.1 = [56 x i8] c"vmtouch v%s - the Virtual Memory Toucher by Doug Hoyte\0A\00"
@.str.2 = [6 x i8] c"1.3.1\00"
@str = [52 x i8] c"Portable file system cache diagnostics and control\0A\00"
@str.23 = [64 x i8] c"Usage: vmtouch [OPTIONS] ... FILES OR DIRECTORIES ...\0A\0AOptions:\00"
@str.24 = [29 x i8] c" -t touch pages into memory\00"
@str.25 = [29 x i8] c" -e evict pages from memory\00"
@str.26 = [49 x i8] c" -l lock pages in physical memory with mlock(2)\00"
@str.27 = [52 x i8] c" -L lock pages in physical memory with mlockall(2)\00"
@str.28 = [17 x i8] c" -d daemon mode\00"
@str.29 = [35 x i8] c" -m <size> max file size to touch\00"
@str.30 = [66 x i8] c" -p <range> use the specified portion instead of the entire file\00"
@str.31 = [27 x i8] c" -f follow symbolic links\00"
@str.32 = [39 x i8] c" -F don't crawl different filesystems\00"
@str.33 = [34 x i8] c" -h also count hardlinked copies\00"
@str.34 = [69 x i8] c" -i <pattern> ignores files and directories that match this pattern\00"
@str.35 = [58 x i8] c" -I <pattern> only process files that match this pattern\00"
@str.36 = [61 x i8] c" -b <list file> get files or directories from the list file\00"
@str.37 = [72 x i8] c" -0 in batch mode (-b) separate paths with NUL byte instead of newline\00"
@str.38 = [68 x i8] c" -w wait until all pages are locked (only useful together with -d)\00"
@str.39 = [68 x i8] c" -P <pidfile> write a pidfile (only useful together with -l or -L)\00"
@str.40 = [13 x i8] c" -v verbose\00"
@str.41 = [11 x i8] c" -q quiet\00"
define void @usage() {
%1 = tail call i32 @putchar(i32 10)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.23, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.24, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.25, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.26, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.27, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.28, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.29, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.30, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.31, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.32, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.33, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.34, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.35, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.36, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.37, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.38, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.39, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.40, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.41, i64 0, i64 0))
%23 = tail call i32 @exit(i32 1)
unreachable
}