#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 *, ...);
int zjisti(int, int, int, int);
void main(void) {
  int cislo = 0;
  printf("====================================================================="
         "\n");
  printf("  wykys 2015                                                         "
         "\n");
  printf("....................................................................."
         "\n");
  printf("  Mysli si cele cislo <1; 100> a odpovidej na otazka Y or N          "
         "\n");
  printf("====================================================================="
         "\n");
  if ((cislo = zjisti(50, 1, 100, -1))) {
    printf("*******************************************************************"
           "**\n");
    printf("  Tvoje cislo je %d.\n", cislo);
    printf("*******************************************************************"
           "**\n");
  } else {
    printf("*******************************************************************"
           "**\n");
    printf("  Podvadis, seru na tebe zmrde.                                    "
           "  \n");
    printf("*******************************************************************"
           "**\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf03(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf3c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf75(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x32,%edi
mov    $0x1,%esi
mov    $0x64,%edx
mov    $0xffffffff,%ecx
call   1030 <zjisti@plt>
mov    %eax,-0x4(%rbp)
cmp    $0x0,%eax
je     11cc <main+0xac>
lea    0xf7b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%esi
lea    0xfb1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf5c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11f6 <main+0xd6>
lea    0xf49(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf98(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf2d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xfb0(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xecf(%rip),%rdi
call   1040 <puts@plt>
lea    0xf09(%rip),%rdi
call   1040 <puts@plt>
lea    0xf43(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0x32,%edi
mov    $0x1,%esi
mov    $0x64,%edx
mov    $0xffffffff,%ecx
call   1030 <zjisti@plt>
test   %eax,%eax
je     11a9 <main+0x79>
mov    %eax,%ebx
lea    0xfe2(%rip),%rdi
call   1040 <puts@plt>
lea    0xe62(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    11c1 <main+0x91>
lea    0xfc4(%rip),%rdi
call   1040 <puts@plt>
lea    0xf72(%rip),%rdi
call   1040 <puts@plt>
lea    0xfac(%rip),%rdi
pop    %rbx
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [71 x i8] c"=====================================================================\0A\00"
@.str.1 = [71 x i8] c" wykys 2015 \0A\00"
@.str.2 = [71 x i8] c".....................................................................\0A\00"
@.str.3 = [71 x i8] c" Mysli si cele cislo <1; 100> a odpovidej na otazka Y or N \0A\00"
@.str.4 = [71 x i8] c"*********************************************************************\0A\00"
@.str.5 = [22 x i8] c" Tvoje cislo je %d.\0A\00"
@.str.6 = [71 x i8] c" Podvadis, seru na tebe zmrde. \0A\00"
define void @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @zjisti(i32 50, i32 1, i32 100, i32 -1)
store i32 %7, i32* %1
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %0
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* %1
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.4, i64 0, i64 0))
br label %18
14: ; preds = %0
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.4, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.6, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.4, i64 0, i64 0))
br label %18
18: ; preds = %14, %9
ret void
}

LLVM IR (-O2):
@.str.5 = [22 x i8] c" Tvoje cislo je %d.\0A\00"
@str.7 = [70 x i8] c" wykys 2015 \00"
@str.8 = [70 x i8] c".....................................................................\00"
@str.9 = [70 x i8] c" Mysli si cele cislo <1; 100> a odpovidej na otazka Y or N \00"
@str.10 = [70 x i8] c"=====================================================================\00"
@str.12 = [70 x i8] c" Podvadis, seru na tebe zmrde. \00"
@str.15 = [70 x i8] c"*********************************************************************\00"
define void @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.10, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.7, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.8, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.9, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.10, i64 0, i64 0))
%6 = tail call i32 @zjisti(i32 50, i32 1, i32 100, i32 -1)
%7 = icmp eq i32 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %0
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.15, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 %6)
br label %14
11: ; preds = %0
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.15, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.12, i64 0, i64 0))
br label %14
14: ; preds = %11, %8
%15 = phi i8* [ getelementptr inbounds ([70 x i8], [70 x i8]* @str.15, i64 0, i64 0), %11 ], [ getelementptr inbounds ([70 x i8], [70 x i8]* @str.15, i64 0, i64 0), %8 ]
%16 = tail call i32 @puts(i8* dereferenceable(1) %15)
ret void
}