#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 GLfloat;

/* Variables and functions */
int /*<<< orphan*/ glMultMatrixf(double *);
void myTranslatef(GLfloat x, GLfloat y, GLfloat z) {
  GLfloat M[16] = {1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0,
                   0.0, 0.0, 1.0, 0.0, x,   y,   z,   1.0};
  glMultMatrixf(M);
}


x86 assembly (clang, -O0):
<myTranslatef>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  0xece(%rip),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xe95(%rip),%xmm0
movsd  %xmm0,-0x78(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe68(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe35(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
lea    -0xa0(%rbp),%rdi
call   1030 <glMultMatrixf@plt>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<myTranslatef>:
sub    $0x88,%rsp
movabs $0x3ff0000000000000,%rax
mov    %rax,(%rsp)
xorps  %xmm3,%xmm3
movups %xmm3,0x8(%rsp)
movups %xmm3,0x18(%rsp)
mov    %rax,0x28(%rsp)
movaps %xmm3,0x30(%rsp)
movaps %xmm3,0x40(%rsp)
movsd  0xeb7(%rip),%xmm3
movaps %xmm3,0x50(%rsp)
movsd  %xmm0,0x60(%rsp)
movsd  %xmm1,0x68(%rsp)
movsd  %xmm2,0x70(%rsp)
mov    %rax,0x78(%rsp)
mov    %rsp,%rdi
call   1030 <glMultMatrixf@plt>
add    $0x88,%rsp
ret

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

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