#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*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void UsageDie(void) {
  fprintf(stderr, "\n%s V1.0 (c) 2015 UCL, Dr. Andrew C.R. Martin\n", "simq");
  fprintf(stderr, "\n");
  fprintf(stderr, "Usage:   %s [-v[v...]] [-p polltime] -run queuedir\n",
          "simq");
  fprintf(
      stderr,
      "         %s [-v[v...]] [-w maxwait] queuedir program [parameters ...]\n",
      "simq");
  fprintf(stderr, "         %s -l queuedir\n", "simq");
  fprintf(stderr, "         %s -i jobID queuedir\n", "simq");
  fprintf(stderr, "\n         -v   Verbose mode (-vv, -vvv more info)\n");
  fprintf(stderr,
          "         -p   Specify the wait in seconds between polling for jobs "
          "[%d]\n",
          10);
  fprintf(stderr,
          "         -w   Specify maximum wait time when trying to submit a job "
          "[%d]\n",
          60);
  fprintf(stderr, "         -i   Gives a countdown until specified job runs\n");
  fprintf(stderr, "         -l   List number of waiting jobs\n");
  fprintf(stderr, "         -run Run in daemon mode to wait for jobs\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "%s is a simple program batch queueing system. It simply\n",
          "simq");
  fprintf(stderr, "places jobs in a queue by placing the command in a file "
                  "that lives in\n");
  fprintf(stderr, "the 'queuedir' directory. The queue manager then pulls jobs "
                  "off one at\n");
  fprintf(stderr, "a time and runs them.\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Note that 'queuedir' must be a full path name.\n");
  fprintf(stderr, "\n");
  fprintf(stderr,
          "It should be run first and backgrounded with the -run flag. e.g.\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "    nohup nice -10 %s -run /var/tmp/queue1 &\n", "simq");
  fprintf(stderr, "\n");
  fprintf(stderr, "The queue directory ('queuedir') will be created if it does "
                  "not exist,\n");
  fprintf(stderr,
          "but you may need to change the permissions to allow the person\n");
  fprintf(stderr,
          "submitting a job (perhaps apache) to write to that directory.\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "To submit a job, run %s as, for example:\n", "simq");
  fprintf(stderr, "\n");
  fprintf(stderr, "   %s /var/tmp/queue1 myprogram param1 param2 \n", "simq");
  fprintf(stderr, "\n");
  exit(0);
}


x86 assembly (clang, -O0):
<UsageDie>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
lea    0xef4(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%edi
lea    0x1391(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
lea    0xecb(%rip),%rsi
lea    0xebf(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e62(%rip),%rax
mov    (%rax),%edi
lea    0xee1(%rip),%rsi
lea    0xea1(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e44(%rip),%rax
mov    (%rax),%edi
lea    0xf0a(%rip),%rsi
lea    0xe83(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e26(%rip),%rax
mov    (%rax),%edi
lea    0xf05(%rip),%rsi
lea    0xe65(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
lea    0xf06(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2df1(%rip),%rax
mov    (%rax),%edi
lea    0xf22(%rip),%rsi
mov    $0xa,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dd5(%rip),%rax
mov    (%rax),%edi
lea    0xf4f(%rip),%rsi
mov    $0x3c,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2db9(%rip),%rax
mov    (%rax),%edi
lea    0xf7d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2da2(%rip),%rax
mov    (%rax),%edi
lea    0xfa0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d8b(%rip),%rax
mov    (%rax),%edi
lea    0xfb4(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d74(%rip),%rax
mov    (%rax),%edi
lea    0x126e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d5d(%rip),%rax
mov    (%rax),%edi
lea    0xfb9(%rip),%rsi
lea    0xd9c(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d3f(%rip),%rax
mov    (%rax),%edi
lea    0xfd4(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d28(%rip),%rax
mov    (%rax),%edi
lea    0x1004(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d11(%rip),%rax
mov    (%rax),%edi
lea    0x1035(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2cfa(%rip),%rax
mov    (%rax),%edi
lea    0x11f4(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2ce3(%rip),%rax
mov    (%rax),%edi
lea    0x101e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2ccc(%rip),%rax
mov    (%rax),%edi
lea    0x11c6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2cb5(%rip),%rax
mov    (%rax),%edi
lea    0x1020(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c9e(%rip),%rax
mov    (%rax),%edi
lea    0x1198(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c87(%rip),%rax
mov    (%rax),%edi
lea    0x1034(%rip),%rsi
lea    0xcc6(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c69(%rip),%rax
mov    (%rax),%edi
lea    0x1163(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c52(%rip),%rax
mov    (%rax),%edi
lea    0x102d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c3b(%rip),%rax
mov    (%rax),%edi
lea    0x105e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c24(%rip),%rax
mov    (%rax),%edi
lea    0x1087(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c0d(%rip),%rax
mov    (%rax),%edi
lea    0x1107(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2bf6(%rip),%rax
mov    (%rax),%edi
lea    0x1098(%rip),%rsi
lea    0xc35(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2bd8(%rip),%rax
mov    (%rax),%edi
lea    0x10d2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2bc1(%rip),%rax
mov    (%rax),%edi
lea    0x108d(%rip),%rsi
lea    0xc00(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2ba3(%rip),%rax
mov    (%rax),%edi
lea    0x109d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<UsageDie>:
push   %r15
push   %r14
push   %rbx
mov    0x2eb4(%rip),%rbx
mov    (%rbx),%edi
lea    0xecb(%rip),%rsi
lea    0xef3(%rip),%r14
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1394(%rip),%r15
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xed2(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xef3(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf27(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf2d(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf39(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf5c(%rip),%rsi
mov    $0xa,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf90(%rip),%rsi
mov    $0x3c,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfc5(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfef(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x100a(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1021(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1047(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x107e(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10b6(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10b1(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10c5(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10eb(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10fa(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1132(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1162(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1185(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1190(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [47 x i8] c"\0A%s V1.0 (c) 2015 UCL, Dr. Andrew C.R. Martin\0A\00"
@.str.1 = [5 x i8] c"simq\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [52 x i8] c"Usage: %s [-v[v...]] [-p polltime] -run queuedir\0A\00"
@.str.4 = [71 x i8] c" %s [-v[v...]] [-w maxwait] queuedir program [parameters ...]\0A\00"
@.str.5 = [25 x i8] c" %s -l queuedir\0A\00"
@.str.6 = [31 x i8] c" %s -i jobID queuedir\0A\00"
@.str.7 = [51 x i8] c"\0A -v Verbose mode (-vv, -vvv more info)\0A\00"
@.str.8 = [73 x i8] c" -p Specify the wait in seconds between polling for jobs [%d]\0A\00"
@.str.9 = [74 x i8] c" -w Specify maximum wait time when trying to submit a job [%d]\0A\00"
@.str.10 = [58 x i8] c" -i Gives a countdown until specified job runs\0A\00"
@.str.11 = [43 x i8] c" -l List number of waiting jobs\0A\00"
@.str.12 = [51 x i8] c" -run Run in daemon mode to wait for jobs\0A\00"
@.str.13 = [57 x i8] c"%s is a simple program batch queueing system. It simply\0A\00"
@.str.14 = [71 x i8] c"places jobs in a queue by placing the command in a file that lives in\0A\00"
@.str.15 = [72 x i8] c"the 'queuedir' directory. The queue manager then pulls jobs off one at\0A\00"
@.str.16 = [23 x i8] c"a time and runs them.\0A\00"
@.str.17 = [48 x i8] c"Note that 'queuedir' must be a full path name.\0A\00"
@.str.18 = [66 x i8] c"It should be run first and backgrounded with the -run flag. e.g.\0A\00"
@.str.19 = [46 x i8] c" nohup nice -10 %s -run /var/tmp/queue1 &\0A\00"
@.str.20 = [72 x i8] c"The queue directory ('queuedir') will be created if it does not exist,\0A\00"
@.str.21 = [64 x i8] c"but you may need to change the permissions to allow the person\0A\00"
@.str.22 = [63 x i8] c"submitting a job (perhaps apache) to write to that directory.\0A\00"
@.str.23 = [42 x i8] c"To submit a job, run %s as, for example:\0A\00"
@.str.24 = [48 x i8] c" %s /var/tmp/queue1 myprogram param1 param2 \0A\00"
define void @UsageDie() {
%1 = load i32, i32* @stderr
%2 = call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0), i32 10)
%17 = load i32, i32* @stderr
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.9, i64 0, i64 0), i32 60)
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.12, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.14, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.15, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.17, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.18, i64 0, i64 0))
%43 = load i32, i32* @stderr
%44 = call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%45 = load i32, i32* @stderr
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%47 = load i32, i32* @stderr
%48 = call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%49 = load i32, i32* @stderr
%50 = call i32 (i32, i8*, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.20, i64 0, i64 0))
%51 = load i32, i32* @stderr
%52 = call i32 (i32, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.21, i64 0, i64 0))
%53 = load i32, i32* @stderr
%54 = call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.22, i64 0, i64 0))
%55 = load i32, i32* @stderr
%56 = call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%57 = load i32, i32* @stderr
%58 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%59 = load i32, i32* @stderr
%60 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%61 = load i32, i32* @stderr
%62 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%63 = load i32, i32* @stderr
%64 = call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%65 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [47 x i8] c"\0A%s V1.0 (c) 2015 UCL, Dr. Andrew C.R. Martin\0A\00"
@.str.1 = [5 x i8] c"simq\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [52 x i8] c"Usage: %s [-v[v...]] [-p polltime] -run queuedir\0A\00"
@.str.4 = [71 x i8] c" %s [-v[v...]] [-w maxwait] queuedir program [parameters ...]\0A\00"
@.str.5 = [25 x i8] c" %s -l queuedir\0A\00"
@.str.6 = [31 x i8] c" %s -i jobID queuedir\0A\00"
@.str.7 = [51 x i8] c"\0A -v Verbose mode (-vv, -vvv more info)\0A\00"
@.str.8 = [73 x i8] c" -p Specify the wait in seconds between polling for jobs [%d]\0A\00"
@.str.9 = [74 x i8] c" -w Specify maximum wait time when trying to submit a job [%d]\0A\00"
@.str.10 = [58 x i8] c" -i Gives a countdown until specified job runs\0A\00"
@.str.11 = [43 x i8] c" -l List number of waiting jobs\0A\00"
@.str.12 = [51 x i8] c" -run Run in daemon mode to wait for jobs\0A\00"
@.str.13 = [57 x i8] c"%s is a simple program batch queueing system. It simply\0A\00"
@.str.14 = [71 x i8] c"places jobs in a queue by placing the command in a file that lives in\0A\00"
@.str.15 = [72 x i8] c"the 'queuedir' directory. The queue manager then pulls jobs off one at\0A\00"
@.str.16 = [23 x i8] c"a time and runs them.\0A\00"
@.str.17 = [48 x i8] c"Note that 'queuedir' must be a full path name.\0A\00"
@.str.18 = [66 x i8] c"It should be run first and backgrounded with the -run flag. e.g.\0A\00"
@.str.19 = [46 x i8] c" nohup nice -10 %s -run /var/tmp/queue1 &\0A\00"
@.str.20 = [72 x i8] c"The queue directory ('queuedir') will be created if it does not exist,\0A\00"
@.str.21 = [64 x i8] c"but you may need to change the permissions to allow the person\0A\00"
@.str.22 = [63 x i8] c"submitting a job (perhaps apache) to write to that directory.\0A\00"
@.str.23 = [42 x i8] c"To submit a job, run %s as, for example:\0A\00"
@.str.24 = [48 x i8] c" %s /var/tmp/queue1 myprogram param1 param2 \0A\00"
define void @UsageDie() {
%1 = load i32, i32* @stderr
%2 = tail call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.8, i64 0, i64 0), i32 10)
%17 = load i32, i32* @stderr
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.9, i64 0, i64 0), i32 60)
%19 = load i32, i32* @stderr
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = tail call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.12, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = tail call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = tail call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = tail call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.14, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = tail call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.15, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = tail call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = tail call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = tail call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.17, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = tail call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = tail call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.18, i64 0, i64 0))
%43 = load i32, i32* @stderr
%44 = tail call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%45 = load i32, i32* @stderr
%46 = tail call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%47 = load i32, i32* @stderr
%48 = tail call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%49 = load i32, i32* @stderr
%50 = tail call i32 (i32, i8*, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.20, i64 0, i64 0))
%51 = load i32, i32* @stderr
%52 = tail call i32 (i32, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.21, i64 0, i64 0))
%53 = load i32, i32* @stderr
%54 = tail call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.22, i64 0, i64 0))
%55 = load i32, i32* @stderr
%56 = tail call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%57 = load i32, i32* @stderr
%58 = tail call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%59 = load i32, i32* @stderr
%60 = tail call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%61 = load i32, i32* @stderr
%62 = tail call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%63 = load i32, i32* @stderr
%64 = tail call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%65 = tail call i32 @exit(i32 0)
unreachable
}