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

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

@.str.124 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [58 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl19rmatrixlusolvemfastEPKNS_9ae_matrixEPKNS_9ae_vectorElPS0_lPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) #2 {
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i64 %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i64 %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #3
  %20 = load i64, ptr %10, align 8, !tbaa !9
  %21 = icmp sgt i64 %20, 0
  %22 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef @.str.140, ptr noundef %22)
  %23 = load i64, ptr %12, align 8, !tbaa !9
  %24 = icmp sgt i64 %23, 0
  %25 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %24, ptr noundef @.str.141, ptr noundef %25)
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %26, i32 0, i32 0
  %28 = load i64, ptr %27, align 8, !tbaa !11
  %29 = load i64, ptr %10, align 8, !tbaa !9
  %30 = icmp sge i64 %28, %29
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef @.str.142, ptr noundef %31)
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %32, i32 0, i32 1
  %34 = load i64, ptr %33, align 8, !tbaa !15
  %35 = load i64, ptr %10, align 8, !tbaa !9
  %36 = icmp sge i64 %34, %35
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef @.str.143, ptr noundef %37)
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %38, i32 0, i32 0
  %40 = load i64, ptr %39, align 8, !tbaa !16
  %41 = load i64, ptr %10, align 8, !tbaa !9
  %42 = icmp sge i64 %40, %41
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef @.str.144, ptr noundef %43)
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %44, i32 0, i32 0
  %46 = load i64, ptr %45, align 8, !tbaa !11
  %47 = load i64, ptr %10, align 8, !tbaa !9
  %48 = icmp sge i64 %46, %47
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.145, ptr noundef %49)
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %50, i32 0, i32 1
  %52 = load i64, ptr %51, align 8, !tbaa !15
  %53 = load i64, ptr %12, align 8, !tbaa !9
  %54 = icmp sge i64 %52, %53
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %54, ptr noundef @.str.146, ptr noundef %55)
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load i64, ptr %10, align 8, !tbaa !9
  %58 = load i64, ptr %10, align 8, !tbaa !9
  %59 = load ptr, ptr %13, align 8, !tbaa !5
  %60 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %56, i64 noundef %57, i64 noundef %58, ptr noundef %59)
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %60, ptr noundef @.str.147, ptr noundef %61)
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = load i64, ptr %10, align 8, !tbaa !9
  %64 = load i64, ptr %12, align 8, !tbaa !9
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %62, i64 noundef %63, i64 noundef %64, ptr noundef %65)
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %66, ptr noundef @.str.147, ptr noundef %67)
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %68

68:                                               ; preds = %93, %6
  %69 = load i64, ptr %15, align 8, !tbaa !9
  %70 = load i64, ptr %10, align 8, !tbaa !9
  %71 = sub nsw i64 %70, 1
  %72 = icmp sle i64 %69, %71
  br i1 %72, label %73, label %96

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

81:                                               ; preds = %73
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !18
  %85 = load i64, ptr %15, align 8, !tbaa !9
  %86 = getelementptr inbounds i64, ptr %84, i64 %85
  %87 = load i64, ptr %86, align 8, !tbaa !9
  %88 = load i64, ptr %10, align 8, !tbaa !9
  %89 = icmp slt i64 %87, %88
  br label %90

90:                                               ; preds = %81, %73
  %91 = phi i1 [ false, %73 ], [ %89, %81 ]
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %91, ptr noundef @.str.124, ptr noundef %92)
  br label %93

93:                                               ; preds = %90
  %94 = load i64, ptr %15, align 8, !tbaa !9
  %95 = add nsw i64 %94, 1
  store i64 %95, ptr %15, align 8, !tbaa !9
  br label %68, !llvm.loop !19

96:                                               ; preds = %68
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %145, %96
  %98 = load i64, ptr %15, align 8, !tbaa !9
  %99 = load i64, ptr %10, align 8, !tbaa !9
  %100 = sub nsw i64 %99, 1
  %101 = icmp sle i64 %98, %100
  br i1 %101, label %102, label %148

