#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 const *);
void printHelp() {
  const char message[] =
      "Program:\n"
      "Autor: Frantisek Kolacek (xkolac12@stud.fit.vutbr.cz)\n\n"
      "Pouziti: proj3 [moznosti]\n"
      " -h                                                    - vypise "
      "napovedu\n"
      " --test <filename>                                     - zkontroluje "
      "format souboru\n"
      " --add <filename> <filename>                           - secte dve "
      "matice\n"
      " --mult <filename> <filename>                          - vynasobi dve "
      "matice\n"
      " --trans <filename>                                    - vypocita "
      "transpozici matice\n"
      " --expr <filename> <filename>                          - vypocita dany "
      "vyraz\n"
      " --water <row> <column> <filename>                     - oznaci hladinu "
      "vodniho toku\n"
      " --carom <row> <column> <direction> <power> <filename> - oznaci drahu "
      "koule po kulecniku\n";
  printf("%s\n", message);
}


x86 assembly (clang, -O0):
<printHelp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2e0,%rsp
lea    -0x2e0(%rbp),%rdi
lea    0xec7(%rip),%rsi
mov    $0x2df,%edx
call   1040 <memcpy@plt>
lea    -0x2e0(%rbp),%rsi
lea    0x118e(%rip),%rdi
call   1030 <printf@plt>
add    $0x2e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printHelp>:
push   %rbx
sub    $0x2e0,%rsp
lea    0xed1(%rip),%rsi
mov    %rsp,%rbx
mov    $0x2df,%edx
mov    %rbx,%rdi
call   1040 <memcpy@plt>
lea    0x1199(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
add    $0x2e0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.printHelp.message = [735 x i8] c"Program:\0AAutor: Frantisek Kolacek (xkolac12@stud.fit.vutbr.cz)\0A\0APouziti: proj3 [moznosti]\0A -h - vypise napovedu\0A --test <filename> - zkontroluje format souboru\0A --add <filename> <filename> - secte dve matice\0A --mult <filename> <filename> - vynasobi dve matice\0A --trans <filename> - vypocita transpozici matice\0A --expr <filename> <filename> - vypocita dany vyraz\0A --water <row> <column> <filename> - oznaci hladinu vodniho toku\0A --carom <row> <column> <direction> <power> <filename> - oznaci drahu koule po kulecniku\0A\00"
@.str = [4 x i8] c"%s\0A\00"
define void @printHelp() {
%1 = alloca [735 x i8]
%2 = bitcast [735 x i8]* %1 to i8*
%3 = getelementptr inbounds [735 x i8], [735 x i8]* %1, i64 0, i64 0
%4 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@__const.printHelp.message = [735 x i8] c"Program:\0AAutor: Frantisek Kolacek (xkolac12@stud.fit.vutbr.cz)\0A\0APouziti: proj3 [moznosti]\0A -h - vypise napovedu\0A --test <filename> - zkontroluje format souboru\0A --add <filename> <filename> - secte dve matice\0A --mult <filename> <filename> - vynasobi dve matice\0A --trans <filename> - vypocita transpozici matice\0A --expr <filename> <filename> - vypocita dany vyraz\0A --water <row> <column> <filename> - oznaci hladinu vodniho toku\0A --carom <row> <column> <direction> <power> <filename> - oznaci drahu koule po kulecniku\0A\00"
@.str = [4 x i8] c"%s\0A\00"
define void @printHelp() {
%1 = alloca [735 x i8]
%2 = getelementptr inbounds [735 x i8], [735 x i8]* %1, i64 0, i64 0
%3 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %2)
ret void
}