#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, char *problem) {
  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    %r9,-0x40(%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, i8* %8) {
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca i32
%14 = alloca i32
%15 = alloca double**
%16 = alloca double**
%17 = alloca double**
%18 = alloca i8*
store double %0, double* %10
store double %1, double* %11
store double %2, double* %12
store i32 %3, i32* %13
store i32 %4, i32* %14
store double** %5, double*** %15
store double** %6, double*** %16
store double** %7, double*** %17
store i8* %8, i8** %18
%19 = load double**, double*** %15
%20 = load i32, i32* %13
%21 = add nsw i32 %20, 1
%22 = load i32, i32* %14
%23 = add nsw i32 %22, 1
%24 = load double, double* %10
%25 = call i32 @init_matrix(double** %19, i32 0, i32 %21, i32 0, i32 %23, double %24)
%26 = load double**, double*** %16
%27 = load i32, i32* %13
%28 = add nsw i32 %27, 1
%29 = load i32, i32* %14
%30 = add nsw i32 %29, 1
%31 = load double, double* %11
%32 = call i32 @init_matrix(double** %26, i32 0, i32 %28, i32 0, i32 %30, double %31)
%33 = load double**, double*** %17
%34 = load i32, i32* %13
%35 = add nsw i32 %34, 1
%36 = load i32, i32* %14
%37 = add nsw i32 %36, 1
%38 = load double, double* %12
%39 = call i32 @init_matrix(double** %33, i32 0, i32 %35, i32 0, i32 %37, double %38)
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, i8* nocapture readnone %8) {
%10 = add nsw i32 %3, 1
%11 = add nsw i32 %4, 1
%12 = tail call i32 @init_matrix(double** %5, i32 0, i32 %10, i32 0, i32 %11, double %0)
%13 = tail call i32 @init_matrix(double** %6, i32 0, i32 %10, i32 0, i32 %11, double %1)
%14 = tail call i32 @init_matrix(double** %7, i32 0, i32 %10, i32 0, i32 %11, double %2)
ret void
}