#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                     # Get current SMT state\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\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 = [1416 x i8] c"Usage: ppc64_cpu [command] [options]\0Appc64_cpu --smt # Get current SMT state\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\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 ([1416 x i8], [1416 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [1415 x i8] c"Usage: ppc64_cpu [command] [options]\0Appc64_cpu --smt # Get current SMT state\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\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 ([1415 x i8], [1415 x i8]* @str, i64 0, i64 0))
ret void
}