#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*/ GL_LINE_STRIP;
int /*<<< orphan*/ glBegin(int /*<<< orphan*/);
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glEnd();
int /*<<< orphan*/ glRectf(int, int, int, int);
int /*<<< orphan*/ glVertex2f(int, int);
void _gluiEmboss(int raised, int lit, int x, int y, int width, int height) {
  int i;
  float c;
  for (i = 0; i < 3; i++) {
    c = (float)i / (3 * 5) + (lit ? 0.15 : 0.0);
    if (raised)
      glColor3f(0.275 + c, 0.2 + c, 0.2 + c);
    else
      glColor3f(0.875 - c, 0.8 - c, 0.8 - c);
    glBegin(GL_LINE_STRIP);
    glVertex2f(x + i + 1, y + i);
    glVertex2f(x + width - i - 1, y + i);
    glVertex2f(x + width - i - 1, y + height - i);
    glEnd();
  }
  for (i = 0; i < 3; i++) {
    c = (float)i / (3 * 5);
    if (raised)
      glColor3f(0.875 - c, 0.8 - c, 0.8 - c);
    else
      glColor3f(0.275 + c, 0.2 + c, 0.2 + c);
    glBegin(GL_LINE_STRIP);
    glVertex2f(x + i, y + i);
    glVertex2f(x + i, y + height - i - 1);
    glVertex2f(x + width - i - 1, y + height - i - 1);
    glEnd();
  }
  c = lit ? 0.15 : 0.0;
  if (raised)
    glColor3f(0.575 + c, 0.5 + c, 0.5 + c);
  else
    glColor3f(0.475 + c, 0.3 + c, 0.3 + c);
  glRectf(x + i, y + i, x + width - i, y + height - i);
}


x86 assembly (clang, -O0):
<_gluiEmboss>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x3,-0x1c(%rbp)
jge    12d8 <_gluiEmboss+0x188>
cvtsi2ssl -0x1c(%rbp),%xmm0
movss  0xebe(%rip),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%eax
movsd  0xe5e(%rip),%xmm0
xorps  %xmm1,%xmm1
movsd  %xmm1,-0x30(%rbp)
cmp    $0x0,%eax
movsd  %xmm0,-0x28(%rbp)
jne    11c2 <_gluiEmboss+0x72>
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     122c <_gluiEmboss+0xdc>
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe3c(%rip),%xmm0
addsd  %xmm1,%xmm0
movss  -0x20(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xe1f(%rip),%xmm1
addsd  %xmm2,%xmm1
movss  -0x20(%rbp),%xmm2
cvtss2sd %xmm2,%xmm3
movsd  0xe0a(%rip),%xmm2
addsd  %xmm3,%xmm2
call   1050 <glColor3f@plt>
jmp    1270 <_gluiEmboss+0x120>
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe03(%rip),%xmm0
subsd  %xmm1,%xmm0
movss  -0x20(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xde6(%rip),%xmm1
subsd  %xmm2,%xmm1
movss  -0x20(%rbp),%xmm2
cvtss2sd %xmm2,%xmm3
movsd  0xdd1(%rip),%xmm2
subsd  %xmm3,%xmm2
call   1050 <glColor3f@plt>
mov    0x2d71(%rip),%rax
mov    (%rax),%edi
call   1070 <glBegin@plt>
mov    -0xc(%rbp),%edi
add    -0x1c(%rbp),%edi
add    $0x1,%edi
mov    -0x10(%rbp),%esi
add    -0x1c(%rbp),%esi
call   1060 <glVertex2f@plt>
mov    -0xc(%rbp),%edi
add    -0x14(%rbp),%edi
sub    -0x1c(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%esi
add    -0x1c(%rbp),%esi
call   1060 <glVertex2f@plt>
mov    -0xc(%rbp),%edi
add    -0x14(%rbp),%edi
sub    -0x1c(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%esi
add    -0x18(%rbp),%esi
sub    -0x1c(%rbp),%esi
call   1060 <glVertex2f@plt>
mov    $0x0,%al
call   1040 <glEnd@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1173 <_gluiEmboss+0x23>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x3,-0x1c(%rbp)
jge    13fe <_gluiEmboss+0x2ae>
cvtsi2ssl -0x1c(%rbp),%xmm0
movss  0xd52(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1352 <_gluiEmboss+0x202>
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd26(%rip),%xmm0
subsd  %xmm1,%xmm0
movss  -0x20(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xd09(%rip),%xmm1
subsd  %xmm2,%xmm1
movss  -0x20(%rbp),%xmm2
cvtss2sd %xmm2,%xmm3
movsd  0xcf4(%rip),%xmm2
subsd  %xmm3,%xmm2
call   1050 <glColor3f@plt>
jmp    1396 <_gluiEmboss+0x246>
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xccd(%rip),%xmm0
addsd  %xmm1,%xmm0
movss  -0x20(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xcb0(%rip),%xmm1
addsd  %xmm2,%xmm1
movss  -0x20(%rbp),%xmm2
cvtss2sd %xmm2,%xmm3
movsd  0xc9b(%rip),%xmm2
addsd  %xmm3,%xmm2
call   1050 <glColor3f@plt>
mov    0x2c4b(%rip),%rax
mov    (%rax),%edi
call   1070 <glBegin@plt>
mov    -0xc(%rbp),%edi
add    -0x1c(%rbp),%edi
mov    -0x10(%rbp),%esi
add    -0x1c(%rbp),%esi
call   1060 <glVertex2f@plt>
mov    -0xc(%rbp),%edi
add    -0x1c(%rbp),%edi
mov    -0x10(%rbp),%esi
add    -0x18(%rbp),%esi
sub    -0x1c(%rbp),%esi
sub    $0x1,%esi
call   1060 <glVertex2f@plt>
mov    -0xc(%rbp),%edi
add    -0x14(%rbp),%edi
sub    -0x1c(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%esi
add    -0x18(%rbp),%esi
sub    -0x1c(%rbp),%esi
sub    $0x1,%esi
call   1060 <glVertex2f@plt>
mov    $0x0,%al
call   1040 <glEnd@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12df <_gluiEmboss+0x18f>
mov    -0x8(%rbp),%eax
movsd  0xbf7(%rip),%xmm0
xorps  %xmm1,%xmm1
movsd  %xmm1,-0x48(%rbp)
cmp    $0x0,%eax
movsd  %xmm0,-0x40(%rbp)
jne    1429 <_gluiEmboss+0x2d9>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     148a <_gluiEmboss+0x33a>
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xbce(%rip),%xmm0
addsd  %xmm1,%xmm0
movss  -0x20(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xbb1(%rip),%xmm1
addsd  %xmm2,%xmm1
movss  -0x20(%rbp),%xmm2
cvtss2sd %xmm2,%xmm3
movsd  0xb9c(%rip),%xmm2
addsd  %xmm3,%xmm2
call   1050 <glColor3f@plt>
jmp    14ce <_gluiEmboss+0x37e>
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xb75(%rip),%xmm0
addsd  %xmm1,%xmm0
movss  -0x20(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xb58(%rip),%xmm1
addsd  %xmm2,%xmm1
movss  -0x20(%rbp),%xmm2
cvtss2sd %xmm2,%xmm3
movsd  0xb43(%rip),%xmm2
addsd  %xmm3,%xmm2
call   1050 <glColor3f@plt>
mov    -0xc(%rbp),%edi
add    -0x1c(%rbp),%edi
mov    -0x10(%rbp),%esi
add    -0x1c(%rbp),%esi
mov    -0xc(%rbp),%edx
add    -0x14(%rbp),%edx
sub    -0x1c(%rbp),%edx
mov    -0x10(%rbp),%ecx
add    -0x18(%rbp),%ecx
sub    -0x1c(%rbp),%ecx
call   1030 <glRectf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_gluiEmboss>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r9d,%r13d
mov    %r8d,%ebp
mov    %ecx,%r15d
mov    %edx,%r14d
mov    %edi,%ebx
xorpd  %xmm0,%xmm0
xorpd  %xmm1,%xmm1
mov    %esi,0x2c(%rsp)
test   %esi,%esi
je     1184 <_gluiEmboss+0x34>
movsd  0xe7c(%rip),%xmm1
add    %r14d,%ebp
add    %r15d,%r13d
movsd  %xmm1,0x8(%rsp)
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
test   %ebx,%ebx
je     11bd <_gluiEmboss+0x6d>
movsd  0xe5d(%rip),%xmm0
addsd  %xmm1,%xmm0
addsd  0xe59(%rip),%xmm1
movapd %xmm1,%xmm2
jmp    11d9 <_gluiEmboss+0x89>
movsd  0xe53(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  0xe4f(%rip),%xmm2
subsd  %xmm1,%xmm2
movapd %xmm2,%xmm1
call   1050 <glColor3f@plt>
mov    0x2e03(%rip),%rax
mov    (%rax),%edi
call   1070 <glBegin@plt>
lea    0x1(%r14),%edi
mov    %edi,0x28(%rsp)
mov    %r15d,%esi
call   1060 <glVertex2f@plt>
mov    %rbp,%r12
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %r15d,%esi
call   1060 <glVertex2f@plt>
mov    %ebp,0x1c(%rsp)
mov    %ebp,%edi
mov    %r13d,%esi
call   1060 <glVertex2f@plt>
xor    %eax,%eax
call   1040 <glEnd@plt>
movsd  0xdff(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
test   %ebx,%ebx
mov    %ebx,0x4(%rsp)
je     125c <_gluiEmboss+0x10c>
movsd  0xdbe(%rip),%xmm0
addsd  %xmm1,%xmm0
addsd  0xdba(%rip),%xmm1
movapd %xmm1,%xmm2
jmp    1278 <_gluiEmboss+0x128>
movsd  0xdb4(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  0xdb0(%rip),%xmm2
subsd  %xmm1,%xmm2
movapd %xmm2,%xmm1
call   1050 <glColor3f@plt>
mov    0x2d64(%rip),%rax
mov    (%rax),%edi
call   1070 <glBegin@plt>
mov    %r14,%rbp
lea    0x2(%r14),%edi
lea    0x1(%r15),%ebx
mov    %edi,0x24(%rsp)
mov    %ebx,%esi
call   1060 <glVertex2f@plt>
lea    -0x2(%r12),%r14d
mov    %r14d,%edi
mov    %ebx,0x14(%rsp)
mov    %ebx,%esi
call   1060 <glVertex2f@plt>
lea    -0x1(%r13),%eax
mov    %r14d,0x18(%rsp)
mov    %r14d,%edi
mov    %eax,%r14d
mov    %eax,%esi
call   1060 <glVertex2f@plt>
xor    %eax,%eax
call   1040 <glEnd@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xd51(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
cmpl   $0x0,0x4(%rsp)
je     130b <_gluiEmboss+0x1bb>
movsd  0xd0f(%rip),%xmm0
addsd  %xmm1,%xmm0
addsd  0xd0b(%rip),%xmm1
movapd %xmm1,%xmm2
jmp    1327 <_gluiEmboss+0x1d7>
movsd  0xd05(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  0xd01(%rip),%xmm2
subsd  %xmm1,%xmm2
movapd %xmm2,%xmm1
call   1050 <glColor3f@plt>
mov    0x2cb5(%rip),%rax
mov    (%rax),%edi
call   1070 <glBegin@plt>
lea    0x3(%rbp),%edi
mov    %r15,0x8(%rsp)
lea    0x2(%r15),%ebx
mov    %edi,0x20(%rsp)
mov    %ebx,%esi
call   1060 <glVertex2f@plt>
add    $0xfffffffd,%r12d
mov    %r12d,%edi
mov    %ebx,0x10(%rsp)
mov    %ebx,%esi
call   1060 <glVertex2f@plt>
mov    %r13,0x30(%rsp)
add    $0xfffffffe,%r13d
mov    %r12d,%edi
mov    %r13d,%esi
call   1060 <glVertex2f@plt>
xor    %eax,%eax
call   1040 <glEnd@plt>
cmpl   $0x0,0x4(%rsp)
je     1397 <_gluiEmboss+0x247>
movsd  0xc8b(%rip),%xmm0
movsd  0xc8b(%rip),%xmm1
jmp    13a7 <_gluiEmboss+0x257>
movsd  0xc69(%rip),%xmm0
movsd  0xc69(%rip),%xmm1
movaps %xmm1,%xmm2
call   1050 <glColor3f@plt>
mov    0x2c32(%rip),%rax
mov    (%rax),%edi
call   1070 <glBegin@plt>
mov    %ebp,%edi
mov    0x8(%rsp),%rsi
call   1060 <glVertex2f@plt>
mov    %ebp,%edi
mov    %r14d,%esi
call   1060 <glVertex2f@plt>
mov    0x1c(%rsp),%edi
mov    %r14d,%esi
call   1060 <glVertex2f@plt>
xor    %eax,%eax
call   1040 <glEnd@plt>
mov    0x4(%rsp),%ebx
mov    %r12,%r15
test   %ebx,%ebx
je     1403 <_gluiEmboss+0x2b3>
movsd  0xc3f(%rip),%xmm0
movsd  0xc3f(%rip),%xmm1
jmp    1413 <_gluiEmboss+0x2c3>
movsd  0xc3d(%rip),%xmm0
movsd  0xc3d(%rip),%xmm1
movaps %xmm1,%xmm2
call   1050 <glColor3f@plt>
mov    0x2bc6(%rip),%rax
mov    (%rax),%edi
call   1070 <glBegin@plt>
mov    0x28(%rsp),%ebp
mov    %ebp,%edi
mov    0x14(%rsp),%esi
call   1060 <glVertex2f@plt>
mov    %ebp,%edi
mov    %r13d,%esi
call   1060 <glVertex2f@plt>
mov    0x18(%rsp),%edi
mov    %r13d,%esi
call   1060 <glVertex2f@plt>
xor    %eax,%eax
call   1040 <glEnd@plt>
test   %ebx,%ebx
je     146b <_gluiEmboss+0x31b>
movsd  0xbf7(%rip),%xmm0
movsd  0xbf7(%rip),%xmm1
jmp    147b <_gluiEmboss+0x32b>
movsd  0xbf5(%rip),%xmm0
movsd  0xbf5(%rip),%xmm1
movapd %xmm1,%xmm2
call   1050 <glColor3f@plt>
mov    0x8(%rsp),%r14
mov    0x30(%rsp),%r12
mov    0x2b53(%rip),%rax
mov    (%rax),%edi
call   1070 <glBegin@plt>
mov    0x24(%rsp),%ebp
mov    %ebp,%edi
mov    0x10(%rsp),%esi
call   1060 <glVertex2f@plt>
add    $0xfffffffd,%r12d
mov    %ebp,%edi
mov    %r12d,%esi
call   1060 <glVertex2f@plt>
mov    %r15,%rbp
mov    %ebp,%edi
mov    %r12d,%esi
call   1060 <glVertex2f@plt>
xor    %eax,%eax
call   1040 <glEnd@plt>
xorpd  %xmm1,%xmm1
cmpl   $0x0,0x2c(%rsp)
je     14e0 <_gluiEmboss+0x390>
movsd  0xb98(%rip),%xmm1
test   %ebx,%ebx
je     14fa <_gluiEmboss+0x3aa>
movsd  0xb94(%rip),%xmm0
addsd  %xmm1,%xmm0
addsd  0xb90(%rip),%xmm1
jmp    150e <_gluiEmboss+0x3be>
movsd  0xb8e(%rip),%xmm0
addsd  %xmm1,%xmm0
addsd  0xb8a(%rip),%xmm1
movapd %xmm1,%xmm2
call   1050 <glColor3f@plt>
add    $0x3,%r14d
mov    0x20(%rsp),%edi
mov    %r14d,%esi
mov    %ebp,%edx
mov    %r12d,%ecx
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <glRectf@plt>

LLVM IR (-O0):
@GL_LINE_STRIP = global i32 0
define void @_gluiEmboss(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca float
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
store i32 0, i32* %13
br label %15
15: ; preds = %87, %6
%16 = load i32, i32* %13
%17 = icmp slt i32 %16, 3
br i1 %17, label %18, label %90
18: ; preds = %15
%19 = load i32, i32* %13
%20 = sitofp i32 %19 to float
%21 = fdiv float %20, 1.500000e+01
%22 = fpext float %21 to double
%23 = load i32, i32* %8
%24 = icmp ne i32 %23, 0
%25 = zext i1 %24 to i64
%26 = select i1 %24, double 1.500000e-01, double 0.000000e+00
%27 = fadd double %22, %26
%28 = fptrunc double %27 to float
store float %28, float* %14
%29 = load i32, i32* %7
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %42
31: ; preds = %18
%32 = load float, float* %14
%33 = fpext float %32 to double
%34 = fadd double 2.750000e-01, %33
%35 = load float, float* %14
%36 = fpext float %35 to double
%37 = fadd double 2.000000e-01, %36
%38 = load float, float* %14
%39 = fpext float %38 to double
%40 = fadd double 2.000000e-01, %39
%41 = call i32 @glColor3f(double %34, double %37, double %40)
br label %53
42: ; preds = %18
%43 = load float, float* %14
%44 = fpext float %43 to double
%45 = fsub double 8.750000e-01, %44
%46 = load float, float* %14
%47 = fpext float %46 to double
%48 = fsub double 8.000000e-01, %47
%49 = load float, float* %14
%50 = fpext float %49 to double
%51 = fsub double 8.000000e-01, %50
%52 = call i32 @glColor3f(double %45, double %48, double %51)
br label %53
53: ; preds = %42, %31
%54 = load i32, i32* @GL_LINE_STRIP
%55 = call i32 @glBegin(i32 %54)
%56 = load i32, i32* %9
%57 = load i32, i32* %13
%58 = add nsw i32 %56, %57
%59 = add nsw i32 %58, 1
%60 = load i32, i32* %10
%61 = load i32, i32* %13
%62 = add nsw i32 %60, %61
%63 = call i32 @glVertex2f(i32 %59, i32 %62)
%64 = load i32, i32* %9
%65 = load i32, i32* %11
%66 = add nsw i32 %64, %65
%67 = load i32, i32* %13
%68 = sub nsw i32 %66, %67
%69 = sub nsw i32 %68, 1
%70 = load i32, i32* %10
%71 = load i32, i32* %13
%72 = add nsw i32 %70, %71
%73 = call i32 @glVertex2f(i32 %69, i32 %72)
%74 = load i32, i32* %9
%75 = load i32, i32* %11
%76 = add nsw i32 %74, %75
%77 = load i32, i32* %13
%78 = sub nsw i32 %76, %77
%79 = sub nsw i32 %78, 1
%80 = load i32, i32* %10
%81 = load i32, i32* %12
%82 = add nsw i32 %80, %81
%83 = load i32, i32* %13
%84 = sub nsw i32 %82, %83
%85 = call i32 @glVertex2f(i32 %79, i32 %84)
%86 = call i32 (...) @glEnd()
br label %87
87: ; preds = %53
%88 = load i32, i32* %13
%89 = add nsw i32 %88, 1
store i32 %89, i32* %13
br label %15
90: ; preds = %15
store i32 0, i32* %13
br label %91
91: ; preds = %156, %90
%92 = load i32, i32* %13
%93 = icmp slt i32 %92, 3
br i1 %93, label %94, label %159
94: ; preds = %91
%95 = load i32, i32* %13
%96 = sitofp i32 %95 to float
%97 = fdiv float %96, 1.500000e+01
store float %97, float* %14
%98 = load i32, i32* %7
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %111
100: ; preds = %94
%101 = load float, float* %14
%102 = fpext float %101 to double
%103 = fsub double 8.750000e-01, %102
%104 = load float, float* %14
%105 = fpext float %104 to double
%106 = fsub double 8.000000e-01, %105
%107 = load float, float* %14
%108 = fpext float %107 to double
%109 = fsub double 8.000000e-01, %108
%110 = call i32 @glColor3f(double %103, double %106, double %109)
br label %122
111: ; preds = %94
%112 = load float, float* %14
%113 = fpext float %112 to double
%114 = fadd double 2.750000e-01, %113
%115 = load float, float* %14
%116 = fpext float %115 to double
%117 = fadd double 2.000000e-01, %116
%118 = load float, float* %14
%119 = fpext float %118 to double
%120 = fadd double 2.000000e-01, %119
%121 = call i32 @glColor3f(double %114, double %117, double %120)
br label %122
122: ; preds = %111, %100
%123 = load i32, i32* @GL_LINE_STRIP
%124 = call i32 @glBegin(i32 %123)
%125 = load i32, i32* %9
%126 = load i32, i32* %13
%127 = add nsw i32 %125, %126
%128 = load i32, i32* %10
%129 = load i32, i32* %13
%130 = add nsw i32 %128, %129
%131 = call i32 @glVertex2f(i32 %127, i32 %130)
%132 = load i32, i32* %9
%133 = load i32, i32* %13
%134 = add nsw i32 %132, %133
%135 = load i32, i32* %10
%136 = load i32, i32* %12
%137 = add nsw i32 %135, %136
%138 = load i32, i32* %13
%139 = sub nsw i32 %137, %138
%140 = sub nsw i32 %139, 1
%141 = call i32 @glVertex2f(i32 %134, i32 %140)
%142 = load i32, i32* %9
%143 = load i32, i32* %11
%144 = add nsw i32 %142, %143
%145 = load i32, i32* %13
%146 = sub nsw i32 %144, %145
%147 = sub nsw i32 %146, 1
%148 = load i32, i32* %10
%149 = load i32, i32* %12
%150 = add nsw i32 %148, %149
%151 = load i32, i32* %13
%152 = sub nsw i32 %150, %151
%153 = sub nsw i32 %152, 1
%154 = call i32 @glVertex2f(i32 %147, i32 %153)
%155 = call i32 (...) @glEnd()
br label %156
156: ; preds = %122
%157 = load i32, i32* %13
%158 = add nsw i32 %157, 1
store i32 %158, i32* %13
br label %91
159: ; preds = %91
%160 = load i32, i32* %8
%161 = icmp ne i32 %160, 0
%162 = zext i1 %161 to i64
%163 = select i1 %161, double 1.500000e-01, double 0.000000e+00
%164 = fptrunc double %163 to float
store float %164, float* %14
%165 = load i32, i32* %7
%166 = icmp ne i32 %165, 0
br i1 %166, label %167, label %178
167: ; preds = %159
%168 = load float, float* %14
%169 = fpext float %168 to double
%170 = fadd double 5.750000e-01, %169
%171 = load float, float* %14
%172 = fpext float %171 to double
%173 = fadd double 5.000000e-01, %172
%174 = load float, float* %14
%175 = fpext float %174 to double
%176 = fadd double 5.000000e-01, %175
%177 = call i32 @glColor3f(double %170, double %173, double %176)
br label %189
178: ; preds = %159
%179 = load float, float* %14
%180 = fpext float %179 to double
%181 = fadd double 4.750000e-01, %180
%182 = load float, float* %14
%183 = fpext float %182 to double
%184 = fadd double 3.000000e-01, %183
%185 = load float, float* %14
%186 = fpext float %185 to double
%187 = fadd double 3.000000e-01, %186
%188 = call i32 @glColor3f(double %181, double %184, double %187)
br label %189
189: ; preds = %178, %167
%190 = load i32, i32* %9
%191 = load i32, i32* %13
%192 = add nsw i32 %190, %191
%193 = load i32, i32* %10
%194 = load i32, i32* %13
%195 = add nsw i32 %193, %194
%196 = load i32, i32* %9
%197 = load i32, i32* %11
%198 = add nsw i32 %196, %197
%199 = load i32, i32* %13
%200 = sub nsw i32 %198, %199
%201 = load i32, i32* %10
%202 = load i32, i32* %12
%203 = add nsw i32 %201, %202
%204 = load i32, i32* %13
%205 = sub nsw i32 %203, %204
%206 = call i32 @glRectf(i32 %192, i32 %195, i32 %200, i32 %205)
ret void
}

LLVM IR (-O2):
@GL_LINE_STRIP = global i32 0
define void @_gluiEmboss(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = icmp eq i32 %1, 0
%8 = select i1 %7, double 0.000000e+00, double 1.500000e-01
%9 = icmp eq i32 %0, 0
%10 = add nsw i32 %4, %2
%11 = add nsw i32 %5, %3
%12 = fadd double %8, 0.000000e+00
%13 = fptrunc double %12 to float
%14 = fpext float %13 to double
br i1 %9, label %19, label %15
15: ; preds = %6
%16 = fadd double %14, 2.750000e-01
%17 = fadd double %14, 2.000000e-01
%18 = tail call i32 @glColor3f(double %16, double %17, double %17)
br label %23
19: ; preds = %6
%20 = fsub double 8.750000e-01, %14
%21 = fsub double 8.000000e-01, %14
%22 = tail call i32 @glColor3f(double %20, double %21, double %21)
br label %23
23: ; preds = %19, %15
%24 = load i32, i32* @GL_LINE_STRIP
%25 = tail call i32 @glBegin(i32 %24)
%26 = add i32 %2, 1
%27 = tail call i32 @glVertex2f(i32 %26, i32 %3)
%28 = add i32 %10, -1
%29 = tail call i32 @glVertex2f(i32 %28, i32 %3)
%30 = tail call i32 @glVertex2f(i32 %28, i32 %11)
%31 = tail call i32 (...) @glEnd()
%32 = fadd double %8, 0x3FB1111120000000
%33 = fptrunc double %32 to float
%34 = fpext float %33 to double
br i1 %9, label %39, label %35
35: ; preds = %23
%36 = fadd double %34, 2.750000e-01
%37 = fadd double %34, 2.000000e-01
%38 = tail call i32 @glColor3f(double %36, double %37, double %37)
br label %43
39: ; preds = %23
%40 = fsub double 8.750000e-01, %34
%41 = fsub double 8.000000e-01, %34
%42 = tail call i32 @glColor3f(double %40, double %41, double %41)
br label %43
43: ; preds = %39, %35
%44 = load i32, i32* @GL_LINE_STRIP
%45 = tail call i32 @glBegin(i32 %44)
%46 = add i32 %2, 2
%47 = add nsw i32 %3, 1
%48 = tail call i32 @glVertex2f(i32 %46, i32 %47)
%49 = add i32 %10, -2
%50 = tail call i32 @glVertex2f(i32 %49, i32 %47)
%51 = add i32 %11, -1
%52 = tail call i32 @glVertex2f(i32 %49, i32 %51)
%53 = tail call i32 (...) @glEnd()
%54 = fadd double %8, 0x3FC1111120000000
%55 = fptrunc double %54 to float
%56 = fpext float %55 to double
br i1 %9, label %61, label %57
57: ; preds = %43
%58 = fadd double %56, 2.750000e-01
%59 = fadd double %56, 2.000000e-01
%60 = tail call i32 @glColor3f(double %58, double %59, double %59)
br label %65
61: ; preds = %43
%62 = fsub double 8.750000e-01, %56
%63 = fsub double 8.000000e-01, %56
%64 = tail call i32 @glColor3f(double %62, double %63, double %63)
br label %65
65: ; preds = %61, %57
%66 = load i32, i32* @GL_LINE_STRIP
%67 = tail call i32 @glBegin(i32 %66)
%68 = add i32 %2, 3
%69 = add nsw i32 %3, 2
%70 = tail call i32 @glVertex2f(i32 %68, i32 %69)
%71 = add i32 %10, -3
%72 = tail call i32 @glVertex2f(i32 %71, i32 %69)
%73 = add i32 %11, -2
%74 = tail call i32 @glVertex2f(i32 %71, i32 %73)
%75 = tail call i32 (...) @glEnd()
br i1 %9, label %78, label %76
76: ; preds = %65
%77 = tail call i32 @glColor3f(double 8.750000e-01, double 8.000000e-01, double 8.000000e-01)
br label %80
78: ; preds = %65
%79 = tail call i32 @glColor3f(double 2.750000e-01, double 2.000000e-01, double 2.000000e-01)
br label %80
80: ; preds = %78, %76
%81 = load i32, i32* @GL_LINE_STRIP
%82 = tail call i32 @glBegin(i32 %81)
%83 = tail call i32 @glVertex2f(i32 %2, i32 %3)
%84 = add i32 %11, -1
%85 = tail call i32 @glVertex2f(i32 %2, i32 %84)
%86 = tail call i32 @glVertex2f(i32 %28, i32 %84)
%87 = tail call i32 (...) @glEnd()
br i1 %9, label %90, label %88
88: ; preds = %80
%89 = tail call i32 @glColor3f(double 0x3FE9DDDDDC000000, double 0x3FE777777599999A, double 0x3FE777777599999A)
br label %92
90: ; preds = %80
%91 = tail call i32 @glColor3f(double 0x3FD5DDDDE199999A, double 0x3FD1111114CCCCCD, double 0x3FD1111114CCCCCD)
br label %92
92: ; preds = %90, %88
%93 = load i32, i32* @GL_LINE_STRIP
%94 = tail call i32 @glBegin(i32 %93)
%95 = tail call i32 @glVertex2f(i32 %26, i32 %47)
%96 = add i32 %11, -2
%97 = tail call i32 @glVertex2f(i32 %26, i32 %96)
%98 = tail call i32 @glVertex2f(i32 %49, i32 %96)
%99 = tail call i32 (...) @glEnd()
br i1 %9, label %102, label %100
100: ; preds = %92
%101 = tail call i32 @glColor3f(double 0x3FE7BBBBB8000000, double 0x3FE555555199999A, double 0x3FE555555199999A)
br label %104
102: ; preds = %92
%103 = tail call i32 @glColor3f(double 0x3FDA22222999999A, double 0x3FD555555CCCCCCD, double 0x3FD555555CCCCCCD)
br label %104
104: ; preds = %102, %100
%105 = load i32, i32* @GL_LINE_STRIP
%106 = tail call i32 @glBegin(i32 %105)
%107 = tail call i32 @glVertex2f(i32 %46, i32 %69)
%108 = add i32 %11, -3
%109 = tail call i32 @glVertex2f(i32 %46, i32 %108)
%110 = tail call i32 @glVertex2f(i32 %71, i32 %108)
%111 = tail call i32 (...) @glEnd()
%112 = select i1 %7, double 0.000000e+00, double 0x3FC3333340000000
br i1 %9, label %117, label %113
113: ; preds = %104
%114 = fadd double %112, 5.750000e-01
%115 = fadd double %112, 5.000000e-01
%116 = tail call i32 @glColor3f(double %114, double %115, double %115)
br label %121
117: ; preds = %104
%118 = fadd double %112, 4.750000e-01
%119 = fadd double %112, 3.000000e-01
%120 = tail call i32 @glColor3f(double %118, double %119, double %119)
br label %121
121: ; preds = %117, %113
%122 = add nsw i32 %3, 3
%123 = tail call i32 @glRectf(i32 %68, i32 %122, i32 %71, i32 %108)
ret void
}