#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*/ apply_DIRICHLET_X_0(double *);
int /*<<< orphan*/ apply_DIRICHLET_X_END(double *);
int /*<<< orphan*/ apply_DIRICHLET_Y_0(double *);
int /*<<< orphan*/ apply_DIRICHLET_Y_END(double *);
int /*<<< orphan*/ copyXZ(int, int, double *, double *);
int /*<<< orphan*/ copyYZ(int, int, double *, double *);
void boundary(double *phi, double *mu, double *V) {
  copyYZ(0, 1, phi, mu);
  copyYZ(100 - 1, 100 - 2, phi, mu);
  copyXZ(0, 1, phi, mu);
  copyXZ(50 - 1, 50 - 2, phi, mu);
  apply_DIRICHLET_X_0(V);
  apply_DIRICHLET_X_END(V);
  apply_DIRICHLET_Y_0(V);
  apply_DIRICHLET_Y_END(V);
}


x86 assembly (clang, -O0):
<boundary>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <copyYZ@plt>
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    $0x63,%edi
mov    $0x62,%esi
call   1040 <copyYZ@plt>
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
xor    %edi,%edi
mov    $0x1,%esi
call   1070 <copyXZ@plt>
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    $0x31,%edi
mov    $0x30,%esi
call   1070 <copyXZ@plt>
mov    -0x18(%rbp),%rdi
call   1030 <apply_DIRICHLET_X_0@plt>
mov    -0x18(%rbp),%rdi
call   1050 <apply_DIRICHLET_X_END@plt>
mov    -0x18(%rbp),%rdi
call   1080 <apply_DIRICHLET_Y_0@plt>
mov    -0x18(%rbp),%rdi
call   1060 <apply_DIRICHLET_Y_END@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<boundary>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
xor    %edi,%edi
mov    $0x1,%esi
mov    %rbx,%rdx
mov    %r15,%rcx
call   1040 <copyYZ@plt>
mov    $0x63,%edi
mov    $0x62,%esi
mov    %rbx,%rdx
mov    %r15,%rcx
call   1040 <copyYZ@plt>
xor    %edi,%edi
mov    $0x1,%esi
mov    %rbx,%rdx
mov    %r15,%rcx
call   1070 <copyXZ@plt>
mov    $0x31,%edi
mov    $0x30,%esi
mov    %rbx,%rdx
mov    %r15,%rcx
call   1070 <copyXZ@plt>
mov    %r14,%rdi
call   1030 <apply_DIRICHLET_X_0@plt>
mov    %r14,%rdi
call   1050 <apply_DIRICHLET_X_END@plt>
mov    %r14,%rdi
call   1080 <apply_DIRICHLET_Y_0@plt>
mov    %r14,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1060 <apply_DIRICHLET_Y_END@plt>

LLVM IR (-O0):
define void @boundary(double* %0, double* %1, double* %2) {
%4 = alloca double*
%5 = alloca double*
%6 = alloca double*
store double* %0, double** %4
store double* %1, double** %5
store double* %2, double** %6
%7 = load double*, double** %4
%8 = load double*, double** %5
%9 = call i32 @copyYZ(i32 0, i32 1, double* %7, double* %8)
%10 = load double*, double** %4
%11 = load double*, double** %5
%12 = call i32 @copyYZ(i32 99, i32 98, double* %10, double* %11)
%13 = load double*, double** %4
%14 = load double*, double** %5
%15 = call i32 @copyXZ(i32 0, i32 1, double* %13, double* %14)
%16 = load double*, double** %4
%17 = load double*, double** %5
%18 = call i32 @copyXZ(i32 49, i32 48, double* %16, double* %17)
%19 = load double*, double** %6
%20 = call i32 @apply_DIRICHLET_X_0(double* %19)
%21 = load double*, double** %6
%22 = call i32 @apply_DIRICHLET_X_END(double* %21)
%23 = load double*, double** %6
%24 = call i32 @apply_DIRICHLET_Y_0(double* %23)
%25 = load double*, double** %6
%26 = call i32 @apply_DIRICHLET_Y_END(double* %25)
ret void
}

LLVM IR (-O2):
define void @boundary(double* %0, double* %1, double* %2) {
%4 = tail call i32 @copyYZ(i32 0, i32 1, double* %0, double* %1)
%5 = tail call i32 @copyYZ(i32 99, i32 98, double* %0, double* %1)
%6 = tail call i32 @copyXZ(i32 0, i32 1, double* %0, double* %1)
%7 = tail call i32 @copyXZ(i32 49, i32 48, double* %0, double* %1)
%8 = tail call i32 @apply_DIRICHLET_X_0(double* %2)
%9 = tail call i32 @apply_DIRICHLET_X_END(double* %2)
%10 = tail call i32 @apply_DIRICHLET_Y_0(double* %2)
%11 = tail call i32 @apply_DIRICHLET_Y_END(double* %2)
ret void
}