#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);
int /*<<< orphan*/ printf(char *, ...);
void helpMe(const char *programname, int rc) {
  printf("Usage:\t%s [options] [inputfile]\n\n", programname);
  printf(
      "Optional arguments:\n"
      " -d\tIncrease debug mode.\n"
      " -s fn\tProtocol anything to given status file, default stdout.\n"
      " -R fn\tRecords progress into the given file, see also "
      "SEQEXEC_PROGRESS_REPORT.\n"
      " -S ec\tMulti-option: Mark non-zero exit-code ec as success.\n"
      " -n nr\tNumber of CPUs to use, defaults to 1, string 'auto' permitted.\n"
      " input\tFile with list of applications and args to execute, default "
      "stdin.\n\n"
      "Execution control and exit code:\n"
      "\tExecute everything but return success only if all were successful.\n"
      " -e\tExecute everything (old default mode) and always return success.\n"
      " -f\tFail hard on first error (non-zero exit code or signal death).\n"
      "\tOption -e and -f are mutually exclusive.\n");
  exit(rc);
}


x86 assembly (clang, -O0):
<helpMe>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<helpMe>:
push   %rbx
mov    %esi,%ebx
mov    %rdi,%rsi
lea    0xec3(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed7(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"Usage:\09%s [options] [inputfile]\0A\0A\00"
@.str.1 = [672 x i8] c"Optional arguments:\0A -d\09Increase debug mode.\0A -s fn\09Protocol anything to given status file, default stdout.\0A -R fn\09Records progress into the given file, see also SEQEXEC_PROGRESS_REPORT.\0A -S ec\09Multi-option: Mark non-zero exit-code ec as success.\0A -n nr\09Number of CPUs to use, defaults to 1, string 'auto' permitted.\0A input\09File with list of applications and args to execute, default stdin.\0A\0AExecution control and exit code:\0A\09Execute everything but return success only if all were successful.\0A -e\09Execute everything (old default mode) and always return success.\0A -f\09Fail hard on first error (non-zero exit code or signal death).\0A\09Option -e and -f are mutually exclusive.\0A\00"
define void @helpMe(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([672 x i8], [672 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* %4
%9 = call i32 @exit(i32 %8)
unreachable
}

LLVM IR (-O2):
@.str = [34 x i8] c"Usage:\09%s [options] [inputfile]\0A\0A\00"
@str = [671 x i8] c"Optional arguments:\0A -d\09Increase debug mode.\0A -s fn\09Protocol anything to given status file, default stdout.\0A -R fn\09Records progress into the given file, see also SEQEXEC_PROGRESS_REPORT.\0A -S ec\09Multi-option: Mark non-zero exit-code ec as success.\0A -n nr\09Number of CPUs to use, defaults to 1, string 'auto' permitted.\0A input\09File with list of applications and args to execute, default stdin.\0A\0AExecution control and exit code:\0A\09Execute everything but return success only if all were successful.\0A -e\09Execute everything (old default mode) and always return success.\0A -f\09Fail hard on first error (non-zero exit code or signal death).\0A\09Option -e and -f are mutually exclusive.\00"
define void @helpMe(i8* %0, i32 %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([671 x i8], [671 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @exit(i32 %1)
unreachable
}