#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*/ impFotograma(int);
int /*<<< orphan*/ minisleep();
void printPantallaNivel(int nivel) {
  int cont = 0;
  impFotograma(28 + nivel);
  while (cont < 70) {
    minisleep();
    cont++;
  }
}


x86 assembly (clang, -O0):
<printPantallaNivel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x4(%rbp),%edi
add    $0x1c,%edi
call   1030 <impFotograma@plt>
cmpl   $0x46,-0x8(%rbp)
jge    115c <printPantallaNivel+0x3c>
mov    $0x0,%al
call   1040 <minisleep@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    113d <printPantallaNivel+0x1d>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printPantallaNivel>:
push   %rax
add    $0x1c,%edi
call   1030 <impFotograma@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
call   1040 <minisleep@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <minisleep@plt>

LLVM IR (-O0):
define void @printPantallaNivel(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
%4 = load i32, i32* %2
%5 = add nsw i32 28, %4
%6 = call i32 @impFotograma(i32 %5)
br label %7
7: ; preds = %10, %1
%8 = load i32, i32* %3
%9 = icmp slt i32 %8, 70
br i1 %9, label %10, label %14
10: ; preds = %7
%11 = call i32 (...) @minisleep()
%12 = load i32, i32* %3
%13 = add nsw i32 %12, 1
store i32 %13, i32* %3
br label %7
14: ; preds = %7
ret void
}

LLVM IR (-O2):
define void @printPantallaNivel(i32 %0) {
%2 = add nsw i32 %0, 28
%3 = tail call i32 @impFotograma(i32 %2)
%4 = tail call i32 (...) @minisleep()
%5 = tail call i32 (...) @minisleep()
%6 = tail call i32 (...) @minisleep()
%7 = tail call i32 (...) @minisleep()
%8 = tail call i32 (...) @minisleep()
%9 = tail call i32 (...) @minisleep()
%10 = tail call i32 (...) @minisleep()
%11 = tail call i32 (...) @minisleep()
%12 = tail call i32 (...) @minisleep()
%13 = tail call i32 (...) @minisleep()
%14 = tail call i32 (...) @minisleep()
%15 = tail call i32 (...) @minisleep()
%16 = tail call i32 (...) @minisleep()
%17 = tail call i32 (...) @minisleep()
%18 = tail call i32 (...) @minisleep()
%19 = tail call i32 (...) @minisleep()
%20 = tail call i32 (...) @minisleep()
%21 = tail call i32 (...) @minisleep()
%22 = tail call i32 (...) @minisleep()
%23 = tail call i32 (...) @minisleep()
%24 = tail call i32 (...) @minisleep()
%25 = tail call i32 (...) @minisleep()
%26 = tail call i32 (...) @minisleep()
%27 = tail call i32 (...) @minisleep()
%28 = tail call i32 (...) @minisleep()
%29 = tail call i32 (...) @minisleep()
%30 = tail call i32 (...) @minisleep()
%31 = tail call i32 (...) @minisleep()
%32 = tail call i32 (...) @minisleep()
%33 = tail call i32 (...) @minisleep()
%34 = tail call i32 (...) @minisleep()
%35 = tail call i32 (...) @minisleep()
%36 = tail call i32 (...) @minisleep()
%37 = tail call i32 (...) @minisleep()
%38 = tail call i32 (...) @minisleep()
%39 = tail call i32 (...) @minisleep()
%40 = tail call i32 (...) @minisleep()
%41 = tail call i32 (...) @minisleep()
%42 = tail call i32 (...) @minisleep()
%43 = tail call i32 (...) @minisleep()
%44 = tail call i32 (...) @minisleep()
%45 = tail call i32 (...) @minisleep()
%46 = tail call i32 (...) @minisleep()
%47 = tail call i32 (...) @minisleep()
%48 = tail call i32 (...) @minisleep()
%49 = tail call i32 (...) @minisleep()
%50 = tail call i32 (...) @minisleep()
%51 = tail call i32 (...) @minisleep()
%52 = tail call i32 (...) @minisleep()
%53 = tail call i32 (...) @minisleep()
%54 = tail call i32 (...) @minisleep()
%55 = tail call i32 (...) @minisleep()
%56 = tail call i32 (...) @minisleep()
%57 = tail call i32 (...) @minisleep()
%58 = tail call i32 (...) @minisleep()
%59 = tail call i32 (...) @minisleep()
%60 = tail call i32 (...) @minisleep()
%61 = tail call i32 (...) @minisleep()
%62 = tail call i32 (...) @minisleep()
%63 = tail call i32 (...) @minisleep()
%64 = tail call i32 (...) @minisleep()
%65 = tail call i32 (...) @minisleep()
%66 = tail call i32 (...) @minisleep()
%67 = tail call i32 (...) @minisleep()
%68 = tail call i32 (...) @minisleep()
%69 = tail call i32 (...) @minisleep()
%70 = tail call i32 (...) @minisleep()
%71 = tail call i32 (...) @minisleep()
%72 = tail call i32 (...) @minisleep()
%73 = tail call i32 (...) @minisleep()
ret void
}