#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*/ printf(char *);
void print_usage() {
  printf("Usage:\n\n");
  printf("ltrack_stats runs command given and does one of the "
         "following:\n"
         "\t1. Writes its pid to "
         "/proc/fs/lustre/llite/.../stats_track_pid\n"
         " to collects stats for that process.\n"
         "\t2. Writes its ppid to "
         "/proc/fs/lustre/llite/.../stats_track_ppid\n"
         " to collect stats of that process and all its children \n"
         "\t3. Sets gid of process to some random gid (444) and also\n"
         " writes that to/proc/fs/lustre/llite/.../stats_track_gid to"
         " collect stats \nof all processes in that group\n\n"
         " It also uses llstat to generate output with interval of 1 "
         " second and duration\n of run of command for plot-llstat to "
         "generate a graph\n\n");
  printf("ltrack_stats [-l filename] [-g <gid> | -a | -i | -c | -h ]\n"
         "\t<command with arguments ...>\n\n");
  printf("-l: outputs the llstat.pl's output to given <filename>"
         "with interval of 1 second \nbetween each output and flag for"
         "graphable output. If -l flag is not given llstat \nwont be"
         "executed\n\n");
  printf("-g: for displaying VFS operation statistics collected"
         "for all processes having \ngroup id as given <gid> \n\n");
  printf("-a: for displaying VFS operations statistics collected"
         "for all processes\n\n");
  printf("-i: for displaying VFS operation statistics collected"
         "for only given <command's> \nPID.\n\n");
  printf("-c: for displaying VFS operation statistics collected"
         " for all processes whose \nparents' PID is same as pid of "
         "<command> to be executed\n\n");
  printf("-h: for showing this help\n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
lea    0x1122(%rip),%rdi
call   1030 <printf@plt>
lea    0x1171(%rip),%rdi
call   1030 <printf@plt>
lea    0x121a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1278(%rip),%rdi
call   1030 <printf@plt>
lea    0x12b6(%rip),%rdi
call   1030 <printf@plt>
lea    0x1302(%rip),%rdi
call   1030 <printf@plt>
lea    0x137f(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee4(%rip),%rdi
call   1030 <puts@plt>
lea    0x1123(%rip),%rdi
call   1030 <puts@plt>
lea    0x1171(%rip),%rdi
call   1030 <puts@plt>
lea    0x1219(%rip),%rdi
call   1030 <puts@plt>
lea    0x1276(%rip),%rdi
call   1030 <puts@plt>
lea    0x12b3(%rip),%rdi
call   1030 <puts@plt>
lea    0x12fe(%rip),%rdi
call   1030 <puts@plt>
lea    0x137a(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"Usage:\0A\0A\00"
@.str.1 = [588 x i8] c"ltrack_stats runs command given and does one of the following:\0A\091. Writes its pid to /proc/fs/lustre/llite/.../stats_track_pid\0A to collects stats for that process.\0A\092. Writes its ppid to /proc/fs/lustre/llite/.../stats_track_ppid\0A to collect stats of that process and all its children \0A\093. Sets gid of process to some random gid (444) and also\0A writes that to/proc/fs/lustre/llite/.../stats_track_gid to collect stats \0Aof all processes in that group\0A\0A It also uses llstat to generate output with interval of 1 second and duration\0A of run of command for plot-llstat to generate a graph\0A\0A\00"
@.str.2 = [91 x i8] c"ltrack_stats [-l filename] [-g <gid> | -a | -i | -c | -h ]\0A\09<command with arguments ...>\0A\0A\00"
@.str.3 = [181 x i8] c"-l: outputs the llstat.pl's output to given <filename>with interval of 1 second \0Abetween each output and flag forgraphable output. If -l flag is not given llstat \0Awont beexecuted\0A\0A\00"
@.str.4 = [106 x i8] c"-g: for displaying VFS operation statistics collectedfor all processes having \0Agroup id as given <gid> \0A\0A\00"
@.str.5 = [74 x i8] c"-a: for displaying VFS operations statistics collectedfor all processes\0A\0A\00"
@.str.6 = [88 x i8] c"-i: for displaying VFS operation statistics collectedfor only given <command's> \0APID.\0A\0A\00"
@.str.7 = [137 x i8] c"-c: for displaying VFS operation statistics collected for all processes whose \0Aparents' PID is same as pid of <command> to be executed\0A\0A\00"
@.str.8 = [27 x i8] c"-h: for showing this help\0A\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([588 x i8], [588 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([181 x i8], [181 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [8 x i8] c"Usage:\0A\00"
@str.9 = [587 x i8] c"ltrack_stats runs command given and does one of the following:\0A\091. Writes its pid to /proc/fs/lustre/llite/.../stats_track_pid\0A to collects stats for that process.\0A\092. Writes its ppid to /proc/fs/lustre/llite/.../stats_track_ppid\0A to collect stats of that process and all its children \0A\093. Sets gid of process to some random gid (444) and also\0A writes that to/proc/fs/lustre/llite/.../stats_track_gid to collect stats \0Aof all processes in that group\0A\0A It also uses llstat to generate output with interval of 1 second and duration\0A of run of command for plot-llstat to generate a graph\0A\00"
@str.10 = [90 x i8] c"ltrack_stats [-l filename] [-g <gid> | -a | -i | -c | -h ]\0A\09<command with arguments ...>\0A\00"
@str.11 = [180 x i8] c"-l: outputs the llstat.pl's output to given <filename>with interval of 1 second \0Abetween each output and flag forgraphable output. If -l flag is not given llstat \0Awont beexecuted\0A\00"
@str.12 = [105 x i8] c"-g: for displaying VFS operation statistics collectedfor all processes having \0Agroup id as given <gid> \0A\00"
@str.13 = [73 x i8] c"-a: for displaying VFS operations statistics collectedfor all processes\0A\00"
@str.14 = [87 x i8] c"-i: for displaying VFS operation statistics collectedfor only given <command's> \0APID.\0A\00"
@str.15 = [136 x i8] c"-c: for displaying VFS operation statistics collected for all processes whose \0Aparents' PID is same as pid of <command> to be executed\0A\00"
@str.16 = [26 x i8] c"-h: for showing this help\00"
define void @print_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([587 x i8], [587 x i8]* @str.9, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.10, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([180 x i8], [180 x i8]* @str.11, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([105 x i8], [105 x i8]* @str.12, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.13, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str.14, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([136 x i8], [136 x i8]* @str.15, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.16, i64 0, i64 0))
ret void
}