; LLVM IR from qc-tum/chemtensor :: test/algorithm (numerical_gradient)

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @ct_malloc(i64 noundef) #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @ct_free(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @numerical_gradient_forward_d(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noalias noundef %3, ptr noalias noundef %4, i64 noundef %5, double noundef %6, ptr noalias noundef %7) #2 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca double, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i64 %2, ptr %11, align 8, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store i64 %5, ptr %14, align 8, !tbaa !9
  store double %6, ptr %15, align 8, !tbaa !11
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %23 = load i64, ptr %11, align 8, !tbaa !9
  %24 = mul i64 %23, 8
  %25 = call ptr @ct_malloc(i64 noundef %24)
  store ptr %25, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %26 = load i64, ptr %14, align 8, !tbaa !9
  %27 = mul i64 %26, 8
  %28 = call ptr @ct_malloc(i64 noundef %27)
  store ptr %28, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %29 = load i64, ptr %14, align 8, !tbaa !9
  %30 = mul i64 %29, 8
  %31 = call ptr @ct_malloc(i64 noundef %30)
  store ptr %31, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %32

32:                                               ; preds = %51, %8
  %33 = load i64, ptr %20, align 8, !tbaa !9
  %34 = load i64, ptr %11, align 8, !tbaa !9
  %35 = icmp slt i64 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %54

37:                                               ; preds = %32
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = load i64, ptr %20, align 8, !tbaa !9
  %40 = getelementptr inbounds double, ptr %38, i64 %39
  %41 = load double, ptr %40, align 8, !tbaa !11
  %42 = load double, ptr %15, align 8, !tbaa !11
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  %44 = load i64, ptr %20, align 8, !tbaa !9
  %45 = getelementptr inbounds double, ptr %43, i64 %44
  %46 = load double, ptr %45, align 8, !tbaa !11
  %47 = call double @llvm.fmuladd.f64(double %42, double %46, double %41)
  %48 = load ptr, ptr %17, align 8, !tbaa !5
  %49 = load i64, ptr %20, align 8, !tbaa !9
  %50 = getelementptr inbounds double, ptr %48, i64 %49
  store double %47, ptr %50, align 8, !tbaa !11
  br label %51

51:                                               ; preds = %37
  %52 = load i64, ptr %20, align 8, !tbaa !9
  %53 = add nsw i64 %52, 1
  store i64 %53, ptr %20, align 8, !tbaa !9
  br label %32, !llvm.loop !13

54:                                               ; preds = %36
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = load ptr, ptr %17, align 8, !tbaa !5
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = load ptr, ptr %18, align 8, !tbaa !5
  call void %55(ptr noundef %56, ptr noundef %57, ptr noundef %58)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %79, %54
  %60 = load i64, ptr %21, align 8, !tbaa !9
  %61 = load i64, ptr %11, align 8, !tbaa !9
  %62 = icmp slt i64 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %82

64:                                               ; preds = %59
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = load i64, ptr %21, align 8, !tbaa !9
  %67 = getelementptr inbounds double, ptr %65, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !11
  %69 = load double, ptr %15, align 8, !tbaa !11
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = load i64, ptr %21, align 8, !tbaa !9
  %72 = getelementptr inbounds double, ptr %70, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = fneg double %69
  %75 = call double @llvm.fmuladd.f64(double %74, double %73, double %68)
  %76 = load ptr, ptr %17, align 8, !tbaa !5
  %77 = load i64, ptr %21, align 8, !tbaa !9
  %78 = getelementptr inbounds double, ptr %76, i64 %77
  store double %75, ptr %78, align 8, !tbaa !11
  br label %79

79:                                               ; preds = %64
  %80 = load i64, ptr %21, align 8, !tbaa !9
  %81 = add nsw i64 %80, 1
  store i64 %81, ptr %21, align 8, !tbaa !9
  br label %59, !llvm.loop !15

82:                                               ; preds = %63
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = load ptr, ptr %19, align 8, !tbaa !5
  call void %83(ptr noundef %84, ptr noundef %85, ptr noundef %86)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %87

