#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 usage(void) {
  printf(
      "Usage: ppc64_cpu [command] [options]\n"
      "ppc64_cpu --smt [-n]                # Get current SMT state. [-n] shows "
      "numeric output\n"
      "ppc64_cpu --smt={on|off}            # Turn SMT on/off\n"
      "ppc64_cpu --smt=X                   # Set SMT state to X\n\n"
      "ppc64_cpu --cores-present           # Get the number of cores present\n"
      "ppc64_cpu --cores-on                # Get the number of cores currently "
      "online\n"
      "ppc64_cpu --cores-on=X              # Put exactly X cores online\n"
      "ppc64_cpu --cores-on=all            # Put all cores online\n\n"
      "ppc64_cpu --online-cores=X[,Y...]   # Put specified cores online\n\n"
      "ppc64_cpu --offline-cores=X[,Y,...] # Put specified cores offline\n\n"
      "ppc64_cpu --dscr                    # Get current DSCR system setting\n"
      "ppc64_cpu --dscr=<val>              # Change DSCR system setting\n"
      "ppc64_cpu --dscr [-p <pid>]         # Get DSCR setting for process "
      "<pid>\n"
      "ppc64_cpu --dscr=<val> [-p <pid>]   # Change DSCR setting for process "
      "<pid>\n\n"
      "ppc64_cpu --smt-snooze-delay        # Get current smt-snooze-delay "
      "setting\n"
      "ppc64_cpu --smt-snooze-delay=<val>  # Change smt-snooze-delay "
      "setting\n\n"
      "ppc64_cpu --run-mode                # Get current diagnostics run mode\n"
      "ppc64_cpu --run-mode=<val>          # Set current diagnostics run "
      "mode\n\n"
      "ppc64_cpu --frequency [-t <time>]   # Determine cpu frequency for "
      "<time>\n"
      "                                    # seconds, default is 1 second.\n\n"
      "ppc64_cpu --subcores-per-core       # Get number of subcores per core\n"
      "ppc64_cpu --subcores-per-core=X     # Set subcores per core to X (1 or "
      "4)\n"
      "ppc64_cpu --threads-per-core        # Get threads per core\n"
      "ppc64_cpu --info                    # Display system state "
      "information)\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [1635 x i8] c"Usage: ppc64_cpu [command] [options]\0Appc64_cpu --smt [-n] # Get current SMT state. [-n] shows numeric output\0Appc64_cpu --smt={on|off} # Turn SMT on/off\0Appc64_cpu --smt=X # Set SMT state to X\0A\0Appc64_cpu --cores-present # Get the number of cores present\0Appc64_cpu --cores-on # Get the number of cores currently online\0Appc64_cpu --cores-on=X # Put exactly X cores online\0Appc64_cpu --cores-on=all # Put all cores online\0A\0Appc64_cpu --online-cores=X[,Y...] # Put specified cores online\0A\0Appc64_cpu --offline-cores=X[,Y,...] # Put specified cores offline\0A\0Appc64_cpu --dscr # Get current DSCR system setting\0Appc64_cpu --dscr=<val> # Change DSCR system setting\0Appc64_cpu --dscr [-p <pid>] # Get DSCR setting for process <pid>\0Appc64_cpu --dscr=<val> [-p <pid>] # Change DSCR setting for process <pid>\0A\0Appc64_cpu --smt-snooze-delay # Get current smt-snooze-delay setting\0Appc64_cpu --smt-snooze-delay=<val> # Change smt-snooze-delay setting\0A\0Appc64_cpu --run-mode # Get current diagnostics run mode\0Appc64_cpu --run-mode=<val> # Set current diagnostics run mode\0A\0Appc64_cpu --frequency [-t <time>] # Determine cpu frequency for <time>\0A # seconds, default is 1 second.\0A\0Appc64_cpu --subcores-per-core # Get number of subcores per core\0Appc64_cpu --subcores-per-core=X # Set subcores per core to X (1 or 4)\0Appc64_cpu --threads-per-core # Get threads per core\0Appc64_cpu --info # Display system state information)\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([1635 x i8], [1635 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [1634 x i8] c"Usage: ppc64_cpu [command] [options]\0Appc64_cpu --smt [-n] # Get current SMT state. [-n] shows numeric output\0Appc64_cpu --smt={on|off} # Turn SMT on/off\0Appc64_cpu --smt=X # Set SMT state to X\0A\0Appc64_cpu --cores-present # Get the number of cores present\0Appc64_cpu --cores-on # Get the number of cores currently online\0Appc64_cpu --cores-on=X # Put exactly X cores online\0Appc64_cpu --cores-on=all # Put all cores online\0A\0Appc64_cpu --online-cores=X[,Y...] # Put specified cores online\0A\0Appc64_cpu --offline-cores=X[,Y,...] # Put specified cores offline\0A\0Appc64_cpu --dscr # Get current DSCR system setting\0Appc64_cpu --dscr=<val> # Change DSCR system setting\0Appc64_cpu --dscr [-p <pid>] # Get DSCR setting for process <pid>\0Appc64_cpu --dscr=<val> [-p <pid>] # Change DSCR setting for process <pid>\0A\0Appc64_cpu --smt-snooze-delay # Get current smt-snooze-delay setting\0Appc64_cpu --smt-snooze-delay=<val> # Change smt-snooze-delay setting\0A\0Appc64_cpu --run-mode # Get current diagnostics run mode\0Appc64_cpu --run-mode=<val> # Set current diagnostics run mode\0A\0Appc64_cpu --frequency [-t <time>] # Determine cpu frequency for <time>\0A # seconds, default is 1 second.\0A\0Appc64_cpu --subcores-per-core # Get number of subcores per core\0Appc64_cpu --subcores-per-core=X # Set subcores per core to X (1 or 4)\0Appc64_cpu --threads-per-core # Get threads per core\0Appc64_cpu --info # Display system state information)\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([1634 x i8], [1634 x i8]* @str, i64 0, i64 0))
ret void
}