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


x86 assembly (clang, -O0):
<psede_gemv_0>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x68,%rsp
mov    %edi,-0xc(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
movsd  %xmm1,-0x30(%rbp)
mov    %rcx,-0x38(%rbp)
movl   $0x1,-0x3c(%rbp)
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%rbx
mov    -0x38(%rbp),%r10
lea    0xeb4(%rip),%rdi
lea    -0xc(%rbp),%r9
lea    -0x18(%rbp),%rcx
lea    -0x3c(%rbp),%rax
lea    -0x30(%rbp),%r11
mov    %r9,%rsi
mov    %r9,%rdx
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):
<psede_gemv_0>:
push   %rbx
sub    $0x20,%rsp
mov    %rcx,%rax
mov    %rdx,%r10
mov    %rsi,%r8
mov    %edi,0xc(%rsp)
movsd  %xmm0,0x18(%rsp)
movsd  %xmm1,0x10(%rsp)
movl   $0x1,0x8(%rsp)
sub    $0x8,%rsp
lea    0x10(%rsp),%r11
lea    0x18(%rsp),%rbx
lea    0xeb5(%rip),%rdi
lea    0x20(%rsp),%rcx
lea    0x14(%rsp),%rdx
mov    %rdx,%rsi
mov    %rdx,%r9
push   %r11
push   %rax
push   %rbx
push   %r11
push   %r10
call   1030 <dgemv_@plt>
add    $0x50,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"T\00"
define void @psede_gemv_0(i32 %0, double %1, double* %2, double* %3, double %4, double* %5) {
%7 = alloca i32
%8 = alloca double
%9 = alloca double*
%10 = alloca double*
%11 = alloca double
%12 = alloca double*
%13 = alloca i32
store i32 %0, i32* %7
store double %1, double* %8
store double* %2, double** %9
store double* %3, double** %10
store double %4, double* %11
store double* %5, double** %12
store i32 1, i32* %13
%14 = load double*, double** %9
%15 = load double*, double** %10
%16 = load double*, double** %12
%17 = call i32 @dgemv_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32* %7, i32* %7, double* %8, double* %14, i32* %7, double* %15, i32* %13, double* %11, double* %16, i32* %13)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"T\00"
define void @psede_gemv_0(i32 %0, double %1, double* %2, double* %3, double %4, double* %5) {
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca i32
store i32 %0, i32* %7
store double %1, double* %8
store double %4, double* %9
%11 = bitcast i32* %10 to i8*
store i32 1, i32* %10
%12 = call i32 @dgemv_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32* %7, i32* %7, double* %8, double* %2, i32* %7, double* %3, i32* %10, double* %9, double* %5, i32* %10)
ret void
}