#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*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stdout;
void usage() {
  fprintf(stdout,
          "\nhighlight v%s\n\n"
          "Usage: highlight [OPTIONS...] [FILE]\n"
          "Example: highlight -p ERROR red -p WARN yellow debug.log\n\n"
          "FILE\t\ta path to an input text file\n"
          "OPTIONS\n"
          "  -p, --pattern REGEX COLOR\n"
          "\tREGEX\tRegular expression\n"
          "\tCOLOR\tColor to be used for highlighting of the given REGEX (one "
          "of red, green, yellow, blue, magneta, cyan, white; you can also use "
          "just the first char, e.g. red=r)\n"
          "  -h, --help\t\tdisplay this help and exit\n"
          "  -b, --background\t\thighlight background\n"
          "  -s, --selection-only\t\thighlight only matched parts of the line, "
          "not the whole line\n"
          "  -i, --ignore-case\t\tignore case in regex match\n\n",
          "0.1.1");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
lea    0x1124(%rip),%rdx
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
lea    0x1128(%rip),%rdx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [591 x i8] c"\0Ahighlight v%s\0A\0AUsage: highlight [OPTIONS...] [FILE]\0AExample: highlight -p ERROR red -p WARN yellow debug.log\0A\0AFILE\09\09a path to an input text file\0AOPTIONS\0A -p, --pattern REGEX COLOR\0A\09REGEX\09Regular expression\0A\09COLOR\09Color to be used for highlighting of the given REGEX (one of red, green, yellow, blue, magneta, cyan, white; you can also use just the first char, e.g. red=r)\0A -h, --help\09\09display this help and exit\0A -b, --background\09\09highlight background\0A -s, --selection-only\09\09highlight only matched parts of the line, not the whole line\0A -i, --ignore-case\09\09ignore case in regex match\0A\0A\00"
@.str.1 = [6 x i8] c"0.1.1\00"
define void @usage() {
%1 = load i32, i32* @stdout
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([591 x i8], [591 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [591 x i8] c"\0Ahighlight v%s\0A\0AUsage: highlight [OPTIONS...] [FILE]\0AExample: highlight -p ERROR red -p WARN yellow debug.log\0A\0AFILE\09\09a path to an input text file\0AOPTIONS\0A -p, --pattern REGEX COLOR\0A\09REGEX\09Regular expression\0A\09COLOR\09Color to be used for highlighting of the given REGEX (one of red, green, yellow, blue, magneta, cyan, white; you can also use just the first char, e.g. red=r)\0A -h, --help\09\09display this help and exit\0A -b, --background\09\09highlight background\0A -s, --selection-only\09\09highlight only matched parts of the line, not the whole line\0A -i, --ignore-case\09\09ignore case in regex match\0A\0A\00"
@.str.1 = [6 x i8] c"0.1.1\00"
define void @usage() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([591 x i8], [591 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret void
}