#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*/ mult_matrix_internal(float *);
void translate_internal(float x, float y, float z) {
  float m[16];
  m[0] = 1.0f;
  m[1] = 0.0f;
  m[2] = 0.0f;
  m[3] = 0.0f;
  m[4] = 0.0f;
  m[5] = 1.0f;
  m[6] = 0.0f;
  m[7] = 0.0f;
  m[8] = 0.0f;
  m[9] = 0.0f;
  m[10] = 1.0f;
  m[11] = 0.0f;
  m[12] = x;
  m[13] = y;
  m[14] = z;
  m[15] = 1.0f;
  mult_matrix_internal(m);
}


x86 assembly (clang, -O0):
<translate_internal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  0xed1(%rip),%xmm0
movss  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x44(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x40(%rbp)
movss  0xea4(%rip),%xmm0
movss  %xmm0,-0x3c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  0xe77(%rip),%xmm0
movss  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  0xe44(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    -0x50(%rbp),%rdi
call   1030 <mult_matrix_internal@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<translate_internal>:
sub    $0x48,%rsp
movl   $0x3f800000,(%rsp)
xorps  %xmm3,%xmm3
movups %xmm3,0x4(%rsp)
movl   $0x3f800000,0x14(%rsp)
3f
movups %xmm3,0x18(%rsp)
movq   $0x3f800000,0x28(%rsp)
80 3f
movss  %xmm0,0x30(%rsp)
movss  %xmm1,0x34(%rsp)
movss  %xmm2,0x38(%rsp)
movl   $0x3f800000,0x3c(%rsp)
3f
mov    %rsp,%rdi
call   1030 <mult_matrix_internal@plt>
add    $0x48,%rsp
ret

LLVM IR (-O0):
define void @translate_internal(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca [16 x float]
store float %0, float* %4
store float %1, float* %5
store float %2, float* %6
%8 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 0
store float 1.000000e+00, float* %8
%9 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 1
store float 0.000000e+00, float* %9
%10 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 2
store float 0.000000e+00, float* %10
%11 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 3
store float 0.000000e+00, float* %11
%12 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 4
store float 0.000000e+00, float* %12
%13 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 5
store float 1.000000e+00, float* %13
%14 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 6
store float 0.000000e+00, float* %14
%15 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 7
store float 0.000000e+00, float* %15
%16 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 8
store float 0.000000e+00, float* %16
%17 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 9
store float 0.000000e+00, float* %17
%18 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 10
store float 1.000000e+00, float* %18
%19 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 11
store float 0.000000e+00, float* %19
%20 = load float, float* %4
%21 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 12
store float %20, float* %21
%22 = load float, float* %5
%23 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 13
store float %22, float* %23
%24 = load float, float* %6
%25 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 14
store float %24, float* %25
%26 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 15
store float 1.000000e+00, float* %26
%27 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 0
%28 = call i32 @mult_matrix_internal(float* %27)
ret void
}

LLVM IR (-O2):
define void @translate_internal(float %0, float %1, float %2) {
%4 = alloca [16 x float]
%5 = bitcast [16 x float]* %4 to i8*
%6 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 0
store float 1.000000e+00, float* %6
%7 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 1
%8 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 5
%9 = bitcast float* %7 to i8*
store float 1.000000e+00, float* %8
%10 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 6
%11 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 10
%12 = bitcast float* %10 to i8*
store float 1.000000e+00, float* %11
%13 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 11
store float 0.000000e+00, float* %13
%14 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 12
store float %0, float* %14
%15 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 13
store float %1, float* %15
%16 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 14
store float %2, float* %16
%17 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 15
store float 1.000000e+00, float* %17
%18 = call i32 @mult_matrix_internal(float* %6)
ret void
}