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

/* Variables and functions */
int /*<<< orphan*/ Sprint(int, int, int, char *);
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glRotatef(int, double, double, double);
int /*<<< orphan*/ glTranslatef(int, int, int);
int /*<<< orphan*/ glutSolidSphere(int, int, int);
int /*<<< orphan*/ glutSolidTorus(double, int, int, int);
void Draw_atom_Ne(GLfloat x, GLfloat y, GLfloat z, int elec, int orbit) {
  int i;
  glColor3f(0.0, 1.0, 0.5);
  Sprint(22, -20, 2, "NEON");
  Sprint(20, 25, 2, "  1st : 2");
  Sprint(20, 22, 2, "  2nd : 8");
  glRotatef(60, 1.0, 0.0, 0.0);
  glPushMatrix();
  glTranslatef(x, y, z);
  glColor3f(1.0, 0.0, 0.0);
  glutSolidSphere(5, 16, 8);
  glPushMatrix();
  glColor3f(1.0, 1.0, 1.0);
  glRotatef(orbit, 0, 0, 1);
  glutSolidTorus(0.12, 10, 16, 32);
  glPushMatrix();
  glTranslatef(0, 10, 0);
  glColor3f(0.0, 0.0, 1.0);
  glutSolidSphere(1, 16, 8);
  glPopMatrix();
  glPushMatrix();
  glTranslatef(0, -10, 0);
  glColor3f(0.0, 0.0, 1.0);
  glutSolidSphere(1, 16, 8);
  glPopMatrix();
  glPopMatrix();
  glPushMatrix();
  glColor3f(1.0, 1.0, 1.0);
  glRotatef(25, 1.0, 0.0, 0.0);
  glRotatef(360 - orbit, 0, 0, 1);
  glutSolidTorus(0.12, 15, 16, 32);
  for (i = 0; i < 8; i++) {
    glPushMatrix();
    glRotatef((360 / 8) * i, 0.0, 0.0, 1.0);
    glTranslatef(0, 15, 0);
    glColor3f(0.0, 1.0, 0.0);
    glutSolidSphere(1, 16, 8);
    glPopMatrix();
  }
  glPopMatrix();
  glPopMatrix();
  glPopMatrix();
}


