#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 double GLdouble;

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


x86 assembly (clang, -O0):
<translazioa>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    $0x80,%edi
call   1030 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsd  0xebf(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x20(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x40(%rax)
movsd  0xea3(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x60(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x20(%rbp),%rax
movsd  0xe75(%rip),%xmm0
movsd  %xmm0,0x28(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x48(%rax)
movsd  0xe64(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x68(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x30(%rax)
mov    -0x20(%rbp),%rax
movsd  0xe2a(%rip),%xmm0
movsd  %xmm0,0x50(%rax)
movsd  0xe25(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x70(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x18(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x38(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x58(%rax)
mov    -0x20(%rbp),%rax
movsd  0xddf(%rip),%xmm0
movsd  %xmm0,0x78(%rax)
mov    -0x20(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<translazioa>:
sub    $0x38,%rsp
movsd  %xmm2,0x8(%rsp)
movaps %xmm1,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
mov    $0x80,%edi
call   1030 <malloc@plt>
movsd  0xeca(%rip),%xmm0
movups %xmm0,(%rax)
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
movhps 0xeba(%rip),%xmm2
movups %xmm2,0x20(%rax)
movups %xmm1,0x40(%rax)
movapd 0x10(%rsp),%xmm2
unpcklpd 0x20(%rsp),%xmm2
mulpd  0xeae(%rip),%xmm2
movupd %xmm2,0x60(%rax)
movsd  0x8(%rsp),%xmm2
mulsd  0xe93(%rip),%xmm2
movsd  %xmm2,0x70(%rax)
movups %xmm1,0x10(%rax)
movups %xmm1,0x30(%rax)
movups %xmm0,0x50(%rax)
movabs $0x3ff0000000000000,%rcx
mov    %rcx,0x78(%rax)
add    $0x38,%rsp
ret

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

LLVM IR (-O2):
define double* @translazioa(double %0, double %1, double %2) {
%4 = tail call i64 @malloc(i32 128)
%5 = inttoptr i64 %4 to double*
%6 = getelementptr inbounds double, double* %5, i64 4
%7 = getelementptr inbounds double, double* %5, i64 8
%8 = getelementptr inbounds double, double* %5, i64 12
%9 = inttoptr i64 %4 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 0.000000e+00>, <2 x double>* %9
%10 = bitcast double* %6 to <2 x double>*
store <2 x double> <double 0.000000e+00, double 1.000000e+00>, <2 x double>* %10
%11 = bitcast double* %7 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %11
%12 = insertelement <2 x double> poison, double %0, i64 0
%13 = insertelement <2 x double> %12, double %1, i64 1
%14 = fmul <2 x double> %13, <double 2.500000e-01, double 2.500000e-01>
%15 = bitcast double* %8 to <2 x double>*
store <2 x double> %14, <2 x double>* %15
%16 = getelementptr inbounds double, double* %5, i64 2
%17 = getelementptr inbounds double, double* %5, i64 6
%18 = getelementptr inbounds double, double* %5, i64 10
%19 = fmul double %2, 2.500000e-01
%20 = getelementptr inbounds double, double* %5, i64 14
store double %19, double* %20
%21 = bitcast double* %16 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %21
%22 = bitcast double* %17 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %22
%23 = bitcast double* %18 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 0.000000e+00>, <2 x double>* %23
%24 = getelementptr inbounds double, double* %5, i64 15
store double 1.000000e+00, double* %24
ret double* %5
}