#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*/ muovi(int **, int, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stampa(int **);
int main() {
  int m[12][12] = {{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
                   {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
                   {0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0},
                   {0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0},
                   {0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0},
                   {0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0},
                   {0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0},
                   {0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0},
                   {0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0},
                   {0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0},
                   {0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0},
                   {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};
  stampa(m);
  muovi(m, 5, 5);
  printf("------------------ \n");
  stampa(m);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x240,%rsp
lea    -0x240(%rbp),%rdi
lea    0xea7(%rip),%rsi
mov    $0x240,%edx
call   1050 <memcpy@plt>
lea    -0x240(%rbp),%rdi
call   1040 <stampa@plt>
lea    -0x240(%rbp),%rdi
mov    $0x5,%edx
mov    %edx,%esi
call   1060 <muovi@plt>
lea    0x10b7(%rip),%rdi
call   1030 <printf@plt>
lea    -0x240(%rbp),%rdi
call   1040 <stampa@plt>
xor    %eax,%eax
add    $0x240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x240,%rsp
lea    0xeb1(%rip),%rsi
mov    %rsp,%rbx
mov    $0x240,%edx
mov    %rbx,%rdi
call   1050 <memcpy@plt>
mov    %rbx,%rdi
call   1040 <stampa@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x5,%edx
call   1060 <muovi@plt>
lea    0x10c0(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1040 <stampa@plt>
xor    %eax,%eax
add    $0x240,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.m = [12 x [12 x i32]] [[12 x i32] zeroinitializer, [12 x i32] [i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 0], [12 x i32] [i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 0, i32 1, i32 1, i32 0], [12 x i32] [i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 0], [12 x i32] [i32 0, i32 1, i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 0, i32 1, i32 1, i32 0], [12 x i32] [i32 0, i32 1, i32 1, i32 0, i32 1, i32 1, i32 1, i32 1, i32 0, i32 1, i32 1, i32 0], [12 x i32] [i32 0, i32 1, i32 1, i32 0, i32 0, i32 0, i32 1, i32 1, i32 0, i32 0, i32 0, i32 0], [12 x i32] [i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 0, i32 1, i32 1, i32 0], [12 x i32] [i32 0, i32 1, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 0, i32 1, i32 1, i32 0], [12 x i32] [i32 0, i32 1, i32 1, i32 0, i32 1, i32 1, i32 1, i32 1, i32 0, i32 1, i32 1, i32 0], [12 x i32] [i32 0, i32 1, i32 1, i32 0, i32 1, i32 1, i32 1, i32 1, i32 0, i32 1, i32 1, i32 0], [12 x i32] zeroinitializer]
@.str = [21 x i8] c"------------------ \0A\00"
define i32 @main() {
%1 = alloca [12 x [12 x i32]]
%2 = bitcast [12 x [12 x i32]]* %1 to i8*
%3 = getelementptr inbounds [12 x [12 x i32]], [12 x [12 x i32]]* %1, i64 0, i64 0
%4 = bitcast [12 x i32]* %3 to i32**
%5 = call i32 @stampa(i32** %4)
%6 = getelementptr inbounds [12 x [12 x i32]], [12 x [12 x i32]]* %1, i64 0, i64 0
%7 = bitcast [12 x i32]* %6 to i32**
%8 = call i32 @muovi(i32** %7, i32 5, i32 5)
%9 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%10 = getelementptr inbounds [12 x [12 x i32]], [12 x [12 x i32]]* %1, i64 0, i64 0
%11 = bitcast [12 x i32]* %10 to i32**
%12 = call i32 @stampa(i32** %11)
ret i32 0
}

LLVM IR (-O2):
@__const.main.m = [12 x [12 x i32]] [[12 x i32] zeroinitializer, [12 x i32] [i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 0], [12 x i32] [i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 0, i32 1, i32 1, i32 0], [12 x i32] [i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 0], [12 x i32] [i32 0, i32 1, i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 0, i32 1, i32 1, i32 0], [12 x i32] [i32 0, i32 1, i32 1, i32 0, i32 1, i32 1, i32 1, i32 1, i32 0, i32 1, i32 1, i32 0], [12 x i32] [i32 0, i32 1, i32 1, i32 0, i32 0, i32 0, i32 1, i32 1, i32 0, i32 0, i32 0, i32 0], [12 x i32] [i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 0, i32 1, i32 1, i32 0], [12 x i32] [i32 0, i32 1, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0, i32 0, i32 1, i32 1, i32 0], [12 x i32] [i32 0, i32 1, i32 1, i32 0, i32 1, i32 1, i32 1, i32 1, i32 0, i32 1, i32 1, i32 0], [12 x i32] [i32 0, i32 1, i32 1, i32 0, i32 1, i32 1, i32 1, i32 1, i32 0, i32 1, i32 1, i32 0], [12 x i32] zeroinitializer]
@str = [20 x i8] c"------------------ \00"
define i32 @main() {
%1 = alloca [12 x [12 x i32]]
%2 = bitcast [12 x [12 x i32]]* %1 to i8*
%3 = bitcast [12 x [12 x i32]]* %1 to i32**
%4 = call i32 @stampa(i32** %3)
%5 = call i32 @muovi(i32** %3, i32 5, i32 5)
%6 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%7 = call i32 @stampa(i32** %3)
ret i32 0
}