#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*/ dgemv_(char *, int *, int *, double *, double *, int *,
                          double *, int *, double *, double *, int *);
void DGEMV(char trans, int m, int n, double alpha, double *A, int lda,
           double *X, int incx, double beta, double *Y, int incy) {
  dgemv_(&trans, &m, &n, &alpha, A, &lda, X, &incx, &beta, Y, &incy);
}


x86 assembly (clang, -O0):
<DGEMV>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x60,%rsp
mov    %dil,%al
mov    0x20(%rbp),%edi
mov    0x18(%rbp),%rdi
mov    0x10(%rbp),%edi
mov    %al,-0x11(%rbp)
mov    %esi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
movsd  %xmm0,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8d,-0x34(%rbp)
mov    %r9,-0x40(%rbp)
movsd  %xmm1,-0x48(%rbp)
mov    -0x30(%rbp),%r8
mov    -0x40(%rbp),%r14
mov    0x18(%rbp),%r10
lea    -0x11(%rbp),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
lea    -0x28(%rbp),%rcx
lea    -0x34(%rbp),%r9
lea    0x10(%rbp),%rbx
lea    -0x48(%rbp),%r11
lea    0x20(%rbp),%rax
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
call   1030 <dgemv_@plt>
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<DGEMV>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %r9,%r10
mov    %rcx,%rax
mov    0x48(%rsp),%r11
mov    %dil,0x3(%rsp)
mov    %esi,0xc(%rsp)
mov    %edx,0x8(%rsp)
movsd  %xmm0,0x18(%rsp)
mov    %r8d,0x4(%rsp)
movsd  %xmm1,0x10(%rsp)
sub    $0x8,%rsp
lea    0x58(%rsp),%rbx
lea    0x18(%rsp),%r14
lea    0x48(%rsp),%r15
lea    0xb(%rsp),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0xc(%rsp),%r9
mov    %rax,%r8
push   %rbx
push   %r11
push   %r14
push   %r15
push   %r10
call   1030 <dgemv_@plt>
add    $0x50,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @DGEMV(i8 signext %0, i32 %1, i32 %2, double %3, double* %4, i32 %5, double* %6, i32 %7, double %8, double* %9, i32 %10) {
%12 = alloca i8
%13 = alloca i32
%14 = alloca i32
%15 = alloca double
%16 = alloca double*
%17 = alloca i32
%18 = alloca double*
%19 = alloca i32
%20 = alloca double
%21 = alloca double*
%22 = alloca i32
store i8 %0, i8* %12
store i32 %1, i32* %13
store i32 %2, i32* %14
store double %3, double* %15
store double* %4, double** %16
store i32 %5, i32* %17
store double* %6, double** %18
store i32 %7, i32* %19
store double %8, double* %20
store double* %9, double** %21
store i32 %10, i32* %22
%23 = load double*, double** %16
%24 = load double*, double** %18
%25 = load double*, double** %21
%26 = call i32 @dgemv_(i8* %12, i32* %13, i32* %14, double* %15, double* %23, i32* %17, double* %24, i32* %19, double* %20, double* %25, i32* %22)
ret void
}

LLVM IR (-O2):
define void @DGEMV(i8 signext %0, i32 %1, i32 %2, double %3, double* %4, i32 %5, double* %6, i32 %7, double %8, double* %9, i32 %10) {
%12 = alloca i8
%13 = alloca i32
%14 = alloca i32
%15 = alloca double
%16 = alloca i32
%17 = alloca i32
%18 = alloca double
%19 = alloca i32
store i8 %0, i8* %12
store i32 %1, i32* %13
store i32 %2, i32* %14
store double %3, double* %15
store i32 %5, i32* %16
store i32 %7, i32* %17
store double %8, double* %18
store i32 %10, i32* %19
%20 = call i32 @dgemv_(i8* %12, i32* %13, i32* %14, double* %15, double* %4, i32* %16, double* %6, i32* %17, double* %18, double* %9, i32* %19)
ret void
}