; LLVM IR from darnstrom/daqp :: src (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.DAQPWorkspace = type { ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, ptr, ptr, ptr, ptr, i32, ptr, i32, i32, i32, double, ptr, ptr, i32, ptr }

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

; Function Attrs: nounwind uwtable
define dso_local void @normalize_Rinv(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.DAQPWorkspace, ptr %7, i32 0, i32 7
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  %10 = icmp ne ptr %9, null
  br i1 %10, label %11, label %93

11:                                               ; preds = %1
  store i32 0, ptr %3, align 4, !tbaa !13
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %12

12:                                               ; preds = %89, %11
  %13 = load i32, ptr %3, align 4, !tbaa !13
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.DAQPWorkspace, ptr %14, i32 0, i32 3
  %16 = load i32, ptr %15, align 8, !tbaa !14
  %17 = icmp slt i32 %13, %16
  br i1 %17, label %18, label %92

18:                                               ; preds = %12
  store double 0.000000e+00, ptr %6, align 8, !tbaa !15
  %19 = load i32, ptr %3, align 4, !tbaa !13
  store i32 %19, ptr %4, align 4, !tbaa !13
  br label %20

20:                                               ; preds = %43, %18
  %21 = load i32, ptr %4, align 4, !tbaa !13
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.DAQPWorkspace, ptr %22, i32 0, i32 1
  %24 = load i32, ptr %23, align 8, !tbaa !16
  %25 = icmp slt i32 %21, %24
  br i1 %25, label %26, label %48

26:                                               ; preds = %20
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.DAQPWorkspace, ptr %27, i32 0, i32 7
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = load i32, ptr %5, align 4, !tbaa !13
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds double, ptr %29, i64 %31
  %33 = load double, ptr %32, align 8, !tbaa !15
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.DAQPWorkspace, ptr %34, i32 0, i32 7
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = load i32, ptr %5, align 4, !tbaa !13
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds double, ptr %36, i64 %38
  %40 = load double, ptr %39, align 8, !tbaa !15
  %41 = load double, ptr %6, align 8, !tbaa !15
  %42 = call double @llvm.fmuladd.f64(double %33, double %40, double %41)
  store double %42, ptr %6, align 8, !tbaa !15
  br label %43

43:                                               ; preds = %26
  %44 = load i32, ptr %4, align 4, !tbaa !13
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %4, align 4, !tbaa !13
  %46 = load i32, ptr %5, align 4, !tbaa !13
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %5, align 4, !tbaa !13
  br label %20, !llvm.loop !17

48:                                               ; preds = %20
  %49 = load double, ptr %6, align 8, !tbaa !15
  %50 = call double @sqrt(double noundef %49) #4
  %51 = fdiv double 1.000000e+00, %50
  store double %51, ptr %6, align 8, !tbaa !15
  %52 = load double, ptr %6, align 8, !tbaa !15
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.DAQPWorkspace, ptr %53, i32 0, i32 10
  %55 = load ptr, ptr %54, align 8, !tbaa !19
  %56 = load i32, ptr %3, align 4, !tbaa !13
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds double, ptr %55, i64 %57
  store double %52, ptr %58, align 8, !tbaa !15
  %59 = load i32, ptr %3, align 4, !tbaa !13
  store i32 %59, ptr %4, align 4, !tbaa !13
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.DAQPWorkspace, ptr %60, i32 0, i32 1
  %62 = load i32, ptr %61, align 8, !tbaa !16
  %63 = load i32, ptr %3, align 4, !tbaa !13
  %64 = sub nsw i32 %62, %63
  %65 = load i32, ptr %5, align 4, !tbaa !13
  %66 = sub nsw i32 %65, %64
  store i32 %66, ptr %5, align 4, !tbaa !13
  br label %67

67:                                               ; preds = %83, %48
  %68 = load i32, ptr %4, align 4, !tbaa !13
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.DAQPWorkspace, ptr %69, i32 0, i32 1
  %71 = load i32, ptr %70, align 8, !tbaa !16
  %72 = icmp slt i32 %68, %71
  br i1 %72, label %73, label %88

73:                                               ; preds = %67
  %74 = load double, ptr %6, align 8, !tbaa !15
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.DAQPWorkspace, ptr %75, i32 0, i32 7
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  %78 = load i32, ptr %5, align 4, !tbaa !13
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds double, ptr %77, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !15
  %82 = fmul double %81, %74
  store double %82, ptr %80, align 8, !tbaa !15
  br label %83

83:                                               ; preds = %73
  %84 = load i32, ptr %4, align 4, !tbaa !13
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %4, align 4, !tbaa !13
  %86 = load i32, ptr %5, align 4, !tbaa !13
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %5, align 4, !tbaa !13
  br label %67, !llvm.loop !20

88:                                               ; preds = %67
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %3, align 4, !tbaa !13
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %3, align 4, !tbaa !13
  br label %12, !llvm.loop !21

92:                                               ; preds = %12
  br label %93

93:                                               ; preds = %92, %1
  call void @llvm.lifetime.end.p0(i64 8, 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.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind
declare double @sqrt(double noundef) #2

; 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 = { 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 "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, !6, i64 48}
!10 = !{!"", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !12, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !11, i64 168, !6, i64 176, !11, i64 184, !11, i64 188, !11, i64 192, !12, i64 200, !6, i64 208, !6, i64 216, !11, i64 224, !6, i64 232}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 16}
!15 = !{!12, !12, i64 0}
!16 = !{!10, !11, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!10, !6, i64 72}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}


; 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: nofree nounwind memory(readwrite, inaccessiblemem: write) uwtable
define dso_local void @normalize_Rinv(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 48
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %.loopexit, label %.preheader33

.preheader33:                                     ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load i32, ptr %4, align 8, !tbaa !12
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %.preheader33
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = getelementptr inbounds i8, ptr %0, i64 72
  %.pre = load i32, ptr %7, align 8, !tbaa !13
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge42
  %9 = phi i32 [ %.pre, %.preheader.lr.ph ], [ %40, %._crit_edge42 ]
  %indvars.iv53 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next54, %._crit_edge42 ]
  %.02845 = phi i32 [ 0, %.preheader.lr.ph ], [ %.2.lcssa, %._crit_edge42 ]
  %10 = sext i32 %9 to i64
  %11 = icmp slt i64 %indvars.iv53, %10
  br i1 %11, label %.lr.ph, label %.preheader.._crit_edge_crit_edge

.preheader.._crit_edge_crit_edge:                 ; preds = %.preheader
  %.pre56 = trunc nuw nsw i64 %indvars.iv53 to i32
  br label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %12 = trunc i64 %indvars.iv53 to i32
  %13 = trunc i64 %indvars.iv53 to i32
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = sext i32 %.02845 to i64
  %16 = trunc nuw nsw i64 %indvars.iv53 to i32
  %17 = sub i32 %9, %13
  %xtraiter = and i32 %17, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.preheader

.prol.preheader:                                  ; preds = %.lr.ph, %.prol.preheader
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.prol.preheader ], [ %15, %.lr.ph ]
  %.036.prol = phi double [ %20, %.prol.preheader ], [ 0.000000e+00, %.lr.ph ]
  %.02934.prol = phi i32 [ %21, %.prol.preheader ], [ %16, %.lr.ph ]
  %prol.iter = phi i32 [ %prol.iter.next, %.prol.preheader ], [ 0, %.lr.ph ]
  %18 = getelementptr inbounds double, ptr %14, i64 %indvars.iv.prol
  %19 = load double, ptr %18, align 8, !tbaa !14
  %20 = tail call double @llvm.fmuladd.f64(double %19, double %19, double %.036.prol)
  %21 = add nuw nsw i32 %.02934.prol, 1
  %indvars.iv.next.prol = add nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.prol.loopexit, label %.prol.preheader, !llvm.loop !15

.prol.loopexit:                                   ; preds = %.prol.preheader, %.lr.ph
  %.lcssa.unr = phi double [ poison, %.lr.ph ], [ %20, %.prol.preheader ]
  %indvars.iv.next.lcssa.unr = phi i64 [ poison, %.lr.ph ], [ %indvars.iv.next.prol, %.prol.preheader ]
  %indvars.iv.unr = phi i64 [ %15, %.lr.ph ], [ %indvars.iv.next.prol, %.prol.preheader ]
  %.036.unr = phi double [ 0.000000e+00, %.lr.ph ], [ %20, %.prol.preheader ]
  %.02934.unr = phi i32 [ %16, %.lr.ph ], [ %21, %.prol.preheader ]
  %22 = sub i32 %12, %9
  %23 = icmp ugt i32 %22, -4
  br i1 %23, label %._crit_edge.loopexit, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %14, i64 8
  %invariant.gep65 = getelementptr i8, ptr %14, i64 16
  %invariant.gep67 = getelementptr i8, ptr %14, i64 24
  br label %24

24:                                               ; preds = %24, %.lr.ph.new
  %indvars.iv = phi i64 [ %indvars.iv.unr, %.lr.ph.new ], [ %indvars.iv.next.3, %24 ]
  %.036 = phi double [ %.036.unr, %.lr.ph.new ], [ %33, %24 ]
  %.02934 = phi i32 [ %.02934.unr, %.lr.ph.new ], [ %34, %24 ]
  %25 = getelementptr inbounds double, ptr %14, i64 %indvars.iv
  %26 = load double, ptr %25, align 8, !tbaa !14
  %27 = tail call double @llvm.fmuladd.f64(double %26, double %26, double %.036)
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv
  %28 = load double, ptr %gep, align 8, !tbaa !14
  %29 = tail call double @llvm.fmuladd.f64(double %28, double %28, double %27)
  %gep66 = getelementptr double, ptr %invariant.gep65, i64 %indvars.iv
  %30 = load double, ptr %gep66, align 8, !tbaa !14
  %31 = tail call double @llvm.fmuladd.f64(double %30, double %30, double %29)
  %gep68 = getelementptr double, ptr %invariant.gep67, i64 %indvars.iv
  %32 = load double, ptr %gep68, align 8, !tbaa !14
  %33 = tail call double @llvm.fmuladd.f64(double %32, double %32, double %31)
  %34 = add nuw nsw i32 %.02934, 4
  %indvars.iv.next.3 = add nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i32 %34, %9
  br i1 %exitcond.not.3, label %._crit_edge.loopexit, label %24, !llvm.loop !17

._crit_edge.loopexit:                             ; preds = %24, %.prol.loopexit
  %.lcssa = phi double [ %.lcssa.unr, %.prol.loopexit ], [ %33, %24 ]
  %indvars.iv.next.lcssa = phi i64 [ %indvars.iv.next.lcssa.unr, %.prol.loopexit ], [ %indvars.iv.next.3, %24 ]
  %35 = trunc nsw i64 %indvars.iv.next.lcssa to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %.preheader.._crit_edge_crit_edge, %._crit_edge.loopexit
  %.pre-phi = phi i32 [ %.pre56, %.preheader.._crit_edge_crit_edge ], [ %16, %._crit_edge.loopexit ]
  %.1.lcssa = phi i32 [ %.02845, %.preheader.._crit_edge_crit_edge ], [ %35, %._crit_edge.loopexit ]
  %.0.lcssa = phi double [ 0.000000e+00, %.preheader.._crit_edge_crit_edge ], [ %.lcssa, %._crit_edge.loopexit ]
  %36 = tail call double @sqrt(double noundef %.0.lcssa) #3
  %37 = fdiv double 1.000000e+00, %36
  %38 = load ptr, ptr %8, align 8, !tbaa !19
  %39 = getelementptr inbounds double, ptr %38, i64 %indvars.iv53
  store double %37, ptr %39, align 8, !tbaa !14
  %40 = load i32, ptr %7, align 8, !tbaa !13
  %.neg = add i32 %.1.lcssa, %.pre-phi
  %41 = sub i32 %.neg, %40
  %42 = sext i32 %40 to i64
  %43 = icmp slt i64 %indvars.iv53, %42
  br i1 %43, label %.lr.ph41, label %._crit_edge42

.lr.ph41:                                         ; preds = %._crit_edge
  %44 = load ptr, ptr %2, align 8, !tbaa !5
  %45 = sext i32 %41 to i64
  %46 = xor i32 %.pre-phi, -1
  %47 = add i32 %40, %46
  %48 = zext i32 %47 to i64
  %49 = add nuw nsw i64 %48, 1
  %min.iters.check = icmp ult i32 %47, 3
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph41
  %n.vec = and i64 %49, 8589934588
  %ind.end = add nsw i64 %n.vec, %45
  %.cast = trunc i64 %n.vec to i32
  %ind.end57 = add i32 %.pre-phi, %.cast
  %broadcast.splatinsert = insertelement <2 x double> poison, double %37, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %invariant.gep69 = getelementptr double, ptr %44, i64 %45
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %gep70 = getelementptr double, ptr %invariant.gep69, i64 %index
  %50 = getelementptr inbounds i8, ptr %gep70, i64 16
  %wide.load = load <2 x double>, ptr %gep70, align 8, !tbaa !14
  %wide.load59 = load <2 x double>, ptr %50, align 8, !tbaa !14
  %51 = fmul <2 x double> %broadcast.splat, %wide.load
  %52 = fmul <2 x double> %broadcast.splat, %wide.load59
  store <2 x double> %51, ptr %gep70, align 8, !tbaa !14
  store <2 x double> %52, ptr %50, align 8, !tbaa !14
  %index.next = add nuw i64 %index, 4
  %53 = icmp eq i64 %index.next, %n.vec
  br i1 %53, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %49, %n.vec
  br i1 %cmp.n, label %._crit_edge42.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph41
  %indvars.iv49.ph = phi i64 [ %45, %.lr.ph41 ], [ %ind.end, %middle.block ]
  %.13038.ph = phi i32 [ %.pre-phi, %.lr.ph41 ], [ %ind.end57, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv49 = phi i64 [ %indvars.iv.next50, %scalar.ph ], [ %indvars.iv49.ph, %scalar.ph.preheader ]
  %.13038 = phi i32 [ %57, %scalar.ph ], [ %.13038.ph, %scalar.ph.preheader ]
  %54 = getelementptr inbounds double, ptr %44, i64 %indvars.iv49
  %55 = load double, ptr %54, align 8, !tbaa !14
  %56 = fmul double %37, %55
  store double %56, ptr %54, align 8, !tbaa !14
  %57 = add nuw nsw i32 %.13038, 1
  %indvars.iv.next50 = add nsw i64 %indvars.iv49, 1
  %exitcond52.not = icmp eq i32 %57, %40
  br i1 %exitcond52.not, label %._crit_edge42.loopexit, label %scalar.ph, !llvm.loop !23

._crit_edge42.loopexit:                           ; preds = %scalar.ph, %middle.block
  %indvars.iv.next50.lcssa = phi i64 [ %ind.end, %middle.block ], [ %indvars.iv.next50, %scalar.ph ]
  %58 = trunc nsw i64 %indvars.iv.next50.lcssa to i32
  br label %._crit_edge42

._crit_edge42:                                    ; preds = %._crit_edge42.loopexit, %._crit_edge
  %.2.lcssa = phi i32 [ %41, %._crit_edge ], [ %58, %._crit_edge42.loopexit ]
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %59 = load i32, ptr %4, align 8, !tbaa !12
  %60 = sext i32 %59 to i64
  %61 = icmp slt i64 %indvars.iv.next54, %60
  br i1 %61, label %.preheader, label %.loopexit, !llvm.loop !24

.loopexit:                                        ; preds = %._crit_edge42, %.preheader33, %1
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #1

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

attributes #0 = { nofree nounwind memory(readwrite, inaccessiblemem: write) 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 nofree nounwind willreturn memory(write) "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 = { 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 48}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !11, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !10, i64 168, !7, i64 176, !10, i64 184, !10, i64 188, !10, i64 192, !11, i64 200, !7, i64 208, !7, i64 216, !10, i64 224, !7, i64 232}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !10, i64 16}
!13 = !{!6, !10, i64 8}
!14 = !{!11, !11, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !7, i64 72}
!20 = distinct !{!20, !18, !21, !22}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = distinct !{!23, !18, !22, !21}
!24 = distinct !{!24, !18}


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