#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 print_help(void) {
  printf("Usage: cpufreq-set [options]\n");
  printf("Options:\n");
  printf("  -c CPU, --cpu CPU        number of CPU where cpufreq settings "
         "shall be modified\n");
  printf("  -d FREQ, --min FREQ      new minimum CPU frequency the governor "
         "may select\n");
  printf("  -u FREQ, --max FREQ      new maximum CPU frequency the governor "
         "may select\n");
  printf("  -g GOV, --governor GOV   new cpufreq governor\n");
  printf("  -f FREQ, --freq FREQ     specific frequency to be set. Requires "
         "userspace\n"
         "                           governor to be available and loaded\n");
  printf("  -r, --related            Switches all hardware-related CPUs\n");
  printf("  -h, --help               Prints out this screen\n");
  printf("\n");
  printf(
      "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    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef7(%rip),%rdi
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7e(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc0(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe5(%rip),%rdi
call   1030 <printf@plt>
lea    0x1065(%rip),%rdi
call   1030 <printf@plt>
lea    0x1098(%rip),%rdi
call   1030 <printf@plt>
lea    0x125a(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b3(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xee9(%rip),%rdi
call   1040 <puts@plt>
lea    0xee6(%rip),%rdi
call   1040 <puts@plt>
lea    0xf2c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf6d(%rip),%rdi
call   1040 <puts@plt>
lea    0xfae(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd2(%rip),%rdi
call   1040 <puts@plt>
lea    0x1051(%rip),%rdi
call   1040 <puts@plt>
lea    0x1083(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x109f(%rip),%rdi
pop    %rax
jmp    1040 <puts@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 i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([413 x i8], [413 x i8]* @.str.10, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [29 x i8] c"Usage: cpufreq-set [options]\00"
@str.11 = [9 x i8] c"Options:\00"
@str.12 = [82 x i8] c" -c CPU, --cpu CPU number of CPU where cpufreq settings shall be modified\00"
@str.13 = [77 x i8] c" -d FREQ, --min FREQ new minimum CPU frequency the governor may select\00"
@str.14 = [77 x i8] c" -u FREQ, --max FREQ new maximum CPU frequency the governor may select\00"
@str.15 = [48 x i8] c" -g GOV, --governor GOV new cpufreq governor\00"
@str.16 = [139 x i8] c" -f FREQ, --freq FREQ specific frequency to be set. Requires userspace\0A governor to be available and loaded\00"
@str.17 = [62 x i8] c" -r, --related Switches all hardware-related CPUs\00"
@str.18 = [50 x i8] c" -h, --help Prints out this screen\00"
@str.19 = [412 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).\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.11, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.12, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([139 x i8], [139 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @putchar(i32 10)
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([412 x i8], [412 x i8]* @str.19, i64 0, i64 0))
ret void
}