#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*/ init_matrix(double **, int /*<<< orphan*/, int,
                               int /*<<< orphan*/, int, double);
void init_uvp(double UI, double VI, double PI, int imax, int jmax, double **U,
              double **V, double **P) {
  init_matrix(U, 0, imax + 1, 0, jmax + 1, UI);
  init_matrix(V, 0, imax + 1, 0, jmax + 1, VI);
  init_matrix(P, 0, imax + 1, 0, jmax + 1, PI);
}


x86 assembly (clang, -O0):
<init_uvp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    %edi,-0x1c(%rbp)
mov    %esi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8,-0x38(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x1c(%rbp),%edx
add    $0x1,%edx
mov    -0x20(%rbp),%r8d
add    $0x1,%r8d
movsd  -0x8(%rbp),%xmm0
xor    %ecx,%ecx
mov    %ecx,%esi
call   1030 <init_matrix@plt>
mov    -0x30(%rbp),%rdi
mov    -0x1c(%rbp),%edx
add    $0x1,%edx
mov    -0x20(%rbp),%r8d
add    $0x1,%r8d
movsd  -0x10(%rbp),%xmm0
xor    %ecx,%ecx
mov    %ecx,%esi
call   1030 <init_matrix@plt>
mov    -0x38(%rbp),%rdi
mov    -0x1c(%rbp),%edx
add    $0x1,%edx
mov    -0x20(%rbp),%r8d
add    $0x1,%r8d
movsd  -0x18(%rbp),%xmm0
xor    %ecx,%ecx
mov    %ecx,%esi
call   1030 <init_matrix@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_uvp>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %r8,%r14
mov    %rcx,%r15
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
lea    0x1(%rdi),%ebp
lea    0x1(%rsi),%ebx
mov    %rdx,%rdi
xor    %esi,%esi
mov    %ebp,%edx
xor    %ecx,%ecx
mov    %ebx,%r8d
call   1030 <init_matrix@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    %ebp,%edx
xor    %ecx,%ecx
mov    %ebx,%r8d
movsd  0x8(%rsp),%xmm0
call   1030 <init_matrix@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    %ebp,%edx
xor    %ecx,%ecx
mov    %ebx,%r8d
movsd  0x10(%rsp),%xmm0
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <init_matrix@plt>

LLVM IR (-O0):
define void @init_uvp(double %0, double %1, double %2, i32 %3, i32 %4, double** %5, double** %6, double** %7) {
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca i32
%13 = alloca i32
%14 = alloca double**
%15 = alloca double**
%16 = alloca double**
store double %0, double* %9
store double %1, double* %10
store double %2, double* %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store double** %5, double*** %14
store double** %6, double*** %15
store double** %7, double*** %16
%17 = load double**, double*** %14
%18 = load i32, i32* %12
%19 = add nsw i32 %18, 1
%20 = load i32, i32* %13
%21 = add nsw i32 %20, 1
%22 = load double, double* %9
%23 = call i32 @init_matrix(double** %17, i32 0, i32 %19, i32 0, i32 %21, double %22)
%24 = load double**, double*** %15
%25 = load i32, i32* %12
%26 = add nsw i32 %25, 1
%27 = load i32, i32* %13
%28 = add nsw i32 %27, 1
%29 = load double, double* %10
%30 = call i32 @init_matrix(double** %24, i32 0, i32 %26, i32 0, i32 %28, double %29)
%31 = load double**, double*** %16
%32 = load i32, i32* %12
%33 = add nsw i32 %32, 1
%34 = load i32, i32* %13
%35 = add nsw i32 %34, 1
%36 = load double, double* %11
%37 = call i32 @init_matrix(double** %31, i32 0, i32 %33, i32 0, i32 %35, double %36)
ret void
}

LLVM IR (-O2):
define void @init_uvp(double %0, double %1, double %2, i32 %3, i32 %4, double** %5, double** %6, double** %7) {
%9 = add nsw i32 %3, 1
%10 = add nsw i32 %4, 1
%11 = tail call i32 @init_matrix(double** %5, i32 0, i32 %9, i32 0, i32 %10, double %0)
%12 = tail call i32 @init_matrix(double** %6, i32 0, i32 %9, i32 0, i32 %10, double %1)
%13 = tail call i32 @init_matrix(double** %7, i32 0, i32 %9, i32 0, i32 %10, double %2)
ret void
}