; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src (optimization)

; 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.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }

@.str.497 = external hidden unnamed_addr constant [62 x i8], align 1

; 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

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) #1

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

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

30:                                               ; preds = %10
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %31, i32 0, i32 5
  %33 = load i64, ptr %32, align 8, !tbaa !11
  %34 = icmp eq i64 %33, 1
  br i1 %34, label %35, label %47

35:                                               ; preds = %30
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %36, i32 0, i32 6
  %38 = load i64, ptr %37, align 8, !tbaa !16
  %39 = load i64, ptr %15, align 8, !tbaa !9
  %40 = icmp eq i64 %38, %39
  br i1 %40, label %41, label %47

41:                                               ; preds = %35
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %42, i32 0, i32 7
  %44 = load i64, ptr %43, align 8, !tbaa !17
  %45 = load i64, ptr %13, align 8, !tbaa !9
  %46 = icmp eq i64 %44, %45
  br label %47

47:                                               ; preds = %41, %35, %30
  %48 = phi i1 [ false, %35 ], [ false, %30 ], [ %46, %41 ]
  br label %49

49:                                               ; preds = %47, %10
  %50 = phi i1 [ true, %10 ], [ %48, %47 ]
  %51 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %50, ptr noundef @.str.497, ptr noundef %51)
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %52

52:                                               ; preds = %134, %49
  %53 = load i64, ptr %21, align 8, !tbaa !9
  %54 = load i64, ptr %15, align 8, !tbaa !9
  %55 = sub nsw i64 %54, 1
  %56 = icmp sle i64 %53, %55
  br i1 %56, label %57, label %137

57:                                               ; preds = %52
  store double 0.000000e+00, ptr %26, align 8, !tbaa !18
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %58, i32 0, i32 2
  %60 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %59, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !20
  %62 = load i64, ptr %21, align 8, !tbaa !9
  %63 = getelementptr inbounds i64, ptr %61, i64 %62
  %64 = load i64, ptr %63, align 8, !tbaa !9
  store i64 %64, ptr %24, align 8, !tbaa !9
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %65, i32 0, i32 2
  %67 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %66, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !20
  %69 = load i64, ptr %21, align 8, !tbaa !9
  %70 = add nsw i64 %69, 1
  %71 = getelementptr inbounds i64, ptr %68, i64 %70
  %72 = load i64, ptr %71, align 8, !tbaa !9
  %73 = sub nsw i64 %72, 1
  store i64 %73, ptr %25, align 8, !tbaa !9
  %74 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %74, ptr %23, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %117, %57
  %76 = load i64, ptr %23, align 8, !tbaa !9
  %77 = load i64, ptr %25, align 8, !tbaa !9
  %78 = icmp sle i64 %76, %77
  br i1 %78, label %79, label %120

79:                                               ; preds = %75
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %80, i32 0, i32 1
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %81, i32 0, i32 4
  %83 = load ptr, ptr %82, align 8, !tbaa !20
  %84 = load i64, ptr %23, align 8, !tbaa !9
  %85 = getelementptr inbounds i64, ptr %83, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !9
  store i64 %86, ptr %22, align 8, !tbaa !9
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !20
  %91 = load i64, ptr %23, align 8, !tbaa !9
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !18
  store double %93, ptr %27, align 8, !tbaa !18
  %94 = load double, ptr %26, align 8, !tbaa !18
  %95 = load double, ptr %27, align 8, !tbaa !18
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %96, i32 0, i32 4
  %98 = load ptr, ptr %97, align 8, !tbaa !20
  %99 = load i64, ptr %22, align 8, !tbaa !9
  %100 = getelementptr inbounds double, ptr %98, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !18
  %102 = call double @llvm.fmuladd.f64(double %95, double %101, double %94)
  store double %102, ptr %26, align 8, !tbaa !18
  %103 = load double, ptr %27, align 8, !tbaa !18
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %104, i32 0, i32 4
  %106 = load ptr, ptr %105, align 8, !tbaa !20
  %107 = load i64, ptr %22, align 8, !tbaa !9
  %108 = getelementptr inbounds double, ptr %106, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !18
  %110 = fmul double %103, %109
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::sparsematrix", ptr %111, i32 0, i32 0
  %113 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %112, i32 0, i32 4
  %114 = load ptr, ptr %113, align 8, !tbaa !20
  %115 = load i64, ptr %23, align 8, !tbaa !9
  %116 = getelementptr inbounds double, ptr %114, i64 %115
  store double %110, ptr %116, align 8, !tbaa !18
  br label %117

