#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_Ar(GLfloat x, GLfloat y, GLfloat z, int elec, int orbit) {
  int i;
  glColor3f(0.0, 1.0, 0.5);
  Sprint(22, -20, 2, "ARGON");
  Sprint(20, 25, 2, "  1st : 2");
  Sprint(20, 22, 2, "  2nd : 8");
  Sprint(20, 19, 2, "  3rd : 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();
  glPushMatrix();
  glColor3f(1.0, 1.0, 1.0);
  glRotatef(25, 0.0, 0.0, 1.0);
  glRotatef(270 - orbit, 0, 0, 1);
  glutSolidTorus(0.12, 20, 16, 32);
  for (i = 0; i < 8; i++) {
    glPushMatrix();
    glRotatef((360 / 8) * i, 0.0, 0.0, 1.0);
    glTranslatef(0, 20, 0);
    glColor3f(0.9, .5, .1);
    glutSolidSphere(1, 16, 8);
    glPopMatrix();
  }
  glPopMatrix();
  glPopMatrix();
  glPopMatrix();
}


x86 assembly (clang, -O0):
<Draw_atom_Ar>:
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    0xe62(%rip),%rcx
call   1060 <Sprint@plt>
mov    $0x14,%edi
mov    $0x19,%esi
mov    $0x2,%edx
lea    0xe4d(%rip),%rcx
call   1060 <Sprint@plt>
mov    $0x14,%edi
mov    $0x16,%esi
mov    $0x2,%edx
lea    0xe3c(%rip),%rcx
call   1060 <Sprint@plt>
mov    $0x14,%edi
mov    $0x13,%esi
mov    $0x2,%edx
lea    0xe2b(%rip),%rcx
call   1060 <Sprint@plt>
mov    $0x3c,%edi
movsd  0xddf(%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  0xdb7(%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  0xd89(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1040 <glColor3f@plt>
mov    -0x14(%rbp),%edi
xorps  %xmm1,%xmm1
movsd  0xd70(%rip),%xmm2
movaps %xmm1,%xmm0
call   1090 <glRotatef@plt>
movsd  0xd58(%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  0xd2c(%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  0xce9(%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  0xcb0(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1040 <glColor3f@plt>
mov    $0x19,%edi
movsd  0xc98(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1090 <glRotatef@plt>
mov    $0x168,%edi
sub    -0x14(%rbp),%edi
xorps  %xmm1,%xmm1
movsd  0xc7a(%rip),%xmm2
movaps %xmm1,%xmm0
call   1090 <glRotatef@plt>
movsd  0xc62(%rip),%xmm0
mov    $0xf,%edi
mov    $0x10,%esi
mov    $0x20,%edx
call   10a0 <glutSolidTorus@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x8,-0x18(%rbp)
jge    142b <Draw_atom_Ar+0x2ab>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
imul   $0x2d,-0x18(%rbp),%edi
xorps  %xmm1,%xmm1
movsd  0xc2f(%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  0xc0e(%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    13b9 <Draw_atom_Ar+0x239>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
movsd  0xbc7(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1040 <glColor3f@plt>
mov    $0x19,%edi
xorps  %xmm1,%xmm1
movsd  0xbac(%rip),%xmm2
movaps %xmm1,%xmm0
call   1090 <glRotatef@plt>
mov    $0x10e,%edi
sub    -0x14(%rbp),%edi
xorps  %xmm1,%xmm1
movsd  0xb91(%rip),%xmm2
movaps %xmm1,%xmm0
call   1090 <glRotatef@plt>
movsd  0xb79(%rip),%xmm0
mov    $0x14,%edi
mov    $0x10,%esi
mov    $0x20,%edx
call   10a0 <glutSolidTorus@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x8,-0x18(%rbp)
jge    151e <Draw_atom_Ar+0x39e>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
imul   $0x2d,-0x18(%rbp),%edi
xorps  %xmm1,%xmm1
movsd  0xb46(%rip),%xmm2
movaps %xmm1,%xmm0
call   1090 <glRotatef@plt>
xor    %edx,%edx
mov    $0x14,%esi
mov    %edx,%edi
call   1080 <glTranslatef@plt>
movsd  0xb38(%rip),%xmm0
movsd  0xb28(%rip),%xmm1
movsd  0xb30(%rip),%xmm2
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    14a2 <Draw_atom_Ar+0x322>
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_Ar>:
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    0xe78(%rip),%rcx
mov    $0x16,%edi
mov    $0xffffffec,%esi
mov    $0x2,%edx
call   1060 <Sprint@plt>
lea    0xe63(%rip),%rcx
mov    $0x14,%edi
mov    $0x19,%esi
mov    $0x2,%edx
call   1060 <Sprint@plt>
lea    0xe52(%rip),%rcx
mov    $0x14,%edi
mov    $0x16,%esi
mov    $0x2,%edx
call   1060 <Sprint@plt>
lea    0xe41(%rip),%rcx
mov    $0x14,%edi
mov    $0x13,%esi
mov    $0x2,%edx
call   1060 <Sprint@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
mov    $0x3c,%edi
movsd  0xdd8(%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  0xdb2(%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  0xd8a(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1040 <glColor3f@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    %r14d,%edi
movsd  0xd6e(%rip),%xmm2
call   1090 <glRotatef@plt>
movsd  0xd71(%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  0xd2a(%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  0xce7(%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  0xcb1(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1040 <glColor3f@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
mov    $0x19,%edi
movsd  0xc93(%rip),%xmm0
call   1090 <glRotatef@plt>
mov    $0x168,%edi
sub    %r14d,%edi
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
movsd  0xc78(%rip),%xmm2
call   1090 <glRotatef@plt>
movsd  0xc7b(%rip),%xmm0
mov    $0xf,%edi
mov    $0x10,%esi
mov    $0x20,%edx
call   10a0 <glutSolidTorus@plt>
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    %ebx,%edi
movsd  0xc39(%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  0xc18(%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    13b0 <Draw_atom_Ar+0x230>
xor    %eax,%eax
call   1030 <glPopMatrix@plt>
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
movsd  0xbd7(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1040 <glColor3f@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    $0x19,%edi
movsd  0xbb9(%rip),%xmm2
call   1090 <glRotatef@plt>
mov    $0x10e,%edi
sub    %r14d,%edi
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
movsd  0xb9e(%rip),%xmm2
call   1090 <glRotatef@plt>
movsd  0xba1(%rip),%xmm0
mov    $0x14,%edi
mov    $0x10,%esi
mov    $0x20,%edx
call   10a0 <glutSolidTorus@plt>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    %ebx,%edi
movsd  0xb59(%rip),%xmm2
call   1090 <glRotatef@plt>
xor    %edi,%edi
mov    $0x14,%esi
xor    %edx,%edx
call   1080 <glTranslatef@plt>
movsd  0xb56(%rip),%xmm0
movsd  0xb3e(%rip),%xmm1
movsd  0xb4e(%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>
add    $0x2d,%ebx
cmp    $0x168,%ebx
jne    1490 <Draw_atom_Ar+0x310>
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 = [6 x i8] c"ARGON\00"
@.str.1 = [10 x i8] c" 1st : 2\00"
@.str.2 = [10 x i8] c" 2nd : 8\00"
@.str.3 = [10 x i8] c" 3rd : 8\00"
define void @Draw_atom_Ar(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 ([6 x i8], [6 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 @Sprint(i32 20, i32 19, i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%17 = call i32 @glRotatef(i32 60, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%18 = call i32 (...) @glPushMatrix()
%19 = load i32, i32* %6
%20 = load i32, i32* %7
%21 = load i32, i32* %8
%22 = call i32 @glTranslatef(i32 %19, i32 %20, i32 %21)
%23 = call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%24 = call i32 @glutSolidSphere(i32 5, i32 16, i32 8)
%25 = call i32 (...) @glPushMatrix()
%26 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%27 = load i32, i32* %10
%28 = call i32 @glRotatef(i32 %27, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%29 = call i32 @glutSolidTorus(double 1.200000e-01, i32 10, i32 16, i32 32)
%30 = call i32 (...) @glPushMatrix()
%31 = call i32 @glTranslatef(i32 0, i32 10, i32 0)
%32 = call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%33 = call i32 @glutSolidSphere(i32 1, i32 16, i32 8)
%34 = call i32 (...) @glPopMatrix()
%35 = call i32 (...) @glPushMatrix()
%36 = call i32 @glTranslatef(i32 0, i32 -10, i32 0)
%37 = call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%38 = call i32 @glutSolidSphere(i32 1, i32 16, i32 8)
%39 = call i32 (...) @glPopMatrix()
%40 = call i32 (...) @glPopMatrix()
%41 = call i32 (...) @glPushMatrix()
%42 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%43 = call i32 @glRotatef(i32 25, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%44 = load i32, i32* %10
%45 = sub nsw i32 360, %44
%46 = call i32 @glRotatef(i32 %45, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%47 = call i32 @glutSolidTorus(double 1.200000e-01, i32 15, i32 16, i32 32)
store i32 0, i32* %11
br label %48
48: ; preds = %60, %5
%49 = load i32, i32* %11
%50 = icmp slt i32 %49, 8
br i1 %50, label %51, label %63
51: ; preds = %48
%52 = call i32 (...) @glPushMatrix()
%53 = load i32, i32* %11
%54 = mul nsw i32 45, %53
%55 = call i32 @glRotatef(i32 %54, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%56 = call i32 @glTranslatef(i32 0, i32 15, i32 0)
%57 = call i32 @glColor3f(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%58 = call i32 @glutSolidSphere(i32 1, i32 16, i32 8)
%59 = call i32 (...) @glPopMatrix()
br label %60
60: ; preds = %51
%61 = load i32, i32* %11
%62 = add nsw i32 %61, 1
store i32 %62, i32* %11
br label %48
63: ; preds = %48
%64 = call i32 (...) @glPopMatrix()
%65 = call i32 (...) @glPushMatrix()
%66 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%67 = call i32 @glRotatef(i32 25, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%68 = load i32, i32* %10
%69 = sub nsw i32 270, %68
%70 = call i32 @glRotatef(i32 %69, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%71 = call i32 @glutSolidTorus(double 1.200000e-01, i32 20, i32 16, i32 32)
store i32 0, i32* %11
br label %72
72: ; preds = %84, %63
%73 = load i32, i32* %11
%74 = icmp slt i32 %73, 8
br i1 %74, label %75, label %87
75: ; preds = %72
%76 = call i32 (...) @glPushMatrix()
%77 = load i32, i32* %11
%78 = mul nsw i32 45, %77
%79 = call i32 @glRotatef(i32 %78, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%80 = call i32 @glTranslatef(i32 0, i32 20, i32 0)
%81 = call i32 @glColor3f(double 9.000000e-01, double 5.000000e-01, double 1.000000e-01)
%82 = call i32 @glutSolidSphere(i32 1, i32 16, i32 8)
%83 = call i32 (...) @glPopMatrix()
br label %84
84: ; preds = %75
%85 = load i32, i32* %11
%86 = add nsw i32 %85, 1
store i32 %86, i32* %11
br label %72
87: ; preds = %72
%88 = call i32 (...) @glPopMatrix()
%89 = call i32 (...) @glPopMatrix()
%90 = call i32 (...) @glPopMatrix()
ret void
}

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