#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 /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ sortiraj(int *);
int main() {
  int niz[3], i;
  for (i = 0; i < 3; i++) {
    scanf("%d", &niz[i]);
    if (niz[i] < 50 || niz[i] > 200) {
      printf("Izav opsega!\n");
      i--;
    }
  }
  sortiraj(niz);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jge    11b4 <main+0x84>
movslq -0x14(%rbp),%rax
lea    -0x10(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe9a(%rip),%rdi
call   1050 <scanf@plt>
movslq -0x14(%rbp),%rax
cmpl   $0x32,-0x10(%rbp,%rax,4)
jl     118c <main+0x5c>
movslq -0x14(%rbp),%rax
cmpl   $0xc8,-0x10(%rbp,%rax,4)
jle    11a1 <main+0x71>
lea    0xe70(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
jmp    11a6 <main+0x76>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1146 <main+0x16>
lea    -0x10(%rbp),%rdi
call   1040 <sortiraj@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
xor    %ebx,%ebx
lea    0xebb(%rip),%r15
mov    $0xffffff37,%r12d
lea    0xeb1(%rip),%r14
jmp    116a <main+0x3a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0x1(%rbx),%eax
cmp    $0x2,%ebx
mov    %eax,%ebx
jge    1198 <main+0x68>
movslq %ebx,%rbp
lea    (%rsp,%rbp,4),%rsi
add    $0x4,%rsi
mov    %r15,%rdi
call   1050 <scanf@plt>
mov    0x4(%rsp,%rbp,4),%eax
add    %r12d,%eax
cmp    $0xffffff68,%eax
ja     1160 <main+0x30>
mov    %r14,%rdi
call   1030 <puts@plt>
add    $0xffffffff,%ebx
jmp    1160 <main+0x30>
lea    0x4(%rsp),%rdi
call   1040 <sortiraj@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [14 x i8] c"Izav opsega!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x i32]
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
br label %4
4: ; preds = %28, %0
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 3
br i1 %6, label %7, label %31
7: ; preds = %4
%8 = load i32, i32* %3
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 %9
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %10)
%12 = load i32, i32* %3
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 %13
%15 = load i32, i32* %14
%16 = icmp slt i32 %15, 50
br i1 %16, label %23, label %17
17: ; preds = %7
%18 = load i32, i32* %3
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 %19
%21 = load i32, i32* %20
%22 = icmp sgt i32 %21, 200
br i1 %22, label %23, label %27
23: ; preds = %17, %7
%24 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%25 = load i32, i32* %3
%26 = add nsw i32 %25, -1
store i32 %26, i32* %3
br label %27
27: ; preds = %23, %17
br label %28
28: ; preds = %27
%29 = load i32, i32* %3
%30 = add nsw i32 %29, 1
store i32 %30, i32* %3
br label %4
31: ; preds = %4
%32 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%33 = call i32 @sortiraj(i32* %32)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@str = [13 x i8] c"Izav opsega!\00"
define i32 @main() {
%1 = alloca [3 x i32]
%2 = bitcast [3 x i32]* %1 to i8*
br label %3
3: ; preds = %0, %14
%4 = phi i32 [ 0, %0 ], [ %16, %14 ]
%5 = sext i32 %4 to i64
%6 = getelementptr inbounds [3 x i32], [3 x i32]* %1, i64 0, i64 %5
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %6)
%8 = load i32, i32* %6
%9 = add i32 %8, -201
%10 = icmp ult i32 %9, -151
br i1 %10, label %11, label %14
11: ; preds = %3
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
%13 = add nsw i32 %4, -1
br label %14
14: ; preds = %3, %11
%15 = phi i32 [ %13, %11 ], [ %4, %3 ]
%16 = add nsw i32 %15, 1
%17 = icmp slt i32 %15, 2
br i1 %17, label %3, label %18
18: ; preds = %14
%19 = getelementptr inbounds [3 x i32], [3 x i32]* %1, i64 0, i64 0
%20 = call i32 @sortiraj(i32* %19)
ret i32 0
}