#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 *, ...);
int /*<<< orphan*/ system(char *);
void printMaze(const char maze[][12], int xRow, int xCol) {
  int i, j;
  system("cls");
  for (i = 0; i < 12; i++) {
    for (j = 0; j < 12; j++) {
      if (i == xRow && j == xCol)
        printf("X ");
      else
        printf("%c ", maze[i][j]);
    }
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<printMaze>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
lea    0xec7(%rip),%rdi
call   1030 <system@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0xc,-0x14(%rbp)
jge    11df <printMaze+0xbf>
movl   $0x0,-0x18(%rbp)
cmpl   $0xc,-0x18(%rbp)
jge    11c3 <printMaze+0xa3>
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    118b <printMaze+0x6b>
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    118b <printMaze+0x6b>
lea    0xe85(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11b0 <printMaze+0x90>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11b5 <printMaze+0x95>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1156 <printMaze+0x36>
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1145 <printMaze+0x25>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printMaze>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edx,%r12d
mov    %esi,%r14d
mov    %rdi,%r13
lea    0xeb5(%rip),%rdi
call   1040 <system@plt>
mov    %r14d,%eax
shl    $0x2,%rax
lea    (%rax,%rax,2),%rbp
lea    0xea2(%rip),%r14
lea    0xe9e(%rip),%r15
xor    %ebx,%ebx
jmp    11a5 <printMaze+0x75>
nopl   (%rax)
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsbl 0xb(%r13,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0xc,%rbx
cmp    $0x90,%rbx
je     13c1 <printMaze+0x291>
cmp    %rbx,%rbp
jne    11c0 <printMaze+0x90>
test   %r12d,%r12d
jne    11c0 <printMaze+0x90>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    11f0 <printMaze+0xc0>
nopl   0x0(%rax,%rax,1)
movsbl 0x0(%r13,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %rbx,%rbp
jne    11f0 <printMaze+0xc0>
cmp    $0x1,%r12d
jne    11f0 <printMaze+0xc0>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1220 <printMaze+0xf0>
nopw   0x0(%rax,%rax,1)
movsbl 0x1(%r13,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %rbx,%rbp
jne    1220 <printMaze+0xf0>
cmp    $0x2,%r12d
jne    1220 <printMaze+0xf0>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1250 <printMaze+0x120>
nopw   0x0(%rax,%rax,1)
movsbl 0x2(%r13,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %rbx,%rbp
jne    1250 <printMaze+0x120>
cmp    $0x3,%r12d
jne    1250 <printMaze+0x120>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1280 <printMaze+0x150>
nopw   0x0(%rax,%rax,1)
movsbl 0x3(%r13,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %rbx,%rbp
jne    1280 <printMaze+0x150>
cmp    $0x4,%r12d
jne    1280 <printMaze+0x150>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    12b0 <printMaze+0x180>
nopw   0x0(%rax,%rax,1)
movsbl 0x4(%r13,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %rbx,%rbp
jne    12b0 <printMaze+0x180>
cmp    $0x5,%r12d
jne    12b0 <printMaze+0x180>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    12e0 <printMaze+0x1b0>
nopw   0x0(%rax,%rax,1)
movsbl 0x5(%r13,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %rbx,%rbp
jne    12e0 <printMaze+0x1b0>
cmp    $0x6,%r12d
jne    12e0 <printMaze+0x1b0>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1310 <printMaze+0x1e0>
nopw   0x0(%rax,%rax,1)
movsbl 0x6(%r13,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %rbx,%rbp
jne    1310 <printMaze+0x1e0>
cmp    $0x7,%r12d
jne    1310 <printMaze+0x1e0>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1340 <printMaze+0x210>
nopw   0x0(%rax,%rax,1)
movsbl 0x7(%r13,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %rbx,%rbp
jne    1340 <printMaze+0x210>
cmp    $0x8,%r12d
jne    1340 <printMaze+0x210>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1370 <printMaze+0x240>
nopw   0x0(%rax,%rax,1)
movsbl 0x8(%r13,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %rbx,%rbp
jne    1370 <printMaze+0x240>
cmp    $0x9,%r12d
jne    1370 <printMaze+0x240>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    138f <printMaze+0x25f>
nopw   0x0(%rax,%rax,1)
movsbl 0x9(%r13,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %rbx,%rbp
jne    138f <printMaze+0x25f>
cmp    $0xa,%r12d
je     1170 <printMaze+0x40>
movsbl 0xa(%r13,%rbx,1),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %rbx,%rbp
jne    117a <printMaze+0x4a>
cmp    $0xb,%r12d
jne    117a <printMaze+0x4a>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    118a <printMaze+0x5a>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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