#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*/ LC_CTYPE;
int /*<<< orphan*/ printf(char *, char const *);
char *setlocale(int /*<<< orphan*/, char *);
void printHelp() {
  setlocale(LC_CTYPE, setlocale(LC_CTYPE, ""));
  const char *HELP_MESSAGE =
      "Program: Ceske razeni\n"
      "Autor: Frantisek Kolacek (xkolac12@stud.fit.vutbr.cz)\n\n"
      "Pouziti: proj4 [moznosti] <inputFile> <outputFile>\n"
      " -h                                                    - vypise "
      "napovedu\n"
      " --loc <locale> <inputFile> <outputFile>               - umozni "
      "nastavit lokalizaci\n";
  printf("%s\n", HELP_MESSAGE);
}


x86 assembly (clang, -O0):
<printHelp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2eb9(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
lea    0xfd9(%rip),%rsi
call   1040 <setlocale@plt>
mov    -0xc(%rbp),%edi
mov    %rax,%rsi
call   1040 <setlocale@plt>
lea    0xea5(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xfb4(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printHelp>:
push   %rbx
mov    0x2ec0(%rip),%rax
mov    (%rax),%ebx
lea    0xfec(%rip),%rsi
mov    %ebx,%edi
call   1040 <setlocale@plt>
mov    %ebx,%edi
mov    %rax,%rsi
call   1040 <setlocale@plt>
lea    0xfd5(%rip),%rdi
lea    0xeb0(%rip),%rsi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@LC_CTYPE = global i32 0
@.str = [1 x i8] zeroinitializer
@.str.1 = [286 x i8] c"Program: Ceske razeni\0AAutor: Frantisek Kolacek (xkolac12@stud.fit.vutbr.cz)\0A\0APouziti: proj4 [moznosti] <inputFile> <outputFile>\0A -h - vypise napovedu\0A --loc <locale> <inputFile> <outputFile> - umozni nastavit lokalizaci\0A\00"
@.str.2 = [4 x i8] c"%s\0A\00"
define void @printHelp() {
%1 = alloca i8*
%2 = load i32, i32* @LC_CTYPE
%3 = load i32, i32* @LC_CTYPE
%4 = call i8* @setlocale(i32 %3, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%5 = call i8* @setlocale(i32 %2, i8* %4)
store i8* getelementptr inbounds ([286 x i8], [286 x i8]* @.str.1, i64 0, i64 0), i8** %1
%6 = load i8*, i8** %1
%7 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %6)
ret void
}

LLVM IR (-O2):
@LC_CTYPE = global i32 0
@.str = [1 x i8] zeroinitializer
@.str.1 = [286 x i8] c"Program: Ceske razeni\0AAutor: Frantisek Kolacek (xkolac12@stud.fit.vutbr.cz)\0A\0APouziti: proj4 [moznosti] <inputFile> <outputFile>\0A -h - vypise napovedu\0A --loc <locale> <inputFile> <outputFile> - umozni nastavit lokalizaci\0A\00"
@.str.2 = [4 x i8] c"%s\0A\00"
define void @printHelp() {
%1 = load i32, i32* @LC_CTYPE
%2 = tail call i8* @setlocale(i32 %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%3 = tail call i8* @setlocale(i32 %1, i8* %2)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([286 x i8], [286 x i8]* @.str.1, i64 0, i64 0))
ret void
}