#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 print_help() {
  printf("NAME\n"
         "\tctail -- display the last part of a file\n"
         "\n"
         "SYNOPSIS\n"
         "\tctail [options][file]\n"
         "\n"
         "DESCRIPTION\n"
         "\tctail is a lightweight tail -f like implementation that helps you "
         "distinguish "
         "between different loglevels by using colored output\n"
         "\n");
  printf("OPTIONS\n"
         "\t-c (--color)\n"
         "\t\tdeactivates coloring of messages if set\n"
         "\t-s (--setting)\n"
         "\t\tcustom path to a settings file [not implemented]\n"
         "\t-q (--quiet)\n"
         "\t\tsuppress all logging output including errors\n"
         "\t-d (--debug)\n"
         "\t\tactivates additional debug output\n"
         "\t-v (--verbose)\n"
         "\t\tactivates additional info output\n"
         "\t-l (--lines)\n"
         "\t\tconfigures how many lines are printed on startup\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbb(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbd(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [226 x i8] c"NAME\0A\09ctail -- display the last part of a file\0A\0ASYNOPSIS\0A\09ctail [options][file]\0A\0ADESCRIPTION\0A\09ctail is a lightweight tail -f like implementation that helps you distinguish between different loglevels by using colored output\0A\0A\00"
@.str.1 = [359 x i8] c"OPTIONS\0A\09-c (--color)\0A\09\09deactivates coloring of messages if set\0A\09-s (--setting)\0A\09\09custom path to a settings file [not implemented]\0A\09-q (--quiet)\0A\09\09suppress all logging output including errors\0A\09-d (--debug)\0A\09\09activates additional debug output\0A\09-v (--verbose)\0A\09\09activates additional info output\0A\09-l (--lines)\0A\09\09configures how many lines are printed on startup\0A\00"
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([226 x i8], [226 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([359 x i8], [359 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [225 x i8] c"NAME\0A\09ctail -- display the last part of a file\0A\0ASYNOPSIS\0A\09ctail [options][file]\0A\0ADESCRIPTION\0A\09ctail is a lightweight tail -f like implementation that helps you distinguish between different loglevels by using colored output\0A\00"
@str.2 = [358 x i8] c"OPTIONS\0A\09-c (--color)\0A\09\09deactivates coloring of messages if set\0A\09-s (--setting)\0A\09\09custom path to a settings file [not implemented]\0A\09-q (--quiet)\0A\09\09suppress all logging output including errors\0A\09-d (--debug)\0A\09\09activates additional debug output\0A\09-v (--verbose)\0A\09\09activates additional info output\0A\09-l (--lines)\0A\09\09configures how many lines are printed on startup\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([225 x i8], [225 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([358 x i8], [358 x i8]* @str.2, i64 0, i64 0))
ret void
}