#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*/ dgemm_(char *, char *, int *, int *, int *, double *,
                          double *, int *, double *, int *, double *, double *,
                          int *);
void psede_gemm_0(int n, double alpha, double *a, double *b, double beta,
                  double *c) {
  dgemm_("T", "T", &n, &n, &n, &alpha, a, &n, b, &n, &beta, c, &n);
}


x86 assembly (clang, -O0):
<psede_gemm_0>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x70,%rsp
mov    %edi,-0x14(%rbp)
movsd  %xmm0,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
movsd  %xmm1,-0x38(%rbp)
mov    %rcx,-0x40(%rbp)
mov    -0x28(%rbp),%r14
mov    -0x30(%rbp),%rbx
mov    -0x40(%rbp),%r10
lea    0xeb9(%rip),%rsi
lea    -0x14(%rbp),%rax
lea    -0x20(%rbp),%r9
lea    -0x38(%rbp),%r11
mov    %rsi,%rdi
mov    %rax,%rdx
mov    %rax,%rcx
mov    %rax,%r8
mov    %r14,(%rsp)
mov    %rax,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %rax,0x18(%rsp)
mov    %r11,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
call   1030 <dgemm_@plt>
add    $0x70,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<psede_gemm_0>:
push   %rbx
sub    $0x20,%rsp
mov    %rcx,%rax
mov    %rdx,%r10
mov    %rsi,%r11
mov    %edi,0xc(%rsp)
movsd  %xmm0,0x18(%rsp)
movsd  %xmm1,0x10(%rsp)
sub    $0x8,%rsp
lea    0x14(%rsp),%rcx
lea    0x18(%rsp),%rbx
lea    0xebd(%rip),%rdi
lea    0x20(%rsp),%r9
mov    %rdi,%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
push   %rcx
push   %rax
push   %rbx
push   %rcx
push   %r10
push   %rcx
push   %r11
call   1030 <dgemm_@plt>
add    $0x60,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"T\00"
define void @psede_gemm_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*
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
%13 = load double*, double** %9
%14 = load double*, double** %10
%15 = load double*, double** %12
%16 = call i32 @dgemm_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32* %7, i32* %7, i32* %7, double* %8, double* %13, i32* %7, double* %14, i32* %7, double* %11, double* %15, i32* %7)
ret void
}

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