#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 usage() {
  printf("USAGE: watchpuppy [options]\n");
  printf("Options are:\n");
  printf(" -e, --execute [program]\tProgram to execute, use quotes if you want "
         "to pass arguments.\n");
  printf(" -t, --tcp-port [port]\t\tPort to monitor, once it won't be able to "
         "connect it'll restart your program.\n");
  printf(" -i, --interval [seconds]\tAmount of seconds between checks if it's "
         "still alive, defaults to 10 seconds.\n");
  printf(" -l, --log [logfile]\t\tWrite a log to this file.\n");
  printf(" -H, --hook [executable]\tProgram to execute in case we have to "
         "restart our child (think email scripts).\n");
  printf(" -m, --minimum [seconds]\tMinimum amount of seconds of runtime "
         "required for a restart, defaults to 60 seconds.\n");
  printf("\t\t\t\tIn case the runtime of your executable is in fact done 'too "
         "quickly' watchpuppy will silently exit.\n");
  printf("\t\t\t\tYou can set this option to 0 to disable this check.\n");
  printf(" -M, --module [module path]\tUse this module to perform checks if "
         "we're still running.\n");
  printf(" -h, --help\t\t\tShow this help page.\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
call   1030 <printf@plt>
lea    0xf44(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9f(%rip),%rdi
call   1030 <printf@plt>
lea    0xffc(%rip),%rdi
call   1030 <printf@plt>
lea    0x1021(%rip),%rdi
call   1030 <printf@plt>
lea    0x107e(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e1(%rip),%rdi
call   1030 <printf@plt>
lea    0x113e(%rip),%rdi
call   1030 <printf@plt>
lea    0x116b(%rip),%rdi
call   1030 <printf@plt>
lea    0x11b6(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef9(%rip),%rdi
call   1030 <puts@plt>
lea    0xf44(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9e(%rip),%rdi
call   1030 <puts@plt>
lea    0xffa(%rip),%rdi
call   1030 <puts@plt>
lea    0x101e(%rip),%rdi
call   1030 <puts@plt>
lea    0x107a(%rip),%rdi
call   1030 <puts@plt>
lea    0x10dc(%rip),%rdi
call   1030 <puts@plt>
lea    0x1138(%rip),%rdi
call   1030 <puts@plt>
lea    0x1164(%rip),%rdi
call   1030 <puts@plt>
lea    0x11ae(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"USAGE: watchpuppy [options]\0A\00"
@.str.1 = [14 x i8] c"Options are:\0A\00"
@.str.2 = [88 x i8] c" -e, --execute [program]\09Program to execute, use quotes if you want to pass arguments.\0A\00"
@.str.3 = [103 x i8] c" -t, --tcp-port [port]\09\09Port to monitor, once it won't be able to connect it'll restart your program.\0A\00"
@.str.4 = [105 x i8] c" -i, --interval [seconds]\09Amount of seconds between checks if it's still alive, defaults to 10 seconds.\0A\00"
@.str.5 = [49 x i8] c" -l, --log [logfile]\09\09Write a log to this file.\0A\00"
@.str.6 = [105 x i8] c" -H, --hook [executable]\09Program to execute in case we have to restart our child (think email scripts).\0A\00"
@.str.7 = [111 x i8] c" -m, --minimum [seconds]\09Minimum amount of seconds of runtime required for a restart, defaults to 60 seconds.\0A\00"
@.str.8 = [105 x i8] c"\09\09\09\09In case the runtime of your executable is in fact done 'too quickly' watchpuppy will silently exit.\0A\00"
@.str.9 = [57 x i8] c"\09\09\09\09You can set this option to 0 to disable this check.\0A\00"
@.str.10 = [87 x i8] c" -M, --module [module path]\09Use this module to perform checks if we're still running.\0A\00"
@.str.11 = [36 x i8] c" -h, --help\09\09\09Show this help page.\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([105 x i8], [105 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([105 x i8], [105 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([111 x i8], [111 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([105 x i8], [105 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [28 x i8] c"USAGE: watchpuppy [options]\00"
@str.12 = [13 x i8] c"Options are:\00"
@str.13 = [87 x i8] c" -e, --execute [program]\09Program to execute, use quotes if you want to pass arguments.\00"
@str.14 = [102 x i8] c" -t, --tcp-port [port]\09\09Port to monitor, once it won't be able to connect it'll restart your program.\00"
@str.15 = [104 x i8] c" -i, --interval [seconds]\09Amount of seconds between checks if it's still alive, defaults to 10 seconds.\00"
@str.16 = [48 x i8] c" -l, --log [logfile]\09\09Write a log to this file.\00"
@str.17 = [104 x i8] c" -H, --hook [executable]\09Program to execute in case we have to restart our child (think email scripts).\00"
@str.18 = [110 x i8] c" -m, --minimum [seconds]\09Minimum amount of seconds of runtime required for a restart, defaults to 60 seconds.\00"
@str.19 = [104 x i8] c"\09\09\09\09In case the runtime of your executable is in fact done 'too quickly' watchpuppy will silently exit.\00"
@str.20 = [56 x i8] c"\09\09\09\09You can set this option to 0 to disable this check.\00"
@str.21 = [86 x i8] c" -M, --module [module path]\09Use this module to perform checks if we're still running.\00"
@str.22 = [35 x i8] c" -h, --help\09\09\09Show this help page.\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.12, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str.13, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([102 x i8], [102 x i8]* @str.14, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([110 x i8], [110 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.22, i64 0, i64 0))
ret void
}