#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 dispAux(int aux[10][9][9]) {
  int i, j, k;
  for (i = 0; i < 9; i++) {
    for (j = 0; j < 9; j++) {
      printf("(%1d)", aux[0][i][j]);
      for (k = 1; k < 10; k++) {
        printf("%1d", aux[k][i][j]);
      }
      printf(" ");
    }
    printf("\n");
  }
  printf("\n");
  system("pause");
  return;
}


x86 assembly (clang, -O0):
<dispAux>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x9,-0xc(%rbp)
jge    11fb <dispAux+0xdb>
movl   $0x0,-0x10(%rbp)
cmpl   $0x9,-0x10(%rbp)
jge    11df <dispAux+0xbf>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x24,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe95(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x14(%rbp)
cmpl   $0xa,-0x14(%rbp)
jge    11c3 <dispAux+0xa3>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x144,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
imul   $0x24,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe58(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1179 <dispAux+0x59>
lea    0xe40(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1144 <dispAux+0x24>
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1133 <dispAux+0x13>
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdfe(%rip),%rdi
call   1030 <system@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dispAux>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rdi,%r13
add    $0xb64,%r13
lea    0xeb6(%rip),%r14
lea    0xeb5(%rip),%r15
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    -0xb64(%r13,%rbx,4),%esi
ff
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0xa20(%r13,%rbx,4),%esi
ff
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x8dc(%r13,%rbx,4),%esi
ff
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x798(%r13,%rbx,4),%esi
ff
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x654(%r13,%rbx,4),%esi
ff
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x510(%r13,%rbx,4),%esi
ff
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x3cc(%r13,%rbx,4),%esi
ff
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x288(%r13,%rbx,4),%esi
ff
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x144(%r13,%rbx,4),%esi
ff
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x0(%r13,%rbx,4),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    $0x9,%rbx
jne    1170 <dispAux+0x40>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r12
add    $0x24,%r13
cmp    $0x9,%r12
jne    1160 <dispAux+0x30>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xda4(%rip),%rdi
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1040 <system@plt>

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

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