#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*/ ispisi(int, int, int);
int /*<<< orphan*/ izadji_iz_ko(int);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ udji_u_ko(int);
void proces_i(int i) {
  int k, m;
  for (k = 1; k <= 5; k++) {
    udji_u_ko(i);
    for (m = 1; m <= 5; m++) {
      ispisi(i, k, m);
      sleep(1);
    }
    izadji_iz_ko(i);
  }
}


x86 assembly (clang, -O0):
<proces_i>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jg     11b1 <proces_i+0x71>
mov    -0x4(%rbp),%edi
call   1060 <udji_u_ko@plt>
movl   $0x1,-0xc(%rbp)
cmpl   $0x5,-0xc(%rbp)
jg     119b <proces_i+0x5b>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1030 <ispisi@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    116b <proces_i+0x2b>
mov    -0x4(%rbp),%edi
call   1040 <izadji_iz_ko@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1152 <proces_i+0x12>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<proces_i>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
mov    $0x1,%ebp
nopw   0x0(%rax,%rax,1)
mov    %ebx,%edi
call   1060 <udji_u_ko@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x1,%edx
call   1030 <ispisi@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x2,%edx
call   1030 <ispisi@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x3,%edx
call   1030 <ispisi@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x4,%edx
call   1030 <ispisi@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    $0x5,%edx
call   1030 <ispisi@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
mov    %ebx,%edi
call   1040 <izadji_iz_ko@plt>
add    $0x1,%ebp
cmp    $0x6,%ebp
jne    1150 <proces_i+0x10>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define void @proces_i(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %2
store i32 1, i32* %3
br label %5
5: ; preds = %26, %1
%6 = load i32, i32* %3
%7 = icmp sle i32 %6, 5
br i1 %7, label %8, label %29
8: ; preds = %5
%9 = load i32, i32* %2
%10 = call i32 @udji_u_ko(i32 %9)
store i32 1, i32* %4
br label %11
11: ; preds = %20, %8
%12 = load i32, i32* %4
%13 = icmp sle i32 %12, 5
br i1 %13, label %14, label %23
14: ; preds = %11
%15 = load i32, i32* %2
%16 = load i32, i32* %3
%17 = load i32, i32* %4
%18 = call i32 @ispisi(i32 %15, i32 %16, i32 %17)
%19 = call i32 @sleep(i32 1)
br label %20
20: ; preds = %14
%21 = load i32, i32* %4
%22 = add nsw i32 %21, 1
store i32 %22, i32* %4
br label %11
23: ; preds = %11
%24 = load i32, i32* %2
%25 = call i32 @izadji_iz_ko(i32 %24)
br label %26
26: ; preds = %23
%27 = load i32, i32* %3
%28 = add nsw i32 %27, 1
store i32 %28, i32* %3
br label %5
29: ; preds = %5
ret void
}

LLVM IR (-O2):
define void @proces_i(i32 %0) {
br label %2
2: ; preds = %1, %2
%3 = phi i32 [ 1, %1 ], [ %16, %2 ]
%4 = tail call i32 @udji_u_ko(i32 %0)
%5 = tail call i32 @ispisi(i32 %0, i32 %3, i32 1)
%6 = tail call i32 @sleep(i32 1)
%7 = tail call i32 @ispisi(i32 %0, i32 %3, i32 2)
%8 = tail call i32 @sleep(i32 1)
%9 = tail call i32 @ispisi(i32 %0, i32 %3, i32 3)
%10 = tail call i32 @sleep(i32 1)
%11 = tail call i32 @ispisi(i32 %0, i32 %3, i32 4)
%12 = tail call i32 @sleep(i32 1)
%13 = tail call i32 @ispisi(i32 %0, i32 %3, i32 5)
%14 = tail call i32 @sleep(i32 1)
%15 = tail call i32 @izadji_iz_ko(i32 %0)
%16 = add nuw nsw i32 %3, 1
%17 = icmp eq i32 %16, 6
br i1 %17, label %18, label %2
18: ; preds = %2
ret void
}