#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*/ drawParaCube(float, float, float);
int /*<<< orphan*/ glColor3f(float, float, float);
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glRotatef(double, double, float, float);
int /*<<< orphan*/ glTranslatef(int, float, int);
void drawTable(float inXR, float inYR, float inZR, float footWidth,
               float footHeight) {
  drawParaCube(inXR, inYR, inZR);
  glPushMatrix();
  glTranslatef(-(inYR / 2.) + footWidth / 2., 0.f, 0.f);
  glTranslatef(0.f, 0.f, inZR / 2. - footWidth / 2.);
  glRotatef(90.0, 1.0, 0.f, 0.f);
  glTranslatef(0., 0., footHeight / 2.);
  drawParaCube(footWidth, footWidth, footHeight);
  glTranslatef(0., -inZR + footWidth, 0.);
  drawParaCube(footWidth, footWidth, footHeight);
  glTranslatef(inYR - footWidth, 0., 0.);
  drawParaCube(footWidth, footWidth, footHeight);
  glTranslatef(0., inZR - footWidth, 0.);
  drawParaCube(footWidth, footWidth, footHeight);
  glPopMatrix();
  glColor3f(1.f, 1.f, 1.f);
}


x86 assembly (clang, -O0):
<drawTable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  %xmm4,-0x14(%rbp)
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
call   1070 <drawParaCube@plt>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe5b(%rip),%xmm1
divsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movss  -0x10(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xe2f(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
xorps  %xmm0,%xmm0
xor    %esi,%esi
call   1060 <glTranslatef@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe08(%rip),%xmm1
divsd  %xmm1,%xmm0
movss  -0x10(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xdf3(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
xor    %edi,%edi
xorps  %xmm0,%xmm0
call   1060 <glTranslatef@plt>
movsd  0xddd(%rip),%xmm0
movsd  0xddd(%rip),%xmm1
xorps  %xmm3,%xmm3
movaps %xmm3,%xmm2
call   1080 <glRotatef@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdb1(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
xor    %edi,%edi
xorps  %xmm0,%xmm0
call   1060 <glTranslatef@plt>
movss  -0x10(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
movss  -0x14(%rbp),%xmm2
call   1070 <drawParaCube@plt>
movss  -0xc(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
addss  -0x10(%rbp),%xmm0
xor    %esi,%esi
mov    %esi,%edi
call   1060 <glTranslatef@plt>
movss  -0x10(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
movss  -0x14(%rbp),%xmm2
call   1070 <drawParaCube@plt>
movss  -0x8(%rbp),%xmm0
subss  -0x10(%rbp),%xmm0
cvttss2si %xmm0,%edi
xorps  %xmm0,%xmm0
xor    %esi,%esi
call   1060 <glTranslatef@plt>
movss  -0x10(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
movss  -0x14(%rbp),%xmm2
call   1070 <drawParaCube@plt>
movss  -0xc(%rbp),%xmm0
subss  -0x10(%rbp),%xmm0
xor    %esi,%esi
mov    %esi,%edi
call   1060 <glTranslatef@plt>
movss  -0x10(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
movss  -0x14(%rbp),%xmm2
call   1070 <drawParaCube@plt>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
movss  0xced(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1040 <glColor3f@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawTable>:
sub    $0x48,%rsp
movss  %xmm4,0x8(%rsp)
movaps %xmm3,0x10(%rsp)
movss  %xmm2,0xc(%rsp)
movaps %xmm1,0x20(%rsp)
call   1070 <drawParaCube@plt>
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
movaps 0x10(%rsp),%xmm0
unpcklps 0x20(%rsp),%xmm0
cvtps2pd %xmm0,%xmm1
mulpd  0xe65(%rip),%xmm1
movapd %xmm1,0x30(%rsp)
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
subsd  %xmm0,%xmm1
cvttsd2si %xmm1,%edi
xorpd  %xmm0,%xmm0
xor    %esi,%esi
call   1060 <glTranslatef@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xe42(%rip),%xmm0
subsd  0x30(%rsp),%xmm0
cvttsd2si %xmm0,%esi
xorpd  %xmm0,%xmm0
xor    %edi,%edi
call   1060 <glTranslatef@plt>
movsd  0xe2d(%rip),%xmm0
movsd  0xe2d(%rip),%xmm1
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
call   1080 <glRotatef@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xe00(%rip),%xmm0
cvttsd2si %xmm0,%esi
xorpd  %xmm0,%xmm0
xor    %edi,%edi
call   1060 <glTranslatef@plt>
movaps 0x10(%rsp),%xmm0
movaps %xmm0,%xmm1
movss  0x8(%rsp),%xmm2
call   1070 <drawParaCube@plt>
movaps 0x10(%rsp),%xmm0
subss  0xc(%rsp),%xmm0
xor    %edi,%edi
xor    %esi,%esi
call   1060 <glTranslatef@plt>
movaps 0x10(%rsp),%xmm0
movaps %xmm0,%xmm1
movss  0x8(%rsp),%xmm2
call   1070 <drawParaCube@plt>
movaps 0x20(%rsp),%xmm0
subss  0x10(%rsp),%xmm0
cvttss2si %xmm0,%edi
xorps  %xmm0,%xmm0
xor    %esi,%esi
call   1060 <glTranslatef@plt>
movaps 0x10(%rsp),%xmm0
movaps %xmm0,%xmm1
movss  0x8(%rsp),%xmm2
call   1070 <drawParaCube@plt>
movss  0xc(%rsp),%xmm0
subss  0x10(%rsp),%xmm0
xor    %edi,%edi
xor    %esi,%esi
call   1060 <glTranslatef@plt>
movaps 0x10(%rsp),%xmm0
movaps %xmm0,%xmm1
movss  0x8(%rsp),%xmm2
call   1070 <drawParaCube@plt>
xor    %eax,%eax
call   1030 <glPopMatrix@plt>
movss  0xd6c(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
add    $0x48,%rsp
jmp    1040 <glColor3f@plt>

LLVM IR (-O0):
define void @drawTable(float %0, float %1, float %2, float %3, float %4) {
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
store float %0, float* %6
store float %1, float* %7
store float %2, float* %8
store float %3, float* %9
store float %4, float* %10
%11 = load float, float* %6
%12 = load float, float* %7
%13 = load float, float* %8
%14 = call i32 @drawParaCube(float %11, float %12, float %13)
%15 = call i32 (...) @glPushMatrix()
%16 = load float, float* %7
%17 = fpext float %16 to double
%18 = fdiv double %17, 2.000000e+00
%19 = fneg double %18
%20 = load float, float* %9
%21 = fpext float %20 to double
%22 = fdiv double %21, 2.000000e+00
%23 = fadd double %19, %22
%24 = fptosi double %23 to i32
%25 = call i32 @glTranslatef(i32 %24, float 0.000000e+00, i32 0)
%26 = load float, float* %8
%27 = fpext float %26 to double
%28 = fdiv double %27, 2.000000e+00
%29 = load float, float* %9
%30 = fpext float %29 to double
%31 = fdiv double %30, 2.000000e+00
%32 = fsub double %28, %31
%33 = fptosi double %32 to i32
%34 = call i32 @glTranslatef(i32 0, float 0.000000e+00, i32 %33)
%35 = call i32 @glRotatef(double 9.000000e+01, double 1.000000e+00, float 0.000000e+00, float 0.000000e+00)
%36 = load float, float* %10
%37 = fpext float %36 to double
%38 = fdiv double %37, 2.000000e+00
%39 = fptosi double %38 to i32
%40 = call i32 @glTranslatef(i32 0, float 0.000000e+00, i32 %39)
%41 = load float, float* %9
%42 = load float, float* %9
%43 = load float, float* %10
%44 = call i32 @drawParaCube(float %41, float %42, float %43)
%45 = load float, float* %8
%46 = fneg float %45
%47 = load float, float* %9
%48 = fadd float %46, %47
%49 = call i32 @glTranslatef(i32 0, float %48, i32 0)
%50 = load float, float* %9
%51 = load float, float* %9
%52 = load float, float* %10
%53 = call i32 @drawParaCube(float %50, float %51, float %52)
%54 = load float, float* %7
%55 = load float, float* %9
%56 = fsub float %54, %55
%57 = fptosi float %56 to i32
%58 = call i32 @glTranslatef(i32 %57, float 0.000000e+00, i32 0)
%59 = load float, float* %9
%60 = load float, float* %9
%61 = load float, float* %10
%62 = call i32 @drawParaCube(float %59, float %60, float %61)
%63 = load float, float* %8
%64 = load float, float* %9
%65 = fsub float %63, %64
%66 = call i32 @glTranslatef(i32 0, float %65, i32 0)
%67 = load float, float* %9
%68 = load float, float* %9
%69 = load float, float* %10
%70 = call i32 @drawParaCube(float %67, float %68, float %69)
%71 = call i32 (...) @glPopMatrix()
%72 = call i32 @glColor3f(float 1.000000e+00, float 1.000000e+00, float 1.000000e+00)
ret void
}

LLVM IR (-O2):
define void @drawTable(float %0, float %1, float %2, float %3, float %4) {
%6 = tail call i32 @drawParaCube(float %0, float %1, float %2)
%7 = tail call i32 (...) @glPushMatrix()
%8 = insertelement <2 x float> poison, float %3, i64 0
%9 = insertelement <2 x float> %8, float %1, i64 1
%10 = fpext <2 x float> %9 to <2 x double>
%11 = fmul <2 x double> %10, <double 5.000000e-01, double 5.000000e-01>
%12 = extractelement <2 x double> %11, i64 0
%13 = shufflevector <2 x double> %11, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%14 = fsub <2 x double> %11, %13
%15 = extractelement <2 x double> %14, i64 0
%16 = fptosi double %15 to i32
%17 = tail call i32 @glTranslatef(i32 %16, float 0.000000e+00, i32 0)
%18 = fpext float %2 to double
%19 = fmul double %18, 5.000000e-01
%20 = fsub double %19, %12
%21 = fptosi double %20 to i32
%22 = tail call i32 @glTranslatef(i32 0, float 0.000000e+00, i32 %21)
%23 = tail call i32 @glRotatef(double 9.000000e+01, double 1.000000e+00, float 0.000000e+00, float 0.000000e+00)
%24 = fpext float %4 to double
%25 = fmul double %24, 5.000000e-01
%26 = fptosi double %25 to i32
%27 = tail call i32 @glTranslatef(i32 0, float 0.000000e+00, i32 %26)
%28 = tail call i32 @drawParaCube(float %3, float %3, float %4)
%29 = fsub float %3, %2
%30 = tail call i32 @glTranslatef(i32 0, float %29, i32 0)
%31 = tail call i32 @drawParaCube(float %3, float %3, float %4)
%32 = fsub float %1, %3
%33 = fptosi float %32 to i32
%34 = tail call i32 @glTranslatef(i32 %33, float 0.000000e+00, i32 0)
%35 = tail call i32 @drawParaCube(float %3, float %3, float %4)
%36 = fsub float %2, %3
%37 = tail call i32 @glTranslatef(i32 0, float %36, i32 0)
%38 = tail call i32 @drawParaCube(float %3, float %3, float %4)
%39 = tail call i32 (...) @glPopMatrix()
%40 = tail call i32 @glColor3f(float 1.000000e+00, float 1.000000e+00, float 1.000000e+00)
ret void
}