#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_atras(int posicioHorizontalMario, int posicionVerticalMario,
                 int nivel1[14][212], int posicionHorizontalMarioRelativa) {
  int i, j;
  for (i = 0; i < 2; ++i) {
    system("clear");
    system("cls");
    posicionVerticalMario--;
    posicionVerticalMario--;
    if (posicionHorizontalMarioRelativa > 0)
      posicionHorizontalMarioRelativa--;
    impresionMapa(nivel1, 40, posicioHorizontalMario, posicionVerticalMario,
                  posicionHorizontalMarioRelativa);
    for (int j = 0; j < 100000000; ++j) {
    }
  }
  for (i = 0; i < 2; ++i) {
    system("clear");
    system("cls");
    posicionVerticalMario++;
    posicionVerticalMario++;
    if (posicionHorizontalMarioRelativa > 0)
      posicionHorizontalMarioRelativa--;
    impresionMapa(nivel1, 40, posicioHorizontalMario, posicionVerticalMario,
                  posicionHorizontalMarioRelativa);
    for (int j = 0; j < 100000000; ++j) {
    }
  }
}


x86 assembly (clang, -O0):
<salto_atras>:
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   $0x2,-0x18(%rbp)
jge    11d5 <salto_atras+0xb5>
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    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x14(%rbp)
jle    1183 <salto_atras+0x63>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%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    11c2 <salto_atras+0xa2>
jmp    11b4 <salto_atras+0x94>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11a2 <salto_atras+0x82>
jmp    11c7 <salto_atras+0xa7>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    113c <salto_atras+0x1c>
movl   $0x0,-0x18(%rbp)
cmpl   $0x2,-0x18(%rbp)
jge    1275 <salto_atras+0x155>
lea    0xe13(%rip),%rdi
call   1030 <system@plt>
lea    0xe0d(%rip),%rdi
call   1030 <system@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x14(%rbp)
jle    1223 <salto_atras+0x103>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%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    1262 <salto_atras+0x142>
jmp    1254 <salto_atras+0x134>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1242 <salto_atras+0x122>
jmp    1267 <salto_atras+0x147>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11dc <salto_atras+0xbc>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<salto_atras>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %ecx,%ebx
mov    %rdx,%r15
mov    %esi,%r14d
mov    %edi,%ebp
lea    0xec4(%rip),%r13
mov    %r13,%rdi
call   1030 <system@plt>
lea    0xebb(%rip),%rdi
call   1030 <system@plt>
lea    -0x2(%r14),%r12d
xor    %eax,%eax
test   %ebx,%ebx
setg   %al
sub    %eax,%ebx
mov    %r15,%rdi
mov    $0x28,%esi
mov    %ebp,%edx
mov    %r12d,%ecx
mov    %ebx,%r8d
call   1040 <impresionMapa@plt>
mov    %r13,%rdi
call   1030 <system@plt>
lea    0xe85(%rip),%rdi
call   1030 <system@plt>
lea    -0x4(%r14),%ecx
xor    %eax,%eax
test   %ebx,%ebx
setg   %al
sub    %eax,%ebx
mov    %r15,%rdi
mov    $0x28,%esi
mov    %ebp,%edx
mov    %ebx,%r8d
call   1040 <impresionMapa@plt>
mov    %r13,%rdi
call   1030 <system@plt>
lea    0xe52(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
test   %ebx,%ebx
setg   %al
sub    %eax,%ebx
mov    %r15,%rdi
mov    $0x28,%esi
mov    %ebp,%edx
mov    %r12d,%ecx
mov    %ebx,%r8d
call   1040 <impresionMapa@plt>
mov    %r13,%rdi
call   1030 <system@plt>
lea    0xe20(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
test   %ebx,%ebx
setg   %al
sub    %eax,%ebx
mov    %r15,%rdi
mov    $0x28,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %ebx,%r8d
add    $0x8,%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_atras(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 = %43, %4
%14 = load i32, i32* %9
%15 = icmp slt i32 %14, 2
br i1 %15, label %16, label %46
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 i32, i32* %6
%22 = add nsw i32 %21, -1
store i32 %22, i32* %6
%23 = load i32, i32* %8
%24 = icmp sgt i32 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %16
%26 = load i32, i32* %8
%27 = add nsw i32 %26, -1
store i32 %27, i32* %8
br label %28
28: ; preds = %25, %16
%29 = load [212 x i32]*, [212 x i32]** %7
%30 = bitcast [212 x i32]* %29 to i32**
%31 = load i32, i32* %5
%32 = load i32, i32* %6
%33 = load i32, i32* %8
%34 = call i32 @impresionMapa(i32** %30, i32 40, i32 %31, i32 %32, i32 %33)
store i32 0, i32* %11
br label %35
35: ; preds = %39, %28
%36 = load i32, i32* %11
%37 = icmp slt i32 %36, 100000000
br i1 %37, label %38, label %42
38: ; preds = %35
br label %39
39: ; preds = %38
%40 = load i32, i32* %11
%41 = add nsw i32 %40, 1
store i32 %41, i32* %11
br label %35
42: ; preds = %35
br label %43
43: ; preds = %42
%44 = load i32, i32* %9
%45 = add nsw i32 %44, 1
store i32 %45, i32* %9
br label %13
46: ; preds = %13
store i32 0, i32* %9
br label %47
47: ; preds = %77, %46
%48 = load i32, i32* %9
%49 = icmp slt i32 %48, 2
br i1 %49, label %50, label %80
50: ; preds = %47
%51 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%52 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%53 = load i32, i32* %6
%54 = add nsw i32 %53, 1
store i32 %54, i32* %6
%55 = load i32, i32* %6
%56 = add nsw i32 %55, 1
store i32 %56, i32* %6
%57 = load i32, i32* %8
%58 = icmp sgt i32 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %50
%60 = load i32, i32* %8
%61 = add nsw i32 %60, -1
store i32 %61, i32* %8
br label %62
62: ; preds = %59, %50
%63 = load [212 x i32]*, [212 x i32]** %7
%64 = bitcast [212 x i32]* %63 to i32**
%65 = load i32, i32* %5
%66 = load i32, i32* %6
%67 = load i32, i32* %8
%68 = call i32 @impresionMapa(i32** %64, i32 40, i32 %65, i32 %66, i32 %67)
store i32 0, i32* %12
br label %69
69: ; preds = %73, %62
%70 = load i32, i32* %12
%71 = icmp slt i32 %70, 100000000
br i1 %71, label %72, label %76
72: ; preds = %69
br label %73
73: ; preds = %72
%74 = load i32, i32* %12
%75 = add nsw i32 %74, 1
store i32 %75, i32* %12
br label %69
76: ; preds = %69
br label %77
77: ; preds = %76
%78 = load i32, i32* %9
%79 = add nsw i32 %78, 1
store i32 %79, i32* %9
br label %47
80: ; preds = %47
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@.str.1 = [4 x i8] c"cls\00"
define void @salto_atras(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, -2
%9 = icmp sgt i32 %3, 0
%10 = sext i1 %9 to i32
%11 = add nsw i32 %10, %3
%12 = tail call i32 @impresionMapa(i32** %5, i32 40, i32 %0, i32 %8, i32 %11)
%13 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%14 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%15 = add nsw i32 %1, -4
%16 = icmp sgt i32 %11, 0
%17 = sext i1 %16 to i32
%18 = add nsw i32 %11, %17
%19 = tail call i32 @impresionMapa(i32** %5, i32 40, i32 %0, i32 %15, i32 %18)
%20 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%21 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%22 = icmp sgt i32 %18, 0
%23 = sext i1 %22 to i32
%24 = add nsw i32 %18, %23
%25 = tail call i32 @impresionMapa(i32** %5, i32 40, i32 %0, i32 %8, i32 %24)
%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 = icmp sgt i32 %24, 0
%29 = sext i1 %28 to i32
%30 = add nsw i32 %24, %29
%31 = tail call i32 @impresionMapa(i32** %5, i32 40, i32 %0, i32 %1, i32 %30)
ret void
}