#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 printHelp() {
  printf("Program pocita pocet slov obsahujici hledany znak ci cislici.\n");
  printf("Spousteni: ./proj1 ZNAK [UMISTENI] [-d]\n\n");
  printf("Argumenty:\n");
  printf("  ZNAK               hledany znak nebo cislice\n");
  printf("  UMISTENI           volitelny argument, ktery urcuje pozadovanou "
         "pozici znaku\n");
  printf("                     ve slove, defaultne na pozici nezalezi, pozice "
         "prvniho znaku je 1\n\n");
  printf("  -d                 zapne tzv. Debug Mode, kdy je kazde prosle "
         "slovo vypisovano\n");
  printf("  -h  --help         vypise tuto napovedu a skonci\n\n");
  printf("Hledanym znakem muze byt:\n");
  printf("  (A..Z)             velke pismeno anglicke abecedy\n");
  printf("  (a..z)             male pismeno anglicke abecedy\n");
  printf("  (0..9)             arabska cislice\n");
  printf("  :                  libovolna cislice\n");
  printf("  ^                  libovolne velke pismeno\n");
  printf("  .                  libovolny znak\n\n");
  printf("Autor: Tomas Coufal  <xcoufa09@stud.fit.vutbr.cz>\n");
  printf("Login: xcoufa09\n");
}


x86 assembly (clang, -O0):
<printHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
call   1030 <printf@plt>
lea    0xf36(%rip),%rdi
call   1030 <printf@plt>
lea    0xf36(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9e(%rip),%rdi
call   1030 <printf@plt>
lea    0xfeb(%rip),%rdi
call   1030 <printf@plt>
lea    0x1031(%rip),%rdi
call   1030 <printf@plt>
lea    0x105a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1069(%rip),%rdi
call   1030 <printf@plt>
lea    0x1092(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ba(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d4(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f0(%rip),%rdi
call   1030 <printf@plt>
lea    0x1112(%rip),%rdi
call   1030 <printf@plt>
lea    0x112c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1153(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printHelp>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf37(%rip),%rdi
call   1030 <puts@plt>
lea    0xf36(%rip),%rdi
call   1030 <puts@plt>
lea    0xf59(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9c(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe8(%rip),%rdi
call   1030 <puts@plt>
lea    0x102d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1055(%rip),%rdi
call   1030 <puts@plt>
lea    0x1063(%rip),%rdi
call   1030 <puts@plt>
lea    0x108b(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b2(%rip),%rdi
call   1030 <puts@plt>
lea    0x10cb(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e6(%rip),%rdi
call   1030 <puts@plt>
lea    0x1107(%rip),%rdi
call   1030 <puts@plt>
lea    0x1120(%rip),%rdi
call   1030 <puts@plt>
lea    0x1146(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [63 x i8] c"Program pocita pocet slov obsahujici hledany znak ci cislici.\0A\00"
@.str.1 = [42 x i8] c"Spousteni: ./proj1 ZNAK [UMISTENI] [-d]\0A\0A\00"
@.str.2 = [12 x i8] c"Argumenty:\0A\00"
@.str.3 = [48 x i8] c" ZNAK hledany znak nebo cislice\0A\00"
@.str.4 = [80 x i8] c" UMISTENI volitelny argument, ktery urcuje pozadovanou pozici znaku\0A\00"
@.str.5 = [89 x i8] c" ve slove, defaultne na pozici nezalezi, pozice prvniho znaku je 1\0A\0A\00"
@.str.6 = [82 x i8] c" -d zapne tzv. Debug Mode, kdy je kazde prosle slovo vypisovano\0A\00"
@.str.7 = [53 x i8] c" -h --help vypise tuto napovedu a skonci\0A\0A\00"
@.str.8 = [27 x i8] c"Hledanym znakem muze byt:\0A\00"
@.str.9 = [53 x i8] c" (A..Z) velke pismeno anglicke abecedy\0A\00"
@.str.10 = [52 x i8] c" (a..z) male pismeno anglicke abecedy\0A\00"
@.str.11 = [38 x i8] c" (0..9) arabska cislice\0A\00"
@.str.12 = [40 x i8] c" : libovolna cislice\0A\00"
@.str.13 = [46 x i8] c" ^ libovolne velke pismeno\0A\00"
@.str.14 = [38 x i8] c" . libovolny znak\0A\0A\00"
@.str.15 = [51 x i8] c"Autor: Tomas Coufal <xcoufa09@stud.fit.vutbr.cz>\0A\00"
@.str.16 = [17 x i8] c"Login: xcoufa09\0A\00"
define void @printHelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [62 x i8] c"Program pocita pocet slov obsahujici hledany znak ci cislici.\00"
@str.17 = [41 x i8] c"Spousteni: ./proj1 ZNAK [UMISTENI] [-d]\0A\00"
@str.18 = [11 x i8] c"Argumenty:\00"
@str.19 = [47 x i8] c" ZNAK hledany znak nebo cislice\00"
@str.20 = [79 x i8] c" UMISTENI volitelny argument, ktery urcuje pozadovanou pozici znaku\00"
@str.21 = [88 x i8] c" ve slove, defaultne na pozici nezalezi, pozice prvniho znaku je 1\0A\00"
@str.22 = [81 x i8] c" -d zapne tzv. Debug Mode, kdy je kazde prosle slovo vypisovano\00"
@str.23 = [52 x i8] c" -h --help vypise tuto napovedu a skonci\0A\00"
@str.24 = [26 x i8] c"Hledanym znakem muze byt:\00"
@str.25 = [52 x i8] c" (A..Z) velke pismeno anglicke abecedy\00"
@str.26 = [51 x i8] c" (a..z) male pismeno anglicke abecedy\00"
@str.27 = [37 x i8] c" (0..9) arabska cislice\00"
@str.28 = [39 x i8] c" : libovolna cislice\00"
@str.29 = [45 x i8] c" ^ libovolne velke pismeno\00"
@str.30 = [37 x i8] c" . libovolny znak\0A\00"
@str.31 = [50 x i8] c"Autor: Tomas Coufal <xcoufa09@stud.fit.vutbr.cz>\00"
@str.32 = [16 x i8] c"Login: xcoufa09\00"
define void @printHelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.17, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.18, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @str.21, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.22, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.23, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.24, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.25, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.27, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.28, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.29, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.30, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.31, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.32, i64 0, i64 0))
ret void
}