#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*/ dgetrf_(int *, int *, double *, int *, int *, int *);
int main() {
  int M = 2, N = 2, LDA = 2, INFO = 0;
  int pivots[] = {1, 0};
  double data[] = {-1.0755711889275745e-07, -6.1091865142262008e-15,
                   6.5708650024865796e-22, -2.4000593701562563e-06};
  dgetrf_(&M, &N, data, &LDA, pivots, &INFO);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x2,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    0xec5(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xec1(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    -0x40(%rbp),%rdx
lea    -0x18(%rbp),%r8
lea    -0x4(%rbp),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rcx
lea    -0x10(%rbp),%r9
call   1030 <dgetrf_@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
movl   $0x2,0x14(%rsp)
movl   $0x2,0x10(%rsp)
movl   $0x2,0xc(%rsp)
movl   $0x0,0x8(%rsp)
movq   $0x1,0x18(%rsp)
movaps 0xecc(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xeb0(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
lea    0x14(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0x20(%rsp),%rdx
lea    0xc(%rsp),%rcx
lea    0x18(%rsp),%r8
lea    0x8(%rsp),%r9
call   1030 <dgetrf_@plt>
xor    %eax,%eax
add    $0x48,%rsp
ret

LLVM IR (-O0):
@__const.main.pivots = [2 x i32] [i32 1, i32 0]
@__const.main.data = [4 x double] [double 0xBE7CDF44D89103F4, double 0xBCFB83699A1E3B98, double 0x3B88D2F360389602, double 0xBEC4221697A8D280]
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [2 x i32]
%6 = alloca [4 x double]
store i32 2, i32* %1
store i32 2, i32* %2
store i32 2, i32* %3
store i32 0, i32* %4
%7 = bitcast [2 x i32]* %5 to i8*
%8 = bitcast [4 x double]* %6 to i8*
%9 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 0
%10 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
%11 = call i32 @dgetrf_(i32* %1, i32* %2, double* %9, i32* %3, i32* %10, i32* %4)
ret i32 0
}

LLVM IR (-O2):
@__const.main.data = [4 x double] [double 0xBE7CDF44D89103F4, double 0xBCFB83699A1E3B98, double 0x3B88D2F360389602, double 0xBEC4221697A8D280]
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i64
%6 = alloca [4 x double]
%7 = bitcast i32* %1 to i8*
store i32 2, i32* %1
%8 = bitcast i32* %2 to i8*
store i32 2, i32* %2
%9 = bitcast i32* %3 to i8*
store i32 2, i32* %3
%10 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%11 = bitcast i64* %5 to i8*
store i64 1, i64* %5
%12 = bitcast [4 x double]* %6 to i8*
%13 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 0
%14 = bitcast i64* %5 to i32*
%15 = call i32 @dgetrf_(i32* %1, i32* %2, double* %13, i32* %3, i32* %14, i32* %4)
ret i32 0
}