87:                                               ; preds = %108, %82
  %88 = load i64, ptr %22, align 8, !tbaa !9
  %89 = load i64, ptr %14, align 8, !tbaa !9
  %90 = icmp slt i64 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %111

92:                                               ; preds = %87
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  %94 = load i64, ptr %22, align 8, !tbaa !9
  %95 = getelementptr inbounds double, ptr %93, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !11
  %97 = load ptr, ptr %19, align 8, !tbaa !5
  %98 = load i64, ptr %22, align 8, !tbaa !9
  %99 = getelementptr inbounds double, ptr %97, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !11
  %101 = fsub double %96, %100
  %102 = load double, ptr %15, align 8, !tbaa !11
  %103 = fmul double 2.000000e+00, %102
  %104 = fdiv double %101, %103
  %105 = load ptr, ptr %16, align 8, !tbaa !5
  %106 = load i64, ptr %22, align 8, !tbaa !9
  %107 = getelementptr inbounds double, ptr %105, i64 %106
  store double %104, ptr %107, align 8, !tbaa !11
  br label %108

108:                                              ; preds = %92
  %109 = load i64, ptr %22, align 8, !tbaa !9
  %110 = add nsw i64 %109, 1
  store i64 %110, ptr %22, align 8, !tbaa !9
  br label %87, !llvm.loop !16

111:                                              ; preds = %91
  %112 = load ptr, ptr %19, align 8, !tbaa !5
  call void @ct_free(ptr noundef %112)
  %113 = load ptr, ptr %18, align 8, !tbaa !5
  call void @ct_free(ptr noundef %113)
  %114 = load ptr, ptr %17, align 8, !tbaa !5
  call void @ct_free(ptr noundef %114)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 nosync nounwind speculatable willreturn memory(none) }
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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !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"

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @ct_malloc(i64 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @ct_free(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @numerical_gradient_forward_d(ptr nocapture noundef readonly %0, ptr noundef %1, i64 noundef %2, ptr noalias nocapture noundef readonly %3, ptr noalias nocapture noundef readonly %4, i64 noundef %5, double noundef %6, ptr noalias nocapture noundef writeonly %7) local_unnamed_addr #1 {
  %9 = shl i64 %2, 3
  %10 = tail call ptr @ct_malloc(i64 noundef %9)
  %11 = shl i64 %5, 3
  %12 = tail call ptr @ct_malloc(i64 noundef %11)
  %13 = tail call ptr @ct_malloc(i64 noundef %11)
  %14 = icmp sgt i64 %2, 0
  br i1 %14, label %.lr.ph.preheader, label %._crit_edge.thread

.lr.ph.preheader:                                 ; preds = %8
  %min.iters.check = icmp ult i64 %2, 4
  br i1 %min.iters.check, label %.lr.ph.preheader92, label %vector.ph

.lr.ph.preheader92:                               ; preds = %middle.block, %.lr.ph.preheader
  %.04446.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %2, 9223372036854775804
  %broadcast.splatinsert = insertelement <2 x double> poison, double %6, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %15 = getelementptr inbounds double, ptr %3, i64 %index
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  %wide.load = load <2 x double>, ptr %15, align 8, !tbaa !5
  %wide.load57 = load <2 x double>, ptr %16, align 8, !tbaa !5
  %17 = getelementptr inbounds double, ptr %4, i64 %index
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  %wide.load58 = load <2 x double>, ptr %17, align 8, !tbaa !5
  %wide.load59 = load <2 x double>, ptr %18, align 8, !tbaa !5
  %19 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load58, <2 x double> %wide.load)
  %20 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load59, <2 x double> %wide.load57)
  %21 = getelementptr inbounds double, ptr %10, i64 %index
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  store <2 x double> %19, ptr %21, align 8, !tbaa !5
  store <2 x double> %20, ptr %22, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %23 = icmp eq i64 %index.next, %n.vec
  br i1 %23, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %2
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader92

._crit_edge.thread:                               ; preds = %8
  tail call void %0(ptr noundef %10, ptr noundef %1, ptr noundef %12) #4
  br label %._crit_edge50

