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


x86 assembly (clang, -O0):
<Draw_atom_Kr>:
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    0xe4f(%rip),%rcx
call   1060 <Sprint@plt>
mov    $0x14,%edi
mov    $0x16,%esi
mov    $0x2,%edx
lea    0xe3e(%rip),%rcx
call   1060 <Sprint@plt>
mov    $0x14,%edi
mov    $0x13,%esi
mov    $0x2,%edx
lea    0xe2d(%rip),%rcx
call   1060 <Sprint@plt>
mov    $0x14,%edi
mov    $0x10,%esi
mov    $0x2,%edx
lea    0xe1d(%rip),%rcx
call   1060 <Sprint@plt>
mov    $0x3c,%edi
movsd  0xdc4(%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  0xd9c(%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  0xd6e(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1040 <glColor3f@plt>
mov    -0x14(%rbp),%edi
xorps  %xmm1,%xmm1
movsd  0xd55(%rip),%xmm2
movaps %xmm1,%xmm0
call   1090 <glRotatef@plt>
movsd  0xd3d(%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  0xd11(%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  0xcce(%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  0xc95(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1040 <glColor3f@plt>
mov    $0x19,%edi
movsd  0xc7d(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1090 <glRotatef@plt>
mov    $0x168,%edi
sub    -0x14(%rbp),%edi
xorps  %xmm1,%xmm1
movsd  0xc5f(%rip),%xmm2
movaps %xmm1,%xmm0
call   1090 <glRotatef@plt>
movsd  0xc47(%rip),%xmm0
mov    $0xf,%edi
mov    $0x10,%esi
mov    $0x20,%edx
call   10a0 <glutSolidTorus@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x8,-0x18(%rbp)
jge    1446 <Draw_atom_Kr+0x2c6>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
imul   $0x2d,-0x18(%rbp),%edi
xorps  %xmm1,%xmm1
movsd  0xc14(%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  0xbf3(%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    13d4 <Draw_atom_Kr+0x254>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
movsd  0xbac(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1040 <glColor3f@plt>
mov    $0x19,%edi
xorps  %xmm1,%xmm1
movsd  0xb91(%rip),%xmm2
movaps %xmm1,%xmm0
call   1090 <glRotatef@plt>
mov    -0x14(%rbp),%edi
xorps  %xmm1,%xmm1
movsd  0xb7b(%rip),%xmm2
movaps %xmm1,%xmm0
call   1090 <glRotatef@plt>
movsd  0xb63(%rip),%xmm0
mov    $0x14,%edi
mov    $0x10,%esi
mov    $0x20,%edx
call   10a0 <glutSolidTorus@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x12,-0x18(%rbp)
jge    1534 <Draw_atom_Kr+0x3b4>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
imul   $0x14,-0x18(%rbp),%edi
xorps  %xmm1,%xmm1
movsd  0xb30(%rip),%xmm2
movaps %xmm1,%xmm0
call   1090 <glRotatef@plt>
xor    %edx,%edx
mov    $0x14,%esi
mov    %edx,%edi
call   1080 <glTranslatef@plt>
movsd  0xb22(%rip),%xmm0
movsd  0xb12(%rip),%xmm1
movsd  0xb1a(%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    14b8 <Draw_atom_Kr+0x338>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
movsd  0xabe(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1040 <glColor3f@plt>
mov    $0x19,%edi
xorps  %xmm0,%xmm0
movsd  0xaa3(%rip),%xmm2
movaps %xmm2,%xmm1
call   1090 <glRotatef@plt>
mov    $0x168,%edi
sub    -0x14(%rbp),%edi
xorps  %xmm1,%xmm1
movsd  0xa88(%rip),%xmm2
movaps %xmm1,%xmm0
call   1090 <glRotatef@plt>
movsd  0xa70(%rip),%xmm0
mov    $0x19,%edi
mov    $0x10,%esi
mov    $0x20,%edx
call   10a0 <glutSolidTorus@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x8,-0x18(%rbp)
jge    161d <Draw_atom_Kr+0x49d>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
imul   $0x2d,-0x18(%rbp),%edi
xorps  %xmm1,%xmm1
movsd  0xa3d(%rip),%xmm2
movaps %xmm1,%xmm0
call   1090 <glRotatef@plt>
xor    %edx,%edx
mov    $0x19,%esi
mov    %edx,%edi
call   1080 <glTranslatef@plt>
movsd  0xa1f(%rip),%xmm1
xorps  %xmm2,%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    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    15ab <Draw_atom_Kr+0x42b>
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_Kr>:
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    0xe65(%rip),%rcx
mov    $0x14,%edi
mov    $0x19,%esi
mov    $0x2,%edx
call   1060 <Sprint@plt>
lea    0xe54(%rip),%rcx
mov    $0x14,%edi
mov    $0x16,%esi
mov    $0x2,%edx
call   1060 <Sprint@plt>
lea    0xe43(%rip),%rcx
mov    $0x14,%edi
mov    $0x13,%esi
mov    $0x2,%edx
call   1060 <Sprint@plt>
lea    0xe33(%rip),%rcx
mov    $0x14,%edi
mov    $0x10,%esi
mov    $0x2,%edx
call   1060 <Sprint@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
mov    $0x3c,%edi
movsd  0xdbd(%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  0xd97(%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  0xd6f(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1040 <glColor3f@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    %r14d,%edi
movsd  0xd53(%rip),%xmm2
call   1090 <glRotatef@plt>
movsd  0xd56(%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  0xd0f(%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  0xccc(%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  0xc96(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1040 <glColor3f@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
mov    $0x19,%edi
movsd  0xc78(%rip),%xmm0
call   1090 <glRotatef@plt>
mov    $0x168,%ebp
sub    %r14d,%ebp
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    %ebp,%edi
movsd  0xc5b(%rip),%xmm2
call   1090 <glRotatef@plt>
movsd  0xc5e(%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  0xc19(%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  0xbf8(%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    13d0 <Draw_atom_Kr+0x250>
xor    %eax,%eax
call   1030 <glPopMatrix@plt>
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
movsd  0xbb7(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1040 <glColor3f@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    $0x19,%edi
movsd  0xb99(%rip),%xmm2
call   1090 <glRotatef@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    %r14d,%edi
movsd  0xb83(%rip),%xmm2
call   1090 <glRotatef@plt>
movsd  0xb86(%rip),%xmm0
mov    $0x14,%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  0xb49(%rip),%xmm2
call   1090 <glRotatef@plt>
xor    %edi,%edi
mov    $0x14,%esi
xor    %edx,%edx
call   1080 <glTranslatef@plt>
movsd  0xb46(%rip),%xmm0
movsd  0xb2e(%rip),%xmm1
movsd  0xb3e(%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    $0x14,%ebx
cmp    $0x168,%ebx
jne    14a0 <Draw_atom_Kr+0x320>
xor    %eax,%eax
call   1030 <glPopMatrix@plt>
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
movsd  0xadd(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1040 <glColor3f@plt>
xorps  %xmm0,%xmm0
mov    $0x19,%edi
movsd  0xac2(%rip),%xmm1
movaps %xmm1,%xmm2
call   1090 <glRotatef@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    %ebp,%edi
movsd  0xaaa(%rip),%xmm2
call   1090 <glRotatef@plt>
movsd  0xaad(%rip),%xmm0
mov    $0x19,%edi
mov    $0x10,%esi
mov    $0x20,%edx
call   10a0 <glutSolidTorus@plt>
xor    %ebx,%ebx
nopl   0x0(%rax)
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    %ebx,%edi
movsd  0xa69(%rip),%xmm2
call   1090 <glRotatef@plt>
xor    %edi,%edi
mov    $0x19,%esi
xor    %edx,%edx
call   1080 <glTranslatef@plt>
xorps  %xmm2,%xmm2
movsd  0xa4b(%rip),%xmm0
movaps %xmm0,%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    1580 <Draw_atom_Kr+0x400>
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 = [8 x i8] c"KRYPTON\00"
@.str.1 = [10 x i8] c" 1st : 2\00"
@.str.2 = [10 x i8] c" 2nd : 8\00"
@.str.3 = [11 x i8] c" 3rd : 18\00"
@.str.4 = [10 x i8] c" 4th : 8\00"
define void @Draw_atom_Kr(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 ([8 x i8], [8 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 ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%17 = call i32 @Sprint(i32 20, i32 16, i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%18 = call i32 @glRotatef(i32 60, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%19 = call i32 (...) @glPushMatrix()
%20 = load i32, i32* %6
%21 = load i32, i32* %7
%22 = load i32, i32* %8
%23 = call i32 @glTranslatef(i32 %20, i32 %21, i32 %22)
%24 = call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%25 = call i32 @glutSolidSphere(i32 5, i32 16, i32 8)
%26 = call i32 (...) @glPushMatrix()
%27 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%28 = load i32, i32* %10
%29 = call i32 @glRotatef(i32 %28, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%30 = call i32 @glutSolidTorus(double 1.200000e-01, i32 10, i32 16, i32 32)
%31 = call i32 (...) @glPushMatrix()
%32 = call i32 @glTranslatef(i32 0, i32 10, i32 0)
%33 = call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%34 = call i32 @glutSolidSphere(i32 1, i32 16, i32 8)
%35 = call i32 (...) @glPopMatrix()
%36 = call i32 (...) @glPushMatrix()
%37 = call i32 @glTranslatef(i32 0, i32 -10, i32 0)
%38 = call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%39 = call i32 @glutSolidSphere(i32 1, i32 16, i32 8)
%40 = call i32 (...) @glPopMatrix()
%41 = call i32 (...) @glPopMatrix()
%42 = call i32 (...) @glPushMatrix()
%43 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%44 = call i32 @glRotatef(i32 25, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%45 = load i32, i32* %10
%46 = sub nsw i32 360, %45
%47 = call i32 @glRotatef(i32 %46, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%48 = call i32 @glutSolidTorus(double 1.200000e-01, i32 15, i32 16, i32 32)
store i32 0, i32* %11
br label %49
49: ; preds = %61, %5
%50 = load i32, i32* %11
%51 = icmp slt i32 %50, 8
br i1 %51, label %52, label %64
52: ; preds = %49
%53 = call i32 (...) @glPushMatrix()
%54 = load i32, i32* %11
%55 = mul nsw i32 45, %54
%56 = call i32 @glRotatef(i32 %55, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%57 = call i32 @glTranslatef(i32 0, i32 15, i32 0)
%58 = call i32 @glColor3f(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%59 = call i32 @glutSolidSphere(i32 1, i32 16, i32 8)
%60 = call i32 (...) @glPopMatrix()
br label %61
61: ; preds = %52
%62 = load i32, i32* %11
%63 = add nsw i32 %62, 1
store i32 %63, i32* %11
br label %49
64: ; preds = %49
%65 = call i32 (...) @glPopMatrix()
%66 = call i32 (...) @glPushMatrix()
%67 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%68 = call i32 @glRotatef(i32 25, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%69 = load i32, i32* %10
%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, %64
%73 = load i32, i32* %11
%74 = icmp slt i32 %73, 18
br i1 %74, label %75, label %87
75: ; preds = %72
%76 = call i32 (...) @glPushMatrix()
%77 = load i32, i32* %11
%78 = mul nsw i32 20, %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 (...) @glPushMatrix()
%90 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%91 = call i32 @glRotatef(i32 25, double 0.000000e+00, double 1.000000e+00, double 1.000000e+00)
%92 = load i32, i32* %10
%93 = sub nsw i32 360, %92
%94 = call i32 @glRotatef(i32 %93, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%95 = call i32 @glutSolidTorus(double 1.200000e-01, i32 25, i32 16, i32 32)
store i32 0, i32* %11
br label %96
96: ; preds = %108, %87
%97 = load i32, i32* %11
%98 = icmp slt i32 %97, 8
br i1 %98, label %99, label %111
99: ; preds = %96
%100 = call i32 (...) @glPushMatrix()
%101 = load i32, i32* %11
%102 = mul nsw i32 45, %101
%103 = call i32 @glRotatef(i32 %102, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%104 = call i32 @glTranslatef(i32 0, i32 25, i32 0)
%105 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 0.000000e+00)
%106 = call i32 @glutSolidSphere(i32 1, i32 16, i32 8)
%107 = call i32 (...) @glPopMatrix()
br label %108
108: ; preds = %99
%109 = load i32, i32* %11
%110 = add nsw i32 %109, 1
store i32 %110, i32* %11
br label %96
111: ; preds = %96
%112 = call i32 (...) @glPopMatrix()
%113 = call i32 (...) @glPopMatrix()
%114 = call i32 (...) @glPopMatrix()
ret void
}

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