#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_QUAD_STRIP;
float cos(double);
int /*<<< orphan*/ glBegin(int /*<<< orphan*/);
int /*<<< orphan*/ glEnd();
int /*<<< orphan*/ glNormal3f(double, double, double);
int /*<<< orphan*/ glVertex3f(double, double, double);
float sin(double);
void FillTorus(float rc, int numc, float rt, int numt) {
  int i, j, k;
  double s, t;
  double x, y, z;
  double pi, twopi;
  pi = 3.141592654;
  twopi = 2 * pi;
  for (i = 0; i < numc; i++) {
    glBegin(GL_QUAD_STRIP);
    for (j = 0; j <= numt; j++) {
      for (k = 1; k >= 0; k--) {
        s = (i + k) % numc + 0.5;
        t = j % numt;
        x = cos(t * twopi / numt) * cos(s * twopi / numc);
        y = sin(t * twopi / numt) * cos(s * twopi / numc);
        z = sin(s * twopi / numc);
        glNormal3f(x, y, z);
        x = (rt + rc * cos(s * twopi / numc)) * cos(t * twopi / numt);
        y = (rt + rc * cos(s * twopi / numc)) * sin(t * twopi / numt);
        z = rc * sin(s * twopi / numc);
        glVertex3f(x, y, z);
      }
    }
    glEnd();
  }
}


x86 assembly (clang, -O0):
<FillTorus>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movss  %xmm0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
movss  %xmm1,-0xc(%rbp)
mov    %esi,-0x10(%rbp)
movsd  0xe85(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe70(%rip),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    143e <FillTorus+0x2de>
mov    0x2e34(%rip),%rax
mov    (%rax),%edi
call   1070 <glBegin@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     1429 <FillTorus+0x2c9>
movl   $0x1,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jl     1416 <FillTorus+0x2b6>
mov    -0x14(%rbp),%eax
add    -0x1c(%rbp),%eax
cltd
idivl  -0x8(%rbp)
cvtsi2sd %edx,%xmm0
movsd  0xe1b(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x18(%rbp),%eax
cltd
idivl  -0x10(%rbp)
cvtsi2sd %edx,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1060 <cos@plt>
movss  %xmm0,-0x7c(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x8(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1060 <cos@plt>
movaps %xmm0,%xmm1
movss  -0x7c(%rbp),%xmm0
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1050 <sin@plt>
movss  %xmm0,-0x78(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x8(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1060 <cos@plt>
movaps %xmm0,%xmm1
movss  -0x78(%rbp),%xmm0
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x8(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1050 <sin@plt>
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
call   1080 <glNormal3f@plt>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x74(%rbp)
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x70(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x8(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1060 <cos@plt>
movss  -0x74(%rbp),%xmm1
movaps %xmm0,%xmm2
movss  -0x70(%rbp),%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x6c(%rbp)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1060 <cos@plt>
movaps %xmm0,%xmm1
movss  -0x6c(%rbp),%xmm0
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x68(%rbp)
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x64(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x8(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1060 <cos@plt>
movss  -0x68(%rbp),%xmm1
movaps %xmm0,%xmm2
movss  -0x64(%rbp),%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x60(%rbp)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1050 <sin@plt>
movaps %xmm0,%xmm1
movss  -0x60(%rbp),%xmm0
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x5c(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x8(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1050 <sin@plt>
movaps %xmm0,%xmm1
movss  -0x5c(%rbp),%xmm0
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
call   1030 <glVertex3f@plt>
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
jmp    11d5 <FillTorus+0x75>
jmp    141b <FillTorus+0x2bb>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11c2 <FillTorus+0x62>
mov    $0x0,%al
call   1040 <glEnd@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11a1 <FillTorus+0x41>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<FillTorus>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
movss  %xmm1,0x2c(%rsp)
movss  %xmm0,0x1c(%rsp)
test   %edi,%edi
jle    14cd <FillTorus+0x36d>
mov    %esi,%ebx
mov    %edi,%r14d
xorps  %xmm0,%xmm0
cvtsi2sd %esi,%xmm0
movsd  %xmm0,0x48(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %edi,%xmm0
movsd  %xmm0,0x50(%rsp)
lea    0x1(%rbx),%ebp
xor    %r15d,%r15d
xorpd  %xmm1,%xmm1
xor    %r13d,%r13d
xorpd  %xmm0,%xmm0
jmp    11da <FillTorus+0x7a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %eax,%eax
call   1040 <glEnd@plt>
movsd  0x40(%rsp),%xmm0
movapd %xmm0,%xmm1
cmp    %r14d,%r13d
je     14cd <FillTorus+0x36d>
movsd  %xmm0,0x40(%rsp)
movsd  %xmm1,0x30(%rsp)
mov    0x2dfb(%rip),%rax
mov    (%rax),%edi
call   1070 <glBegin@plt>
add    $0x1,%r13d
movsd  0x40(%rsp),%xmm0
addsd  0xdfa(%rip),%xmm0
movsd  %xmm0,0x40(%rsp)
test   %ebx,%ebx
movsd  0x48(%rsp),%xmm3
js     11c0 <FillTorus+0x60>
xor    %r12d,%r12d
cmp    %r14d,%r13d
mov    %r13d,%eax
cmove  %r12d,%eax
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
movsd  0xdd6(%rip),%xmm1
addsd  %xmm1,%xmm2
movsd  0xdd2(%rip),%xmm4
mulsd  %xmm4,%xmm2
movsd  0x50(%rsp),%xmm0
divsd  %xmm0,%xmm2
movsd  %xmm2,0x38(%rsp)
movsd  0x30(%rsp),%xmm2
addsd  %xmm1,%xmm2
mulsd  %xmm4,%xmm2
divsd  %xmm0,%xmm2
movsd  %xmm2,0x30(%rsp)
nopw   0x0(%rax,%rax,1)
cmp    %r12d,%ebx
mov    %r12d,%eax
cmove  %r15d,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xd87(%rip),%xmm0
divsd  %xmm3,%xmm0
movsd  %xmm0,0x20(%rsp)
call   1060 <cos@plt>
movss  %xmm0,0x8(%rsp)
movsd  0x38(%rsp),%xmm0
call   1060 <cos@plt>
mulss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x20(%rsp),%xmm0
call   1050 <sin@plt>
movss  %xmm0,0x10(%rsp)
movsd  0x38(%rsp),%xmm0
call   1060 <cos@plt>
mulss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x38(%rsp),%xmm0
call   1050 <sin@plt>
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
call   1080 <glNormal3f@plt>
movsd  0x38(%rsp),%xmm0
call   1060 <cos@plt>
mulss  0x1c(%rsp),%xmm0
addss  0x2c(%rsp),%xmm0
movss  %xmm0,0x8(%rsp)
movsd  0x20(%rsp),%xmm0
call   1060 <cos@plt>
mulss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x38(%rsp),%xmm0
call   1060 <cos@plt>
mulss  0x1c(%rsp),%xmm0
addss  0x2c(%rsp),%xmm0
movss  %xmm0,0x10(%rsp)
movsd  0x20(%rsp),%xmm0
call   1050 <sin@plt>
mulss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x38(%rsp),%xmm0
call   1050 <sin@plt>
mulss  0x1c(%rsp),%xmm0
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
call   1030 <glVertex3f@plt>
movsd  0x20(%rsp),%xmm0
call   1060 <cos@plt>
movss  %xmm0,0x8(%rsp)
movsd  0x30(%rsp),%xmm0
call   1060 <cos@plt>
mulss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x20(%rsp),%xmm0
call   1050 <sin@plt>
movss  %xmm0,0x10(%rsp)
movsd  0x30(%rsp),%xmm0
call   1060 <cos@plt>
mulss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x30(%rsp),%xmm0
call   1050 <sin@plt>
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
call   1080 <glNormal3f@plt>
movsd  0x30(%rsp),%xmm0
call   1060 <cos@plt>
mulss  0x1c(%rsp),%xmm0
addss  0x2c(%rsp),%xmm0
movss  %xmm0,0x8(%rsp)
movsd  0x20(%rsp),%xmm0
call   1060 <cos@plt>
mulss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x30(%rsp),%xmm0
call   1060 <cos@plt>
mulss  0x1c(%rsp),%xmm0
addss  0x2c(%rsp),%xmm0
movss  %xmm0,0x10(%rsp)
movsd  0x20(%rsp),%xmm0
call   1050 <sin@plt>
mulss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x30(%rsp),%xmm0
call   1050 <sin@plt>
mulss  0x1c(%rsp),%xmm0
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
movsd  0x8(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
call   1030 <glVertex3f@plt>
movsd  0x48(%rsp),%xmm3
add    $0x1,%r12d
cmp    %r12d,%ebp
jne    1270 <FillTorus+0x110>
jmp    11c0 <FillTorus+0x60>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@GL_QUAD_STRIP = global i32 0
define void @FillTorus(float %0, i32 %1, float %2, i32 %3) {
%5 = alloca float
%6 = alloca i32
%7 = alloca float
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
store float %0, float* %5
store i32 %1, i32* %6
store float %2, float* %7
store i32 %3, i32* %8
store double 0x400921FB54524550, double* %17
%19 = load double, double* %17
%20 = fmul double 2.000000e+00, %19
store double %20, double* %18
store i32 0, i32* %9
br label %21
21: ; preds = %153, %4
%22 = load i32, i32* %9
%23 = load i32, i32* %6
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %156
25: ; preds = %21
%26 = load i32, i32* @GL_QUAD_STRIP
%27 = call i32 @glBegin(i32 %26)
store i32 0, i32* %10
br label %28
28: ; preds = %148, %25
%29 = load i32, i32* %10
%30 = load i32, i32* %8
%31 = icmp sle i32 %29, %30
br i1 %31, label %32, label %151
32: ; preds = %28
store i32 1, i32* %11
br label %33
33: ; preds = %144, %32
%34 = load i32, i32* %11
%35 = icmp sge i32 %34, 0
br i1 %35, label %36, label %147
36: ; preds = %33
%37 = load i32, i32* %9
%38 = load i32, i32* %11
%39 = add nsw i32 %37, %38
%40 = load i32, i32* %6
%41 = srem i32 %39, %40
%42 = sitofp i32 %41 to double
%43 = fadd double %42, 5.000000e-01
store double %43, double* %12
%44 = load i32, i32* %10
%45 = load i32, i32* %8
%46 = srem i32 %44, %45
%47 = sitofp i32 %46 to double
store double %47, double* %13
%48 = load double, double* %13
%49 = load double, double* %18
%50 = fmul double %48, %49
%51 = load i32, i32* %8
%52 = sitofp i32 %51 to double
%53 = fdiv double %50, %52
%54 = call float @cos(double %53)
%55 = load double, double* %12
%56 = load double, double* %18
%57 = fmul double %55, %56
%58 = load i32, i32* %6
%59 = sitofp i32 %58 to double
%60 = fdiv double %57, %59
%61 = call float @cos(double %60)
%62 = fmul float %54, %61
%63 = fpext float %62 to double
store double %63, double* %14
%64 = load double, double* %13
%65 = load double, double* %18
%66 = fmul double %64, %65
%67 = load i32, i32* %8
%68 = sitofp i32 %67 to double
%69 = fdiv double %66, %68
%70 = call float @sin(double %69)
%71 = load double, double* %12
%72 = load double, double* %18
%73 = fmul double %71, %72
%74 = load i32, i32* %6
%75 = sitofp i32 %74 to double
%76 = fdiv double %73, %75
%77 = call float @cos(double %76)
%78 = fmul float %70, %77
%79 = fpext float %78 to double
store double %79, double* %15
%80 = load double, double* %12
%81 = load double, double* %18
%82 = fmul double %80, %81
%83 = load i32, i32* %6
%84 = sitofp i32 %83 to double
%85 = fdiv double %82, %84
%86 = call float @sin(double %85)
%87 = fpext float %86 to double
store double %87, double* %16
%88 = load double, double* %14
%89 = load double, double* %15
%90 = load double, double* %16
%91 = call i32 @glNormal3f(double %88, double %89, double %90)
%92 = load float, float* %7
%93 = load float, float* %5
%94 = load double, double* %12
%95 = load double, double* %18
%96 = fmul double %94, %95
%97 = load i32, i32* %6
%98 = sitofp i32 %97 to double
%99 = fdiv double %96, %98
%100 = call float @cos(double %99)
%101 = call float @llvm.fmuladd.f32(float %93, float %100, float %92)
%102 = load double, double* %13
%103 = load double, double* %18
%104 = fmul double %102, %103
%105 = load i32, i32* %8
%106 = sitofp i32 %105 to double
%107 = fdiv double %104, %106
%108 = call float @cos(double %107)
%109 = fmul float %101, %108
%110 = fpext float %109 to double
store double %110, double* %14
%111 = load float, float* %7
%112 = load float, float* %5
%113 = load double, double* %12
%114 = load double, double* %18
%115 = fmul double %113, %114
%116 = load i32, i32* %6
%117 = sitofp i32 %116 to double
%118 = fdiv double %115, %117
%119 = call float @cos(double %118)
%120 = call float @llvm.fmuladd.f32(float %112, float %119, float %111)
%121 = load double, double* %13
%122 = load double, double* %18
%123 = fmul double %121, %122
%124 = load i32, i32* %8
%125 = sitofp i32 %124 to double
%126 = fdiv double %123, %125
%127 = call float @sin(double %126)
%128 = fmul float %120, %127
%129 = fpext float %128 to double
store double %129, double* %15
%130 = load float, float* %5
%131 = load double, double* %12
%132 = load double, double* %18
%133 = fmul double %131, %132
%134 = load i32, i32* %6
%135 = sitofp i32 %134 to double
%136 = fdiv double %133, %135
%137 = call float @sin(double %136)
%138 = fmul float %130, %137
%139 = fpext float %138 to double
store double %139, double* %16
%140 = load double, double* %14
%141 = load double, double* %15
%142 = load double, double* %16
%143 = call i32 @glVertex3f(double %140, double %141, double %142)
br label %144
144: ; preds = %36
%145 = load i32, i32* %11
%146 = add nsw i32 %145, -1
store i32 %146, i32* %11
br label %33
147: ; preds = %33
br label %148
148: ; preds = %147
%149 = load i32, i32* %10
%150 = add nsw i32 %149, 1
store i32 %150, i32* %10
br label %28
151: ; preds = %28
%152 = call i32 (...) @glEnd()
br label %153
153: ; preds = %151
%154 = load i32, i32* %9
%155 = add nsw i32 %154, 1
store i32 %155, i32* %9
br label %21
156: ; preds = %21
ret void
}

LLVM IR (-O2):
@GL_QUAD_STRIP = global i32 0
define void @FillTorus(float %0, i32 %1, float %2, i32 %3) {
%5 = icmp sgt i32 %1, 0
br i1 %5, label %6, label %88
6: ; preds = %4
%7 = icmp slt i32 %3, 0
%8 = sitofp i32 %3 to double
%9 = sitofp i32 %1 to double
br label %10
10: ; preds = %6, %85
%11 = phi i32 [ 0, %6 ], [ %14, %85 ]
%12 = load i32, i32* @GL_QUAD_STRIP
%13 = tail call i32 @glBegin(i32 %12)
%14 = add nuw nsw i32 %11, 1
br i1 %7, label %85, label %15
15: ; preds = %10
%16 = icmp eq i32 %14, %1
%17 = select i1 %16, i32 0, i32 %14
%18 = sitofp i32 %17 to double
%19 = fadd double %18, 5.000000e-01
%20 = fmul double %19, 0x401921FB54524550
%21 = fdiv double %20, %9
%22 = sitofp i32 %11 to double
%23 = fadd double %22, 5.000000e-01
%24 = fmul double %23, 0x401921FB54524550
%25 = fdiv double %24, %9
br label %26
26: ; preds = %15, %26
%27 = phi i32 [ %83, %26 ], [ 0, %15 ]
%28 = icmp eq i32 %27, %3
%29 = select i1 %28, i32 0, i32 %27
%30 = sitofp i32 %29 to double
%31 = fmul double %30, 0x401921FB54524550
%32 = fdiv double %31, %8
%33 = tail call float @cos(double %32)
%34 = tail call float @cos(double %21)
%35 = fmul float %33, %34
%36 = fpext float %35 to double
%37 = tail call float @sin(double %32)
%38 = tail call float @cos(double %21)
%39 = fmul float %37, %38
%40 = fpext float %39 to double
%41 = tail call float @sin(double %21)
%42 = fpext float %41 to double
%43 = tail call i32 @glNormal3f(double %36, double %40, double %42)
%44 = tail call float @cos(double %21)
%45 = tail call float @llvm.fmuladd.f32(float %0, float %44, float %2)
%46 = tail call float @cos(double %32)
%47 = fmul float %45, %46
%48 = fpext float %47 to double
%49 = tail call float @cos(double %21)
%50 = tail call float @llvm.fmuladd.f32(float %0, float %49, float %2)
%51 = tail call float @sin(double %32)
%52 = fmul float %50, %51
%53 = fpext float %52 to double
%54 = tail call float @sin(double %21)
%55 = fmul float %54, %0
%56 = fpext float %55 to double
%57 = tail call i32 @glVertex3f(double %48, double %53, double %56)
%58 = tail call float @cos(double %32)
%59 = tail call float @cos(double %25)
%60 = fmul float %58, %59
%61 = fpext float %60 to double
%62 = tail call float @sin(double %32)
%63 = tail call float @cos(double %25)
%64 = fmul float %62, %63
%65 = fpext float %64 to double
%66 = tail call float @sin(double %25)
%67 = fpext float %66 to double
%68 = tail call i32 @glNormal3f(double %61, double %65, double %67)
%69 = tail call float @cos(double %25)
%70 = tail call float @llvm.fmuladd.f32(float %0, float %69, float %2)
%71 = tail call float @cos(double %32)
%72 = fmul float %70, %71
%73 = fpext float %72 to double
%74 = tail call float @cos(double %25)
%75 = tail call float @llvm.fmuladd.f32(float %0, float %74, float %2)
%76 = tail call float @sin(double %32)
%77 = fmul float %75, %76
%78 = fpext float %77 to double
%79 = tail call float @sin(double %25)
%80 = fmul float %79, %0
%81 = fpext float %80 to double
%82 = tail call i32 @glVertex3f(double %73, double %78, double %81)
%83 = add nuw i32 %27, 1
%84 = icmp eq i32 %27, %3
br i1 %84, label %85, label %26
85: ; preds = %26, %10
%86 = tail call i32 (...) @glEnd()
%87 = icmp eq i32 %14, %1
br i1 %87, label %88, label %10
88: ; preds = %85, %4
ret void
}