#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*/ sorgqr_(int const *, int const *, int const *, float *,
                           int const *, float const *, float *, int const *,
                           int *);
int aa_cla_sorgqr(const int m, const int n, const int k, float *A,
                  const int lda, const float *tau, float *work,
                  const int lwork) {
  int info = 0;
  sorgqr_(&m, &n, &k, A, &lda, tau, work, &lwork, &info);
  return info;
}


x86 assembly (clang, -O0):
<aa_cla_sorgqr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x18(%rbp),%rcx
mov    -0x28(%rbp),%r9
mov    0x10(%rbp),%r11
lea    -0x4(%rbp),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x1c(%rbp),%r8
lea    0x18(%rbp),%r10
lea    -0x2c(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <sorgqr_@plt>
mov    -0x2c(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aa_cla_sorgqr>:
sub    $0x18,%rsp
mov    0x20(%rsp),%r10
mov    %edi,0x14(%rsp)
mov    %esi,0x10(%rsp)
mov    %edx,0xc(%rsp)
mov    %r8d,0x8(%rsp)
movl   $0x0,0x4(%rsp)
sub    $0x8,%rsp
lea    0xc(%rsp),%rax
lea    0x30(%rsp),%r11
lea    0x1c(%rsp),%rdi
lea    0x18(%rsp),%rsi
lea    0x14(%rsp),%rdx
lea    0x10(%rsp),%r8
push   %rax
push   %r11
push   %r10
call   1030 <sorgqr_@plt>
add    $0x20,%rsp
mov    0x4(%rsp),%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @aa_cla_sorgqr(i32 %0, i32 %1, i32 %2, float* %3, i32 %4, float* %5, float* %6, i32 %7) {
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca float*
%13 = alloca i32
%14 = alloca float*
%15 = alloca float*
%16 = alloca i32
%17 = alloca i32
store i32 %0, i32* %9
store i32 %1, i32* %10
store i32 %2, i32* %11
store float* %3, float** %12
store i32 %4, i32* %13
store float* %5, float** %14
store float* %6, float** %15
store i32 %7, i32* %16
store i32 0, i32* %17
%18 = load float*, float** %12
%19 = load float*, float** %14
%20 = load float*, float** %15
%21 = call i32 @sorgqr_(i32* %9, i32* %10, i32* %11, float* %18, i32* %13, float* %19, float* %20, i32* %16, i32* %17)
%22 = load i32, i32* %17
ret i32 %22
}

LLVM IR (-O2):
define i32 @aa_cla_sorgqr(i32 %0, i32 %1, i32 %2, float* %3, i32 %4, float* %5, float* %6, i32 %7) {
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 %0, i32* %9
store i32 %1, i32* %10
store i32 %2, i32* %11
store i32 %4, i32* %12
store i32 %7, i32* %13
%15 = bitcast i32* %14 to i8*
store i32 0, i32* %14
%16 = call i32 @sorgqr_(i32* %9, i32* %10, i32* %11, float* %3, i32* %12, float* %5, float* %6, i32* %13, i32* %14)
%17 = load i32, i32* %14
ret i32 %17
}