#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 show_help() {
  printf("Argumenty programu:\n");
  printf("\t --help\n");
  printf("\t\t způsobí, že program vytiskne nápovědu používání programu a "
         "skončí.\n");
  printf("\t --sqrt X\n");
  printf("\t\t vypočítá a vypíše druhou odmocninu z čísla X.\n");
  printf("\t --asin X\n");
  printf("\t\t vypočítá a vypíše arcus sinus z čísla X.\n");
  printf("\t --triangle AX AY BX BY CX CY\n");
  printf("\t\t vypočítá a vypíše tři úhly troujúhelníku, který je dán vrcholy "
         "A=AX,AY, B=BX,BY a C=CX,CY.\n");
  printf("\nAutor: Stanislav Nechutny - xnechu01\n");
}


x86 assembly (clang, -O0):
<show_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xeee(%rip),%rdi
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
call   1030 <printf@plt>
lea    0xf32(%rip),%rdi
call   1030 <printf@plt>
lea    0xf32(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf87(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9b(%rip),%rdi
call   1030 <printf@plt>
lea    0xff9(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef0(%rip),%rdi
call   1030 <puts@plt>
lea    0xeed(%rip),%rdi
call   1030 <puts@plt>
lea    0xf32(%rip),%rdi
call   1030 <puts@plt>
lea    0xf31(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf83(%rip),%rdi
call   1030 <puts@plt>
lea    0xf96(%rip),%rdi
call   1030 <puts@plt>
lea    0xff3(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"Argumenty programu:\0A\00"
@.str.1 = [10 x i8] c"\09 --help\0A\00"
@.str.2 = [82 x i8] c"\09\09 zp\C5\AFsob\C3\AD, \C5\BEe program vytiskne n\C3\A1pov\C4\9Bdu pou\C5\BE\C3\ADv\C3\A1n\C3\AD programu a skon\C4\8D\C3\AD.\0A\00"
@.str.3 = [12 x i8] c"\09 --sqrt X\0A\00"
@.str.4 = [57 x i8] c"\09\09 vypo\C4\8D\C3\ADt\C3\A1 a vyp\C3\AD\C5\A1e druhou odmocninu z \C4\8D\C3\ADsla X.\0A\00"
@.str.5 = [12 x i8] c"\09 --asin X\0A\00"
@.str.6 = [52 x i8] c"\09\09 vypo\C4\8D\C3\ADt\C3\A1 a vyp\C3\AD\C5\A1e arcus sinus z \C4\8D\C3\ADsla X.\0A\00"
@.str.7 = [32 x i8] c"\09 --triangle AX AY BX BY CX CY\0A\00"
@.str.8 = [106 x i8] c"\09\09 vypo\C4\8D\C3\ADt\C3\A1 a vyp\C3\AD\C5\A1e t\C5\99i \C3\BAhly trouj\C3\BAheln\C3\ADku, kter\C3\BD je d\C3\A1n vrcholy A=AX,AY, B=BX,BY a C=CX,CY.\0A\00"
@.str.9 = [39 x i8] c"\0AAutor: Stanislav Nechutny - xnechu01\0A\00"
define void @show_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [20 x i8] c"Argumenty programu:\00"
@str.10 = [9 x i8] c"\09 --help\00"
@str.11 = [81 x i8] c"\09\09 zp\C5\AFsob\C3\AD, \C5\BEe program vytiskne n\C3\A1pov\C4\9Bdu pou\C5\BE\C3\ADv\C3\A1n\C3\AD programu a skon\C4\8D\C3\AD.\00"
@str.12 = [11 x i8] c"\09 --sqrt X\00"
@str.13 = [56 x i8] c"\09\09 vypo\C4\8D\C3\ADt\C3\A1 a vyp\C3\AD\C5\A1e druhou odmocninu z \C4\8D\C3\ADsla X.\00"
@str.14 = [11 x i8] c"\09 --asin X\00"
@str.15 = [51 x i8] c"\09\09 vypo\C4\8D\C3\ADt\C3\A1 a vyp\C3\AD\C5\A1e arcus sinus z \C4\8D\C3\ADsla X.\00"
@str.16 = [31 x i8] c"\09 --triangle AX AY BX BY CX CY\00"
@str.17 = [105 x i8] c"\09\09 vypo\C4\8D\C3\ADt\C3\A1 a vyp\C3\AD\C5\A1e t\C5\99i \C3\BAhly trouj\C3\BAheln\C3\ADku, kter\C3\BD je d\C3\A1n vrcholy A=AX,AY, B=BX,BY a C=CX,CY.\00"
@str.18 = [38 x i8] c"\0AAutor: Stanislav Nechutny - xnechu01\00"
define void @show_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.10, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.11, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.12, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.13, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.14, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.15, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.16, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([105 x i8], [105 x i8]* @str.17, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.18, i64 0, i64 0))
ret void
}