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

/* Variables and functions */
scalar_t__ malloc(int);
GLdouble *islapena(int x, int y, int 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):
<islapena>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    $0x40,%edi
call   1030 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x4(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,0x10(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,0x20(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,0x30(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,0x4(%rax)
mov    -0x8(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,0x14(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,0x24(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,0x34(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,0x8(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,0x18(%rax)
mov    -0xc(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,0x28(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,0x38(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,0xc(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,0x1c(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,0x2c(%rax)
mov    -0x18(%rbp),%rax
movl   $0x1,0x3c(%rax)
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<islapena>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %esi,%ebp
mov    %edi,%ebx
mov    $0x40,%edi
call   1030 <malloc@plt>
mov    %ebx,(%rax)
mov    %ebp,0x14(%rax)
mov    %r14d,0x28(%rax)
xorps  %xmm0,%xmm0
movups %xmm0,0x4(%rax)
movups %xmm0,0x18(%rax)
movups %xmm0,0x2c(%rax)
movl   $0x1,0x3c(%rax)
pop    %rbx
pop    %r14
pop    %rbp
ret

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

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