; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (interpolation)

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

@.str.320 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.321 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.322 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.323 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.324 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.325 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.326 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.327 = external hidden unnamed_addr constant [38 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; 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) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl18parametricrdpfixedEPNS_9ae_matrixEllldS1_PNS_9ae_vectorEPlPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, double noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #3 {
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.alglib_impl::ae_frame", align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i8, align 1
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca double, align 8
  %33 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %34 = alloca %"struct.alglib_impl::ae_vector", align 8
  %35 = alloca %"struct.alglib_impl::ae_vector", align 8
  %36 = alloca %"struct.alglib_impl::ae_vector", align 8
  %37 = alloca %"struct.alglib_impl::ae_vector", align 8
  %38 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i64 %1, ptr %11, align 8, !tbaa !9
  store i64 %2, ptr %12, align 8, !tbaa !9
  store i64 %3, ptr %13, align 8, !tbaa !9
  store double %4, ptr %14, align 8, !tbaa !11
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  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 1, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %35) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %36) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %37) #4
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %39, ptr noundef %19)
  call void @llvm.memset.p0.i64(ptr align 8 %33, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %34, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %35, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %36, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %37, i8 0, i64 64, i1 false)
  %40 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %40)
  %41 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %41)
  %42 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 0, ptr %42, align 8, !tbaa !9
  %43 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %33, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %43, i1 noundef zeroext true)
  %44 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %34, i64 noundef 0, i64 noundef 3, ptr noundef %44, i1 noundef zeroext true)
  %45 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %35, i64 noundef 0, i64 noundef 2, ptr noundef %45, i1 noundef zeroext true)
  %46 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %36, i64 noundef 0, i64 noundef 3, ptr noundef %46, i1 noundef zeroext true)
  %47 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %37, i64 noundef 0, i64 noundef 3, ptr noundef %47, i1 noundef zeroext true)
  %48 = load i64, ptr %11, align 8, !tbaa !9
  %49 = icmp sge i64 %48, 0
  %50 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef @.str.320, ptr noundef %50)
  %51 = load i64, ptr %12, align 8, !tbaa !9
  %52 = icmp sge i64 %51, 1
  %53 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef @.str.321, ptr noundef %53)
  %54 = load i64, ptr %13, align 8, !tbaa !9
  %55 = icmp sge i64 %54, 0
  %56 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %55, ptr noundef @.str.322, ptr noundef %56)
  %57 = load double, ptr %14, align 8, !tbaa !11
  %58 = load ptr, ptr %18, align 8, !tbaa !5
  %59 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %57, ptr noundef %58)
  br i1 %59, label %60, label %63

60:                                               ; preds = %9
  %61 = load double, ptr %14, align 8, !tbaa !11
  %62 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %61, double noundef 0.000000e+00)
  br label %63

63:                                               ; preds = %60, %9
  %64 = phi i1 [ false, %9 ], [ %62, %60 ]
  %65 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %64, ptr noundef @.str.323, ptr noundef %65)
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %66, i32 0, i32 0
  %68 = load i64, ptr %67, align 8, !tbaa !13
  %69 = load i64, ptr %11, align 8, !tbaa !9
  %70 = icmp sge i64 %68, %69
  %71 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %70, ptr noundef @.str.324, ptr noundef %71)
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %72, i32 0, i32 1
  %74 = load i64, ptr %73, align 8, !tbaa !17
  %75 = load i64, ptr %12, align 8, !tbaa !9
  %76 = icmp sge i64 %74, %75
  %77 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %76, ptr noundef @.str.325, ptr noundef %77)
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = load i64, ptr %11, align 8, !tbaa !9
  %80 = load i64, ptr %12, align 8, !tbaa !9
  %81 = load ptr, ptr %18, align 8, !tbaa !5
  %82 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %78, i64 noundef %79, i64 noundef %80, ptr noundef %81)
  %83 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %82, ptr noundef @.str.326, ptr noundef %83)
  %84 = load i64, ptr %11, align 8, !tbaa !9
  %85 = icmp sle i64 %84, 1
  br i1 %85, label %86, label %89

86:                                               ; preds = %63
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 0, ptr %87, align 8, !tbaa !9
  %88 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %88)
  store i32 1, ptr %38, align 4
  br label %477

89:                                               ; preds = %63
  store i8 1, ptr %23, align 1, !tbaa !18
  store i64 1, ptr %20, align 8, !tbaa !9
  br label %90

90:                                               ; preds = %130, %89
  %91 = load i64, ptr %20, align 8, !tbaa !9
  %92 = load i64, ptr %11, align 8, !tbaa !9
  %93 = sub nsw i64 %92, 1
  %94 = icmp sle i64 %91, %93
  br i1 %94, label %95, label %133

95:                                               ; preds = %90
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %96

96:                                               ; preds = %126, %95
  %97 = load i64, ptr %21, align 8, !tbaa !9
  %98 = load i64, ptr %12, align 8, !tbaa !9
  %99 = sub nsw i64 %98, 1
  %100 = icmp sle i64 %97, %99
  br i1 %100, label %101, label %129

101:                                              ; preds = %96
  %102 = load i8, ptr %23, align 1, !tbaa !18, !range !19, !noundef !20
  %103 = trunc i8 %102 to i1
  br i1 %103, label %104, label %123

104:                                              ; preds = %101
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %105, i32 0, i32 6
  %107 = load ptr, ptr %106, align 8, !tbaa !21
  %108 = load i64, ptr %20, align 8, !tbaa !9
  %109 = getelementptr inbounds ptr, ptr %107, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = load i64, ptr %21, align 8, !tbaa !9
  %112 = getelementptr inbounds double, ptr %110, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !11
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %114, i32 0, i32 6
  %116 = load ptr, ptr %115, align 8, !tbaa !21
  %117 = getelementptr inbounds ptr, ptr %116, i64 0
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = load i64, ptr %21, align 8, !tbaa !9
  %120 = getelementptr inbounds double, ptr %118, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !11
  %122 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %113, double noundef %121)
  br label %123

123:                                              ; preds = %104, %101
  %124 = phi i1 [ false, %101 ], [ %122, %104 ]
  %125 = zext i1 %124 to i8
  store i8 %125, ptr %23, align 1, !tbaa !18
  br label %126

126:                                              ; preds = %123
  %127 = load i64, ptr %21, align 8, !tbaa !9
  %128 = add nsw i64 %127, 1
  store i64 %128, ptr %21, align 8, !tbaa !9
  br label %96, !llvm.loop !22

129:                                              ; preds = %96
  br label %130

130:                                              ; preds = %129
  %131 = load i64, ptr %20, align 8, !tbaa !9
  %132 = add nsw i64 %131, 1
  store i64 %132, ptr %20, align 8, !tbaa !9
  br label %90, !llvm.loop !24

