; LLVM IR from mfem/mfem :: general/gecko.ll (ZN5Gecko8Subgraph8optimizeENS_11WeightedSumEj)

; 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"

%"class.Gecko::WeightedSum" = type { %"class.Gecko::WeightedValue" }
%"class.Gecko::WeightedValue" = type { float, float }
%"class.Gecko::Subgraph" = type { ptr, i32, ptr, %"class.Gecko::WeightedSum", [16 x i8], [16 x i8], [16 x ptr], ptr, [16 x i32], [16 x [16 x float]] }

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK5Gecko8Subgraph4costEj(ptr noundef nonnull align 8 dereferenceable(1288), i32 noundef) #0 align 2

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; 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 @_ZN5Gecko8Subgraph4swapEj(ptr noundef nonnull align 8 dereferenceable(1288), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Gecko8Subgraph4swapEjj(ptr noundef nonnull align 8 dereferenceable(1288), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Gecko8Subgraph8optimizeENS_11WeightedSumEj(ptr noundef nonnull align 8 dereferenceable(1288) %0, <2 x float> %1, i32 noundef %2) #0 align 2 {
  %4 = alloca %"class.Gecko::WeightedSum", align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.Gecko::WeightedSum", align 4
  %9 = alloca %"class.Gecko::WeightedSum", align 4
  %10 = alloca %"class.Gecko::WeightedSum", align 4
  %11 = alloca i32, align 4
  %12 = getelementptr inbounds %"class.Gecko::WeightedSum", ptr %4, i32 0, i32 0
  store <2 x float> %1, ptr %12, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %13 = load ptr, ptr %5, align 8
  %14 = load i32, ptr %6, align 4, !tbaa !9
  %15 = add i32 %14, -1
  store i32 %15, ptr %6, align 4, !tbaa !9
  %16 = getelementptr inbounds %"class.Gecko::Subgraph", ptr %13, i32 0, i32 2
  %17 = load ptr, ptr %16, align 8, !tbaa !11
  %18 = getelementptr inbounds %"class.Gecko::Subgraph", ptr %13, i32 0, i32 3
  %19 = load ptr, ptr %17, align 8, !tbaa !16
  %20 = getelementptr inbounds ptr, ptr %19, i64 6
  %21 = load ptr, ptr %20, align 8
  %22 = call noundef zeroext i1 %21(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %18)
  br i1 %22, label %23, label %97

23:                                               ; preds = %3
  %24 = load i32, ptr %6, align 4, !tbaa !9
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %58

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %27 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %27, ptr %7, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %53, %26
  %29 = getelementptr inbounds %"class.Gecko::Subgraph", ptr %13, i32 0, i32 2
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %31 = load i32, ptr %6, align 4, !tbaa !9
  %32 = call <2 x float> @_ZNK5Gecko8Subgraph4costEj(ptr noundef nonnull align 8 dereferenceable(1288) %13, i32 noundef %31)
  %33 = getelementptr inbounds %"class.Gecko::WeightedSum", ptr %9, i32 0, i32 0
  store <2 x float> %32, ptr %33, align 4
  %34 = load ptr, ptr %30, align 8, !tbaa !16
  %35 = getelementptr inbounds ptr, ptr %34, i64 3
  %36 = load ptr, ptr %35, align 8
  %37 = call <2 x float> %36(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %9)
  %38 = getelementptr inbounds %"class.Gecko::WeightedSum", ptr %8, i32 0, i32 0
  store <2 x float> %37, ptr %38, align 4
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = getelementptr inbounds %"class.Gecko::WeightedSum", ptr %8, i32 0, i32 0
  %41 = load <2 x float>, ptr %40, align 4
  call void @_ZN5Gecko8Subgraph8optimizeENS_11WeightedSumEj(ptr noundef nonnull align 8 dereferenceable(1288) %13, <2 x float> %41, i32 noundef %39)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = and i32 %42, 1
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %49

45:                                               ; preds = %28
  %46 = load i32, ptr %6, align 4, !tbaa !9
  %47 = load i32, ptr %7, align 4, !tbaa !9
  %48 = sub i32 %46, %47
  br label %50

49:                                               ; preds = %28
  br label %50

50:                                               ; preds = %49, %45
  %51 = phi i32 [ %48, %45 ], [ 0, %49 ]
  %52 = load i32, ptr %6, align 4, !tbaa !9
  call void @_ZN5Gecko8Subgraph4swapEjj(ptr noundef nonnull align 8 dereferenceable(1288) %13, i32 noundef %51, i32 noundef %52)
  br label %53

53:                                               ; preds = %50
  %54 = load i32, ptr %7, align 4, !tbaa !9
  %55 = add i32 %54, -1
  store i32 %55, ptr %7, align 4, !tbaa !9
  %56 = icmp ne i32 %54, 0
  br i1 %56, label %28, label %57, !llvm.loop !18

57:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %96

58:                                               ; preds = %23
  %59 = getelementptr inbounds %"class.Gecko::Subgraph", ptr %13, i32 0, i32 2
  %60 = load ptr, ptr %59, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %61 = call <2 x float> @_ZNK5Gecko8Subgraph4costEj(ptr noundef nonnull align 8 dereferenceable(1288) %13, i32 noundef 0)
  %62 = getelementptr inbounds %"class.Gecko::WeightedSum", ptr %10, i32 0, i32 0
  store <2 x float> %61, ptr %62, align 4
  %63 = load ptr, ptr %60, align 8, !tbaa !16
  %64 = getelementptr inbounds ptr, ptr %63, i64 5
  %65 = load ptr, ptr %64, align 8
  call void %65(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %66 = getelementptr inbounds %"class.Gecko::Subgraph", ptr %13, i32 0, i32 2
  %67 = load ptr, ptr %66, align 8, !tbaa !11
  %68 = getelementptr inbounds %"class.Gecko::Subgraph", ptr %13, i32 0, i32 3
  %69 = load ptr, ptr %67, align 8, !tbaa !16
  %70 = getelementptr inbounds ptr, ptr %69, i64 6
  %71 = load ptr, ptr %70, align 8
  %72 = call noundef zeroext i1 %71(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %68)
  br i1 %72, label %73, label %95

73:                                               ; preds = %58
  %74 = getelementptr inbounds %"class.Gecko::Subgraph", ptr %13, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %74, ptr align 4 %4, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %91, %73
  %76 = load i32, ptr %11, align 4, !tbaa !9
  %77 = getelementptr inbounds %"class.Gecko::Subgraph", ptr %13, i32 0, i32 1
  %78 = load i32, ptr %77, align 8, !tbaa !20
  %79 = icmp ult i32 %76, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %94

81:                                               ; preds = %75
  %82 = getelementptr inbounds %"class.Gecko::Subgraph", ptr %13, i32 0, i32 5
  %83 = load i32, ptr %11, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds [16 x i8], ptr %82, i64 0, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !21
  %87 = getelementptr inbounds %"class.Gecko::Subgraph", ptr %13, i32 0, i32 4
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds [16 x i8], ptr %87, i64 0, i64 %89
  store i8 %86, ptr %90, align 1, !tbaa !21
  br label %91

91:                                               ; preds = %81
  %92 = load i32, ptr %11, align 4, !tbaa !9
  %93 = add i32 %92, 1
  store i32 %93, ptr %11, align 4, !tbaa !9
  br label %75, !llvm.loop !22

94:                                               ; preds = %80
  br label %95

95:                                               ; preds = %94, %58
  br label %96

96:                                               ; preds = %95, %57
  br label %110

97:                                               ; preds = %3
  %98 = load i32, ptr %6, align 4, !tbaa !9
  %99 = and i32 %98, 1
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %109

101:                                              ; preds = %97
  br label %102

102:                                              ; preds = %105, %101
  %103 = load i32, ptr %6, align 4, !tbaa !9
  %104 = add i32 %103, -1
  store i32 %104, ptr %6, align 4, !tbaa !9
  call void @_ZN5Gecko8Subgraph4swapEj(ptr noundef nonnull align 8 dereferenceable(1288) %13, i32 noundef %104)
  br label %105

105:                                              ; preds = %102
  %106 = load i32, ptr %6, align 4, !tbaa !9
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %102, label %108, !llvm.loop !23

108:                                              ; preds = %105
  br label %109

109:                                              ; preds = %108, %97
  br label %110

110:                                              ; preds = %109, %96
  ret void
}

attributes #0 = { mustprogress 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"_ZTSN5Gecko8SubgraphE", !6, i64 0, !10, i64 8, !6, i64 16, !13, i64 24, !7, i64 32, !7, i64 48, !7, i64 64, !6, i64 192, !7, i64 200, !7, i64 264}
!13 = !{!"_ZTSN5Gecko11WeightedSumE", !14, i64 0}
!14 = !{!"_ZTSN5Gecko13WeightedValueE", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!12, !10, i64 8}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}


; 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"

%"class.Gecko::WeightedSum" = type { %"class.Gecko::WeightedValue" }
%"class.Gecko::WeightedValue" = type { float, float }

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK5Gecko8Subgraph4costEj(ptr noundef nonnull align 8 dereferenceable(1288), i32 noundef) local_unnamed_addr #0 align 2

; 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 @_ZN5Gecko8Subgraph4swapEj(ptr noundef nonnull align 8 dereferenceable(1288), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Gecko8Subgraph4swapEjj(ptr noundef nonnull align 8 dereferenceable(1288), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Gecko8Subgraph8optimizeENS_11WeightedSumEj(ptr noundef nonnull align 8 dereferenceable(1288) %0, <2 x float> %1, i32 noundef %2) local_unnamed_addr #0 align 2 {
  %4 = alloca %"class.Gecko::WeightedSum", align 8
  %5 = alloca %"class.Gecko::WeightedSum", align 8
  %6 = alloca %"class.Gecko::WeightedSum", align 8
  store <2 x float> %1, ptr %4, align 8
  %7 = add i32 %2, -1
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = load ptr, ptr %9, align 8, !tbaa !14
  %12 = getelementptr inbounds i8, ptr %11, i64 48
  %13 = load ptr, ptr %12, align 8
  %14 = call noundef zeroext i1 %13(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %10)
  br i1 %14, label %15, label %50

15:                                               ; preds = %3
  %.not21 = icmp eq i32 %7, 0
  br i1 %.not21, label %32, label %.preheader

.preheader:                                       ; preds = %15
  %16 = and i32 %7, 1
  %.not22 = icmp eq i32 %16, 0
  br i1 %.not22, label %.preheader.split.us, label %.preheader.split

.preheader.split.us:                              ; preds = %.preheader, %.preheader.split.us
  %.018.us = phi i32 [ %23, %.preheader.split.us ], [ %7, %.preheader ]
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %18 = call <2 x float> @_ZNK5Gecko8Subgraph4costEj(ptr noundef nonnull align 8 dereferenceable(1288) %0, i32 noundef %7)
  store <2 x float> %18, ptr %5, align 8
  %19 = load ptr, ptr %17, align 8, !tbaa !14
  %20 = getelementptr inbounds i8, ptr %19, i64 24
  %21 = load ptr, ptr %20, align 8
  %22 = call <2 x float> %21(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @_ZN5Gecko8Subgraph8optimizeENS_11WeightedSumEj(ptr noundef nonnull align 8 dereferenceable(1288) %0, <2 x float> %22, i32 noundef %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @_ZN5Gecko8Subgraph4swapEjj(ptr noundef nonnull align 8 dereferenceable(1288) %0, i32 noundef 0, i32 noundef %7)
  %23 = add i32 %.018.us, -1
  %.not23.us = icmp eq i32 %.018.us, 0
  br i1 %.not23.us, label %.loopexit, label %.preheader.split.us, !llvm.loop !16

.preheader.split:                                 ; preds = %.preheader, %.preheader.split
  %.018 = phi i32 [ %31, %.preheader.split ], [ %7, %.preheader ]
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %25 = call <2 x float> @_ZNK5Gecko8Subgraph4costEj(ptr noundef nonnull align 8 dereferenceable(1288) %0, i32 noundef %7)
  store <2 x float> %25, ptr %5, align 8
  %26 = load ptr, ptr %24, align 8, !tbaa !14
  %27 = getelementptr inbounds i8, ptr %26, i64 24
  %28 = load ptr, ptr %27, align 8
  %29 = call <2 x float> %28(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @_ZN5Gecko8Subgraph8optimizeENS_11WeightedSumEj(ptr noundef nonnull align 8 dereferenceable(1288) %0, <2 x float> %29, i32 noundef %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  %30 = sub nuw i32 %7, %.018
  call void @_ZN5Gecko8Subgraph4swapEjj(ptr noundef nonnull align 8 dereferenceable(1288) %0, i32 noundef %30, i32 noundef %7)
  %31 = add i32 %.018, -1
  %.not23 = icmp eq i32 %.018, 0
  br i1 %.not23, label %.loopexit, label %.preheader.split, !llvm.loop !16

32:                                               ; preds = %15
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %34 = call <2 x float> @_ZNK5Gecko8Subgraph4costEj(ptr noundef nonnull align 8 dereferenceable(1288) %0, i32 noundef 0)
  store <2 x float> %34, ptr %6, align 8
  %35 = load ptr, ptr %33, align 8, !tbaa !14
  %36 = getelementptr inbounds i8, ptr %35, i64 40
  %37 = load ptr, ptr %36, align 8
  call void %37(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = load ptr, ptr %38, align 8, !tbaa !14
  %40 = getelementptr inbounds i8, ptr %39, i64 48
  %41 = load ptr, ptr %40, align 8
  %42 = call noundef zeroext i1 %41(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %10)
  br i1 %42, label %43, label %.loopexit

43:                                               ; preds = %32
  %44 = load i64, ptr %4, align 8
  store i64 %44, ptr %10, align 8
  %45 = getelementptr inbounds i8, ptr %0, i64 8
  %46 = load i32, ptr %45, align 8, !tbaa !18
  %.not28 = icmp eq i32 %46, 0
  br i1 %.not28, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %43
  %47 = getelementptr inbounds i8, ptr %0, i64 48
  %48 = getelementptr inbounds i8, ptr %0, i64 32
  %49 = zext i32 %46 to i64
  call void @llvm.memmove.p0.p0.i64(ptr nonnull align 8 %48, ptr nonnull align 8 %47, i64 %49, i1 false), !tbaa !19
  br label %.loopexit

50:                                               ; preds = %3
  %51 = and i32 %7, 1
  %.not = icmp eq i32 %51, 0
  br i1 %.not, label %.loopexit, label %.preheader25

.preheader25:                                     ; preds = %50, %.preheader25
  %.017 = phi i32 [ %52, %.preheader25 ], [ %7, %50 ]
  %52 = add i32 %.017, -1
  call void @_ZN5Gecko8Subgraph4swapEj(ptr noundef nonnull align 8 dereferenceable(1288) %0, i32 noundef %52)
  %.not20 = icmp eq i32 %52, 0
  br i1 %.not20, label %.loopexit, label %.preheader25, !llvm.loop !20

.loopexit:                                        ; preds = %.preheader25, %.preheader.split, %.preheader.split.us, %.lr.ph, %43, %50, %32
  ret void
}

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

attributes #0 = { mustprogress 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 #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 = { 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, !7, i64 16}
!6 = !{!"_ZTSN5Gecko8SubgraphE", !7, i64 0, !10, i64 8, !7, i64 16, !11, i64 24, !8, i64 32, !8, i64 48, !8, i64 64, !7, i64 192, !8, i64 200, !8, i64 264}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSN5Gecko11WeightedSumE", !12, i64 0}
!12 = !{!"_ZTSN5Gecko13WeightedValueE", !13, i64 0, !13, i64 4}
!13 = !{!"float", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !9, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!6, !10, i64 8}
!19 = !{!8, !8, i64 0}
!20 = distinct !{!20, !17}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass