#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*/ impresionMapa(int **, int, int, int, int);
int /*<<< orphan*/ system(char *);
void salto(int posicioHorizontalMario, int posicionVerticalMario,
           int nivel1[14][212], int posicionHorizontalMarioRelativa) {
  int i, j;
  for (i = 0; i < 5; ++i) {
    system("clear");
    system("cls");
    posicionVerticalMario--;
    impresionMapa(nivel1, 40, posicioHorizontalMario, posicionVerticalMario,
                  posicionHorizontalMarioRelativa);
    for (int j = 0; j < 100000000; ++j) {
    }
  }
  for (i = 0; i < 5; ++i) {
    system("clear");
    system("cls");
    posicionVerticalMario++;
    impresionMapa(nivel1, 40, posicioHorizontalMario, posicionVerticalMario,
                  posicionHorizontalMarioRelativa);
    for (int j = 0; j < 100000000; ++j) {
    }
  }
}


x86 assembly (clang, -O0):
<salto>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0x5,-0x18(%rbp)
jge    11b9 <salto+0x99>
lea    0xeb3(%rip),%rdi
call   1030 <system@plt>
lea    0xead(%rip),%rdi
call   1030 <system@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    $0x28,%esi
call   1040 <impresionMapa@plt>
movl   $0x0,-0x20(%rbp)
cmpl   $0x5f5e100,-0x20(%rbp)
jge    11a6 <salto+0x86>
jmp    1198 <salto+0x78>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1186 <salto+0x66>
jmp    11ab <salto+0x8b>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    113c <salto+0x1c>
movl   $0x0,-0x18(%rbp)
cmpl   $0x5,-0x18(%rbp)
jge    123d <salto+0x11d>
lea    0xe2f(%rip),%rdi
call   1030 <system@plt>
lea    0xe29(%rip),%rdi
call   1030 <system@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    $0x28,%esi
call   1040 <impresionMapa@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x5f5e100,-0x24(%rbp)
jge    122a <salto+0x10a>
jmp    121c <salto+0xfc>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    120a <salto+0xea>
jmp    122f <salto+0x10f>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11c0 <salto+0xa0>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<salto>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %ecx,%r15d
mov    %rdx,%r14
mov    %esi,%ebx
mov    %edi,%ebp
lea    0xec1(%rip),%r12
mov    %r12,%rdi
call   1030 <system@plt>
lea    0xeb8(%rip),%r13
mov    %r13,%rdi
call   1030 <system@plt>
lea    -0x1(%rbx),%ecx
mov    %ecx,0xc(%rsp)
mov    %r14,%rdi
mov    $0x28,%esi
mov    %ebp,%edx
mov    %r15d,%r8d
call   1040 <impresionMapa@plt>
mov    %r12,%rdi
call   1030 <system@plt>
mov    %r13,%rdi
call   1030 <system@plt>
lea    -0x2(%rbx),%ecx
mov    %ecx,0x8(%rsp)
mov    %r14,%rdi
mov    $0x28,%esi
mov    %ebp,%edx
mov    %r15d,%r8d
call   1040 <impresionMapa@plt>
mov    %r12,%rdi
call   1030 <system@plt>
mov    %r13,%rdi
call   1030 <system@plt>
lea    -0x3(%rbx),%ecx
mov    %ecx,0x4(%rsp)
mov    %r14,%rdi
mov    $0x28,%esi
mov    %ebp,%edx
mov    %r15d,%r8d
call   1040 <impresionMapa@plt>
mov    %r12,%rdi
call   1030 <system@plt>
mov    %r13,%rdi
call   1030 <system@plt>
lea    -0x4(%rbx),%r13d
mov    %rbx,0x10(%rsp)
mov    %r14,%rdi
mov    $0x28,%esi
mov    %ebp,%edx
mov    %r13d,%ecx
mov    %r15d,%r8d
call   1040 <impresionMapa@plt>
mov    %r12,%rdi
call   1030 <system@plt>
lea    0xe08(%rip),%rdi
call   1030 <system@plt>
lea    -0x5(%rbx),%ecx
mov    %r14,%rdi
mov    $0x28,%esi
mov    %ebp,%edx
mov    %r15d,%r8d
call   1040 <impresionMapa@plt>
mov    %r12,%rdi
call   1030 <system@plt>
lea    0xddf(%rip),%rdi
mov    %rdi,%rbx
call   1030 <system@plt>
mov    %r14,%rdi
mov    $0x28,%esi
mov    %ebp,%edx
mov    %r13d,%ecx
mov    %r15d,%r8d
call   1040 <impresionMapa@plt>
mov    %r12,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %r14,%rdi
mov    $0x28,%esi
mov    %ebp,%edx
mov    0x4(%rsp),%ecx
mov    %r15d,%r8d
call   1040 <impresionMapa@plt>
mov    %r12,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %r14,%rdi
mov    $0x28,%esi
mov    %ebp,%edx
mov    0x8(%rsp),%ecx
mov    %r15d,%r8d
call   1040 <impresionMapa@plt>
mov    %r12,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %r14,%rdi
mov    $0x28,%esi
mov    %ebp,%edx
mov    0xc(%rsp),%ecx
mov    %r15d,%r8d
call   1040 <impresionMapa@plt>
mov    %r12,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %r14,%rdi
mov    $0x28,%esi
mov    %ebp,%edx
mov    0x10(%rsp),%rcx
mov    %r15d,%r8d
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <impresionMapa@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [4 x i8] c"cls\00"
define void @salto(i32 %0, i32 %1, [212 x i32]* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca [212 x i32]*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store [212 x i32]* %2, [212 x i32]** %7
store i32 %3, i32* %8
store i32 0, i32* %9
br label %13
13: ; preds = %35, %4
%14 = load i32, i32* %9
%15 = icmp slt i32 %14, 5
br i1 %15, label %16, label %38
16: ; preds = %13
%17 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%19 = load i32, i32* %6
%20 = add nsw i32 %19, -1
store i32 %20, i32* %6
%21 = load [212 x i32]*, [212 x i32]** %7
%22 = bitcast [212 x i32]* %21 to i32**
%23 = load i32, i32* %5
%24 = load i32, i32* %6
%25 = load i32, i32* %8
%26 = call i32 @impresionMapa(i32** %22, i32 40, i32 %23, i32 %24, i32 %25)
store i32 0, i32* %11
br label %27
27: ; preds = %31, %16
%28 = load i32, i32* %11
%29 = icmp slt i32 %28, 100000000
br i1 %29, label %30, label %34
30: ; preds = %27
br label %31
31: ; preds = %30
%32 = load i32, i32* %11
%33 = add nsw i32 %32, 1
store i32 %33, i32* %11
br label %27
34: ; preds = %27
br label %35
35: ; preds = %34
%36 = load i32, i32* %9
%37 = add nsw i32 %36, 1
store i32 %37, i32* %9
br label %13
38: ; preds = %13
store i32 0, i32* %9
br label %39
39: ; preds = %61, %38
%40 = load i32, i32* %9
%41 = icmp slt i32 %40, 5
br i1 %41, label %42, label %64
42: ; preds = %39
%43 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%44 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%45 = load i32, i32* %6
%46 = add nsw i32 %45, 1
store i32 %46, i32* %6
%47 = load [212 x i32]*, [212 x i32]** %7
%48 = bitcast [212 x i32]* %47 to i32**
%49 = load i32, i32* %5
%50 = load i32, i32* %6
%51 = load i32, i32* %8
%52 = call i32 @impresionMapa(i32** %48, i32 40, i32 %49, i32 %50, i32 %51)
store i32 0, i32* %12
br label %53
53: ; preds = %57, %42
%54 = load i32, i32* %12
%55 = icmp slt i32 %54, 100000000
br i1 %55, label %56, label %60
56: ; preds = %53
br label %57
57: ; preds = %56
%58 = load i32, i32* %12
%59 = add nsw i32 %58, 1
store i32 %59, i32* %12
br label %53
60: ; preds = %53
br label %61
61: ; preds = %60
%62 = load i32, i32* %9
%63 = add nsw i32 %62, 1
store i32 %63, i32* %9
br label %39
64: ; preds = %39
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@.str.1 = [4 x i8] c"cls\00"
define void @salto(i32 %0, i32 %1, [212 x i32]* %2, i32 %3) {
%5 = bitcast [212 x i32]* %2 to i32**
%6 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%8 = add nsw i32 %1, -1
%9 = tail call i32 @impresionMapa(i32** %5, i32 40, i32 %0, i32 %8, i32 %3)
%10 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%12 = add nsw i32 %1, -2
%13 = tail call i32 @impresionMapa(i32** %5, i32 40, i32 %0, i32 %12, i32 %3)
%14 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%15 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%16 = add nsw i32 %1, -3
%17 = tail call i32 @impresionMapa(i32** %5, i32 40, i32 %0, i32 %16, i32 %3)
%18 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%19 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%20 = add nsw i32 %1, -4
%21 = tail call i32 @impresionMapa(i32** %5, i32 40, i32 %0, i32 %20, i32 %3)
%22 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%23 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%24 = add nsw i32 %1, -5
%25 = tail call i32 @impresionMapa(i32** %5, i32 40, i32 %0, i32 %24, i32 %3)
%26 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%27 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%28 = tail call i32 @impresionMapa(i32** %5, i32 40, i32 %0, i32 %20, i32 %3)
%29 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%30 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%31 = tail call i32 @impresionMapa(i32** %5, i32 40, i32 %0, i32 %16, i32 %3)
%32 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%33 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%34 = tail call i32 @impresionMapa(i32** %5, i32 40, i32 %0, i32 %12, i32 %3)
%35 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%36 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%37 = tail call i32 @impresionMapa(i32** %5, i32 40, i32 %0, i32 %8, i32 %3)
%38 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%39 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%40 = tail call i32 @impresionMapa(i32** %5, i32 40, i32 %0, i32 %1, i32 %3)
ret void
}