#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 */
char *gettext(char *);
int /*<<< orphan*/ printf(char *);
void print_help(void) {
  printf(gettext("Usage: cpufreq-set [options]\n"));
  printf(gettext("Options:\n"));
  printf(gettext("  -c CPU, --cpu CPU        number of CPU where cpufreq "
                 "settings shall be modified\n"));
  printf(gettext("  -d FREQ, --min FREQ      new minimum CPU frequency the "
                 "governor may select\n"));
  printf(gettext("  -u FREQ, --max FREQ      new maximum CPU frequency the "
                 "governor may select\n"));
  printf(gettext("  -g GOV, --governor GOV   new cpufreq governor\n"));
  printf(gettext(
      "  -f FREQ, --freq FREQ     specific frequency to be set. Requires "
      "userspace\n"
      "                           governor to be available and loaded\n"));
  printf(gettext(
      "  -r, --related            Switches all hardware-related CPUs\n"));
  printf(gettext("  -h, --help               Prints out this screen\n"));
  printf("\n");
  printf(gettext(
      "Notes:\n"
      "1. Omitting the -c or --cpu argument is equivalent to setting it to "
      "zero\n"
      "2. The -f FREQ, --freq FREQ parameter cannot be combined with any other "
      "parameter\n"
      "   except the -c CPU, --cpu CPU parameter\n"
      "3. FREQuencies can be passed in Hz, kHz (default), MHz, GHz, or THz\n"
      "   by postfixing the value with the wanted unit name, without any "
      "space\n"
      "   (FREQuency in kHz =^ Hz * 0.001 =^ MHz * 1000 =^ GHz * 1000000).\n"));
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xedf(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xed5(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf14(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf4e(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf88(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xfa5(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0x101d(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0x1048(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0x1202(%rip),%rdi
call   1040 <printf@plt>
lea    0x105b(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
call   1050 <printf@plt>
lea    0xed2(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
call   1050 <printf@plt>
lea    0xec8(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
call   1050 <printf@plt>
lea    0xf07(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
call   1050 <printf@plt>
lea    0xf41(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
call   1050 <printf@plt>
lea    0xf7b(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
call   1050 <printf@plt>
lea    0xf98(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
call   1050 <printf@plt>
lea    0x1010(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
call   1050 <printf@plt>
lea    0x103b(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1050(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
pop    %rax
jmp    1050 <printf@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"Usage: cpufreq-set [options]\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [83 x i8] c" -c CPU, --cpu CPU number of CPU where cpufreq settings shall be modified\0A\00"
@.str.3 = [78 x i8] c" -d FREQ, --min FREQ new minimum CPU frequency the governor may select\0A\00"
@.str.4 = [78 x i8] c" -u FREQ, --max FREQ new maximum CPU frequency the governor may select\0A\00"
@.str.5 = [49 x i8] c" -g GOV, --governor GOV new cpufreq governor\0A\00"
@.str.6 = [140 x i8] c" -f FREQ, --freq FREQ specific frequency to be set. Requires userspace\0A governor to be available and loaded\0A\00"
@.str.7 = [63 x i8] c" -r, --related Switches all hardware-related CPUs\0A\00"
@.str.8 = [51 x i8] c" -h, --help Prints out this screen\0A\00"
@.str.9 = [2 x i8] c"\0A\00"
@.str.10 = [413 x i8] c"Notes:\0A1. Omitting the -c or --cpu argument is equivalent to setting it to zero\0A2. The -f FREQ, --freq FREQ parameter cannot be combined with any other parameter\0A except the -c CPU, --cpu CPU parameter\0A3. FREQuencies can be passed in Hz, kHz (default), MHz, GHz, or THz\0A by postfixing the value with the wanted unit name, without any space\0A (FREQuency in kHz =^ Hz * 0.001 =^ MHz * 1000 =^ GHz * 1000000).\0A\00"
define void @print_help() {
%1 = call i8* @gettext(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* %1)
%3 = call i8* @gettext(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* %3)
%5 = call i8* @gettext(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* %5)
%7 = call i8* @gettext(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @printf(i8* %7)
%9 = call i8* @gettext(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @printf(i8* %9)
%11 = call i8* @gettext(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 @printf(i8* %11)
%13 = call i8* @gettext(i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.6, i64 0, i64 0))
%14 = call i32 @printf(i8* %13)
%15 = call i8* @gettext(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.7, i64 0, i64 0))
%16 = call i32 @printf(i8* %15)
%17 = call i8* @gettext(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
%18 = call i32 @printf(i8* %17)
%19 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%20 = call i8* @gettext(i8* getelementptr inbounds ([413 x i8], [413 x i8]* @.str.10, i64 0, i64 0))
%21 = call i32 @printf(i8* %20)
ret void
}

LLVM IR (-O2):
@.str = [30 x i8] c"Usage: cpufreq-set [options]\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [83 x i8] c" -c CPU, --cpu CPU number of CPU where cpufreq settings shall be modified\0A\00"
@.str.3 = [78 x i8] c" -d FREQ, --min FREQ new minimum CPU frequency the governor may select\0A\00"
@.str.4 = [78 x i8] c" -u FREQ, --max FREQ new maximum CPU frequency the governor may select\0A\00"
@.str.5 = [49 x i8] c" -g GOV, --governor GOV new cpufreq governor\0A\00"
@.str.6 = [140 x i8] c" -f FREQ, --freq FREQ specific frequency to be set. Requires userspace\0A governor to be available and loaded\0A\00"
@.str.7 = [63 x i8] c" -r, --related Switches all hardware-related CPUs\0A\00"
@.str.8 = [51 x i8] c" -h, --help Prints out this screen\0A\00"
@.str.10 = [413 x i8] c"Notes:\0A1. Omitting the -c or --cpu argument is equivalent to setting it to zero\0A2. The -f FREQ, --freq FREQ parameter cannot be combined with any other parameter\0A except the -c CPU, --cpu CPU parameter\0A3. FREQuencies can be passed in Hz, kHz (default), MHz, GHz, or THz\0A by postfixing the value with the wanted unit name, without any space\0A (FREQuency in kHz =^ Hz * 0.001 =^ MHz * 1000 =^ GHz * 1000000).\0A\00"
define void @print_help() {
%1 = tail call i8* @gettext(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) %1)
%3 = tail call i8* @gettext(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) %3)
%5 = tail call i8* @gettext(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) %5)
%7 = tail call i8* @gettext(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) %7)
%9 = tail call i8* @gettext(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 @printf(i8* dereferenceable(1) %9)
%11 = tail call i8* @gettext(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) %11)
%13 = tail call i8* @gettext(i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.6, i64 0, i64 0))
%14 = tail call i32 @printf(i8* dereferenceable(1) %13)
%15 = tail call i8* @gettext(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.7, i64 0, i64 0))
%16 = tail call i32 @printf(i8* dereferenceable(1) %15)
%17 = tail call i8* @gettext(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
%18 = tail call i32 @printf(i8* dereferenceable(1) %17)
%19 = tail call i32 @putchar(i32 10)
%20 = tail call i8* @gettext(i8* getelementptr inbounds ([413 x i8], [413 x i8]* @.str.10, i64 0, i64 0))
%21 = tail call i32 @printf(i8* dereferenceable(1) %20)
ret void
}