#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 */
scalar_t__ malloc(int);
float *createMat4(float *destMat4) {
  float *mat4 = (float *)malloc(sizeof(float) * 16);
  if (destMat4) {
    mat4[0] = destMat4[0];
    mat4[4] = destMat4[4];
    mat4[8] = destMat4[8];
    mat4[1] = destMat4[1];
    mat4[5] = destMat4[5];
    mat4[9] = destMat4[9];
    mat4[2] = destMat4[2];
    mat4[6] = destMat4[6];
    mat4[10] = destMat4[10];
    mat4[3] = destMat4[3];
    mat4[7] = destMat4[7];
    mat4[11] = destMat4[11];
    mat4[12] = destMat4[12];
    mat4[13] = destMat4[13];
    mat4[14] = destMat4[14];
    mat4[15] = destMat4[15];
  }
  return mat4;
}


x86 assembly (clang, -O0):
<createMat4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x40,%edi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1253 <createMat4+0x143>
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movss  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x10(%rax)
mov    -0x8(%rbp),%rax
movss  0x20(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x20(%rax)
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x4(%rax)
mov    -0x8(%rbp),%rax
movss  0x14(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x14(%rax)
mov    -0x8(%rbp),%rax
movss  0x24(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x24(%rax)
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
movss  0x18(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x18(%rax)
mov    -0x8(%rbp),%rax
movss  0x28(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x28(%rax)
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0xc(%rax)
mov    -0x8(%rbp),%rax
movss  0x1c(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x1c(%rax)
mov    -0x8(%rbp),%rax
movss  0x2c(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x2c(%rax)
mov    -0x8(%rbp),%rax
movss  0x30(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x30(%rax)
mov    -0x8(%rbp),%rax
movss  0x34(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x34(%rax)
mov    -0x8(%rbp),%rax
movss  0x38(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x38(%rax)
mov    -0x8(%rbp),%rax
movss  0x3c(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x3c(%rax)
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<createMat4>:
push   %rbx
mov    %rdi,%rbx
mov    $0x40,%edi
call   1030 <malloc@plt>
test   %rbx,%rbx
je     11c5 <createMat4+0xb5>
movss  (%rbx),%xmm0
movss  %xmm0,(%rax)
movss  0x10(%rbx),%xmm0
movss  %xmm0,0x10(%rax)
movss  0x20(%rbx),%xmm0
movss  %xmm0,0x20(%rax)
movss  0x4(%rbx),%xmm0
movss  %xmm0,0x4(%rax)
movss  0x14(%rbx),%xmm0
movss  %xmm0,0x14(%rax)
movss  0x24(%rbx),%xmm0
movss  %xmm0,0x24(%rax)
movss  0x8(%rbx),%xmm0
movss  %xmm0,0x8(%rax)
movss  0x18(%rbx),%xmm0
movss  %xmm0,0x18(%rax)
movss  0x28(%rbx),%xmm0
movss  %xmm0,0x28(%rax)
movss  0xc(%rbx),%xmm0
movss  %xmm0,0xc(%rax)
movss  0x1c(%rbx),%xmm0
movss  %xmm0,0x1c(%rax)
movss  0x2c(%rbx),%xmm0
movss  %xmm0,0x2c(%rax)
movss  0x30(%rbx),%xmm0
movss  %xmm0,0x30(%rax)
movss  0x34(%rbx),%xmm0
movss  %xmm0,0x34(%rax)
movss  0x38(%rbx),%xmm0
movss  %xmm0,0x38(%rax)
movss  0x3c(%rbx),%xmm0
movss  %xmm0,0x3c(%rax)
pop    %rbx
ret

LLVM IR (-O0):
define float* @createMat4(float* %0) {
%2 = alloca float*
%3 = alloca float*
store float* %0, float** %2
%4 = call i64 @malloc(i32 64)
%5 = inttoptr i64 %4 to float*
store float* %5, float** %3
%6 = load float*, float** %2
%7 = icmp ne float* %6, null
br i1 %7, label %8, label %89
8: ; preds = %1
%9 = load float*, float** %2
%10 = getelementptr inbounds float, float* %9, i64 0
%11 = load float, float* %10
%12 = load float*, float** %3
%13 = getelementptr inbounds float, float* %12, i64 0
store float %11, float* %13
%14 = load float*, float** %2
%15 = getelementptr inbounds float, float* %14, i64 4
%16 = load float, float* %15
%17 = load float*, float** %3
%18 = getelementptr inbounds float, float* %17, i64 4
store float %16, float* %18
%19 = load float*, float** %2
%20 = getelementptr inbounds float, float* %19, i64 8
%21 = load float, float* %20
%22 = load float*, float** %3
%23 = getelementptr inbounds float, float* %22, i64 8
store float %21, float* %23
%24 = load float*, float** %2
%25 = getelementptr inbounds float, float* %24, i64 1
%26 = load float, float* %25
%27 = load float*, float** %3
%28 = getelementptr inbounds float, float* %27, i64 1
store float %26, float* %28
%29 = load float*, float** %2
%30 = getelementptr inbounds float, float* %29, i64 5
%31 = load float, float* %30
%32 = load float*, float** %3
%33 = getelementptr inbounds float, float* %32, i64 5
store float %31, float* %33
%34 = load float*, float** %2
%35 = getelementptr inbounds float, float* %34, i64 9
%36 = load float, float* %35
%37 = load float*, float** %3
%38 = getelementptr inbounds float, float* %37, i64 9
store float %36, float* %38
%39 = load float*, float** %2
%40 = getelementptr inbounds float, float* %39, i64 2
%41 = load float, float* %40
%42 = load float*, float** %3
%43 = getelementptr inbounds float, float* %42, i64 2
store float %41, float* %43
%44 = load float*, float** %2
%45 = getelementptr inbounds float, float* %44, i64 6
%46 = load float, float* %45
%47 = load float*, float** %3
%48 = getelementptr inbounds float, float* %47, i64 6
store float %46, float* %48
%49 = load float*, float** %2
%50 = getelementptr inbounds float, float* %49, i64 10
%51 = load float, float* %50
%52 = load float*, float** %3
%53 = getelementptr inbounds float, float* %52, i64 10
store float %51, float* %53
%54 = load float*, float** %2
%55 = getelementptr inbounds float, float* %54, i64 3
%56 = load float, float* %55
%57 = load float*, float** %3
%58 = getelementptr inbounds float, float* %57, i64 3
store float %56, float* %58
%59 = load float*, float** %2
%60 = getelementptr inbounds float, float* %59, i64 7
%61 = load float, float* %60
%62 = load float*, float** %3
%63 = getelementptr inbounds float, float* %62, i64 7
store float %61, float* %63
%64 = load float*, float** %2
%65 = getelementptr inbounds float, float* %64, i64 11
%66 = load float, float* %65
%67 = load float*, float** %3
%68 = getelementptr inbounds float, float* %67, i64 11
store float %66, float* %68
%69 = load float*, float** %2
%70 = getelementptr inbounds float, float* %69, i64 12
%71 = load float, float* %70
%72 = load float*, float** %3
%73 = getelementptr inbounds float, float* %72, i64 12
store float %71, float* %73
%74 = load float*, float** %2
%75 = getelementptr inbounds float, float* %74, i64 13
%76 = load float, float* %75
%77 = load float*, float** %3
%78 = getelementptr inbounds float, float* %77, i64 13
store float %76, float* %78
%79 = load float*, float** %2
%80 = getelementptr inbounds float, float* %79, i64 14
%81 = load float, float* %80
%82 = load float*, float** %3
%83 = getelementptr inbounds float, float* %82, i64 14
store float %81, float* %83
%84 = load float*, float** %2
%85 = getelementptr inbounds float, float* %84, i64 15
%86 = load float, float* %85
%87 = load float*, float** %3
%88 = getelementptr inbounds float, float* %87, i64 15
store float %86, float* %88
br label %89
89: ; preds = %8, %1
%90 = load float*, float** %3
ret float* %90
}

LLVM IR (-O2):
define float* @createMat4(float* %0) {
%2 = tail call i64 @malloc(i32 64)
%3 = inttoptr i64 %2 to float*
%4 = icmp eq float* %0, null
br i1 %4, label %52, label %5
5: ; preds = %1
%6 = load float, float* %0
store float %6, float* %3
%7 = getelementptr inbounds float, float* %0, i64 4
%8 = load float, float* %7
%9 = getelementptr inbounds float, float* %3, i64 4
store float %8, float* %9
%10 = getelementptr inbounds float, float* %0, i64 8
%11 = load float, float* %10
%12 = getelementptr inbounds float, float* %3, i64 8
store float %11, float* %12
%13 = getelementptr inbounds float, float* %0, i64 1
%14 = load float, float* %13
%15 = getelementptr inbounds float, float* %3, i64 1
store float %14, float* %15
%16 = getelementptr inbounds float, float* %0, i64 5
%17 = load float, float* %16
%18 = getelementptr inbounds float, float* %3, i64 5
store float %17, float* %18
%19 = getelementptr inbounds float, float* %0, i64 9
%20 = load float, float* %19
%21 = getelementptr inbounds float, float* %3, i64 9
store float %20, float* %21
%22 = getelementptr inbounds float, float* %0, i64 2
%23 = load float, float* %22
%24 = getelementptr inbounds float, float* %3, i64 2
store float %23, float* %24
%25 = getelementptr inbounds float, float* %0, i64 6
%26 = load float, float* %25
%27 = getelementptr inbounds float, float* %3, i64 6
store float %26, float* %27
%28 = getelementptr inbounds float, float* %0, i64 10
%29 = load float, float* %28
%30 = getelementptr inbounds float, float* %3, i64 10
store float %29, float* %30
%31 = getelementptr inbounds float, float* %0, i64 3
%32 = load float, float* %31
%33 = getelementptr inbounds float, float* %3, i64 3
store float %32, float* %33
%34 = getelementptr inbounds float, float* %0, i64 7
%35 = load float, float* %34
%36 = getelementptr inbounds float, float* %3, i64 7
store float %35, float* %36
%37 = getelementptr inbounds float, float* %0, i64 11
%38 = load float, float* %37
%39 = getelementptr inbounds float, float* %3, i64 11
store float %38, float* %39
%40 = getelementptr inbounds float, float* %0, i64 12
%41 = load float, float* %40
%42 = getelementptr inbounds float, float* %3, i64 12
store float %41, float* %42
%43 = getelementptr inbounds float, float* %0, i64 13
%44 = load float, float* %43
%45 = getelementptr inbounds float, float* %3, i64 13
store float %44, float* %45
%46 = getelementptr inbounds float, float* %0, i64 14
%47 = load float, float* %46
%48 = getelementptr inbounds float, float* %3, i64 14
store float %47, float* %48
%49 = getelementptr inbounds float, float* %0, i64 15
%50 = load float, float* %49
%51 = getelementptr inbounds float, float* %3, i64 15
store float %50, float* %51
br label %52
52: ; preds = %5, %1
ret float* %3
}