#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_wrap(int m, int n, double alpha, double *a, double *x, double beta,
                double *y) {
  char trans = 'T';
  int one = 1;
  dgemv_(&trans, &n, &m, &alpha, a, &n, x, &one, &beta, y, &one);
}


x86 assembly (clang, -O0):
<dgemv_wrap>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x68,%rsp
mov    %edi,-0xc(%rbp)
mov    %esi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
movsd  %xmm1,-0x30(%rbp)
mov    %r8,-0x38(%rbp)
movb   $0x54,-0x39(%rbp)
movl   $0x1,-0x40(%rbp)
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%rbx
mov    -0x38(%rbp),%r10
lea    -0x39(%rbp),%rdi
lea    -0x10(%rbp),%r9
lea    -0xc(%rbp),%rdx
lea    -0x18(%rbp),%rcx
lea    -0x40(%rbp),%rax
lea    -0x30(%rbp),%r11
mov    %r9,%rsi
mov    %rbx,(%rsp)
mov    %rax,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
call   1030 <dgemv_@plt>
add    $0x68,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<dgemv_wrap>:
push   %rbx
sub    $0x20,%rsp
mov    %r8,%rax
mov    %rcx,%r10
mov    %rdx,%r8
mov    %edi,0xc(%rsp)
mov    %esi,0x8(%rsp)
movsd  %xmm0,0x18(%rsp)
movsd  %xmm1,0x10(%rsp)
movb   $0x54,0x3(%rsp)
movl   $0x1,0x4(%rsp)
sub    $0x8,%rsp
lea    0xc(%rsp),%r11
lea    0x18(%rsp),%rbx
lea    0xb(%rsp),%rdi
lea    0x14(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x10(%rsp),%rsi
mov    %rsi,%r9
push   %r11
push   %rax
push   %rbx
push   %r11
push   %r10
call   1030 <dgemv_@plt>
add    $0x50,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
define void @dgemv_wrap(i32 %0, i32 %1, double %2, double* %3, double* %4, double %5, double* %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca double
%11 = alloca double
%12 = alloca i8
%13 = alloca i32
store i32 %0, i32* %8
store i32 %1, i32* %9
store double %2, double* %10
store double %5, double* %11
store i8 84, i8* %12
%14 = bitcast i32* %13 to i8*
store i32 1, i32* %13
%15 = call i32 @dgemv_(i8* %12, i32* %9, i32* %8, double* %10, double* %3, i32* %9, double* %4, i32* %13, double* %11, double* %6, i32* %13)
ret void
}