; LLVM IR from cvxgrp/scs :: linsys/scs_matrix.ll (scs_normalize_a_p)

; 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.ScsMatrix = type { ptr, ptr, ptr, i32, i32 }
%struct.ScsScaling = type { ptr, ptr, i32, i32, double, double }

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, 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: nounwind
declare void @free(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @_scs_normalize_a_p(ptr noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %11 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 40) #5
  store ptr %11, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.ScsMatrix, ptr %12, i32 0, i32 3
  %14 = load i32, ptr %13, align 8, !tbaa !9
  %15 = sext i32 %14 to i64
  %16 = call noalias ptr @calloc(i64 noundef %15, i64 noundef 8) #5
  store ptr %16, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.ScsMatrix, ptr %17, i32 0, i32 4
  %19 = load i32, ptr %18, align 4, !tbaa !12
  %20 = sext i32 %19 to i64
  %21 = call noalias ptr @calloc(i64 noundef %20, i64 noundef 8) #5
  store ptr %21, ptr %10, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.ScsMatrix, ptr %22, i32 0, i32 3
  %24 = load i32, ptr %23, align 8, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = call noalias ptr @calloc(i64 noundef %25, i64 noundef 8) #5
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ScsScaling, ptr %27, i32 0, i32 0
  store ptr %26, ptr %28, align 8, !tbaa !13
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.ScsMatrix, ptr %29, i32 0, i32 4
  %31 = load i32, ptr %30, align 4, !tbaa !12
  %32 = sext i32 %31 to i64
  %33 = call noalias ptr @calloc(i64 noundef %32, i64 noundef 8) #5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ScsScaling, ptr %34, i32 0, i32 1
  store ptr %33, ptr %35, align 8, !tbaa !16
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ScsMatrix, ptr %36, i32 0, i32 3
  %38 = load i32, ptr %37, align 8, !tbaa !9
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ScsScaling, ptr %39, i32 0, i32 2
  store i32 %38, ptr %40, align 8, !tbaa !17
  store i32 0, ptr %7, align 4, !tbaa !18
  br label %41

41:                                               ; preds = %54, %3
  %42 = load i32, ptr %7, align 4, !tbaa !18
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ScsMatrix, ptr %43, i32 0, i32 3
  %45 = load i32, ptr %44, align 8, !tbaa !9
  %46 = icmp slt i32 %42, %45
  br i1 %46, label %47, label %57

47:                                               ; preds = %41
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ScsScaling, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !13
  %51 = load i32, ptr %7, align 4, !tbaa !18
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds double, ptr %50, i64 %52
  store double 1.000000e+00, ptr %53, align 8, !tbaa !19
  br label %54

54:                                               ; preds = %47
  %55 = load i32, ptr %7, align 4, !tbaa !18
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %7, align 4, !tbaa !18
  br label %41, !llvm.loop !20

57:                                               ; preds = %41
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.ScsMatrix, ptr %58, i32 0, i32 4
  %60 = load i32, ptr %59, align 4, !tbaa !12
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.ScsScaling, ptr %61, i32 0, i32 3
  store i32 %60, ptr %62, align 4, !tbaa !22
  store i32 0, ptr %7, align 4, !tbaa !18
  br label %63

63:                                               ; preds = %76, %57
  %64 = load i32, ptr %7, align 4, !tbaa !18
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ScsMatrix, ptr %65, i32 0, i32 4
  %67 = load i32, ptr %66, align 4, !tbaa !12
  %68 = icmp slt i32 %64, %67
  br i1 %68, label %69, label %79

69:                                               ; preds = %63
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ScsScaling, ptr %70, i32 0, i32 1
  %72 = load ptr, ptr %71, align 8, !tbaa !16
  %73 = load i32, ptr %7, align 4, !tbaa !18
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %72, i64 %74
  store double 1.000000e+00, ptr %75, align 8, !tbaa !19
  br label %76

76:                                               ; preds = %69
  %77 = load i32, ptr %7, align 4, !tbaa !18
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %7, align 4, !tbaa !18
  br label %63, !llvm.loop !23

79:                                               ; preds = %63
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ScsScaling, ptr %80, i32 0, i32 4
  store double 1.000000e+00, ptr %81, align 8, !tbaa !24
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ScsScaling, ptr %82, i32 0, i32 5
  store double 1.000000e+00, ptr %83, align 8, !tbaa !25
  store i32 0, ptr %7, align 4, !tbaa !18
  br label %84

84:                                               ; preds = %99, %79
  %85 = load i32, ptr %7, align 4, !tbaa !18
  %86 = icmp slt i32 %85, 25
  br i1 %86, label %87, label %102

87:                                               ; preds = %84
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  call void @compute_ruiz_mats(ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91, ptr noundef %92)
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  call void @rescale(ptr noundef %93, ptr noundef %94, ptr noundef %95, ptr noundef %96, ptr noundef %97, ptr noundef %98)
  br label %99

99:                                               ; preds = %87
  %100 = load i32, ptr %7, align 4, !tbaa !18
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %7, align 4, !tbaa !18
  br label %84, !llvm.loop !26

102:                                              ; preds = %84
  store i32 0, ptr %7, align 4, !tbaa !18
  br label %103

103:                                              ; preds = %118, %102
  %104 = load i32, ptr %7, align 4, !tbaa !18
  %105 = icmp slt i32 %104, 1
  br i1 %105, label %106, label %121

106:                                              ; preds = %103
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  call void @compute_l2_mats(ptr noundef %107, ptr noundef %108, ptr noundef %109, ptr noundef %110, ptr noundef %111)
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  call void @rescale(ptr noundef %112, ptr noundef %113, ptr noundef %114, ptr noundef %115, ptr noundef %116, ptr noundef %117)
  br label %118

118:                                              ; preds = %106
  %119 = load i32, ptr %7, align 4, !tbaa !18
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %7, align 4, !tbaa !18
  br label %103, !llvm.loop !27

121:                                              ; preds = %103
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %122) #4
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %123) #4
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret ptr %124
}

