#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 */
typedef float GLdouble;

/* Variables and functions */
scalar_t__ malloc(int);
GLdouble *eskalaketa(float x, float y, float z) {
  GLdouble *mat = (GLdouble *)malloc(sizeof(GLdouble) * 4 * 4);
  mat[0] = x;
  mat[4] = 0;
  mat[8] = 0;
  mat[12] = 0;
  mat[1] = 0;
  mat[5] = y;
  mat[9] = 0;
  mat[13] = 0;
  mat[2] = 0;
  mat[6] = 0;
  mat[10] = z;
  mat[14] = 0;
  mat[3] = 0;
  mat[7] = 0;
  mat[11] = 0;
  mat[15] = 1;
  return mat;
}


x86 assembly (clang, -O0):
<eskalaketa>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
mov    $0x40,%edi
call   1030 <malloc@plt>
mov    %rax,-0x18(%rbp)
movss  -0x4(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x10(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x20(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x30(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x4(%rax)
movss  -0x8(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x14(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x24(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x34(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x18(%rax)
movss  -0xc(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x28(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x38(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0xc(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x1c(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0x2c(%rax)
mov    -0x18(%rbp),%rax
movss  0xe06(%rip),%xmm0
movss  %xmm0,0x3c(%rax)
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eskalaketa>:
sub    $0x18,%rsp
movss  %xmm2,0x14(%rsp)
movss  %xmm1,0x10(%rsp)
movss  %xmm0,0xc(%rsp)
mov    $0x40,%edi
call   1030 <malloc@plt>
movss  0xc(%rsp),%xmm0
movss  %xmm0,(%rax)
movss  0x10(%rsp),%xmm0
movss  %xmm0,0x14(%rax)
movss  0x14(%rsp),%xmm0
movss  %xmm0,0x28(%rax)
xorps  %xmm0,%xmm0
movups %xmm0,0x4(%rax)
movups %xmm0,0x18(%rax)
movups %xmm0,0x2c(%rax)
movl   $0x3f800000,0x3c(%rax)
add    $0x18,%rsp
ret

LLVM IR (-O0):
define float* @eskalaketa(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float*
store float %0, float* %4
store float %1, float* %5
store float %2, float* %6
%8 = call i64 @malloc(i32 64)
%9 = inttoptr i64 %8 to float*
store float* %9, float** %7
%10 = load float, float* %4
%11 = load float*, float** %7
%12 = getelementptr inbounds float, float* %11, i64 0
store float %10, float* %12
%13 = load float*, float** %7
%14 = getelementptr inbounds float, float* %13, i64 4
store float 0.000000e+00, float* %14
%15 = load float*, float** %7
%16 = getelementptr inbounds float, float* %15, i64 8
store float 0.000000e+00, float* %16
%17 = load float*, float** %7
%18 = getelementptr inbounds float, float* %17, i64 12
store float 0.000000e+00, float* %18
%19 = load float*, float** %7
%20 = getelementptr inbounds float, float* %19, i64 1
store float 0.000000e+00, float* %20
%21 = load float, float* %5
%22 = load float*, float** %7
%23 = getelementptr inbounds float, float* %22, i64 5
store float %21, float* %23
%24 = load float*, float** %7
%25 = getelementptr inbounds float, float* %24, i64 9
store float 0.000000e+00, float* %25
%26 = load float*, float** %7
%27 = getelementptr inbounds float, float* %26, i64 13
store float 0.000000e+00, float* %27
%28 = load float*, float** %7
%29 = getelementptr inbounds float, float* %28, i64 2
store float 0.000000e+00, float* %29
%30 = load float*, float** %7
%31 = getelementptr inbounds float, float* %30, i64 6
store float 0.000000e+00, float* %31
%32 = load float, float* %6
%33 = load float*, float** %7
%34 = getelementptr inbounds float, float* %33, i64 10
store float %32, float* %34
%35 = load float*, float** %7
%36 = getelementptr inbounds float, float* %35, i64 14
store float 0.000000e+00, float* %36
%37 = load float*, float** %7
%38 = getelementptr inbounds float, float* %37, i64 3
store float 0.000000e+00, float* %38
%39 = load float*, float** %7
%40 = getelementptr inbounds float, float* %39, i64 7
store float 0.000000e+00, float* %40
%41 = load float*, float** %7
%42 = getelementptr inbounds float, float* %41, i64 11
store float 0.000000e+00, float* %42
%43 = load float*, float** %7
%44 = getelementptr inbounds float, float* %43, i64 15
store float 1.000000e+00, float* %44
%45 = load float*, float** %7
ret float* %45
}

LLVM IR (-O2):
define float* @eskalaketa(float %0, float %1, float %2) {
%4 = tail call i64 @malloc(i32 64)
%5 = inttoptr i64 %4 to float*
store float %0, float* %5
%6 = getelementptr inbounds float, float* %5, i64 1
%7 = getelementptr inbounds float, float* %5, i64 5
store float %1, float* %7
%8 = getelementptr inbounds float, float* %5, i64 6
%9 = getelementptr inbounds float, float* %5, i64 10
store float %2, float* %9
%10 = bitcast float* %6 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %10
%11 = bitcast float* %8 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %11
%12 = getelementptr inbounds float, float* %5, i64 11
%13 = bitcast float* %12 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %13
%14 = getelementptr inbounds float, float* %5, i64 15
store float 1.000000e+00, float* %14
ret float* %5
}