#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 *, char *);
void help(char **argv) {
  printf(
      "Usage: %s OPTIONS {expression} input\n\n"
      "   -a  --action    ACTION    Perform regular expression action:\n"
      "                             match (default), find, split, replace\n"
      "   -d  --delimiter STRING    Use STRING as result delimiter\n"
      "                             (newline is default)\n"
      "   -D                        Dump constructed DFA\n"
      "   -e  --exec      EXPR      Use string EXPR as expression.\n"
      "   -f  --file      FILENAME  Read expression from FILENAME\n"
      "   -h  --help                Show this help, and exit.\n"
      "   -i  --input     INPUT     Use string INPUT as input.\n"
      "   -r  --replace   STRING    Replacement string for 'replace' action.\n"
      "   -V  --version             Show version info and exit.\n"
      "\n",
      *argv);
}


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

x86 assembly (clang, -O2):
<help>:
mov    (%rdi),%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [688 x i8] c"Usage: %s OPTIONS {expression} input\0A\0A -a --action ACTION Perform regular expression action:\0A match (default), find, split, replace\0A -d --delimiter STRING Use STRING as result delimiter\0A (newline is default)\0A -D Dump constructed DFA\0A -e --exec EXPR Use string EXPR as expression.\0A -f --file FILENAME Read expression from FILENAME\0A -h --help Show this help, and exit.\0A -i --input INPUT Use string INPUT as input.\0A -r --replace STRING Replacement string for 'replace' action.\0A -V --version Show version info and exit.\0A\0A\00"
define void @help(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = load i8*, i8** %3
%5 = call i32 @printf(i8* getelementptr inbounds ([688 x i8], [688 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@.str = [688 x i8] c"Usage: %s OPTIONS {expression} input\0A\0A -a --action ACTION Perform regular expression action:\0A match (default), find, split, replace\0A -d --delimiter STRING Use STRING as result delimiter\0A (newline is default)\0A -D Dump constructed DFA\0A -e --exec EXPR Use string EXPR as expression.\0A -f --file FILENAME Read expression from FILENAME\0A -h --help Show this help, and exit.\0A -i --input INPUT Use string INPUT as input.\0A -r --replace STRING Replacement string for 'replace' action.\0A -V --version Show version info and exit.\0A\0A\00"
define void @help(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = tail call i32 @printf(i8* getelementptr inbounds ([688 x i8], [688 x i8]* @.str, i64 0, i64 0), i8* %2)
ret void
}