#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 help(void) {
  printf("PowerNow Daemon v%s, (c) 2003-2008 John Clemens\n", "1.00");
  printf("Daemon to control the speed and voltage of cpus.\n\n");
  printf("This is a simple client to the CPUFreq driver, and uses\n");
  printf("linux kernel v2.5+ sysfs interface.  You need a supported\n");
  printf("cpu, and a kernel that supports sysfs to run this daemon.\n");
  printf("\nAvailable Options:\n");
  printf(" 	-h	Print this help message\n");
  printf("	-d	Don't detach from terminal (default is to\n");
  printf("		detach and run in the background)\n");
  printf(
      "	-v	Increase output verbosity, can be used more than once.\n");
  printf("	-q	Quiet mode, only emergency output.\n");
  printf("	-n	Include 'nice'd processes in calculations\n");
  printf("	-m #	Modes of operation, can be 0, 1, 2, or 3:\n");
  printf("		0 = SINE, 1 = AGGRESSIVE (default),\n");
  printf("		2 = PASSIVE, 3 = LEAPS\n");
  printf("	-s #	Frequency step in kHz (default = 100000)\n");
  printf("	-p #	Polling frequency in msecs (default = 1000)\n");
  printf("	-c #	Specify number of threads per power-managed core\n");
  printf(
      "	-u #	CPU usage upper limit percentage [0 .. 100, default 80]\n");
  printf(
      "	-l #    CPU usage lower limit percentage [0 .. 100, default 20]\n");
  printf("\n");
  return;
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xf0f(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf56(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfe8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x102d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1047(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1068(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x108b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10b0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10d2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10f7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1121(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1152(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe2d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xef2(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xee9(%rip),%rdi
call   1040 <puts@plt>
lea    0xf0f(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3b(%rip),%rdi
call   1040 <puts@plt>
lea    0xf69(%rip),%rdi
call   1040 <puts@plt>
lea    0xf97(%rip),%rdi
call   1040 <puts@plt>
lea    0xf9f(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb0(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd2(%rip),%rdi
call   1040 <puts@plt>
lea    0xfea(%rip),%rdi
call   1040 <puts@plt>
lea    0x1019(%rip),%rdi
call   1040 <puts@plt>
lea    0x1034(%rip),%rdi
call   1040 <puts@plt>
lea    0x1056(%rip),%rdi
call   1040 <puts@plt>
lea    0x107a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1094(%rip),%rdi
call   1040 <puts@plt>
lea    0x10a1(%rip),%rdi
call   1040 <puts@plt>
lea    0x10c4(%rip),%rdi
call   1040 <puts@plt>
lea    0x10ea(%rip),%rdi
call   1040 <puts@plt>
lea    0x1115(%rip),%rdi
call   1040 <puts@plt>
lea    0x1147(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [49 x i8] c"PowerNow Daemon v%s, (c) 2003-2008 John Clemens\0A\00"
@.str.1 = [5 x i8] c"1.00\00"
@.str.2 = [51 x i8] c"Daemon to control the speed and voltage of cpus.\0A\0A\00"
@.str.3 = [57 x i8] c"This is a simple client to the CPUFreq driver, and uses\0A\00"
@.str.4 = [59 x i8] c"linux kernel v2.5+ sysfs interface. You need a supported\0A\00"
@.str.5 = [59 x i8] c"cpu, and a kernel that supports sysfs to run this daemon.\0A\00"
@.str.6 = [21 x i8] c"\0AAvailable Options:\0A\00"
@.str.7 = [30 x i8] c" \09-h\09Print this help message\0A\00"
@.str.8 = [47 x i8] c"\09-d\09Don't detach from terminal (default is to\0A\00"
@.str.9 = [37 x i8] c"\09\09detach and run in the background)\0A\00"
@.str.10 = [60 x i8] c"\09-v\09Increase output verbosity, can be used more than once.\0A\00"
@.str.11 = [40 x i8] c"\09-q\09Quiet mode, only emergency output.\0A\00"
@.str.12 = [47 x i8] c"\09-n\09Include 'nice'd processes in calculations\0A\00"
@.str.13 = [49 x i8] c"\09-m #\09Modes of operation, can be 0, 1, 2, or 3:\0A\00"
@.str.14 = [39 x i8] c"\09\090 = SINE, 1 = AGGRESSIVE (default),\0A\00"
@.str.15 = [26 x i8] c"\09\092 = PASSIVE, 3 = LEAPS\0A\00"
@.str.16 = [48 x i8] c"\09-s #\09Frequency step in kHz (default = 100000)\0A\00"
@.str.17 = [51 x i8] c"\09-p #\09Polling frequency in msecs (default = 1000)\0A\00"
@.str.18 = [56 x i8] c"\09-c #\09Specify number of threads per power-managed core\0A\00"
@.str.19 = [63 x i8] c"\09-u #\09CPU usage upper limit percentage [0 .. 100, default 80]\0A\00"
@.str.20 = [66 x i8] c"\09-l # CPU usage lower limit percentage [0 .. 100, default 20]\0A\00"
@.str.21 = [2 x i8] c"\0A\00"
define void @help() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.8, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.10, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.11, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.12, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.14, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.16, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.17, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.18, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.19, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.20, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [49 x i8] c"PowerNow Daemon v%s, (c) 2003-2008 John Clemens\0A\00"
@.str.1 = [5 x i8] c"1.00\00"
@str = [50 x i8] c"Daemon to control the speed and voltage of cpus.\0A\00"
@str.22 = [56 x i8] c"This is a simple client to the CPUFreq driver, and uses\00"
@str.23 = [58 x i8] c"linux kernel v2.5+ sysfs interface. You need a supported\00"
@str.24 = [58 x i8] c"cpu, and a kernel that supports sysfs to run this daemon.\00"
@str.25 = [20 x i8] c"\0AAvailable Options:\00"
@str.26 = [29 x i8] c" \09-h\09Print this help message\00"
@str.27 = [46 x i8] c"\09-d\09Don't detach from terminal (default is to\00"
@str.28 = [36 x i8] c"\09\09detach and run in the background)\00"
@str.29 = [59 x i8] c"\09-v\09Increase output verbosity, can be used more than once.\00"
@str.30 = [39 x i8] c"\09-q\09Quiet mode, only emergency output.\00"
@str.31 = [46 x i8] c"\09-n\09Include 'nice'd processes in calculations\00"
@str.32 = [48 x i8] c"\09-m #\09Modes of operation, can be 0, 1, 2, or 3:\00"
@str.33 = [38 x i8] c"\09\090 = SINE, 1 = AGGRESSIVE (default),\00"
@str.34 = [25 x i8] c"\09\092 = PASSIVE, 3 = LEAPS\00"
@str.35 = [47 x i8] c"\09-s #\09Frequency step in kHz (default = 100000)\00"
@str.36 = [50 x i8] c"\09-p #\09Polling frequency in msecs (default = 1000)\00"
@str.37 = [55 x i8] c"\09-c #\09Specify number of threads per power-managed core\00"
@str.38 = [62 x i8] c"\09-u #\09CPU usage upper limit percentage [0 .. 100, default 80]\00"
@str.39 = [65 x i8] c"\09-l # CPU usage lower limit percentage [0 .. 100, default 20]\00"
define void @help() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.22, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.23, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.24, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.25, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.26, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.27, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.28, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.29, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.30, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.31, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.32, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.33, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.34, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.35, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.36, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.37, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.38, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.39, i64 0, i64 0))
%21 = tail call i32 @putchar(i32 10)
ret void
}