133:                                              ; preds = %90
  %134 = load i8, ptr %23, align 1, !tbaa !18, !range !19, !noundef !20
  %135 = trunc i8 %134 to i1
  br i1 %135, label %136, label %139

136:                                              ; preds = %133
  %137 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 0, ptr %137, align 8, !tbaa !9
  %138 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %138)
  store i32 1, ptr %38, align 4
  br label %477

139:                                              ; preds = %133
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = load i64, ptr %11, align 8, !tbaa !9
  %142 = sub nsw i64 %141, 1
  %143 = load i64, ptr %12, align 8, !tbaa !9
  %144 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_implL31parametric_rdpanalyzesectionparEPNS_9ae_matrixElllPlPdPNS_8ae_stateE(ptr noundef %140, i64 noundef 0, i64 noundef %142, i64 noundef %143, ptr noundef %31, ptr noundef %32, ptr noundef %144)
  %145 = load i64, ptr %11, align 8, !tbaa !9
  %146 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %33, i64 noundef %145, i64 noundef 4, ptr noundef %146)
  %147 = load i64, ptr %11, align 8, !tbaa !9
  %148 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %34, i64 noundef %147, ptr noundef %148)
  %149 = load i64, ptr %11, align 8, !tbaa !9
  %150 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %35, i64 noundef %149, ptr noundef %150)
  %151 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 1, ptr %151, align 8, !tbaa !9
  %152 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %153 = load ptr, ptr %152, align 8, !tbaa !21
  %154 = getelementptr inbounds ptr, ptr %153, i64 0
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = getelementptr inbounds double, ptr %155, i64 0
  store double 0.000000e+00, ptr %156, align 8, !tbaa !11
  %157 = load i64, ptr %11, align 8, !tbaa !9
  %158 = sub nsw i64 %157, 1
  %159 = sitofp i64 %158 to double
  %160 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %161 = load ptr, ptr %160, align 8, !tbaa !21
  %162 = getelementptr inbounds ptr, ptr %161, i64 0
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  %164 = getelementptr inbounds double, ptr %163, i64 1
  store double %159, ptr %164, align 8, !tbaa !11
  %165 = load i64, ptr %31, align 8, !tbaa !9
  %166 = sitofp i64 %165 to double
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %168 = load ptr, ptr %167, align 8, !tbaa !21
  %169 = getelementptr inbounds ptr, ptr %168, i64 0
  %170 = load ptr, ptr %169, align 8, !tbaa !5
  %171 = getelementptr inbounds double, ptr %170, i64 2
  store double %166, ptr %171, align 8, !tbaa !11
  %172 = load double, ptr %32, align 8, !tbaa !11
  %173 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %174 = load ptr, ptr %173, align 8, !tbaa !21
  %175 = getelementptr inbounds ptr, ptr %174, i64 0
  %176 = load ptr, ptr %175, align 8, !tbaa !5
  %177 = getelementptr inbounds double, ptr %176, i64 3
  store double %172, ptr %177, align 8, !tbaa !11
  %178 = load double, ptr %32, align 8, !tbaa !11
  %179 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %180 = load ptr, ptr %179, align 8, !tbaa !21
  %181 = getelementptr inbounds double, ptr %180, i64 0
  store double %178, ptr %181, align 8, !tbaa !11
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !21
  %184 = getelementptr inbounds i64, ptr %183, i64 0
  store i64 0, ptr %184, align 8, !tbaa !9
  %185 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %186 = load ptr, ptr %185, align 8, !tbaa !21
  %187 = getelementptr inbounds ptr, ptr %186, i64 0
  %188 = load ptr, ptr %187, align 8, !tbaa !5
  %189 = getelementptr inbounds double, ptr %188, i64 1
  %190 = load double, ptr %189, align 8, !tbaa !11
  %191 = load i64, ptr %11, align 8, !tbaa !9
  %192 = sub nsw i64 %191, 1
  %193 = sitofp i64 %192 to double
  %194 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %190, double noundef %193)
  %195 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %194, ptr noundef @.str.327, ptr noundef %195)
  br label %196

196:                                              ; preds = %223, %139
  %197 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %198 = load ptr, ptr %197, align 8, !tbaa !21
  %199 = getelementptr inbounds double, ptr %198, i64 0
  %200 = load double, ptr %199, align 8, !tbaa !11
  %201 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %200, double noundef 0.000000e+00)
  br i1 %201, label %202, label %203

202:                                              ; preds = %196
  br label %341

203:                                              ; preds = %196
  %204 = load double, ptr %14, align 8, !tbaa !11
  %205 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %204, double noundef 0.000000e+00)
  br i1 %205, label %206, label %214

206:                                              ; preds = %203
  %207 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %208 = load ptr, ptr %207, align 8, !tbaa !21
  %209 = getelementptr inbounds double, ptr %208, i64 0
  %210 = load double, ptr %209, align 8, !tbaa !11
  %211 = load double, ptr %14, align 8, !tbaa !11
  %212 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %210, double noundef %211)
  br i1 %212, label %213, label %214

213:                                              ; preds = %206
  br label %341

214:                                              ; preds = %206, %203
  %215 = load i64, ptr %13, align 8, !tbaa !9
  %216 = icmp sgt i64 %215, 0
  br i1 %216, label %217, label %223

217:                                              ; preds = %214
  %218 = load ptr, ptr %17, align 8, !tbaa !5
  %219 = load i64, ptr %218, align 8, !tbaa !9
  %220 = load i64, ptr %13, align 8, !tbaa !9
  %221 = icmp sge i64 %219, %220
  br i1 %221, label %222, label %223

222:                                              ; preds = %217
  br label %341

223:                                              ; preds = %217, %214
  %224 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %225 = load ptr, ptr %224, align 8, !tbaa !21
  %226 = getelementptr inbounds i64, ptr %225, i64 0
  %227 = load i64, ptr %226, align 8, !tbaa !9
  store i64 %227, ptr %22, align 8, !tbaa !9
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %229 = load ptr, ptr %228, align 8, !tbaa !21
  %230 = load i64, ptr %22, align 8, !tbaa !9
  %231 = getelementptr inbounds ptr, ptr %229, i64 %230
  %232 = load ptr, ptr %231, align 8, !tbaa !5
  %233 = getelementptr inbounds double, ptr %232, i64 0
  %234 = load double, ptr %233, align 8, !tbaa !11
  %235 = load ptr, ptr %18, align 8, !tbaa !5
  %236 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %234, ptr noundef %235)
  store i64 %236, ptr %24, align 8, !tbaa !9
  %237 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %238 = load ptr, ptr %237, align 8, !tbaa !21
  %239 = load i64, ptr %22, align 8, !tbaa !9
  %240 = getelementptr inbounds ptr, ptr %238, i64 %239
  %241 = load ptr, ptr %240, align 8, !tbaa !5
  %242 = getelementptr inbounds double, ptr %241, i64 1
  %243 = load double, ptr %242, align 8, !tbaa !11
  %244 = load ptr, ptr %18, align 8, !tbaa !5
  %245 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %243, ptr noundef %244)
  store i64 %245, ptr %25, align 8, !tbaa !9
  %246 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %247 = load ptr, ptr %246, align 8, !tbaa !21
  %248 = load i64, ptr %22, align 8, !tbaa !9
  %249 = getelementptr inbounds ptr, ptr %247, i64 %248
  %250 = load ptr, ptr %249, align 8, !tbaa !5
  %251 = getelementptr inbounds double, ptr %250, i64 2
  %252 = load double, ptr %251, align 8, !tbaa !11
  %253 = load ptr, ptr %18, align 8, !tbaa !5
  %254 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %252, ptr noundef %253)
  store i64 %254, ptr %26, align 8, !tbaa !9
  %255 = load ptr, ptr %10, align 8, !tbaa !5
  %256 = load i64, ptr %24, align 8, !tbaa !9
  %257 = load i64, ptr %26, align 8, !tbaa !9
  %258 = load i64, ptr %12, align 8, !tbaa !9
  %259 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_implL31parametric_rdpanalyzesectionparEPNS_9ae_matrixElllPlPdPNS_8ae_stateE(ptr noundef %255, i64 noundef %256, i64 noundef %257, i64 noundef %258, ptr noundef %29, ptr noundef %27, ptr noundef %259)
  %260 = load ptr, ptr %10, align 8, !tbaa !5
  %261 = load i64, ptr %26, align 8, !tbaa !9
  %262 = load i64, ptr %25, align 8, !tbaa !9
  %263 = load i64, ptr %12, align 8, !tbaa !9
  %264 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_implL31parametric_rdpanalyzesectionparEPNS_9ae_matrixElllPlPdPNS_8ae_stateE(ptr noundef %260, i64 noundef %261, i64 noundef %262, i64 noundef %263, ptr noundef %30, ptr noundef %28, ptr noundef %264)
  %265 = load i64, ptr %24, align 8, !tbaa !9
  %266 = sitofp i64 %265 to double
  %267 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %268 = load ptr, ptr %267, align 8, !tbaa !21
  %269 = load i64, ptr %22, align 8, !tbaa !9
  %270 = getelementptr inbounds ptr, ptr %268, i64 %269
  %271 = load ptr, ptr %270, align 8, !tbaa !5
  %272 = getelementptr inbounds double, ptr %271, i64 0
  store double %266, ptr %272, align 8, !tbaa !11
  %273 = load i64, ptr %26, align 8, !tbaa !9
  %274 = sitofp i64 %273 to double
  %275 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %276 = load ptr, ptr %275, align 8, !tbaa !21
  %277 = load i64, ptr %22, align 8, !tbaa !9
  %278 = getelementptr inbounds ptr, ptr %276, i64 %277
  %279 = load ptr, ptr %278, align 8, !tbaa !5
  %280 = getelementptr inbounds double, ptr %279, i64 1
  store double %274, ptr %280, align 8, !tbaa !11
  %281 = load i64, ptr %29, align 8, !tbaa !9
  %282 = sitofp i64 %281 to double
  %283 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %284 = load ptr, ptr %283, align 8, !tbaa !21
  %285 = load i64, ptr %22, align 8, !tbaa !9
  %286 = getelementptr inbounds ptr, ptr %284, i64 %285
  %287 = load ptr, ptr %286, align 8, !tbaa !5
  %288 = getelementptr inbounds double, ptr %287, i64 2
  store double %282, ptr %288, align 8, !tbaa !11
  %289 = load double, ptr %27, align 8, !tbaa !11
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %291 = load ptr, ptr %290, align 8, !tbaa !21
  %292 = load i64, ptr %22, align 8, !tbaa !9
  %293 = getelementptr inbounds ptr, ptr %291, i64 %292
  %294 = load ptr, ptr %293, align 8, !tbaa !5
  %295 = getelementptr inbounds double, ptr %294, i64 3
  store double %289, ptr %295, align 8, !tbaa !11
  %296 = load ptr, ptr %17, align 8, !tbaa !5
  %297 = load i64, ptr %296, align 8, !tbaa !9
  %298 = load double, ptr %27, align 8, !tbaa !11
  %299 = load i64, ptr %22, align 8, !tbaa !9
  %300 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl18tagheapreplacetopiEPNS_9ae_vectorES1_ldlPNS_8ae_stateE(ptr noundef %34, ptr noundef %35, i64 noundef %297, double noundef %298, i64 noundef %299, ptr noundef %300)
  %301 = load i64, ptr %26, align 8, !tbaa !9
  %302 = sitofp i64 %301 to double
  %303 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %304 = load ptr, ptr %303, align 8, !tbaa !21
  %305 = load ptr, ptr %17, align 8, !tbaa !5
  %306 = load i64, ptr %305, align 8, !tbaa !9
  %307 = getelementptr inbounds ptr, ptr %304, i64 %306
  %308 = load ptr, ptr %307, align 8, !tbaa !5
  %309 = getelementptr inbounds double, ptr %308, i64 0
  store double %302, ptr %309, align 8, !tbaa !11
  %310 = load i64, ptr %25, align 8, !tbaa !9
  %311 = sitofp i64 %310 to double
  %312 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %313 = load ptr, ptr %312, align 8, !tbaa !21
  %314 = load ptr, ptr %17, align 8, !tbaa !5
  %315 = load i64, ptr %314, align 8, !tbaa !9
  %316 = getelementptr inbounds ptr, ptr %313, i64 %315
  %317 = load ptr, ptr %316, align 8, !tbaa !5
  %318 = getelementptr inbounds double, ptr %317, i64 1
  store double %311, ptr %318, align 8, !tbaa !11
  %319 = load i64, ptr %30, align 8, !tbaa !9
  %320 = sitofp i64 %319 to double
  %321 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %322 = load ptr, ptr %321, align 8, !tbaa !21
  %323 = load ptr, ptr %17, align 8, !tbaa !5
  %324 = load i64, ptr %323, align 8, !tbaa !9
  %325 = getelementptr inbounds ptr, ptr %322, i64 %324
  %326 = load ptr, ptr %325, align 8, !tbaa !5
  %327 = getelementptr inbounds double, ptr %326, i64 2
  store double %320, ptr %327, align 8, !tbaa !11
  %328 = load double, ptr %28, align 8, !tbaa !11
  %329 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %330 = load ptr, ptr %329, align 8, !tbaa !21
  %331 = load ptr, ptr %17, align 8, !tbaa !5
  %332 = load i64, ptr %331, align 8, !tbaa !9
  %333 = getelementptr inbounds ptr, ptr %330, i64 %332
  %334 = load ptr, ptr %333, align 8, !tbaa !5
  %335 = getelementptr inbounds double, ptr %334, i64 3
  store double %328, ptr %335, align 8, !tbaa !11
  %336 = load ptr, ptr %17, align 8, !tbaa !5
  %337 = load double, ptr %28, align 8, !tbaa !11
  %338 = load ptr, ptr %17, align 8, !tbaa !5
  %339 = load i64, ptr %338, align 8, !tbaa !9
  %340 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl12tagheappushiEPNS_9ae_vectorES1_PldlPNS_8ae_stateE(ptr noundef %34, ptr noundef %35, ptr noundef %336, double noundef %337, i64 noundef %339, ptr noundef %340)
  br label %196, !llvm.loop !25

341:                                              ; preds = %222, %213, %202
  %342 = load ptr, ptr %17, align 8, !tbaa !5
  %343 = load i64, ptr %342, align 8, !tbaa !9
  %344 = add nsw i64 %343, 1
  %345 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %36, i64 noundef %344, ptr noundef %345)
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %346

346:                                              ; preds = %367, %341
  %347 = load i64, ptr %20, align 8, !tbaa !9
  %348 = load ptr, ptr %17, align 8, !tbaa !5
  %349 = load i64, ptr %348, align 8, !tbaa !9
  %350 = sub nsw i64 %349, 1
  %351 = icmp sle i64 %347, %350
  br i1 %351, label %352, label %370

352:                                              ; preds = %346
  %353 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %33, i32 0, i32 6
  %354 = load ptr, ptr %353, align 8, !tbaa !21
  %355 = load i64, ptr %20, align 8, !tbaa !9
  %356 = getelementptr inbounds ptr, ptr %354, i64 %355
  %357 = load ptr, ptr %356, align 8, !tbaa !5
  %358 = getelementptr inbounds double, ptr %357, i64 0
  %359 = load double, ptr %358, align 8, !tbaa !11
  %360 = load ptr, ptr %18, align 8, !tbaa !5
  %361 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %359, ptr noundef %360)
  %362 = sitofp i64 %361 to double
  %363 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %36, i32 0, i32 4
  %364 = load ptr, ptr %363, align 8, !tbaa !21
  %365 = load i64, ptr %20, align 8, !tbaa !9
  %366 = getelementptr inbounds double, ptr %364, i64 %365
  store double %362, ptr %366, align 8, !tbaa !11
  br label %367

367:                                              ; preds = %352
  %368 = load i64, ptr %20, align 8, !tbaa !9
  %369 = add nsw i64 %368, 1
  store i64 %369, ptr %20, align 8, !tbaa !9
  br label %346, !llvm.loop !26

370:                                              ; preds = %346
  %371 = load i64, ptr %11, align 8, !tbaa !9
  %372 = sub nsw i64 %371, 1
  %373 = sitofp i64 %372 to double
  %374 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %36, i32 0, i32 4
  %375 = load ptr, ptr %374, align 8, !tbaa !21
  %376 = load ptr, ptr %17, align 8, !tbaa !5
  %377 = load i64, ptr %376, align 8, !tbaa !9
  %378 = getelementptr inbounds double, ptr %375, i64 %377
  store double %373, ptr %378, align 8, !tbaa !11
  %379 = load ptr, ptr %17, align 8, !tbaa !5
  %380 = load i64, ptr %379, align 8, !tbaa !9
  %381 = add nsw i64 %380, 1
  %382 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl11tagsortfastEPNS_9ae_vectorES1_lPNS_8ae_stateE(ptr noundef %36, ptr noundef %37, i64 noundef %381, ptr noundef %382)
  %383 = load ptr, ptr %16, align 8, !tbaa !5
  %384 = load ptr, ptr %17, align 8, !tbaa !5
  %385 = load i64, ptr %384, align 8, !tbaa !9
  %386 = add nsw i64 %385, 1
  %387 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %383, i64 noundef %386, ptr noundef %387)
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %388

388:                                              ; preds = %406, %370
  %389 = load i64, ptr %20, align 8, !tbaa !9
  %390 = load ptr, ptr %17, align 8, !tbaa !5
  %391 = load i64, ptr %390, align 8, !tbaa !9
  %392 = icmp sle i64 %389, %391
  br i1 %392, label %393, label %409

393:                                              ; preds = %388
  %394 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %36, i32 0, i32 4
  %395 = load ptr, ptr %394, align 8, !tbaa !21
  %396 = load i64, ptr %20, align 8, !tbaa !9
  %397 = getelementptr inbounds double, ptr %395, i64 %396
  %398 = load double, ptr %397, align 8, !tbaa !11
  %399 = load ptr, ptr %18, align 8, !tbaa !5
  %400 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %398, ptr noundef %399)
  %401 = load ptr, ptr %16, align 8, !tbaa !5
  %402 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %401, i32 0, i32 4
  %403 = load ptr, ptr %402, align 8, !tbaa !21
  %404 = load i64, ptr %20, align 8, !tbaa !9
  %405 = getelementptr inbounds i64, ptr %403, i64 %404
  store i64 %400, ptr %405, align 8, !tbaa !9
  br label %406

406:                                              ; preds = %393
  %407 = load i64, ptr %20, align 8, !tbaa !9
  %408 = add nsw i64 %407, 1
  store i64 %408, ptr %20, align 8, !tbaa !9
  br label %388, !llvm.loop !27

409:                                              ; preds = %388
  %410 = load ptr, ptr %16, align 8, !tbaa !5
  %411 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %410, i32 0, i32 4
  %412 = load ptr, ptr %411, align 8, !tbaa !21
  %413 = getelementptr inbounds i64, ptr %412, i64 0
  %414 = load i64, ptr %413, align 8, !tbaa !9
  %415 = icmp eq i64 %414, 0
  %416 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %415, ptr noundef @.str.327, ptr noundef %416)
  %417 = load ptr, ptr %16, align 8, !tbaa !5
  %418 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %417, i32 0, i32 4
  %419 = load ptr, ptr %418, align 8, !tbaa !21
  %420 = load ptr, ptr %17, align 8, !tbaa !5
  %421 = load i64, ptr %420, align 8, !tbaa !9
  %422 = getelementptr inbounds i64, ptr %419, i64 %421
  %423 = load i64, ptr %422, align 8, !tbaa !9
  %424 = load i64, ptr %11, align 8, !tbaa !9
  %425 = sub nsw i64 %424, 1
  %426 = icmp eq i64 %423, %425
  %427 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %426, ptr noundef @.str.327, ptr noundef %427)
  %428 = load ptr, ptr %15, align 8, !tbaa !5
  %429 = load ptr, ptr %17, align 8, !tbaa !5
  %430 = load i64, ptr %429, align 8, !tbaa !9
  %431 = add nsw i64 %430, 1
  %432 = load i64, ptr %12, align 8, !tbaa !9
  %433 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %428, i64 noundef %431, i64 noundef %432, ptr noundef %433)
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %434

434:                                              ; preds = %472, %409
  %435 = load i64, ptr %20, align 8, !tbaa !9
  %436 = load ptr, ptr %17, align 8, !tbaa !5
  %437 = load i64, ptr %436, align 8, !tbaa !9
  %438 = icmp sle i64 %435, %437
  br i1 %438, label %439, label %475

439:                                              ; preds = %434
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %440

440:                                              ; preds = %468, %439
  %441 = load i64, ptr %21, align 8, !tbaa !9
  %442 = load i64, ptr %12, align 8, !tbaa !9
  %443 = sub nsw i64 %442, 1
  %444 = icmp sle i64 %441, %443
  br i1 %444, label %445, label %471

445:                                              ; preds = %440
  %446 = load ptr, ptr %10, align 8, !tbaa !5
  %447 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %446, i32 0, i32 6
  %448 = load ptr, ptr %447, align 8, !tbaa !21
  %449 = load ptr, ptr %16, align 8, !tbaa !5
  %450 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %449, i32 0, i32 4
  %451 = load ptr, ptr %450, align 8, !tbaa !21
  %452 = load i64, ptr %20, align 8, !tbaa !9
  %453 = getelementptr inbounds i64, ptr %451, i64 %452
  %454 = load i64, ptr %453, align 8, !tbaa !9
  %455 = getelementptr inbounds ptr, ptr %448, i64 %454
  %456 = load ptr, ptr %455, align 8, !tbaa !5
  %457 = load i64, ptr %21, align 8, !tbaa !9
  %458 = getelementptr inbounds double, ptr %456, i64 %457
  %459 = load double, ptr %458, align 8, !tbaa !11
  %460 = load ptr, ptr %15, align 8, !tbaa !5
  %461 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %460, i32 0, i32 6
  %462 = load ptr, ptr %461, align 8, !tbaa !21
  %463 = load i64, ptr %20, align 8, !tbaa !9
  %464 = getelementptr inbounds ptr, ptr %462, i64 %463
  %465 = load ptr, ptr %464, align 8, !tbaa !5
  %466 = load i64, ptr %21, align 8, !tbaa !9
  %467 = getelementptr inbounds double, ptr %465, i64 %466
  store double %459, ptr %467, align 8, !tbaa !11
  br label %468

468:                                              ; preds = %445
  %469 = load i64, ptr %21, align 8, !tbaa !9
  %470 = add nsw i64 %469, 1
  store i64 %470, ptr %21, align 8, !tbaa !9
  br label %440, !llvm.loop !28

471:                                              ; preds = %440
  br label %472

472:                                              ; preds = %471
  %473 = load i64, ptr %20, align 8, !tbaa !9
  %474 = add nsw i64 %473, 1
  store i64 %474, ptr %20, align 8, !tbaa !9
  br label %434, !llvm.loop !29

475:                                              ; preds = %434
  %476 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %476)
  store i32 0, ptr %38, align 4
  br label %477

477:                                              ; preds = %475, %136, %86
  call void @llvm.lifetime.end.p0(i64 64, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  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 1, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  %478 = load i32, ptr %38, align 4
  switch i32 %478, label %480 [
    i32 0, label %479
    i32 1, label %479
  ]

479:                                              ; preds = %477, %477
  ret void

480:                                              ; preds = %477
  unreachable
}

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) #2

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL31parametric_rdpanalyzesectionparEPNS_9ae_matrixElllPlPdPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare void @_ZN11alglib_impl18tagheapreplacetopiEPNS_9ae_vectorES1_ldlPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, double noundef, i64 noundef, ptr noundef) #2

declare void @_ZN11alglib_impl12tagheappushiEPNS_9ae_vectorES1_PldlPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, double noundef, i64 noundef, ptr noundef) #2

declare void @_ZN11alglib_impl11tagsortfastEPNS_9ae_vectorES1_lPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "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 = { 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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !15, i64 32, !16, i64 40, !7, i64 72}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!14, !10, i64 8}
!18 = !{!15, !15, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !23}
!27 = distinct !{!27, !23}
!28 = distinct !{!28, !23}
!29 = distinct !{!29, !23}


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

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

@.str.320 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.321 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.322 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.323 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.324 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.325 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.326 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.327 = external hidden unnamed_addr constant [38 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress 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) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl18parametricrdpfixedEPNS_9ae_matrixEllldS1_PNS_9ae_vectorEPlPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, double noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #3 {
  %10 = alloca %"struct.alglib_impl::ae_frame", align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca double, align 8
  %17 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %8, ptr noundef nonnull %10)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %17, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %21, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %5)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %6)
  store i64 0, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %18, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %19, i64 noundef 0, i64 noundef 2, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %20, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %21, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  %22 = icmp sgt i64 %1, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef nonnull @.str.320, ptr noundef %8)
  %23 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef nonnull @.str.321, ptr noundef %8)
  %24 = icmp sgt i64 %3, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef nonnull @.str.322, ptr noundef %8)
  %25 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %4, ptr noundef %8)
  br i1 %25, label %26, label %28

26:                                               ; preds = %9
  %27 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %4, double noundef 0.000000e+00)
  br label %28

28:                                               ; preds = %26, %9
  %29 = phi i1 [ false, %9 ], [ %27, %26 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef nonnull @.str.323, ptr noundef %8)
  %30 = load i64, ptr %0, align 8, !tbaa !9
  %31 = icmp sge i64 %30, %1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef nonnull @.str.324, ptr noundef %8)
  %32 = getelementptr inbounds i8, ptr %0, i64 8
  %33 = load i64, ptr %32, align 8, !tbaa !14
  %34 = icmp sge i64 %33, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef nonnull @.str.325, ptr noundef %8)
  %35 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %1, i64 noundef %2, ptr noundef %8)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef nonnull @.str.326, ptr noundef %8)
  %36 = icmp slt i64 %1, 2
  br i1 %36, label %._crit_edge184.sink.split, label %.preheader159

.preheader159:                                    ; preds = %28
  %37 = getelementptr inbounds i8, ptr %0, i64 72
  br i1 %23, label %.preheader158.us, label %._crit_edge184.sink.split

.preheader158.us:                                 ; preds = %.preheader159, %._crit_edge.us
  %.0165.us = phi i64 [ %52, %._crit_edge.us ], [ 1, %.preheader159 ]
  %.0148164.us = phi i1 [ %50, %._crit_edge.us ], [ true, %.preheader159 ]
  br label %38

38:                                               ; preds = %.preheader158.us, %49
  %.0146163.us = phi i64 [ 0, %.preheader158.us ], [ %51, %49 ]
  %.1149162.us = phi i1 [ %.0148164.us, %.preheader158.us ], [ %50, %49 ]
  br i1 %.1149162.us, label %39, label %49

39:                                               ; preds = %38
  %40 = load ptr, ptr %37, align 8, !tbaa !15
  %41 = getelementptr inbounds ptr, ptr %40, i64 %.0165.us
  %42 = load ptr, ptr %41, align 8, !tbaa !16
  %43 = getelementptr inbounds double, ptr %42, i64 %.0146163.us
  %44 = load double, ptr %43, align 8, !tbaa !17
  %45 = load ptr, ptr %40, align 8, !tbaa !16
  %46 = getelementptr inbounds double, ptr %45, i64 %.0146163.us
  %47 = load double, ptr %46, align 8, !tbaa !17
  %48 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %44, double noundef %47)
  br label %49

49:                                               ; preds = %39, %38
  %50 = phi i1 [ false, %38 ], [ %48, %39 ]
  %51 = add nuw nsw i64 %.0146163.us, 1
  %exitcond.not = icmp eq i64 %51, %2
  br i1 %exitcond.not, label %._crit_edge.us, label %38, !llvm.loop !19

._crit_edge.us:                                   ; preds = %49
  %52 = add nuw nsw i64 %.0165.us, 1
  %exitcond190.not = icmp eq i64 %52, %1
  br i1 %exitcond190.not, label %.split.us, label %.preheader158.us, !llvm.loop !21

.split.us:                                        ; preds = %._crit_edge.us
  %53 = add nsw i64 %1, -1
  br i1 %50, label %._crit_edge184.sink.split, label %54

54:                                               ; preds = %.split.us
  call void @_ZN11alglib_implL31parametric_rdpanalyzesectionparEPNS_9ae_matrixElllPlPdPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef 0, i64 noundef %53, i64 noundef %2, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %1, i64 noundef 4, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef %1, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef %1, ptr noundef %8)
  store i64 1, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %17, i64 72
  %56 = load ptr, ptr %55, align 8, !tbaa !15
  %57 = load ptr, ptr %56, align 8, !tbaa !16
  store double 0.000000e+00, ptr %57, align 8, !tbaa !17
  %58 = uitofp nneg i64 %53 to double
  %59 = load ptr, ptr %55, align 8, !tbaa !15
  %60 = load ptr, ptr %59, align 8, !tbaa !16
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  store double %58, ptr %61, align 8, !tbaa !17
  %62 = load i64, ptr %15, align 8, !tbaa !5
  %63 = sitofp i64 %62 to double
  %64 = load ptr, ptr %55, align 8, !tbaa !15
  %65 = load ptr, ptr %64, align 8, !tbaa !16
  %66 = getelementptr inbounds i8, ptr %65, i64 16
  store double %63, ptr %66, align 8, !tbaa !17
  %67 = load double, ptr %16, align 8, !tbaa !17
  %68 = load ptr, ptr %55, align 8, !tbaa !15
  %69 = load ptr, ptr %68, align 8, !tbaa !16
  %70 = getelementptr inbounds i8, ptr %69, i64 24
  store double %67, ptr %70, align 8, !tbaa !17
  %71 = getelementptr inbounds i8, ptr %18, i64 56
  %72 = load ptr, ptr %71, align 8, !tbaa !15
  store double %67, ptr %72, align 8, !tbaa !17
  %73 = getelementptr inbounds i8, ptr %19, i64 56
  %74 = load ptr, ptr %73, align 8, !tbaa !15
  store i64 0, ptr %74, align 8, !tbaa !5
  %75 = load ptr, ptr %55, align 8, !tbaa !15
  %76 = load ptr, ptr %75, align 8, !tbaa !16
  %77 = getelementptr inbounds i8, ptr %76, i64 8
  %78 = load double, ptr %77, align 8, !tbaa !17
  %79 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %78, double noundef %58)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %79, ptr noundef nonnull @.str.327, ptr noundef %8)
  %80 = load ptr, ptr %71, align 8, !tbaa !15
  %81 = load double, ptr %80, align 8, !tbaa !17
  %82 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %81, double noundef 0.000000e+00)
  br i1 %82, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %54
  %83 = icmp sgt i64 %3, 0
  br label %84

84:                                               ; preds = %.lr.ph, %93
  %85 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %4, double noundef 0.000000e+00)
  br i1 %85, label %86, label %90

86:                                               ; preds = %84
  %87 = load ptr, ptr %71, align 8, !tbaa !15
  %88 = load double, ptr %87, align 8, !tbaa !17
  %89 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %88, double noundef %4)
  br i1 %89, label %._crit_edge, label %90

90:                                               ; preds = %86, %84
  br i1 %83, label %91, label %93

91:                                               ; preds = %90
  %92 = load i64, ptr %7, align 8, !tbaa !5
  %.not = icmp slt i64 %92, %3
  br i1 %.not, label %93, label %._crit_edge

93:                                               ; preds = %91, %90
  %94 = load ptr, ptr %73, align 8, !tbaa !15
  %95 = load i64, ptr %94, align 8, !tbaa !5
  %96 = load ptr, ptr %55, align 8, !tbaa !15
  %97 = getelementptr inbounds ptr, ptr %96, i64 %95
  %98 = load ptr, ptr %97, align 8, !tbaa !16
  %99 = load double, ptr %98, align 8, !tbaa !17
  %100 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %99, ptr noundef %8)
  %101 = load ptr, ptr %55, align 8, !tbaa !15
  %102 = getelementptr inbounds ptr, ptr %101, i64 %95
  %103 = load ptr, ptr %102, align 8, !tbaa !16
  %104 = getelementptr inbounds i8, ptr %103, i64 8
  %105 = load double, ptr %104, align 8, !tbaa !17
  %106 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %105, ptr noundef %8)
  %107 = load ptr, ptr %55, align 8, !tbaa !15
  %108 = getelementptr inbounds ptr, ptr %107, i64 %95
  %109 = load ptr, ptr %108, align 8, !tbaa !16
  %110 = getelementptr inbounds i8, ptr %109, i64 16
  %111 = load double, ptr %110, align 8, !tbaa !17
  %112 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %111, ptr noundef %8)
  call void @_ZN11alglib_implL31parametric_rdpanalyzesectionparEPNS_9ae_matrixElllPlPdPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %100, i64 noundef %112, i64 noundef %2, ptr noundef nonnull %13, ptr noundef nonnull %11, ptr noundef %8)
  call void @_ZN11alglib_implL31parametric_rdpanalyzesectionparEPNS_9ae_matrixElllPlPdPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %112, i64 noundef %106, i64 noundef %2, ptr noundef nonnull %14, ptr noundef nonnull %12, ptr noundef %8)
  %113 = sitofp i64 %100 to double
  %114 = load ptr, ptr %55, align 8, !tbaa !15
  %115 = getelementptr inbounds ptr, ptr %114, i64 %95
  %116 = load ptr, ptr %115, align 8, !tbaa !16
  store double %113, ptr %116, align 8, !tbaa !17
  %117 = sitofp i64 %112 to double
  %118 = load ptr, ptr %55, align 8, !tbaa !15
  %119 = getelementptr inbounds ptr, ptr %118, i64 %95
  %120 = load ptr, ptr %119, align 8, !tbaa !16
  %121 = getelementptr inbounds i8, ptr %120, i64 8
  store double %117, ptr %121, align 8, !tbaa !17
  %122 = load i64, ptr %13, align 8, !tbaa !5
  %123 = sitofp i64 %122 to double
  %124 = load ptr, ptr %55, align 8, !tbaa !15
  %125 = getelementptr inbounds ptr, ptr %124, i64 %95
  %126 = load ptr, ptr %125, align 8, !tbaa !16
  %127 = getelementptr inbounds i8, ptr %126, i64 16
  store double %123, ptr %127, align 8, !tbaa !17
  %128 = load double, ptr %11, align 8, !tbaa !17
  %129 = load ptr, ptr %55, align 8, !tbaa !15
  %130 = getelementptr inbounds ptr, ptr %129, i64 %95
  %131 = load ptr, ptr %130, align 8, !tbaa !16
  %132 = getelementptr inbounds i8, ptr %131, i64 24
  store double %128, ptr %132, align 8, !tbaa !17
  %133 = load i64, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl18tagheapreplacetopiEPNS_9ae_vectorES1_ldlPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, i64 noundef %133, double noundef %128, i64 noundef %95, ptr noundef %8)
  %134 = load ptr, ptr %55, align 8, !tbaa !15
  %135 = load i64, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds ptr, ptr %134, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !16
  store double %117, ptr %137, align 8, !tbaa !17
  %138 = sitofp i64 %106 to double
  %139 = load ptr, ptr %55, align 8, !tbaa !15
  %140 = getelementptr inbounds ptr, ptr %139, i64 %135
  %141 = load ptr, ptr %140, align 8, !tbaa !16
  %142 = getelementptr inbounds i8, ptr %141, i64 8
  store double %138, ptr %142, align 8, !tbaa !17
  %143 = load i64, ptr %14, align 8, !tbaa !5
  %144 = sitofp i64 %143 to double
  %145 = load ptr, ptr %55, align 8, !tbaa !15
  %146 = getelementptr inbounds ptr, ptr %145, i64 %135
  %147 = load ptr, ptr %146, align 8, !tbaa !16
  %148 = getelementptr inbounds i8, ptr %147, i64 16
  store double %144, ptr %148, align 8, !tbaa !17
  %149 = load double, ptr %12, align 8, !tbaa !17
  %150 = load ptr, ptr %55, align 8, !tbaa !15
  %151 = getelementptr inbounds ptr, ptr %150, i64 %135
  %152 = load ptr, ptr %151, align 8, !tbaa !16
  %153 = getelementptr inbounds i8, ptr %152, i64 24
  store double %149, ptr %153, align 8, !tbaa !17
  call void @_ZN11alglib_impl12tagheappushiEPNS_9ae_vectorES1_PldlPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull %7, double noundef %149, i64 noundef %135, ptr noundef %8)
  %154 = load ptr, ptr %71, align 8, !tbaa !15
  %155 = load double, ptr %154, align 8, !tbaa !17
  %156 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %155, double noundef 0.000000e+00)
  br i1 %156, label %._crit_edge, label %84, !llvm.loop !22

._crit_edge:                                      ; preds = %93, %86, %91, %54
  %157 = load i64, ptr %7, align 8, !tbaa !5
  %158 = add nsw i64 %157, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %20, i64 noundef %158, ptr noundef %8)
  %159 = load i64, ptr %7, align 8, !tbaa !5
  %.not153.not168 = icmp sgt i64 %159, 0
  br i1 %.not153.not168, label %.lr.ph171, label %._crit_edge172

.lr.ph171:                                        ; preds = %._crit_edge
  %160 = getelementptr inbounds i8, ptr %20, i64 56
  br label %161

161:                                              ; preds = %.lr.ph171, %161
  %.1169 = phi i64 [ 0, %.lr.ph171 ], [ %170, %161 ]
  %162 = load ptr, ptr %55, align 8, !tbaa !15
  %163 = getelementptr inbounds ptr, ptr %162, i64 %.1169
  %164 = load ptr, ptr %163, align 8, !tbaa !16
  %165 = load double, ptr %164, align 8, !tbaa !17
  %166 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %165, ptr noundef %8)
  %167 = sitofp i64 %166 to double
  %168 = load ptr, ptr %160, align 8, !tbaa !15
  %169 = getelementptr inbounds double, ptr %168, i64 %.1169
  store double %167, ptr %169, align 8, !tbaa !17
  %170 = add nuw nsw i64 %.1169, 1
  %171 = load i64, ptr %7, align 8, !tbaa !5
  %.not153.not = icmp slt i64 %170, %171
  br i1 %.not153.not, label %161, label %._crit_edge172, !llvm.loop !23

._crit_edge172:                                   ; preds = %161, %._crit_edge
  %.lcssa = phi i64 [ %159, %._crit_edge ], [ %171, %161 ]
  %172 = getelementptr inbounds i8, ptr %20, i64 56
  %173 = load ptr, ptr %172, align 8, !tbaa !15
  %174 = getelementptr inbounds double, ptr %173, i64 %.lcssa
  store double %58, ptr %174, align 8, !tbaa !17
  %175 = add nsw i64 %.lcssa, 1
  call void @_ZN11alglib_impl11tagsortfastEPNS_9ae_vectorES1_lPNS_8ae_stateE(ptr noundef nonnull %20, ptr noundef nonnull %21, i64 noundef %175, ptr noundef %8)
  %176 = load i64, ptr %7, align 8, !tbaa !5
  %177 = add nsw i64 %176, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %6, i64 noundef %177, ptr noundef %8)
  %178 = load i64, ptr %7, align 8, !tbaa !5
  %.not154173 = icmp slt i64 %178, 0
  br i1 %.not154173, label %._crit_edge177, label %.lr.ph176

.lr.ph176:                                        ; preds = %._crit_edge172
  %179 = getelementptr inbounds i8, ptr %6, i64 56
  br label %180

180:                                              ; preds = %.lr.ph176, %180
  %.2174 = phi i64 [ 0, %.lr.ph176 ], [ %187, %180 ]
  %181 = load ptr, ptr %172, align 8, !tbaa !15
  %182 = getelementptr inbounds double, ptr %181, i64 %.2174
  %183 = load double, ptr %182, align 8, !tbaa !17
  %184 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %183, ptr noundef %8)
  %185 = load ptr, ptr %179, align 8, !tbaa !15
  %186 = getelementptr inbounds i64, ptr %185, i64 %.2174
  store i64 %184, ptr %186, align 8, !tbaa !5
  %187 = add nuw nsw i64 %.2174, 1
  %188 = load i64, ptr %7, align 8, !tbaa !5
  %.not154.not = icmp slt i64 %.2174, %188
  br i1 %.not154.not, label %180, label %._crit_edge177, !llvm.loop !24

._crit_edge177:                                   ; preds = %180, %._crit_edge172
  %189 = getelementptr inbounds i8, ptr %6, i64 56
  %190 = load ptr, ptr %189, align 8, !tbaa !15
  %191 = load i64, ptr %190, align 8, !tbaa !5
  %192 = icmp eq i64 %191, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %192, ptr noundef nonnull @.str.327, ptr noundef %8)
  %193 = load ptr, ptr %189, align 8, !tbaa !15
  %194 = load i64, ptr %7, align 8, !tbaa !5
  %195 = getelementptr inbounds i64, ptr %193, i64 %194
  %196 = load i64, ptr %195, align 8, !tbaa !5
  %197 = icmp eq i64 %196, %53
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %197, ptr noundef nonnull @.str.327, ptr noundef %8)
  %198 = load i64, ptr %7, align 8, !tbaa !5
  %199 = add nsw i64 %198, 1
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %199, i64 noundef %2, ptr noundef %8)
  %200 = load i64, ptr %7, align 8, !tbaa !5
  %.not155182 = icmp slt i64 %200, 0
  br i1 %.not155182, label %._crit_edge184, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %._crit_edge177
  %201 = getelementptr inbounds i8, ptr %5, i64 72
  br i1 %23, label %.preheader.us.preheader, label %._crit_edge184

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter = and i64 %2, 1
  %202 = 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_edge181.us
  %.3183.us = phi i64 [ %241, %._crit_edge181.us ], [ 0, %.preheader.us.preheader ]
  br i1 %202, label %._crit_edge181.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.1147179.us = phi i64 [ %228, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %203 = load ptr, ptr %37, align 8, !tbaa !15
  %204 = load ptr, ptr %189, align 8, !tbaa !15
  %205 = getelementptr inbounds i64, ptr %204, i64 %.3183.us
  %206 = load i64, ptr %205, align 8, !tbaa !5
  %207 = getelementptr inbounds ptr, ptr %203, i64 %206
  %208 = load ptr, ptr %207, align 8, !tbaa !16
  %209 = getelementptr inbounds double, ptr %208, i64 %.1147179.us
  %210 = load double, ptr %209, align 8, !tbaa !17
  %211 = load ptr, ptr %201, align 8, !tbaa !15
  %212 = getelementptr inbounds ptr, ptr %211, i64 %.3183.us
  %213 = load ptr, ptr %212, align 8, !tbaa !16
  %214 = getelementptr inbounds double, ptr %213, i64 %.1147179.us
  store double %210, ptr %214, align 8, !tbaa !17
  %215 = or disjoint i64 %.1147179.us, 1
  %216 = load ptr, ptr %37, align 8, !tbaa !15
  %217 = load ptr, ptr %189, align 8, !tbaa !15
  %218 = getelementptr inbounds i64, ptr %217, i64 %.3183.us
  %219 = load i64, ptr %218, align 8, !tbaa !5
  %220 = getelementptr inbounds ptr, ptr %216, i64 %219
  %221 = load ptr, ptr %220, align 8, !tbaa !16
  %222 = getelementptr inbounds double, ptr %221, i64 %215
  %223 = load double, ptr %222, align 8, !tbaa !17
  %224 = load ptr, ptr %201, align 8, !tbaa !15
  %225 = getelementptr inbounds ptr, ptr %224, i64 %.3183.us
  %226 = load ptr, ptr %225, align 8, !tbaa !16
  %227 = getelementptr inbounds double, ptr %226, i64 %215
  store double %223, ptr %227, align 8, !tbaa !17
  %228 = add nuw nsw i64 %.1147179.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_edge181.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !25

._crit_edge181.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.1147179.us.unr = phi i64 [ 0, %.preheader.us ], [ %228, %.preheader.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge181.us, label %._crit_edge181.us.epilog-lcssa

._crit_edge181.us.epilog-lcssa:                   ; preds = %._crit_edge181.us.unr-lcssa
  %229 = load ptr, ptr %37, align 8, !tbaa !15
  %230 = load ptr, ptr %189, align 8, !tbaa !15
  %231 = getelementptr inbounds i64, ptr %230, i64 %.3183.us
  %232 = load i64, ptr %231, align 8, !tbaa !5
  %233 = getelementptr inbounds ptr, ptr %229, i64 %232
  %234 = load ptr, ptr %233, align 8, !tbaa !16
  %235 = getelementptr inbounds double, ptr %234, i64 %.1147179.us.unr
  %236 = load double, ptr %235, align 8, !tbaa !17
  %237 = load ptr, ptr %201, align 8, !tbaa !15
  %238 = getelementptr inbounds ptr, ptr %237, i64 %.3183.us
  %239 = load ptr, ptr %238, align 8, !tbaa !16
  %240 = getelementptr inbounds double, ptr %239, i64 %.1147179.us.unr
  store double %236, ptr %240, align 8, !tbaa !17
  br label %._crit_edge181.us

._crit_edge181.us:                                ; preds = %._crit_edge181.us.unr-lcssa, %._crit_edge181.us.epilog-lcssa
  %241 = add nuw i64 %.3183.us, 1
  %exitcond192.not = icmp eq i64 %.3183.us, %200
  br i1 %exitcond192.not, label %._crit_edge184, label %.preheader.us, !llvm.loop !26

._crit_edge184.sink.split:                        ; preds = %.split.us, %.preheader159, %28
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %._crit_edge184

._crit_edge184:                                   ; preds = %._crit_edge181.us, %._crit_edge184.sink.split, %._crit_edge177, %.preheader.lr.ph
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %8)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
  ret void
}

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL31parametric_rdpanalyzesectionparEPNS_9ae_matrixElllPlPdPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl18tagheapreplacetopiEPNS_9ae_vectorES1_ldlPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, double noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl12tagheappushiEPNS_9ae_vectorES1_PldlPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, double noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl11tagsortfastEPNS_9ae_vectorES1_lPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN11alglib_impl9ae_matrixE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !12, i64 40, !7, i64 72}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!10, !6, i64 8}
!15 = !{!7, !7, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}


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