; LLVM IR from unitreerobotics/kinect_teleoperate :: src/sample_helper_libs/window_controller_3d (Cylinder)

; 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.Visualization::MonoVertex" = type { [3 x float], [3 x float] }
%"class.Visualization::Cylinder" = type <{ %"class.Visualization::RendererBase.base", float, float, i32, %"class.std::vector", %"class.std::vector.0", i32, i32, i32, i32, i32, i32, i32, [4 x i8] }>
%"class.Visualization::RendererBase.base" = type <{ ptr, i8, [3 x i8], [4 x [4 x float]], [4 x [4 x float]], [4 x i8], ptr, i32, i32, i32 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Visualization::MonoVertex, std::allocator<Visualization::MonoVertex>>::_Vector_impl" }
%"struct.std::_Vector_base<Visualization::MonoVertex, std::allocator<Visualization::MonoVertex>>::_Vector_impl" = type { %"struct.std::_Vector_base<Visualization::MonoVertex, std::allocator<Visualization::MonoVertex>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Visualization::MonoVertex, std::allocator<Visualization::MonoVertex>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13Visualization8Cylinder13BuildVerticesEv(ptr noundef nonnull align 8 dereferenceable(252) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.Visualization::MonoVertex", align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %19 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store float 0x400921FB40000000, ptr %3, align 4, !tbaa !9
  %20 = getelementptr inbounds %"class.Visualization::Cylinder", ptr %19, i32 0, i32 4
  call void @_ZNSt6vectorIN13Visualization10MonoVertexESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  %21 = getelementptr inbounds %"class.Visualization::Cylinder", ptr %19, i32 0, i32 5
  call void @_ZNSt6vectorIjSaIjEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %22 = getelementptr inbounds %"class.Visualization::Cylinder", ptr %19, i32 0, i32 1
  %23 = load float, ptr %22, align 4, !tbaa !11
  %24 = fdiv float 1.000000e+00, %23
  store float %24, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %25 = getelementptr inbounds %"class.Visualization::Cylinder", ptr %19, i32 0, i32 3
  %26 = load i32, ptr %25, align 4, !tbaa !24
  %27 = sitofp i32 %26 to float
  %28 = fdiv float 0x401921FB40000000, %27
  store float %28, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store float 0.000000e+00, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store float 0.000000e+00, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store float 0.000000e+00, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store float 0.000000e+00, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store float 0.000000e+00, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store float 0.000000e+00, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !25
  br label %29

29:                                               ; preds = %90, %1
  %30 = load i32, ptr %12, align 4, !tbaa !25
  %31 = icmp slt i32 %30, 2
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %93

33:                                               ; preds = %29
  %34 = load i32, ptr %12, align 4, !tbaa !25
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %40

36:                                               ; preds = %33
  %37 = getelementptr inbounds %"class.Visualization::Cylinder", ptr %19, i32 0, i32 2
  %38 = load float, ptr %37, align 8, !tbaa !26
  %39 = fdiv float %38, 2.000000e+00
  br label %45

40:                                               ; preds = %33
  %41 = getelementptr inbounds %"class.Visualization::Cylinder", ptr %19, i32 0, i32 2
  %42 = load float, ptr %41, align 8, !tbaa !26
  %43 = fneg float %42
  %44 = fdiv float %43, 2.000000e+00
  br label %45

45:                                               ; preds = %40, %36
  %46 = phi float [ %39, %36 ], [ %44, %40 ]
  store float %46, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !25
  br label %47

47:                                               ; preds = %86, %45
  %48 = load i32, ptr %14, align 4, !tbaa !25
  %49 = getelementptr inbounds %"class.Visualization::Cylinder", ptr %19, i32 0, i32 3
  %50 = load i32, ptr %49, align 4, !tbaa !24
  %51 = icmp sle i32 %48, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %47
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %89

53:                                               ; preds = %47
  %54 = load i32, ptr %14, align 4, !tbaa !25
  %55 = sitofp i32 %54 to float
  %56 = load float, ptr %5, align 4, !tbaa !9
  %57 = fmul float %55, %56
  store float %57, ptr %6, align 4, !tbaa !9
  %58 = getelementptr inbounds %"class.Visualization::Cylinder", ptr %19, i32 0, i32 1
  %59 = load float, ptr %58, align 4, !tbaa !11
  %60 = load float, ptr %6, align 4, !tbaa !9
  %61 = call noundef float @_ZSt3cosf(float noundef %60)
  %62 = fmul float %59, %61
  store float %62, ptr %7, align 4, !tbaa !9
  %63 = getelementptr inbounds %"class.Visualization::Cylinder", ptr %19, i32 0, i32 1
  %64 = load float, ptr %63, align 4, !tbaa !11
  %65 = load float, ptr %6, align 4, !tbaa !9
  %66 = call noundef float @_ZSt3sinf(float noundef %65)
  %67 = fmul float %64, %66
  store float %67, ptr %8, align 4, !tbaa !9
  %68 = load float, ptr %7, align 4, !tbaa !9
  %69 = load float, ptr %4, align 4, !tbaa !9
  %70 = fmul float %68, %69
  store float %70, ptr %10, align 4, !tbaa !9
  %71 = load float, ptr %8, align 4, !tbaa !9
  %72 = load float, ptr %4, align 4, !tbaa !9
  %73 = fmul float %71, %72
  store float %73, ptr %11, align 4, !tbaa !9
  %74 = getelementptr inbounds %"class.Visualization::Cylinder", ptr %19, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #4
  %75 = getelementptr inbounds %"struct.Visualization::MonoVertex", ptr %15, i32 0, i32 0
  %76 = load float, ptr %7, align 4, !tbaa !9
  store float %76, ptr %75, align 4, !tbaa !9
  %77 = getelementptr inbounds float, ptr %75, i64 1
  %78 = load float, ptr %8, align 4, !tbaa !9
  store float %78, ptr %77, align 4, !tbaa !9
  %79 = getelementptr inbounds float, ptr %75, i64 2
  %80 = load float, ptr %9, align 4, !tbaa !9
  store float %80, ptr %79, align 4, !tbaa !9
  %81 = getelementptr inbounds %"struct.Visualization::MonoVertex", ptr %15, i32 0, i32 1
  %82 = load float, ptr %10, align 4, !tbaa !9
  store float %82, ptr %81, align 4, !tbaa !9
  %83 = getelementptr inbounds float, ptr %81, i64 1
  %84 = load float, ptr %11, align 4, !tbaa !9
  store float %84, ptr %83, align 4, !tbaa !9
  %85 = getelementptr inbounds float, ptr %81, i64 2
  store float 0.000000e+00, ptr %85, align 4, !tbaa !9
  call void @_ZNSt6vectorIN13Visualization10MonoVertexESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull align 4 dereferenceable(24) %15)
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  br label %86

86:                                               ; preds = %53
  %87 = load i32, ptr %14, align 4, !tbaa !25
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %14, align 4, !tbaa !25
  br label %47, !llvm.loop !27

89:                                               ; preds = %52
  br label %90

90:                                               ; preds = %89
  %91 = load i32, ptr %12, align 4, !tbaa !25
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %12, align 4, !tbaa !25
  br label %29, !llvm.loop !29

93:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %94 = load i32, ptr %16, align 4, !tbaa !25
  %95 = getelementptr inbounds %"class.Visualization::Cylinder", ptr %19, i32 0, i32 3
  %96 = load i32, ptr %95, align 4, !tbaa !24
  %97 = add i32 %94, %96
  %98 = add i32 %97, 1
  store i32 %98, ptr %17, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !25
  br label %99

99:                                               ; preds = %115, %93
  %100 = load i32, ptr %18, align 4, !tbaa !25
  %101 = getelementptr inbounds %"class.Visualization::Cylinder", ptr %19, i32 0, i32 3
  %102 = load i32, ptr %101, align 4, !tbaa !24
  %103 = icmp slt i32 %100, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %99
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %122

105:                                              ; preds = %99
  %106 = load i32, ptr %16, align 4, !tbaa !25
  %107 = load i32, ptr %17, align 4, !tbaa !25
  %108 = load i32, ptr %16, align 4, !tbaa !25
  %109 = add i32 %108, 1
  call void @_ZN13Visualization8Cylinder10AddIndicesEjjj(ptr noundef nonnull align 8 dereferenceable(252) %19, i32 noundef %106, i32 noundef %107, i32 noundef %109)
  %110 = load i32, ptr %16, align 4, !tbaa !25
  %111 = add i32 %110, 1
  %112 = load i32, ptr %17, align 4, !tbaa !25
  %113 = load i32, ptr %17, align 4, !tbaa !25
  %114 = add i32 %113, 1
  call void @_ZN13Visualization8Cylinder10AddIndicesEjjj(ptr noundef nonnull align 8 dereferenceable(252) %19, i32 noundef %111, i32 noundef %112, i32 noundef %114)
  br label %115

115:                                              ; preds = %105
  %116 = load i32, ptr %18, align 4, !tbaa !25
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %18, align 4, !tbaa !25
  %118 = load i32, ptr %16, align 4, !tbaa !25
  %119 = add i32 %118, 1
  store i32 %119, ptr %16, align 4, !tbaa !25
  %120 = load i32, ptr %17, align 4, !tbaa !25
  %121 = add i32 %120, 1
  store i32 %121, ptr %17, align 4, !tbaa !25
  br label %99, !llvm.loop !30

122:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret void
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN13Visualization10MonoVertexESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN13Visualization10MonoVertexESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13Visualization8Cylinder10AddIndicesEjjj(ptr noundef nonnull align 8 dereferenceable(252), i32 noundef, i32 noundef, i32 noundef) #0 align 2

attributes #0 = { mustprogress 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 #3 = { inlinehint mustprogress 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 164}
!12 = !{!"_ZTSN13Visualization8CylinderE", !13, i64 0, !10, i64 164, !10, i64 168, !15, i64 172, !16, i64 176, !20, i64 200, !15, i64 224, !15, i64 228, !15, i64 232, !15, i64 236, !15, i64 240, !15, i64 244, !15, i64 248}
!13 = !{!"_ZTSN13Visualization12RendererBaseE", !14, i64 8, !7, i64 12, !7, i64 76, !6, i64 144, !15, i64 152, !15, i64 156, !15, i64 160}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIN13Visualization10MonoVertexESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN13Visualization10MonoVertexESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN13Visualization10MonoVertexESaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN13Visualization10MonoVertexESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt6vectorIjSaIjEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!12, !15, i64 172}
!25 = !{!15, !15, i64 0}
!26 = !{!12, !10, i64 168}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !28}


