#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 exit_help(void) {
  printf("This program will launch a command in a pseudo terminal. Data for "
         "the\n");
  printf("pseudo terminal can be controlled using fifo's.\n\n");
  printf("Usage:\n");
  printf("  webtty <id> <admin_file> <application> [parameters]\n\n");
  printf("Input to process in pseudo terminal can be sent writing to fifo "
         "<id>_in.\n");
  printf("Different controlling processes can");
  printf("share the fifo.\n The application will re-attach to the fifo input "
         "file every \n");
  printf("time it is closed.\n\n");
  printf("Output from process in pseudo terminal can be read from fifo "
         "<id>_out.\n");
  printf("Output fifo will never deliver more than 1000 bytes at a time. The "
         "controlling\n");
  printf("process can reattach several times to the fifo to get more data. If "
         "there is\n");
  printf("no data, the process will block for max 5 seconds or until data is "
         "available.\n\n");
  printf("Example:\n");
  printf("  webtty key1234 admin_log bash\n");
  printf("  webtty key1234 admin_log traceroute testape.com\n");
  exit(1);
}


x86 assembly (clang, -O0):
<exit_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf10(%rip),%rdi
call   1030 <printf@plt>
lea    0xf36(%rip),%rdi
call   1030 <printf@plt>
lea    0xf32(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9c(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb4(%rip),%rdi
call   1030 <printf@plt>
lea    0xff7(%rip),%rdi
call   1030 <printf@plt>
lea    0x1000(%rip),%rdi
call   1030 <printf@plt>
lea    0x103c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1080(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c2(%rip),%rdi
call   1030 <printf@plt>
lea    0x1106(%rip),%rdi
call   1030 <printf@plt>
lea    0x1104(%rip),%rdi
call   1030 <printf@plt>
lea    0x1119(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<exit_help>:
push   %rax
lea    0xeec(%rip),%rdi
call   1030 <puts@plt>
lea    0xf26(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf46(%rip),%rdi
call   1030 <puts@plt>
lea    0xf71(%rip),%rdi
call   1030 <puts@plt>
lea    0xe8c(%rip),%rdi
call   1040 <printf@plt>
lea    0xfa2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe4(%rip),%rdi
call   1030 <puts@plt>
lea    0xfec(%rip),%rdi
call   1030 <puts@plt>
lea    0x1027(%rip),%rdi
call   1030 <puts@plt>
lea    0x106a(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ab(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ee(%rip),%rdi
call   1030 <puts@plt>
lea    0x10eb(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ff(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [71 x i8] c"This program will launch a command in a pseudo terminal. Data for the\0A\00"
@.str.1 = [50 x i8] c"pseudo terminal can be controlled using fifo's.\0A\0A\00"
@.str.2 = [8 x i8] c"Usage:\0A\00"
@.str.3 = [56 x i8] c" webtty <id> <admin_file> <application> [parameters]\0A\0A\00"
@.str.4 = [74 x i8] c"Input to process in pseudo terminal can be sent writing to fifo <id>_in.\0A\00"
@.str.5 = [36 x i8] c"Different controlling processes can\00"
@.str.6 = [79 x i8] c"share the fifo.\0A The application will re-attach to the fifo input file every \0A\00"
@.str.7 = [21 x i8] c"time it is closed.\0A\0A\00"
@.str.8 = [72 x i8] c"Output from process in pseudo terminal can be read from fifo <id>_out.\0A\00"
@.str.9 = [80 x i8] c"Output fifo will never deliver more than 1000 bytes at a time. The controlling\0A\00"
@.str.10 = [78 x i8] c"process can reattach several times to the fifo to get more data. If there is\0A\00"
@.str.11 = [80 x i8] c"no data, the process will block for max 5 seconds or until data is available.\0A\0A\00"
@.str.12 = [10 x i8] c"Example:\0A\00"
@.str.13 = [33 x i8] c" webtty key1234 admin_log bash\0A\00"
@.str.14 = [51 x i8] c" webtty key1234 admin_log traceroute testape.com\0A\00"
define void @exit_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str.5 = [36 x i8] c"Different controlling processes can\00"
@str = [70 x i8] c"This program will launch a command in a pseudo terminal. Data for the\00"
@str.15 = [49 x i8] c"pseudo terminal can be controlled using fifo's.\0A\00"
@str.16 = [7 x i8] c"Usage:\00"
@str.17 = [55 x i8] c" webtty <id> <admin_file> <application> [parameters]\0A\00"
@str.18 = [73 x i8] c"Input to process in pseudo terminal can be sent writing to fifo <id>_in.\00"
@str.19 = [78 x i8] c"share the fifo.\0A The application will re-attach to the fifo input file every \00"
@str.20 = [20 x i8] c"time it is closed.\0A\00"
@str.21 = [71 x i8] c"Output from process in pseudo terminal can be read from fifo <id>_out.\00"
@str.22 = [79 x i8] c"Output fifo will never deliver more than 1000 bytes at a time. The controlling\00"
@str.23 = [77 x i8] c"process can reattach several times to the fifo to get more data. If there is\00"
@str.24 = [79 x i8] c"no data, the process will block for max 5 seconds or until data is available.\0A\00"
@str.25 = [9 x i8] c"Example:\00"
@str.26 = [32 x i8] c" webtty key1234 admin_log bash\00"
@str.27 = [50 x i8] c" webtty key1234 admin_log traceroute testape.com\00"
define void @exit_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.15, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.16, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.17, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.18, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.19, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.20, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.21, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.22, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.23, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.24, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.25, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.26, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.27, i64 0, i64 0))
%16 = tail call i32 @exit(i32 1)
unreachable
}