; LLVM IR from robinrodricks/InspiritImage :: Inspirit.Assurf/clib (utils)

; 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._IPointMatch = type { ptr, ptr, ptr, double, double, i32, i32, i32 }
%struct._IPoint = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, double, ptr, i32, [256 x i8] }

; 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
define dso_local i32 @filterOutliersByAngle(ptr noundef %0, i32 noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 90, ptr %8, align 4, !tbaa !9
  %19 = call ptr @llvm.stacksave.p0()
  store ptr %19, ptr %9, align 8
  %20 = alloca double, i64 90, align 16
  %21 = load i32, ptr %4, align 4, !tbaa !9
  %22 = zext i32 %21 to i64
  %23 = alloca i32, i64 %22, align 16
  store i64 %22, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store double 0x404CA5DDB05CC3E8, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %31, %2
  %25 = load i32, ptr %5, align 4, !tbaa !9
  %26 = icmp slt i32 %25, 90
  br i1 %26, label %27, label %34

27:                                               ; preds = %24
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds double, ptr %20, i64 %29
  store double 0.000000e+00, ptr %30, align 8, !tbaa !11
  br label %31

31:                                               ; preds = %27
  %32 = load i32, ptr %5, align 4, !tbaa !9
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %5, align 4, !tbaa !9
  br label %24, !llvm.loop !13

34:                                               ; preds = %24
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %81, %34
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = load i32, ptr %4, align 4, !tbaa !9
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %39, label %84

39:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = load i32, ptr %5, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds %struct._IPointMatch, ptr %40, i64 %42
  store ptr %43, ptr %15, align 8, !tbaa !5
  %44 = load ptr, ptr %15, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct._IPointMatch, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !15
  %47 = getelementptr inbounds %struct._IPoint, ptr %46, i32 0, i32 11
  %48 = load double, ptr %47, align 8, !tbaa !17
  %49 = fmul double %48, 0x404CA5DDB05CC3E8
  %50 = fptosi double %49 to i32
  store i32 %50, ptr %12, align 4, !tbaa !9
  %51 = load ptr, ptr %15, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct._IPointMatch, ptr %51, i32 0, i32 1
  %53 = load ptr, ptr %52, align 8, !tbaa !19
  %54 = getelementptr inbounds %struct._IPoint, ptr %53, i32 0, i32 11
  %55 = load double, ptr %54, align 8, !tbaa !17
  %56 = fmul double %55, 0x404CA5DDB05CC3E8
  %57 = fptosi double %56 to i32
  store i32 %57, ptr %13, align 4, !tbaa !9
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = load i32, ptr %12, align 4, !tbaa !9
  %60 = sub nsw i32 %58, %59
  store i32 %60, ptr %14, align 4, !tbaa !9
  %61 = load i32, ptr %14, align 4, !tbaa !9
  %62 = icmp slt i32 %61, 0
  br i1 %62, label %63, label %66

63:                                               ; preds = %39
  %64 = load i32, ptr %14, align 4, !tbaa !9
  %65 = add nsw i32 %64, 360
  store i32 %65, ptr %14, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %63, %39
  %67 = load ptr, ptr %15, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._IPointMatch, ptr %67, i32 0, i32 4
  %69 = load double, ptr %68, align 8, !tbaa !20
  %70 = fsub double 1.100000e+00, %69
  %71 = load i32, ptr %14, align 4, !tbaa !9
  %72 = sdiv i32 %71, 4
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds double, ptr %20, i64 %73
  %75 = load double, ptr %74, align 8, !tbaa !11
  %76 = fadd double %75, %70
  store double %76, ptr %74, align 8, !tbaa !11
  %77 = load i32, ptr %14, align 4, !tbaa !9
  %78 = load i32, ptr %5, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i32, ptr %23, i64 %79
  store i32 %77, ptr %80, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %81

81:                                               ; preds = %66
  %82 = load i32, ptr %5, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %5, align 4, !tbaa !9
  br label %35, !llvm.loop !21

84:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %85 = load i32, ptr %16, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds double, ptr %20, i64 %86
  %88 = load double, ptr %87, align 8, !tbaa !11
  store double %88, ptr %17, align 8, !tbaa !11
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %106, %84
  %90 = load i32, ptr %5, align 4, !tbaa !9
  %91 = icmp slt i32 %90, 90
  br i1 %91, label %92, label %109

92:                                               ; preds = %89
  %93 = load double, ptr %17, align 8, !tbaa !11
  %94 = load i32, ptr %5, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds double, ptr %20, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !11
  %98 = fcmp olt double %93, %97
  br i1 %98, label %99, label %105

99:                                               ; preds = %92
  %100 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %100, ptr %16, align 4, !tbaa !9
  %101 = load i32, ptr %5, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds double, ptr %20, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !11
  store double %104, ptr %17, align 8, !tbaa !11
  br label %105

105:                                              ; preds = %99, %92
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %5, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %5, align 4, !tbaa !9
  br label %89, !llvm.loop !22

109:                                              ; preds = %89
  %110 = load i32, ptr %16, align 4, !tbaa !9
  %111 = mul nsw i32 %110, 4
  store i32 %111, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !9
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 100, ptr %18, align 4, !tbaa !9
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %136, %109
  %113 = load i32, ptr %5, align 4, !tbaa !9
  %114 = load i32, ptr %4, align 4, !tbaa !9
  %115 = icmp slt i32 %113, %114
  br i1 %115, label %116, label %139

116:                                              ; preds = %112
  %117 = load i32, ptr %5, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds i32, ptr %23, i64 %118
  %120 = load i32, ptr %119, align 4, !tbaa !9
  %121 = load i32, ptr %16, align 4, !tbaa !9
  %122 = sub nsw i32 %120, %121
  %123 = call i32 @iSquare(i32 noundef %122)
  %124 = icmp sle i32 %123, 100
  br i1 %124, label %125, label %135

125:                                              ; preds = %116
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = load i32, ptr %7, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %7, align 4, !tbaa !9
  %129 = sext i32 %127 to i64
  %130 = getelementptr inbounds %struct._IPointMatch, ptr %126, i64 %129
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = load i32, ptr %5, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds %struct._IPointMatch, ptr %131, i64 %133
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %130, ptr align 8 %134, i64 56, i1 false), !tbaa.struct !23
  br label %135

