; LLVM IR from unitreerobotics/kinect_teleoperate :: src/extern/glfw/src/examples (boing)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.vertex_t = type { float, float, float }

@glad_glBegin = external dso_local global ptr, align 8
@glad_glColor3f = external dso_local global ptr, align 8
@glad_glEnd = external dso_local global ptr, align 8
@glad_glNormal3f = external dso_local global ptr, align 8
@glad_glVertex3f = external dso_local global ptr, align 8
@drawBallHow = external dso_local global i32, align 4
@DrawBoingBallBand.colorToggle = external hidden global i32, align 4

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local double @sin_deg(double noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local double @cos_deg(double noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @CrossProduct(<2 x float>, float, <2 x float>, float, <2 x float>, float, ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: nounwind uwtable
define dso_local void @DrawBoingBallBand(float noundef %0, float noundef %1) #2 {
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca %struct.vertex_t, align 4
  %6 = alloca %struct.vertex_t, align 4
  %7 = alloca %struct.vertex_t, align 4
  %8 = alloca %struct.vertex_t, align 4
  %9 = alloca %struct.vertex_t, align 4
  %10 = alloca float, align 4
  %11 = alloca { <2 x float>, float }, align 4
  %12 = alloca { <2 x float>, float }, align 4
  %13 = alloca { <2 x float>, float }, align 4
  store float %0, ptr %3, align 4, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store float 0.000000e+00, ptr %10, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %193, %2
  %15 = load float, ptr %10, align 4, !tbaa !5
  %16 = fcmp ole float %15, 3.375000e+02
  br i1 %16, label %17, label %196

17:                                               ; preds = %14
  %18 = load i32, ptr @DrawBoingBallBand.colorToggle, align 4, !tbaa !9
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %22

20:                                               ; preds = %17
  %21 = load ptr, ptr @glad_glColor3f, align 8, !tbaa !11
  call void %21(float noundef 0x3FE99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000)
  br label %24

22:                                               ; preds = %17
  %23 = load ptr, ptr @glad_glColor3f, align 8, !tbaa !11
  call void %23(float noundef 0x3FEE666660000000, float noundef 0x3FEE666660000000, float noundef 0x3FEE666660000000)
  br label %24

24:                                               ; preds = %22, %20
  %25 = load i32, ptr @DrawBoingBallBand.colorToggle, align 4, !tbaa !9
  %26 = icmp ne i32 %25, 0
  %27 = xor i1 %26, true
  %28 = zext i1 %27 to i32
  store i32 %28, ptr @DrawBoingBallBand.colorToggle, align 4, !tbaa !9
  %29 = load i32, ptr @drawBallHow, align 4, !tbaa !9
  %30 = icmp eq i32 %29, 1
  br i1 %30, label %31, label %33

31:                                               ; preds = %24
  %32 = load ptr, ptr @glad_glColor3f, align 8, !tbaa !11
  call void %32(float noundef 0x3FD6666660000000, float noundef 0x3FD6666660000000, float noundef 0x3FD6666660000000)
  br label %33

33:                                               ; preds = %31, %24
  %34 = load float, ptr %4, align 4, !tbaa !5
  %35 = fpext float %34 to double
  %36 = call double @cos_deg(double noundef %35)
  %37 = fptrunc double %36 to float
  %38 = fmul float %37, 7.000000e+01
  %39 = getelementptr inbounds %struct.vertex_t, ptr %6, i32 0, i32 1
  store float %38, ptr %39, align 4, !tbaa !13
  %40 = getelementptr inbounds %struct.vertex_t, ptr %5, i32 0, i32 1
  store float %38, ptr %40, align 4, !tbaa !13
  %41 = load float, ptr %3, align 4, !tbaa !5
  %42 = fpext float %41 to double
  %43 = call double @cos_deg(double noundef %42)
  %44 = fptrunc double %43 to float
  %45 = fmul float %44, 7.000000e+01
  %46 = getelementptr inbounds %struct.vertex_t, ptr %8, i32 0, i32 1
  store float %45, ptr %46, align 4, !tbaa !13
  %47 = getelementptr inbounds %struct.vertex_t, ptr %7, i32 0, i32 1
  store float %45, ptr %47, align 4, !tbaa !13
  %48 = load float, ptr %10, align 4, !tbaa !5
  %49 = fpext float %48 to double
  %50 = call double @cos_deg(double noundef %49)
  %51 = fptrunc double %50 to float
  %52 = load float, ptr %3, align 4, !tbaa !5
  %53 = fadd float %52, 2.250000e+01
  %54 = fpext float %53 to double
  %55 = call double @sin_deg(double noundef %54)
  %56 = fptrunc double %55 to float
  %57 = fmul float 7.000000e+01, %56
  %58 = fmul float %51, %57
  %59 = getelementptr inbounds %struct.vertex_t, ptr %5, i32 0, i32 0
  store float %58, ptr %59, align 4, !tbaa !15
  %60 = load float, ptr %10, align 4, !tbaa !5
  %61 = fpext float %60 to double
  %62 = call double @cos_deg(double noundef %61)
  %63 = fptrunc double %62 to float
  %64 = load float, ptr %3, align 4, !tbaa !5
  %65 = fpext float %64 to double
  %66 = call double @sin_deg(double noundef %65)
  %67 = fptrunc double %66 to float
  %68 = fmul float 7.000000e+01, %67
  %69 = fmul float %63, %68
  %70 = getelementptr inbounds %struct.vertex_t, ptr %8, i32 0, i32 0
  store float %69, ptr %70, align 4, !tbaa !15
  %71 = load float, ptr %10, align 4, !tbaa !5
  %72 = fadd float %71, 2.250000e+01
  %73 = fpext float %72 to double
  %74 = call double @cos_deg(double noundef %73)
  %75 = fptrunc double %74 to float
  %76 = load float, ptr %3, align 4, !tbaa !5
  %77 = fadd float %76, 2.250000e+01
  %78 = fpext float %77 to double
  %79 = call double @sin_deg(double noundef %78)
  %80 = fptrunc double %79 to float
  %81 = fmul float 7.000000e+01, %80
  %82 = fmul float %75, %81
  %83 = getelementptr inbounds %struct.vertex_t, ptr %6, i32 0, i32 0
  store float %82, ptr %83, align 4, !tbaa !15
  %84 = load float, ptr %10, align 4, !tbaa !5
  %85 = fadd float %84, 2.250000e+01
  %86 = fpext float %85 to double
  %87 = call double @cos_deg(double noundef %86)
  %88 = fptrunc double %87 to float
  %89 = load float, ptr %3, align 4, !tbaa !5
  %90 = fpext float %89 to double
  %91 = call double @sin_deg(double noundef %90)
  %92 = fptrunc double %91 to float
  %93 = fmul float 7.000000e+01, %92
  %94 = fmul float %88, %93
  %95 = getelementptr inbounds %struct.vertex_t, ptr %7, i32 0, i32 0
  store float %94, ptr %95, align 4, !tbaa !15
  %96 = load float, ptr %10, align 4, !tbaa !5
  %97 = fpext float %96 to double
  %98 = call double @sin_deg(double noundef %97)
  %99 = fptrunc double %98 to float
  %100 = load float, ptr %3, align 4, !tbaa !5
  %101 = fadd float %100, 2.250000e+01
  %102 = fpext float %101 to double
  %103 = call double @sin_deg(double noundef %102)
  %104 = fptrunc double %103 to float
  %105 = fmul float 7.000000e+01, %104
  %106 = fmul float %99, %105
  %107 = getelementptr inbounds %struct.vertex_t, ptr %5, i32 0, i32 2
  store float %106, ptr %107, align 4, !tbaa !16
  %108 = load float, ptr %10, align 4, !tbaa !5
  %109 = fpext float %108 to double
  %110 = call double @sin_deg(double noundef %109)
  %111 = fptrunc double %110 to float
  %112 = load float, ptr %3, align 4, !tbaa !5
  %113 = fpext float %112 to double
  %114 = call double @sin_deg(double noundef %113)
  %115 = fptrunc double %114 to float
  %116 = fmul float 7.000000e+01, %115
  %117 = fmul float %111, %116
  %118 = getelementptr inbounds %struct.vertex_t, ptr %8, i32 0, i32 2
  store float %117, ptr %118, align 4, !tbaa !16
  %119 = load float, ptr %10, align 4, !tbaa !5
  %120 = fadd float %119, 2.250000e+01
  %121 = fpext float %120 to double
  %122 = call double @sin_deg(double noundef %121)
  %123 = fptrunc double %122 to float
  %124 = load float, ptr %3, align 4, !tbaa !5
  %125 = fadd float %124, 2.250000e+01
  %126 = fpext float %125 to double
  %127 = call double @sin_deg(double noundef %126)
  %128 = fptrunc double %127 to float
  %129 = fmul float 7.000000e+01, %128
  %130 = fmul float %123, %129
  %131 = getelementptr inbounds %struct.vertex_t, ptr %6, i32 0, i32 2
  store float %130, ptr %131, align 4, !tbaa !16
  %132 = load float, ptr %10, align 4, !tbaa !5
  %133 = fadd float %132, 2.250000e+01
  %134 = fpext float %133 to double
  %135 = call double @sin_deg(double noundef %134)
  %136 = fptrunc double %135 to float
  %137 = load float, ptr %3, align 4, !tbaa !5
  %138 = fpext float %137 to double
  %139 = call double @sin_deg(double noundef %138)
  %140 = fptrunc double %139 to float
  %141 = fmul float 7.000000e+01, %140
  %142 = fmul float %136, %141
  %143 = getelementptr inbounds %struct.vertex_t, ptr %7, i32 0, i32 2
  store float %142, ptr %143, align 4, !tbaa !16
  %144 = load ptr, ptr @glad_glBegin, align 8, !tbaa !11
  call void %144(i32 noundef 9)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %5, i64 12, i1 false)
  %145 = getelementptr inbounds { <2 x float>, float }, ptr %11, i32 0, i32 0
  %146 = load <2 x float>, ptr %145, align 4
  %147 = getelementptr inbounds { <2 x float>, float }, ptr %11, i32 0, i32 1
  %148 = load float, ptr %147, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %6, i64 12, i1 false)
  %149 = getelementptr inbounds { <2 x float>, float }, ptr %12, i32 0, i32 0
  %150 = load <2 x float>, ptr %149, align 4
  %151 = getelementptr inbounds { <2 x float>, float }, ptr %12, i32 0, i32 1
  %152 = load float, ptr %151, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %7, i64 12, i1 false)
  %153 = getelementptr inbounds { <2 x float>, float }, ptr %13, i32 0, i32 0
  %154 = load <2 x float>, ptr %153, align 4
  %155 = getelementptr inbounds { <2 x float>, float }, ptr %13, i32 0, i32 1
  %156 = load float, ptr %155, align 4
  call void @CrossProduct(<2 x float> %146, float %148, <2 x float> %150, float %152, <2 x float> %154, float %156, ptr noundef %9)
  %157 = load ptr, ptr @glad_glNormal3f, align 8, !tbaa !11
  %158 = getelementptr inbounds %struct.vertex_t, ptr %9, i32 0, i32 0
  %159 = load float, ptr %158, align 4, !tbaa !15
  %160 = getelementptr inbounds %struct.vertex_t, ptr %9, i32 0, i32 1
  %161 = load float, ptr %160, align 4, !tbaa !13
  %162 = getelementptr inbounds %struct.vertex_t, ptr %9, i32 0, i32 2
  %163 = load float, ptr %162, align 4, !tbaa !16
  call void %157(float noundef %159, float noundef %161, float noundef %163)
  %164 = load ptr, ptr @glad_glVertex3f, align 8, !tbaa !11
  %165 = getelementptr inbounds %struct.vertex_t, ptr %5, i32 0, i32 0
  %166 = load float, ptr %165, align 4, !tbaa !15
  %167 = getelementptr inbounds %struct.vertex_t, ptr %5, i32 0, i32 1
  %168 = load float, ptr %167, align 4, !tbaa !13
  %169 = getelementptr inbounds %struct.vertex_t, ptr %5, i32 0, i32 2
  %170 = load float, ptr %169, align 4, !tbaa !16
  call void %164(float noundef %166, float noundef %168, float noundef %170)
  %171 = load ptr, ptr @glad_glVertex3f, align 8, !tbaa !11
  %172 = getelementptr inbounds %struct.vertex_t, ptr %6, i32 0, i32 0
  %173 = load float, ptr %172, align 4, !tbaa !15
  %174 = getelementptr inbounds %struct.vertex_t, ptr %6, i32 0, i32 1
  %175 = load float, ptr %174, align 4, !tbaa !13
  %176 = getelementptr inbounds %struct.vertex_t, ptr %6, i32 0, i32 2
  %177 = load float, ptr %176, align 4, !tbaa !16
  call void %171(float noundef %173, float noundef %175, float noundef %177)
  %178 = load ptr, ptr @glad_glVertex3f, align 8, !tbaa !11
  %179 = getelementptr inbounds %struct.vertex_t, ptr %7, i32 0, i32 0
  %180 = load float, ptr %179, align 4, !tbaa !15
  %181 = getelementptr inbounds %struct.vertex_t, ptr %7, i32 0, i32 1
  %182 = load float, ptr %181, align 4, !tbaa !13
  %183 = getelementptr inbounds %struct.vertex_t, ptr %7, i32 0, i32 2
  %184 = load float, ptr %183, align 4, !tbaa !16
  call void %178(float noundef %180, float noundef %182, float noundef %184)
  %185 = load ptr, ptr @glad_glVertex3f, align 8, !tbaa !11
  %186 = getelementptr inbounds %struct.vertex_t, ptr %8, i32 0, i32 0
  %187 = load float, ptr %186, align 4, !tbaa !15
  %188 = getelementptr inbounds %struct.vertex_t, ptr %8, i32 0, i32 1
  %189 = load float, ptr %188, align 4, !tbaa !13
  %190 = getelementptr inbounds %struct.vertex_t, ptr %8, i32 0, i32 2
  %191 = load float, ptr %190, align 4, !tbaa !16
  call void %185(float noundef %187, float noundef %189, float noundef %191)
  %192 = load ptr, ptr @glad_glEnd, align 8, !tbaa !11
  call void %192()
  br label %193

193:                                              ; preds = %33
  %194 = load float, ptr %10, align 4, !tbaa !5
  %195 = fadd float %194, 2.250000e+01
  store float %195, ptr %10, align 4, !tbaa !5
  br label %14, !llvm.loop !17

196:                                              ; preds = %14
  %197 = load i32, ptr @DrawBoingBallBand.colorToggle, align 4, !tbaa !9
  %198 = icmp ne i32 %197, 0
  %199 = xor i1 %198, true
  %200 = zext i1 %199 to i32
  store i32 %200, ptr @DrawBoingBallBand.colorToggle, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 4}
!14 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8}
!15 = !{!14, !6, i64 0}
!16 = !{!14, !6, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.vertex_t = type { float, float, float }

@glad_glBegin = external dso_local local_unnamed_addr global ptr, align 8
@glad_glColor3f = external dso_local local_unnamed_addr global ptr, align 8
@glad_glEnd = external dso_local local_unnamed_addr global ptr, align 8
@glad_glNormal3f = external dso_local local_unnamed_addr global ptr, align 8
@glad_glVertex3f = external dso_local local_unnamed_addr global ptr, align 8
@drawBallHow = external dso_local local_unnamed_addr global i32, align 4
@DrawBoingBallBand.colorToggle = external hidden local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local double @sin_deg(double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local double @cos_deg(double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @CrossProduct(<2 x float>, float, <2 x float>, float, <2 x float>, float, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @DrawBoingBallBand(float noundef %0, float noundef %1) local_unnamed_addr #2 {
  %3 = alloca %struct.vertex_t, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #3
  %4 = fpext float %1 to double
  %5 = fpext float %0 to double
  %6 = fadd float %0, 2.250000e+01
  %7 = fpext float %6 to double
  %8 = getelementptr inbounds i8, ptr %3, i64 4
  %9 = getelementptr inbounds i8, ptr %3, i64 8
  br label %10

10:                                               ; preds = %2, %22
  %.041 = phi float [ 0.000000e+00, %2 ], [ %41, %22 ]
  %11 = load i32, ptr @DrawBoingBallBand.colorToggle, align 4, !tbaa !5
  %.not39 = icmp eq i32 %11, 0
  %12 = load ptr, ptr @glad_glColor3f, align 8, !tbaa !9
  br i1 %.not39, label %14, label %13

13:                                               ; preds = %10
  call void %12(float noundef 0x3FE99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0x3FB99999A0000000) #3
  br label %15

14:                                               ; preds = %10
  call void %12(float noundef 0x3FEE666660000000, float noundef 0x3FEE666660000000, float noundef 0x3FEE666660000000) #3
  br label %15

15:                                               ; preds = %14, %13
  %16 = load i32, ptr @DrawBoingBallBand.colorToggle, align 4, !tbaa !5
  %.not40 = icmp eq i32 %16, 0
  %17 = zext i1 %.not40 to i32
  store i32 %17, ptr @DrawBoingBallBand.colorToggle, align 4, !tbaa !5
  %18 = load i32, ptr @drawBallHow, align 4, !tbaa !5
  %19 = icmp eq i32 %18, 1
  br i1 %19, label %20, label %22

20:                                               ; preds = %15
  %21 = load ptr, ptr @glad_glColor3f, align 8, !tbaa !9
  call void %21(float noundef 0x3FD6666660000000, float noundef 0x3FD6666660000000, float noundef 0x3FD6666660000000) #3
  br label %22

22:                                               ; preds = %20, %15
  %23 = call double @cos_deg(double noundef %4)
  %24 = fptrunc double %23 to float
  %25 = fmul float %24, 7.000000e+01
  %26 = call double @cos_deg(double noundef %5)
  %27 = fpext float %.041 to double
  %28 = call double @cos_deg(double noundef %27)
  %29 = fptrunc double %28 to float
  %30 = call double @sin_deg(double noundef %7)
  %31 = fptrunc double %30 to float
  %32 = fmul float %31, 7.000000e+01
  %33 = fmul float %32, %29
  %34 = insertelement <2 x float> poison, float %33, i64 0
  %.sroa.024.0.vec.insert = insertelement <2 x float> %34, float %25, i64 1
  %35 = call double @cos_deg(double noundef %27)
  %36 = fptrunc double %35 to float
  %37 = call double @sin_deg(double noundef %5)
  %38 = fptrunc double %37 to float
  %39 = fmul float %38, 7.000000e+01
  %40 = fmul float %39, %36
  %41 = fadd float %.041, 2.250000e+01
  %42 = fpext float %41 to double
  %43 = call double @cos_deg(double noundef %42)
  %44 = fptrunc double %43 to float
  %45 = call double @sin_deg(double noundef %7)
  %46 = fptrunc double %45 to float
  %47 = fmul float %46, 7.000000e+01
  %48 = fmul float %47, %44
  %49 = insertelement <2 x float> poison, float %48, i64 0
  %.sroa.019.0.vec.insert = insertelement <2 x float> %49, float %25, i64 1
  %50 = call double @cos_deg(double noundef %42)
  %51 = call double @sin_deg(double noundef %5)
  %52 = fptrunc double %51 to float
  %53 = fmul float %52, 7.000000e+01
  %54 = insertelement <2 x double> poison, double %50, i64 0
  %55 = insertelement <2 x double> %54, double %26, i64 1
  %56 = fptrunc <2 x double> %55 to <2 x float>
  %57 = insertelement <2 x float> <float poison, float 7.000000e+01>, float %53, i64 0
  %58 = fmul <2 x float> %57, %56
  %59 = call double @sin_deg(double noundef %27)
  %60 = fptrunc double %59 to float
  %61 = call double @sin_deg(double noundef %7)
  %62 = fptrunc double %61 to float
  %63 = fmul float %62, 7.000000e+01
  %64 = fmul float %63, %60
  %65 = call double @sin_deg(double noundef %27)
  %66 = fptrunc double %65 to float
  %67 = call double @sin_deg(double noundef %5)
  %68 = fptrunc double %67 to float
  %69 = fmul float %68, 7.000000e+01
  %70 = fmul float %69, %66
  %71 = call double @sin_deg(double noundef %42)
  %72 = fptrunc double %71 to float
  %73 = call double @sin_deg(double noundef %7)
  %74 = fptrunc double %73 to float
  %75 = fmul float %74, 7.000000e+01
  %76 = fmul float %75, %72
  %77 = call double @sin_deg(double noundef %42)
  %78 = fptrunc double %77 to float
  %79 = call double @sin_deg(double noundef %5)
  %80 = fptrunc double %79 to float
  %81 = fmul float %80, 7.000000e+01
  %82 = fmul float %81, %78
  %83 = load ptr, ptr @glad_glBegin, align 8, !tbaa !9
  call void %83(i32 noundef 9) #3
  call void @CrossProduct(<2 x float> %.sroa.024.0.vec.insert, float %64, <2 x float> %.sroa.019.0.vec.insert, float %76, <2 x float> %58, float %82, ptr noundef nonnull %3)
  %84 = load ptr, ptr @glad_glNormal3f, align 8, !tbaa !9
  %85 = load float, ptr %3, align 4, !tbaa !11
  %86 = load float, ptr %8, align 4, !tbaa !14
  %87 = load float, ptr %9, align 4, !tbaa !15
  call void %84(float noundef %85, float noundef %86, float noundef %87) #3
  %88 = load ptr, ptr @glad_glVertex3f, align 8, !tbaa !9
  call void %88(float noundef %33, float noundef %25, float noundef %64) #3
  %89 = load ptr, ptr @glad_glVertex3f, align 8, !tbaa !9
  call void %89(float noundef %48, float noundef %25, float noundef %76) #3
  %90 = load ptr, ptr @glad_glVertex3f, align 8, !tbaa !9
  %91 = extractelement <2 x float> %58, i64 0
  %92 = extractelement <2 x float> %58, i64 1
  call void %90(float noundef %91, float noundef %92, float noundef %82) #3
  %93 = load ptr, ptr @glad_glVertex3f, align 8, !tbaa !9
  call void %93(float noundef %40, float noundef %92, float noundef %70) #3
  %94 = load ptr, ptr @glad_glEnd, align 8, !tbaa !9
  call void %94() #3
  %95 = fcmp ugt float %41, 3.375000e+02
  br i1 %95, label %96, label %10, !llvm.loop !16

96:                                               ; preds = %22
  %97 = load i32, ptr @DrawBoingBallBand.colorToggle, align 4, !tbaa !5
  %.not = icmp eq i32 %97, 0
  %98 = zext i1 %.not to i32
  store i32 %98, ptr @DrawBoingBallBand.colorToggle, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #3
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{!12, !13, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass