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

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

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9smatrixtdEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.alglib_impl::ae_frame", align 8
  %16 = alloca i64, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  %24 = zext i1 %2 to i8
  store i8 %24, ptr %10, align 1, !tbaa !11
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #4
  %25 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %25, ptr noundef %15)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 64, i1 false)
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %26)
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %27)
  %28 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %28)
  %29 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 3, ptr noundef %29, i1 noundef zeroext true)
  %30 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 3, ptr noundef %30, i1 noundef zeroext true)
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 3, ptr noundef %31, i1 noundef zeroext true)
  %32 = load i64, ptr %9, align 8, !tbaa !9
  %33 = icmp sle i64 %32, 0
  br i1 %33, label %34, label %36

34:                                               ; preds = %7
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %35)
  store i32 1, ptr %23, align 4
  br label %614

36:                                               ; preds = %7
  %37 = load i64, ptr %9, align 8, !tbaa !9
  %38 = add nsw i64 %37, 1
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %38, ptr noundef %39)
  %40 = load i64, ptr %9, align 8, !tbaa !9
  %41 = add nsw i64 %40, 1
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %41, ptr noundef %42)
  %43 = load i64, ptr %9, align 8, !tbaa !9
  %44 = add nsw i64 %43, 1
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %22, i64 noundef %44, ptr noundef %45)
  %46 = load i64, ptr %9, align 8, !tbaa !9
  %47 = icmp sgt i64 %46, 1
  br i1 %47, label %48, label %54

48:                                               ; preds = %36
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = load i64, ptr %9, align 8, !tbaa !9
  %51 = sub nsw i64 %50, 2
  %52 = add nsw i64 %51, 1
  %53 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %49, i64 noundef %52, ptr noundef %53)
  br label %54

54:                                               ; preds = %48, %36
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = load i64, ptr %9, align 8, !tbaa !9
  %57 = sub nsw i64 %56, 1
  %58 = add nsw i64 %57, 1
  %59 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %55, i64 noundef %58, ptr noundef %59)
  %60 = load i64, ptr %9, align 8, !tbaa !9
  %61 = icmp sgt i64 %60, 1
  br i1 %61, label %62, label %68

62:                                               ; preds = %54
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = load i64, ptr %9, align 8, !tbaa !9
  %65 = sub nsw i64 %64, 2
  %66 = add nsw i64 %65, 1
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %63, i64 noundef %66, ptr noundef %67)
  br label %68

68:                                               ; preds = %62, %54
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = load i64, ptr %9, align 8, !tbaa !9
  %71 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %72 = trunc i8 %71 to i1
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  %77 = call noundef zeroext i1 @_ZN11alglib_impl12smatrixtdmklEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef %69, i64 noundef %70, i1 noundef zeroext %72, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76)
  br i1 %77, label %78, label %80

78:                                               ; preds = %68
  %79 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %79)
  store i32 1, ptr %23, align 4
  br label %614

80:                                               ; preds = %68
  %81 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %82 = trunc i8 %81 to i1
  br i1 %82, label %83, label %346

83:                                               ; preds = %80
  %84 = load i64, ptr %9, align 8, !tbaa !9
  %85 = sub nsw i64 %84, 2
  store i64 %85, ptr %16, align 8, !tbaa !9
  br label %86

86:                                               ; preds = %331, %83
  %87 = load i64, ptr %16, align 8, !tbaa !9
  %88 = icmp sge i64 %87, 0
  br i1 %88, label %89, label %334

89:                                               ; preds = %86
  %90 = load i64, ptr %16, align 8, !tbaa !9
  %91 = icmp sge i64 %90, 1
  br i1 %91, label %92, label %110

92:                                               ; preds = %89
  %93 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %94 = load ptr, ptr %93, align 8, !tbaa !15
  %95 = getelementptr inbounds double, ptr %94, i64 2
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %96, i32 0, i32 6
  %98 = load ptr, ptr %97, align 8, !tbaa !15
  %99 = getelementptr inbounds ptr, ptr %98, i64 0
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = load i64, ptr %16, align 8, !tbaa !9
  %102 = add nsw i64 %101, 1
  %103 = getelementptr inbounds double, ptr %100, i64 %102
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %104, i32 0, i32 2
  %106 = load i64, ptr %105, align 8, !tbaa !16
  %107 = load i64, ptr %16, align 8, !tbaa !9
  %108 = add nsw i64 %107, 1
  %109 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 2, i64 noundef %108)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %95, i64 noundef 1, ptr noundef %103, i64 noundef %106, i64 noundef %109)
  br label %110

110:                                              ; preds = %92, %89
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %111, i32 0, i32 6
  %113 = load ptr, ptr %112, align 8, !tbaa !15
  %114 = load i64, ptr %16, align 8, !tbaa !9
  %115 = getelementptr inbounds ptr, ptr %113, i64 %114
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %117 = load i64, ptr %16, align 8, !tbaa !9
  %118 = add nsw i64 %117, 1
  %119 = getelementptr inbounds double, ptr %116, i64 %118
  %120 = load double, ptr %119, align 8, !tbaa !19
  %121 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %122 = load ptr, ptr %121, align 8, !tbaa !15
  %123 = getelementptr inbounds double, ptr %122, i64 1
  store double %120, ptr %123, align 8, !tbaa !19
  %124 = load i64, ptr %16, align 8, !tbaa !9
  %125 = add nsw i64 %124, 1
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl18generatereflectionEPNS_9ae_vectorElPdPNS_8ae_stateE(ptr noundef %20, i64 noundef %125, ptr noundef %18, ptr noundef %126)
  %127 = load i64, ptr %16, align 8, !tbaa !9
  %128 = icmp sge i64 %127, 1
  br i1 %128, label %129, label %147

129:                                              ; preds = %110
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %130, i32 0, i32 6
  %132 = load ptr, ptr %131, align 8, !tbaa !15
  %133 = getelementptr inbounds ptr, ptr %132, i64 0
  %134 = load ptr, ptr %133, align 8, !tbaa !5
  %135 = load i64, ptr %16, align 8, !tbaa !9
  %136 = add nsw i64 %135, 1
  %137 = getelementptr inbounds double, ptr %134, i64 %136
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %138, i32 0, i32 2
  %140 = load i64, ptr %139, align 8, !tbaa !16
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !15
  %143 = getelementptr inbounds double, ptr %142, i64 2
  %144 = load i64, ptr %16, align 8, !tbaa !9
  %145 = sub nsw i64 %144, 1
  %146 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %145)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %137, i64 noundef %140, ptr noundef %143, i64 noundef 1, i64 noundef %146)
  br label %147

147:                                              ; preds = %129, %110
  %148 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %149 = load ptr, ptr %148, align 8, !tbaa !15
  %150 = getelementptr inbounds double, ptr %149, i64 1
  %151 = load double, ptr %150, align 8, !tbaa !19
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %152, i32 0, i32 6
  %154 = load ptr, ptr %153, align 8, !tbaa !15
  %155 = load i64, ptr %16, align 8, !tbaa !9
  %156 = getelementptr inbounds ptr, ptr %154, i64 %155
  %157 = load ptr, ptr %156, align 8, !tbaa !5
  %158 = load i64, ptr %16, align 8, !tbaa !9
  %159 = add nsw i64 %158, 1
  %160 = getelementptr inbounds double, ptr %157, i64 %159
  store double %151, ptr %160, align 8, !tbaa !19
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %161, i32 0, i32 6
  %163 = load ptr, ptr %162, align 8, !tbaa !15
  %164 = load i64, ptr %16, align 8, !tbaa !9
  %165 = getelementptr inbounds ptr, ptr %163, i64 %164
  %166 = load ptr, ptr %165, align 8, !tbaa !5
  %167 = load i64, ptr %16, align 8, !tbaa !9
  %168 = add nsw i64 %167, 1
  %169 = getelementptr inbounds double, ptr %166, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !19
  %171 = load ptr, ptr %13, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %171, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !15
  %174 = load i64, ptr %16, align 8, !tbaa !9
  %175 = getelementptr inbounds double, ptr %173, i64 %174
  store double %170, ptr %175, align 8, !tbaa !19
  %176 = load double, ptr %18, align 8, !tbaa !19
  %177 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %176, double noundef 0.000000e+00)
  br i1 %177, label %178, label %307