102:                                              ; preds = %97
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %103, i32 0, i32 6
  %105 = load ptr, ptr %104, align 8, !tbaa !18
  %106 = load i64, ptr %15, align 8, !tbaa !9
  %107 = getelementptr inbounds ptr, ptr %105, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = load i64, ptr %15, align 8, !tbaa !9
  %110 = getelementptr inbounds double, ptr %108, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !21
  %112 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %111, double noundef 0.000000e+00)
  br i1 %112, label %113, label %144

113:                                              ; preds = %102
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %114

114:                                              ; preds = %138, %113
  %115 = load i64, ptr %16, align 8, !tbaa !9
  %116 = load i64, ptr %10, align 8, !tbaa !9
  %117 = sub nsw i64 %116, 1
  %118 = icmp sle i64 %115, %117
  br i1 %118, label %119, label %141

119:                                              ; preds = %114
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %120

120:                                              ; preds = %134, %119
  %121 = load i64, ptr %17, align 8, !tbaa !9
  %122 = load i64, ptr %12, align 8, !tbaa !9
  %123 = sub nsw i64 %122, 1
  %124 = icmp sle i64 %121, %123
  br i1 %124, label %125, label %137

125:                                              ; preds = %120
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %126, i32 0, i32 6
  %128 = load ptr, ptr %127, align 8, !tbaa !18
  %129 = load i64, ptr %16, align 8, !tbaa !9
  %130 = getelementptr inbounds ptr, ptr %128, i64 %129
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = load i64, ptr %17, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %131, i64 %132
  store double 0.000000e+00, ptr %133, align 8, !tbaa !21
  br label %134

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

137:                                              ; preds = %120
  br label %138

138:                                              ; preds = %137
  %139 = load i64, ptr %16, align 8, !tbaa !9
  %140 = add nsw i64 %139, 1
  store i64 %140, ptr %16, align 8, !tbaa !9
  br label %114, !llvm.loop !24

141:                                              ; preds = %114
  store i8 0, ptr %18, align 1, !tbaa !25
  %142 = load i8, ptr %18, align 1, !tbaa !25, !range !26, !noundef !27
  %143 = trunc i8 %142 to i1
  store i1 %143, ptr %7, align 1
  store i32 1, ptr %19, align 4
  br label %236

144:                                              ; preds = %102
  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 %97, !llvm.loop !28

148:                                              ; preds = %97
  store i8 1, ptr %18, align 1, !tbaa !25
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %149

149:                                              ; preds = %220, %148
  %150 = load i64, ptr %15, align 8, !tbaa !9
  %151 = load i64, ptr %10, align 8, !tbaa !9
  %152 = sub nsw i64 %151, 1
  %153 = icmp sle i64 %150, %152
  br i1 %153, label %154, label %223

154:                                              ; preds = %149
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %155, i32 0, i32 4
  %157 = load ptr, ptr %156, align 8, !tbaa !18
  %158 = load i64, ptr %15, align 8, !tbaa !9
  %159 = getelementptr inbounds i64, ptr %157, i64 %158
  %160 = load i64, ptr %159, align 8, !tbaa !9
  %161 = load i64, ptr %15, align 8, !tbaa !9
  %162 = icmp ne i64 %160, %161
  br i1 %162, label %163, label %219

163:                                              ; preds = %154
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %164

164:                                              ; preds = %215, %163
  %165 = load i64, ptr %16, align 8, !tbaa !9
  %166 = load i64, ptr %12, align 8, !tbaa !9
  %167 = sub nsw i64 %166, 1
  %168 = icmp sle i64 %165, %167
  br i1 %168, label %169, label %218

