#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 *, char const *);
int /*<<< orphan*/ stderr;
void usage(const char *prog) {
  fprintf(
      stderr,
      "Usage: %s [OPTONS]\n -h, --help           Display this message\n -l, "
      "--list-users     List current jobs using overcommit-memory plugin.\n "
      "-c, --cleanup        Cleanup any overcommit-memory usage by a SLURM "
      "job.\n                       SLURM_JOBID and SLURM_STEPID should be set "
      "in current\n                       environment. Removes shared memory "
      "file and resets\n                       overcommit_memory to default if "
      "no more references\n                       to overcommit-memory "
      "exist.\n -f, --force-reset    Force total cleanup of overcommit-memory "
      "state. Reset\n                       overcommit_memory setting to "
      "default and remove\n                       overcommit shared file.\n "
      "-j, --jobid=ID       Specify SLURM jobid to clean up after if "
      "SLURM_JOBID\n                       not set in environment\n",
      prog);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xed0(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [800 x i8] c"Usage: %s [OPTONS]\0A -h, --help Display this message\0A -l, --list-users List current jobs using overcommit-memory plugin.\0A -c, --cleanup Cleanup any overcommit-memory usage by a SLURM job.\0A SLURM_JOBID and SLURM_STEPID should be set in current\0A environment. Removes shared memory file and resets\0A overcommit_memory to default if no more references\0A to overcommit-memory exist.\0A -f, --force-reset Force total cleanup of overcommit-memory state. Reset\0A overcommit_memory setting to default and remove\0A overcommit shared file.\0A -j, --jobid=ID Specify SLURM jobid to clean up after if SLURM_JOBID\0A not set in environment\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([800 x i8], [800 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [800 x i8] c"Usage: %s [OPTONS]\0A -h, --help Display this message\0A -l, --list-users List current jobs using overcommit-memory plugin.\0A -c, --cleanup Cleanup any overcommit-memory usage by a SLURM job.\0A SLURM_JOBID and SLURM_STEPID should be set in current\0A environment. Removes shared memory file and resets\0A overcommit_memory to default if no more references\0A to overcommit-memory exist.\0A -f, --force-reset Force total cleanup of overcommit-memory state. Reset\0A overcommit_memory setting to default and remove\0A overcommit shared file.\0A -j, --jobid=ID Specify SLURM jobid to clean up after if SLURM_JOBID\0A not set in environment\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([800 x i8], [800 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}