#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*/ assert(double **);
void matrix3_initialize(double m[4][4]) {
  assert(m);
  m[0][0] = 1.0;
  m[0][1] = 0.0;
  m[0][2] = 0.0;
  m[0][3] = 0.0;
  m[1][0] = 0.0;
  m[1][1] = 1.0;
  m[1][2] = 0.0;
  m[1][3] = 0.0;
  m[2][0] = 0.0;
  m[2][1] = 0.0;
  m[2][2] = 1.0;
  m[2][3] = 0.0;
  m[3][0] = 0.0;
  m[3][1] = 0.0;
  m[3][2] = 0.0;
  m[3][3] = 1.0;
}


x86 assembly (clang, -O0):
<matrix3_initialize>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <assert@plt>
mov    -0x8(%rbp),%rax
movsd  0xecf(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x18(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x20(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe8f(%rip),%xmm0
movsd  %xmm0,0x28(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x30(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x38(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x40(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x48(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe4e(%rip),%xmm0
movsd  %xmm0,0x50(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x58(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x60(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x68(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x70(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe0d(%rip),%xmm0
movsd  %xmm0,0x78(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<matrix3_initialize>:
push   %rbx
mov    %rdi,%rbx
call   1030 <assert@plt>
movabs $0x3ff0000000000000,%rax
mov    %rax,(%rbx)
xorps  %xmm0,%xmm0
movups %xmm0,0x8(%rbx)
movups %xmm0,0x18(%rbx)
mov    %rax,0x28(%rbx)
movups %xmm0,0x30(%rbx)
movups %xmm0,0x40(%rbx)
mov    %rax,0x50(%rbx)
movups %xmm0,0x58(%rbx)
movups %xmm0,0x68(%rbx)
mov    %rax,0x78(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @matrix3_initialize([4 x double]* %0) {
%2 = alloca [4 x double]*
store [4 x double]* %0, [4 x double]** %2
%3 = load [4 x double]*, [4 x double]** %2
%4 = bitcast [4 x double]* %3 to double**
%5 = call i32 @assert(double** %4)
%6 = load [4 x double]*, [4 x double]** %2
%7 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0
%8 = getelementptr inbounds [4 x double], [4 x double]* %7, i64 0, i64 0
store double 1.000000e+00, double* %8
%9 = load [4 x double]*, [4 x double]** %2
%10 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0
%11 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 1
store double 0.000000e+00, double* %11
%12 = load [4 x double]*, [4 x double]** %2
%13 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0
%14 = getelementptr inbounds [4 x double], [4 x double]* %13, i64 0, i64 2
store double 0.000000e+00, double* %14
%15 = load [4 x double]*, [4 x double]** %2
%16 = getelementptr inbounds [4 x double], [4 x double]* %15, i64 0
%17 = getelementptr inbounds [4 x double], [4 x double]* %16, i64 0, i64 3
store double 0.000000e+00, double* %17
%18 = load [4 x double]*, [4 x double]** %2
%19 = getelementptr inbounds [4 x double], [4 x double]* %18, i64 1
%20 = getelementptr inbounds [4 x double], [4 x double]* %19, i64 0, i64 0
store double 0.000000e+00, double* %20
%21 = load [4 x double]*, [4 x double]** %2
%22 = getelementptr inbounds [4 x double], [4 x double]* %21, i64 1
%23 = getelementptr inbounds [4 x double], [4 x double]* %22, i64 0, i64 1
store double 1.000000e+00, double* %23
%24 = load [4 x double]*, [4 x double]** %2
%25 = getelementptr inbounds [4 x double], [4 x double]* %24, i64 1
%26 = getelementptr inbounds [4 x double], [4 x double]* %25, i64 0, i64 2
store double 0.000000e+00, double* %26
%27 = load [4 x double]*, [4 x double]** %2
%28 = getelementptr inbounds [4 x double], [4 x double]* %27, i64 1
%29 = getelementptr inbounds [4 x double], [4 x double]* %28, i64 0, i64 3
store double 0.000000e+00, double* %29
%30 = load [4 x double]*, [4 x double]** %2
%31 = getelementptr inbounds [4 x double], [4 x double]* %30, i64 2
%32 = getelementptr inbounds [4 x double], [4 x double]* %31, i64 0, i64 0
store double 0.000000e+00, double* %32
%33 = load [4 x double]*, [4 x double]** %2
%34 = getelementptr inbounds [4 x double], [4 x double]* %33, i64 2
%35 = getelementptr inbounds [4 x double], [4 x double]* %34, i64 0, i64 1
store double 0.000000e+00, double* %35
%36 = load [4 x double]*, [4 x double]** %2
%37 = getelementptr inbounds [4 x double], [4 x double]* %36, i64 2
%38 = getelementptr inbounds [4 x double], [4 x double]* %37, i64 0, i64 2
store double 1.000000e+00, double* %38
%39 = load [4 x double]*, [4 x double]** %2
%40 = getelementptr inbounds [4 x double], [4 x double]* %39, i64 2
%41 = getelementptr inbounds [4 x double], [4 x double]* %40, i64 0, i64 3
store double 0.000000e+00, double* %41
%42 = load [4 x double]*, [4 x double]** %2
%43 = getelementptr inbounds [4 x double], [4 x double]* %42, i64 3
%44 = getelementptr inbounds [4 x double], [4 x double]* %43, i64 0, i64 0
store double 0.000000e+00, double* %44
%45 = load [4 x double]*, [4 x double]** %2
%46 = getelementptr inbounds [4 x double], [4 x double]* %45, i64 3
%47 = getelementptr inbounds [4 x double], [4 x double]* %46, i64 0, i64 1
store double 0.000000e+00, double* %47
%48 = load [4 x double]*, [4 x double]** %2
%49 = getelementptr inbounds [4 x double], [4 x double]* %48, i64 3
%50 = getelementptr inbounds [4 x double], [4 x double]* %49, i64 0, i64 2
store double 0.000000e+00, double* %50
%51 = load [4 x double]*, [4 x double]** %2
%52 = getelementptr inbounds [4 x double], [4 x double]* %51, i64 3
%53 = getelementptr inbounds [4 x double], [4 x double]* %52, i64 0, i64 3
store double 1.000000e+00, double* %53
ret void
}

LLVM IR (-O2):
define void @matrix3_initialize([4 x double]* %0) {
%2 = bitcast [4 x double]* %0 to double**
%3 = tail call i32 @assert(double** %2)
%4 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 0, i64 0
store double 1.000000e+00, double* %4
%5 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 0, i64 1
%6 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 1, i64 1
%7 = bitcast double* %5 to i8*
store double 1.000000e+00, double* %6
%8 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 1, i64 2
%9 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 2, i64 2
%10 = bitcast double* %8 to i8*
store double 1.000000e+00, double* %9
%11 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 2, i64 3
%12 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 3, i64 3
%13 = bitcast double* %11 to i8*
store double 1.000000e+00, double* %12
ret void
}