169:                                              ; preds = %164
  %170 = load ptr, ptr %11, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %170, i32 0, i32 6
  %172 = load ptr, ptr %171, align 8, !tbaa !18
  %173 = load i64, ptr %15, align 8, !tbaa !9
  %174 = getelementptr inbounds ptr, ptr %172, i64 %173
  %175 = load ptr, ptr %174, align 8, !tbaa !5
  %176 = load i64, ptr %16, align 8, !tbaa !9
  %177 = getelementptr inbounds double, ptr %175, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !21
  store double %178, ptr %14, align 8, !tbaa !21
  %179 = load ptr, ptr %11, 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 !18
  %182 = load ptr, ptr %9, align 8, !tbaa !5
  %183 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %182, i32 0, i32 4
  %184 = load ptr, ptr %183, align 8, !tbaa !18
  %185 = load i64, ptr %15, align 8, !tbaa !9
  %186 = getelementptr inbounds i64, ptr %184, i64 %185
  %187 = load i64, ptr %186, align 8, !tbaa !9
  %188 = getelementptr inbounds ptr, ptr %181, i64 %187
  %189 = load ptr, ptr %188, align 8, !tbaa !5
  %190 = load i64, ptr %16, align 8, !tbaa !9
  %191 = getelementptr inbounds double, ptr %189, i64 %190
  %192 = load double, ptr %191, align 8, !tbaa !21
  %193 = load ptr, ptr %11, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %193, i32 0, i32 6
  %195 = load ptr, ptr %194, align 8, !tbaa !18
  %196 = load i64, ptr %15, align 8, !tbaa !9
  %197 = getelementptr inbounds ptr, ptr %195, i64 %196
  %198 = load ptr, ptr %197, align 8, !tbaa !5
  %199 = load i64, ptr %16, align 8, !tbaa !9
  %200 = getelementptr inbounds double, ptr %198, i64 %199
  store double %192, ptr %200, align 8, !tbaa !21
  %201 = load double, ptr %14, align 8, !tbaa !21
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %202, i32 0, i32 6
  %204 = load ptr, ptr %203, align 8, !tbaa !18
  %205 = load ptr, ptr %9, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %205, i32 0, i32 4
  %207 = load ptr, ptr %206, align 8, !tbaa !18
  %208 = load i64, ptr %15, align 8, !tbaa !9
  %209 = getelementptr inbounds i64, ptr %207, i64 %208
  %210 = load i64, ptr %209, align 8, !tbaa !9
  %211 = getelementptr inbounds ptr, ptr %204, i64 %210
  %212 = load ptr, ptr %211, align 8, !tbaa !5
  %213 = load i64, ptr %16, align 8, !tbaa !9
  %214 = getelementptr inbounds double, ptr %212, i64 %213
  store double %201, ptr %214, align 8, !tbaa !21
  br label %215

215:                                              ; preds = %169
  %216 = load i64, ptr %16, align 8, !tbaa !9
  %217 = add nsw i64 %216, 1
  store i64 %217, ptr %16, align 8, !tbaa !9
  br label %164, !llvm.loop !29

218:                                              ; preds = %164
  br label %219

219:                                              ; preds = %218, %154
  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 %149, !llvm.loop !30

223:                                              ; preds = %149
  %224 = load i64, ptr %10, align 8, !tbaa !9
  %225 = load i64, ptr %12, align 8, !tbaa !9
  %226 = load ptr, ptr %8, align 8, !tbaa !5
  %227 = load ptr, ptr %11, align 8, !tbaa !5
  %228 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %224, i64 noundef %225, ptr noundef %226, i64 noundef 0, i64 noundef 0, i1 noundef zeroext false, i1 noundef zeroext true, i64 noundef 0, ptr noundef %227, i64 noundef 0, i64 noundef 0, ptr noundef %228)
  %229 = load i64, ptr %10, align 8, !tbaa !9
  %230 = load i64, ptr %12, align 8, !tbaa !9
  %231 = load ptr, ptr %8, align 8, !tbaa !5
  %232 = load ptr, ptr %11, align 8, !tbaa !5
  %233 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %229, i64 noundef %230, ptr noundef %231, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef %232, i64 noundef 0, i64 noundef 0, ptr noundef %233)
  %234 = load i8, ptr %18, align 1, !tbaa !25, !range !26, !noundef !27
  %235 = trunc i8 %234 to i1
  store i1 %235, ptr %7, align 1
  store i32 1, ptr %19, align 4
  br label %236

