#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*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ paralelepipedo(float, float, float, float, float, float,
                                  double, double);
int /*<<< orphan*/ printf(char *);
float sqrt(int);
void creaBrazo(float h, float a, int n) {
  float x, y, z, a2, b;
  int i;
  float m, e;
  if (n < 2) {
    printf("\n Error: Numero de segmentos en brazo menor que 2\n");
    return;
  }
  m = h;
  glPushMatrix();
  e = m / n;
  y = 0;
  a2 = a / 2.;
  b = sqrt(3) * a / 2.0;
  paralelepipedo(0, y, -a2, 0, y, a2, 0.1, 0.1);
  paralelepipedo(0, y, -a2, 0, y + e, a2, 0.1, 0.1);
  paralelepipedo(0, y, a2, -b, y + e, 0, 0.1, 0.1);
  paralelepipedo(0, y, -a2, -b, y + e, 0, 0.1, 0.1);
  paralelepipedo(0, y, -a2, 0, y + e, -a2, 0.1, 0.1);
  paralelepipedo(0, y, a2, 0, y + e, a2, 0.1, 0.1);
  y = y + e;
  for (i = 1; i < n; ++i) {
    paralelepipedo(0, y, -a2, 0, y, a2, 0.1, 0.1);
    paralelepipedo(0, y, a2, -b, y, 0, 0.1, 0.1);
    paralelepipedo(-b, y, 0, 0, y, -a2, 0.1, 0.1);
    if (i % 2) {
      paralelepipedo(0, y, -a2, 0, y + e, a2, 0.1, 0.1);
      paralelepipedo(0, y, a2, -b, y + e, 0, 0.1, 0.1);
      paralelepipedo(-b, y, 0, 0, y + e, -a2, 0.1, 0.1);
    } else {
      paralelepipedo(0, y, a2, 0, y + e, -a2, 0.1, 0.1);
      paralelepipedo(-b, y, 0, 0, y + e, a2, 0.1, 0.1);
      paralelepipedo(0, y, -a2, -b, y + e, 0, 0.1, 0.1);
    }
    paralelepipedo(0, y, -a2, 0, y + e, -a2, 0.1, 0.1);
    paralelepipedo(0, y, a2, 0, y + e, a2, 0.1, 0.1);
    paralelepipedo(-b, y, 0, -b, y + e, 0, 0.1, 0.1);
    y = y + e;
  }
  paralelepipedo(0, y, -a2, 0, y, a2, 0.1, 0.1);
  paralelepipedo(0, y, a2, -b, y, 0, 0.1, 0.1);
  paralelepipedo(-b, y, 0, 0, y, -a2, 0.1, 0.1);
  glPopMatrix();
}


x86 assembly (clang, -O0):
<creaBrazo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
cmpl   $0x2,-0xc(%rbp)
jge    1180 <creaBrazo+0x30>
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
jmp    1768 <creaBrazo+0x618>
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x28(%rbp)
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
movss  -0x28(%rbp),%xmm0
cvtsi2ssl -0xc(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x2c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe4b(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    $0x3,%edi
call   1070 <sqrt@plt>
mulss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe23(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
movss  -0x14(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm5
xorps  %xmm3,%xmm3
movsd  0xde2(%rip),%xmm7
movaps %xmm3,%xmm0
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
movss  -0x14(%rbp),%xmm4
addss  -0x2c(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm5
xorps  %xmm3,%xmm3
movsd  0xda6(%rip),%xmm7
movaps %xmm3,%xmm0
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm2
movss  -0x20(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm3
movss  -0x14(%rbp),%xmm4
addss  -0x2c(%rbp),%xmm4
xorps  %xmm5,%xmm5
movsd  0xd6a(%rip),%xmm7
movaps %xmm5,%xmm0
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
movss  -0x20(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm3
movss  -0x14(%rbp),%xmm4
addss  -0x2c(%rbp),%xmm4
xorps  %xmm5,%xmm5
movsd  0xd21(%rip),%xmm7
movaps %xmm5,%xmm0
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
movss  -0x14(%rbp),%xmm4
addss  -0x2c(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm5
xorps  %xmm3,%xmm3
movsd  0xcd8(%rip),%xmm7
movaps %xmm3,%xmm0
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm2
movss  -0x14(%rbp),%xmm4
addss  -0x2c(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm5
xorps  %xmm3,%xmm3
movsd  0xca9(%rip),%xmm7
movaps %xmm3,%xmm0
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x14(%rbp),%xmm0
addss  -0x2c(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    16af <creaBrazo+0x55f>
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
movss  -0x14(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm5
xorps  %xmm3,%xmm3
movsd  0xc50(%rip),%xmm7
movaps %xmm3,%xmm0
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm2
movss  -0x20(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm3
movss  -0x14(%rbp),%xmm4
xorps  %xmm5,%xmm5
movsd  0xc19(%rip),%xmm7
movaps %xmm5,%xmm0
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x20(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  -0x14(%rbp),%xmm1
movss  -0x14(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm2
movd   %xmm2,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm5
xorps  %xmm3,%xmm3
movsd  0xbd5(%rip),%xmm7
movaps %xmm3,%xmm2
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
mov    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1510 <creaBrazo+0x3c0>
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
movss  -0x14(%rbp),%xmm4
addss  -0x2c(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm5
xorps  %xmm3,%xmm3
movsd  0xb85(%rip),%xmm7
movaps %xmm3,%xmm0
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm2
movss  -0x20(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm3
movss  -0x14(%rbp),%xmm4
addss  -0x2c(%rbp),%xmm4
xorps  %xmm5,%xmm5
movsd  0xb49(%rip),%xmm7
movaps %xmm5,%xmm0
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x20(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  -0x14(%rbp),%xmm1
movss  -0x14(%rbp),%xmm4
addss  -0x2c(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm2
movd   %xmm2,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm5
xorps  %xmm3,%xmm3
movsd  0xb00(%rip),%xmm7
movaps %xmm3,%xmm2
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
jmp    15d1 <creaBrazo+0x481>
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm2
movss  -0x14(%rbp),%xmm4
addss  -0x2c(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm5
xorps  %xmm3,%xmm3
movsd  0xabf(%rip),%xmm7
movaps %xmm3,%xmm0
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x20(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  -0x14(%rbp),%xmm1
movss  -0x14(%rbp),%xmm4
addss  -0x2c(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm5
xorps  %xmm3,%xmm3
movsd  0xa83(%rip),%xmm7
movaps %xmm3,%xmm2
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
movss  -0x20(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm3
movss  -0x14(%rbp),%xmm4
addss  -0x2c(%rbp),%xmm4
xorps  %xmm5,%xmm5
movsd  0xa3a(%rip),%xmm7
movaps %xmm5,%xmm0
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
movss  -0x14(%rbp),%xmm4
addss  -0x2c(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm5
xorps  %xmm3,%xmm3
movsd  0x9f1(%rip),%xmm7
movaps %xmm3,%xmm0
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm2
movss  -0x14(%rbp),%xmm4
addss  -0x2c(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm5
xorps  %xmm3,%xmm3
movsd  0x9c2(%rip),%xmm7
movaps %xmm3,%xmm0
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x20(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  -0x14(%rbp),%xmm1
movss  -0x20(%rbp),%xmm2
movd   %xmm2,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm3
movss  -0x14(%rbp),%xmm4
addss  -0x2c(%rbp),%xmm4
xorps  %xmm5,%xmm5
movsd  0x979(%rip),%xmm7
movaps %xmm5,%xmm2
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x14(%rbp),%xmm0
addss  -0x2c(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1378 <creaBrazo+0x228>
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
movss  -0x14(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm5
xorps  %xmm3,%xmm3
movsd  0x925(%rip),%xmm7
movaps %xmm3,%xmm0
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm2
movss  -0x20(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm3
movss  -0x14(%rbp),%xmm4
xorps  %xmm5,%xmm5
movsd  0x8ee(%rip),%xmm7
movaps %xmm5,%xmm0
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
movss  -0x20(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  -0x14(%rbp),%xmm1
movss  -0x14(%rbp),%xmm4
movss  -0x1c(%rbp),%xmm2
movd   %xmm2,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm5
xorps  %xmm3,%xmm3
movsd  0x8aa(%rip),%xmm7
movaps %xmm3,%xmm2
movaps %xmm7,%xmm6
call   1050 <paralelepipedo@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<creaBrazo>:
cmp    $0x1,%edi
jg     1161 <creaBrazo+0x11>
lea    0xecc(%rip),%rdi
jmp    1030 <puts@plt>
push   %rbp
push   %rbx
sub    $0x38,%rsp
mov    %edi,%ebx
xor    %eax,%eax
movss  %xmm0,0xc(%rsp)
movss  %xmm1,(%rsp)
call   1060 <glPushMatrix@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %ebx,%xmm0
movss  0xc(%rsp),%xmm1
divss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movss  0xe66(%rip),%xmm0
mulss  (%rsp),%xmm0
movaps %xmm0,0x10(%rsp)
mov    $0x3,%edi
call   1070 <sqrt@plt>
mulss  (%rsp),%xmm0
movss  %xmm0,0x8(%rsp)
movaps 0xe50(%rip),%xmm0
movaps 0x10(%rsp),%xmm5
xorps  %xmm5,%xmm0
movaps %xmm0,%xmm2
movaps %xmm0,0x20(%rsp)
movsd  0xe48(%rip),%xmm6
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm3,%xmm3
xorps  %xmm4,%xmm4
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
movss  0xc(%rsp),%xmm4
addss  0xe0e(%rip),%xmm4
movss  %xmm4,(%rsp)
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm3,%xmm3
movaps 0x20(%rsp),%xmm2
movaps 0x10(%rsp),%xmm5
movsd  0xe06(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
movss  0x8(%rsp),%xmm3
mulss  0xdd4(%rip),%xmm3
movss  %xmm3,0x8(%rsp)
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm5,%xmm5
movaps 0x10(%rsp),%xmm2
movss  (%rsp),%xmm4
movsd  0xdcf(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm5,%xmm5
movaps 0x20(%rsp),%xmm2
movss  0x8(%rsp),%xmm3
movss  (%rsp),%xmm4
movsd  0xda6(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm3,%xmm3
movaps 0x20(%rsp),%xmm2
movss  (%rsp),%xmm4
movaps %xmm2,%xmm5
movsd  0xd80(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm3,%xmm3
movaps 0x10(%rsp),%xmm2
movss  (%rsp),%xmm4
movaps %xmm2,%xmm5
movsd  0xd5a(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
mov    $0x1,%ebp
jmp    13ef <creaBrazo+0x29f>
nopl   0x0(%rax,%rax,1)
movss  (%rsp),%xmm1
movaps 0x10(%rsp),%xmm2
movss  0x4(%rsp),%xmm4
movaps 0x20(%rsp),%xmm5
movsd  0xd23(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
movss  0x8(%rsp),%xmm0
movss  (%rsp),%xmm1
movss  0x4(%rsp),%xmm4
movaps 0x10(%rsp),%xmm5
movsd  0xcf7(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
xorps  %xmm0,%xmm0
xorps  %xmm5,%xmm5
movss  (%rsp),%xmm1
movaps 0x20(%rsp),%xmm2
movss  0x8(%rsp),%xmm3
movss  0x4(%rsp),%xmm4
movsd  0xccb(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
xorps  %xmm0,%xmm0
xorps  %xmm3,%xmm3
movss  (%rsp),%xmm1
movaps 0x20(%rsp),%xmm2
movss  0x4(%rsp),%xmm4
movaps %xmm2,%xmm5
movsd  0xca2(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
xorps  %xmm0,%xmm0
xorps  %xmm3,%xmm3
movss  (%rsp),%xmm1
movaps 0x10(%rsp),%xmm2
movss  0x4(%rsp),%xmm4
movaps %xmm2,%xmm5
movsd  0xc79(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
xorps  %xmm2,%xmm2
xorps  %xmm5,%xmm5
movss  0x8(%rsp),%xmm0
movss  (%rsp),%xmm1
movaps %xmm0,%xmm3
movss  0x4(%rsp),%xmm4
movsd  0xc4f(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
add    $0x1,%ebp
movss  0x4(%rsp),%xmm0
movss  %xmm0,(%rsp)
cmp    %ebp,%ebx
je     14fc <creaBrazo+0x3ac>
xorps  %xmm0,%xmm0
xorps  %xmm3,%xmm3
movss  (%rsp),%xmm1
movaps 0x20(%rsp),%xmm2
movaps %xmm1,%xmm4
movaps 0x10(%rsp),%xmm5
movsd  0xc11(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
xorps  %xmm0,%xmm0
xorps  %xmm5,%xmm5
movss  (%rsp),%xmm1
movaps 0x10(%rsp),%xmm2
movss  0x8(%rsp),%xmm3
movaps %xmm1,%xmm4
movsd  0xbe8(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
movss  0x8(%rsp),%xmm0
movss  (%rsp),%xmm1
movaps %xmm1,%xmm4
movaps 0x20(%rsp),%xmm5
movsd  0xbbf(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
movss  0xc(%rsp),%xmm0
addss  (%rsp),%xmm0
movss  %xmm0,0x4(%rsp)
xorps  %xmm0,%xmm0
xorps  %xmm3,%xmm3
test   $0x1,%bpl
je     12e0 <creaBrazo+0x190>
movss  (%rsp),%xmm1
movaps 0x20(%rsp),%xmm2
movss  0x4(%rsp),%xmm4
movaps 0x10(%rsp),%xmm5
movsd  0xb79(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
xorps  %xmm0,%xmm0
xorps  %xmm5,%xmm5
movss  (%rsp),%xmm1
movaps 0x10(%rsp),%xmm2
movss  0x8(%rsp),%xmm3
movss  0x4(%rsp),%xmm4
movsd  0xb4d(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
movss  0x8(%rsp),%xmm0
movss  (%rsp),%xmm1
movss  0x4(%rsp),%xmm4
movaps 0x20(%rsp),%xmm5
jmp    134d <creaBrazo+0x1fd>
movsd  0xb1c(%rip),%xmm6
xorps  %xmm0,%xmm0
xorps  %xmm3,%xmm3
movss  0x4(%rsp),%xmm1
movaps 0x20(%rsp),%xmm2
movaps %xmm1,%xmm4
movaps 0x10(%rsp),%xmm5
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
xorps  %xmm0,%xmm0
xorps  %xmm5,%xmm5
movss  0x4(%rsp),%xmm1
movaps 0x10(%rsp),%xmm2
movss  0x8(%rsp),%xmm3
movaps %xmm1,%xmm4
movsd  0xad9(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
movss  0x8(%rsp),%xmm0
movss  0x4(%rsp),%xmm1
movaps %xmm1,%xmm4
movaps 0x20(%rsp),%xmm5
movsd  0xaaf(%rip),%xmm6
movaps %xmm6,%xmm7
call   1050 <paralelepipedo@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <glPopMatrix@plt>

LLVM IR (-O0):
@.str = [51 x i8] c"\0A Error: Numero de segmentos en brazo menor que 2\0A\00"
define void @creaBrazo(float %0, float %1, i32 %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca i32
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca i32
%13 = alloca float
%14 = alloca float
store float %0, float* %4
store float %1, float* %5
store i32 %2, i32* %6
%15 = load i32, i32* %6
%16 = icmp slt i32 %15, 2
br i1 %16, label %17, label %19
17: ; preds = %3
%18 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0))
br label %218
19: ; preds = %3
%20 = load float, float* %4
store float %20, float* %13
%21 = call i32 (...) @glPushMatrix()
%22 = load float, float* %13
%23 = load i32, i32* %6
%24 = sitofp i32 %23 to float
%25 = fdiv float %22, %24
store float %25, float* %14
store float 0.000000e+00, float* %8
%26 = load float, float* %5
%27 = fpext float %26 to double
%28 = fdiv double %27, 2.000000e+00
%29 = fptrunc double %28 to float
store float %29, float* %10
%30 = call float @sqrt(i32 3)
%31 = load float, float* %5
%32 = fmul float %30, %31
%33 = fpext float %32 to double
%34 = fdiv double %33, 2.000000e+00
%35 = fptrunc double %34 to float
store float %35, float* %11
%36 = load float, float* %8
%37 = load float, float* %10
%38 = fneg float %37
%39 = load float, float* %8
%40 = load float, float* %10
%41 = call i32 @paralelepipedo(float 0.000000e+00, float %36, float %38, float 0.000000e+00, float %39, float %40, double 1.000000e-01, double 1.000000e-01)
%42 = load float, float* %8
%43 = load float, float* %10
%44 = fneg float %43
%45 = load float, float* %8
%46 = load float, float* %14
%47 = fadd float %45, %46
%48 = load float, float* %10
%49 = call i32 @paralelepipedo(float 0.000000e+00, float %42, float %44, float 0.000000e+00, float %47, float %48, double 1.000000e-01, double 1.000000e-01)
%50 = load float, float* %8
%51 = load float, float* %10
%52 = load float, float* %11
%53 = fneg float %52
%54 = load float, float* %8
%55 = load float, float* %14
%56 = fadd float %54, %55
%57 = call i32 @paralelepipedo(float 0.000000e+00, float %50, float %51, float %53, float %56, float 0.000000e+00, double 1.000000e-01, double 1.000000e-01)
%58 = load float, float* %8
%59 = load float, float* %10
%60 = fneg float %59
%61 = load float, float* %11
%62 = fneg float %61
%63 = load float, float* %8
%64 = load float, float* %14
%65 = fadd float %63, %64
%66 = call i32 @paralelepipedo(float 0.000000e+00, float %58, float %60, float %62, float %65, float 0.000000e+00, double 1.000000e-01, double 1.000000e-01)
%67 = load float, float* %8
%68 = load float, float* %10
%69 = fneg float %68
%70 = load float, float* %8
%71 = load float, float* %14
%72 = fadd float %70, %71
%73 = load float, float* %10
%74 = fneg float %73
%75 = call i32 @paralelepipedo(float 0.000000e+00, float %67, float %69, float 0.000000e+00, float %72, float %74, double 1.000000e-01, double 1.000000e-01)
%76 = load float, float* %8
%77 = load float, float* %10
%78 = load float, float* %8
%79 = load float, float* %14
%80 = fadd float %78, %79
%81 = load float, float* %10
%82 = call i32 @paralelepipedo(float 0.000000e+00, float %76, float %77, float 0.000000e+00, float %80, float %81, double 1.000000e-01, double 1.000000e-01)
%83 = load float, float* %8
%84 = load float, float* %14
%85 = fadd float %83, %84
store float %85, float* %8
store i32 1, i32* %12
br label %86
86: ; preds = %194, %19
%87 = load i32, i32* %12
%88 = load i32, i32* %6
%89 = icmp slt i32 %87, %88
br i1 %89, label %90, label %197
90: ; preds = %86
%91 = load float, float* %8
%92 = load float, float* %10
%93 = fneg float %92
%94 = load float, float* %8
%95 = load float, float* %10
%96 = call i32 @paralelepipedo(float 0.000000e+00, float %91, float %93, float 0.000000e+00, float %94, float %95, double 1.000000e-01, double 1.000000e-01)
%97 = load float, float* %8
%98 = load float, float* %10
%99 = load float, float* %11
%100 = fneg float %99
%101 = load float, float* %8
%102 = call i32 @paralelepipedo(float 0.000000e+00, float %97, float %98, float %100, float %101, float 0.000000e+00, double 1.000000e-01, double 1.000000e-01)
%103 = load float, float* %11
%104 = fneg float %103
%105 = load float, float* %8
%106 = load float, float* %8
%107 = load float, float* %10
%108 = fneg float %107
%109 = call i32 @paralelepipedo(float %104, float %105, float 0.000000e+00, float 0.000000e+00, float %106, float %108, double 1.000000e-01, double 1.000000e-01)
%110 = load i32, i32* %12
%111 = srem i32 %110, 2
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %139
113: ; preds = %90
%114 = load float, float* %8
%115 = load float, float* %10
%116 = fneg float %115
%117 = load float, float* %8
%118 = load float, float* %14
%119 = fadd float %117, %118
%120 = load float, float* %10
%121 = call i32 @paralelepipedo(float 0.000000e+00, float %114, float %116, float 0.000000e+00, float %119, float %120, double 1.000000e-01, double 1.000000e-01)
%122 = load float, float* %8
%123 = load float, float* %10
%124 = load float, float* %11
%125 = fneg float %124
%126 = load float, float* %8
%127 = load float, float* %14
%128 = fadd float %126, %127
%129 = call i32 @paralelepipedo(float 0.000000e+00, float %122, float %123, float %125, float %128, float 0.000000e+00, double 1.000000e-01, double 1.000000e-01)
%130 = load float, float* %11
%131 = fneg float %130
%132 = load float, float* %8
%133 = load float, float* %8
%134 = load float, float* %14
%135 = fadd float %133, %134
%136 = load float, float* %10
%137 = fneg float %136
%138 = call i32 @paralelepipedo(float %131, float %132, float 0.000000e+00, float 0.000000e+00, float %135, float %137, double 1.000000e-01, double 1.000000e-01)
br label %165
139: ; preds = %90
%140 = load float, float* %8
%141 = load float, float* %10
%142 = load float, float* %8
%143 = load float, float* %14
%144 = fadd float %142, %143
%145 = load float, float* %10
%146 = fneg float %145
%147 = call i32 @paralelepipedo(float 0.000000e+00, float %140, float %141, float 0.000000e+00, float %144, float %146, double 1.000000e-01, double 1.000000e-01)
%148 = load float, float* %11
%149 = fneg float %148
%150 = load float, float* %8
%151 = load float, float* %8
%152 = load float, float* %14
%153 = fadd float %151, %152
%154 = load float, float* %10
%155 = call i32 @paralelepipedo(float %149, float %150, float 0.000000e+00, float 0.000000e+00, float %153, float %154, double 1.000000e-01, double 1.000000e-01)
%156 = load float, float* %8
%157 = load float, float* %10
%158 = fneg float %157
%159 = load float, float* %11
%160 = fneg float %159
%161 = load float, float* %8
%162 = load float, float* %14
%163 = fadd float %161, %162
%164 = call i32 @paralelepipedo(float 0.000000e+00, float %156, float %158, float %160, float %163, float 0.000000e+00, double 1.000000e-01, double 1.000000e-01)
br label %165
165: ; preds = %139, %113
%166 = load float, float* %8
%167 = load float, float* %10
%168 = fneg float %167
%169 = load float, float* %8
%170 = load float, float* %14
%171 = fadd float %169, %170
%172 = load float, float* %10
%173 = fneg float %172
%174 = call i32 @paralelepipedo(float 0.000000e+00, float %166, float %168, float 0.000000e+00, float %171, float %173, double 1.000000e-01, double 1.000000e-01)
%175 = load float, float* %8
%176 = load float, float* %10
%177 = load float, float* %8
%178 = load float, float* %14
%179 = fadd float %177, %178
%180 = load float, float* %10
%181 = call i32 @paralelepipedo(float 0.000000e+00, float %175, float %176, float 0.000000e+00, float %179, float %180, double 1.000000e-01, double 1.000000e-01)
%182 = load float, float* %11
%183 = fneg float %182
%184 = load float, float* %8
%185 = load float, float* %11
%186 = fneg float %185
%187 = load float, float* %8
%188 = load float, float* %14
%189 = fadd float %187, %188
%190 = call i32 @paralelepipedo(float %183, float %184, float 0.000000e+00, float %186, float %189, float 0.000000e+00, double 1.000000e-01, double 1.000000e-01)
%191 = load float, float* %8
%192 = load float, float* %14
%193 = fadd float %191, %192
store float %193, float* %8
br label %194
194: ; preds = %165
%195 = load i32, i32* %12
%196 = add nsw i32 %195, 1
store i32 %196, i32* %12
br label %86
197: ; preds = %86
%198 = load float, float* %8
%199 = load float, float* %10
%200 = fneg float %199
%201 = load float, float* %8
%202 = load float, float* %10
%203 = call i32 @paralelepipedo(float 0.000000e+00, float %198, float %200, float 0.000000e+00, float %201, float %202, double 1.000000e-01, double 1.000000e-01)
%204 = load float, float* %8
%205 = load float, float* %10
%206 = load float, float* %11
%207 = fneg float %206
%208 = load float, float* %8
%209 = call i32 @paralelepipedo(float 0.000000e+00, float %204, float %205, float %207, float %208, float 0.000000e+00, double 1.000000e-01, double 1.000000e-01)
%210 = load float, float* %11
%211 = fneg float %210
%212 = load float, float* %8
%213 = load float, float* %8
%214 = load float, float* %10
%215 = fneg float %214
%216 = call i32 @paralelepipedo(float %211, float %212, float 0.000000e+00, float 0.000000e+00, float %213, float %215, double 1.000000e-01, double 1.000000e-01)
%217 = call i32 (...) @glPopMatrix()
br label %218
218: ; preds = %197, %17
ret void
}

LLVM IR (-O2):
@str = [50 x i8] c"\0A Error: Numero de segmentos en brazo menor que 2\00"
define void @creaBrazo(float %0, float %1, i32 %2) {
%4 = icmp slt i32 %2, 2
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str, i64 0, i64 0))
br label %51
7: ; preds = %3
%8 = tail call i32 (...) @glPushMatrix()
%9 = sitofp i32 %2 to float
%10 = fdiv float %0, %9
%11 = fmul float %1, 5.000000e-01
%12 = tail call float @sqrt(i32 3)
%13 = fmul float %12, %1
%14 = fneg float %11
%15 = tail call i32 @paralelepipedo(float 0.000000e+00, float 0.000000e+00, float %14, float 0.000000e+00, float 0.000000e+00, float %11, double 1.000000e-01, double 1.000000e-01)
%16 = fadd float %10, 0.000000e+00
%17 = tail call i32 @paralelepipedo(float 0.000000e+00, float 0.000000e+00, float %14, float 0.000000e+00, float %16, float %11, double 1.000000e-01, double 1.000000e-01)
%18 = fmul float %13, -5.000000e-01
%19 = tail call i32 @paralelepipedo(float 0.000000e+00, float 0.000000e+00, float %11, float %18, float %16, float 0.000000e+00, double 1.000000e-01, double 1.000000e-01)
%20 = tail call i32 @paralelepipedo(float 0.000000e+00, float 0.000000e+00, float %14, float %18, float %16, float 0.000000e+00, double 1.000000e-01, double 1.000000e-01)
%21 = tail call i32 @paralelepipedo(float 0.000000e+00, float 0.000000e+00, float %14, float 0.000000e+00, float %16, float %14, double 1.000000e-01, double 1.000000e-01)
%22 = tail call i32 @paralelepipedo(float 0.000000e+00, float 0.000000e+00, float %11, float 0.000000e+00, float %16, float %11, double 1.000000e-01, double 1.000000e-01)
br label %23
23: ; preds = %7, %40
%24 = phi float [ %31, %40 ], [ %16, %7 ]
%25 = phi i32 [ %44, %40 ], [ 1, %7 ]
%26 = tail call i32 @paralelepipedo(float 0.000000e+00, float %24, float %14, float 0.000000e+00, float %24, float %11, double 1.000000e-01, double 1.000000e-01)
%27 = tail call i32 @paralelepipedo(float 0.000000e+00, float %24, float %11, float %18, float %24, float 0.000000e+00, double 1.000000e-01, double 1.000000e-01)
%28 = tail call i32 @paralelepipedo(float %18, float %24, float 0.000000e+00, float 0.000000e+00, float %24, float %14, double 1.000000e-01, double 1.000000e-01)
%29 = and i32 %25, 1
%30 = icmp eq i32 %29, 0
%31 = fadd float %10, %24
br i1 %30, label %36, label %32
32: ; preds = %23
%33 = tail call i32 @paralelepipedo(float 0.000000e+00, float %24, float %14, float 0.000000e+00, float %31, float %11, double 1.000000e-01, double 1.000000e-01)
%34 = tail call i32 @paralelepipedo(float 0.000000e+00, float %24, float %11, float %18, float %31, float 0.000000e+00, double 1.000000e-01, double 1.000000e-01)
%35 = tail call i32 @paralelepipedo(float %18, float %24, float 0.000000e+00, float 0.000000e+00, float %31, float %14, double 1.000000e-01, double 1.000000e-01)
br label %40
36: ; preds = %23
%37 = tail call i32 @paralelepipedo(float 0.000000e+00, float %24, float %11, float 0.000000e+00, float %31, float %14, double 1.000000e-01, double 1.000000e-01)
%38 = tail call i32 @paralelepipedo(float %18, float %24, float 0.000000e+00, float 0.000000e+00, float %31, float %11, double 1.000000e-01, double 1.000000e-01)
%39 = tail call i32 @paralelepipedo(float 0.000000e+00, float %24, float %14, float %18, float %31, float 0.000000e+00, double 1.000000e-01, double 1.000000e-01)
br label %40
40: ; preds = %36, %32
%41 = tail call i32 @paralelepipedo(float 0.000000e+00, float %24, float %14, float 0.000000e+00, float %31, float %14, double 1.000000e-01, double 1.000000e-01)
%42 = tail call i32 @paralelepipedo(float 0.000000e+00, float %24, float %11, float 0.000000e+00, float %31, float %11, double 1.000000e-01, double 1.000000e-01)
%43 = tail call i32 @paralelepipedo(float %18, float %24, float 0.000000e+00, float %18, float %31, float 0.000000e+00, double 1.000000e-01, double 1.000000e-01)
%44 = add nuw nsw i32 %25, 1
%45 = icmp eq i32 %44, %2
br i1 %45, label %46, label %23
46: ; preds = %40
%47 = tail call i32 @paralelepipedo(float 0.000000e+00, float %31, float %14, float 0.000000e+00, float %31, float %11, double 1.000000e-01, double 1.000000e-01)
%48 = tail call i32 @paralelepipedo(float 0.000000e+00, float %31, float %11, float %18, float %31, float 0.000000e+00, double 1.000000e-01, double 1.000000e-01)
%49 = tail call i32 @paralelepipedo(float %18, float %31, float 0.000000e+00, float 0.000000e+00, float %31, float %14, double 1.000000e-01, double 1.000000e-01)
%50 = tail call i32 (...) @glPopMatrix()
br label %51
51: ; preds = %46, %5
ret void
}