#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 /*<<< orphan*/ GLenum;

/* Variables and functions */
int /*<<< orphan*/ initDodecahedron();
int /*<<< orphan*/ pentagon(int, int, int, int, int, int /*<<< orphan*/);
void dodecahedron(GLenum type) {
  static int inited = 0;
  if (inited == 0) {
    inited = 1;
    initDodecahedron();
  }
  pentagon(0, 1, 9, 16, 5, type);
  pentagon(1, 0, 3, 18, 7, type);
  pentagon(1, 7, 11, 10, 9, type);
  pentagon(11, 7, 18, 19, 6, type);
  pentagon(8, 17, 16, 9, 10, type);
  pentagon(2, 14, 15, 6, 19, type);
  pentagon(2, 13, 12, 4, 14, type);
  pentagon(2, 19, 18, 3, 13, type);
  pentagon(3, 0, 5, 12, 13, type);
  pentagon(6, 15, 8, 10, 11, type);
  pentagon(4, 17, 8, 15, 14, type);
  pentagon(4, 12, 5, 16, 17, type);
}


x86 assembly (clang, -O0):
<dodecahedron>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,0x2f02(%rip)
jne    1149 <dodecahedron+0x29>
movl   $0x1,0x2ef2(%rip)
mov    $0x0,%al
call   1040 <initDodecahedron@plt>
mov    -0x4(%rbp),%r9d
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x9,%edx
mov    $0x10,%ecx
mov    $0x5,%r8d
call   1030 <pentagon@plt>
mov    -0x4(%rbp),%r9d
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x3,%edx
mov    $0x12,%ecx
mov    $0x7,%r8d
call   1030 <pentagon@plt>
mov    -0x4(%rbp),%r9d
mov    $0x1,%edi
mov    $0x7,%esi
mov    $0xb,%edx
mov    $0xa,%ecx
mov    $0x9,%r8d
call   1030 <pentagon@plt>
mov    -0x4(%rbp),%r9d
mov    $0xb,%edi
mov    $0x7,%esi
mov    $0x12,%edx
mov    $0x13,%ecx
mov    $0x6,%r8d
call   1030 <pentagon@plt>
mov    -0x4(%rbp),%r9d
mov    $0x8,%edi
mov    $0x11,%esi
mov    $0x10,%edx
mov    $0x9,%ecx
mov    $0xa,%r8d
call   1030 <pentagon@plt>
mov    -0x4(%rbp),%r9d
mov    $0x2,%edi
mov    $0xe,%esi
mov    $0xf,%edx
mov    $0x6,%ecx
mov    $0x13,%r8d
call   1030 <pentagon@plt>
mov    -0x4(%rbp),%r9d
mov    $0x2,%edi
mov    $0xd,%esi
mov    $0xc,%edx
mov    $0x4,%ecx
mov    $0xe,%r8d
call   1030 <pentagon@plt>
mov    -0x4(%rbp),%r9d
mov    $0x2,%edi
mov    $0x13,%esi
mov    $0x12,%edx
mov    $0x3,%ecx
mov    $0xd,%r8d
call   1030 <pentagon@plt>
mov    -0x4(%rbp),%r9d
mov    $0x3,%edi
xor    %esi,%esi
mov    $0x5,%edx
mov    $0xc,%ecx
mov    $0xd,%r8d
call   1030 <pentagon@plt>
mov    -0x4(%rbp),%r9d
mov    $0x6,%edi
mov    $0xf,%esi
mov    $0x8,%edx
mov    $0xa,%ecx
mov    $0xb,%r8d
call   1030 <pentagon@plt>
mov    -0x4(%rbp),%r9d
mov    $0x4,%edi
mov    $0x11,%esi
mov    $0x8,%edx
mov    $0xf,%ecx
mov    $0xe,%r8d
call   1030 <pentagon@plt>
mov    -0x4(%rbp),%r9d
mov    $0x4,%edi
mov    $0xc,%esi
mov    $0x5,%edx
mov    $0x10,%ecx
mov    $0x11,%r8d
call   1030 <pentagon@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dodecahedron>:
push   %rbx
mov    %edi,%ebx
cmpb   $0x0,0x2f0a(%rip)
jne    113a <dodecahedron+0x1a>
movb   $0x1,0x2f01(%rip)
xor    %eax,%eax
call   1040 <initDodecahedron@plt>
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x9,%edx
mov    $0x10,%ecx
mov    $0x5,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x3,%edx
mov    $0x12,%ecx
mov    $0x7,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x1,%edi
mov    $0x7,%esi
mov    $0xb,%edx
mov    $0xa,%ecx
mov    $0x9,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0xb,%edi
mov    $0x7,%esi
mov    $0x12,%edx
mov    $0x13,%ecx
mov    $0x6,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x8,%edi
mov    $0x11,%esi
mov    $0x10,%edx
mov    $0x9,%ecx
mov    $0xa,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x2,%edi
mov    $0xe,%esi
mov    $0xf,%edx
mov    $0x6,%ecx
mov    $0x13,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x2,%edi
mov    $0xd,%esi
mov    $0xc,%edx
mov    $0x4,%ecx
mov    $0xe,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x2,%edi
mov    $0x13,%esi
mov    $0x12,%edx
mov    $0x3,%ecx
mov    $0xd,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x3,%edi
xor    %esi,%esi
mov    $0x5,%edx
mov    $0xc,%ecx
mov    $0xd,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x6,%edi
mov    $0xf,%esi
mov    $0x8,%edx
mov    $0xa,%ecx
mov    $0xb,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x4,%edi
mov    $0x11,%esi
mov    $0x8,%edx
mov    $0xf,%ecx
mov    $0xe,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x4,%edi
mov    $0xc,%esi
mov    $0x5,%edx
mov    $0x10,%ecx
mov    $0x11,%r8d
mov    %ebx,%r9d
pop    %rbx
jmp    1030 <pentagon@plt>

