#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 *, char, ...);
void generic_usage(void) {
  printf("\t  -%c  show fixed number of lines with system statistics\n", 'f');
  printf("\t  -%c  suppress sorting of system resources\n", 'F');
  printf("\t  -%c  suppress exited processes in output\n", 'G');
  printf("\t  -%c  show limited number of lines for certain resources\n", 'l');
  printf("\t  -%c  show threads within process\n", 'y');
  printf("\t  -%c  sort threads (when combined with '%c')\n", 'Y', 'y');
  printf("\t  -%c  show average-per-second i.s.o. total values\n\n", '1');
  printf("\t  -%c  no colors in case of high occupation\n", 'x');
  printf("\t  -%c  show general process-info (default)\n", 'g');
  printf("\t  -%c  show memory-related process-info\n", 'm');
  printf("\t  -%c  show disk-related process-info\n", 'd');
  printf("\t  -%c  show network-related process-info\n", 'n');
  printf("\t  -%c  show scheduling-related process-info\n", 's');
  printf("\t  -%c  show various process-info (ppid, user/group, "
         "date/time)\n",
         'v');
  printf("\t  -%c  show command line per process\n", 'c');
  printf("\t  -%c  show own defined process-info\n", 'o');
  printf("\t  -%c  show cumulated process-info per user\n", 'u');
  printf("\t  -%c  show cumulated process-info per program "
         "(i.e. same name)\n",
         'p');
  printf("\t  -%c  show cumulated process-info per container\n\n", 'j');
  printf("\t  -%c  sort processes in order of cpu consumption "
         "(default)\n",
         'C');
  printf("\t  -%c  sort processes in order of memory consumption\n", 'M');
  printf("\t  -%c  sort processes in order of disk activity\n", 'D');
  printf("\t  -%c  sort processes in order of network activity\n", 'N');
  printf("\t  -%c  sort processes in order of GPU activity\n", 'E');
  printf("\t  -%c  sort processes in order of most active resource "
         "(auto mode)\n",
         'A');
}


x86 assembly (clang, -O0):
<generic_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x66,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
mov    $0x46,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
mov    $0x47,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf42(%rip),%rdi
mov    $0x6c,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6b(%rip),%rdi
mov    $0x79,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf7d(%rip),%rdi
mov    $0x59,%esi
mov    $0x79,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf95(%rip),%rdi
mov    $0x31,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb8(%rip),%rdi
mov    $0x78,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd3(%rip),%rdi
mov    $0x67,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfed(%rip),%rdi
mov    $0x6d,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1004(%rip),%rdi
mov    $0x64,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1019(%rip),%rdi
mov    $0x6e,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1031(%rip),%rdi
mov    $0x73,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x104c(%rip),%rdi
mov    $0x76,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x107a(%rip),%rdi
mov    $0x63,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x108e(%rip),%rdi
mov    $0x6f,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a2(%rip),%rdi
mov    $0x75,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10bd(%rip),%rdi
mov    $0x70,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10ec(%rip),%rdi
mov    $0x6a,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x110d(%rip),%rdi
mov    $0x43,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1138(%rip),%rdi
mov    $0x4d,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x115c(%rip),%rdi
mov    $0x44,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x117b(%rip),%rdi
mov    $0x4e,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x119d(%rip),%rdi
mov    $0x45,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11bb(%rip),%rdi
mov    $0x41,%esi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<generic_usage>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x66,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf10(%rip),%rdi
mov    $0x46,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf2b(%rip),%rdi
mov    $0x47,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf45(%rip),%rdi
mov    $0x6c,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf6e(%rip),%rdi
mov    $0x79,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf80(%rip),%rdi
mov    $0x59,%esi
mov    $0x79,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf98(%rip),%rdi
mov    $0x31,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xfbb(%rip),%rdi
mov    $0x78,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xfd6(%rip),%rdi
mov    $0x67,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xff0(%rip),%rdi
mov    $0x6d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x1007(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x101c(%rip),%rdi
mov    $0x6e,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x1034(%rip),%rdi
mov    $0x73,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x104f(%rip),%rdi
mov    $0x76,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x107d(%rip),%rdi
mov    $0x63,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x1091(%rip),%rdi
mov    $0x6f,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x10a5(%rip),%rdi
mov    $0x75,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x10c0(%rip),%rdi
mov    $0x70,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x10ef(%rip),%rdi
mov    $0x6a,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x1110(%rip),%rdi
mov    $0x43,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x113b(%rip),%rdi
mov    $0x4d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x115f(%rip),%rdi
mov    $0x44,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x117e(%rip),%rdi
mov    $0x4e,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x11a0(%rip),%rdi
mov    $0x45,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x11be(%rip),%rdi
mov    $0x41,%esi
xor    %eax,%eax
pop    %rcx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [59 x i8] c"\09 -%c show fixed number of lines with system statistics\0A\00"
@.str.1 = [46 x i8] c"\09 -%c suppress sorting of system resources\0A\00"
@.str.2 = [45 x i8] c"\09 -%c suppress exited processes in output\0A\00"
@.str.3 = [60 x i8] c"\09 -%c show limited number of lines for certain resources\0A\00"
@.str.4 = [37 x i8] c"\09 -%c show threads within process\0A\00"
@.str.5 = [48 x i8] c"\09 -%c sort threads (when combined with '%c')\0A\00"
@.str.6 = [54 x i8] c"\09 -%c show average-per-second i.s.o. total values\0A\0A\00"
@.str.7 = [46 x i8] c"\09 -%c no colors in case of high occupation\0A\00"
@.str.8 = [45 x i8] c"\09 -%c show general process-info (default)\0A\00"
@.str.9 = [42 x i8] c"\09 -%c show memory-related process-info\0A\00"
@.str.10 = [40 x i8] c"\09 -%c show disk-related process-info\0A\00"
@.str.11 = [43 x i8] c"\09 -%c show network-related process-info\0A\00"
@.str.12 = [46 x i8] c"\09 -%c show scheduling-related process-info\0A\00"
@.str.13 = [65 x i8] c"\09 -%c show various process-info (ppid, user/group, date/time)\0A\00"
@.str.14 = [39 x i8] c"\09 -%c show command line per process\0A\00"
@.str.15 = [39 x i8] c"\09 -%c show own defined process-info\0A\00"
@.str.16 = [46 x i8] c"\09 -%c show cumulated process-info per user\0A\00"
@.str.17 = [66 x i8] c"\09 -%c show cumulated process-info per program (i.e. same name)\0A\00"
@.str.18 = [52 x i8] c"\09 -%c show cumulated process-info per container\0A\0A\00"
@.str.19 = [62 x i8] c"\09 -%c sort processes in order of cpu consumption (default)\0A\00"
@.str.20 = [55 x i8] c"\09 -%c sort processes in order of memory consumption\0A\00"
@.str.21 = [50 x i8] c"\09 -%c sort processes in order of disk activity\0A\00"
@.str.22 = [53 x i8] c"\09 -%c sort processes in order of network activity\0A\00"
@.str.23 = [49 x i8] c"\09 -%c sort processes in order of GPU activity\0A\00"
@.str.24 = [69 x i8] c"\09 -%c sort processes in order of most active resource (auto mode)\0A\00"
define void @generic_usage() {
%1 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), i8 signext 102)
%2 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0), i8 signext 70)
%3 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0), i8 signext 71)
%4 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0), i8 signext 108)
%5 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), i8 signext 121)
%6 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0), i8 signext 89, i32 121)
%7 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.6, i64 0, i64 0), i8 signext 49)
%8 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0), i8 signext 120)
%9 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0), i8 signext 103)
%10 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.9, i64 0, i64 0), i8 signext 109)
%11 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0), i8 signext 100)
%12 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0), i8 signext 110)
%13 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.12, i64 0, i64 0), i8 signext 115)
%14 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.13, i64 0, i64 0), i8 signext 118)
%15 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.14, i64 0, i64 0), i8 signext 99)
%16 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0), i8 signext 111)
%17 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.16, i64 0, i64 0), i8 signext 117)
%18 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.17, i64 0, i64 0), i8 signext 112)
%19 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.18, i64 0, i64 0), i8 signext 106)
%20 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.19, i64 0, i64 0), i8 signext 67)
%21 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.20, i64 0, i64 0), i8 signext 77)
%22 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.21, i64 0, i64 0), i8 signext 68)
%23 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.22, i64 0, i64 0), i8 signext 78)
%24 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.23, i64 0, i64 0), i8 signext 69)
%25 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.24, i64 0, i64 0), i8 signext 65)
ret void
}

LLVM IR (-O2):
@.str = [59 x i8] c"\09 -%c show fixed number of lines with system statistics\0A\00"
@.str.1 = [46 x i8] c"\09 -%c suppress sorting of system resources\0A\00"
@.str.2 = [45 x i8] c"\09 -%c suppress exited processes in output\0A\00"
@.str.3 = [60 x i8] c"\09 -%c show limited number of lines for certain resources\0A\00"
@.str.4 = [37 x i8] c"\09 -%c show threads within process\0A\00"
@.str.5 = [48 x i8] c"\09 -%c sort threads (when combined with '%c')\0A\00"
@.str.6 = [54 x i8] c"\09 -%c show average-per-second i.s.o. total values\0A\0A\00"
@.str.7 = [46 x i8] c"\09 -%c no colors in case of high occupation\0A\00"
@.str.8 = [45 x i8] c"\09 -%c show general process-info (default)\0A\00"
@.str.9 = [42 x i8] c"\09 -%c show memory-related process-info\0A\00"
@.str.10 = [40 x i8] c"\09 -%c show disk-related process-info\0A\00"
@.str.11 = [43 x i8] c"\09 -%c show network-related process-info\0A\00"
@.str.12 = [46 x i8] c"\09 -%c show scheduling-related process-info\0A\00"
@.str.13 = [65 x i8] c"\09 -%c show various process-info (ppid, user/group, date/time)\0A\00"
@.str.14 = [39 x i8] c"\09 -%c show command line per process\0A\00"
@.str.15 = [39 x i8] c"\09 -%c show own defined process-info\0A\00"
@.str.16 = [46 x i8] c"\09 -%c show cumulated process-info per user\0A\00"
@.str.17 = [66 x i8] c"\09 -%c show cumulated process-info per program (i.e. same name)\0A\00"
@.str.18 = [52 x i8] c"\09 -%c show cumulated process-info per container\0A\0A\00"
@.str.19 = [62 x i8] c"\09 -%c sort processes in order of cpu consumption (default)\0A\00"
@.str.20 = [55 x i8] c"\09 -%c sort processes in order of memory consumption\0A\00"
@.str.21 = [50 x i8] c"\09 -%c sort processes in order of disk activity\0A\00"
@.str.22 = [53 x i8] c"\09 -%c sort processes in order of network activity\0A\00"
@.str.23 = [49 x i8] c"\09 -%c sort processes in order of GPU activity\0A\00"
@.str.24 = [69 x i8] c"\09 -%c sort processes in order of most active resource (auto mode)\0A\00"
define void @generic_usage() {
%1 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), i8 signext 102)
%2 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0), i8 signext 70)
%3 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0), i8 signext 71)
%4 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0), i8 signext 108)
%5 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), i8 signext 121)
%6 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0), i8 signext 89, i32 121)
%7 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.6, i64 0, i64 0), i8 signext 49)
%8 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0), i8 signext 120)
%9 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0), i8 signext 103)
%10 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.9, i64 0, i64 0), i8 signext 109)
%11 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0), i8 signext 100)
%12 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0), i8 signext 110)
%13 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.12, i64 0, i64 0), i8 signext 115)
%14 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.13, i64 0, i64 0), i8 signext 118)
%15 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.14, i64 0, i64 0), i8 signext 99)
%16 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0), i8 signext 111)
%17 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.16, i64 0, i64 0), i8 signext 117)
%18 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.17, i64 0, i64 0), i8 signext 112)
%19 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.18, i64 0, i64 0), i8 signext 106)
%20 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.19, i64 0, i64 0), i8 signext 67)
%21 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.20, i64 0, i64 0), i8 signext 77)
%22 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.21, i64 0, i64 0), i8 signext 68)
%23 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.22, i64 0, i64 0), i8 signext 78)
%24 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.23, i64 0, i64 0), i8 signext 69)
%25 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.24, i64 0, i64 0), i8 signext 65)
ret void
}