#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*/ prehod(int *, int *);
int /*<<< orphan*/ printf(char *, ...);
int scanf(char *, int *);
int main() {
  int pole[8] = {
      0,
  };
  unsigned int minimum = 0;
  printf("Celkem zadej %u cisel.\n", 8);
  for (unsigned int i = 0; i < 8; ++i) {
    printf("Ted zadavas cislo %u z %u: ", i + 1, 8);
    if (scanf("%i", &pole[i]) != 1) {
      printf("Chybne zadani\n\a");
      return 1;
    }
  }
  for (unsigned int j = 0; j < 8; ++j) {
    minimum = j;
    for (unsigned int i = j; i < 8; ++i) {
      if (pole[i] < pole[minimum])
        minimum = i;
    }
    prehod(&pole[j], &pole[minimum]);
  }
  printf("Setridene pole je: {");
  for (unsigned int i = 0; i < 8; ++i) {
    if (i == (8 - 1))
      printf("%i", pole[i]);
    else
      printf("%i, ", pole[i]);
  }
  printf("}\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1040 <memset@plt>
movl   $0x0,-0x34(%rbp)
lea    0xe93(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0x8,-0x38(%rbp)
jae    11f3 <main+0xb3>
mov    -0x38(%rbp),%esi
add    $0x1,%esi
lea    0xe81(%rip),%rdi
mov    $0x8,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%eax
lea    -0x30(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe7c(%rip),%rdi
call   1060 <scanf@plt>
cmp    $0x1,%eax
je     11e0 <main+0xa0>
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    12f6 <main+0x1b6>
jmp    11e5 <main+0xa5>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1180 <main+0x40>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x8,-0x3c(%rbp)
jae    1276 <main+0x136>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x40(%rbp)
cmpl   $0x8,-0x40(%rbp)
jae    1247 <main+0x107>
mov    -0x40(%rbp),%eax
mov    -0x30(%rbp,%rax,4),%eax
mov    -0x34(%rbp),%ecx
cmp    -0x30(%rbp,%rcx,4),%eax
jge    1234 <main+0xf4>
mov    -0x40(%rbp),%eax
mov    %eax,-0x34(%rbp)
jmp    1239 <main+0xf9>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1210 <main+0xd0>
mov    -0x3c(%rbp),%eax
lea    -0x30(%rbp),%rdi
shl    $0x2,%rax
add    %rax,%rdi
mov    -0x34(%rbp),%eax
lea    -0x30(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
call   1050 <prehod@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11fa <main+0xba>
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x44(%rbp)
cmpl   $0x8,-0x44(%rbp)
jae    12e1 <main+0x1a1>
cmpl   $0x7,-0x44(%rbp)
jne    12b9 <main+0x179>
mov    -0x44(%rbp),%eax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xd87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12ce <main+0x18e>
mov    -0x44(%rbp),%eax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xd95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12d3 <main+0x193>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    128b <main+0x14b>
lea    0xd79(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
lea    0xe9f(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea4(%rip),%rdi
mov    $0x1,%r13d
mov    $0x1,%esi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea2(%rip),%rdi
mov    %rsp,%rsi
call   1060 <scanf@plt>
cmp    $0x1,%eax
jne    15a8 <main+0x468>
lea    0xe6e(%rip),%rdi
mov    $0x2,%esi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x4(%rsp),%rbp
lea    0xe6d(%rip),%rdi
mov    %rbp,%rsi
call   1060 <scanf@plt>
cmp    $0x1,%eax
jne    15a8 <main+0x468>
lea    0xe39(%rip),%rdi
mov    $0x3,%esi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rbx
lea    0xe38(%rip),%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
cmp    $0x1,%eax
jne    15a8 <main+0x468>
lea    0xe04(%rip),%rdi
mov    $0x4,%esi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc(%rsp),%r12
lea    0xe03(%rip),%rdi
mov    %r12,%rsi
call   1060 <scanf@plt>
cmp    $0x1,%eax
jne    15a8 <main+0x468>
lea    0xdcf(%rip),%rdi
mov    $0x5,%esi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10(%rsp),%r14
lea    0xdce(%rip),%rdi
mov    %r14,%rsi
call   1060 <scanf@plt>
cmp    $0x1,%eax
jne    15a8 <main+0x468>
lea    0xd9a(%rip),%rdi
mov    $0x6,%esi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x14(%rsp),%r15
lea    0xd99(%rip),%rdi
mov    %r15,%rsi
call   1060 <scanf@plt>
cmp    $0x1,%eax
jne    15a8 <main+0x468>
lea    0xd65(%rip),%rdi
mov    $0x7,%esi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x18(%rsp),%rsi
lea    0xd64(%rip),%rdi
call   1060 <scanf@plt>
cmp    $0x1,%eax
jne    15a8 <main+0x468>
lea    0xd33(%rip),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1c(%rsp),%rsi
lea    0xd32(%rip),%rdi
call   1060 <scanf@plt>
cmp    $0x1,%eax
jne    15a8 <main+0x468>
mov    0x4(%rsp),%eax
xor    %ecx,%ecx
cmp    (%rsp),%eax
mov    0x8(%rsp),%eax
setl   %cl
cmp    (%rsp,%rcx,4),%eax
mov    $0x2,%eax
cmovge %ecx,%eax
mov    0xc(%rsp),%ecx
cmp    (%rsp,%rax,4),%ecx
mov    $0x3,%r13d
cmovl  %r13d,%eax
mov    0x10(%rsp),%ecx
cmp    (%rsp,%rax,4),%ecx
mov    $0x4,%ecx
cmovl  %ecx,%eax
mov    0x14(%rsp),%ecx
cmp    (%rsp,%rax,4),%ecx
mov    $0x5,%ecx
cmovl  %ecx,%eax
mov    0x18(%rsp),%ecx
cmp    (%rsp,%rax,4),%ecx
mov    $0x6,%ecx
cmovl  %ecx,%eax
mov    0x1c(%rsp),%ecx
cmp    (%rsp,%rax,4),%ecx
mov    $0x7,%ecx
cmovl  %ecx,%eax
lea    (%rsp,%rax,4),%rsi
mov    %rsp,%rdi
call   1050 <prehod@plt>
mov    0x8(%rsp),%ecx
mov    0xc(%rsp),%edx
xor    %eax,%eax
cmp    0x4(%rsp),%ecx
setl   %al
add    $0x1,%eax
cmp    (%rsp,%rax,4),%edx
cmovl  %r13d,%eax
mov    0x10(%rsp),%ecx
cmp    (%rsp,%rax,4),%ecx
mov    $0x4,%ecx
cmovl  %ecx,%eax
mov    $0x4,%r13d
mov    0x14(%rsp),%ecx
cmp    (%rsp,%rax,4),%ecx
mov    $0x5,%ecx
cmovl  %ecx,%eax
mov    0x18(%rsp),%ecx
cmp    (%rsp,%rax,4),%ecx
mov    $0x6,%ecx
cmovl  %ecx,%eax
mov    0x1c(%rsp),%ecx
cmp    (%rsp,%rax,4),%ecx
mov    $0x7,%ecx
cmovl  %ecx,%eax
lea    (%rsp,%rax,4),%rsi
mov    %rbp,%rdi
call   1050 <prehod@plt>
mov    0xc(%rsp),%eax
mov    0x10(%rsp),%ecx
xor    %edx,%edx
cmp    0x8(%rsp),%eax
setl   %dl
or     $0x2,%edx
cmp    (%rsp,%rdx,4),%ecx
cmovl  %r13d,%edx
mov    0x14(%rsp),%eax
cmp    (%rsp,%rdx,4),%eax
mov    $0x5,%r13d
cmovl  %r13d,%edx
mov    0x18(%rsp),%eax
cmp    (%rsp,%rdx,4),%eax
mov    $0x6,%ebp
cmovl  %ebp,%edx
mov    0x1c(%rsp),%eax
cmp    (%rsp,%rdx,4),%eax
mov    $0x7,%eax
cmovl  %eax,%edx
lea    (%rsp,%rdx,4),%rsi
mov    %rbx,%rdi
call   1050 <prehod@plt>
mov    0x10(%rsp),%eax
mov    0x14(%rsp),%ecx
xor    %edx,%edx
cmp    0xc(%rsp),%eax
setl   %dl
add    $0x3,%edx
cmp    (%rsp,%rdx,4),%ecx
cmovl  %r13d,%edx
mov    0x18(%rsp),%eax
cmp    (%rsp,%rdx,4),%eax
cmovl  %ebp,%edx
mov    $0x6,%ebp
mov    0x1c(%rsp),%eax
cmp    (%rsp,%rdx,4),%eax
mov    $0x7,%ebx
cmovl  %ebx,%edx
lea    (%rsp,%rdx,4),%rsi
mov    %r12,%rdi
call   1050 <prehod@plt>
mov    0x14(%rsp),%eax
mov    0x18(%rsp),%ecx
xor    %edx,%edx
cmp    0x10(%rsp),%eax
setl   %dl
or     $0x4,%edx
cmp    (%rsp,%rdx,4),%ecx
cmovl  %ebp,%edx
mov    0x1c(%rsp),%eax
cmp    (%rsp,%rdx,4),%eax
cmovl  %ebx,%edx
mov    $0x7,%ebx
lea    (%rsp,%rdx,4),%rsi
mov    %r14,%rdi
call   1050 <prehod@plt>
mov    0x18(%rsp),%eax
mov    0x1c(%rsp),%ecx
xor    %edx,%edx
cmp    0x14(%rsp),%eax
setl   %dl
add    $0x5,%edx
cmp    (%rsp,%rdx,4),%ecx
cmovl  %ebx,%edx
lea    (%rsp,%rdx,4),%rsi
mov    %r15,%rdi
call   1050 <prehod@plt>
mov    0x1c(%rsp),%eax
xor    %ecx,%ecx
cmp    0x18(%rsp),%eax
setl   %cl
lea    (%rsp,%rcx,4),%rsi
add    $0x18,%rsi
lea    0x18(%rsp),%rdi
call   1050 <prehod@plt>
lea    0x1c(%rsp),%rdi
mov    %rdi,%rsi
call   1050 <prehod@plt>
lea    0xb31(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%esi
lea    0xb35(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%esi
lea    0xaa4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xac3(%rip),%rdi
call   1030 <puts@plt>
xor    %r13d,%r13d
jmp    15b6 <main+0x476>
lea    0xa88(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13d,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [24 x i8] c"Celkem zadej %u cisel.\0A\00"
@.str.1 = [28 x i8] c"Ted zadavas cislo %u z %u: \00"
@.str.2 = [3 x i8] c"%i\00"
@.str.3 = [16 x i8] c"Chybne zadani\0A\07\00"
@.str.4 = [21 x i8] c"Setridene pole je: {\00"
@.str.5 = [5 x i8] c"%i, \00"
@.str.6 = [3 x i8] c"}\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [8 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
%8 = bitcast [8 x i32]* %2 to i8*
store i32 0, i32* %3
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 8)
store i32 0, i32* %4
br label %10
10: ; preds = %25, %0
%11 = load i32, i32* %4
%12 = icmp ult i32 %11, 8
br i1 %12, label %13, label %28
13: ; preds = %10
%14 = load i32, i32* %4
%15 = add i32 %14, 1
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %15, i32 8)
%17 = load i32, i32* %4
%18 = zext i32 %17 to i64
%19 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 %18
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %19)
%21 = icmp ne i32 %20, 1
br i1 %21, label %22, label %24
22: ; preds = %13
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %1
br label %91
24: ; preds = %13
br label %25
25: ; preds = %24
%26 = load i32, i32* %4
%27 = add i32 %26, 1
store i32 %27, i32* %4
br label %10
28: ; preds = %10
store i32 0, i32* %5
br label %29
29: ; preds = %62, %28
%30 = load i32, i32* %5
%31 = icmp ult i32 %30, 8
br i1 %31, label %32, label %65
32: ; preds = %29
%33 = load i32, i32* %5
store i32 %33, i32* %3
%34 = load i32, i32* %5
store i32 %34, i32* %6
br label %35
35: ; preds = %51, %32
%36 = load i32, i32* %6
%37 = icmp ult i32 %36, 8
br i1 %37, label %38, label %54
38: ; preds = %35
%39 = load i32, i32* %6
%40 = zext i32 %39 to i64
%41 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 %40
%42 = load i32, i32* %41
%43 = load i32, i32* %3
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 %44
%46 = load i32, i32* %45
%47 = icmp slt i32 %42, %46
br i1 %47, label %48, label %50
48: ; preds = %38
%49 = load i32, i32* %6
store i32 %49, i32* %3
br label %50
50: ; preds = %48, %38
br label %51
51: ; preds = %50
%52 = load i32, i32* %6
%53 = add i32 %52, 1
store i32 %53, i32* %6
br label %35
54: ; preds = %35
%55 = load i32, i32* %5
%56 = zext i32 %55 to i64
%57 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 %56
%58 = load i32, i32* %3
%59 = zext i32 %58 to i64
%60 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 %59
%61 = call i32 @prehod(i32* %57, i32* %60)
br label %62
62: ; preds = %54
%63 = load i32, i32* %5
%64 = add i32 %63, 1
store i32 %64, i32* %5
br label %29
65: ; preds = %29
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %7
br label %67
67: ; preds = %86, %65
%68 = load i32, i32* %7
%69 = icmp ult i32 %68, 8
br i1 %69, label %70, label %89
70: ; preds = %67
%71 = load i32, i32* %7
%72 = icmp eq i32 %71, 7
br i1 %72, label %73, label %79
73: ; preds = %70
%74 = load i32, i32* %7
%75 = zext i32 %74 to i64
%76 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 %75
%77 = load i32, i32* %76
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %77)
br label %85
79: ; preds = %70
%80 = load i32, i32* %7
%81 = zext i32 %80 to i64
%82 = getelementptr inbounds [8 x i32], [8 x i32]* %2, i64 0, i64 %81
%83 = load i32, i32* %82
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %83)
br label %85
85: ; preds = %79, %73
br label %86
86: ; preds = %85
%87 = load i32, i32* %7
%88 = add i32 %87, 1
store i32 %88, i32* %7
br label %67
89: ; preds = %67
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %1
br label %91
91: ; preds = %89, %22
%92 = load i32, i32* %1
ret i32 %92
}

LLVM IR (-O2):
@.str = [24 x i8] c"Celkem zadej %u cisel.\0A\00"
@.str.1 = [28 x i8] c"Ted zadavas cislo %u z %u: \00"
@.str.2 = [3 x i8] c"%i\00"
@.str.3 = [16 x i8] c"Chybne zadani\0A\07\00"
@.str.4 = [21 x i8] c"Setridene pole je: {\00"
@.str.5 = [5 x i8] c"%i, \00"
@str = [2 x i8] c"}\00"
define i32 @main() {
%1 = alloca [8 x i32]
%2 = bitcast [8 x i32]* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 8)
%4 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 8)
%5 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 0
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %5)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %43
8: ; preds = %0
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 8)
%10 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 1
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %10)
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %43
13: ; preds = %8
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 3, i32 8)
%15 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 2
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %15)
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %43
18: ; preds = %13
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 4, i32 8)
%20 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 3
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %20)
%22 = icmp eq i32 %21, 1
br i1 %22, label %23, label %43
23: ; preds = %18
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 5, i32 8)
%25 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 4
%26 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %25)
%27 = icmp eq i32 %26, 1
br i1 %27, label %28, label %43
28: ; preds = %23
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 6, i32 8)
%30 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 5
%31 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %30)
%32 = icmp eq i32 %31, 1
br i1 %32, label %33, label %43
33: ; preds = %28
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 7, i32 8)
%35 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 6
%36 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %35)
%37 = icmp eq i32 %36, 1
br i1 %37, label %38, label %43
38: ; preds = %33
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 8, i32 8)
%40 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 7
%41 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %40)
%42 = icmp eq i32 %41, 1
br i1 %42, label %45, label %43
43: ; preds = %38, %33, %28, %23, %18, %13, %8, %0
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
br label %239
45: ; preds = %38
%46 = load i32, i32* %10
%47 = load i32, i32* %5
%48 = icmp slt i32 %46, %47
%49 = zext i1 %48 to i32
%50 = load i32, i32* %15
%51 = zext i1 %48 to i64
%52 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %51
%53 = load i32, i32* %52
%54 = icmp slt i32 %50, %53
%55 = select i1 %54, i32 2, i32 %49
%56 = load i32, i32* %20
%57 = zext i32 %55 to i64
%58 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %57
%59 = load i32, i32* %58
%60 = icmp slt i32 %56, %59
%61 = select i1 %60, i32 3, i32 %55
%62 = load i32, i32* %25
%63 = zext i32 %61 to i64
%64 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %63
%65 = load i32, i32* %64
%66 = icmp slt i32 %62, %65
%67 = select i1 %66, i32 4, i32 %61
%68 = load i32, i32* %30
%69 = zext i32 %67 to i64
%70 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %69
%71 = load i32, i32* %70
%72 = icmp slt i32 %68, %71
%73 = select i1 %72, i32 5, i32 %67
%74 = load i32, i32* %35
%75 = zext i32 %73 to i64
%76 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %75
%77 = load i32, i32* %76
%78 = icmp slt i32 %74, %77
%79 = select i1 %78, i32 6, i32 %73
%80 = load i32, i32* %40
%81 = zext i32 %79 to i64
%82 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %81
%83 = load i32, i32* %82
%84 = icmp slt i32 %80, %83
%85 = select i1 %84, i32 7, i32 %79
%86 = zext i32 %85 to i64
%87 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %86
%88 = call i32 @prehod(i32* %5, i32* %87)
%89 = load i32, i32* %15
%90 = load i32, i32* %10
%91 = icmp slt i32 %89, %90
%92 = select i1 %91, i32 2, i32 1
%93 = load i32, i32* %20
%94 = zext i32 %92 to i64
%95 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %94
%96 = load i32, i32* %95
%97 = icmp slt i32 %93, %96
%98 = select i1 %97, i32 3, i32 %92
%99 = load i32, i32* %25
%100 = zext i32 %98 to i64
%101 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %100
%102 = load i32, i32* %101
%103 = icmp slt i32 %99, %102
%104 = select i1 %103, i32 4, i32 %98
%105 = load i32, i32* %30
%106 = zext i32 %104 to i64
%107 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %106
%108 = load i32, i32* %107
%109 = icmp slt i32 %105, %108
%110 = select i1 %109, i32 5, i32 %104
%111 = load i32, i32* %35
%112 = zext i32 %110 to i64
%113 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %112
%114 = load i32, i32* %113
%115 = icmp slt i32 %111, %114
%116 = select i1 %115, i32 6, i32 %110
%117 = load i32, i32* %40
%118 = zext i32 %116 to i64
%119 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %118
%120 = load i32, i32* %119
%121 = icmp slt i32 %117, %120
%122 = select i1 %121, i32 7, i32 %116
%123 = zext i32 %122 to i64
%124 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %123
%125 = call i32 @prehod(i32* %10, i32* %124)
%126 = load i32, i32* %20
%127 = load i32, i32* %15
%128 = icmp slt i32 %126, %127
%129 = select i1 %128, i32 3, i32 2
%130 = load i32, i32* %25
%131 = zext i32 %129 to i64
%132 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %131
%133 = load i32, i32* %132
%134 = icmp slt i32 %130, %133
%135 = select i1 %134, i32 4, i32 %129
%136 = load i32, i32* %30
%137 = zext i32 %135 to i64
%138 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %137
%139 = load i32, i32* %138
%140 = icmp slt i32 %136, %139
%141 = select i1 %140, i32 5, i32 %135
%142 = load i32, i32* %35
%143 = zext i32 %141 to i64
%144 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %143
%145 = load i32, i32* %144
%146 = icmp slt i32 %142, %145
%147 = select i1 %146, i32 6, i32 %141
%148 = load i32, i32* %40
%149 = zext i32 %147 to i64
%150 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %149
%151 = load i32, i32* %150
%152 = icmp slt i32 %148, %151
%153 = select i1 %152, i32 7, i32 %147
%154 = zext i32 %153 to i64
%155 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %154
%156 = call i32 @prehod(i32* %15, i32* %155)
%157 = load i32, i32* %25
%158 = load i32, i32* %20
%159 = icmp slt i32 %157, %158
%160 = select i1 %159, i32 4, i32 3
%161 = load i32, i32* %30
%162 = zext i32 %160 to i64
%163 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %162
%164 = load i32, i32* %163
%165 = icmp slt i32 %161, %164
%166 = select i1 %165, i32 5, i32 %160
%167 = load i32, i32* %35
%168 = zext i32 %166 to i64
%169 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %168
%170 = load i32, i32* %169
%171 = icmp slt i32 %167, %170
%172 = select i1 %171, i32 6, i32 %166
%173 = load i32, i32* %40
%174 = zext i32 %172 to i64
%175 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %174
%176 = load i32, i32* %175
%177 = icmp slt i32 %173, %176
%178 = select i1 %177, i32 7, i32 %172
%179 = zext i32 %178 to i64
%180 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %179
%181 = call i32 @prehod(i32* %20, i32* %180)
%182 = load i32, i32* %30
%183 = load i32, i32* %25
%184 = icmp slt i32 %182, %183
%185 = select i1 %184, i32 5, i32 4
%186 = load i32, i32* %35
%187 = zext i32 %185 to i64
%188 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %187
%189 = load i32, i32* %188
%190 = icmp slt i32 %186, %189
%191 = select i1 %190, i32 6, i32 %185
%192 = load i32, i32* %40
%193 = zext i32 %191 to i64
%194 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %193
%195 = load i32, i32* %194
%196 = icmp slt i32 %192, %195
%197 = select i1 %196, i32 7, i32 %191
%198 = zext i32 %197 to i64
%199 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %198
%200 = call i32 @prehod(i32* %25, i32* %199)
%201 = load i32, i32* %35
%202 = load i32, i32* %30
%203 = icmp slt i32 %201, %202
%204 = select i1 %203, i32 6, i32 5
%205 = load i32, i32* %40
%206 = zext i32 %204 to i64
%207 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %206
%208 = load i32, i32* %207
%209 = icmp slt i32 %205, %208
%210 = select i1 %209, i32 7, i32 %204
%211 = zext i32 %210 to i64
%212 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %211
%213 = call i32 @prehod(i32* %30, i32* %212)
%214 = load i32, i32* %40
%215 = load i32, i32* %35
%216 = icmp slt i32 %214, %215
%217 = select i1 %216, i64 7, i64 6
%218 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %217
%219 = call i32 @prehod(i32* %35, i32* %218)
%220 = call i32 @prehod(i32* %40, i32* %40)
%221 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%222 = load i32, i32* %5
%223 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %222)
%224 = load i32, i32* %10
%225 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %224)
%226 = load i32, i32* %15
%227 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %226)
%228 = load i32, i32* %20
%229 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %228)
%230 = load i32, i32* %25
%231 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %230)
%232 = load i32, i32* %30
%233 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %232)
%234 = load i32, i32* %35
%235 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %234)
%236 = load i32, i32* %40
%237 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %236)
%238 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
br label %239
239: ; preds = %43, %45
%240 = phi i32 [ 0, %45 ], [ 1, %43 ]
ret i32 %240
}