; Function Attrs: nounwind uwtable
declare hidden void @compute_ruiz_mats(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @rescale(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @compute_l2_mats(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(0,1) "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 = { 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 }
attributes #5 = { nounwind allocsize(0,1) }

!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, !11, i64 24}
!10 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 28}
!13 = !{!14, !6, i64 0}
!14 = !{!"", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !15, i64 24, !15, i64 32}
!15 = !{!"double", !7, i64 0}
!16 = !{!14, !6, i64 8}
!17 = !{!14, !11, i64 16}
!18 = !{!11, !11, i64 0}
!19 = !{!15, !15, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!14, !11, i64 20}
!23 = distinct !{!23, !21}
!24 = !{!14, !15, i64 24}
!25 = !{!14, !15, i64 32}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}


; 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: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @_scs_normalize_a_p(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = tail call noalias dereferenceable_or_null(40) ptr @calloc(i64 noundef 1, i64 noundef 40) #3
  %5 = getelementptr inbounds i8, ptr %1, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = sext i32 %6 to i64
  %8 = tail call noalias ptr @calloc(i64 noundef %7, i64 noundef 8) #3
  %9 = getelementptr inbounds i8, ptr %1, i64 28
  %10 = load i32, ptr %9, align 4, !tbaa !11
  %11 = sext i32 %10 to i64
  %12 = tail call noalias ptr @calloc(i64 noundef %11, i64 noundef 8) #3
  %13 = tail call noalias ptr @calloc(i64 noundef %7, i64 noundef 8) #3
  store ptr %13, ptr %4, align 8, !tbaa !12
  %14 = tail call noalias ptr @calloc(i64 noundef %11, i64 noundef 8) #3
  %15 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr %14, ptr %15, align 8, !tbaa !15
  %16 = getelementptr inbounds i8, ptr %4, i64 16
  store i32 %6, ptr %16, align 8, !tbaa !16
  %17 = icmp sgt i32 %6, 0
  br i1 %17, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %3
  %wide.trip.count = zext nneg i32 %6 to i64
  %min.iters.check = icmp ult i32 %6, 4
  br i1 %min.iters.check, label %.lr.ph.preheader75, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %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 ]
  %18 = getelementptr inbounds double, ptr %13, i64 %index
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %18, align 8, !tbaa !17
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %19, align 8, !tbaa !17
  %index.next = add nuw i64 %index, 4
  %20 = icmp eq i64 %index.next, %n.vec
  br i1 %20, label %middle.block, label %vector.body, !llvm.loop !18

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

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

.lr.ph:                                           ; preds = %.lr.ph.preheader75, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader75 ]
  %21 = getelementptr inbounds double, ptr %13, i64 %indvars.iv
  store double 1.000000e+00, ptr %21, align 8, !tbaa !17
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !22

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %3
  %22 = getelementptr inbounds i8, ptr %4, i64 20
  store i32 %10, ptr %22, align 4, !tbaa !23
  %23 = icmp sgt i32 %10, 0
  br i1 %23, label %.lr.ph53.preheader, label %._crit_edge54

