; LLVM IR from Ubpa/USTC_CG :: Homeworks/0_CppPratices/samples/src/executables/1_BasicDArray (DArray)

; 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.DArray = type <{ ptr, i32, [4 x i8] }>

@.str.4 = external hidden unnamed_addr constant [119 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [31 x i8], align 1
@__PRETTY_FUNCTION__._ZN6DArray8InsertAtEid = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #1

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6DArray8InsertAtEid(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %1, double noundef %2) #5 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store double %2, ptr %6, align 8, !tbaa !11
  %10 = load ptr, ptr %4, align 8
  %11 = load i32, ptr %5, align 4, !tbaa !9
  %12 = icmp sge i32 %11, 0
  br i1 %12, label %13, label %18

13:                                               ; preds = %3
  %14 = load i32, ptr %5, align 4, !tbaa !9
  %15 = getelementptr inbounds %class.DArray, ptr %10, i32 0, i32 1
  %16 = load i32, ptr %15, align 8, !tbaa !13
  %17 = icmp sle i32 %14, %16
  br label %18

18:                                               ; preds = %13, %3
  %19 = phi i1 [ false, %3 ], [ %17, %13 ]
  br i1 %19, label %20, label %21

20:                                               ; preds = %18
  br label %23

21:                                               ; preds = %18
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 137, ptr noundef @__PRETTY_FUNCTION__._ZN6DArray8InsertAtEid) #6
  unreachable

22:                                               ; No predecessors!
  br label %23

23:                                               ; preds = %22, %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %24 = getelementptr inbounds %class.DArray, ptr %10, i32 0, i32 1
  %25 = load i32, ptr %24, align 8, !tbaa !13
  %26 = sext i32 %25 to i64
  %27 = add i64 %26, 1
  %28 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %27, i64 8)
  %29 = extractvalue { i64, i1 } %28, 1
  %30 = extractvalue { i64, i1 } %28, 0
  %31 = select i1 %29, i64 -1, i64 %30
  %32 = call noalias noundef nonnull ptr @_Znam(i64 noundef %31) #8
  store ptr %32, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %49, %23
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = load i32, ptr %5, align 4, !tbaa !9
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %52

38:                                               ; preds = %33
  %39 = getelementptr inbounds %class.DArray, ptr %10, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !15
  %41 = load i32, ptr %8, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds double, ptr %40, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !11
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = load i32, ptr %8, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds double, ptr %45, i64 %47
  store double %44, ptr %48, align 8, !tbaa !11
  br label %49

49:                                               ; preds = %38
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %8, align 4, !tbaa !9
  br label %33, !llvm.loop !16

52:                                               ; preds = %37
  %53 = load double, ptr %6, align 8, !tbaa !11
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = load i32, ptr %5, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds double, ptr %54, i64 %56
  store double %53, ptr %57, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %58 = load i32, ptr %5, align 4, !tbaa !9
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %9, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %79, %52
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = getelementptr inbounds %class.DArray, ptr %10, i32 0, i32 1
  %63 = load i32, ptr %62, align 8, !tbaa !13
  %64 = add nsw i32 %63, 1
  %65 = icmp slt i32 %61, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %82

67:                                               ; preds = %60
  %68 = getelementptr inbounds %class.DArray, ptr %10, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !15
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = sub nsw i32 %70, 1
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds double, ptr %69, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !11
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %75, i64 %77
  store double %74, ptr %78, align 8, !tbaa !11
  br label %79

79:                                               ; preds = %67
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %9, align 4, !tbaa !9
  br label %60, !llvm.loop !18

82:                                               ; preds = %66
  %83 = getelementptr inbounds %class.DArray, ptr %10, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !15
  %85 = icmp eq ptr %84, null
  br i1 %85, label %87, label %86

86:                                               ; preds = %82
  call void @_ZdaPv(ptr noundef %84) #9
  br label %87

87:                                               ; preds = %86, %82
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %class.DArray, ptr %10, i32 0, i32 0
  store ptr %88, ptr %89, align 8, !tbaa !15
  %90 = getelementptr inbounds %class.DArray, ptr %10, i32 0, i32 1
  %91 = load i32, ptr %90, align 8, !tbaa !13
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %90, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nobuiltin allocsize(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 memory(argmem: readwrite) }
attributes #3 = { nobuiltin nounwind "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 = { noreturn nounwind "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 #5 = { 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 #6 = { noreturn nounwind }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTS6DArray", !6, i64 0, !10, i64 8}
!15 = !{!14, !6, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


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

@.str.4 = external hidden unnamed_addr constant [119 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [31 x i8], align 1
@__PRETTY_FUNCTION__._ZN6DArray8InsertAtEid = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #0

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6DArray8InsertAtEid(ptr nocapture noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %1, double noundef %2) local_unnamed_addr #3 align 2 {
  %4 = icmp sgt i32 %1, -1
  br i1 %4, label %5, label %.critedge

5:                                                ; preds = %3
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %.not = icmp slt i32 %7, %1
  br i1 %.not, label %.critedge, label %8

.critedge:                                        ; preds = %3, %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4, i32 noundef 137, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6DArray8InsertAtEid) #4
  unreachable

8:                                                ; preds = %5
  %9 = zext nneg i32 %7 to i64
  %10 = shl nuw nsw i64 %9, 3
  %11 = add nuw nsw i64 %10, 8
  %12 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %11) #5
  %13 = ptrtoint ptr %12 to i64
  %.not27 = icmp eq i32 %1, 0
  %.pre.pre = load ptr, ptr %0, align 8, !tbaa !11
  %.pre.pre34 = ptrtoint ptr %.pre.pre to i64
  br i1 %.not27, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %8
  %wide.trip.count = zext nneg i32 %1 to i64
  %min.iters.check = icmp ult i32 %1, 6
  %14 = sub i64 %13, %.pre.pre34
  %diff.check = icmp ult i64 %14, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %15 = getelementptr inbounds double, ptr %.pre.pre, i64 %indvars.iv.prol
  %16 = load double, ptr %15, align 8, !tbaa !12
  %17 = getelementptr inbounds double, ptr %12, i64 %indvars.iv.prol
  store double %16, ptr %17, align 8, !tbaa !12
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !14

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %18 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %19 = icmp ugt i64 %18, -4
  br i1 %19, label %._crit_edge, label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %20 = getelementptr inbounds double, ptr %.pre.pre, i64 %index
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  %wide.load = load <2 x double>, ptr %20, align 8, !tbaa !12
  %wide.load35 = load <2 x double>, ptr %21, align 8, !tbaa !12
  %22 = getelementptr inbounds double, ptr %12, i64 %index
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  store <2 x double> %wide.load, ptr %22, align 8, !tbaa !12
  store <2 x double> %wide.load35, ptr %23, align 8, !tbaa !12
  %index.next = add nuw i64 %index, 4
  %24 = icmp eq i64 %index.next, %n.vec
  br i1 %24, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %8
  %.pre-phi = phi i64 [ 0, %8 ], [ %wide.trip.count, %middle.block ], [ %wide.trip.count, %scalar.ph ], [ %wide.trip.count, %scalar.ph.prol.loopexit ]
  %25 = getelementptr inbounds double, ptr %12, i64 %.pre-phi
  store double %2, ptr %25, align 8, !tbaa !12
  %26 = icmp sgt i32 %7, %1
  br i1 %26, label %.lr.ph25.preheader, label %._crit_edge26

.lr.ph25.preheader:                               ; preds = %._crit_edge
  %27 = xor i32 %1, -1
  %28 = add i32 %7, %27
  %29 = zext i32 %28 to i64
  %30 = add nuw nsw i64 %29, 1
  %min.iters.check40 = icmp ult i32 %28, 7
  br i1 %min.iters.check40, label %.lr.ph25.preheader51, label %vector.memcheck36

.lr.ph25.preheader51:                             ; preds = %middle.block38, %vector.memcheck36, %.lr.ph25.preheader
  %indvars.iv30.ph = phi i64 [ %.pre-phi, %vector.memcheck36 ], [ %.pre-phi, %.lr.ph25.preheader ], [ %ind.end, %middle.block38 ]
  br label %.lr.ph25

vector.memcheck36:                                ; preds = %.lr.ph25.preheader
  %31 = add i64 %13, 8
  %32 = sub i64 %31, %.pre.pre34
  %diff.check37 = icmp ult i64 %32, 32
  br i1 %diff.check37, label %.lr.ph25.preheader51, label %vector.ph41

vector.ph41:                                      ; preds = %vector.memcheck36
  %n.vec43 = and i64 %30, 8589934588
  %ind.end = add nuw nsw i64 %.pre-phi, %n.vec43
  br label %vector.body45

