#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*/ ssyevd_(char *, char *, int *, float *, int *, float *,
                           float *, int *, int *, int *, int *, int, int);
void clapack_ssyevd(char jobz, char uplo, int n, float *a, int lda, float *w,
                    float *work, int lwork, int *iwork, int liwork, int *info) {
  ssyevd_(&jobz, &uplo, &n, a, &lda, w, work, &lwork, iwork, &liwork, info, 1,
          1);
}


x86 assembly (clang, -O0):
<clapack_ssyevd>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x60,%rsp
mov    %sil,%al
mov    %dil,%sil
mov    0x30(%rbp),%rdi
mov    0x28(%rbp),%edi
mov    0x20(%rbp),%rdi
mov    0x18(%rbp),%edi
mov    0x10(%rbp),%rdi
mov    %sil,-0x11(%rbp)
mov    %al,-0x12(%rbp)
mov    %edx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x20(%rbp),%rcx
mov    -0x30(%rbp),%r9
mov    0x10(%rbp),%r14
mov    0x20(%rbp),%r11
mov    0x30(%rbp),%rax
lea    -0x11(%rbp),%rdi
lea    -0x12(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x24(%rbp),%r8
lea    0x18(%rbp),%rbx
lea    0x28(%rbp),%r10
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
movl   $0x1,0x28(%rsp)
movl   $0x1,0x30(%rsp)
call   1030 <ssyevd_@plt>
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<clapack_ssyevd>:
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    0x30(%rsp),%r10
mov    0x40(%rsp),%r11
mov    0x50(%rsp),%r14
mov    %dil,0xf(%rsp)
mov    %sil,0xe(%rsp)
mov    %edx,0x14(%rsp)
mov    %r8d,0x10(%rsp)
sub    $0x8,%rsp
lea    0x50(%rsp),%rbx
lea    0x40(%rsp),%rax
lea    0x17(%rsp),%rdi
lea    0x16(%rsp),%rsi
lea    0x1c(%rsp),%rdx
lea    0x18(%rsp),%r8
push   $0x1
push   $0x1
push   %r14
push   %rbx
push   %r11
push   %rax
push   %r10
call   1030 <ssyevd_@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r14
ret

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

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