.lr.ph53.preheader:                               ; preds = %._crit_edge
  %wide.trip.count60 = zext nneg i32 %10 to i64
  %min.iters.check65 = icmp ult i32 %10, 4
  br i1 %min.iters.check65, label %.lr.ph53.preheader74, label %vector.ph66

vector.ph66:                                      ; preds = %.lr.ph53.preheader
  %n.vec68 = and i64 %wide.trip.count60, 2147483644
  br label %vector.body70

vector.body70:                                    ; preds = %vector.body70, %vector.ph66
  %index71 = phi i64 [ 0, %vector.ph66 ], [ %index.next72, %vector.body70 ]
  %24 = getelementptr inbounds double, ptr %14, i64 %index71
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %24, align 8, !tbaa !17
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %25, align 8, !tbaa !17
  %index.next72 = add nuw i64 %index71, 4
  %26 = icmp eq i64 %index.next72, %n.vec68
  br i1 %26, label %middle.block63, label %vector.body70, !llvm.loop !24

middle.block63:                                   ; preds = %vector.body70
  %cmp.n73 = icmp eq i64 %n.vec68, %wide.trip.count60
  br i1 %cmp.n73, label %._crit_edge54, label %.lr.ph53.preheader74

.lr.ph53.preheader74:                             ; preds = %middle.block63, %.lr.ph53.preheader
  %indvars.iv57.ph = phi i64 [ 0, %.lr.ph53.preheader ], [ %n.vec68, %middle.block63 ]
  br label %.lr.ph53

.lr.ph53:                                         ; preds = %.lr.ph53.preheader74, %.lr.ph53
  %indvars.iv57 = phi i64 [ %indvars.iv.next58, %.lr.ph53 ], [ %indvars.iv57.ph, %.lr.ph53.preheader74 ]
  %27 = getelementptr inbounds double, ptr %14, i64 %indvars.iv57
  store double 1.000000e+00, ptr %27, align 8, !tbaa !17
  %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
  %exitcond61.not = icmp eq i64 %indvars.iv.next58, %wide.trip.count60
  br i1 %exitcond61.not, label %._crit_edge54, label %.lr.ph53, !llvm.loop !25

._crit_edge54:                                    ; preds = %.lr.ph53, %middle.block63, %._crit_edge
  %28 = getelementptr inbounds i8, ptr %4, i64 24
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %28, align 8, !tbaa !17
  br label %29

29:                                               ; preds = %._crit_edge54, %29
  %.255 = phi i32 [ 0, %._crit_edge54 ], [ %30, %29 ]
  tail call void @compute_ruiz_mats(ptr noundef %0, ptr noundef %1, ptr noundef %8, ptr noundef %12, ptr noundef %2)
  tail call void @rescale(ptr noundef %0, ptr noundef %1, ptr noundef %8, ptr noundef %12, ptr noundef nonnull %4, ptr noundef %2)
  %30 = add nuw nsw i32 %.255, 1
  %exitcond62.not = icmp eq i32 %30, 25
  br i1 %exitcond62.not, label %.critedge, label %29, !llvm.loop !26

.critedge:                                        ; preds = %29
  tail call void @compute_l2_mats(ptr noundef %0, ptr noundef %1, ptr noundef %8, ptr noundef %12, ptr noundef %2)
  tail call void @rescale(ptr noundef %0, ptr noundef %1, ptr noundef %8, ptr noundef %12, ptr noundef nonnull %4, ptr noundef %2)
  tail call void @free(ptr noundef %8) #4
  tail call void @free(ptr noundef %12) #4
  ret ptr %4
}

; Function Attrs: nounwind uwtable
declare hidden void @compute_ruiz_mats(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @rescale(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @compute_l2_mats(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nounwind allocsize(0,1) }
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, !10, i64 24}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 28}
!12 = !{!13, !7, i64 0}
!13 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !14, i64 24, !14, i64 32}
!14 = !{!"double", !8, i64 0}
!15 = !{!13, !7, i64 8}
!16 = !{!13, !10, i64 16}
!17 = !{!14, !14, i64 0}
!18 = distinct !{!18, !19, !20, !21}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !19, !21, !20}
!23 = !{!13, !10, i64 20}
!24 = distinct !{!24, !19, !20, !21}
!25 = distinct !{!25, !19, !21, !20}
!26 = distinct !{!26, !19}


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