#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*/ puts(char *);
void help() {
  char *usage =
      "Usage:  "
      "execpty"
      " [OPTIONS] [COMMAND-WITH-ARGUMENTS]\n"
      "Execute a command in pseudo terminal redirecting pty I/O to standard "
      "I/O."
      "\n\n"
      "Options are:\n"
      "  -e, --no-echo  suppress echo for current controlling terminal if any\n"
      "  -b, --blind  blind input for the command (don't wait for a prompt)\n"
      "  -2, --crnl  pts to use CR/NL as end of line (NL only by default)\n"
      "  -q, --quiet  suppress error messages\n"
      "  -h, --help  display this help and exit\n"
      "  -v, --version  output version information and exit\n"
      "\n"
      "Exit status:\n"
      "  - 0 success (--help or --version only)\n"
      "  - 127 system call failure (with corresponding error message)\n"
      "  - if the command is terminated by a signal - the signal number plus "
      "128"
      "\n"
      "  - on success - exit status of the command executed\n"
      "\n"
      "Full documentation at: <https://github.com/martynets/execpty/>\n"
      "or available locally via: man "
      "execpty"
      "\n";
  puts(usage);
}


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

x86 assembly (clang, -O2):
<help>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [827 x i8] c"Usage: execpty [OPTIONS] [COMMAND-WITH-ARGUMENTS]\0AExecute a command in pseudo terminal redirecting pty I/O to standard I/O.\0A\0AOptions are:\0A -e, --no-echo suppress echo for current controlling terminal if any\0A -b, --blind blind input for the command (don't wait for a prompt)\0A -2, --crnl pts to use CR/NL as end of line (NL only by default)\0A -q, --quiet suppress error messages\0A -h, --help display this help and exit\0A -v, --version output version information and exit\0A\0AExit status:\0A - 0 success (--help or --version only)\0A - 127 system call failure (with corresponding error message)\0A - if the command is terminated by a signal - the signal number plus 128\0A - on success - exit status of the command executed\0A\0AFull documentation at: <https://github.com/martynets/execpty/>\0Aor available locally via: man execpty\0A\00"
define void @help() {
%1 = alloca i8*
store i8* getelementptr inbounds ([827 x i8], [827 x i8]* @.str, i64 0, i64 0), i8** %1
%2 = load i8*, i8** %1
%3 = call i32 @puts(i8* %2)
ret void
}

LLVM IR (-O2):
@.str = [827 x i8] c"Usage: execpty [OPTIONS] [COMMAND-WITH-ARGUMENTS]\0AExecute a command in pseudo terminal redirecting pty I/O to standard I/O.\0A\0AOptions are:\0A -e, --no-echo suppress echo for current controlling terminal if any\0A -b, --blind blind input for the command (don't wait for a prompt)\0A -2, --crnl pts to use CR/NL as end of line (NL only by default)\0A -q, --quiet suppress error messages\0A -h, --help display this help and exit\0A -v, --version output version information and exit\0A\0AExit status:\0A - 0 success (--help or --version only)\0A - 127 system call failure (with corresponding error message)\0A - if the command is terminated by a signal - the signal number plus 128\0A - on success - exit status of the command executed\0A\0AFull documentation at: <https://github.com/martynets/execpty/>\0Aor available locally via: man execpty\0A\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([827 x i8], [827 x i8]* @.str, i64 0, i64 0))
ret void
}