#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 m_LU(double *, int, int *, int *);
double m_det(double *, int);
double *m_dup(double *, int, int);
double *m_eye(int, int);
int /*<<< orphan*/ m_free(double *);
int /*<<< orphan*/ m_inversion(double *, double *, int);
double *m_new(int, int);
int /*<<< orphan*/ m_print(double *, int, int, char *);
int /*<<< orphan*/ printf(char *, double, ...);
int /*<<< orphan*/ printper(int *, int, char *);
int main(int argc, char **argv) {
  double *A, *B, *C;
  int n;
  int s, per;
  int pr[20];
  n = 4;
  A = m_new(n, n);
  B = m_new(n, n);
  C = m_new(n, n);
  A[0] = 4;
  A[1] = 3;
  A[2] = 2;
  A[3] = -1;
  A[4] = 8;
  A[5] = 7;
  A[6] = -6;
  A[7] = 5;
  A[8] = 12;
  A[9] = -11;
  A[10] = 10;
  A[11] = 9;
  A[12] = -16;
  A[13] = 15;
  A[14] = 14;
  A[15] = 13;
  m_print(A, n, n, "A");
  B = m_dup(A, n, n);
  s = m_LU(B, n, pr, &per);
  m_print(B, n, n, "LU");
  printper(pr, n, "pr");
  printf("s=%i  per=%i\n", s, per);
  printf("Det(A)=%g\n", m_det(A, n));
  m_inversion(A, B, n);
  m_print(B, n, n, "inv(A)");
  printf("Det(B)=%g\n", m_det(B, n));
  A[0] = 0.5;
  A[1] = 0.5;
  A[2] = 0.0;
  A[3] = 0.5;
  A[4] = -0.25;
  A[5] = -0.25;
  A[6] = 0.5;
  A[7] = -0.75;
  A[8] = -1.5;
  A[9] = -0.5;
  A[10] = 0.0;
  A[11] = -2.5;
  A[12] = 0.25;
  A[13] = 0.25;
  A[14] = 0.5;
  A[15] = 0.75;
  m_print(A, n, n, "A");
  printf("Det(A)=%g\n", m_det(A, n));
  m_inversion(A, B, n);
  m_print(B, n, n, "inv(A)");
  printf("Det(B)=%g\n", m_det(B, n));
  m_free(A);
  m_free(B);
  A = m_eye(3, 5);
  m_print(A, 3, 5, "eye 3, 5");
  m_free(A);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x4,-0x2c(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x2c(%rbp),%esi
call   10c0 <m_new@plt>
mov    %rax,-0x18(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x2c(%rbp),%esi
call   10c0 <m_new@plt>
mov    %rax,-0x20(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x2c(%rbp),%esi
call   10c0 <m_new@plt>
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rax
movsd  0xebf(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
movsd  0xea7(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
movsd  0xe8e(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x18(%rbp),%rax
movsd  0xe75(%rip),%xmm0
movsd  %xmm0,0x18(%rax)
mov    -0x18(%rbp),%rax
movsd  0xe5c(%rip),%xmm0
movsd  %xmm0,0x20(%rax)
mov    -0x18(%rbp),%rax
movsd  0xe43(%rip),%xmm0
movsd  %xmm0,0x28(%rax)
mov    -0x18(%rbp),%rax
movsd  0xe2a(%rip),%xmm0
movsd  %xmm0,0x30(%rax)
mov    -0x18(%rbp),%rax
movsd  0xe11(%rip),%xmm0
movsd  %xmm0,0x38(%rax)
mov    -0x18(%rbp),%rax
movsd  0xdf8(%rip),%xmm0
movsd  %xmm0,0x40(%rax)
mov    -0x18(%rbp),%rax
movsd  0xddf(%rip),%xmm0
movsd  %xmm0,0x48(%rax)
mov    -0x18(%rbp),%rax
movsd  0xdc6(%rip),%xmm0
movsd  %xmm0,0x50(%rax)
mov    -0x18(%rbp),%rax
movsd  0xdad(%rip),%xmm0
movsd  %xmm0,0x58(%rax)
mov    -0x18(%rbp),%rax
movsd  0xd94(%rip),%xmm0
movsd  %xmm0,0x60(%rax)
mov    -0x18(%rbp),%rax
movsd  0xd7b(%rip),%xmm0
movsd  %xmm0,0x68(%rax)
mov    -0x18(%rbp),%rax
movsd  0xd62(%rip),%xmm0
movsd  %xmm0,0x70(%rax)
mov    -0x18(%rbp),%rax
movsd  0xd49(%rip),%xmm0
movsd  %xmm0,0x78(%rax)
mov    -0x18(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xdb3(%rip),%rcx
call   1030 <m_print@plt>
mov    -0x18(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0x2c(%rbp),%edx
call   10a0 <m_dup@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%esi
lea    -0x90(%rbp),%rdx
lea    -0x34(%rbp),%rcx
call   1050 <m_LU@plt>
mov    %eax,-0x30(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xd72(%rip),%rcx
call   1030 <m_print@plt>
lea    -0x90(%rbp),%rdi
mov    -0x2c(%rbp),%esi
lea    0xd5f(%rip),%rdx
call   10b0 <printper@plt>
cvtsi2sdl -0x30(%rbp),%xmm0
mov    -0x34(%rbp),%esi
lea    0xd4e(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x2c(%rbp),%esi
call   1080 <m_det@plt>
lea    0xd42(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   1060 <m_inversion@plt>
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xd25(%rip),%rcx
call   1030 <m_print@plt>
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%esi
call   1080 <m_det@plt>
lea    0xd14(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rax
movsd  0xc21(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
movsd  0xc11(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x18(%rbp),%rax
movsd  0xbf4(%rip),%xmm0
movsd  %xmm0,0x18(%rax)
mov    -0x18(%rbp),%rax
movsd  0xc13(%rip),%xmm0
movsd  %xmm0,0x20(%rax)
mov    -0x18(%rbp),%rax
movsd  0xc02(%rip),%xmm0
movsd  %xmm0,0x28(%rax)
mov    -0x18(%rbp),%rax
movsd  0xbc1(%rip),%xmm0
movsd  %xmm0,0x30(%rax)
mov    -0x18(%rbp),%rax
movsd  0xbd8(%rip),%xmm0
movsd  %xmm0,0x38(%rax)
mov    -0x18(%rbp),%rax
movsd  0xbbf(%rip),%xmm0
movsd  %xmm0,0x40(%rax)
mov    -0x18(%rbp),%rax
movsd  0xba6(%rip),%xmm0
movsd  %xmm0,0x48(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x50(%rax)
mov    -0x18(%rbp),%rax
movsd  0xb81(%rip),%xmm0
movsd  %xmm0,0x58(%rax)
mov    -0x18(%rbp),%rax
movsd  0xb68(%rip),%xmm0
movsd  %xmm0,0x60(%rax)
mov    -0x18(%rbp),%rax
movsd  0xb57(%rip),%xmm0
movsd  %xmm0,0x68(%rax)
mov    -0x18(%rbp),%rax
movsd  0xb3e(%rip),%xmm0
movsd  %xmm0,0x70(%rax)
mov    -0x18(%rbp),%rax
movsd  0xb25(%rip),%xmm0
movsd  %xmm0,0x78(%rax)
mov    -0x18(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xbcf(%rip),%rcx
call   1030 <m_print@plt>
mov    -0x18(%rbp),%rdi
mov    -0x2c(%rbp),%esi
call   1080 <m_det@plt>
lea    0xbcd(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x2c(%rbp),%edx
call   1060 <m_inversion@plt>
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xbb0(%rip),%rcx
call   1030 <m_print@plt>
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%esi
call   1080 <m_det@plt>
lea    0xb9f(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1090 <m_free@plt>
mov    -0x20(%rbp),%rdi
call   1090 <m_free@plt>
mov    $0x3,%edi
mov    $0x5,%esi
call   1070 <m_eye@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x3,%esi
mov    $0x5,%edx
lea    0xb69(%rip),%rcx
call   1030 <m_print@plt>
mov    -0x18(%rbp),%rdi
call   1090 <m_free@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    $0x4,%edi
mov    $0x4,%esi
call   10c0 <m_new@plt>
mov    %rax,%rbx
mov    $0x4,%edi
mov    $0x4,%esi
call   10c0 <m_new@plt>
mov    $0x4,%edi
mov    $0x4,%esi
call   10c0 <m_new@plt>
movaps 0xe1b(%rip),%xmm0
movups %xmm0,(%rbx)
movaps 0xe21(%rip),%xmm0
movups %xmm0,0x10(%rbx)
movaps 0xe26(%rip),%xmm0
movups %xmm0,0x20(%rbx)
movaps 0xe2b(%rip),%xmm0
movups %xmm0,0x30(%rbx)
movaps 0xe30(%rip),%xmm0
movups %xmm0,0x40(%rbx)
movaps 0xe35(%rip),%xmm0
movups %xmm0,0x50(%rbx)
movaps 0xe3a(%rip),%xmm0
movups %xmm0,0x60(%rbx)
movaps 0xe3f(%rip),%xmm0
movups %xmm0,0x70(%rbx)
lea    0xeb4(%rip),%r15
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x4,%edx
mov    %r15,%rcx
call   1030 <m_print@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x4,%edx
call   10a0 <m_dup@plt>
mov    %rax,%r14
lea    0x10(%rsp),%r12
lea    0xc(%rsp),%rcx
mov    %rax,%rdi
mov    $0x4,%esi
mov    %r12,%rdx
call   1050 <m_LU@plt>
mov    %eax,%ebp
lea    0xe69(%rip),%rcx
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x4,%edx
call   1030 <m_print@plt>
lea    0xe53(%rip),%rdx
mov    %r12,%rdi
mov    $0x4,%esi
call   10b0 <printper@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
mov    0xc(%rsp),%esi
lea    0xe37(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1080 <m_det@plt>
lea    0xe2a(%rip),%r13
mov    %r13,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x4,%edx
call   1060 <m_inversion@plt>
lea    0xe14(%rip),%r12
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x4,%edx
mov    %r12,%rcx
call   1030 <m_print@plt>
mov    %r14,%rdi
mov    $0x4,%esi
call   1080 <m_det@plt>
lea    0xdf2(%rip),%rbp
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movaps 0xd49(%rip),%xmm0
movups %xmm0,(%rbx)
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
movhps 0xd99(%rip),%xmm1
movups %xmm1,0x10(%rbx)
movaps 0xd3e(%rip),%xmm1
movups %xmm1,0x20(%rbx)
movaps 0xd43(%rip),%xmm1
movups %xmm1,0x30(%rbx)
movaps 0xd48(%rip),%xmm1
movups %xmm1,0x40(%rbx)
movhps 0xd75(%rip),%xmm0
movups %xmm0,0x50(%rbx)
movaps 0xd42(%rip),%xmm0
movups %xmm0,0x60(%rbx)
movaps 0xd47(%rip),%xmm0
movups %xmm0,0x70(%rbx)
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x4,%edx
mov    %r15,%rcx
call   1030 <m_print@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1080 <m_det@plt>
mov    %r13,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x4,%edx
call   1060 <m_inversion@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x4,%edx
mov    %r12,%rcx
call   1030 <m_print@plt>
mov    %r14,%rdi
mov    $0x4,%esi
call   1080 <m_det@plt>
mov    %rbp,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1090 <m_free@plt>
mov    %r14,%rdi
call   1090 <m_free@plt>
mov    $0x3,%edi
mov    $0x5,%esi
call   1070 <m_eye@plt>
mov    %rax,%rbx
lea    0xd05(%rip),%rcx
mov    %rax,%rdi
mov    $0x3,%esi
mov    $0x5,%edx
call   1030 <m_print@plt>
mov    %rbx,%rdi
call   1090 <m_free@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"A\00"
@.str.1 = [3 x i8] c"LU\00"
@.str.2 = [3 x i8] c"pr\00"
@.str.3 = [14 x i8] c"s=%i per=%i\0A\00"
@.str.4 = [11 x i8] c"Det(A)=%g\0A\00"
@.str.5 = [7 x i8] c"inv(A)\00"
@.str.6 = [11 x i8] c"Det(B)=%g\0A\00"
@.str.7 = [9 x i8] c"eye 3, 5\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca [20 x i32]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 4, i32* %9
%13 = load i32, i32* %9
%14 = load i32, i32* %9
%15 = call double* @m_new(i32 %13, i32 %14)
store double* %15, double** %6
%16 = load i32, i32* %9
%17 = load i32, i32* %9
%18 = call double* @m_new(i32 %16, i32 %17)
store double* %18, double** %7
%19 = load i32, i32* %9
%20 = load i32, i32* %9
%21 = call double* @m_new(i32 %19, i32 %20)
store double* %21, double** %8
%22 = load double*, double** %6
%23 = getelementptr inbounds double, double* %22, i64 0
store double 4.000000e+00, double* %23
%24 = load double*, double** %6
%25 = getelementptr inbounds double, double* %24, i64 1
store double 3.000000e+00, double* %25
%26 = load double*, double** %6
%27 = getelementptr inbounds double, double* %26, i64 2
store double 2.000000e+00, double* %27
%28 = load double*, double** %6
%29 = getelementptr inbounds double, double* %28, i64 3
store double -1.000000e+00, double* %29
%30 = load double*, double** %6
%31 = getelementptr inbounds double, double* %30, i64 4
store double 8.000000e+00, double* %31
%32 = load double*, double** %6
%33 = getelementptr inbounds double, double* %32, i64 5
store double 7.000000e+00, double* %33
%34 = load double*, double** %6
%35 = getelementptr inbounds double, double* %34, i64 6
store double -6.000000e+00, double* %35
%36 = load double*, double** %6
%37 = getelementptr inbounds double, double* %36, i64 7
store double 5.000000e+00, double* %37
%38 = load double*, double** %6
%39 = getelementptr inbounds double, double* %38, i64 8
store double 1.200000e+01, double* %39
%40 = load double*, double** %6
%41 = getelementptr inbounds double, double* %40, i64 9
store double -1.100000e+01, double* %41
%42 = load double*, double** %6
%43 = getelementptr inbounds double, double* %42, i64 10
store double 1.000000e+01, double* %43
%44 = load double*, double** %6
%45 = getelementptr inbounds double, double* %44, i64 11
store double 9.000000e+00, double* %45
%46 = load double*, double** %6
%47 = getelementptr inbounds double, double* %46, i64 12
store double -1.600000e+01, double* %47
%48 = load double*, double** %6
%49 = getelementptr inbounds double, double* %48, i64 13
store double 1.500000e+01, double* %49
%50 = load double*, double** %6
%51 = getelementptr inbounds double, double* %50, i64 14
store double 1.400000e+01, double* %51
%52 = load double*, double** %6
%53 = getelementptr inbounds double, double* %52, i64 15
store double 1.300000e+01, double* %53
%54 = load double*, double** %6
%55 = load i32, i32* %9
%56 = load i32, i32* %9
%57 = call i32 @m_print(double* %54, i32 %55, i32 %56, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%58 = load double*, double** %6
%59 = load i32, i32* %9
%60 = load i32, i32* %9
%61 = call double* @m_dup(double* %58, i32 %59, i32 %60)
store double* %61, double** %7
%62 = load double*, double** %7
%63 = load i32, i32* %9
%64 = getelementptr inbounds [20 x i32], [20 x i32]* %12, i64 0, i64 0
%65 = call i32 @m_LU(double* %62, i32 %63, i32* %64, i32* %11)
store i32 %65, i32* %10
%66 = load double*, double** %7
%67 = load i32, i32* %9
%68 = load i32, i32* %9
%69 = call i32 @m_print(double* %66, i32 %67, i32 %68, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%70 = getelementptr inbounds [20 x i32], [20 x i32]* %12, i64 0, i64 0
%71 = load i32, i32* %9
%72 = call i32 @printper(i32* %70, i32 %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%73 = load i32, i32* %10
%74 = sitofp i32 %73 to double
%75 = load i32, i32* %11
%76 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), double %74, i32 %75)
%77 = load double*, double** %6
%78 = load i32, i32* %9
%79 = call double @m_det(double* %77, i32 %78)
%80 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), double %79)
%81 = load double*, double** %6
%82 = load double*, double** %7
%83 = load i32, i32* %9
%84 = call i32 @m_inversion(double* %81, double* %82, i32 %83)
%85 = load double*, double** %7
%86 = load i32, i32* %9
%87 = load i32, i32* %9
%88 = call i32 @m_print(double* %85, i32 %86, i32 %87, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%89 = load double*, double** %7
%90 = load i32, i32* %9
%91 = call double @m_det(double* %89, i32 %90)
%92 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), double %91)
%93 = load double*, double** %6
%94 = getelementptr inbounds double, double* %93, i64 0
store double 5.000000e-01, double* %94
%95 = load double*, double** %6
%96 = getelementptr inbounds double, double* %95, i64 1
store double 5.000000e-01, double* %96
%97 = load double*, double** %6
%98 = getelementptr inbounds double, double* %97, i64 2
store double 0.000000e+00, double* %98
%99 = load double*, double** %6
%100 = getelementptr inbounds double, double* %99, i64 3
store double 5.000000e-01, double* %100
%101 = load double*, double** %6
%102 = getelementptr inbounds double, double* %101, i64 4
store double -2.500000e-01, double* %102
%103 = load double*, double** %6
%104 = getelementptr inbounds double, double* %103, i64 5
store double -2.500000e-01, double* %104
%105 = load double*, double** %6
%106 = getelementptr inbounds double, double* %105, i64 6
store double 5.000000e-01, double* %106
%107 = load double*, double** %6
%108 = getelementptr inbounds double, double* %107, i64 7
store double -7.500000e-01, double* %108
%109 = load double*, double** %6
%110 = getelementptr inbounds double, double* %109, i64 8
store double -1.500000e+00, double* %110
%111 = load double*, double** %6
%112 = getelementptr inbounds double, double* %111, i64 9
store double -5.000000e-01, double* %112
%113 = load double*, double** %6
%114 = getelementptr inbounds double, double* %113, i64 10
store double 0.000000e+00, double* %114
%115 = load double*, double** %6
%116 = getelementptr inbounds double, double* %115, i64 11
store double -2.500000e+00, double* %116
%117 = load double*, double** %6
%118 = getelementptr inbounds double, double* %117, i64 12
store double 2.500000e-01, double* %118
%119 = load double*, double** %6
%120 = getelementptr inbounds double, double* %119, i64 13
store double 2.500000e-01, double* %120
%121 = load double*, double** %6
%122 = getelementptr inbounds double, double* %121, i64 14
store double 5.000000e-01, double* %122
%123 = load double*, double** %6
%124 = getelementptr inbounds double, double* %123, i64 15
store double 7.500000e-01, double* %124
%125 = load double*, double** %6
%126 = load i32, i32* %9
%127 = load i32, i32* %9
%128 = call i32 @m_print(double* %125, i32 %126, i32 %127, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%129 = load double*, double** %6
%130 = load i32, i32* %9
%131 = call double @m_det(double* %129, i32 %130)
%132 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), double %131)
%133 = load double*, double** %6
%134 = load double*, double** %7
%135 = load i32, i32* %9
%136 = call i32 @m_inversion(double* %133, double* %134, i32 %135)
%137 = load double*, double** %7
%138 = load i32, i32* %9
%139 = load i32, i32* %9
%140 = call i32 @m_print(double* %137, i32 %138, i32 %139, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%141 = load double*, double** %7
%142 = load i32, i32* %9
%143 = call double @m_det(double* %141, i32 %142)
%144 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), double %143)
%145 = load double*, double** %6
%146 = call i32 @m_free(double* %145)
%147 = load double*, double** %7
%148 = call i32 @m_free(double* %147)
%149 = call double* @m_eye(i32 3, i32 5)
store double* %149, double** %6
%150 = load double*, double** %6
%151 = call i32 @m_print(double* %150, i32 3, i32 5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%152 = load double*, double** %6
%153 = call i32 @m_free(double* %152)
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"A\00"
@.str.1 = [3 x i8] c"LU\00"
@.str.2 = [3 x i8] c"pr\00"
@.str.3 = [14 x i8] c"s=%i per=%i\0A\00"
@.str.4 = [11 x i8] c"Det(A)=%g\0A\00"
@.str.5 = [7 x i8] c"inv(A)\00"
@.str.6 = [11 x i8] c"Det(B)=%g\0A\00"
@.str.7 = [9 x i8] c"eye 3, 5\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca [20 x i32]
%5 = bitcast i32* %3 to i8*
%6 = bitcast [20 x i32]* %4 to i8*
%7 = tail call double* @m_new(i32 4, i32 4)
%8 = tail call double* @m_new(i32 4, i32 4)
%9 = tail call double* @m_new(i32 4, i32 4)
%10 = bitcast double* %7 to <2 x double>*
store <2 x double> <double 4.000000e+00, double 3.000000e+00>, <2 x double>* %10
%11 = getelementptr inbounds double, double* %7, i64 2
%12 = bitcast double* %11 to <2 x double>*
store <2 x double> <double 2.000000e+00, double -1.000000e+00>, <2 x double>* %12
%13 = getelementptr inbounds double, double* %7, i64 4
%14 = bitcast double* %13 to <2 x double>*
store <2 x double> <double 8.000000e+00, double 7.000000e+00>, <2 x double>* %14
%15 = getelementptr inbounds double, double* %7, i64 6
%16 = bitcast double* %15 to <2 x double>*
store <2 x double> <double -6.000000e+00, double 5.000000e+00>, <2 x double>* %16
%17 = getelementptr inbounds double, double* %7, i64 8
%18 = bitcast double* %17 to <2 x double>*
store <2 x double> <double 1.200000e+01, double -1.100000e+01>, <2 x double>* %18
%19 = getelementptr inbounds double, double* %7, i64 10
%20 = bitcast double* %19 to <2 x double>*
store <2 x double> <double 1.000000e+01, double 9.000000e+00>, <2 x double>* %20
%21 = getelementptr inbounds double, double* %7, i64 12
%22 = bitcast double* %21 to <2 x double>*
store <2 x double> <double -1.600000e+01, double 1.500000e+01>, <2 x double>* %22
%23 = getelementptr inbounds double, double* %7, i64 14
%24 = bitcast double* %23 to <2 x double>*
store <2 x double> <double 1.400000e+01, double 1.300000e+01>, <2 x double>* %24
%25 = tail call i32 @m_print(double* %7, i32 4, i32 4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%26 = tail call double* @m_dup(double* %7, i32 4, i32 4)
%27 = getelementptr inbounds [20 x i32], [20 x i32]* %4, i64 0, i64 0
%28 = call i32 @m_LU(double* %26, i32 4, i32* %27, i32* %3)
%29 = call i32 @m_print(double* %26, i32 4, i32 4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%30 = call i32 @printper(i32* %27, i32 4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%31 = sitofp i32 %28 to double
%32 = load i32, i32* %3
%33 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), double %31, i32 %32)
%34 = call double @m_det(double* %7, i32 4)
%35 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), double %34)
%36 = call i32 @m_inversion(double* %7, double* %26, i32 4)
%37 = call i32 @m_print(double* %26, i32 4, i32 4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%38 = call double @m_det(double* %26, i32 4)
%39 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), double %38)
%40 = bitcast double* %7 to <2 x double>*
store <2 x double> <double 5.000000e-01, double 5.000000e-01>, <2 x double>* %40
%41 = bitcast double* %11 to <2 x double>*
store <2 x double> <double 0.000000e+00, double 5.000000e-01>, <2 x double>* %41
%42 = bitcast double* %13 to <2 x double>*
store <2 x double> <double -2.500000e-01, double -2.500000e-01>, <2 x double>* %42
%43 = bitcast double* %15 to <2 x double>*
store <2 x double> <double 5.000000e-01, double -7.500000e-01>, <2 x double>* %43
%44 = bitcast double* %17 to <2 x double>*
store <2 x double> <double -1.500000e+00, double -5.000000e-01>, <2 x double>* %44
%45 = bitcast double* %19 to <2 x double>*
store <2 x double> <double 0.000000e+00, double -2.500000e+00>, <2 x double>* %45
%46 = bitcast double* %21 to <2 x double>*
store <2 x double> <double 2.500000e-01, double 2.500000e-01>, <2 x double>* %46
%47 = bitcast double* %23 to <2 x double>*
store <2 x double> <double 5.000000e-01, double 7.500000e-01>, <2 x double>* %47
%48 = call i32 @m_print(double* %7, i32 4, i32 4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%49 = call double @m_det(double* %7, i32 4)
%50 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), double %49)
%51 = call i32 @m_inversion(double* %7, double* %26, i32 4)
%52 = call i32 @m_print(double* %26, i32 4, i32 4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%53 = call double @m_det(double* %26, i32 4)
%54 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), double %53)
%55 = call i32 @m_free(double* %7)
%56 = call i32 @m_free(double* %26)
%57 = call double* @m_eye(i32 3, i32 5)
%58 = call i32 @m_print(double* %57, i32 3, i32 5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%59 = call i32 @m_free(double* %57)
ret i32 0
}