._crit_edge:                                      ; preds = %.lr.ph, %middle.block
  tail call void %0(ptr noundef nonnull %10, ptr noundef %1, ptr noundef %12) #4
  br i1 %14, label %.lr.ph49, label %._crit_edge50

.lr.ph49:                                         ; preds = %._crit_edge
  %24 = fneg double %6
  %min.iters.check62 = icmp ult i64 %2, 4
  br i1 %min.iters.check62, label %scalar.ph61.preheader, label %vector.ph63

scalar.ph61.preheader:                            ; preds = %middle.block60, %.lr.ph49
  %.04347.ph = phi i64 [ 0, %.lr.ph49 ], [ %n.vec65, %middle.block60 ]
  br label %scalar.ph61

vector.ph63:                                      ; preds = %.lr.ph49
  %n.vec65 = and i64 %2, 9223372036854775804
  %broadcast.splatinsert73 = insertelement <2 x double> poison, double %24, i64 0
  %broadcast.splat74 = shufflevector <2 x double> %broadcast.splatinsert73, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body67

vector.body67:                                    ; preds = %vector.body67, %vector.ph63
  %index68 = phi i64 [ 0, %vector.ph63 ], [ %index.next75, %vector.body67 ]
  %25 = getelementptr inbounds double, ptr %3, i64 %index68
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  %wide.load69 = load <2 x double>, ptr %25, align 8, !tbaa !5
  %wide.load70 = load <2 x double>, ptr %26, align 8, !tbaa !5
  %27 = getelementptr inbounds double, ptr %4, i64 %index68
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  %wide.load71 = load <2 x double>, ptr %27, align 8, !tbaa !5
  %wide.load72 = load <2 x double>, ptr %28, align 8, !tbaa !5
  %29 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat74, <2 x double> %wide.load71, <2 x double> %wide.load69)
  %30 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat74, <2 x double> %wide.load72, <2 x double> %wide.load70)
  %31 = getelementptr inbounds double, ptr %10, i64 %index68
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  store <2 x double> %29, ptr %31, align 8, !tbaa !5
  store <2 x double> %30, ptr %32, align 8, !tbaa !5
  %index.next75 = add nuw i64 %index68, 4
  %33 = icmp eq i64 %index.next75, %n.vec65
  br i1 %33, label %middle.block60, label %vector.body67, !llvm.loop !13

middle.block60:                                   ; preds = %vector.body67
  %cmp.n76 = icmp eq i64 %n.vec65, %2
  br i1 %cmp.n76, label %._crit_edge50, label %scalar.ph61.preheader

.lr.ph:                                           ; preds = %.lr.ph.preheader92, %.lr.ph
  %.04446 = phi i64 [ %40, %.lr.ph ], [ %.04446.ph, %.lr.ph.preheader92 ]
  %34 = getelementptr inbounds double, ptr %3, i64 %.04446
  %35 = load double, ptr %34, align 8, !tbaa !5
  %36 = getelementptr inbounds double, ptr %4, i64 %.04446
  %37 = load double, ptr %36, align 8, !tbaa !5
  %38 = tail call double @llvm.fmuladd.f64(double %6, double %37, double %35)
  %39 = getelementptr inbounds double, ptr %10, i64 %.04446
  store double %38, ptr %39, align 8, !tbaa !5
  %40 = add nuw nsw i64 %.04446, 1
  %exitcond.not = icmp eq i64 %40, %2
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !14

._crit_edge50:                                    ; preds = %scalar.ph61, %middle.block60, %._crit_edge.thread, %._crit_edge
  tail call void %0(ptr noundef %10, ptr noundef %1, ptr noundef %13) #4
  %41 = icmp sgt i64 %5, 0
  br i1 %41, label %.lr.ph53, label %._crit_edge54

.lr.ph53:                                         ; preds = %._crit_edge50
  %42 = fmul double %6, 2.000000e+00
  %min.iters.check79 = icmp eq i64 %5, 1
  br i1 %min.iters.check79, label %scalar.ph78.preheader, label %vector.ph80