LLVM IR (-O0):
@dodecahedron.inited = internal global i32 0
define void @dodecahedron(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @dodecahedron.inited
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
store i32 1, i32* @dodecahedron.inited
%6 = call i32 (...) @initDodecahedron()
br label %7
7: ; preds = %5, %1
%8 = load i32, i32* %2
%9 = call i32 @pentagon(i32 0, i32 1, i32 9, i32 16, i32 5, i32 %8)
%10 = load i32, i32* %2
%11 = call i32 @pentagon(i32 1, i32 0, i32 3, i32 18, i32 7, i32 %10)
%12 = load i32, i32* %2
%13 = call i32 @pentagon(i32 1, i32 7, i32 11, i32 10, i32 9, i32 %12)
%14 = load i32, i32* %2
%15 = call i32 @pentagon(i32 11, i32 7, i32 18, i32 19, i32 6, i32 %14)
%16 = load i32, i32* %2
%17 = call i32 @pentagon(i32 8, i32 17, i32 16, i32 9, i32 10, i32 %16)
%18 = load i32, i32* %2
%19 = call i32 @pentagon(i32 2, i32 14, i32 15, i32 6, i32 19, i32 %18)
%20 = load i32, i32* %2
%21 = call i32 @pentagon(i32 2, i32 13, i32 12, i32 4, i32 14, i32 %20)
%22 = load i32, i32* %2
%23 = call i32 @pentagon(i32 2, i32 19, i32 18, i32 3, i32 13, i32 %22)
%24 = load i32, i32* %2
%25 = call i32 @pentagon(i32 3, i32 0, i32 5, i32 12, i32 13, i32 %24)
%26 = load i32, i32* %2
%27 = call i32 @pentagon(i32 6, i32 15, i32 8, i32 10, i32 11, i32 %26)
%28 = load i32, i32* %2
%29 = call i32 @pentagon(i32 4, i32 17, i32 8, i32 15, i32 14, i32 %28)
%30 = load i32, i32* %2
%31 = call i32 @pentagon(i32 4, i32 12, i32 5, i32 16, i32 17, i32 %30)
ret void
}

LLVM IR (-O2):
@dodecahedron.inited = internal unnamed_addr global i1 false
define void @dodecahedron(i32 %0) {
%2 = load i1, i1* @dodecahedron.inited
br i1 %2, label %5, label %3
3: ; preds = %1
store i1 true, i1* @dodecahedron.inited
%4 = tail call i32 (...) @initDodecahedron()
br label %5
5: ; preds = %3, %1
%6 = tail call i32 @pentagon(i32 0, i32 1, i32 9, i32 16, i32 5, i32 %0)
%7 = tail call i32 @pentagon(i32 1, i32 0, i32 3, i32 18, i32 7, i32 %0)
%8 = tail call i32 @pentagon(i32 1, i32 7, i32 11, i32 10, i32 9, i32 %0)
%9 = tail call i32 @pentagon(i32 11, i32 7, i32 18, i32 19, i32 6, i32 %0)
%10 = tail call i32 @pentagon(i32 8, i32 17, i32 16, i32 9, i32 10, i32 %0)
%11 = tail call i32 @pentagon(i32 2, i32 14, i32 15, i32 6, i32 19, i32 %0)
%12 = tail call i32 @pentagon(i32 2, i32 13, i32 12, i32 4, i32 14, i32 %0)
%13 = tail call i32 @pentagon(i32 2, i32 19, i32 18, i32 3, i32 13, i32 %0)
%14 = tail call i32 @pentagon(i32 3, i32 0, i32 5, i32 12, i32 13, i32 %0)
%15 = tail call i32 @pentagon(i32 6, i32 15, i32 8, i32 10, i32 11, i32 %0)
%16 = tail call i32 @pentagon(i32 4, i32 17, i32 8, i32 15, i32 14, i32 %0)
%17 = tail call i32 @pentagon(i32 4, i32 12, i32 5, i32 16, i32 17, i32 %0)
ret void
}