135:                                              ; preds = %125, %116
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %5, align 4, !tbaa !9
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %5, align 4, !tbaa !9
  br label %112, !llvm.loop !24

139:                                              ; preds = %112
  %140 = load i32, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %141 = load ptr, ptr %9, align 8
  call void @llvm.stackrestore.p0(ptr %141)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret i32 %140
}

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

; Function Attrs: inlinehint nounwind uwtable
declare i32 @iSquare(i32 noundef) #3

; 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) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

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 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { inlinehint 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !6, i64 0}
!16 = !{!"_IPointMatch", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 32, !10, i64 40, !10, i64 44, !10, i64 48}
!17 = !{!18, !12, i64 48}
!18 = !{!"_IPoint", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !12, i64 40, !12, i64 48, !10, i64 56, !10, i64 60, !10, i64 64, !12, i64 72, !6, i64 80, !10, i64 88, !7, i64 92}
!19 = !{!16, !6, i64 8}
!20 = !{!16, !12, i64 32}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !11, i64 32, i64 8, !11, i64 40, i64 4, !9, i64 44, i64 4, !9, i64 48, i64 4, !9}
!24 = distinct !{!24, !14}


; 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._IPointMatch = type { ptr, ptr, ptr, double, double, i32, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local i32 @filterOutliersByAngle(ptr nocapture noundef %0, i32 noundef %1) local_unnamed_addr #0 {
.preheader:
  %2 = alloca [90 x double], align 16
  %3 = zext i32 %1 to i64
  %4 = alloca i32, i64 %3, align 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(720) %2, i8 0, i64 720, i1 false), !tbaa !5
  %5 = icmp sgt i32 %1, 0
  br i1 %5, label %.lr.ph, label %._crit_edge.preheader

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader ]
  %6 = getelementptr inbounds %struct._IPointMatch, ptr %0, i64 %indvars.iv
  %7 = load ptr, ptr %6, align 8, !tbaa !9
  %8 = getelementptr inbounds i8, ptr %7, i64 48
  %9 = load double, ptr %8, align 8, !tbaa !13
  %10 = getelementptr inbounds i8, ptr %6, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !15
  %12 = getelementptr inbounds i8, ptr %11, i64 48
  %13 = load double, ptr %12, align 8, !tbaa !13
  %14 = insertelement <2 x double> poison, double %13, i64 0
  %15 = insertelement <2 x double> %14, double %9, i64 1
  %16 = fmul <2 x double> %15, <double 0x404CA5DDB05CC3E8, double 0x404CA5DDB05CC3E8>
  %17 = fptosi <2 x double> %16 to <2 x i32>
  %shift = shufflevector <2 x i32> %17, <2 x i32> poison, <2 x i32> <i32 1, i32 poison>
  %18 = sub nsw <2 x i32> %17, %shift
  %19 = extractelement <2 x i32> %18, i64 0
  %20 = icmp slt i32 %19, 0
  %21 = add nsw i32 %19, 360
  %spec.select = select i1 %20, i32 %21, i32 %19
  %22 = getelementptr inbounds i8, ptr %6, i64 32
  %23 = load double, ptr %22, align 8, !tbaa !16
  %24 = fsub double 1.100000e+00, %23
  %25 = sdiv i32 %spec.select, 4
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds double, ptr %2, i64 %26
  %28 = load double, ptr %27, align 8, !tbaa !5
  %29 = fadd double %28, %24
  store double %29, ptr %27, align 8, !tbaa !5
  %30 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv
  store i32 %spec.select, ptr %30, align 4, !tbaa !17
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %3
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !18

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load double, ptr %2, align 16, !tbaa !5
  br label %._crit_edge.preheader