178:                                              ; preds = %147
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %179, i32 0, i32 6
  %181 = load ptr, ptr %180, align 8, !tbaa !15
  %182 = load i64, ptr %16, align 8, !tbaa !9
  %183 = getelementptr inbounds ptr, ptr %181, i64 %182
  %184 = load ptr, ptr %183, align 8, !tbaa !5
  %185 = load i64, ptr %16, align 8, !tbaa !9
  %186 = add nsw i64 %185, 1
  %187 = getelementptr inbounds double, ptr %184, i64 %186
  store double 1.000000e+00, ptr %187, align 8, !tbaa !19
  %188 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %189 = load ptr, ptr %188, align 8, !tbaa !15
  %190 = getelementptr inbounds double, ptr %189, i64 1
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  %192 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %191, i32 0, i32 6
  %193 = load ptr, ptr %192, align 8, !tbaa !15
  %194 = getelementptr inbounds ptr, ptr %193, i64 0
  %195 = load ptr, ptr %194, align 8, !tbaa !5
  %196 = load i64, ptr %16, align 8, !tbaa !9
  %197 = add nsw i64 %196, 1
  %198 = getelementptr inbounds double, ptr %195, i64 %197
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %199, i32 0, i32 2
  %201 = load i64, ptr %200, align 8, !tbaa !16
  %202 = load i64, ptr %16, align 8, !tbaa !9
  %203 = add nsw i64 %202, 1
  %204 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %203)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %190, i64 noundef 1, ptr noundef %198, i64 noundef %201, i64 noundef %204)
  %205 = load ptr, ptr %8, align 8, !tbaa !5
  %206 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %207 = trunc i8 %206 to i1
  %208 = load i64, ptr %16, align 8, !tbaa !9
  %209 = load double, ptr %18, align 8, !tbaa !19
  %210 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef %205, i1 noundef zeroext %207, i64 noundef 0, i64 noundef %208, ptr noundef %20, double noundef %209, ptr noundef %22, ptr noundef %210)
  %211 = load ptr, ptr %11, align 8, !tbaa !5
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %211, i32 0, i32 4
  %213 = load ptr, ptr %212, align 8, !tbaa !15
  %214 = getelementptr inbounds double, ptr %213, i64 0
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %216 = load ptr, ptr %215, align 8, !tbaa !15
  %217 = getelementptr inbounds double, ptr %216, i64 1
  %218 = load i64, ptr %16, align 8, !tbaa !9
  %219 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %218)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %214, i64 noundef 1, ptr noundef %217, i64 noundef 1, i64 noundef %219)
  %220 = load ptr, ptr %11, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %220, i32 0, i32 4
  %222 = load ptr, ptr %221, align 8, !tbaa !15
  %223 = getelementptr inbounds double, ptr %222, i64 0
  %224 = load ptr, ptr %8, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %224, i32 0, i32 6
  %226 = load ptr, ptr %225, align 8, !tbaa !15
  %227 = getelementptr inbounds ptr, ptr %226, i64 0
  %228 = load ptr, ptr %227, align 8, !tbaa !5
  %229 = load i64, ptr %16, align 8, !tbaa !9
  %230 = add nsw i64 %229, 1
  %231 = getelementptr inbounds double, ptr %228, i64 %230
  %232 = load ptr, ptr %8, align 8, !tbaa !5
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %232, i32 0, i32 2
  %234 = load i64, ptr %233, align 8, !tbaa !16
  %235 = load i64, ptr %16, align 8, !tbaa !9
  %236 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %235)
  %237 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %223, i64 noundef 1, ptr noundef %231, i64 noundef %234, i64 noundef %236)
  store double %237, ptr %19, align 8, !tbaa !19
  %238 = load double, ptr %18, align 8, !tbaa !19
  %239 = fmul double -5.000000e-01, %238
  %240 = load double, ptr %19, align 8, !tbaa !19
  %241 = fmul double %239, %240
  store double %241, ptr %17, align 8, !tbaa !19
  %242 = load ptr, ptr %11, align 8, !tbaa !5
  %243 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %242, i32 0, i32 4
  %244 = load ptr, ptr %243, align 8, !tbaa !15
  %245 = getelementptr inbounds double, ptr %244, i64 0
  %246 = load ptr, ptr %8, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %246, i32 0, i32 6
  %248 = load ptr, ptr %247, align 8, !tbaa !15
  %249 = getelementptr inbounds ptr, ptr %248, i64 0
  %250 = load ptr, ptr %249, align 8, !tbaa !5
  %251 = load i64, ptr %16, align 8, !tbaa !9
  %252 = add nsw i64 %251, 1
  %253 = getelementptr inbounds double, ptr %250, i64 %252
  %254 = load ptr, ptr %8, align 8, !tbaa !5
  %255 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %254, i32 0, i32 2
  %256 = load i64, ptr %255, align 8, !tbaa !16
  %257 = load i64, ptr %16, align 8, !tbaa !9
  %258 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %257)
  %259 = load double, ptr %17, align 8, !tbaa !19
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %245, i64 noundef 1, ptr noundef %253, i64 noundef %256, i64 noundef %258, double noundef %259)
  %260 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %261 = load ptr, ptr %260, align 8, !tbaa !15
  %262 = getelementptr inbounds double, ptr %261, i64 1
  %263 = load ptr, ptr %8, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %263, i32 0, i32 6
  %265 = load ptr, ptr %264, align 8, !tbaa !15
  %266 = getelementptr inbounds ptr, ptr %265, i64 0
  %267 = load ptr, ptr %266, align 8, !tbaa !5
  %268 = load i64, ptr %16, align 8, !tbaa !9
  %269 = add nsw i64 %268, 1
  %270 = getelementptr inbounds double, ptr %267, i64 %269
  %271 = load ptr, ptr %8, align 8, !tbaa !5
  %272 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %271, i32 0, i32 2
  %273 = load i64, ptr %272, align 8, !tbaa !16
  %274 = load i64, ptr %16, align 8, !tbaa !9
  %275 = add nsw i64 %274, 1
  %276 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %275)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %262, i64 noundef 1, ptr noundef %270, i64 noundef %273, i64 noundef %276)
  %277 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %278 = load ptr, ptr %277, align 8, !tbaa !15
  %279 = getelementptr inbounds double, ptr %278, i64 1
  %280 = load ptr, ptr %11, align 8, !tbaa !5
  %281 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %280, i32 0, i32 4
  %282 = load ptr, ptr %281, align 8, !tbaa !15
  %283 = getelementptr inbounds double, ptr %282, i64 0
  %284 = load i64, ptr %16, align 8, !tbaa !9
  %285 = add nsw i64 %284, 1
  %286 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %285)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %279, i64 noundef 1, ptr noundef %283, i64 noundef 1, i64 noundef %286)
  %287 = load ptr, ptr %8, align 8, !tbaa !5
  %288 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %289 = trunc i8 %288 to i1
  %290 = load i64, ptr %16, align 8, !tbaa !9
  %291 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20symmetricrank2updateEPNS_9ae_matrixEbllPNS_9ae_vectorES3_S3_dPNS_8ae_stateE(ptr noundef %287, i1 noundef zeroext %289, i64 noundef 0, i64 noundef %290, ptr noundef %20, ptr noundef %22, ptr noundef %21, double noundef -1.000000e+00, ptr noundef %291)
  %292 = load ptr, ptr %13, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %292, i32 0, i32 4
  %294 = load ptr, ptr %293, align 8, !tbaa !15
  %295 = load i64, ptr %16, align 8, !tbaa !9
  %296 = getelementptr inbounds double, ptr %294, i64 %295
  %297 = load double, ptr %296, align 8, !tbaa !19
  %298 = load ptr, ptr %8, align 8, !tbaa !5
  %299 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %298, i32 0, i32 6
  %300 = load ptr, ptr %299, align 8, !tbaa !15
  %301 = load i64, ptr %16, align 8, !tbaa !9
  %302 = getelementptr inbounds ptr, ptr %300, i64 %301
  %303 = load ptr, ptr %302, align 8, !tbaa !5
  %304 = load i64, ptr %16, align 8, !tbaa !9
  %305 = add nsw i64 %304, 1
  %306 = getelementptr inbounds double, ptr %303, i64 %305
  store double %297, ptr %306, align 8, !tbaa !19
  br label %307

