#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*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stdout;
void help(char *program) {
  fprintf(
      stdout,
      "NAME\n"
      "       schedule - runs a program multiple times with a given scheduler\n"
      "\n"
      "SYNOPSIS\n"
      "       %s [-h] [-p] [-a] [-n processes] [-s scheduler] command ... "
      "args\n"
      "\n"
      "DESCRIPTION\n"
      "       Takes the path to an executable and forks a given number of\n"
      "       processes to run the executable simultaneously using a given\n"
      "       scheduler\n"
      "\n"
      "OPTIONS\n"
      "       -h      Display this message\n"
      "\n"
      "       -p      Pass the pid of the new process as the first argument.  "
      "If\n"
      "               given after -a this will override"
      "\n"
      "       -a      Pass the pid of the new process as the last argument.  "
      "If\n"
      "               given after -p this will override."
      "\n"
      "       -n processes\n"
      "               Sets the number of times to run the program."
      "\n"
      "       -s scheduler\n"
      "               Sets the scheduler used, the values are given below:\n"
      "\n"
      "                   0 = completely fair scheduler (CFS) (default)\n"
      "                   1 = real time first come first serve (FCFS)\n"
      "                   2 = real time round robin"
      "\n"
      "       -u username\n"
      "               Sets the username to drop into when run as root.\n"
      "\n"
      "       Any arguments given after the command (the program to execute) "
      "are\n"
      "       passed on to the child program.\n"
      "\n"
      "updated: Tuesday, March 31, 2015\n",
      program);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xed0(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [1189 x i8] c"NAME\0A schedule - runs a program multiple times with a given scheduler\0A\0ASYNOPSIS\0A %s [-h] [-p] [-a] [-n processes] [-s scheduler] command ... args\0A\0ADESCRIPTION\0A Takes the path to an executable and forks a given number of\0A processes to run the executable simultaneously using a given\0A scheduler\0A\0AOPTIONS\0A -h Display this message\0A\0A -p Pass the pid of the new process as the first argument. If\0A given after -a this will override\0A -a Pass the pid of the new process as the last argument. If\0A given after -p this will override.\0A -n processes\0A Sets the number of times to run the program.\0A -s scheduler\0A Sets the scheduler used, the values are given below:\0A\0A 0 = completely fair scheduler (CFS) (default)\0A 1 = real time first come first serve (FCFS)\0A 2 = real time round robin\0A -u username\0A Sets the username to drop into when run as root.\0A\0A Any arguments given after the command (the program to execute) are\0A passed on to the child program.\0A\0Aupdated: Tuesday, March 31, 2015\0A\00"
define void @help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stdout
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([1189 x i8], [1189 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [1189 x i8] c"NAME\0A schedule - runs a program multiple times with a given scheduler\0A\0ASYNOPSIS\0A %s [-h] [-p] [-a] [-n processes] [-s scheduler] command ... args\0A\0ADESCRIPTION\0A Takes the path to an executable and forks a given number of\0A processes to run the executable simultaneously using a given\0A scheduler\0A\0AOPTIONS\0A -h Display this message\0A\0A -p Pass the pid of the new process as the first argument. If\0A given after -a this will override\0A -a Pass the pid of the new process as the last argument. If\0A given after -p this will override.\0A -n processes\0A Sets the number of times to run the program.\0A -s scheduler\0A Sets the scheduler used, the values are given below:\0A\0A 0 = completely fair scheduler (CFS) (default)\0A 1 = real time first come first serve (FCFS)\0A 2 = real time round robin\0A -u username\0A Sets the username to drop into when run as root.\0A\0A Any arguments given after the command (the program to execute) are\0A passed on to the child program.\0A\0Aupdated: Tuesday, March 31, 2015\0A\00"
define void @help(i8* %0) {
%2 = load i32, i32* @stdout
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([1189 x i8], [1189 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}