#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 *);
void imprimeSol(int r[]) {
  int i, j;
  for (i = 0; i < 14; i++) {
    for (j = 0; j < 14; j++) {
      if (r[i] == j) {
        printf(" R ");
      } else
        printf(" - ");
    }
    printf("\n");
  }
  for (i = 0; i < 14; i++)
    printf("___");
  printf("\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<imprimeSol>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0xe,-0xc(%rbp)
jge    119c <imprimeSol+0x8c>
movl   $0x0,-0x10(%rbp)
cmpl   $0xe,-0x10(%rbp)
jge    1182 <imprimeSol+0x72>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x10(%rbp),%eax
jne    1163 <imprimeSol+0x53>
lea    0xea7(%rip),%rdi
call   1030 <printf@plt>
jmp    116f <imprimeSol+0x5f>
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
jmp    1174 <imprimeSol+0x64>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1134 <imprimeSol+0x24>
lea    0xe7f(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1123 <imprimeSol+0x13>
movl   $0x0,-0xc(%rbp)
cmpl   $0xe,-0xc(%rbp)
jge    11c7 <imprimeSol+0xb7>
lea    0xe56(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11a3 <imprimeSol+0x93>
lea    0xe3a(%rip),%rdi
call   1030 <printf@plt>
lea    0xe2e(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<imprimeSol>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r14
xor    %ebx,%ebx
lea    0xecc(%rip),%r15
lea    0xec9(%rip),%r12
nopl   0x0(%rax,%rax,1)
cmpl   $0x0,(%r14,%rbx,4)
mov    %r12,%rdi
cmove  %r15,%rdi
call   1040 <printf@plt>
cmpl   $0x1,(%r14,%rbx,4)
mov    %r12,%rdi
cmove  %r15,%rdi
call   1040 <printf@plt>
cmpl   $0x2,(%r14,%rbx,4)
mov    %r12,%rdi
cmove  %r15,%rdi
call   1040 <printf@plt>
cmpl   $0x3,(%r14,%rbx,4)
mov    %r12,%rdi
cmove  %r15,%rdi
call   1040 <printf@plt>
cmpl   $0x4,(%r14,%rbx,4)
mov    %r12,%rdi
cmove  %r15,%rdi
call   1040 <printf@plt>
cmpl   $0x5,(%r14,%rbx,4)
mov    %r12,%rdi
cmove  %r15,%rdi
call   1040 <printf@plt>
cmpl   $0x6,(%r14,%rbx,4)
mov    %r12,%rdi
cmove  %r15,%rdi
call   1040 <printf@plt>
cmpl   $0x7,(%r14,%rbx,4)
mov    %r12,%rdi
cmove  %r15,%rdi
call   1040 <printf@plt>
cmpl   $0x8,(%r14,%rbx,4)
mov    %r12,%rdi
cmove  %r15,%rdi
call   1040 <printf@plt>
cmpl   $0x9,(%r14,%rbx,4)
mov    %r12,%rdi
cmove  %r15,%rdi
call   1040 <printf@plt>
cmpl   $0xa,(%r14,%rbx,4)
mov    %r12,%rdi
cmove  %r15,%rdi
call   1040 <printf@plt>
cmpl   $0xb,(%r14,%rbx,4)
mov    %r12,%rdi
cmove  %r15,%rdi
call   1040 <printf@plt>
cmpl   $0xc,(%r14,%rbx,4)
mov    %r12,%rdi
cmove  %r15,%rdi
call   1040 <printf@plt>
cmpl   $0xd,(%r14,%rbx,4)
mov    %r12,%rdi
cmove  %r15,%rdi
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    $0xe,%rbx
jne    1140 <imprimeSol+0x20>
lea    0xdbb(%rip),%rbx
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [4 x i8] c" R \00"
@.str.1 = [4 x i8] c" - \00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [4 x i8] c"___\00"
define void @imprimeSol(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
store i32* %0, i32** %2
store i32 0, i32* %3
br label %5
5: ; preds = %30, %1
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 14
br i1 %7, label %8, label %33
8: ; preds = %5
store i32 0, i32* %4
br label %9
9: ; preds = %25, %8
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 14
br i1 %11, label %12, label %28
12: ; preds = %9
%13 = load i32*, i32** %2
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, i32* %13, i64 %15
%17 = load i32, i32* %16
%18 = load i32, i32* %4
%19 = icmp eq i32 %17, %18
br i1 %19, label %20, label %22
20: ; preds = %12
%21 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %24
22: ; preds = %12
%23 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %24
24: ; preds = %22, %20
br label %25
25: ; preds = %24
%26 = load i32, i32* %4
%27 = add nsw i32 %26, 1
store i32 %27, i32* %4
br label %9
28: ; preds = %9
%29 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %30
30: ; preds = %28
%31 = load i32, i32* %3
%32 = add nsw i32 %31, 1
store i32 %32, i32* %3
br label %5
33: ; preds = %5
store i32 0, i32* %3
br label %34
34: ; preds = %39, %33
%35 = load i32, i32* %3
%36 = icmp slt i32 %35, 14
br i1 %36, label %37, label %42
37: ; preds = %34
%38 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
br label %39
39: ; preds = %37
%40 = load i32, i32* %3
%41 = add nsw i32 %40, 1
store i32 %41, i32* %3
br label %34
42: ; preds = %34
%43 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%44 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c" R \00"
@.str.1 = [4 x i8] c" - \00"
@.str.3 = [4 x i8] c"___\00"
define void @imprimeSol(i32* nocapture %0) {
br label %2
2: ; preds = %1, %2
%3 = phi i64 [ 0, %1 ], [ %62, %2 ]
%4 = getelementptr inbounds i32, i32* %0, i64 %3
%5 = load i32, i32* %4
%6 = icmp eq i32 %5, 0
%7 = select i1 %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%8 = tail call i32 @printf(i8* dereferenceable(1) %7)
%9 = load i32, i32* %4
%10 = icmp eq i32 %9, 1
%11 = select i1 %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%12 = tail call i32 @printf(i8* dereferenceable(1) %11)
%13 = load i32, i32* %4
%14 = icmp eq i32 %13, 2
%15 = select i1 %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%16 = tail call i32 @printf(i8* dereferenceable(1) %15)
%17 = load i32, i32* %4
%18 = icmp eq i32 %17, 3
%19 = select i1 %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%20 = tail call i32 @printf(i8* dereferenceable(1) %19)
%21 = load i32, i32* %4
%22 = icmp eq i32 %21, 4
%23 = select i1 %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%24 = tail call i32 @printf(i8* dereferenceable(1) %23)
%25 = load i32, i32* %4
%26 = icmp eq i32 %25, 5
%27 = select i1 %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%28 = tail call i32 @printf(i8* dereferenceable(1) %27)
%29 = load i32, i32* %4
%30 = icmp eq i32 %29, 6
%31 = select i1 %30, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%32 = tail call i32 @printf(i8* dereferenceable(1) %31)
%33 = load i32, i32* %4
%34 = icmp eq i32 %33, 7
%35 = select i1 %34, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%36 = tail call i32 @printf(i8* dereferenceable(1) %35)
%37 = load i32, i32* %4
%38 = icmp eq i32 %37, 8
%39 = select i1 %38, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%40 = tail call i32 @printf(i8* dereferenceable(1) %39)
%41 = load i32, i32* %4
%42 = icmp eq i32 %41, 9
%43 = select i1 %42, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%44 = tail call i32 @printf(i8* dereferenceable(1) %43)
%45 = load i32, i32* %4
%46 = icmp eq i32 %45, 10
%47 = select i1 %46, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%48 = tail call i32 @printf(i8* dereferenceable(1) %47)
%49 = load i32, i32* %4
%50 = icmp eq i32 %49, 11
%51 = select i1 %50, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%52 = tail call i32 @printf(i8* dereferenceable(1) %51)
%53 = load i32, i32* %4
%54 = icmp eq i32 %53, 12
%55 = select i1 %54, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%56 = tail call i32 @printf(i8* dereferenceable(1) %55)
%57 = load i32, i32* %4
%58 = icmp eq i32 %57, 13
%59 = select i1 %58, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%60 = tail call i32 @printf(i8* dereferenceable(1) %59)
%61 = tail call i32 @putchar(i32 10)
%62 = add nuw nsw i64 %3, 1
%63 = icmp eq i64 %62, 14
br i1 %63, label %64, label %2
64: ; preds = %2
%65 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%66 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%67 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%68 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%69 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%70 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%71 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%72 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%73 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%74 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%75 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%76 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%77 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%78 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%79 = tail call i32 @putchar(i32 10)
%80 = tail call i32 @putchar(i32 10)
ret void
}