._crit_edge.preheader:                            ; preds = %._crit_edge.loopexit, %.preheader
  %.03751.ph = phi double [ 0.000000e+00, %.preheader ], [ %.pre, %._crit_edge.loopexit ]
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.1, %._crit_edge.preheader
  %indvars.iv60 = phi i64 [ 1, %._crit_edge.preheader ], [ %indvars.iv.next61.1, %._crit_edge.1 ]
  %.03751 = phi double [ %.03751.ph, %._crit_edge.preheader ], [ %.138.1, %._crit_edge.1 ]
  %.03950 = phi i32 [ 0, %._crit_edge.preheader ], [ %.140.1, %._crit_edge.1 ]
  %31 = getelementptr inbounds double, ptr %2, i64 %indvars.iv60
  %32 = load double, ptr %31, align 8, !tbaa !5
  %33 = fcmp olt double %.03751, %32
  %34 = trunc nuw nsw i64 %indvars.iv60 to i32
  %.140 = select i1 %33, i32 %34, i32 %.03950
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %exitcond63.not = icmp eq i64 %indvars.iv.next61, 90
  br i1 %exitcond63.not, label %39, label %._crit_edge.1, !llvm.loop !20

._crit_edge.1:                                    ; preds = %._crit_edge
  %.138 = select i1 %33, double %32, double %.03751
  %35 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next61
  %36 = load double, ptr %35, align 8, !tbaa !5
  %37 = fcmp olt double %.138, %36
  %38 = trunc nuw nsw i64 %indvars.iv.next61 to i32
  %.140.1 = select i1 %37, i32 %38, i32 %.140
  %.138.1 = select i1 %37, double %36, double %.138
  %indvars.iv.next61.1 = add nuw nsw i64 %indvars.iv60, 2
  br label %._crit_edge

39:                                               ; preds = %._crit_edge
  %40 = shl nsw i32 %.140, 2
  br i1 %5, label %.lr.ph56, label %._crit_edge57

.lr.ph56:                                         ; preds = %39, %51
  %indvars.iv64 = phi i64 [ %indvars.iv.next65, %51 ], [ 0, %39 ]
  %.04153 = phi i32 [ %.142, %51 ], [ 0, %39 ]
  %41 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv64
  %42 = load i32, ptr %41, align 4, !tbaa !17
  %43 = sub nsw i32 %42, %40
  %44 = tail call i32 @iSquare(i32 noundef %43)
  %45 = icmp slt i32 %44, 101
  br i1 %45, label %46, label %51

46:                                               ; preds = %.lr.ph56
  %47 = add nsw i32 %.04153, 1
  %48 = sext i32 %.04153 to i64
  %49 = getelementptr inbounds %struct._IPointMatch, ptr %0, i64 %48
  %50 = getelementptr inbounds %struct._IPointMatch, ptr %0, i64 %indvars.iv64
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %49, ptr noundef nonnull align 8 dereferenceable(56) %50, i64 56, i1 false), !tbaa.struct !21
  br label %51

51:                                               ; preds = %.lr.ph56, %46
  %.142 = phi i32 [ %47, %46 ], [ %.04153, %.lr.ph56 ]
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %exitcond68.not = icmp eq i64 %indvars.iv.next65, %3
  br i1 %exitcond68.not, label %._crit_edge57, label %.lr.ph56, !llvm.loop !23

._crit_edge57:                                    ; preds = %51, %39
  %.041.lcssa = phi i32 [ 0, %39 ], [ %.142, %51 ]
  ret i32 %.041.lcssa
}

; Function Attrs: inlinehint nounwind uwtable
declare i32 @iSquare(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

attributes #0 = { 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 #1 = { inlinehint 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_IPointMatch", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 44, !12, i64 48}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 48}
!14 = !{!"_IPoint", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !6, i64 40, !6, i64 48, !12, i64 56, !12, i64 60, !12, i64 64, !6, i64 72, !11, i64 80, !12, i64 88, !7, i64 92}
!15 = !{!10, !11, i64 8}
!16 = !{!10, !6, i64 32}
!17 = !{!12, !12, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{i64 0, i64 8, !22, i64 8, i64 8, !22, i64 16, i64 8, !22, i64 24, i64 8, !5, i64 32, i64 8, !5, i64 40, i64 4, !17, i64 44, i64 4, !17, i64 48, i64 4, !17}
!22 = !{!11, !11, i64 0}
!23 = distinct !{!23, !19}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass