#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 printUsage() {
  printf("About: Takes a file and generates a text and pattern from that ");
  printf("(strips new lines and other control characters in the algorithms) "
         "before writing them to a file");
  printf("Usage: ./inputFromCorpus inputfile m k [options]\n\n");
  printf("Options: -n value -- specify a maximum length on the created text");
  printf(
      "         -s seed  -- use the given seed, rather than the current time");
  printf("         -o file  -- file to write to. Default is generated.txt");
}


x86 assembly (clang, -O0):
<printUsage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf19(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf94(%rip),%rdi
call   1030 <printf@plt>
lea    0xfca(%rip),%rdi
call   1030 <printf@plt>
lea    0x1004(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printUsage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
lea    0xf0c(%rip),%rdi
call   1040 <printf@plt>
lea    0x1028(%rip),%rdi
call   1030 <puts@plt>
lea    0xf54(%rip),%rdi
call   1040 <printf@plt>
lea    0xf8a(%rip),%rdi
call   1040 <printf@plt>
lea    0xfc4(%rip),%rdi
pop    %rax
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [64 x i8] c"About: Takes a file and generates a text and pattern from that \00"
@.str.1 = [96 x i8] c"(strips new lines and other control characters in the algorithms) before writing them to a file\00"
@.str.2 = [51 x i8] c"Usage: ./inputFromCorpus inputfile m k [options]\0A\0A\00"
@.str.3 = [66 x i8] c"Options: -n value -- specify a maximum length on the created text\00"
@.str.4 = [70 x i8] c" -s seed -- use the given seed, rather than the current time\00"
@.str.5 = [64 x i8] c" -o file -- file to write to. Default is generated.txt\00"
define void @printUsage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [64 x i8] c"About: Takes a file and generates a text and pattern from that \00"
@.str.1 = [96 x i8] c"(strips new lines and other control characters in the algorithms) before writing them to a file\00"
@.str.3 = [66 x i8] c"Options: -n value -- specify a maximum length on the created text\00"
@.str.4 = [70 x i8] c" -s seed -- use the given seed, rather than the current time\00"
@.str.5 = [64 x i8] c" -o file -- file to write to. Default is generated.txt\00"
@str = [50 x i8] c"Usage: ./inputFromCorpus inputfile m k [options]\0A\00"
define void @printUsage() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([96 x i8], [96 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0))
ret void
}