x86 assembly (clang, -O0):
<Draw_atom_Ne>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
xorps  %xmm0,%xmm0
movsd  0xe65(%rip),%xmm1
movsd  0xe65(%rip),%xmm2
call   1040 <glColor3f@plt>
mov    $0x16,%edi
mov    $0xffffffec,%esi
mov    $0x2,%edx
lea    0xe52(%rip),%rcx
call   1060 <Sprint@plt>
mov    $0x14,%edi
mov    $0x19,%esi
mov    $0x2,%edx
lea    0xe3c(%rip),%rcx
call   1060 <Sprint@plt>
mov    $0x14,%edi
mov    $0x16,%esi
mov    $0x2,%edx
lea    0xe2b(%rip),%rcx
call   1060 <Sprint@plt>
mov    $0x3c,%edi
movsd  0xdfa(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1090 <glRotatef@plt>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1080 <glTranslatef@plt>
movsd  0xdd2(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1040 <glColor3f@plt>
mov    $0x5,%edi
mov    $0x10,%esi
mov    $0x8,%edx
call   1070 <glutSolidSphere@plt>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
movsd  0xda4(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1040 <glColor3f@plt>
mov    -0x14(%rbp),%edi
xorps  %xmm1,%xmm1
movsd  0xd8b(%rip),%xmm2
movaps %xmm1,%xmm0
call   1090 <glRotatef@plt>
movsd  0xd73(%rip),%xmm0
mov    $0xa,%edi
mov    $0x10,%esi
mov    $0x20,%edx
call   10a0 <glutSolidTorus@plt>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
xor    %edx,%edx
mov    $0xa,%esi
mov    %edx,%edi
call   1080 <glTranslatef@plt>
xorps  %xmm1,%xmm1
movsd  0xd47(%rip),%xmm2
movaps %xmm1,%xmm0
call   1040 <glColor3f@plt>
mov    $0x1,%edi
mov    $0x10,%esi
mov    $0x8,%edx
call   1070 <glutSolidSphere@plt>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
xor    %edx,%edx
mov    $0xfffffff6,%esi
mov    %edx,%edi
call   1080 <glTranslatef@plt>
xorps  %xmm1,%xmm1
movsd  0xd04(%rip),%xmm2
movaps %xmm1,%xmm0
call   1040 <glColor3f@plt>
mov    $0x1,%edi
mov    $0x10,%esi
mov    $0x8,%edx
call   1070 <glutSolidSphere@plt>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
movsd  0xccb(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1040 <glColor3f@plt>
mov    $0x19,%edi
movsd  0xcb3(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1090 <glRotatef@plt>
mov    $0x168,%edi
sub    -0x14(%rbp),%edi
xorps  %xmm1,%xmm1
movsd  0xc95(%rip),%xmm2
movaps %xmm1,%xmm0
call   1090 <glRotatef@plt>
movsd  0xc7d(%rip),%xmm0
mov    $0xf,%edi
mov    $0x10,%esi
mov    $0x20,%edx
call   10a0 <glutSolidTorus@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x8,-0x18(%rbp)
jge    1410 <Draw_atom_Ne+0x290>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
imul   $0x2d,-0x18(%rbp),%edi
xorps  %xmm1,%xmm1
movsd  0xc4a(%rip),%xmm2
movaps %xmm1,%xmm0
call   1090 <glRotatef@plt>
xor    %edx,%edx
mov    $0xf,%esi
mov    %edx,%edi
call   1080 <glTranslatef@plt>
xorps  %xmm2,%xmm2
movsd  0xc29(%rip),%xmm1
movaps %xmm2,%xmm0
call   1040 <glColor3f@plt>
mov    $0x1,%edi
mov    $0x10,%esi
mov    $0x8,%edx
call   1070 <glutSolidSphere@plt>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    139e <Draw_atom_Ne+0x21e>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Draw_atom_Ne>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %r8d,%r14d
mov    %edx,%r15d
mov    %esi,%ebx
mov    %edi,%ebp
movsd  0xe67(%rip),%xmm1
movsd  0xe67(%rip),%xmm2
xorps  %xmm0,%xmm0
call   1040 <glColor3f@plt>
lea    0xe68(%rip),%rcx
mov    $0x16,%edi
mov    $0xffffffec,%esi
mov    $0x2,%edx
call   1060 <Sprint@plt>
lea    0xe52(%rip),%rcx
mov    $0x14,%edi
mov    $0x19,%esi
mov    $0x2,%edx
call   1060 <Sprint@plt>
lea    0xe41(%rip),%rcx
mov    $0x14,%edi
mov    $0x16,%esi
mov    $0x2,%edx
call   1060 <Sprint@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
mov    $0x3c,%edi
movsd  0xdf3(%rip),%xmm0
call   1090 <glRotatef@plt>
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %r15d,%edx
call   1080 <glTranslatef@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
movsd  0xdcd(%rip),%xmm0
call   1040 <glColor3f@plt>
mov    $0x5,%edi
mov    $0x10,%esi
mov    $0x8,%edx
call   1070 <glutSolidSphere@plt>
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
movsd  0xda5(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1040 <glColor3f@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    %r14d,%edi
movsd  0xd89(%rip),%xmm2
call   1090 <glRotatef@plt>
movsd  0xd8c(%rip),%xmm0
mov    $0xa,%edi
mov    $0x10,%esi
mov    $0x20,%edx
call   10a0 <glutSolidTorus@plt>
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
xor    %edi,%edi
mov    $0xa,%esi
xor    %edx,%edx
call   1080 <glTranslatef@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
movsd  0xd45(%rip),%xmm2
call   1040 <glColor3f@plt>
mov    $0x1,%edi
mov    $0x10,%esi
mov    $0x8,%edx
call   1070 <glutSolidSphere@plt>
xor    %eax,%eax
call   1030 <glPopMatrix@plt>
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
xor    %edi,%edi
mov    $0xfffffff6,%esi
xor    %edx,%edx
call   1080 <glTranslatef@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
movsd  0xd02(%rip),%xmm2
call   1040 <glColor3f@plt>
mov    $0x1,%edi
mov    $0x10,%esi
mov    $0x8,%edx
call   1070 <glutSolidSphere@plt>
xor    %eax,%eax
call   1030 <glPopMatrix@plt>
xor    %eax,%eax
call   1030 <glPopMatrix@plt>
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
movsd  0xccc(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1040 <glColor3f@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
mov    $0x19,%edi
movsd  0xcae(%rip),%xmm0
call   1090 <glRotatef@plt>
mov    $0x168,%edi
sub    %r14d,%edi
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
movsd  0xc93(%rip),%xmm2
call   1090 <glRotatef@plt>
movsd  0xc96(%rip),%xmm0
mov    $0xf,%edi
mov    $0x10,%esi
mov    $0x20,%edx
call   10a0 <glutSolidTorus@plt>
xor    %ebx,%ebx
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    %ebx,%edi
movsd  0xc59(%rip),%xmm2
call   1090 <glRotatef@plt>
xor    %edi,%edi
mov    $0xf,%esi
xor    %edx,%edx
call   1080 <glTranslatef@plt>
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
movsd  0xc38(%rip),%xmm1
call   1040 <glColor3f@plt>
mov    $0x1,%edi
mov    $0x10,%esi
mov    $0x8,%edx
call   1070 <glutSolidSphere@plt>
xor    %eax,%eax
call   1030 <glPopMatrix@plt>
add    $0x2d,%ebx
cmp    $0x168,%ebx
jne    1390 <Draw_atom_Ne+0x210>
xor    %eax,%eax
call   1030 <glPopMatrix@plt>
xor    %eax,%eax
call   1030 <glPopMatrix@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <glPopMatrix@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"NEON\00"
@.str.1 = [10 x i8] c" 1st : 2\00"
@.str.2 = [10 x i8] c" 2nd : 8\00"
define void @Draw_atom_Ne(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%12 = call i32 @glColor3f(double 0.000000e+00, double 1.000000e+00, double 5.000000e-01)
%13 = call i32 @Sprint(i32 22, i32 -20, i32 2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @Sprint(i32 20, i32 25, i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 @Sprint(i32 20, i32 22, i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 @glRotatef(i32 60, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%17 = call i32 (...) @glPushMatrix()
%18 = load i32, i32* %6
%19 = load i32, i32* %7
%20 = load i32, i32* %8
%21 = call i32 @glTranslatef(i32 %18, i32 %19, i32 %20)
%22 = call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%23 = call i32 @glutSolidSphere(i32 5, i32 16, i32 8)
%24 = call i32 (...) @glPushMatrix()
%25 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%26 = load i32, i32* %10
%27 = call i32 @glRotatef(i32 %26, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%28 = call i32 @glutSolidTorus(double 1.200000e-01, i32 10, i32 16, i32 32)
%29 = call i32 (...) @glPushMatrix()
%30 = call i32 @glTranslatef(i32 0, i32 10, i32 0)
%31 = call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%32 = call i32 @glutSolidSphere(i32 1, i32 16, i32 8)
%33 = call i32 (...) @glPopMatrix()
%34 = call i32 (...) @glPushMatrix()
%35 = call i32 @glTranslatef(i32 0, i32 -10, i32 0)
%36 = call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%37 = call i32 @glutSolidSphere(i32 1, i32 16, i32 8)
%38 = call i32 (...) @glPopMatrix()
%39 = call i32 (...) @glPopMatrix()
%40 = call i32 (...) @glPushMatrix()
%41 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%42 = call i32 @glRotatef(i32 25, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%43 = load i32, i32* %10
%44 = sub nsw i32 360, %43
%45 = call i32 @glRotatef(i32 %44, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%46 = call i32 @glutSolidTorus(double 1.200000e-01, i32 15, i32 16, i32 32)
store i32 0, i32* %11
br label %47
47: ; preds = %59, %5
%48 = load i32, i32* %11
%49 = icmp slt i32 %48, 8
br i1 %49, label %50, label %62
50: ; preds = %47
%51 = call i32 (...) @glPushMatrix()
%52 = load i32, i32* %11
%53 = mul nsw i32 45, %52
%54 = call i32 @glRotatef(i32 %53, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%55 = call i32 @glTranslatef(i32 0, i32 15, i32 0)
%56 = call i32 @glColor3f(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%57 = call i32 @glutSolidSphere(i32 1, i32 16, i32 8)
%58 = call i32 (...) @glPopMatrix()
br label %59
59: ; preds = %50
%60 = load i32, i32* %11
%61 = add nsw i32 %60, 1
store i32 %61, i32* %11
br label %47
62: ; preds = %47
%63 = call i32 (...) @glPopMatrix()
%64 = call i32 (...) @glPopMatrix()
%65 = call i32 (...) @glPopMatrix()
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"NEON\00"
@.str.1 = [10 x i8] c" 1st : 2\00"
@.str.2 = [10 x i8] c" 2nd : 8\00"
define void @Draw_atom_Ne(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = tail call i32 @glColor3f(double 0.000000e+00, double 1.000000e+00, double 5.000000e-01)
%7 = tail call i32 @Sprint(i32 22, i32 -20, i32 2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @Sprint(i32 20, i32 25, i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 @Sprint(i32 20, i32 22, i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 @glRotatef(i32 60, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%11 = tail call i32 (...) @glPushMatrix()
%12 = tail call i32 @glTranslatef(i32 %0, i32 %1, i32 %2)
%13 = tail call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%14 = tail call i32 @glutSolidSphere(i32 5, i32 16, i32 8)
%15 = tail call i32 (...) @glPushMatrix()
%16 = tail call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%17 = tail call i32 @glRotatef(i32 %4, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%18 = tail call i32 @glutSolidTorus(double 1.200000e-01, i32 10, i32 16, i32 32)
%19 = tail call i32 (...) @glPushMatrix()
%20 = tail call i32 @glTranslatef(i32 0, i32 10, i32 0)
%21 = tail call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%22 = tail call i32 @glutSolidSphere(i32 1, i32 16, i32 8)
%23 = tail call i32 (...) @glPopMatrix()
%24 = tail call i32 (...) @glPushMatrix()
%25 = tail call i32 @glTranslatef(i32 0, i32 -10, i32 0)
%26 = tail call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%27 = tail call i32 @glutSolidSphere(i32 1, i32 16, i32 8)
%28 = tail call i32 (...) @glPopMatrix()
%29 = tail call i32 (...) @glPopMatrix()
%30 = tail call i32 (...) @glPushMatrix()
%31 = tail call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%32 = tail call i32 @glRotatef(i32 25, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%33 = sub nsw i32 360, %4
%34 = tail call i32 @glRotatef(i32 %33, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%35 = tail call i32 @glutSolidTorus(double 1.200000e-01, i32 15, i32 16, i32 32)
br label %36
36: ; preds = %5, %36
%37 = phi i32 [ 0, %5 ], [ %45, %36 ]
%38 = tail call i32 (...) @glPushMatrix()
%39 = mul nuw nsw i32 %37, 45
%40 = tail call i32 @glRotatef(i32 %39, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%41 = tail call i32 @glTranslatef(i32 0, i32 15, i32 0)
%42 = tail call i32 @glColor3f(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%43 = tail call i32 @glutSolidSphere(i32 1, i32 16, i32 8)
%44 = tail call i32 (...) @glPopMatrix()
%45 = add nuw nsw i32 %37, 1
%46 = icmp eq i32 %45, 8
br i1 %46, label %47, label %36
47: ; preds = %36
%48 = tail call i32 (...) @glPopMatrix()
%49 = tail call i32 (...) @glPopMatrix()
%50 = tail call i32 (...) @glPopMatrix()
ret void
}