#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*/ Print(int **);
int /*<<< orphan*/ Unique(int **);
int /*<<< orphan*/ printf(char *);
int main() {
  int arr[9][9] = {
      7, 5, 3, 0, 1, 8, 0, 2, 0, 6, 0, 8, 0, 2, 7, 0, 3, 1, 2, 1, 0,
      0, 0, 0, 0, 8, 0, 4, 0, 7, 0, 0, 0, 1, 0, 2, 1, 0, 2, 7, 0, 0,
      0, 0, 0, 3, 0, 5, 1, 0, 2, 0, 0, 0, 5, 3, 6, 2, 9, 1, 0, 0, 0,
      9, 2, 4, 8, 7, 5, 3, 1, 6, 0, 7, 1, 3, 6, 4, 2, 5, 0,
  };
  printf("原始数组：\n");
  Print(arr);
  printf("实验结果：\n");
  Unique(arr);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
lea    -0x150(%rbp),%rdi
lea    0xea7(%rip),%rsi
mov    $0x144,%edx
call   1050 <memcpy@plt>
lea    0xfda(%rip),%rdi
call   1030 <printf@plt>
lea    -0x150(%rbp),%rdi
call   1060 <Print@plt>
lea    0xfd3(%rip),%rdi
call   1030 <printf@plt>
lea    -0x150(%rbp),%rdi
call   1040 <Unique@plt>
xor    %eax,%eax
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x150,%rsp
lea    0xeb1(%rip),%rsi
mov    %rsp,%rbx
mov    $0x144,%edx
mov    %rbx,%rdi
call   1050 <memcpy@plt>
lea    0xfde(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1060 <Print@plt>
lea    0xfda(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1040 <Unique@plt>
xor    %eax,%eax
add    $0x150,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.arr = [9 x [9 x i32]] [[9 x i32] [i32 7, i32 5, i32 3, i32 0, i32 1, i32 8, i32 0, i32 2, i32 0], [9 x i32] [i32 6, i32 0, i32 8, i32 0, i32 2, i32 7, i32 0, i32 3, i32 1], [9 x i32] [i32 2, i32 1, i32 0, i32 0, i32 0, i32 0, i32 0, i32 8, i32 0], [9 x i32] [i32 4, i32 0, i32 7, i32 0, i32 0, i32 0, i32 1, i32 0, i32 2], [9 x i32] [i32 1, i32 0, i32 2, i32 7, i32 0, i32 0, i32 0, i32 0, i32 0], [9 x i32] [i32 3, i32 0, i32 5, i32 1, i32 0, i32 2, i32 0, i32 0, i32 0], [9 x i32] [i32 5, i32 3, i32 6, i32 2, i32 9, i32 1, i32 0, i32 0, i32 0], [9 x i32] [i32 9, i32 2, i32 4, i32 8, i32 7, i32 5, i32 3, i32 1, i32 6], [9 x i32] [i32 0, i32 7, i32 1, i32 3, i32 6, i32 4, i32 2, i32 5, i32 0]]
@.str = [17 x i8] c"\E5\8E\9F\E5\A7\8B\E6\95\B0\E7\BB\84\EF\BC\9A\0A\00"
@.str.1 = [17 x i8] c"\E5\AE\9E\E9\AA\8C\E7\BB\93\E6\9E\9C\EF\BC\9A\0A\00"
define i32 @main() {
%1 = alloca [9 x [9 x i32]]
%2 = bitcast [9 x [9 x i32]]* %1 to i8*
%3 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%4 = getelementptr inbounds [9 x [9 x i32]], [9 x [9 x i32]]* %1, i64 0, i64 0
%5 = bitcast [9 x i32]* %4 to i32**
%6 = call i32 @Print(i32** %5)
%7 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%8 = getelementptr inbounds [9 x [9 x i32]], [9 x [9 x i32]]* %1, i64 0, i64 0
%9 = bitcast [9 x i32]* %8 to i32**
%10 = call i32 @Unique(i32** %9)
ret i32 0
}

LLVM IR (-O2):
@__const.main.arr = [9 x [9 x i32]] [[9 x i32] [i32 7, i32 5, i32 3, i32 0, i32 1, i32 8, i32 0, i32 2, i32 0], [9 x i32] [i32 6, i32 0, i32 8, i32 0, i32 2, i32 7, i32 0, i32 3, i32 1], [9 x i32] [i32 2, i32 1, i32 0, i32 0, i32 0, i32 0, i32 0, i32 8, i32 0], [9 x i32] [i32 4, i32 0, i32 7, i32 0, i32 0, i32 0, i32 1, i32 0, i32 2], [9 x i32] [i32 1, i32 0, i32 2, i32 7, i32 0, i32 0, i32 0, i32 0, i32 0], [9 x i32] [i32 3, i32 0, i32 5, i32 1, i32 0, i32 2, i32 0, i32 0, i32 0], [9 x i32] [i32 5, i32 3, i32 6, i32 2, i32 9, i32 1, i32 0, i32 0, i32 0], [9 x i32] [i32 9, i32 2, i32 4, i32 8, i32 7, i32 5, i32 3, i32 1, i32 6], [9 x i32] [i32 0, i32 7, i32 1, i32 3, i32 6, i32 4, i32 2, i32 5, i32 0]]
@str = [16 x i8] c"\E5\8E\9F\E5\A7\8B\E6\95\B0\E7\BB\84\EF\BC\9A\00"
@str.2 = [16 x i8] c"\E5\AE\9E\E9\AA\8C\E7\BB\93\E6\9E\9C\EF\BC\9A\00"
define i32 @main() {
%1 = alloca [9 x [9 x i32]]
%2 = bitcast [9 x [9 x i32]]* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%4 = bitcast [9 x [9 x i32]]* %1 to i32**
%5 = call i32 @Print(i32** %4)
%6 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.2, i64 0, i64 0))
%7 = call i32 @Unique(i32** %4)
ret i32 0
}