#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*/ exit(int /*<<< orphan*/);
char *gettext(char *);
int /*<<< orphan*/ printf(char *);
void usage() {
  printf(gettext("Usage: powertop [OPTION...]\n"));
  printf(gettext("  -d, --dump            read wakeups once and print list of "
                 "top offenders\n"));
  printf(gettext(
      "  -t, --time=DOUBLE     default time to gather data in seconds\n"));
  printf(gettext("  -p, --pids            show pids in wakeups list\n"));
  printf(gettext("  -h, --help            Show this help message\n"));
  printf(
      gettext("  -v, --version         Show version information and exit\n"));
  exit(0);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xece(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf05(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf31(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf50(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf6c(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xec8(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xed1(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf08(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf34(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf53(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    0xf6f(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"Usage: powertop [OPTION...]\0A\00"
@.str.1 = [75 x i8] c" -d, --dump read wakeups once and print list of top offenders\0A\00"
@.str.2 = [64 x i8] c" -t, --time=DOUBLE default time to gather data in seconds\0A\00"
@.str.3 = [51 x i8] c" -p, --pids show pids in wakeups list\0A\00"
@.str.4 = [48 x i8] c" -h, --help Show this help message\0A\00"
@.str.5 = [59 x i8] c" -v, --version Show version information and exit\0A\00"
define void @usage() {
%1 = call i8* @gettext(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* %1)
%3 = call i8* @gettext(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* %3)
%5 = call i8* @gettext(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* %5)
%7 = call i8* @gettext(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @printf(i8* %7)
%9 = call i8* @gettext(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @printf(i8* %9)
%11 = call i8* @gettext(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 @printf(i8* %11)
%13 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [29 x i8] c"Usage: powertop [OPTION...]\0A\00"
@.str.1 = [75 x i8] c" -d, --dump read wakeups once and print list of top offenders\0A\00"
@.str.2 = [64 x i8] c" -t, --time=DOUBLE default time to gather data in seconds\0A\00"
@.str.3 = [51 x i8] c" -p, --pids show pids in wakeups list\0A\00"
@.str.4 = [48 x i8] c" -h, --help Show this help message\0A\00"
@.str.5 = [59 x i8] c" -v, --version Show version information and exit\0A\00"
define void @usage() {
%1 = tail call i8* @gettext(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) %1)
%3 = tail call i8* @gettext(i8* getelementptr inbounds ([75 x i8], [75 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 ([64 x i8], [64 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 ([51 x i8], [51 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 ([48 x i8], [48 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 ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) %11)
%13 = tail call i32 @exit(i32 0)
unreachable
}