#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 *, char *, ...);
void print_usage() {
  char *color_cyan = "\x1b[36m";
  char *color_cyan_bold = "\x1b[36;1m";
  char *reset_color = "\x1b[0m";
  printf("%sElla%s - %sUnique, incremented id issuing utility%s\n\n",
         color_cyan_bold, reset_color, color_cyan, reset_color);
  printf("%sAvailable commands:%s\n\tella -h\n\tella --help\tShow this help "
         "message.\n\tella create <id>\t"
         "Creates a new counter file with the name <id>.\n\tella reset "
         "<id>\tResets the counter for counter file <id>\n"
         "\tella <id>\tIssues a new id from counter file <id>\n",
         color_cyan_bold, reset_color);
  printf("\n%sCreating and resetting counter files:%s\n\tA counter file is "
         "where the current count is saved on the disk. "
         "You must create at least one counter file before you can use Ella to "
         "issue ids.\n"
         "\n\tReseting a counter file brings the count back to zero, so the "
         "next id issues is 1 again.",
         color_cyan_bold, reset_color);
  printf("\n%sIssuing a new id:%s\n\tCall Ella with the id of the count file "
         "you want to increment. Remember to first create at least one count "
         "file.\n\n",
         color_cyan_bold, reset_color);
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    0xee1(%rip),%rax
mov    %rax,-0x8(%rbp)
lea    0xedc(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xed9(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x8(%rbp),%rcx
mov    -0x18(%rbp),%r8
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xfc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0x10c4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %r14
push   %rbx
push   %rax
lea    0xef8(%rip),%rdi
lea    0xee4(%rip),%r14
lea    0xed7(%rip),%rcx
lea    0xede(%rip),%rbx
mov    %r14,%rsi
mov    %rbx,%rdx
mov    %rbx,%r8
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xfe4(%rip),%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x10e7(%rip),%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"\1B[36m\00"
@.str.1 = [8 x i8] c"\1B[36;1m\00"
@.str.2 = [5 x i8] c"\1B[0m\00"
@.str.3 = [56 x i8] c"%sElla%s - %sUnique, incremented id issuing utility%s\0A\0A\00"
@.str.4 = [244 x i8] c"%sAvailable commands:%s\0A\09ella -h\0A\09ella --help\09Show this help message.\0A\09ella create <id>\09Creates a new counter file with the name <id>.\0A\09ella reset <id>\09Resets the counter for counter file <id>\0A\09ella <id>\09Issues a new id from counter file <id>\0A\00"
@.str.5 = [279 x i8] c"\0A%sCreating and resetting counter files:%s\0A\09A counter file is where the current count is saved on the disk. You must create at least one counter file before you can use Ella to issue ids.\0A\0A\09Reseting a counter file brings the count back to zero, so the next id issues is 1 again.\00"
@.str.6 = [139 x i8] c"\0A%sIssuing a new id:%s\0A\09Call Ella with the id of the count file you want to increment. Remember to first create at least one count file.\0A\0A\00"
define void @print_usage() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca i8*
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8** %2
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %3
%4 = load i8*, i8** %2
%5 = load i8*, i8** %3
%6 = load i8*, i8** %1
%7 = load i8*, i8** %3
%8 = call i32 (i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0), i8* %4, i8* %5, i8* %6, i8* %7)
%9 = load i8*, i8** %2
%10 = load i8*, i8** %3
%11 = call i32 (i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([244 x i8], [244 x i8]* @.str.4, i64 0, i64 0), i8* %9, i8* %10)
%12 = load i8*, i8** %2
%13 = load i8*, i8** %3
%14 = call i32 (i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([279 x i8], [279 x i8]* @.str.5, i64 0, i64 0), i8* %12, i8* %13)
%15 = load i8*, i8** %2
%16 = load i8*, i8** %3
%17 = call i32 (i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.6, i64 0, i64 0), i8* %15, i8* %16)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"\1B[36m\00"
@.str.1 = [8 x i8] c"\1B[36;1m\00"
@.str.2 = [5 x i8] c"\1B[0m\00"
@.str.3 = [56 x i8] c"%sElla%s - %sUnique, incremented id issuing utility%s\0A\0A\00"
@.str.4 = [244 x i8] c"%sAvailable commands:%s\0A\09ella -h\0A\09ella --help\09Show this help message.\0A\09ella create <id>\09Creates a new counter file with the name <id>.\0A\09ella reset <id>\09Resets the counter for counter file <id>\0A\09ella <id>\09Issues a new id from counter file <id>\0A\00"
@.str.5 = [279 x i8] c"\0A%sCreating and resetting counter files:%s\0A\09A counter file is where the current count is saved on the disk. You must create at least one counter file before you can use Ella to issue ids.\0A\0A\09Reseting a counter file brings the count back to zero, so the next id issues is 1 again.\00"
@.str.6 = [139 x i8] c"\0A%sIssuing a new id:%s\0A\09Call Ella with the id of the count file you want to increment. Remember to first create at least one count file.\0A\0A\00"
define void @print_usage() {
%1 = tail call i32 (i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%2 = tail call i32 (i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([244 x i8], [244 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 (i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([279 x i8], [279 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 (i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
ret void
}