#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*/ replace_number(int **, int, int);
void break_up_wall(int maze[25][25], int walls[25 - 1][25], int i, int j) {
  walls[i - 1][j] = 0;
  replace_number(maze, maze[i][j], maze[i - 1][j]);
}


x86 assembly (clang, -O0):
<break_up_wall>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x8(%rbp),%rdi
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
call   1030 <replace_number@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<break_up_wall>:
lea    -0x1(%rdx),%eax
cltq
movslq %ecx,%rcx
imul   $0x64,%rax,%rax
add    %rax,%rsi
movl   $0x0,(%rsi,%rcx,4)
movslq %edx,%rdx
imul   $0x64,%rdx,%rdx
add    %rdi,%rdx
mov    (%rdx,%rcx,4),%esi
add    %rdi,%rax
mov    (%rax,%rcx,4),%edx
jmp    1030 <replace_number@plt>

LLVM IR (-O0):
define void @break_up_wall([25 x i32]* %0, [25 x i32]* %1, i32 %2, i32 %3) {
%5 = alloca [25 x i32]*
%6 = alloca [25 x i32]*
%7 = alloca i32
%8 = alloca i32
store [25 x i32]* %0, [25 x i32]** %5
store [25 x i32]* %1, [25 x i32]** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load [25 x i32]*, [25 x i32]** %6
%10 = load i32, i32* %7
%11 = sub nsw i32 %10, 1
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [25 x i32], [25 x i32]* %9, i64 %12
%14 = load i32, i32* %8
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [25 x i32], [25 x i32]* %13, i64 0, i64 %15
store i32 0, i32* %16
%17 = load [25 x i32]*, [25 x i32]** %5
%18 = bitcast [25 x i32]* %17 to i32**
%19 = load [25 x i32]*, [25 x i32]** %5
%20 = load i32, i32* %7
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [25 x i32], [25 x i32]* %19, i64 %21
%23 = load i32, i32* %8
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [25 x i32], [25 x i32]* %22, i64 0, i64 %24
%26 = load i32, i32* %25
%27 = load [25 x i32]*, [25 x i32]** %5
%28 = load i32, i32* %7
%29 = sub nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [25 x i32], [25 x i32]* %27, i64 %30
%32 = load i32, i32* %8
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [25 x i32], [25 x i32]* %31, i64 0, i64 %33
%35 = load i32, i32* %34
%36 = call i32 @replace_number(i32** %18, i32 %26, i32 %35)
ret void
}

LLVM IR (-O2):
define void @break_up_wall([25 x i32]* %0, [25 x i32]* nocapture writeonly %1, i32 %2, i32 %3) {
%5 = add nsw i32 %2, -1
%6 = sext i32 %5 to i64
%7 = sext i32 %3 to i64
%8 = getelementptr inbounds [25 x i32], [25 x i32]* %1, i64 %6, i64 %7
store i32 0, i32* %8
%9 = bitcast [25 x i32]* %0 to i32**
%10 = sext i32 %2 to i64
%11 = getelementptr inbounds [25 x i32], [25 x i32]* %0, i64 %10, i64 %7
%12 = load i32, i32* %11
%13 = getelementptr inbounds [25 x i32], [25 x i32]* %0, i64 %6, i64 %7
%14 = load i32, i32* %13
%15 = tail call i32 @replace_number(i32** %9, i32 %12, i32 %14)
ret void
}