; 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.493 = external hidden unnamed_addr constant [60 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_impl24scaleshiftmixedlcinplaceEPKNS_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.493, ptr noundef %51)
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %52

52:                                               ; preds = %229, %49
  %53 = load i64, ptr %21, align 8, !tbaa !9
  %54 = load i64, ptr %15, align 8, !tbaa !9
  %55 = load i64, ptr %17, align 8, !tbaa !9
  %56 = add nsw i64 %54, %55
  %57 = sub nsw i64 %56, 1
  %58 = icmp sle i64 %53, %57
  br i1 %58, label %59, label %232

59:                                               ; preds = %52
  %60 = load i64, ptr %21, align 8, !tbaa !9
  %61 = load i64, ptr %15, align 8, !tbaa !9
  %62 = icmp slt i64 %60, %61
  br i1 %62, label %63, label %153

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

81:                                               ; preds = %123, %63
  %82 = load i64, ptr %23, align 8, !tbaa !9
  %83 = load i64, ptr %25, align 8, !tbaa !9
  %84 = icmp sle i64 %82, %83
  br i1 %84, label %85, label %126

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

123:                                              ; preds = %85
  %124 = load i64, ptr %23, align 8, !tbaa !9
  %125 = add nsw i64 %124, 1
  store i64 %125, ptr %23, align 8, !tbaa !9
  br label %81, !llvm.loop !21

126:                                              ; preds = %81
  %127 = load ptr, ptr %18, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %127, i32 0, i32 4
  %129 = load ptr, ptr %128, align 8, !tbaa !20
  %130 = load i64, ptr %21, align 8, !tbaa !9
  %131 = getelementptr inbounds double, ptr %129, i64 %130
  %132 = load double, ptr %131, align 8, !tbaa !18
  %133 = load double, ptr %26, align 8, !tbaa !18
  %134 = fsub double %132, %133
  %135 = load ptr, ptr %18, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %135, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !20
  %138 = load i64, ptr %21, align 8, !tbaa !9
  %139 = getelementptr inbounds double, ptr %137, i64 %138
  store double %134, ptr %139, align 8, !tbaa !18
  %140 = load ptr, ptr %19, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %140, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !20
  %143 = load i64, ptr %21, align 8, !tbaa !9
  %144 = getelementptr inbounds double, ptr %142, i64 %143
  %145 = load double, ptr %144, align 8, !tbaa !18
  %146 = load double, ptr %26, align 8, !tbaa !18
  %147 = fsub double %145, %146
  %148 = load ptr, ptr %19, align 8, !tbaa !5
  %149 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %148, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !20
  %151 = load i64, ptr %21, align 8, !tbaa !9
  %152 = getelementptr inbounds double, ptr %150, i64 %151
  store double %147, ptr %152, align 8, !tbaa !18
  br label %228

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

154:                                              ; preds = %198, %153
  %155 = load i64, ptr %22, align 8, !tbaa !9
  %156 = load i64, ptr %13, align 8, !tbaa !9
  %157 = sub nsw i64 %156, 1
  %158 = icmp sle i64 %155, %157
  br i1 %158, label %159, label %201

159:                                              ; preds = %154
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %160, i32 0, i32 6
  %162 = load ptr, ptr %161, align 8, !tbaa !20
  %163 = load i64, ptr %21, align 8, !tbaa !9
  %164 = load i64, ptr %15, align 8, !tbaa !9
  %165 = sub nsw i64 %163, %164
  %166 = getelementptr inbounds ptr, ptr %162, i64 %165
  %167 = load ptr, ptr %166, align 8, !tbaa !5
  %168 = load i64, ptr %22, align 8, !tbaa !9
  %169 = getelementptr inbounds double, ptr %167, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !18
  store double %170, ptr %27, align 8, !tbaa !18
  %171 = load double, ptr %26, align 8, !tbaa !18
  %172 = load double, ptr %27, align 8, !tbaa !18
  %173 = load ptr, ptr %12, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %173, i32 0, i32 4
  %175 = load ptr, ptr %174, align 8, !tbaa !20
  %176 = load i64, ptr %22, align 8, !tbaa !9
  %177 = getelementptr inbounds double, ptr %175, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !18
  %179 = call double @llvm.fmuladd.f64(double %172, double %178, double %171)
  store double %179, ptr %26, align 8, !tbaa !18
  %180 = load double, ptr %27, align 8, !tbaa !18
  %181 = load ptr, ptr %11, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %181, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !20
  %184 = load i64, ptr %22, align 8, !tbaa !9
  %185 = getelementptr inbounds double, ptr %183, i64 %184
  %186 = load double, ptr %185, align 8, !tbaa !18
  %187 = fmul double %180, %186
  %188 = load ptr, ptr %16, align 8, !tbaa !5
  %189 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %188, i32 0, i32 6
  %190 = load ptr, ptr %189, align 8, !tbaa !20
  %191 = load i64, ptr %21, align 8, !tbaa !9
  %192 = load i64, ptr %15, align 8, !tbaa !9
  %193 = sub nsw i64 %191, %192
  %194 = getelementptr inbounds ptr, ptr %190, i64 %193
  %195 = load ptr, ptr %194, align 8, !tbaa !5
  %196 = load i64, ptr %22, align 8, !tbaa !9
  %197 = getelementptr inbounds double, ptr %195, i64 %196
  store double %187, ptr %197, align 8, !tbaa !18
  br label %198

198:                                              ; preds = %159
  %199 = load i64, ptr %22, align 8, !tbaa !9
  %200 = add nsw i64 %199, 1
  store i64 %200, ptr %22, align 8, !tbaa !9
  br label %154, !llvm.loop !23

201:                                              ; preds = %154
  %202 = load ptr, ptr %18, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %202, i32 0, i32 4
  %204 = load ptr, ptr %203, align 8, !tbaa !20
  %205 = load i64, ptr %21, align 8, !tbaa !9
  %206 = getelementptr inbounds double, ptr %204, i64 %205
  %207 = load double, ptr %206, align 8, !tbaa !18
  %208 = load double, ptr %26, align 8, !tbaa !18
  %209 = fsub double %207, %208
  %210 = load ptr, ptr %18, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %210, i32 0, i32 4
  %212 = load ptr, ptr %211, align 8, !tbaa !20
  %213 = load i64, ptr %21, align 8, !tbaa !9
  %214 = getelementptr inbounds double, ptr %212, i64 %213
  store double %209, ptr %214, align 8, !tbaa !18
  %215 = load ptr, ptr %19, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %215, i32 0, i32 4
  %217 = load ptr, ptr %216, align 8, !tbaa !20
  %218 = load i64, ptr %21, align 8, !tbaa !9
  %219 = getelementptr inbounds double, ptr %217, i64 %218
  %220 = load double, ptr %219, align 8, !tbaa !18
  %221 = load double, ptr %26, align 8, !tbaa !18
  %222 = fsub double %220, %221
  %223 = load ptr, ptr %19, align 8, !tbaa !5
  %224 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %223, i32 0, i32 4
  %225 = load ptr, ptr %224, align 8, !tbaa !20
  %226 = load i64, ptr %21, align 8, !tbaa !9
  %227 = getelementptr inbounds double, ptr %225, i64 %226
  store double %222, ptr %227, align 8, !tbaa !18
  br label %228

228:                                              ; preds = %201, %126
  br label %229

229:                                              ; preds = %228
  %230 = load i64, ptr %21, align 8, !tbaa !9
  %231 = add nsw i64 %230, 1
  store i64 %231, ptr %21, align 8, !tbaa !9
  br label %52, !llvm.loop !24

232:                                              ; preds = %52
  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}


; 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.493 = external hidden unnamed_addr constant [60 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_impl24scaleshiftmixedlcinplaceEPKNS_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 readonly %8, ptr noundef %9) local_unnamed_addr #2 {
  %11 = icmp eq i64 %4, 0
  br i1 %11, label %24, label %12

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, %10
  %25 = phi i1 [ true, %10 ], [ false, %16 ], [ false, %12 ], [ %23, %20 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %25, ptr noundef nonnull @.str.493, ptr noundef %9)
  %26 = add nsw i64 %6, %4
  %.not.not88 = icmp sgt i64 %26, 0
  br i1 %.not.not88, label %.lr.ph91, label %._crit_edge92

.lr.ph91:                                         ; preds = %24
  %.not.not7678 = icmp sgt i64 %2, 0
  %27 = getelementptr inbounds i8, ptr %5, i64 72
  %28 = getelementptr inbounds i8, ptr %1, i64 56
  %29 = getelementptr inbounds i8, ptr %0, i64 56
  %30 = getelementptr inbounds i8, ptr %7, i64 56
  %31 = getelementptr inbounds i8, ptr %8, i64 56
  %32 = getelementptr inbounds i8, ptr %3, i64 184
  %33 = getelementptr inbounds i8, ptr %3, i64 120
  %34 = getelementptr inbounds i8, ptr %3, i64 56
  %xtraiter = and i64 %2, 1
  %35 = icmp eq i64 %2, 1
  %unroll_iter = and i64 %2, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %36

36:                                               ; preds = %.lr.ph91, %._crit_edge86
  %.07189 = phi i64 [ 0, %.lr.ph91 ], [ %109, %._crit_edge86 ]
  %37 = icmp slt i64 %.07189, %4
  br i1 %37, label %39, label %.preheader

.preheader:                                       ; preds = %36
  br i1 %.not.not7678, label %.lr.ph, label %._crit_edge86

.lr.ph:                                           ; preds = %.preheader
  %38 = sub nsw i64 %.07189, %4
  br i1 %35, label %._crit_edge86.loopexit106.unr-lcssa, label %.lr.ph.new

39:                                               ; preds = %36
  %40 = load ptr, ptr %32, align 8, !tbaa !16
  %41 = getelementptr inbounds i64, ptr %40, i64 %.07189
  %42 = load i64, ptr %41, align 8, !tbaa !17
  %43 = getelementptr inbounds i8, ptr %41, i64 8
  %44 = load i64, ptr %43, align 8, !tbaa !17
  %.not.not7781 = icmp slt i64 %42, %44
  br i1 %.not.not7781, label %.lr.ph85, label %._crit_edge86

.lr.ph85:                                         ; preds = %39, %.lr.ph85
  %.083 = phi double [ %54, %.lr.ph85 ], [ 0.000000e+00, %39 ]
  %.07382 = phi i64 [ %59, %.lr.ph85 ], [ %42, %39 ]
  %45 = load ptr, ptr %33, align 8, !tbaa !16
  %46 = getelementptr inbounds i64, ptr %45, i64 %.07382
  %47 = load i64, ptr %46, align 8, !tbaa !17
  %48 = load ptr, ptr %34, align 8, !tbaa !16
  %49 = getelementptr inbounds double, ptr %48, i64 %.07382
  %50 = load double, ptr %49, align 8, !tbaa !18
  %51 = load ptr, ptr %28, align 8, !tbaa !16
  %52 = getelementptr inbounds double, ptr %51, i64 %47
  %53 = load double, ptr %52, align 8, !tbaa !18
  %54 = tail call double @llvm.fmuladd.f64(double %50, double %53, double %.083)
  %55 = load ptr, ptr %29, align 8, !tbaa !16
  %56 = getelementptr inbounds double, ptr %55, i64 %47
  %57 = load double, ptr %56, align 8, !tbaa !18
  %58 = fmul double %50, %57
  store double %58, ptr %49, align 8, !tbaa !18
  %59 = add nsw i64 %.07382, 1
  %exitcond94.not = icmp eq i64 %59, %44
  br i1 %exitcond94.not, label %._crit_edge86, label %.lr.ph85, !llvm.loop !20

.lr.ph.new:                                       ; preds = %.lr.ph, %.lr.ph.new
  %.180 = phi double [ %82, %.lr.ph.new ], [ 0.000000e+00, %.lr.ph ]
  %.07279 = phi i64 [ %87, %.lr.ph.new ], [ 0, %.lr.ph ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph.new ], [ 0, %.lr.ph ]
  %60 = load ptr, ptr %27, align 8, !tbaa !16
  %61 = getelementptr inbounds ptr, ptr %60, i64 %38
  %62 = load ptr, ptr %61, align 8, !tbaa !22
  %63 = getelementptr inbounds double, ptr %62, i64 %.07279
  %64 = load double, ptr %63, align 8, !tbaa !18
  %65 = load ptr, ptr %28, align 8, !tbaa !16
  %66 = getelementptr inbounds double, ptr %65, i64 %.07279
  %67 = load double, ptr %66, align 8, !tbaa !18
  %68 = tail call double @llvm.fmuladd.f64(double %64, double %67, double %.180)
  %69 = load ptr, ptr %29, align 8, !tbaa !16
  %70 = getelementptr inbounds double, ptr %69, i64 %.07279
  %71 = load double, ptr %70, align 8, !tbaa !18
  %72 = fmul double %64, %71
  store double %72, ptr %63, align 8, !tbaa !18
  %73 = or disjoint i64 %.07279, 1
  %74 = load ptr, ptr %27, align 8, !tbaa !16
  %75 = getelementptr inbounds ptr, ptr %74, i64 %38
  %76 = load ptr, ptr %75, align 8, !tbaa !22
  %77 = getelementptr inbounds double, ptr %76, i64 %73
  %78 = load double, ptr %77, align 8, !tbaa !18
  %79 = load ptr, ptr %28, align 8, !tbaa !16
  %80 = getelementptr inbounds double, ptr %79, i64 %73
  %81 = load double, ptr %80, align 8, !tbaa !18
  %82 = tail call double @llvm.fmuladd.f64(double %78, double %81, double %68)
  %83 = load ptr, ptr %29, align 8, !tbaa !16
  %84 = getelementptr inbounds double, ptr %83, i64 %73
  %85 = load double, ptr %84, align 8, !tbaa !18
  %86 = fmul double %78, %85
  store double %86, ptr %77, align 8, !tbaa !18
  %87 = add nuw nsw i64 %.07279, 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_edge86.loopexit106.unr-lcssa, label %.lr.ph.new, !llvm.loop !23

._crit_edge86.loopexit106.unr-lcssa:              ; preds = %.lr.ph.new, %.lr.ph
  %.lcssa.ph = phi double [ poison, %.lr.ph ], [ %82, %.lr.ph.new ]
  %.180.unr = phi double [ 0.000000e+00, %.lr.ph ], [ %82, %.lr.ph.new ]
  %.07279.unr = phi i64 [ 0, %.lr.ph ], [ %87, %.lr.ph.new ]
  br i1 %lcmp.mod.not, label %._crit_edge86, label %._crit_edge86.loopexit106.epilog-lcssa

._crit_edge86.loopexit106.epilog-lcssa:           ; preds = %._crit_edge86.loopexit106.unr-lcssa
  %88 = load ptr, ptr %27, align 8, !tbaa !16
  %89 = getelementptr inbounds ptr, ptr %88, i64 %38
  %90 = load ptr, ptr %89, align 8, !tbaa !22
  %91 = getelementptr inbounds double, ptr %90, i64 %.07279.unr
  %92 = load double, ptr %91, align 8, !tbaa !18
  %93 = load ptr, ptr %28, align 8, !tbaa !16
  %94 = getelementptr inbounds double, ptr %93, i64 %.07279.unr
  %95 = load double, ptr %94, align 8, !tbaa !18
  %96 = tail call double @llvm.fmuladd.f64(double %92, double %95, double %.180.unr)
  %97 = load ptr, ptr %29, align 8, !tbaa !16
  %98 = getelementptr inbounds double, ptr %97, i64 %.07279.unr
  %99 = load double, ptr %98, align 8, !tbaa !18
  %100 = fmul double %92, %99
  store double %100, ptr %91, align 8, !tbaa !18
  br label %._crit_edge86

._crit_edge86:                                    ; preds = %._crit_edge86.loopexit106.epilog-lcssa, %._crit_edge86.loopexit106.unr-lcssa, %.lr.ph85, %.preheader, %39
  %.0.lcssa.sink102 = phi double [ 0.000000e+00, %39 ], [ 0.000000e+00, %.preheader ], [ %54, %.lr.ph85 ], [ %.lcssa.ph, %._crit_edge86.loopexit106.unr-lcssa ], [ %96, %._crit_edge86.loopexit106.epilog-lcssa ]
  %101 = load ptr, ptr %30, align 8, !tbaa !16
  %102 = getelementptr inbounds double, ptr %101, i64 %.07189
  %103 = load double, ptr %102, align 8, !tbaa !18
  %104 = fsub double %103, %.0.lcssa.sink102
  store double %104, ptr %102, align 8, !tbaa !18
  %105 = load ptr, ptr %31, align 8, !tbaa !16
  %106 = getelementptr inbounds double, ptr %105, i64 %.07189
  %107 = load double, ptr %106, align 8, !tbaa !18
  %108 = fsub double %107, %.0.lcssa.sink102
  store double %108, ptr %106, align 8, !tbaa !18
  %109 = add nuw nsw i64 %.07189, 1
  %exitcond95.not = icmp eq i64 %109, %26
  br i1 %exitcond95.not, label %._crit_edge92, label %36, !llvm.loop !24

._crit_edge92:                                    ; preds = %._crit_edge86, %24
  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 = !{!8, !8, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !9, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!13, !13, i64 0}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}


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