307:                                              ; preds = %178, %147
  %308 = load ptr, ptr %8, align 8, !tbaa !5
  %309 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %308, i32 0, i32 6
  %310 = load ptr, ptr %309, align 8, !tbaa !15
  %311 = load i64, ptr %16, align 8, !tbaa !9
  %312 = add nsw i64 %311, 1
  %313 = getelementptr inbounds ptr, ptr %310, i64 %312
  %314 = load ptr, ptr %313, align 8, !tbaa !5
  %315 = load i64, ptr %16, align 8, !tbaa !9
  %316 = add nsw i64 %315, 1
  %317 = getelementptr inbounds double, ptr %314, i64 %316
  %318 = load double, ptr %317, align 8, !tbaa !19
  %319 = load ptr, ptr %12, align 8, !tbaa !5
  %320 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %319, i32 0, i32 4
  %321 = load ptr, ptr %320, align 8, !tbaa !15
  %322 = load i64, ptr %16, align 8, !tbaa !9
  %323 = add nsw i64 %322, 1
  %324 = getelementptr inbounds double, ptr %321, i64 %323
  store double %318, ptr %324, align 8, !tbaa !19
  %325 = load double, ptr %18, align 8, !tbaa !19
  %326 = load ptr, ptr %11, align 8, !tbaa !5
  %327 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %326, i32 0, i32 4
  %328 = load ptr, ptr %327, align 8, !tbaa !15
  %329 = load i64, ptr %16, align 8, !tbaa !9
  %330 = getelementptr inbounds double, ptr %328, i64 %329
  store double %325, ptr %330, align 8, !tbaa !19
  br label %331

331:                                              ; preds = %307
  %332 = load i64, ptr %16, align 8, !tbaa !9
  %333 = add nsw i64 %332, -1
  store i64 %333, ptr %16, align 8, !tbaa !9
  br label %86, !llvm.loop !21

334:                                              ; preds = %86
  %335 = load ptr, ptr %8, align 8, !tbaa !5
  %336 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %335, i32 0, i32 6
  %337 = load ptr, ptr %336, align 8, !tbaa !15
  %338 = getelementptr inbounds ptr, ptr %337, i64 0
  %339 = load ptr, ptr %338, align 8, !tbaa !5
  %340 = getelementptr inbounds double, ptr %339, i64 0
  %341 = load double, ptr %340, align 8, !tbaa !19
  %342 = load ptr, ptr %12, align 8, !tbaa !5
  %343 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %342, i32 0, i32 4
  %344 = load ptr, ptr %343, align 8, !tbaa !15
  %345 = getelementptr inbounds double, ptr %344, i64 0
  store double %341, ptr %345, align 8, !tbaa !19
  br label %612

346:                                              ; preds = %80
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %347

347:                                              ; preds = %591, %346
  %348 = load i64, ptr %16, align 8, !tbaa !9
  %349 = load i64, ptr %9, align 8, !tbaa !9
  %350 = sub nsw i64 %349, 2
  %351 = icmp sle i64 %348, %350
  br i1 %351, label %352, label %594

352:                                              ; preds = %347
  %353 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %354 = load ptr, ptr %353, align 8, !tbaa !15
  %355 = getelementptr inbounds double, ptr %354, i64 1
  %356 = load ptr, ptr %8, align 8, !tbaa !5
  %357 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %356, i32 0, i32 6
  %358 = load ptr, ptr %357, align 8, !tbaa !15
  %359 = load i64, ptr %16, align 8, !tbaa !9
  %360 = add nsw i64 %359, 1
  %361 = getelementptr inbounds ptr, ptr %358, i64 %360
  %362 = load ptr, ptr %361, align 8, !tbaa !5
  %363 = load i64, ptr %16, align 8, !tbaa !9
  %364 = getelementptr inbounds double, ptr %362, i64 %363
  %365 = load ptr, ptr %8, align 8, !tbaa !5
  %366 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %365, i32 0, i32 2
  %367 = load i64, ptr %366, align 8, !tbaa !16
  %368 = load i64, ptr %9, align 8, !tbaa !9
  %369 = load i64, ptr %16, align 8, !tbaa !9
  %370 = sub nsw i64 %368, %369
  %371 = sub nsw i64 %370, 1
  %372 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %371)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %355, i64 noundef 1, ptr noundef %364, i64 noundef %367, i64 noundef %372)
  %373 = load i64, ptr %9, align 8, !tbaa !9
  %374 = load i64, ptr %16, align 8, !tbaa !9
  %375 = sub nsw i64 %373, %374
  %376 = sub nsw i64 %375, 1
  %377 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl18generatereflectionEPNS_9ae_vectorElPdPNS_8ae_stateE(ptr noundef %20, i64 noundef %376, ptr noundef %18, ptr noundef %377)
  %378 = load ptr, ptr %8, align 8, !tbaa !5
  %379 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %378, i32 0, i32 6
  %380 = load ptr, ptr %379, align 8, !tbaa !15
  %381 = load i64, ptr %16, align 8, !tbaa !9
  %382 = add nsw i64 %381, 1
  %383 = getelementptr inbounds ptr, ptr %380, i64 %382
  %384 = load ptr, ptr %383, align 8, !tbaa !5
  %385 = load i64, ptr %16, align 8, !tbaa !9
  %386 = getelementptr inbounds double, ptr %384, i64 %385
  %387 = load ptr, ptr %8, align 8, !tbaa !5
  %388 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %387, i32 0, i32 2
  %389 = load i64, ptr %388, align 8, !tbaa !16
  %390 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %391 = load ptr, ptr %390, align 8, !tbaa !15
  %392 = getelementptr inbounds double, ptr %391, i64 1
  %393 = load i64, ptr %16, align 8, !tbaa !9
  %394 = add nsw i64 %393, 1
  %395 = load i64, ptr %9, align 8, !tbaa !9
  %396 = sub nsw i64 %395, 1
  %397 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %394, i64 noundef %396)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %386, i64 noundef %389, ptr noundef %392, i64 noundef 1, i64 noundef %397)
  %398 = load ptr, ptr %8, align 8, !tbaa !5
  %399 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %398, i32 0, i32 6
  %400 = load ptr, ptr %399, align 8, !tbaa !15
  %401 = load i64, ptr %16, align 8, !tbaa !9
  %402 = add nsw i64 %401, 1
  %403 = getelementptr inbounds ptr, ptr %400, i64 %402
  %404 = load ptr, ptr %403, align 8, !tbaa !5
  %405 = load i64, ptr %16, align 8, !tbaa !9
  %406 = getelementptr inbounds double, ptr %404, i64 %405
  %407 = load double, ptr %406, align 8, !tbaa !19
  %408 = load ptr, ptr %13, align 8, !tbaa !5
  %409 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %408, i32 0, i32 4
  %410 = load ptr, ptr %409, align 8, !tbaa !15
  %411 = load i64, ptr %16, align 8, !tbaa !9
  %412 = getelementptr inbounds double, ptr %410, i64 %411
  store double %407, ptr %412, align 8, !tbaa !19
  %413 = load double, ptr %18, align 8, !tbaa !19
  %414 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %413, double noundef 0.000000e+00)
  br i1 %414, label %415, label %570

415:                                              ; preds = %352
  %416 = load ptr, ptr %8, align 8, !tbaa !5
  %417 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %416, i32 0, i32 6
  %418 = load ptr, ptr %417, align 8, !tbaa !15
  %419 = load i64, ptr %16, align 8, !tbaa !9
  %420 = add nsw i64 %419, 1
  %421 = getelementptr inbounds ptr, ptr %418, i64 %420
  %422 = load ptr, ptr %421, align 8, !tbaa !5
  %423 = load i64, ptr %16, align 8, !tbaa !9
  %424 = getelementptr inbounds double, ptr %422, i64 %423
  store double 1.000000e+00, ptr %424, align 8, !tbaa !19
  %425 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %426 = load ptr, ptr %425, align 8, !tbaa !15
  %427 = getelementptr inbounds double, ptr %426, i64 1
  %428 = load ptr, ptr %8, align 8, !tbaa !5
  %429 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %428, i32 0, i32 6
  %430 = load ptr, ptr %429, align 8, !tbaa !15
  %431 = load i64, ptr %16, align 8, !tbaa !9
  %432 = add nsw i64 %431, 1
  %433 = getelementptr inbounds ptr, ptr %430, i64 %432
  %434 = load ptr, ptr %433, align 8, !tbaa !5
  %435 = load i64, ptr %16, align 8, !tbaa !9
  %436 = getelementptr inbounds double, ptr %434, i64 %435
  %437 = load ptr, ptr %8, align 8, !tbaa !5
  %438 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %437, i32 0, i32 2
  %439 = load i64, ptr %438, align 8, !tbaa !16
  %440 = load i64, ptr %9, align 8, !tbaa !9
  %441 = load i64, ptr %16, align 8, !tbaa !9
  %442 = sub nsw i64 %440, %441
  %443 = sub nsw i64 %442, 1
  %444 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %443)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %427, i64 noundef 1, ptr noundef %436, i64 noundef %439, i64 noundef %444)
  %445 = load ptr, ptr %8, align 8, !tbaa !5
  %446 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %447 = trunc i8 %446 to i1
  %448 = load i64, ptr %16, align 8, !tbaa !9
  %449 = add nsw i64 %448, 1
  %450 = load i64, ptr %9, align 8, !tbaa !9
  %451 = sub nsw i64 %450, 1
  %452 = load double, ptr %18, align 8, !tbaa !19
  %453 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef %445, i1 noundef zeroext %447, i64 noundef %449, i64 noundef %451, ptr noundef %20, double noundef %452, ptr noundef %21, ptr noundef %453)
  %454 = load ptr, ptr %11, align 8, !tbaa !5
  %455 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %454, i32 0, i32 4
  %456 = load ptr, ptr %455, align 8, !tbaa !15
  %457 = load i64, ptr %16, align 8, !tbaa !9
  %458 = getelementptr inbounds double, ptr %456, i64 %457
  %459 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %460 = load ptr, ptr %459, align 8, !tbaa !15
  %461 = getelementptr inbounds double, ptr %460, i64 1
  %462 = load i64, ptr %16, align 8, !tbaa !9
  %463 = load i64, ptr %9, align 8, !tbaa !9
  %464 = sub nsw i64 %463, 2
  %465 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %462, i64 noundef %464)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %458, i64 noundef 1, ptr noundef %461, i64 noundef 1, i64 noundef %465)
  %466 = load ptr, ptr %11, align 8, !tbaa !5
  %467 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %466, i32 0, i32 4
  %468 = load ptr, ptr %467, align 8, !tbaa !15
  %469 = load i64, ptr %16, align 8, !tbaa !9
  %470 = getelementptr inbounds double, ptr %468, i64 %469
  %471 = load ptr, ptr %8, align 8, !tbaa !5
  %472 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %471, i32 0, i32 6
  %473 = load ptr, ptr %472, align 8, !tbaa !15
  %474 = load i64, ptr %16, align 8, !tbaa !9
  %475 = add nsw i64 %474, 1
  %476 = getelementptr inbounds ptr, ptr %473, i64 %475
  %477 = load ptr, ptr %476, align 8, !tbaa !5
  %478 = load i64, ptr %16, align 8, !tbaa !9
  %479 = getelementptr inbounds double, ptr %477, i64 %478
  %480 = load ptr, ptr %8, align 8, !tbaa !5
  %481 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %480, i32 0, i32 2
  %482 = load i64, ptr %481, align 8, !tbaa !16
  %483 = load i64, ptr %16, align 8, !tbaa !9
  %484 = load i64, ptr %9, align 8, !tbaa !9
  %485 = sub nsw i64 %484, 2
  %486 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %483, i64 noundef %485)
  %487 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %470, i64 noundef 1, ptr noundef %479, i64 noundef %482, i64 noundef %486)
  store double %487, ptr %19, align 8, !tbaa !19
  %488 = load double, ptr %18, align 8, !tbaa !19
  %489 = fmul double -5.000000e-01, %488
  %490 = load double, ptr %19, align 8, !tbaa !19
  %491 = fmul double %489, %490
  store double %491, ptr %17, align 8, !tbaa !19
  %492 = load ptr, ptr %11, align 8, !tbaa !5
  %493 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %492, i32 0, i32 4
  %494 = load ptr, ptr %493, align 8, !tbaa !15
  %495 = load i64, ptr %16, align 8, !tbaa !9
  %496 = getelementptr inbounds double, ptr %494, i64 %495
  %497 = load ptr, ptr %8, align 8, !tbaa !5
  %498 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %497, i32 0, i32 6
  %499 = load ptr, ptr %498, align 8, !tbaa !15
  %500 = load i64, ptr %16, align 8, !tbaa !9
  %501 = add nsw i64 %500, 1
  %502 = getelementptr inbounds ptr, ptr %499, i64 %501
  %503 = load ptr, ptr %502, align 8, !tbaa !5
  %504 = load i64, ptr %16, align 8, !tbaa !9
  %505 = getelementptr inbounds double, ptr %503, i64 %504
  %506 = load ptr, ptr %8, align 8, !tbaa !5
  %507 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %506, i32 0, i32 2
  %508 = load i64, ptr %507, align 8, !tbaa !16
  %509 = load i64, ptr %16, align 8, !tbaa !9
  %510 = load i64, ptr %9, align 8, !tbaa !9
  %511 = sub nsw i64 %510, 2
  %512 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %509, i64 noundef %511)
  %513 = load double, ptr %17, align 8, !tbaa !19
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %496, i64 noundef 1, ptr noundef %505, i64 noundef %508, i64 noundef %512, double noundef %513)
  %514 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %515 = load ptr, ptr %514, align 8, !tbaa !15
  %516 = getelementptr inbounds double, ptr %515, i64 1
  %517 = load ptr, ptr %8, align 8, !tbaa !5
  %518 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %517, i32 0, i32 6
  %519 = load ptr, ptr %518, align 8, !tbaa !15
  %520 = load i64, ptr %16, align 8, !tbaa !9
  %521 = add nsw i64 %520, 1
  %522 = getelementptr inbounds ptr, ptr %519, i64 %521
  %523 = load ptr, ptr %522, align 8, !tbaa !5
  %524 = load i64, ptr %16, align 8, !tbaa !9
  %525 = getelementptr inbounds double, ptr %523, i64 %524
  %526 = load ptr, ptr %8, align 8, !tbaa !5
  %527 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %526, i32 0, i32 2
  %528 = load i64, ptr %527, align 8, !tbaa !16
  %529 = load i64, ptr %9, align 8, !tbaa !9
  %530 = load i64, ptr %16, align 8, !tbaa !9
  %531 = sub nsw i64 %529, %530
  %532 = sub nsw i64 %531, 1
  %533 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %532)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %516, i64 noundef 1, ptr noundef %525, i64 noundef %528, i64 noundef %533)
  %534 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %535 = load ptr, ptr %534, align 8, !tbaa !15
  %536 = getelementptr inbounds double, ptr %535, i64 1
  %537 = load ptr, ptr %11, align 8, !tbaa !5
  %538 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %537, i32 0, i32 4
  %539 = load ptr, ptr %538, align 8, !tbaa !15
  %540 = load i64, ptr %16, align 8, !tbaa !9
  %541 = getelementptr inbounds double, ptr %539, i64 %540
  %542 = load i64, ptr %9, align 8, !tbaa !9
  %543 = load i64, ptr %16, align 8, !tbaa !9
  %544 = sub nsw i64 %542, %543
  %545 = sub nsw i64 %544, 1
  %546 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %545)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %536, i64 noundef 1, ptr noundef %541, i64 noundef 1, i64 noundef %546)
  %547 = load ptr, ptr %8, align 8, !tbaa !5
  %548 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %549 = trunc i8 %548 to i1
  %550 = load i64, ptr %16, align 8, !tbaa !9
  %551 = add nsw i64 %550, 1
  %552 = load i64, ptr %9, align 8, !tbaa !9
  %553 = sub nsw i64 %552, 1
  %554 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20symmetricrank2updateEPNS_9ae_matrixEbllPNS_9ae_vectorES3_S3_dPNS_8ae_stateE(ptr noundef %547, i1 noundef zeroext %549, i64 noundef %551, i64 noundef %553, ptr noundef %20, ptr noundef %21, ptr noundef %22, double noundef -1.000000e+00, ptr noundef %554)
  %555 = load ptr, ptr %13, align 8, !tbaa !5
  %556 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %555, i32 0, i32 4
  %557 = load ptr, ptr %556, align 8, !tbaa !15
  %558 = load i64, ptr %16, align 8, !tbaa !9
  %559 = getelementptr inbounds double, ptr %557, i64 %558
  %560 = load double, ptr %559, align 8, !tbaa !19
  %561 = load ptr, ptr %8, align 8, !tbaa !5
  %562 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %561, i32 0, i32 6
  %563 = load ptr, ptr %562, align 8, !tbaa !15
  %564 = load i64, ptr %16, align 8, !tbaa !9
  %565 = add nsw i64 %564, 1
  %566 = getelementptr inbounds ptr, ptr %563, i64 %565
  %567 = load ptr, ptr %566, align 8, !tbaa !5
  %568 = load i64, ptr %16, align 8, !tbaa !9
  %569 = getelementptr inbounds double, ptr %567, i64 %568
  store double %560, ptr %569, align 8, !tbaa !19
  br label %570

570:                                              ; preds = %415, %352
  %571 = load ptr, ptr %8, align 8, !tbaa !5
  %572 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %571, i32 0, i32 6
  %573 = load ptr, ptr %572, align 8, !tbaa !15
  %574 = load i64, ptr %16, align 8, !tbaa !9
  %575 = getelementptr inbounds ptr, ptr %573, i64 %574
  %576 = load ptr, ptr %575, align 8, !tbaa !5
  %577 = load i64, ptr %16, align 8, !tbaa !9
  %578 = getelementptr inbounds double, ptr %576, i64 %577
  %579 = load double, ptr %578, align 8, !tbaa !19
  %580 = load ptr, ptr %12, align 8, !tbaa !5
  %581 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %580, i32 0, i32 4
  %582 = load ptr, ptr %581, align 8, !tbaa !15
  %583 = load i64, ptr %16, align 8, !tbaa !9
  %584 = getelementptr inbounds double, ptr %582, i64 %583
  store double %579, ptr %584, align 8, !tbaa !19
  %585 = load double, ptr %18, align 8, !tbaa !19
  %586 = load ptr, ptr %11, align 8, !tbaa !5
  %587 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %586, i32 0, i32 4
  %588 = load ptr, ptr %587, align 8, !tbaa !15
  %589 = load i64, ptr %16, align 8, !tbaa !9
  %590 = getelementptr inbounds double, ptr %588, i64 %589
  store double %585, ptr %590, align 8, !tbaa !19
  br label %591

591:                                              ; preds = %570
  %592 = load i64, ptr %16, align 8, !tbaa !9
  %593 = add nsw i64 %592, 1
  store i64 %593, ptr %16, align 8, !tbaa !9
  br label %347, !llvm.loop !23

594:                                              ; preds = %347
  %595 = load ptr, ptr %8, align 8, !tbaa !5
  %596 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %595, i32 0, i32 6
  %597 = load ptr, ptr %596, align 8, !tbaa !15
  %598 = load i64, ptr %9, align 8, !tbaa !9
  %599 = sub nsw i64 %598, 1
  %600 = getelementptr inbounds ptr, ptr %597, i64 %599
  %601 = load ptr, ptr %600, align 8, !tbaa !5
  %602 = load i64, ptr %9, align 8, !tbaa !9
  %603 = sub nsw i64 %602, 1
  %604 = getelementptr inbounds double, ptr %601, i64 %603
  %605 = load double, ptr %604, align 8, !tbaa !19
  %606 = load ptr, ptr %12, align 8, !tbaa !5
  %607 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %606, i32 0, i32 4
  %608 = load ptr, ptr %607, align 8, !tbaa !15
  %609 = load i64, ptr %9, align 8, !tbaa !9
  %610 = sub nsw i64 %609, 1
  %611 = getelementptr inbounds double, ptr %608, i64 %610
  store double %605, ptr %611, align 8, !tbaa !19
  br label %612

612:                                              ; preds = %594, %334
  %613 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %613)
  store i32 0, ptr %23, align 4
  br label %614

614:                                              ; preds = %612, %78, %34
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  %615 = load i32, ptr %23, align 4
  switch i32 %615, label %617 [
    i32 0, label %616
    i32 1, label %616
  ]

616:                                              ; preds = %614, %614
  ret void

617:                                              ; preds = %614
  unreachable
}

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) #3

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #3

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #3

declare void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, double noundef) #3

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #3

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18generatereflectionEPNS_9ae_vectorElPdPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #3

declare noundef zeroext i1 @_ZN11alglib_impl12smatrixtdmklEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i64 noundef, i64 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl20symmetricrank2updateEPNS_9ae_matrixEbllPNS_9ae_vectorES3_S3_dPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, double noundef, ptr noundef) #3

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

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

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl9smatrixtdEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #2 {
  %8 = alloca %"struct.alglib_impl::ae_frame", align 8
  %9 = alloca double, align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %6, ptr noundef nonnull %8)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %3)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %4)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %5)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  %13 = icmp slt i64 %1, 1
  br i1 %13, label %260, label %14

14:                                               ; preds = %7
  %15 = add nuw nsw i64 %1, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %15, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %15, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %15, ptr noundef %6)
  %.not = icmp eq i64 %1, 1
  br i1 %.not, label %.thread, label %16

.thread:                                          ; preds = %14
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %4, i64 noundef 1, ptr noundef %6)
  br label %18

16:                                               ; preds = %14
  %17 = add nsw i64 %1, -1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %3, i64 noundef %17, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %4, i64 noundef %1, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %5, i64 noundef %17, ptr noundef %6)
  br label %18

18:                                               ; preds = %.thread, %16
  %19 = phi i64 [ 0, %.thread ], [ %17, %16 ]
  %20 = call noundef zeroext i1 @_ZN11alglib_impl12smatrixtdmklEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i1 noundef zeroext %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6)
  br i1 %20, label %260, label %21

21:                                               ; preds = %18
  br i1 %2, label %30, label %.preheader

.preheader:                                       ; preds = %21
  %22 = add nsw i64 %1, -2
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %23 = getelementptr inbounds i8, ptr %10, i64 56
  %24 = getelementptr inbounds i8, ptr %0, i64 72
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = getelementptr inbounds i8, ptr %5, i64 56
  %27 = getelementptr inbounds i8, ptr %3, i64 56
  %28 = getelementptr inbounds i8, ptr %11, i64 56
  %29 = getelementptr inbounds i8, ptr %4, i64 56
  br label %152

30:                                               ; preds = %21
  br i1 %.not, label %._crit_edge212, label %.lr.ph211

.lr.ph211:                                        ; preds = %30
  %31 = add nsw i64 %1, -2
  %32 = getelementptr inbounds i8, ptr %10, i64 56
  %33 = getelementptr inbounds i8, ptr %0, i64 72
  %34 = getelementptr inbounds i8, ptr %0, i64 16
  %35 = getelementptr inbounds i8, ptr %5, i64 56
  %36 = getelementptr inbounds i8, ptr %3, i64 56
  %37 = getelementptr inbounds i8, ptr %12, i64 56
  %38 = getelementptr inbounds i8, ptr %4, i64 56
  br label %39

39:                                               ; preds = %.lr.ph211, %133
  %.0209 = phi i64 [ %31, %.lr.ph211 ], [ %144, %133 ]
  %.not206 = icmp eq i64 %.0209, 0
  br i1 %.not206, label %._crit_edge214, label %40

40:                                               ; preds = %39
  %41 = load ptr, ptr %32, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  %43 = load ptr, ptr %33, align 8, !tbaa !5
  %44 = load ptr, ptr %43, align 8, !tbaa !8
  %45 = add nuw nsw i64 %.0209, 1
  %46 = getelementptr inbounds double, ptr %44, i64 %45
  %47 = load i64, ptr %34, align 8, !tbaa !10
  %48 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 2, i64 noundef %45)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %42, i64 noundef 1, ptr noundef nonnull %46, i64 noundef %47, i64 noundef %48)
  br label %._crit_edge214

._crit_edge214:                                   ; preds = %39, %40
  %.pre-phi = phi i64 [ %45, %40 ], [ 1, %39 ]
  %49 = load ptr, ptr %33, align 8, !tbaa !5
  %50 = getelementptr inbounds ptr, ptr %49, i64 %.0209
  %51 = load ptr, ptr %50, align 8, !tbaa !8
  %52 = getelementptr inbounds double, ptr %51, i64 %.pre-phi
  %53 = load double, ptr %52, align 8, !tbaa !15
  %54 = load ptr, ptr %32, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  store double %53, ptr %55, align 8, !tbaa !15
  call void @_ZN11alglib_impl18generatereflectionEPNS_9ae_vectorElPdPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.pre-phi, ptr noundef nonnull %9, ptr noundef %6)
  br i1 %.not206, label %65, label %56

56:                                               ; preds = %._crit_edge214
  %57 = load ptr, ptr %33, align 8, !tbaa !5
  %58 = load ptr, ptr %57, align 8, !tbaa !8
  %59 = getelementptr inbounds double, ptr %58, i64 %.pre-phi
  %60 = load i64, ptr %34, align 8, !tbaa !10
  %61 = load ptr, ptr %32, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  %63 = add nsw i64 %.0209, -1
  %64 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %63)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %59, i64 noundef %60, ptr noundef nonnull %62, i64 noundef 1, i64 noundef %64)
  br label %65

65:                                               ; preds = %56, %._crit_edge214
  %66 = load ptr, ptr %32, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %66, i64 8
  %68 = load double, ptr %67, align 8, !tbaa !15
  %69 = load ptr, ptr %33, align 8, !tbaa !5
  %70 = getelementptr inbounds ptr, ptr %69, i64 %.0209
  %71 = load ptr, ptr %70, align 8, !tbaa !8
  %72 = getelementptr inbounds double, ptr %71, i64 %.pre-phi
  store double %68, ptr %72, align 8, !tbaa !15
  %73 = load ptr, ptr %33, align 8, !tbaa !5
  %74 = getelementptr inbounds ptr, ptr %73, i64 %.0209
  %75 = load ptr, ptr %74, align 8, !tbaa !8
  %76 = getelementptr inbounds double, ptr %75, i64 %.pre-phi
  %77 = load double, ptr %76, align 8, !tbaa !15
  %78 = load ptr, ptr %35, align 8, !tbaa !5
  %79 = getelementptr inbounds double, ptr %78, i64 %.0209
  store double %77, ptr %79, align 8, !tbaa !15
  %80 = load double, ptr %9, align 8, !tbaa !15
  %81 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %80, double noundef 0.000000e+00)
  br i1 %81, label %82, label %133

82:                                               ; preds = %65
  %83 = load ptr, ptr %33, align 8, !tbaa !5
  %84 = getelementptr inbounds ptr, ptr %83, i64 %.0209
  %85 = load ptr, ptr %84, align 8, !tbaa !8
  %86 = getelementptr inbounds double, ptr %85, i64 %.pre-phi
  store double 1.000000e+00, ptr %86, align 8, !tbaa !15
  %87 = load ptr, ptr %32, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i64 8
  %89 = load ptr, ptr %33, align 8, !tbaa !5
  %90 = load ptr, ptr %89, align 8, !tbaa !8
  %91 = getelementptr inbounds double, ptr %90, i64 %.pre-phi
  %92 = load i64, ptr %34, align 8, !tbaa !10
  %93 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %.pre-phi)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %88, i64 noundef 1, ptr noundef nonnull %91, i64 noundef %92, i64 noundef %93)
  %94 = load double, ptr %9, align 8, !tbaa !15
  call void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef nonnull %0, i1 noundef zeroext true, i64 noundef 0, i64 noundef %.0209, ptr noundef nonnull %10, double noundef %94, ptr noundef nonnull %12, ptr noundef %6)
  %95 = load ptr, ptr %36, align 8, !tbaa !5
  %96 = load ptr, ptr %37, align 8, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %96, i64 8
  %98 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.0209)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %95, i64 noundef 1, ptr noundef nonnull %97, i64 noundef 1, i64 noundef %98)
  %99 = load ptr, ptr %36, align 8, !tbaa !5
  %100 = load ptr, ptr %33, align 8, !tbaa !5
  %101 = load ptr, ptr %100, align 8, !tbaa !8
  %102 = getelementptr inbounds double, ptr %101, i64 %.pre-phi
  %103 = load i64, ptr %34, align 8, !tbaa !10
  %104 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.0209)
  %105 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %99, i64 noundef 1, ptr noundef nonnull %102, i64 noundef %103, i64 noundef %104)
  %106 = load double, ptr %9, align 8, !tbaa !15
  %107 = fmul double %106, -5.000000e-01
  %108 = fmul double %105, %107
  %109 = load ptr, ptr %36, align 8, !tbaa !5
  %110 = load ptr, ptr %33, align 8, !tbaa !5
  %111 = load ptr, ptr %110, align 8, !tbaa !8
  %112 = getelementptr inbounds double, ptr %111, i64 %.pre-phi
  %113 = load i64, ptr %34, align 8, !tbaa !10
  %114 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %.0209)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %109, i64 noundef 1, ptr noundef nonnull %112, i64 noundef %113, i64 noundef %114, double noundef %108)
  %115 = load ptr, ptr %32, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %115, i64 8
  %117 = load ptr, ptr %33, align 8, !tbaa !5
  %118 = load ptr, ptr %117, align 8, !tbaa !8
  %119 = getelementptr inbounds double, ptr %118, i64 %.pre-phi
  %120 = load i64, ptr %34, align 8, !tbaa !10
  %121 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %.pre-phi)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %116, i64 noundef 1, ptr noundef nonnull %119, i64 noundef %120, i64 noundef %121)
  %122 = load ptr, ptr %37, align 8, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %122, i64 8
  %124 = load ptr, ptr %36, align 8, !tbaa !5
  %125 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %.pre-phi)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %123, i64 noundef 1, ptr noundef %124, i64 noundef 1, i64 noundef %125)
  call void @_ZN11alglib_impl20symmetricrank2updateEPNS_9ae_matrixEbllPNS_9ae_vectorES3_S3_dPNS_8ae_stateE(ptr noundef nonnull %0, i1 noundef zeroext true, i64 noundef 0, i64 noundef %.0209, ptr noundef nonnull %10, ptr noundef nonnull %12, ptr noundef nonnull %11, double noundef -1.000000e+00, ptr noundef %6)
  %126 = load ptr, ptr %35, align 8, !tbaa !5
  %127 = getelementptr inbounds double, ptr %126, i64 %.0209
  %128 = load double, ptr %127, align 8, !tbaa !15
  %129 = load ptr, ptr %33, align 8, !tbaa !5
  %130 = getelementptr inbounds ptr, ptr %129, i64 %.0209
  %131 = load ptr, ptr %130, align 8, !tbaa !8
  %132 = getelementptr inbounds double, ptr %131, i64 %.pre-phi
  store double %128, ptr %132, align 8, !tbaa !15
  br label %133

133:                                              ; preds = %82, %65
  %134 = load ptr, ptr %33, align 8, !tbaa !5
  %135 = getelementptr inbounds ptr, ptr %134, i64 %.pre-phi
  %136 = load ptr, ptr %135, align 8, !tbaa !8
  %137 = getelementptr inbounds double, ptr %136, i64 %.pre-phi
  %138 = load double, ptr %137, align 8, !tbaa !15
  %139 = load ptr, ptr %38, align 8, !tbaa !5
  %140 = getelementptr inbounds double, ptr %139, i64 %.pre-phi
  store double %138, ptr %140, align 8, !tbaa !15
  %141 = load double, ptr %9, align 8, !tbaa !15
  %142 = load ptr, ptr %36, align 8, !tbaa !5
  %143 = getelementptr inbounds double, ptr %142, i64 %.0209
  store double %141, ptr %143, align 8, !tbaa !15
  %144 = add nsw i64 %.0209, -1
  %145 = icmp sgt i64 %.0209, 0
  br i1 %145, label %39, label %._crit_edge212, !llvm.loop !17

._crit_edge212:                                   ; preds = %133, %30
  %146 = getelementptr inbounds i8, ptr %0, i64 72
  %147 = load ptr, ptr %146, align 8, !tbaa !5
  %148 = load ptr, ptr %147, align 8, !tbaa !8
  %149 = load double, ptr %148, align 8, !tbaa !15
  %150 = getelementptr inbounds i8, ptr %4, i64 56
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  store double %149, ptr %151, align 8, !tbaa !15
  br label %260

152:                                              ; preds = %.lr.ph, %240
  %.1208 = phi i64 [ 0, %.lr.ph ], [ %156, %240 ]
  %153 = load ptr, ptr %23, align 8, !tbaa !5
  %154 = getelementptr inbounds i8, ptr %153, i64 8
  %155 = load ptr, ptr %24, align 8, !tbaa !5
  %156 = add nuw nsw i64 %.1208, 1
  %157 = getelementptr inbounds ptr, ptr %155, i64 %156
  %158 = load ptr, ptr %157, align 8, !tbaa !8
  %159 = getelementptr inbounds double, ptr %158, i64 %.1208
  %160 = load i64, ptr %25, align 8, !tbaa !10
  %161 = xor i64 %.1208, -1
  %162 = add nsw i64 %161, %1
  %163 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %162)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %154, i64 noundef 1, ptr noundef %159, i64 noundef %160, i64 noundef %163)
  call void @_ZN11alglib_impl18generatereflectionEPNS_9ae_vectorElPdPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %162, ptr noundef nonnull %9, ptr noundef %6)
  %164 = load ptr, ptr %24, align 8, !tbaa !5
  %165 = getelementptr inbounds ptr, ptr %164, i64 %156
  %166 = load ptr, ptr %165, align 8, !tbaa !8
  %167 = getelementptr inbounds double, ptr %166, i64 %.1208
  %168 = load i64, ptr %25, align 8, !tbaa !10
  %169 = load ptr, ptr %23, align 8, !tbaa !5
  %170 = getelementptr inbounds i8, ptr %169, i64 8
  %171 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %156, i64 noundef %19)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %167, i64 noundef %168, ptr noundef nonnull %170, i64 noundef 1, i64 noundef %171)
  %172 = load ptr, ptr %24, align 8, !tbaa !5
  %173 = getelementptr inbounds ptr, ptr %172, i64 %156
  %174 = load ptr, ptr %173, align 8, !tbaa !8
  %175 = getelementptr inbounds double, ptr %174, i64 %.1208
  %176 = load double, ptr %175, align 8, !tbaa !15
  %177 = load ptr, ptr %26, align 8, !tbaa !5
  %178 = getelementptr inbounds double, ptr %177, i64 %.1208
  store double %176, ptr %178, align 8, !tbaa !15
  %179 = load double, ptr %9, align 8, !tbaa !15
  %180 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %179, double noundef 0.000000e+00)
  br i1 %180, label %181, label %240

181:                                              ; preds = %152
  %182 = load ptr, ptr %24, align 8, !tbaa !5
  %183 = getelementptr inbounds ptr, ptr %182, i64 %156
  %184 = load ptr, ptr %183, align 8, !tbaa !8
  %185 = getelementptr inbounds double, ptr %184, i64 %.1208
  store double 1.000000e+00, ptr %185, align 8, !tbaa !15
  %186 = load ptr, ptr %23, align 8, !tbaa !5
  %187 = getelementptr inbounds i8, ptr %186, i64 8
  %188 = load ptr, ptr %24, align 8, !tbaa !5
  %189 = getelementptr inbounds ptr, ptr %188, i64 %156
  %190 = load ptr, ptr %189, align 8, !tbaa !8
  %191 = getelementptr inbounds double, ptr %190, i64 %.1208
  %192 = load i64, ptr %25, align 8, !tbaa !10
  %193 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %162)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %187, i64 noundef 1, ptr noundef %191, i64 noundef %192, i64 noundef %193)
  %194 = load double, ptr %9, align 8, !tbaa !15
  call void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef nonnull %0, i1 noundef zeroext false, i64 noundef %156, i64 noundef %19, ptr noundef nonnull %10, double noundef %194, ptr noundef nonnull %11, ptr noundef %6)
  %195 = load ptr, ptr %27, align 8, !tbaa !5
  %196 = getelementptr inbounds double, ptr %195, i64 %.1208
  %197 = load ptr, ptr %28, align 8, !tbaa !5
  %198 = getelementptr inbounds i8, ptr %197, i64 8
  %199 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.1208, i64 noundef %22)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %196, i64 noundef 1, ptr noundef nonnull %198, i64 noundef 1, i64 noundef %199)
  %200 = load ptr, ptr %27, align 8, !tbaa !5
  %201 = getelementptr inbounds double, ptr %200, i64 %.1208
  %202 = load ptr, ptr %24, align 8, !tbaa !5
  %203 = getelementptr inbounds ptr, ptr %202, i64 %156
  %204 = load ptr, ptr %203, align 8, !tbaa !8
  %205 = getelementptr inbounds double, ptr %204, i64 %.1208
  %206 = load i64, ptr %25, align 8, !tbaa !10
  %207 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.1208, i64 noundef %22)
  %208 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %201, i64 noundef 1, ptr noundef %205, i64 noundef %206, i64 noundef %207)
  %209 = load double, ptr %9, align 8, !tbaa !15
  %210 = fmul double %209, -5.000000e-01
  %211 = fmul double %208, %210
  %212 = load ptr, ptr %27, align 8, !tbaa !5
  %213 = getelementptr inbounds double, ptr %212, i64 %.1208
  %214 = load ptr, ptr %24, align 8, !tbaa !5
  %215 = getelementptr inbounds ptr, ptr %214, i64 %156
  %216 = load ptr, ptr %215, align 8, !tbaa !8
  %217 = getelementptr inbounds double, ptr %216, i64 %.1208
  %218 = load i64, ptr %25, align 8, !tbaa !10
  %219 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.1208, i64 noundef %22)
  call void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef %213, i64 noundef 1, ptr noundef %217, i64 noundef %218, i64 noundef %219, double noundef %211)
  %220 = load ptr, ptr %23, align 8, !tbaa !5
  %221 = getelementptr inbounds i8, ptr %220, i64 8
  %222 = load ptr, ptr %24, align 8, !tbaa !5
  %223 = getelementptr inbounds ptr, ptr %222, i64 %156
  %224 = load ptr, ptr %223, align 8, !tbaa !8
  %225 = getelementptr inbounds double, ptr %224, i64 %.1208
  %226 = load i64, ptr %25, align 8, !tbaa !10
  %227 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %162)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %221, i64 noundef 1, ptr noundef %225, i64 noundef %226, i64 noundef %227)
  %228 = load ptr, ptr %28, align 8, !tbaa !5
  %229 = getelementptr inbounds i8, ptr %228, i64 8
  %230 = load ptr, ptr %27, align 8, !tbaa !5
  %231 = getelementptr inbounds double, ptr %230, i64 %.1208
  %232 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %162)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %229, i64 noundef 1, ptr noundef %231, i64 noundef 1, i64 noundef %232)
  call void @_ZN11alglib_impl20symmetricrank2updateEPNS_9ae_matrixEbllPNS_9ae_vectorES3_S3_dPNS_8ae_stateE(ptr noundef nonnull %0, i1 noundef zeroext false, i64 noundef %156, i64 noundef %19, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, double noundef -1.000000e+00, ptr noundef %6)
  %233 = load ptr, ptr %26, align 8, !tbaa !5
  %234 = getelementptr inbounds double, ptr %233, i64 %.1208
  %235 = load double, ptr %234, align 8, !tbaa !15
  %236 = load ptr, ptr %24, align 8, !tbaa !5
  %237 = getelementptr inbounds ptr, ptr %236, i64 %156
  %238 = load ptr, ptr %237, align 8, !tbaa !8
  %239 = getelementptr inbounds double, ptr %238, i64 %.1208
  store double %235, ptr %239, align 8, !tbaa !15
  br label %240

240:                                              ; preds = %181, %152
  %241 = load ptr, ptr %24, align 8, !tbaa !5
  %242 = getelementptr inbounds ptr, ptr %241, i64 %.1208
  %243 = load ptr, ptr %242, align 8, !tbaa !8
  %244 = getelementptr inbounds double, ptr %243, i64 %.1208
  %245 = load double, ptr %244, align 8, !tbaa !15
  %246 = load ptr, ptr %29, align 8, !tbaa !5
  %247 = getelementptr inbounds double, ptr %246, i64 %.1208
  store double %245, ptr %247, align 8, !tbaa !15
  %248 = load double, ptr %9, align 8, !tbaa !15
  %249 = load ptr, ptr %27, align 8, !tbaa !5
  %250 = getelementptr inbounds double, ptr %249, i64 %.1208
  store double %248, ptr %250, align 8, !tbaa !15
  %exitcond.not = icmp eq i64 %.1208, %22
  br i1 %exitcond.not, label %._crit_edge, label %152, !llvm.loop !19

._crit_edge:                                      ; preds = %240, %.preheader
  %251 = getelementptr inbounds i8, ptr %0, i64 72
  %252 = load ptr, ptr %251, align 8, !tbaa !5
  %253 = getelementptr inbounds ptr, ptr %252, i64 %19
  %254 = load ptr, ptr %253, align 8, !tbaa !8
  %255 = getelementptr inbounds double, ptr %254, i64 %19
  %256 = load double, ptr %255, align 8, !tbaa !15
  %257 = getelementptr inbounds i8, ptr %4, i64 56
  %258 = load ptr, ptr %257, align 8, !tbaa !5
  %259 = getelementptr inbounds double, ptr %258, i64 %19
  store double %256, ptr %259, align 8, !tbaa !15
  br label %260

260:                                              ; preds = %._crit_edge212, %._crit_edge, %18, %7
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %6)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  ret void
}

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) local_unnamed_addr #3

declare noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl9ae_v_adddEPdlPKdlld(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, double noundef) local_unnamed_addr #3

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18generatereflectionEPNS_9ae_vectorElPdPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN11alglib_impl12smatrixtdmklEPNS_9ae_matrixElbPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i64 noundef, i64 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl20symmetricrank2updateEPNS_9ae_matrixEbllPNS_9ae_vectorES3_S3_dPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, double noundef, ptr noundef) local_unnamed_addr #3

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


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