#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*/ dsyrk_(char *, char *, int *, int *, double *, double *,
                          int *, double *, double *, int *);
void dsyrk(char UPLO, char TRANS, int N, int K, double ALPHA, double *A,
           int LDA, double BETA, double *C, int LDC) {
  dsyrk_(&UPLO, &TRANS, &N, &K, &ALPHA, A, &LDA, &BETA, C, &LDC);
}


x86 assembly (clang, -O0):
<dsyrk>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x58,%rsp
mov    %sil,%al
mov    %dil,%sil
mov    0x18(%rbp),%edi
mov    0x10(%rbp),%rdi
mov    %sil,-0x9(%rbp)
mov    %al,-0xa(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
movsd  %xmm0,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
movsd  %xmm1,-0x38(%rbp)
mov    -0x28(%rbp),%r9
mov    0x10(%rbp),%r10
lea    -0x9(%rbp),%rdi
lea    -0xa(%rbp),%rsi
lea    -0x10(%rbp),%rdx
lea    -0x14(%rbp),%rcx
lea    -0x20(%rbp),%r8
lea    -0x2c(%rbp),%rbx
lea    -0x38(%rbp),%r11
lea    0x18(%rbp),%rax
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1030 <dsyrk_@plt>
add    $0x58,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<dsyrk>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %r8,%rax
mov    0x40(%rsp),%r10
mov    %dil,0xb(%rsp)
mov    %sil,0xa(%rsp)
mov    %edx,0x14(%rsp)
mov    %ecx,0x10(%rsp)
movsd  %xmm0,0x20(%rsp)
mov    %r9d,0xc(%rsp)
movsd  %xmm1,0x18(%rsp)
lea    0x48(%rsp),%r11
lea    0x18(%rsp),%rbx
lea    0xc(%rsp),%r14
lea    0xb(%rsp),%rdi
lea    0xa(%rsp),%rsi
lea    0x14(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0x20(%rsp),%r8
mov    %rax,%r9
push   %r11
push   %r10
push   %rbx
push   %r14
call   1030 <dsyrk_@plt>
add    $0x48,%rsp
pop    %rbx
pop    %r14
ret

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

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