vector.body45:                                    ; preds = %vector.body45, %vector.ph41
  %index46 = phi i64 [ 0, %vector.ph41 ], [ %index.next49, %vector.body45 ]
  %offset.idx = add i64 %.pre-phi, %index46
  %33 = getelementptr inbounds double, ptr %.pre.pre, i64 %offset.idx
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  %wide.load47 = load <2 x double>, ptr %33, align 8, !tbaa !12
  %wide.load48 = load <2 x double>, ptr %34, align 8, !tbaa !12
  %35 = getelementptr double, ptr %12, i64 %offset.idx
  %36 = getelementptr i8, ptr %35, i64 8
  %37 = getelementptr i8, ptr %35, i64 24
  store <2 x double> %wide.load47, ptr %36, align 8, !tbaa !12
  store <2 x double> %wide.load48, ptr %37, align 8, !tbaa !12
  %index.next49 = add nuw i64 %index46, 4
  %38 = icmp eq i64 %index.next49, %n.vec43
  br i1 %38, label %middle.block38, label %vector.body45, !llvm.loop !20

middle.block38:                                   ; preds = %vector.body45
  %cmp.n50 = icmp eq i64 %30, %n.vec43
  br i1 %cmp.n50, label %._crit_edge26.thread, label %.lr.ph25.preheader51

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %39 = getelementptr inbounds double, ptr %.pre.pre, i64 %indvars.iv
  %40 = load double, ptr %39, align 8, !tbaa !12
  %41 = getelementptr inbounds double, ptr %12, i64 %indvars.iv
  store double %40, ptr %41, align 8, !tbaa !12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %42 = getelementptr inbounds double, ptr %.pre.pre, i64 %indvars.iv.next
  %43 = load double, ptr %42, align 8, !tbaa !12
  %44 = getelementptr inbounds double, ptr %12, i64 %indvars.iv.next
  store double %43, ptr %44, align 8, !tbaa !12
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %45 = getelementptr inbounds double, ptr %.pre.pre, i64 %indvars.iv.next.1
  %46 = load double, ptr %45, align 8, !tbaa !12
  %47 = getelementptr inbounds double, ptr %12, i64 %indvars.iv.next.1
  store double %46, ptr %47, align 8, !tbaa !12
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %48 = getelementptr inbounds double, ptr %.pre.pre, i64 %indvars.iv.next.2
  %49 = load double, ptr %48, align 8, !tbaa !12
  %50 = getelementptr inbounds double, ptr %12, i64 %indvars.iv.next.2
  store double %49, ptr %50, align 8, !tbaa !12
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge, label %scalar.ph, !llvm.loop !21

._crit_edge26:                                    ; preds = %._crit_edge
  %51 = icmp eq ptr %.pre.pre, null
  br i1 %51, label %57, label %._crit_edge26.thread

.lr.ph25:                                         ; preds = %.lr.ph25.preheader51, %.lr.ph25
  %indvars.iv30 = phi i64 [ %indvars.iv.next31, %.lr.ph25 ], [ %indvars.iv30.ph, %.lr.ph25.preheader51 ]
  %indvars.iv.next31 = add nuw nsw i64 %indvars.iv30, 1
  %52 = getelementptr inbounds double, ptr %.pre.pre, i64 %indvars.iv30
  %53 = load double, ptr %52, align 8, !tbaa !12
  %54 = getelementptr inbounds double, ptr %12, i64 %indvars.iv.next31
  store double %53, ptr %54, align 8, !tbaa !12
  %55 = trunc nuw i64 %indvars.iv.next31 to i32
  %56 = icmp sgt i32 %7, %55
  br i1 %56, label %.lr.ph25, label %._crit_edge26.thread, !llvm.loop !22

._crit_edge26.thread:                             ; preds = %.lr.ph25, %middle.block38, %._crit_edge26
  tail call void @_ZdaPv(ptr noundef nonnull %.pre.pre) #6
  %.pre33 = load i32, ptr %6, align 8, !tbaa !5
  br label %57

57:                                               ; preds = %._crit_edge26.thread, %._crit_edge26
  %58 = phi i32 [ %.pre33, %._crit_edge26.thread ], [ %7, %._crit_edge26 ]
  store ptr %12, ptr %0, align 8, !tbaa !11
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %6, align 8, !tbaa !5
  ret void
}

attributes #0 = { nobuiltin allocsize(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 = { nobuiltin nounwind "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 = { noreturn nounwind "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 = { 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 #4 = { noreturn nounwind }
attributes #5 = { builtin allocsize(0) }
attributes #6 = { builtin 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, !10, i64 8}
!6 = !{!"_ZTS6DArray", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !17, !18, !19}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !17, !18, !19}
!21 = distinct !{!21, !17, !18}
!22 = distinct !{!22, !17, !18}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass