#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*/ dump(float *);
int /*<<< orphan*/ inv3x3(float *, float *);
int /*<<< orphan*/ puts(char *);
int main() {
  float r[6];
  float m[6] = {1, 2, 3, 2, 3, 4};
  puts("m:");
  dump(m);
  inv3x3(m, r);
  puts("r:");
  dump(r);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0xec1(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xebe(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xebb(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xeb8(%rip),%rdi
call   1030 <puts@plt>
lea    -0x40(%rbp),%rdi
call   1050 <dump@plt>
lea    -0x40(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1040 <inv3x3@plt>
lea    0xe99(%rip),%rdi
call   1030 <puts@plt>
lea    -0x20(%rbp),%rdi
call   1050 <dump@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x38,%rsp
mov    0xed2(%rip),%rax
mov    %rax,0x10(%rsp)
movaps 0xeb6(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xec3(%rip),%rdi
call   1030 <puts@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1050 <dump@plt>
lea    0x20(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <inv3x3@plt>
lea    0xe9f(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1050 <dump@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.m = [6 x float] [float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00]
@.str = [3 x i8] c"m:\00"
@.str.1 = [3 x i8] c"r:\00"
define i32 @main() {
%1 = alloca [6 x float]
%2 = alloca [6 x float]
%3 = bitcast [6 x float]* %2 to i8*
%4 = call i32 @puts(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%5 = getelementptr inbounds [6 x float], [6 x float]* %2, i64 0, i64 0
%6 = call i32 @dump(float* %5)
%7 = getelementptr inbounds [6 x float], [6 x float]* %2, i64 0, i64 0
%8 = getelementptr inbounds [6 x float], [6 x float]* %1, i64 0, i64 0
%9 = call i32 @inv3x3(float* %7, float* %8)
%10 = call i32 @puts(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%11 = getelementptr inbounds [6 x float], [6 x float]* %1, i64 0, i64 0
%12 = call i32 @dump(float* %11)
ret i32 0
}

LLVM IR (-O2):
@__const.main.m = [6 x float] [float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00]
@.str = [3 x i8] c"m:\00"
@.str.1 = [3 x i8] c"r:\00"
define i32 @main() {
%1 = alloca [6 x float]
%2 = alloca [6 x float]
%3 = bitcast [6 x float]* %1 to i8*
%4 = bitcast [6 x float]* %2 to i8*
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%6 = getelementptr inbounds [6 x float], [6 x float]* %2, i64 0, i64 0
%7 = call i32 @dump(float* %6)
%8 = getelementptr inbounds [6 x float], [6 x float]* %1, i64 0, i64 0
%9 = call i32 @inv3x3(float* %6, float* %8)
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 @dump(float* %8)
ret i32 0
}