#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 printRelArr(int rel[3][12]) {
  int i, j;
  for (i = 0; i < 3; i++) {
    for (j = 0; j < 12; j++) {
      if (rel[i][j] == -1)
        printf("_ ");
      else
        printf("%d ", rel[i][j]);
    }
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<printRelArr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x3,-0xc(%rbp)
jge    11c1 <printRelArr+0xb1>
movl   $0x0,-0x10(%rbp)
cmpl   $0xc,-0x10(%rbp)
jge    11a5 <printRelArr+0x95>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
cmpl   $0xffffffff,(%rax,%rcx,4)
jne    116e <printRelArr+0x5e>
lea    0xe9e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1192 <printRelArr+0x82>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe78(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1197 <printRelArr+0x87>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1134 <printRelArr+0x24>
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1123 <printRelArr+0x13>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printRelArr>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r12
mov    $0x2c,%ebx
lea    0xec9(%rip),%r14
lea    0xec5(%rip),%r15
jmp    1165 <printRelArr+0x45>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x30,%rbx
cmp    $0xbc,%rbx
je     12e6 <printRelArr+0x1c6>
mov    -0x2c(%r12,%rbx,1),%esi
cmp    $0xffffffff,%esi
je     1180 <printRelArr+0x60>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    118a <printRelArr+0x6a>
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x28(%r12,%rbx,1),%esi
cmp    $0xffffffff,%esi
je     11a0 <printRelArr+0x80>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    11aa <printRelArr+0x8a>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x24(%r12,%rbx,1),%esi
cmp    $0xffffffff,%esi
je     11c0 <printRelArr+0xa0>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    11ca <printRelArr+0xaa>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x20(%r12,%rbx,1),%esi
cmp    $0xffffffff,%esi
je     11e0 <printRelArr+0xc0>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    11ea <printRelArr+0xca>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x1c(%r12,%rbx,1),%esi
cmp    $0xffffffff,%esi
je     1200 <printRelArr+0xe0>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    120a <printRelArr+0xea>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x18(%r12,%rbx,1),%esi
cmp    $0xffffffff,%esi
je     1220 <printRelArr+0x100>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    122a <printRelArr+0x10a>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x14(%r12,%rbx,1),%esi
cmp    $0xffffffff,%esi
je     1240 <printRelArr+0x120>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    124a <printRelArr+0x12a>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x10(%r12,%rbx,1),%esi
cmp    $0xffffffff,%esi
je     1260 <printRelArr+0x140>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    126a <printRelArr+0x14a>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0xc(%r12,%rbx,1),%esi
cmp    $0xffffffff,%esi
je     1280 <printRelArr+0x160>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    128a <printRelArr+0x16a>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x8(%r12,%rbx,1),%esi
cmp    $0xffffffff,%esi
je     12a0 <printRelArr+0x180>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    12aa <printRelArr+0x18a>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x4(%r12,%rbx,1),%esi
cmp    $0xffffffff,%esi
je     12c0 <printRelArr+0x1a0>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    12ca <printRelArr+0x1aa>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r12,%rbx,1),%esi
cmp    $0xffffffff,%esi
je     1140 <printRelArr+0x20>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    114a <printRelArr+0x2a>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

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