236:                                              ; preds = %223, %141
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  %237 = load i1, ptr %7, align 1
  ret i1 %237
}

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

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 0}
!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 8}
!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, !22, i64 0}
!22 = !{!"double", !7, i64 0}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = !{!13, !13, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}
!30 = distinct !{!30, !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"

@.str.124 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [58 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11alglib_impl19rmatrixlusolvemfastEPKNS_9ae_matrixEPKNS_9ae_vectorElPS0_lPNS_8ae_stateE(ptr noundef %0, ptr nocapture noundef readonly %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = icmp sgt i64 %2, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %7, ptr noundef nonnull @.str.140, ptr noundef %5)
  %8 = icmp sgt i64 %4, 0
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %8, ptr noundef nonnull @.str.141, ptr noundef %5)
  %9 = load i64, ptr %0, align 8, !tbaa !5
  %10 = icmp sge i64 %9, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.142, ptr noundef %5)
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !13
  %13 = icmp sge i64 %12, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.143, ptr noundef %5)
  %14 = load i64, ptr %1, align 8, !tbaa !14
  %15 = icmp sge i64 %14, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.144, ptr noundef %5)
  %16 = load i64, ptr %3, align 8, !tbaa !5
  %17 = icmp sge i64 %16, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.145, ptr noundef %5)
  %18 = getelementptr inbounds i8, ptr %3, i64 8
  %19 = load i64, ptr %18, align 8, !tbaa !13
  %20 = icmp sge i64 %19, %4
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.146, ptr noundef %5)
  %21 = tail call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %2, i64 noundef %2, ptr noundef %5)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.147, ptr noundef %5)
  %22 = tail call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %2, i64 noundef %4, ptr noundef %5)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef nonnull @.str.147, ptr noundef %5)
  br i1 %7, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %6
  %23 = getelementptr inbounds i8, ptr %1, i64 56
  br label %29

.lr.ph112:                                        ; preds = %29
  %24 = getelementptr inbounds i8, ptr %0, i64 72
  %25 = load ptr, ptr %24, align 8, !tbaa !16
  %26 = load ptr, ptr %25, align 8, !tbaa !17
  %27 = load double, ptr %26, align 8, !tbaa !18
  %28 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %27, double noundef 0.000000e+00)
  br i1 %28, label %.preheader101.lr.ph, label %.lr.ph140

29:                                               ; preds = %.lr.ph, %29
  %.090108 = phi i64 [ 0, %.lr.ph ], [ %33, %29 ]
  %30 = load ptr, ptr %23, align 8, !tbaa !16
  %31 = getelementptr inbounds i64, ptr %30, i64 %.090108
  %32 = load i64, ptr %31, align 8, !tbaa !20
  %spec.select = icmp ult i64 %32, %2
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.124, ptr noundef %5)
  %33 = add nuw nsw i64 %.090108, 1
  %exitcond.not = icmp eq i64 %33, %2
  br i1 %exitcond.not, label %.lr.ph112, label %29, !llvm.loop !21

.lr.ph140:                                        ; preds = %.lr.ph112, %61
  %.191110139 = phi i64 [ %34, %61 ], [ 0, %.lr.ph112 ]
  %34 = add nuw nsw i64 %.191110139, 1
  %exitcond129 = icmp eq i64 %34, %2
  br i1 %exitcond129, label %.preheader100, label %61, !llvm.loop !23

.preheader100:                                    ; preds = %.lr.ph140
  br i1 %7, label %.lr.ph124, label %._crit_edge

.lr.ph124:                                        ; preds = %.preheader100
  %35 = getelementptr inbounds i8, ptr %1, i64 56
  %36 = getelementptr inbounds i8, ptr %3, i64 72
  br i1 %8, label %.lr.ph124.split.us, label %._crit_edge

.lr.ph124.split.us:                               ; preds = %.lr.ph124, %..loopexit_crit_edge.us
  %.2122.us = phi i64 [ %60, %..loopexit_crit_edge.us ], [ 0, %.lr.ph124 ]
  %37 = load ptr, ptr %35, align 8, !tbaa !16
  %38 = getelementptr inbounds i64, ptr %37, i64 %.2122.us
  %39 = load i64, ptr %38, align 8, !tbaa !20
  %.not.us = icmp eq i64 %39, %.2122.us
  br i1 %.not.us, label %..loopexit_crit_edge.us, label %.preheader.us