117:                                              ; preds = %79
  %118 = load i64, ptr %23, align 8, !tbaa !9
  %119 = add nsw i64 %118, 1
  store i64 %119, ptr %23, align 8, !tbaa !9
  br label %75, !llvm.loop !21

120:                                              ; preds = %75
  %121 = load ptr, ptr %18, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %121, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !20
  %124 = load i64, ptr %21, align 8, !tbaa !9
  %125 = getelementptr inbounds double, ptr %123, i64 %124
  %126 = load double, ptr %125, align 8, !tbaa !18
  %127 = load double, ptr %26, align 8, !tbaa !18
  %128 = fsub double %126, %127
  %129 = load ptr, ptr %18, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %129, i32 0, i32 4
  %131 = load ptr, ptr %130, align 8, !tbaa !20
  %132 = load i64, ptr %21, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %131, i64 %132
  store double %128, ptr %133, align 8, !tbaa !18
  br label %134

134:                                              ; preds = %120
  %135 = load i64, ptr %21, align 8, !tbaa !9
  %136 = add nsw i64 %135, 1
  store i64 %136, ptr %21, align 8, !tbaa !9
  br label %52, !llvm.loop !23

137:                                              ; preds = %52
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %138

138:                                              ; preds = %205, %137
  %139 = load i64, ptr %21, align 8, !tbaa !9
  %140 = load i64, ptr %17, align 8, !tbaa !9
  %141 = sub nsw i64 %140, 1
  %142 = icmp sle i64 %139, %141
  br i1 %142, label %143, label %208

143:                                              ; preds = %138
  store double 0.000000e+00, ptr %26, align 8, !tbaa !18
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %144

144:                                              ; preds = %184, %143
  %145 = load i64, ptr %22, align 8, !tbaa !9
  %146 = load i64, ptr %13, align 8, !tbaa !9
  %147 = sub nsw i64 %146, 1
  %148 = icmp sle i64 %145, %147
  br i1 %148, label %149, label %187

149:                                              ; preds = %144
  %150 = load ptr, ptr %16, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %150, i32 0, i32 6
  %152 = load ptr, ptr %151, align 8, !tbaa !20
  %153 = load i64, ptr %21, align 8, !tbaa !9
  %154 = getelementptr inbounds ptr, ptr %152, i64 %153
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = load i64, ptr %22, align 8, !tbaa !9
  %157 = getelementptr inbounds double, ptr %155, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !18
  store double %158, ptr %27, align 8, !tbaa !18
  %159 = load double, ptr %26, align 8, !tbaa !18
  %160 = load double, ptr %27, align 8, !tbaa !18
  %161 = load ptr, ptr %12, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %161, i32 0, i32 4
  %163 = load ptr, ptr %162, align 8, !tbaa !20
  %164 = load i64, ptr %22, align 8, !tbaa !9
  %165 = getelementptr inbounds double, ptr %163, i64 %164
  %166 = load double, ptr %165, align 8, !tbaa !18
  %167 = call double @llvm.fmuladd.f64(double %160, double %166, double %159)
  store double %167, ptr %26, align 8, !tbaa !18
  %168 = load double, ptr %27, align 8, !tbaa !18
  %169 = load ptr, ptr %11, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %169, i32 0, i32 4
  %171 = load ptr, ptr %170, align 8, !tbaa !20
  %172 = load i64, ptr %22, align 8, !tbaa !9
  %173 = getelementptr inbounds double, ptr %171, i64 %172
  %174 = load double, ptr %173, align 8, !tbaa !18
  %175 = fmul double %168, %174
  %176 = load ptr, ptr %16, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %176, i32 0, i32 6
  %178 = load ptr, ptr %177, align 8, !tbaa !20
  %179 = load i64, ptr %21, align 8, !tbaa !9
  %180 = getelementptr inbounds ptr, ptr %178, i64 %179
  %181 = load ptr, ptr %180, align 8, !tbaa !5
  %182 = load i64, ptr %22, align 8, !tbaa !9
  %183 = getelementptr inbounds double, ptr %181, i64 %182
  store double %175, ptr %183, align 8, !tbaa !18
  br label %184

184:                                              ; preds = %149
  %185 = load i64, ptr %22, align 8, !tbaa !9
  %186 = add nsw i64 %185, 1
  store i64 %186, ptr %22, align 8, !tbaa !9
  br label %144, !llvm.loop !24

187:                                              ; preds = %144
  %188 = load ptr, ptr %18, align 8, !tbaa !5
  %189 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %188, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !20
  %191 = load i64, ptr %15, align 8, !tbaa !9
  %192 = load i64, ptr %21, align 8, !tbaa !9
  %193 = add nsw i64 %191, %192
  %194 = getelementptr inbounds double, ptr %190, i64 %193
  %195 = load double, ptr %194, align 8, !tbaa !18
  %196 = load double, ptr %26, align 8, !tbaa !18
  %197 = fsub double %195, %196
  %198 = load ptr, ptr %18, align 8, !tbaa !5
  %199 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %198, i32 0, i32 4
  %200 = load ptr, ptr %199, align 8, !tbaa !20
  %201 = load i64, ptr %15, align 8, !tbaa !9
  %202 = load i64, ptr %21, align 8, !tbaa !9
  %203 = add nsw i64 %201, %202
  %204 = getelementptr inbounds double, ptr %200, i64 %203
  store double %197, ptr %204, align 8, !tbaa !18
  br label %205

205:                                              ; preds = %187
  %206 = load i64, ptr %21, align 8, !tbaa !9
  %207 = add nsw i64 %206, 1
  store i64 %207, ptr %21, align 8, !tbaa !9
  br label %138, !llvm.loop !25

208:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 320}
!12 = !{!"_ZTSN11alglib_impl12sparsematrixE", !13, i64 0, !13, i64 64, !13, i64 128, !13, i64 192, !13, i64 256, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360}
!13 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !14, i64 16, !15, i64 24, !7, i64 56}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!12, !10, i64 328}
!17 = !{!12, !10, i64 336}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}


; 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.497 = external hidden unnamed_addr constant [62 x i8], align 1

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl26scaleshiftmixedbrlcinplaceEPKNS_9ae_vectorES2_lPNS_12sparsematrixElPNS_9ae_matrixElPS0_S7_PNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i64 noundef %2, ptr nocapture noundef readonly %3, i64 noundef %4, ptr nocapture noundef readonly %5, i64 noundef %6, ptr nocapture noundef readonly %7, ptr nocapture noundef readnone %8, ptr noundef %9) local_unnamed_addr #2 {
  %11 = icmp eq i64 %4, 0
  br i1 %11, label %.thread, label %12

.thread:                                          ; preds = %10
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext true, ptr noundef nonnull @.str.497, ptr noundef %9)
  br label %.preheader69

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %3, i64 320
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %15 = icmp eq i64 %14, 1
  br i1 %15, label %16, label %24

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %3, i64 328
  %18 = load i64, ptr %17, align 8, !tbaa !14
  %19 = icmp eq i64 %18, %4
  br i1 %19, label %20, label %24

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %3, i64 336
  %22 = load i64, ptr %21, align 8, !tbaa !15
  %23 = icmp eq i64 %22, %2
  br label %24

24:                                               ; preds = %12, %16, %20
  %25 = phi i1 [ false, %16 ], [ false, %12 ], [ %23, %20 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.497, ptr noundef %9)
  %.not.not73 = icmp sgt i64 %4, 0
  br i1 %.not.not73, label %.lr.ph76, label %.preheader69

.lr.ph76:                                         ; preds = %24
  %26 = getelementptr inbounds i8, ptr %3, i64 184
  %27 = getelementptr inbounds i8, ptr %3, i64 120
  %28 = getelementptr inbounds i8, ptr %3, i64 56
  %29 = getelementptr inbounds i8, ptr %1, i64 56
  %30 = getelementptr inbounds i8, ptr %0, i64 56
  %31 = getelementptr inbounds i8, ptr %7, i64 56
  br label %84

.preheader69:                                     ; preds = %._crit_edge, %.thread, %24
  %.not.not6683 = icmp sgt i64 %6, 0
  br i1 %.not.not6683, label %.preheader.lr.ph, label %._crit_edge85

.preheader.lr.ph:                                 ; preds = %.preheader69
  %.not.not6777 = icmp sgt i64 %2, 0
  %32 = getelementptr inbounds i8, ptr %5, i64 72
  %33 = getelementptr inbounds i8, ptr %1, i64 56
  %34 = getelementptr inbounds i8, ptr %0, i64 56
  %35 = getelementptr inbounds i8, ptr %7, i64 56
  br i1 %.not.not6777, label %.preheader.us.preheader, label %._crit_edge85

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter = and i64 %2, 1
  %36 = icmp eq i64 %2, 1
  %unroll_iter = and i64 %2, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge81.us
  %.16284.us = phi i64 [ %83, %._crit_edge81.us ], [ 0, %.preheader.us.preheader ]
  br i1 %36, label %._crit_edge81.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.179.us = phi double [ %59, %.preheader.us.new ], [ 0.000000e+00, %.preheader.us ]
  %.06378.us = phi i64 [ %64, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %37 = load ptr, ptr %32, align 8, !tbaa !16
  %38 = getelementptr inbounds ptr, ptr %37, i64 %.16284.us
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  %40 = getelementptr inbounds double, ptr %39, i64 %.06378.us
  %41 = load double, ptr %40, align 8, !tbaa !18
  %42 = load ptr, ptr %33, align 8, !tbaa !16
  %43 = getelementptr inbounds double, ptr %42, i64 %.06378.us
  %44 = load double, ptr %43, align 8, !tbaa !18
  %45 = tail call double @llvm.fmuladd.f64(double %41, double %44, double %.179.us)
  %46 = load ptr, ptr %34, align 8, !tbaa !16
  %47 = getelementptr inbounds double, ptr %46, i64 %.06378.us
  %48 = load double, ptr %47, align 8, !tbaa !18
  %49 = fmul double %41, %48
  store double %49, ptr %40, align 8, !tbaa !18
  %50 = or disjoint i64 %.06378.us, 1
  %51 = load ptr, ptr %32, align 8, !tbaa !16
  %52 = getelementptr inbounds ptr, ptr %51, i64 %.16284.us
  %53 = load ptr, ptr %52, align 8, !tbaa !17
  %54 = getelementptr inbounds double, ptr %53, i64 %50
  %55 = load double, ptr %54, align 8, !tbaa !18
  %56 = load ptr, ptr %33, align 8, !tbaa !16
  %57 = getelementptr inbounds double, ptr %56, i64 %50
  %58 = load double, ptr %57, align 8, !tbaa !18
  %59 = tail call double @llvm.fmuladd.f64(double %55, double %58, double %45)
  %60 = load ptr, ptr %34, align 8, !tbaa !16
  %61 = getelementptr inbounds double, ptr %60, i64 %50
  %62 = load double, ptr %61, align 8, !tbaa !18
  %63 = fmul double %55, %62
  store double %63, ptr %54, align 8, !tbaa !18
  %64 = add nuw nsw i64 %.06378.us, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge81.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !20

._crit_edge81.us.unr-lcssa:                       ; preds = %.preheader.us.new, %.preheader.us
  %.lcssa.ph = phi double [ poison, %.preheader.us ], [ %59, %.preheader.us.new ]
  %.179.us.unr = phi double [ 0.000000e+00, %.preheader.us ], [ %59, %.preheader.us.new ]
  %.06378.us.unr = phi i64 [ 0, %.preheader.us ], [ %64, %.preheader.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge81.us, label %._crit_edge81.us.epilog-lcssa

._crit_edge81.us.epilog-lcssa:                    ; preds = %._crit_edge81.us.unr-lcssa
  %65 = load ptr, ptr %32, align 8, !tbaa !16
  %66 = getelementptr inbounds ptr, ptr %65, i64 %.16284.us
  %67 = load ptr, ptr %66, align 8, !tbaa !17
  %68 = getelementptr inbounds double, ptr %67, i64 %.06378.us.unr
  %69 = load double, ptr %68, align 8, !tbaa !18
  %70 = load ptr, ptr %33, align 8, !tbaa !16
  %71 = getelementptr inbounds double, ptr %70, i64 %.06378.us.unr
  %72 = load double, ptr %71, align 8, !tbaa !18
  %73 = tail call double @llvm.fmuladd.f64(double %69, double %72, double %.179.us.unr)
  %74 = load ptr, ptr %34, align 8, !tbaa !16
  %75 = getelementptr inbounds double, ptr %74, i64 %.06378.us.unr
  %76 = load double, ptr %75, align 8, !tbaa !18
  %77 = fmul double %69, %76
  store double %77, ptr %68, align 8, !tbaa !18
  br label %._crit_edge81.us

._crit_edge81.us:                                 ; preds = %._crit_edge81.us.unr-lcssa, %._crit_edge81.us.epilog-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge81.us.unr-lcssa ], [ %73, %._crit_edge81.us.epilog-lcssa ]
  %78 = load ptr, ptr %35, align 8, !tbaa !16
  %79 = getelementptr double, ptr %78, i64 %.16284.us
  %80 = getelementptr double, ptr %79, i64 %4
  %81 = load double, ptr %80, align 8, !tbaa !18
  %82 = fsub double %81, %.lcssa
  store double %82, ptr %80, align 8, !tbaa !18
  %83 = add nuw nsw i64 %.16284.us, 1
  %exitcond90.not = icmp eq i64 %83, %6
  br i1 %exitcond90.not, label %._crit_edge85, label %.preheader.us, !llvm.loop !22

84:                                               ; preds = %.lr.ph76, %._crit_edge
  %.06174 = phi i64 [ 0, %.lr.ph76 ], [ %88, %._crit_edge ]
  %85 = load ptr, ptr %26, align 8, !tbaa !16
  %86 = getelementptr inbounds i64, ptr %85, i64 %.06174
  %87 = load i64, ptr %86, align 8, !tbaa !23
  %88 = add nuw nsw i64 %.06174, 1
  %89 = getelementptr inbounds i64, ptr %85, i64 %88
  %90 = load i64, ptr %89, align 8, !tbaa !23
  %.not.not6870 = icmp slt i64 %87, %90
  br i1 %.not.not6870, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %84, %.lr.ph
  %.072 = phi double [ %100, %.lr.ph ], [ 0.000000e+00, %84 ]
  %.06471 = phi i64 [ %105, %.lr.ph ], [ %87, %84 ]
  %91 = load ptr, ptr %27, align 8, !tbaa !16
  %92 = getelementptr inbounds i64, ptr %91, i64 %.06471
  %93 = load i64, ptr %92, align 8, !tbaa !23
  %94 = load ptr, ptr %28, align 8, !tbaa !16
  %95 = getelementptr inbounds double, ptr %94, i64 %.06471
  %96 = load double, ptr %95, align 8, !tbaa !18
  %97 = load ptr, ptr %29, align 8, !tbaa !16
  %98 = getelementptr inbounds double, ptr %97, i64 %93
  %99 = load double, ptr %98, align 8, !tbaa !18
  %100 = tail call double @llvm.fmuladd.f64(double %96, double %99, double %.072)
  %101 = load ptr, ptr %30, align 8, !tbaa !16
  %102 = getelementptr inbounds double, ptr %101, i64 %93
  %103 = load double, ptr %102, align 8, !tbaa !18
  %104 = fmul double %96, %103
  store double %104, ptr %95, align 8, !tbaa !18
  %105 = add nsw i64 %.06471, 1
  %exitcond.not = icmp eq i64 %105, %90
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !24

._crit_edge:                                      ; preds = %.lr.ph, %84
  %.0.lcssa = phi double [ 0.000000e+00, %84 ], [ %100, %.lr.ph ]
  %106 = load ptr, ptr %31, align 8, !tbaa !16
  %107 = getelementptr inbounds double, ptr %106, i64 %.06174
  %108 = load double, ptr %107, align 8, !tbaa !18
  %109 = fsub double %108, %.0.lcssa
  store double %109, ptr %107, align 8, !tbaa !18
  %exitcond88.not = icmp eq i64 %88, %4
  br i1 %exitcond88.not, label %.preheader69, label %84, !llvm.loop !25

._crit_edge85:                                    ; preds = %._crit_edge81.us, %.preheader.lr.ph, %.preheader69
  ret void
}

attributes #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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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" }

!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, !8, i64 320}
!6 = !{!"_ZTSN11alglib_impl12sparsematrixE", !7, i64 0, !7, i64 64, !7, i64 128, !7, i64 192, !7, i64 256, !8, i64 320, !8, i64 328, !8, i64 336, !8, i64 344, !8, i64 352, !8, i64 360}
!7 = !{!"_ZTSN11alglib_impl9ae_vectorE", !8, i64 0, !8, i64 8, !11, i64 16, !12, i64 24, !9, i64 56}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!6, !8, i64 328}
!15 = !{!6, !8, i64 336}
!16 = !{!9, !9, i64 0}
!17 = !{!13, !13, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !9, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!8, !8, i64 0}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !21}


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