#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(void) {
  printf("\n%s V: %s\n", "colorize", "2.00");
  printf("Highlights the line that contains the pattern using ANSI escape "
         "sequence.\n"
         "Example:\n"
         "%s [option] [regex] [file]\n"
         "%s [option] [regex]\n\n",
         "colorize", "colorize");
  printf("Regex Pattern interpretation:\n"
         "-i\tIGNORE CASE\n"
         "-e\tEXTENDED REGEX\n\n");
  printf("Highlighting:\n"
         "-f\tFOREGROUND COLOR [color]\n"
         "-b\tBACKGROUND COLOR [color]\n"
         "[color]: black,red,green,yellow,blue,violet,cyan,white\n\n");
  printf("Miscelaneous:\n"
         "-v, --version\tdisplay program version\n"
         "-h, --help\tdisplay this and exit\n\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee9(%rip),%rsi
lea    0xeeb(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
lea    0xecd(%rip),%rdx
mov    %rdx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf81(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
lea    0xed8(%rip),%rdi
lea    0xedc(%rip),%rbx
lea    0xede(%rip),%rdx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed2(%rip),%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf42(%rip),%rdi
call   1030 <puts@plt>
lea    0xf76(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe8(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"\0A%s V: %s\0A\00"
@.str.1 = [9 x i8] c"colorize\00"
@.str.2 = [5 x i8] c"2.00\00"
@.str.3 = [132 x i8] c"Highlights the line that contains the pattern using ANSI escape sequence.\0AExample:\0A%s [option] [regex] [file]\0A%s [option] [regex]\0A\0A\00"
@.str.4 = [65 x i8] c"Regex Pattern interpretation:\0A-i\09IGNORE CASE\0A-e\09EXTENDED REGEX\0A\0A\00"
@.str.5 = [127 x i8] c"Highlighting:\0A-f\09FOREGROUND COLOR [color]\0A-b\09BACKGROUND COLOR [color]\0A[color]: black,red,green,yellow,blue,violet,cyan,white\0A\0A\00"
@.str.6 = [87 x i8] c"Miscelaneous:\0A-v, --version\09display program version\0A-h, --help\09display this and exit\0A\0A\00"
define void @usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([132 x i8], [132 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.4, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([127 x i8], [127 x i8]* @.str.5, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"\0A%s V: %s\0A\00"
@.str.1 = [9 x i8] c"colorize\00"
@.str.2 = [5 x i8] c"2.00\00"
@.str.3 = [132 x i8] c"Highlights the line that contains the pattern using ANSI escape sequence.\0AExample:\0A%s [option] [regex] [file]\0A%s [option] [regex]\0A\0A\00"
@str = [64 x i8] c"Regex Pattern interpretation:\0A-i\09IGNORE CASE\0A-e\09EXTENDED REGEX\0A\00"
@str.7 = [126 x i8] c"Highlighting:\0A-f\09FOREGROUND COLOR [color]\0A-b\09BACKGROUND COLOR [color]\0A[color]: black,red,green,yellow,blue,violet,cyan,white\0A\00"
@str.8 = [86 x i8] c"Miscelaneous:\0A-v, --version\09display program version\0A-h, --help\09display this and exit\0A\00"
define void @usage() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([132 x i8], [132 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([126 x i8], [126 x i8]* @str.7, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.8, i64 0, i64 0))
ret void
}