.preheader.us:                                    ; preds = %.lr.ph124.split.us, %.preheader.us
  %.1119.us = phi i64 [ %59, %.preheader.us ], [ 0, %.lr.ph124.split.us ]
  %40 = load ptr, ptr %36, align 8, !tbaa !16
  %41 = getelementptr inbounds ptr, ptr %40, i64 %.2122.us
  %42 = load ptr, ptr %41, align 8, !tbaa !17
  %43 = getelementptr inbounds double, ptr %42, i64 %.1119.us
  %44 = load double, ptr %43, align 8, !tbaa !18
  %45 = load ptr, ptr %35, align 8, !tbaa !16
  %46 = getelementptr inbounds i64, ptr %45, i64 %.2122.us
  %47 = load i64, ptr %46, align 8, !tbaa !20
  %48 = getelementptr inbounds ptr, ptr %40, i64 %47
  %49 = load ptr, ptr %48, align 8, !tbaa !17
  %50 = getelementptr inbounds double, ptr %49, i64 %.1119.us
  %51 = load double, ptr %50, align 8, !tbaa !18
  store double %51, ptr %43, align 8, !tbaa !18
  %52 = load ptr, ptr %36, align 8, !tbaa !16
  %53 = load ptr, ptr %35, align 8, !tbaa !16
  %54 = getelementptr inbounds i64, ptr %53, i64 %.2122.us
  %55 = load i64, ptr %54, align 8, !tbaa !20
  %56 = getelementptr inbounds ptr, ptr %52, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !17
  %58 = getelementptr inbounds double, ptr %57, i64 %.1119.us
  store double %44, ptr %58, align 8, !tbaa !18
  %59 = add nuw nsw i64 %.1119.us, 1
  %exitcond132.not = icmp eq i64 %59, %4
  br i1 %exitcond132.not, label %..loopexit_crit_edge.us, label %.preheader.us, !llvm.loop !24

..loopexit_crit_edge.us:                          ; preds = %.preheader.us, %.lr.ph124.split.us
  %60 = add nuw nsw i64 %.2122.us, 1
  %exitcond133.not = icmp eq i64 %60, %2
  br i1 %exitcond133.not, label %._crit_edge, label %.lr.ph124.split.us, !llvm.loop !25

61:                                               ; preds = %.lr.ph140
  %62 = load ptr, ptr %24, align 8, !tbaa !16
  %63 = getelementptr inbounds ptr, ptr %62, i64 %34
  %64 = load ptr, ptr %63, align 8, !tbaa !17
  %65 = getelementptr inbounds double, ptr %64, i64 %34
  %66 = load double, ptr %65, align 8, !tbaa !18
  %67 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %66, double noundef 0.000000e+00)
  br i1 %67, label %.preheader101.lr.ph.loopexit, label %.lr.ph140, !llvm.loop !23

.preheader101.lr.ph.loopexit:                     ; preds = %61
  %.not.not95.le = icmp sge i64 %34, %2
  br label %.preheader101.lr.ph

.preheader101.lr.ph:                              ; preds = %.preheader101.lr.ph.loopexit, %.lr.ph112
  %.not.not95111.lcssa = phi i1 [ false, %.lr.ph112 ], [ %.not.not95.le, %.preheader101.lr.ph.loopexit ]
  %68 = getelementptr inbounds i8, ptr %3, i64 72
  br i1 %8, label %.preheader101.us.preheader, label %.loopexit103

.preheader101.us.preheader:                       ; preds = %.preheader101.lr.ph
  %xtraiter = and i64 %4, 3
  %69 = icmp ult i64 %4, 4
  %unroll_iter = and i64 %4, 9223372036854775804
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader101.us

.preheader101.us:                                 ; preds = %.preheader101.us.preheader, %._crit_edge.us
  %.089117.us = phi i64 [ %95, %._crit_edge.us ], [ 0, %.preheader101.us.preheader ]
  br i1 %69, label %._crit_edge.us.unr-lcssa, label %.preheader101.us.new

.preheader101.us.new:                             ; preds = %.preheader101.us, %.preheader101.us.new
  %.0114.us = phi i64 [ %89, %.preheader101.us.new ], [ 0, %.preheader101.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader101.us.new ], [ 0, %.preheader101.us ]
  %70 = load ptr, ptr %68, align 8, !tbaa !16
  %71 = getelementptr inbounds ptr, ptr %70, i64 %.089117.us
  %72 = load ptr, ptr %71, align 8, !tbaa !17
  %73 = getelementptr inbounds double, ptr %72, i64 %.0114.us
  store double 0.000000e+00, ptr %73, align 8, !tbaa !18
  %74 = or disjoint i64 %.0114.us, 1
  %75 = load ptr, ptr %68, align 8, !tbaa !16
  %76 = getelementptr inbounds ptr, ptr %75, i64 %.089117.us
  %77 = load ptr, ptr %76, align 8, !tbaa !17
  %78 = getelementptr inbounds double, ptr %77, i64 %74
  store double 0.000000e+00, ptr %78, align 8, !tbaa !18
  %79 = or disjoint i64 %.0114.us, 2
  %80 = load ptr, ptr %68, align 8, !tbaa !16
  %81 = getelementptr inbounds ptr, ptr %80, i64 %.089117.us
  %82 = load ptr, ptr %81, align 8, !tbaa !17
  %83 = getelementptr inbounds double, ptr %82, i64 %79
  store double 0.000000e+00, ptr %83, align 8, !tbaa !18
  %84 = or disjoint i64 %.0114.us, 3
  %85 = load ptr, ptr %68, align 8, !tbaa !16
  %86 = getelementptr inbounds ptr, ptr %85, i64 %.089117.us
  %87 = load ptr, ptr %86, align 8, !tbaa !17
  %88 = getelementptr inbounds double, ptr %87, i64 %84
  store double 0.000000e+00, ptr %88, align 8, !tbaa !18
  %89 = add nuw nsw i64 %.0114.us, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.us.unr-lcssa, label %.preheader101.us.new, !llvm.loop !26

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader101.us.new, %.preheader101.us
  %.0114.us.unr = phi i64 [ 0, %.preheader101.us ], [ %89, %.preheader101.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %.0114.us.epil = phi i64 [ %94, %.epil.preheader ], [ %.0114.us.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %90 = load ptr, ptr %68, align 8, !tbaa !16
  %91 = getelementptr inbounds ptr, ptr %90, i64 %.089117.us
  %92 = load ptr, ptr %91, align 8, !tbaa !17
  %93 = getelementptr inbounds double, ptr %92, i64 %.0114.us.epil
  store double 0.000000e+00, ptr %93, align 8, !tbaa !18
  %94 = add nuw nsw i64 %.0114.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge.us, label %.epil.preheader, !llvm.loop !27

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %95 = add nuw nsw i64 %.089117.us, 1
  %exitcond131.not = icmp eq i64 %95, %2
  br i1 %exitcond131.not, label %.loopexit103, label %.preheader101.us, !llvm.loop !29

._crit_edge:                                      ; preds = %..loopexit_crit_edge.us, %6, %.lr.ph124, %.preheader100
  tail call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %2, i64 noundef %4, ptr noundef nonnull %0, i64 noundef 0, i64 noundef 0, i1 noundef zeroext false, i1 noundef zeroext true, i64 noundef 0, ptr noundef nonnull %3, i64 noundef 0, i64 noundef 0, ptr noundef %5)
  tail call void @_ZN11alglib_impl15rmatrixlefttrsmEllPKNS_9ae_matrixEllbblPS0_llPNS_8ae_stateE(i64 noundef %2, i64 noundef %4, ptr noundef nonnull %0, i64 noundef 0, i64 noundef 0, i1 noundef zeroext true, i1 noundef zeroext false, i64 noundef 0, ptr noundef nonnull %3, i64 noundef 0, i64 noundef 0, ptr noundef %5)
  br label %.loopexit103

.loopexit103:                                     ; preds = %._crit_edge.us, %.preheader101.lr.ph, %._crit_edge
  %.not.not95106 = phi i1 [ true, %._crit_edge ], [ %.not.not95111.lcssa, %.preheader101.lr.ph ], [ %.not.not95111.lcssa, %._crit_edge.us ]
  ret i1 %.not.not95106
}

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

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPKNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

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

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


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