scalar.ph78.preheader:                            ; preds = %middle.block77, %.lr.ph53
  %.051.ph = phi i64 [ 0, %.lr.ph53 ], [ %n.vec82, %middle.block77 ]
  br label %scalar.ph78

vector.ph80:                                      ; preds = %.lr.ph53
  %n.vec82 = and i64 %5, 9223372036854775806
  %broadcast.splatinsert88 = insertelement <2 x double> poison, double %42, i64 0
  %broadcast.splat89 = shufflevector <2 x double> %broadcast.splatinsert88, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body84

vector.body84:                                    ; preds = %vector.body84, %vector.ph80
  %index85 = phi i64 [ 0, %vector.ph80 ], [ %index.next90, %vector.body84 ]
  %43 = getelementptr inbounds double, ptr %12, i64 %index85
  %wide.load86 = load <2 x double>, ptr %43, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %13, i64 %index85
  %wide.load87 = load <2 x double>, ptr %44, align 8, !tbaa !5
  %45 = fsub <2 x double> %wide.load86, %wide.load87
  %46 = fdiv <2 x double> %45, %broadcast.splat89
  %47 = getelementptr inbounds double, ptr %7, i64 %index85
  store <2 x double> %46, ptr %47, align 8, !tbaa !5
  %index.next90 = add nuw i64 %index85, 2
  %48 = icmp eq i64 %index.next90, %n.vec82
  br i1 %48, label %middle.block77, label %vector.body84, !llvm.loop !15

middle.block77:                                   ; preds = %vector.body84
  %cmp.n91 = icmp eq i64 %n.vec82, %5
  br i1 %cmp.n91, label %._crit_edge54, label %scalar.ph78.preheader

scalar.ph61:                                      ; preds = %scalar.ph61.preheader, %scalar.ph61
  %.04347 = phi i64 [ %55, %scalar.ph61 ], [ %.04347.ph, %scalar.ph61.preheader ]
  %49 = getelementptr inbounds double, ptr %3, i64 %.04347
  %50 = load double, ptr %49, align 8, !tbaa !5
  %51 = getelementptr inbounds double, ptr %4, i64 %.04347
  %52 = load double, ptr %51, align 8, !tbaa !5
  %53 = tail call double @llvm.fmuladd.f64(double %24, double %52, double %50)
  %54 = getelementptr inbounds double, ptr %10, i64 %.04347
  store double %53, ptr %54, align 8, !tbaa !5
  %55 = add nuw nsw i64 %.04347, 1
  %exitcond55.not = icmp eq i64 %55, %2
  br i1 %exitcond55.not, label %._crit_edge50, label %scalar.ph61, !llvm.loop !16

._crit_edge54:                                    ; preds = %scalar.ph78, %middle.block77, %._crit_edge50
  tail call void @ct_free(ptr noundef %13)
  tail call void @ct_free(ptr noundef %12)
  tail call void @ct_free(ptr noundef %10)
  ret void

scalar.ph78:                                      ; preds = %scalar.ph78.preheader, %scalar.ph78
  %.051 = phi i64 [ %63, %scalar.ph78 ], [ %.051.ph, %scalar.ph78.preheader ]
  %56 = getelementptr inbounds double, ptr %12, i64 %.051
  %57 = load double, ptr %56, align 8, !tbaa !5
  %58 = getelementptr inbounds double, ptr %13, i64 %.051
  %59 = load double, ptr %58, align 8, !tbaa !5
  %60 = fsub double %57, %59
  %61 = fdiv double %60, %42
  %62 = getelementptr inbounds double, ptr %7, i64 %.051
  store double %61, ptr %62, align 8, !tbaa !5
  %63 = add nuw nsw i64 %.051, 1
  %exitcond56.not = icmp eq i64 %63, %5
  br i1 %exitcond56.not, label %._crit_edge54, label %scalar.ph78, !llvm.loop !17
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #3

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !11, !12}
!14 = distinct !{!14, !10, !12, !11}
!15 = distinct !{!15, !10, !11, !12}
!16 = distinct !{!16, !10, !12, !11}
!17 = distinct !{!17, !10, !12, !11}


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