; 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.Visualization::MonoVertex" = type { [3 x float], [3 x float] }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13Visualization8Cylinder13BuildVerticesEv(ptr noundef nonnull align 8 dereferenceable(252) %0) local_unnamed_addr #0 align 2 {
  %2 = alloca %"struct.Visualization::MonoVertex", align 4
  %3 = getelementptr inbounds i8, ptr %0, i64 176
  tail call void @_ZNSt6vectorIN13Visualization10MonoVertexESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  %4 = getelementptr inbounds i8, ptr %0, i64 200
  tail call void @_ZNSt6vectorIjSaIjEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  %5 = getelementptr inbounds i8, ptr %0, i64 164
  %6 = getelementptr inbounds i8, ptr %0, i64 172
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = sitofp i32 %7 to float
  %9 = fdiv float 0x401921FB40000000, %8
  %10 = getelementptr inbounds i8, ptr %0, i64 168
  %11 = getelementptr inbounds i8, ptr %2, i64 4
  %12 = getelementptr inbounds i8, ptr %2, i64 8
  %13 = getelementptr inbounds i8, ptr %2, i64 12
  %14 = getelementptr inbounds i8, ptr %2, i64 20
  %15 = icmp slt i32 %7, 0
  br i1 %15, label %._crit_edge43, label %.lr.ph.preheader

.split37.us:                                      ; preds = %.lr.ph.1
  %16 = icmp sgt i32 %40, 0
  br i1 %16, label %.lr.ph42.preheader, label %._crit_edge43

.lr.ph42.preheader:                               ; preds = %.split37.us
  %17 = add nuw i32 %40, 1
  br label %.lr.ph42

.lr.ph.preheader:                                 ; preds = %1
  %18 = load float, ptr %5, align 4, !tbaa !22
  %19 = fdiv float 1.000000e+00, %18
  %20 = load float, ptr %10, align 8
  %21 = fmul float %20, 5.000000e-01
  %22 = insertelement <2 x float> poison, float %19, i64 0
  %23 = shufflevector <2 x float> %22, <2 x float> poison, <2 x i32> zeroinitializer
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph
  %.pre = load float, ptr %10, align 8
  %24 = fmul float %.pre, -5.000000e-01
  %.not33.1 = icmp slt i32 %56, 0
  br i1 %.not33.1, label %._crit_edge43, label %.lr.ph.1

.lr.ph.1:                                         ; preds = %._crit_edge, %.lr.ph.1
  %.03134.1 = phi i32 [ %39, %.lr.ph.1 ], [ 0, %._crit_edge ]
  %25 = uitofp nneg i32 %.03134.1 to float
  %26 = fmul float %9, %25
  %27 = load <4 x float>, ptr %5, align 4
  %28 = shufflevector <4 x float> %27, <4 x float> poison, <2 x i32> <i32 0, i32 poison>
  %29 = call noundef float @_ZSt3cosf(float noundef %26)
  %30 = load float, ptr %5, align 4, !tbaa !22
  %31 = call noundef float @_ZSt3sinf(float noundef %26)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #4
  store float %24, ptr %12, align 4, !tbaa !23
  %32 = insertelement <2 x float> %28, float %30, i64 1
  %33 = insertelement <2 x float> poison, float %29, i64 0
  %34 = insertelement <2 x float> %33, float %31, i64 1
  %35 = fmul <2 x float> %32, %34
  %36 = fmul <2 x float> %23, %35
  %37 = extractelement <2 x float> %35, i64 0
  store float %37, ptr %2, align 4, !tbaa !23
  %38 = extractelement <2 x float> %35, i64 1
  store float %38, ptr %11, align 4, !tbaa !23
  store <2 x float> %36, ptr %13, align 4, !tbaa !23
  store float 0.000000e+00, ptr %14, align 4, !tbaa !23
  call void @_ZNSt6vectorIN13Visualization10MonoVertexESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(24) %2)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  %39 = add nuw nsw i32 %.03134.1, 1
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %.not.not.1 = icmp slt i32 %.03134.1, %40
  br i1 %.not.not.1, label %.lr.ph.1, label %.split37.us, !llvm.loop !24

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.03134 = phi i32 [ %55, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %41 = uitofp nneg i32 %.03134 to float
  %42 = fmul float %9, %41
  %43 = load <4 x float>, ptr %5, align 4
  %44 = shufflevector <4 x float> %43, <4 x float> poison, <2 x i32> <i32 0, i32 poison>
  %45 = call noundef float @_ZSt3cosf(float noundef %42)
  %46 = load float, ptr %5, align 4, !tbaa !22
  %47 = call noundef float @_ZSt3sinf(float noundef %42)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #4
  store float %21, ptr %12, align 4, !tbaa !23
  %48 = insertelement <2 x float> %44, float %46, i64 1
  %49 = insertelement <2 x float> poison, float %45, i64 0
  %50 = insertelement <2 x float> %49, float %47, i64 1
  %51 = fmul <2 x float> %48, %50
  %52 = fmul <2 x float> %23, %51
  %53 = extractelement <2 x float> %51, i64 0
  store float %53, ptr %2, align 4, !tbaa !23
  %54 = extractelement <2 x float> %51, i64 1
  store float %54, ptr %11, align 4, !tbaa !23
  store <2 x float> %52, ptr %13, align 4, !tbaa !23
  store float 0.000000e+00, ptr %14, align 4, !tbaa !23
  call void @_ZNSt6vectorIN13Visualization10MonoVertexESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(24) %2)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  %55 = add nuw nsw i32 %.03134, 1
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.03134, %56
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !24

._crit_edge43:                                    ; preds = %.lr.ph42, %1, %._crit_edge, %.split37.us
  ret void

.lr.ph42:                                         ; preds = %.lr.ph42.preheader, %.lr.ph42
  %.040 = phi i32 [ %57, %.lr.ph42 ], [ 0, %.lr.ph42.preheader ]
  %.02939 = phi i32 [ %58, %.lr.ph42 ], [ %17, %.lr.ph42.preheader ]
  %57 = add nuw nsw i32 %.040, 1
  call void @_ZN13Visualization8Cylinder10AddIndicesEjjj(ptr noundef nonnull align 8 dereferenceable(252) %0, i32 noundef %.040, i32 noundef %.02939, i32 noundef %57)
  %58 = add i32 %.02939, 1
  call void @_ZN13Visualization8Cylinder10AddIndicesEjjj(ptr noundef nonnull align 8 dereferenceable(252) %0, i32 noundef %57, i32 noundef %.02939, i32 noundef %58)
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = icmp slt i32 %57, %59
  br i1 %60, label %.lr.ph42, label %._crit_edge43, !llvm.loop !26
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN13Visualization10MonoVertexESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN13Visualization10MonoVertexESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13Visualization8Cylinder10AddIndicesEjjj(ptr noundef nonnull align 8 dereferenceable(252), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

attributes #0 = { mustprogress 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 #3 = { inlinehint mustprogress 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 #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, !12, i64 172}
!6 = !{!"_ZTSN13Visualization8CylinderE", !7, i64 0, !13, i64 164, !13, i64 168, !12, i64 172, !14, i64 176, !18, i64 200, !12, i64 224, !12, i64 228, !12, i64 232, !12, i64 236, !12, i64 240, !12, i64 244, !12, i64 248}
!7 = !{!"_ZTSN13Visualization12RendererBaseE", !8, i64 8, !9, i64 12, !9, i64 76, !11, i64 144, !12, i64 152, !12, i64 156, !12, i64 160}
!8 = !{!"bool", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!"float", !9, i64 0}
!14 = !{!"_ZTSSt6vectorIN13Visualization10MonoVertexESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN13Visualization10MonoVertexESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN13Visualization10MonoVertexESaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN13Visualization10MonoVertexESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!18 = !{!"_ZTSSt6vectorIjSaIjEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!22 = !{!6, !13, i64 164}
!23 = !{!13, !13, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass