; 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_complex" = type { double, double }
%"struct.alglib_impl::sinteger" = type { i64 }
%"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::matinvreport" = type { double, double }

@.str.288 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.289 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.290 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.291 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.292 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.293 = external hidden unnamed_addr constant [42 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN11alglib_impl15cmatrixlurcond1EPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN11alglib_impl17cmatrixlurcondinfEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16cmatrixluinverseEPNS_9ae_matrixEPNS_9ae_vectorElPlPNS_12matinvreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #4 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.alglib_impl::ae_frame", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca %"struct.alglib_impl::ae_complex", align 8
  %19 = alloca %"struct.alglib_impl::sinteger", align 8
  %20 = alloca %"struct.alglib_impl::ae_complex", align 8
  %21 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %22 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %22, ptr noundef %13)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 8, i1 false)
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  store i64 0, ptr %23, align 8, !tbaa !9
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl19_matinvreport_clearEPv(ptr noundef %24)
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %14, i64 noundef 0, i64 noundef 4, ptr noundef %25, i1 noundef zeroext true)
  %26 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14_sinteger_initEPvPNS_8ae_stateEb(ptr noundef %19, ptr noundef %26, i1 noundef zeroext true)
  %27 = load i64, ptr %9, align 8, !tbaa !9
  %28 = icmp sgt i64 %27, 0
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %28, ptr noundef @.str.288, ptr noundef %29)
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %30, i32 0, i32 1
  %32 = load i64, ptr %31, align 8, !tbaa !11
  %33 = load i64, ptr %9, align 8, !tbaa !9
  %34 = icmp sge i64 %32, %33
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef @.str.289, ptr noundef %35)
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %36, i32 0, i32 0
  %38 = load i64, ptr %37, align 8, !tbaa !15
  %39 = load i64, ptr %9, align 8, !tbaa !9
  %40 = icmp sge i64 %38, %39
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %40, ptr noundef @.str.290, ptr noundef %41)
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 0
  %44 = load i64, ptr %43, align 8, !tbaa !16
  %45 = load i64, ptr %9, align 8, !tbaa !9
  %46 = icmp sge i64 %44, %45
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %46, ptr noundef @.str.291, ptr noundef %47)
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = load i64, ptr %9, align 8, !tbaa !9
  %50 = load i64, ptr %9, align 8, !tbaa !9
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = call noundef zeroext i1 @_ZN11alglib_impl21apservisfinitecmatrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %48, i64 noundef %49, i64 noundef %50, ptr noundef %51)
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef @.str.292, ptr noundef %53)
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  store i64 1, ptr %54, align 8, !tbaa !9
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %55

55:                                               ; preds = %82, %6
  %56 = load i64, ptr %15, align 8, !tbaa !9
  %57 = load i64, ptr %9, align 8, !tbaa !9
  %58 = sub nsw i64 %57, 1
  %59 = icmp sle i64 %56, %58
  br i1 %59, label %60, label %85

60:                                               ; preds = %55
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %61, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !18
  %64 = load i64, ptr %15, align 8, !tbaa !9
  %65 = getelementptr inbounds i64, ptr %63, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !9
  %67 = load i64, ptr %9, align 8, !tbaa !9
  %68 = sub nsw i64 %67, 1
  %69 = icmp sgt i64 %66, %68
  br i1 %69, label %79, label %70

70:                                               ; preds = %60
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %71, i32 0, i32 4
  %73 = load ptr, ptr %72, align 8, !tbaa !18
  %74 = load i64, ptr %15, align 8, !tbaa !9
  %75 = getelementptr inbounds i64, ptr %73, i64 %74
  %76 = load i64, ptr %75, align 8, !tbaa !9
  %77 = load i64, ptr %15, align 8, !tbaa !9
  %78 = icmp slt i64 %76, %77
  br i1 %78, label %79, label %81

79:                                               ; preds = %70, %60
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  store i64 -1, ptr %80, align 8, !tbaa !9
  br label %81

81:                                               ; preds = %79, %70
  br label %82

82:                                               ; preds = %81
  %83 = load i64, ptr %15, align 8, !tbaa !9
  %84 = add nsw i64 %83, 1
  store i64 %84, ptr %15, align 8, !tbaa !9
  br label %55, !llvm.loop !19

85:                                               ; preds = %55
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = load i64, ptr %86, align 8, !tbaa !9
  %88 = icmp sgt i64 %87, 0
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %88, ptr noundef @.str.293, ptr noundef %89)
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = load i64, ptr %9, align 8, !tbaa !9
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = call noundef double @_ZN11alglib_impl15cmatrixlurcond1EPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %90, i64 noundef %91, ptr noundef %92)
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::matinvreport", ptr %94, i32 0, i32 0
  store double %93, ptr %95, align 8, !tbaa !21
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = load i64, ptr %9, align 8, !tbaa !9
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = call noundef double @_ZN11alglib_impl17cmatrixlurcondinfEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef %96, i64 noundef %97, ptr noundef %98)
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::matinvreport", ptr %100, i32 0, i32 1
  store double %99, ptr %101, align 8, !tbaa !24
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::matinvreport", ptr %102, i32 0, i32 0
  %104 = load double, ptr %103, align 8, !tbaa !21
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  %106 = call noundef double @_ZN11alglib_impl14rcondthresholdEPNS_8ae_stateE(ptr noundef %105)
  %107 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %104, double noundef %106)
  br i1 %107, label %115, label %108

108:                                              ; preds = %85
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.alglib_impl::matinvreport", ptr %109, i32 0, i32 1
  %111 = load double, ptr %110, align 8, !tbaa !24
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = call noundef double @_ZN11alglib_impl14rcondthresholdEPNS_8ae_stateE(ptr noundef %112)
  %114 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %111, double noundef %113)
  br i1 %114, label %115, label %155

115:                                              ; preds = %108, %85
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %116

116:                                              ; preds = %145, %115
  %117 = load i64, ptr %15, align 8, !tbaa !9
  %118 = load i64, ptr %9, align 8, !tbaa !9
  %119 = sub nsw i64 %118, 1
  %120 = icmp sle i64 %117, %119
  br i1 %120, label %121, label %148

121:                                              ; preds = %116
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %122

122:                                              ; preds = %141, %121
  %123 = load i64, ptr %16, align 8, !tbaa !9
  %124 = load i64, ptr %9, align 8, !tbaa !9
  %125 = sub nsw i64 %124, 1
  %126 = icmp sle i64 %123, %125
  br i1 %126, label %127, label %144

127:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %128 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %129 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %130 = extractvalue { double, double } %128, 0
  store double %130, ptr %129, align 8
  %131 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %132 = extractvalue { double, double } %128, 1
  store double %132, ptr %131, align 8
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %133, i32 0, i32 6
  %135 = load ptr, ptr %134, align 8, !tbaa !18
  %136 = load i64, ptr %15, align 8, !tbaa !9
  %137 = getelementptr inbounds ptr, ptr %135, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  %139 = load i64, ptr %16, align 8, !tbaa !9
  %140 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %138, i64 %139
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %140, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  br label %141

141:                                              ; preds = %127
  %142 = load i64, ptr %16, align 8, !tbaa !9
  %143 = add nsw i64 %142, 1
  store i64 %143, ptr %16, align 8, !tbaa !9
  br label %122, !llvm.loop !27

144:                                              ; preds = %122
  br label %145

145:                                              ; preds = %144
  %146 = load i64, ptr %15, align 8, !tbaa !9
  %147 = add nsw i64 %146, 1
  store i64 %147, ptr %15, align 8, !tbaa !9
  br label %116, !llvm.loop !28

148:                                              ; preds = %116
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.alglib_impl::matinvreport", ptr %149, i32 0, i32 0
  store double 0.000000e+00, ptr %150, align 8, !tbaa !21
  %151 = load ptr, ptr %11, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.alglib_impl::matinvreport", ptr %151, i32 0, i32 1
  store double 0.000000e+00, ptr %152, align 8, !tbaa !24
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  store i64 -3, ptr %153, align 8, !tbaa !9
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %154)
  store i32 1, ptr %21, align 4
  br label %225

155:                                              ; preds = %108
  %156 = load i64, ptr %9, align 8, !tbaa !9
  %157 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %14, i64 noundef %156, ptr noundef %157)
  %158 = getelementptr inbounds %"struct.alglib_impl::sinteger", ptr %19, i32 0, i32 0
  store i64 1, ptr %158, align 8, !tbaa !29
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = load i64, ptr %9, align 8, !tbaa !9
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_implL26matinv_cmatrixluinverserecEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8sintegerEPNS_12matinvreportEPNS_8ae_stateE(ptr noundef %159, i64 noundef 0, i64 noundef %160, ptr noundef %14, ptr noundef %19, ptr noundef %161, ptr noundef %162)
  %163 = getelementptr inbounds %"struct.alglib_impl::sinteger", ptr %19, i32 0, i32 0
  %164 = load i64, ptr %163, align 8, !tbaa !29
  %165 = load ptr, ptr %10, align 8, !tbaa !5
  store i64 %164, ptr %165, align 8, !tbaa !9
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %166

166:                                              ; preds = %220, %155
  %167 = load i64, ptr %15, align 8, !tbaa !9
  %168 = load i64, ptr %9, align 8, !tbaa !9
  %169 = sub nsw i64 %168, 1
  %170 = icmp sle i64 %167, %169
  br i1 %170, label %171, label %223

171:                                              ; preds = %166
  %172 = load i64, ptr %9, align 8, !tbaa !9
  %173 = sub nsw i64 %172, 2
  store i64 %173, ptr %16, align 8, !tbaa !9
  br label %174

174:                                              ; preds = %216, %171
  %175 = load i64, ptr %16, align 8, !tbaa !9
  %176 = icmp sge i64 %175, 0
  br i1 %176, label %177, label %219

177:                                              ; preds = %174
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %178, i32 0, i32 4
  %180 = load ptr, ptr %179, align 8, !tbaa !18
  %181 = load i64, ptr %16, align 8, !tbaa !9
  %182 = getelementptr inbounds i64, ptr %180, i64 %181
  %183 = load i64, ptr %182, align 8, !tbaa !9
  store i64 %183, ptr %17, align 8, !tbaa !9
  %184 = load ptr, ptr %7, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %184, i32 0, i32 6
  %186 = load ptr, ptr %185, align 8, !tbaa !18
  %187 = load i64, ptr %15, align 8, !tbaa !9
  %188 = getelementptr inbounds ptr, ptr %186, i64 %187
  %189 = load ptr, ptr %188, align 8, !tbaa !5
  %190 = load i64, ptr %16, align 8, !tbaa !9
  %191 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %189, i64 %190
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %191, i64 16, i1 false), !tbaa.struct !25
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %192, i32 0, i32 6
  %194 = load ptr, ptr %193, align 8, !tbaa !18
  %195 = load i64, ptr %15, align 8, !tbaa !9
  %196 = getelementptr inbounds ptr, ptr %194, i64 %195
  %197 = load ptr, ptr %196, align 8, !tbaa !5
  %198 = load i64, ptr %17, align 8, !tbaa !9
  %199 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %197, i64 %198
  %200 = load ptr, ptr %7, align 8, !tbaa !5
  %201 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %200, i32 0, i32 6
  %202 = load ptr, ptr %201, align 8, !tbaa !18
  %203 = load i64, ptr %15, align 8, !tbaa !9
  %204 = getelementptr inbounds ptr, ptr %202, i64 %203
  %205 = load ptr, ptr %204, align 8, !tbaa !5
  %206 = load i64, ptr %16, align 8, !tbaa !9
  %207 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %205, i64 %206
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %207, ptr align 8 %199, i64 16, i1 false), !tbaa.struct !25
  %208 = load ptr, ptr %7, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %208, i32 0, i32 6
  %210 = load ptr, ptr %209, align 8, !tbaa !18
  %211 = load i64, ptr %15, align 8, !tbaa !9
  %212 = getelementptr inbounds ptr, ptr %210, i64 %211
  %213 = load ptr, ptr %212, align 8, !tbaa !5
  %214 = load i64, ptr %17, align 8, !tbaa !9
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %213, i64 %214
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %215, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !25
  br label %216

216:                                              ; preds = %177
  %217 = load i64, ptr %16, align 8, !tbaa !9
  %218 = add nsw i64 %217, -1
  store i64 %218, ptr %16, align 8, !tbaa !9
  br label %174, !llvm.loop !31

219:                                              ; preds = %174
  br label %220

220:                                              ; preds = %219
  %221 = load i64, ptr %15, align 8, !tbaa !9
  %222 = add nsw i64 %221, 1
  store i64 %222, ptr %15, align 8, !tbaa !9
  br label %166, !llvm.loop !32

223:                                              ; preds = %166
  %224 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %224)
  store i32 0, ptr %21, align 4
  br label %225

225:                                              ; preds = %223, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  %226 = load i32, ptr %21, align 4
  switch i32 %226, label %228 [
    i32 0, label %227
    i32 1, label %227
  ]

227:                                              ; preds = %225, %225
  ret void

228:                                              ; preds = %225
  unreachable
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr 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_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

declare { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN11alglib_impl14rcondthresholdEPNS_8ae_stateE(ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl19_matinvreport_clearEPv(ptr noundef) #4

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

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

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !14, i64 40, !7, i64 72}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!12, !10, i64 0}
!16 = !{!17, !10, i64 0}
!17 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !23, i64 0}
!22 = !{!"_ZTSN11alglib_impl12matinvreportE", !23, i64 0, !23, i64 8}
!23 = !{!"double", !7, i64 0}
!24 = !{!22, !23, i64 8}
!25 = !{i64 0, i64 8, !26, i64 8, i64 8, !26}
!26 = !{!23, !23, i64 0}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20}
!29 = !{!30, !10, i64 0}
!30 = !{!"_ZTSN11alglib_impl8sintegerE", !10, i64 0}
!31 = distinct !{!31, !20}
!32 = distinct !{!32, !20}


; 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 }
%"struct.alglib_impl::ae_complex" = type { double, double }
%"struct.alglib_impl::sinteger" = type { i64 }

@.str.288 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.289 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.290 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.291 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.292 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.293 = external hidden unnamed_addr constant [42 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 nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN11alglib_impl15cmatrixlurcond1EPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN11alglib_impl17cmatrixlurcondinfEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl16cmatrixluinverseEPNS_9ae_matrixEPNS_9ae_vectorElPlPNS_12matinvreportEPNS_8ae_stateE(ptr noundef %0, ptr nocapture noundef readonly %1, i64 noundef %2, ptr nocapture noundef writeonly %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #4 {
  %7 = alloca %"struct.alglib_impl::ae_frame", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_complex", align 8
  %10 = alloca %"struct.alglib_impl::sinteger", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %5, ptr noundef nonnull %7)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  store i64 0, ptr %10, align 8
  store i64 0, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl19_matinvreport_clearEPv(ptr noundef %4)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 4, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14_sinteger_initEPvPNS_8ae_stateEb(ptr noundef nonnull %10, ptr noundef %5, i1 noundef zeroext true)
  %11 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.288, ptr noundef %5)
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load i64, ptr %12, align 8, !tbaa !9
  %14 = icmp sge i64 %13, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.289, ptr noundef %5)
  %15 = load i64, ptr %0, align 8, !tbaa !14
  %16 = icmp sge i64 %15, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.290, ptr noundef %5)
  %17 = load i64, ptr %1, align 8, !tbaa !15
  %18 = icmp sge i64 %17, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.291, ptr noundef %5)
  %19 = call noundef zeroext i1 @_ZN11alglib_impl21apservisfinitecmatrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %2, i64 noundef %2, ptr noundef %5)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.292, ptr noundef %5)
  store i64 1, ptr %3, align 8, !tbaa !5
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %6
  %20 = getelementptr inbounds i8, ptr %1, i64 56
  %xtraiter = and i64 %2, 1
  %21 = icmp eq i64 %2, 1
  br i1 %21, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %2, 9223372036854775806
  br label %22

22:                                               ; preds = %37, %.lr.ph.new
  %23 = phi i64 [ 1, %.lr.ph.new ], [ %38, %37 ]
  %.095 = phi i64 [ 0, %.lr.ph.new ], [ %39, %37 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %37 ]
  %24 = load ptr, ptr %20, align 8, !tbaa !17
  %25 = getelementptr inbounds i64, ptr %24, i64 %.095
  %26 = load i64, ptr %25, align 8, !tbaa !5
  %.not = icmp sge i64 %26, %2
  %27 = icmp slt i64 %26, %.095
  %or.cond = or i1 %.not, %27
  br i1 %or.cond, label %28, label %29

28:                                               ; preds = %22
  store i64 -1, ptr %3, align 8, !tbaa !5
  br label %29

29:                                               ; preds = %22, %28
  %30 = phi i64 [ %23, %22 ], [ -1, %28 ]
  %31 = or disjoint i64 %.095, 1
  %32 = load ptr, ptr %20, align 8, !tbaa !17
  %33 = getelementptr inbounds i64, ptr %32, i64 %31
  %34 = load i64, ptr %33, align 8, !tbaa !5
  %.not.1 = icmp sge i64 %34, %2
  %35 = icmp sle i64 %34, %.095
  %or.cond.1 = or i1 %.not.1, %35
  br i1 %or.cond.1, label %36, label %37

36:                                               ; preds = %29
  store i64 -1, ptr %3, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %36, %29
  %38 = phi i64 [ %30, %29 ], [ -1, %36 ]
  %39 = add nuw nsw i64 %.095, 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_edge.loopexit.unr-lcssa, label %22, !llvm.loop !18

._crit_edge.loopexit.unr-lcssa:                   ; preds = %37, %.lr.ph
  %.lcssa.ph = phi i64 [ poison, %.lr.ph ], [ %38, %37 ]
  %.unr = phi i64 [ 1, %.lr.ph ], [ %38, %37 ]
  %.095.unr = phi i64 [ 0, %.lr.ph ], [ %39, %37 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa
  %40 = load ptr, ptr %20, align 8, !tbaa !17
  %41 = getelementptr inbounds i64, ptr %40, i64 %.095.unr
  %42 = load i64, ptr %41, align 8, !tbaa !5
  %.not.epil = icmp sge i64 %42, %2
  %43 = icmp slt i64 %42, %.095.unr
  %or.cond.epil = or i1 %.not.epil, %43
  br i1 %or.cond.epil, label %44, label %._crit_edge.loopexit

44:                                               ; preds = %.epil.preheader
  store i64 -1, ptr %3, align 8, !tbaa !5
  br label %._crit_edge.loopexit

._crit_edge.loopexit:                             ; preds = %.epil.preheader, %44, %._crit_edge.loopexit.unr-lcssa
  %.lcssa = phi i64 [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %.unr, %.epil.preheader ], [ -1, %44 ]
  %45 = icmp sgt i64 %.lcssa, 0
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %6
  %46 = phi i1 [ %45, %._crit_edge.loopexit ], [ true, %6 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %46, ptr noundef nonnull @.str.293, ptr noundef %5)
  %47 = call noundef double @_ZN11alglib_impl15cmatrixlurcond1EPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %2, ptr noundef %5)
  store double %47, ptr %4, align 8, !tbaa !20
  %48 = call noundef double @_ZN11alglib_impl17cmatrixlurcondinfEPNS_9ae_matrixElPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %2, ptr noundef %5)
  %49 = getelementptr inbounds i8, ptr %4, i64 8
  store double %48, ptr %49, align 8, !tbaa !23
  %50 = load double, ptr %4, align 8, !tbaa !20
  %51 = call noundef double @_ZN11alglib_impl14rcondthresholdEPNS_8ae_stateE(ptr noundef %5)
  %52 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %50, double noundef %51)
  br i1 %52, label %57, label %53

53:                                               ; preds = %._crit_edge
  %54 = load double, ptr %49, align 8, !tbaa !23
  %55 = call noundef double @_ZN11alglib_impl14rcondthresholdEPNS_8ae_stateE(ptr noundef %5)
  %56 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %54, double noundef %55)
  br i1 %56, label %57, label %69

57:                                               ; preds = %53, %._crit_edge
  br i1 %11, label %.preheader.lr.ph, label %._crit_edge111

.preheader.lr.ph:                                 ; preds = %57
  %58 = getelementptr inbounds i8, ptr %0, i64 72
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge108.us, %.preheader.lr.ph
  %.1110.us = phi i64 [ 0, %.preheader.lr.ph ], [ %68, %._crit_edge108.us ]
  br label %59

59:                                               ; preds = %.preheader.us, %59
  %.086106.us = phi i64 [ 0, %.preheader.us ], [ %67, %59 ]
  %60 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %61 = extractvalue { double, double } %60, 0
  %62 = extractvalue { double, double } %60, 1
  %63 = load ptr, ptr %58, align 8, !tbaa !17
  %64 = getelementptr inbounds ptr, ptr %63, i64 %.1110.us
  %65 = load ptr, ptr %64, align 8, !tbaa !24
  %66 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %65, i64 %.086106.us
  store double %61, ptr %66, align 8, !tbaa !25
  %.sroa.4.0..sroa_idx.us = getelementptr inbounds i8, ptr %66, i64 8
  store double %62, ptr %.sroa.4.0..sroa_idx.us, align 8, !tbaa !25
  %67 = add nuw nsw i64 %.086106.us, 1
  %exitcond115.not = icmp eq i64 %67, %2
  br i1 %exitcond115.not, label %._crit_edge108.us, label %59, !llvm.loop !26

._crit_edge108.us:                                ; preds = %59
  %68 = add nuw nsw i64 %.1110.us, 1
  %exitcond116.not = icmp eq i64 %68, %2
  br i1 %exitcond116.not, label %._crit_edge111, label %.preheader.us, !llvm.loop !27

._crit_edge111:                                   ; preds = %._crit_edge108.us, %57
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  store i64 -3, ptr %3, align 8, !tbaa !5
  br label %._crit_edge104

69:                                               ; preds = %53
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %2, ptr noundef %5)
  store i64 1, ptr %10, align 8, !tbaa !28
  call void @_ZN11alglib_implL26matinv_cmatrixluinverserecEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8sintegerEPNS_12matinvreportEPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef 0, i64 noundef %2, ptr noundef nonnull %8, ptr noundef nonnull %10, ptr noundef nonnull %4, ptr noundef %5)
  %70 = load i64, ptr %10, align 8, !tbaa !28
  store i64 %70, ptr %3, align 8, !tbaa !5
  br i1 %11, label %.lr.ph103, label %._crit_edge104

.lr.ph103:                                        ; preds = %69
  %71 = add nsw i64 %2, -2
  %.not112 = icmp eq i64 %2, 1
  %72 = getelementptr inbounds i8, ptr %1, i64 56
  %73 = getelementptr inbounds i8, ptr %0, i64 72
  br i1 %.not112, label %._crit_edge104, label %.lr.ph98.us

.lr.ph98.us:                                      ; preds = %.lr.ph103, %._crit_edge99.us
  %.2101.us = phi i64 [ %89, %._crit_edge99.us ], [ 0, %.lr.ph103 ]
  br label %74

74:                                               ; preds = %.lr.ph98.us, %74
  %.18796.us = phi i64 [ %71, %.lr.ph98.us ], [ %87, %74 ]
  %75 = load ptr, ptr %72, align 8, !tbaa !17
  %76 = getelementptr inbounds i64, ptr %75, i64 %.18796.us
  %77 = load i64, ptr %76, align 8, !tbaa !5
  %78 = load ptr, ptr %73, align 8, !tbaa !17
  %79 = getelementptr inbounds ptr, ptr %78, i64 %.2101.us
  %80 = load ptr, ptr %79, align 8, !tbaa !24
  %81 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %80, i64 %.18796.us
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %81, i64 16, i1 false), !tbaa.struct !30
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %80, i64 %77
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %81, ptr noundef nonnull align 8 dereferenceable(16) %82, i64 16, i1 false), !tbaa.struct !30
  %83 = load ptr, ptr %73, align 8, !tbaa !17
  %84 = getelementptr inbounds ptr, ptr %83, i64 %.2101.us
  %85 = load ptr, ptr %84, align 8, !tbaa !24
  %86 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %85, i64 %77
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %86, ptr noundef nonnull align 8 dereferenceable(16) %9, i64 16, i1 false), !tbaa.struct !30
  %87 = add nsw i64 %.18796.us, -1
  %88 = icmp sgt i64 %.18796.us, 0
  br i1 %88, label %74, label %._crit_edge99.us, !llvm.loop !31

._crit_edge99.us:                                 ; preds = %74
  %89 = add nuw nsw i64 %.2101.us, 1
  %exitcond114.not = icmp eq i64 %89, %2
  br i1 %exitcond114.not, label %._crit_edge104, label %.lr.ph98.us, !llvm.loop !32

._crit_edge104:                                   ; preds = %._crit_edge99.us, %69, %.lr.ph103, %._crit_edge111
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  ret void
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr 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_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 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_impl10ae_fp_lessEdd(double noundef, double noundef) local_unnamed_addr #2

declare { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN11alglib_impl14rcondthresholdEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl19_matinvreport_clearEPv(ptr noundef) local_unnamed_addr #4

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

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

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

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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 8}
!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 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSN11alglib_impl9ae_vectorE", !6, i64 0, !6, i64 8, !11, i64 16, !12, i64 24, !7, i64 56}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !22, i64 0}
!21 = !{!"_ZTSN11alglib_impl12matinvreportE", !22, i64 0, !22, i64 8}
!22 = !{!"double", !7, i64 0}
!23 = !{!21, !22, i64 8}
!24 = !{!13, !13, i64 0}
!25 = !{!22, !22, i64 0}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}
!28 = !{!29, !6, i64 0}
!29 = !{!"_ZTSN11alglib_impl8sintegerE", !6, i64 0}
!30 = !{i64 0, i64 8, !25, i64 8, i64 8, !25}
!31 = distinct !{!31, !19}
!32 = distinct !{!32, !19}


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