#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*/ ButtonDrag(int, int);
int /*<<< orphan*/ ButtonRefresh(int, int);
int /*<<< orphan*/ DrawCircle(float, float, int, int);
int /*<<< orphan*/ DrawString(int, int, char *);
int /*<<< orphan*/ GL_LINES;
int /*<<< orphan*/ GL_LINE_STRIP;
int /*<<< orphan*/ GL_POLYGON;
double cos(float);
int /*<<< orphan*/ glBegin(int /*<<< orphan*/);
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glEnd();
int /*<<< orphan*/ glLineWidth(double);
int /*<<< orphan*/ glVertex2f(double, double);
int /*<<< orphan*/ glVertex2i(int, int);
int /*<<< orphan*/ printf(char *, double, double);
double sin(float);
int /*<<< orphan*/ snprintf(char *, int, char *, int);
void DrawSpeedometer(int tx, int ty, int bx, int by, char *title, char *units,
                     int value) {
  int i = 0, offset = 0;
  char buf[12];
  float cx = ((bx - tx) / 2) + tx;
  float cy = (by - ty) / 2;
  ButtonDrag(tx + 5, by - 20);
  ButtonRefresh(bx - 20, by - 20);
  glColor3f(0.929, 0.615, 0.309);
  glLineWidth(1.0);
  glBegin(GL_LINE_STRIP);
  glVertex2i(tx, ty);
  glVertex2i(tx, by);
  glVertex2i(bx, by);
  glVertex2i(bx, ty);
  glVertex2i(tx, ty);
  glEnd();
  glBegin(GL_LINES);
  glVertex2i(tx, by - 25);
  glVertex2i(bx, by - 25);
  glEnd();
  glColor3f(1.0, 1.0, 1.0);
  DrawString(tx + 30, by - 18, title);
  DrawCircle(cx, cy, ((bx - tx) / 2) - 9, 30);
  DrawCircle(cx, cy, ((bx - tx) / 2) - 14, 30);
  glColor3f(1.0, 0.0, 0.0);
  float angle;
  glBegin(GL_POLYGON);
  for (i = 0; i < 15; i++) {
    angle = i * 2 * 3.14159 / 15;
    glVertex2f(cos(angle), sin(angle));
    printf("x%f\ty%f\n", cos(angle), sin(angle));
  }
  glEnd();
  glColor3f(0.0, 1.0, 0.0);
  glColor3f(1.0, 1.0, 1.0);
  snprintf(buf, 12, "%.2f", value);
  DrawString(tx + 30, by - 185, buf);
  DrawString(tx + 30, by - 200, units);
}


x86 assembly (clang, -O0):
<DrawSpeedometer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0xc(%rbp),%eax
sub    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
add    -0x4(%rbp),%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%eax
sub    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x3c(%rbp)
mov    -0x4(%rbp),%edi
add    $0x5,%edi
mov    -0x10(%rbp),%esi
sub    $0x14,%esi
call   1050 <ButtonDrag@plt>
mov    -0xc(%rbp),%edi
sub    $0x14,%edi
mov    -0x10(%rbp),%esi
sub    $0x14,%esi
call   10a0 <ButtonRefresh@plt>
movsd  0xda0(%rip),%xmm0
movsd  0xda0(%rip),%xmm1
movsd  0xda0(%rip),%xmm2
call   10b0 <glColor3f@plt>
movsd  0xd7b(%rip),%xmm0
call   1030 <glLineWidth@plt>
mov    0x2d47(%rip),%rax
mov    (%rax),%edi
call   1100 <glBegin@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1040 <glVertex2i@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1040 <glVertex2i@plt>
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1040 <glVertex2i@plt>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1040 <glVertex2i@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1040 <glVertex2i@plt>
mov    $0x0,%al
call   1080 <glEnd@plt>
mov    0x2d0b(%rip),%rax
mov    (%rax),%edi
call   1100 <glBegin@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%esi
sub    $0x19,%esi
call   1040 <glVertex2i@plt>
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
sub    $0x19,%esi
call   1040 <glVertex2i@plt>
mov    $0x0,%al
call   1080 <glEnd@plt>
movsd  0xcf1(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   10b0 <glColor3f@plt>
mov    -0x4(%rbp),%edi
add    $0x1e,%edi
mov    -0x10(%rbp),%esi
sub    $0x12,%esi
mov    -0x18(%rbp),%rdx
call   10f0 <DrawString@plt>
movss  -0x38(%rbp),%xmm0
movss  -0x3c(%rbp),%xmm1
mov    -0xc(%rbp),%eax
sub    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
sub    $0x9,%edi
mov    $0x1e,%esi
call   10d0 <DrawCircle@plt>
movss  -0x38(%rbp),%xmm0
movss  -0x3c(%rbp),%xmm1
mov    -0xc(%rbp),%eax
sub    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
sub    $0xe,%edi
mov    $0x1e,%esi
call   10d0 <DrawCircle@plt>
movsd  0xc7b(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   10b0 <glColor3f@plt>
mov    0x2c61(%rip),%rax
mov    (%rax),%edi
call   1100 <glBegin@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0xf,-0x24(%rbp)
jge    143b <DrawSpeedometer+0x25b>
mov    -0x24(%rbp),%eax
shl    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  0xc67(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc53(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x40(%rbp)
movss  -0x40(%rbp),%xmm0
call   10e0 <cos@plt>
movsd  %xmm0,-0x50(%rbp)
movss  -0x40(%rbp),%xmm0
call   1090 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
call   10c0 <glVertex2f@plt>
movss  -0x40(%rbp),%xmm0
call   10e0 <cos@plt>
movsd  %xmm0,-0x48(%rbp)
movss  -0x40(%rbp),%xmm0
call   1090 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
lea    0xc08(%rip),%rdi
call   1060 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    13a5 <DrawSpeedometer+0x1c5>
mov    $0x0,%al
call   1080 <glEnd@plt>
xorps  %xmm2,%xmm2
movsd  0xbb3(%rip),%xmm1
movaps %xmm2,%xmm0
call   10b0 <glColor3f@plt>
movsd  0xba3(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   10b0 <glColor3f@plt>
lea    -0x34(%rbp),%rdi
mov    0x10(%rbp),%ecx
mov    $0xc,%esi
lea    0xbbe(%rip),%rdx
call   1070 <snprintf@plt>
mov    -0x4(%rbp),%edi
add    $0x1e,%edi
mov    -0x10(%rbp),%esi
sub    $0xb9,%esi
lea    -0x34(%rbp),%rdx
call   10f0 <DrawString@plt>
mov    -0x4(%rbp),%edi
add    $0x1e,%edi
mov    -0x10(%rbp),%esi
sub    $0xc8,%esi
mov    -0x20(%rbp),%rdx
call   10f0 <DrawString@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DrawSpeedometer>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %edx,%ebp
mov    %edi,%r14d
mov    %edx,%eax
sub    %edi,%eax
mov    %eax,%r13d
shr    $0x1f,%r13d
add    %eax,%r13d
sar    %r13d
lea    (%r14,%r13,1),%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,0xc(%rsp)
mov    %ecx,%ebx
mov    %esi,%r15d
mov    %ecx,%eax
sub    %esi,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
xorps  %xmm0,%xmm0
cvtsi2ss %ecx,%xmm0
movss  %xmm0,0x10(%rsp)
mov    %r9,0x20(%rsp)
mov    %r8,0x18(%rsp)
lea    0x5(%r14),%edi
lea    -0x14(%rbx),%r12d
mov    %r12d,%esi
call   1050 <ButtonDrag@plt>
lea    -0x14(%rbp),%edi
mov    %r12d,%esi
call   10a0 <ButtonRefresh@plt>
movsd  0xda2(%rip),%xmm0
movsd  0xda2(%rip),%xmm1
movsd  0xda2(%rip),%xmm2
call   10b0 <glColor3f@plt>
movsd  0xd9d(%rip),%xmm0
call   1030 <glLineWidth@plt>
mov    0x2d51(%rip),%rax
mov    (%rax),%edi
call   1100 <glBegin@plt>
mov    %r14d,%edi
mov    %r15d,%esi
call   1040 <glVertex2i@plt>
mov    %r14d,%edi
mov    %ebx,%esi
call   1040 <glVertex2i@plt>
mov    %rbp,%r12
mov    %r12d,%edi
mov    %ebx,%esi
call   1040 <glVertex2i@plt>
mov    %r12d,%edi
mov    %r15d,%esi
call   1040 <glVertex2i@plt>
mov    %r14d,%edi
mov    %r15d,%esi
mov    %rbx,%r15
call   1040 <glVertex2i@plt>
xor    %ebx,%ebx
xor    %eax,%eax
call   1080 <glEnd@plt>
mov    0x2d0f(%rip),%rax
mov    (%rax),%edi
call   1100 <glBegin@plt>
lea    -0x19(%r15),%ebp
mov    %r14d,%edi
mov    %ebp,%esi
call   1040 <glVertex2i@plt>
mov    %r12d,%edi
mov    %ebp,%esi
call   1040 <glVertex2i@plt>
xor    %eax,%eax
call   1080 <glEnd@plt>
movsd  0xd11(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   10b0 <glColor3f@plt>
add    $0x1e,%r14d
lea    -0x12(%r15),%esi
mov    %r14d,%edi
mov    0x18(%rsp),%rdx
call   10f0 <DrawString@plt>
lea    -0x9(%r13),%edi
movss  0xc(%rsp),%xmm0
movss  0x10(%rsp),%xmm1
mov    $0x1e,%esi
call   10d0 <DrawCircle@plt>
add    $0xfffffff2,%r13d
movss  0xc(%rsp),%xmm0
movss  0x10(%rsp),%xmm1
mov    %r13d,%edi
mov    $0x1e,%esi
call   10d0 <DrawCircle@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
movsd  0xcac(%rip),%xmm0
call   10b0 <glColor3f@plt>
mov    0x2c80(%rip),%rax
mov    (%rax),%edi
call   1100 <glBegin@plt>
lea    0xcaa(%rip),%rbp
cs nopw 0x0(%rax,%rax,1)
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
mulsd  0xc81(%rip),%xmm0
divsd  0xc81(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0xc(%rsp)
call   10e0 <cos@plt>
movsd  %xmm0,0x10(%rsp)
movss  0xc(%rsp),%xmm0
call   1090 <sin@plt>
movaps %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
call   10c0 <glVertex2f@plt>
movss  0xc(%rsp),%xmm0
call   10e0 <cos@plt>
movsd  %xmm0,0x10(%rsp)
movss  0xc(%rsp),%xmm0
call   1090 <sin@plt>
movaps %xmm0,%xmm1
mov    %rbp,%rdi
movsd  0x10(%rsp),%xmm0
call   1060 <printf@plt>
add    $0x2,%ebx
cmp    $0x1e,%ebx
jne    1390 <DrawSpeedometer+0x1b0>
xor    %eax,%eax
call   1080 <glEnd@plt>
movsd  0xbff(%rip),%xmm1
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
call   10b0 <glColor3f@plt>
movsd  0xbec(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   10b0 <glColor3f@plt>
lea    0xbfb(%rip),%rdx
lea    0x2c(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xc,%esi
mov    0x70(%rsp),%ecx
call   1070 <snprintf@plt>
lea    -0xb9(%r15),%esi
mov    %r14d,%edi
mov    %rbx,%rdx
call   10f0 <DrawString@plt>
add    $0xffffff38,%r15d
mov    %r14d,%edi
mov    %r15d,%esi
mov    0x20(%rsp),%rdx
call   10f0 <DrawString@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@GL_LINE_STRIP = global i32 0
@GL_LINES = global i32 0
@GL_POLYGON = global i32 0
@.str = [9 x i8] c"x%f\09y%f\0A\00"
@.str.1 = [5 x i8] c"%.2f\00"
define void @DrawSpeedometer(i32 %0, i32 %1, i32 %2, i32 %3, i8* %4, i8* %5, i32 %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca [12 x i8]
%18 = alloca float
%19 = alloca float
%20 = alloca float
store i32 %0, i32* %8
store i32 %1, i32* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i8* %4, i8** %12
store i8* %5, i8** %13
store i32 %6, i32* %14
store i32 0, i32* %15
store i32 0, i32* %16
%21 = load i32, i32* %10
%22 = load i32, i32* %8
%23 = sub nsw i32 %21, %22
%24 = sdiv i32 %23, 2
%25 = load i32, i32* %8
%26 = add nsw i32 %24, %25
%27 = sitofp i32 %26 to float
store float %27, float* %18
%28 = load i32, i32* %11
%29 = load i32, i32* %9
%30 = sub nsw i32 %28, %29
%31 = sdiv i32 %30, 2
%32 = sitofp i32 %31 to float
store float %32, float* %19
%33 = load i32, i32* %8
%34 = add nsw i32 %33, 5
%35 = load i32, i32* %11
%36 = sub nsw i32 %35, 20
%37 = call i32 @ButtonDrag(i32 %34, i32 %36)
%38 = load i32, i32* %10
%39 = sub nsw i32 %38, 20
%40 = load i32, i32* %11
%41 = sub nsw i32 %40, 20
%42 = call i32 @ButtonRefresh(i32 %39, i32 %41)
%43 = call i32 @glColor3f(double 9.290000e-01, double 0x3FE3AE147AE147AE, double 3.090000e-01)
%44 = call i32 @glLineWidth(double 1.000000e+00)
%45 = load i32, i32* @GL_LINE_STRIP
%46 = call i32 @glBegin(i32 %45)
%47 = load i32, i32* %8
%48 = load i32, i32* %9
%49 = call i32 @glVertex2i(i32 %47, i32 %48)
%50 = load i32, i32* %8
%51 = load i32, i32* %11
%52 = call i32 @glVertex2i(i32 %50, i32 %51)
%53 = load i32, i32* %10
%54 = load i32, i32* %11
%55 = call i32 @glVertex2i(i32 %53, i32 %54)
%56 = load i32, i32* %10
%57 = load i32, i32* %9
%58 = call i32 @glVertex2i(i32 %56, i32 %57)
%59 = load i32, i32* %8
%60 = load i32, i32* %9
%61 = call i32 @glVertex2i(i32 %59, i32 %60)
%62 = call i32 (...) @glEnd()
%63 = load i32, i32* @GL_LINES
%64 = call i32 @glBegin(i32 %63)
%65 = load i32, i32* %8
%66 = load i32, i32* %11
%67 = sub nsw i32 %66, 25
%68 = call i32 @glVertex2i(i32 %65, i32 %67)
%69 = load i32, i32* %10
%70 = load i32, i32* %11
%71 = sub nsw i32 %70, 25
%72 = call i32 @glVertex2i(i32 %69, i32 %71)
%73 = call i32 (...) @glEnd()
%74 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%75 = load i32, i32* %8
%76 = add nsw i32 %75, 30
%77 = load i32, i32* %11
%78 = sub nsw i32 %77, 18
%79 = load i8*, i8** %12
%80 = call i32 @DrawString(i32 %76, i32 %78, i8* %79)
%81 = load float, float* %18
%82 = load float, float* %19
%83 = load i32, i32* %10
%84 = load i32, i32* %8
%85 = sub nsw i32 %83, %84
%86 = sdiv i32 %85, 2
%87 = sub nsw i32 %86, 9
%88 = call i32 @DrawCircle(float %81, float %82, i32 %87, i32 30)
%89 = load float, float* %18
%90 = load float, float* %19
%91 = load i32, i32* %10
%92 = load i32, i32* %8
%93 = sub nsw i32 %91, %92
%94 = sdiv i32 %93, 2
%95 = sub nsw i32 %94, 14
%96 = call i32 @DrawCircle(float %89, float %90, i32 %95, i32 30)
%97 = call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%98 = load i32, i32* @GL_POLYGON
%99 = call i32 @glBegin(i32 %98)
store i32 0, i32* %15
br label %100
100: ; preds = %120, %7
%101 = load i32, i32* %15
%102 = icmp slt i32 %101, 15
br i1 %102, label %103, label %123
103: ; preds = %100
%104 = load i32, i32* %15
%105 = mul nsw i32 %104, 2
%106 = sitofp i32 %105 to double
%107 = fmul double %106, 3.141590e+00
%108 = fdiv double %107, 1.500000e+01
%109 = fptrunc double %108 to float
store float %109, float* %20
%110 = load float, float* %20
%111 = call double @cos(float %110)
%112 = load float, float* %20
%113 = call double @sin(float %112)
%114 = call i32 @glVertex2f(double %111, double %113)
%115 = load float, float* %20
%116 = call double @cos(float %115)
%117 = load float, float* %20
%118 = call double @sin(float %117)
%119 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double %116, double %118)
br label %120
120: ; preds = %103
%121 = load i32, i32* %15
%122 = add nsw i32 %121, 1
store i32 %122, i32* %15
br label %100
123: ; preds = %100
%124 = call i32 (...) @glEnd()
%125 = call i32 @glColor3f(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%126 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%127 = getelementptr inbounds [12 x i8], [12 x i8]* %17, i64 0, i64 0
%128 = load i32, i32* %14
%129 = call i32 @snprintf(i8* %127, i32 12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %128)
%130 = load i32, i32* %8
%131 = add nsw i32 %130, 30
%132 = load i32, i32* %11
%133 = sub nsw i32 %132, 185
%134 = getelementptr inbounds [12 x i8], [12 x i8]* %17, i64 0, i64 0
%135 = call i32 @DrawString(i32 %131, i32 %133, i8* %134)
%136 = load i32, i32* %8
%137 = add nsw i32 %136, 30
%138 = load i32, i32* %11
%139 = sub nsw i32 %138, 200
%140 = load i8*, i8** %13
%141 = call i32 @DrawString(i32 %137, i32 %139, i8* %140)
ret void
}

LLVM IR (-O2):
@GL_LINE_STRIP = global i32 0
@GL_LINES = global i32 0
@GL_POLYGON = global i32 0
@.str = [9 x i8] c"x%f\09y%f\0A\00"
@.str.1 = [5 x i8] c"%.2f\00"
define void @DrawSpeedometer(i32 %0, i32 %1, i32 %2, i32 %3, i8* %4, i8* %5, i32 %6) {
%8 = alloca [12 x i8]
%9 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%10 = sub nsw i32 %2, %0
%11 = sdiv i32 %10, 2
%12 = add nsw i32 %11, %0
%13 = sitofp i32 %12 to float
%14 = sub nsw i32 %3, %1
%15 = sdiv i32 %14, 2
%16 = sitofp i32 %15 to float
%17 = add nsw i32 %0, 5
%18 = add nsw i32 %3, -20
%19 = tail call i32 @ButtonDrag(i32 %17, i32 %18)
%20 = add nsw i32 %2, -20
%21 = tail call i32 @ButtonRefresh(i32 %20, i32 %18)
%22 = tail call i32 @glColor3f(double 9.290000e-01, double 0x3FE3AE147AE147AE, double 3.090000e-01)
%23 = tail call i32 @glLineWidth(double 1.000000e+00)
%24 = load i32, i32* @GL_LINE_STRIP
%25 = tail call i32 @glBegin(i32 %24)
%26 = tail call i32 @glVertex2i(i32 %0, i32 %1)
%27 = tail call i32 @glVertex2i(i32 %0, i32 %3)
%28 = tail call i32 @glVertex2i(i32 %2, i32 %3)
%29 = tail call i32 @glVertex2i(i32 %2, i32 %1)
%30 = tail call i32 @glVertex2i(i32 %0, i32 %1)
%31 = tail call i32 (...) @glEnd()
%32 = load i32, i32* @GL_LINES
%33 = tail call i32 @glBegin(i32 %32)
%34 = add nsw i32 %3, -25
%35 = tail call i32 @glVertex2i(i32 %0, i32 %34)
%36 = tail call i32 @glVertex2i(i32 %2, i32 %34)
%37 = tail call i32 (...) @glEnd()
%38 = tail call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%39 = add nsw i32 %0, 30
%40 = add nsw i32 %3, -18
%41 = tail call i32 @DrawString(i32 %39, i32 %40, i8* %4)
%42 = add nsw i32 %11, -9
%43 = tail call i32 @DrawCircle(float %13, float %16, i32 %42, i32 30)
%44 = add nsw i32 %11, -14
%45 = tail call i32 @DrawCircle(float %13, float %16, i32 %44, i32 30)
%46 = tail call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%47 = load i32, i32* @GL_POLYGON
%48 = tail call i32 @glBegin(i32 %47)
br label %49
49: ; preds = %7, %49
%50 = phi i32 [ 0, %7 ], [ %62, %49 ]
%51 = shl nuw nsw i32 %50, 1
%52 = sitofp i32 %51 to double
%53 = fmul double %52, 3.141590e+00
%54 = fdiv double %53, 1.500000e+01
%55 = fptrunc double %54 to float
%56 = tail call double @cos(float %55)
%57 = tail call double @sin(float %55)
%58 = tail call i32 @glVertex2f(double %56, double %57)
%59 = tail call double @cos(float %55)
%60 = tail call double @sin(float %55)
%61 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double %59, double %60)
%62 = add nuw nsw i32 %50, 1
%63 = icmp eq i32 %62, 15
br i1 %63, label %64, label %49
64: ; preds = %49
%65 = tail call i32 (...) @glEnd()
%66 = tail call i32 @glColor3f(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%67 = tail call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%68 = call i32 @snprintf(i8* %9, i32 12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%69 = add nsw i32 %3, -185
%70 = call i32 @DrawString(i32 %39, i32 %69, i8* %9)
%71 = add nsw i32 %3, -200
%72 = call i32 @DrawString(i32 %39, i32 %71, i8* %5)
ret void
}