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

; 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.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl12rmatrixgemmfEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl12rmatrixgemmkEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, i64 noundef %2, double noundef %3, ptr noundef %4, i64 noundef %5, i64 noundef %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, i64 noundef %10, i64 noundef %11, double noundef %12, ptr noundef %13, i64 noundef %14, i64 noundef %15, ptr noundef %16) #2 {
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca double, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca double, align 8
  %31 = alloca ptr, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i64, align 8
  %36 = alloca i64, align 8
  %37 = alloca i32, align 4
  store i64 %0, ptr %18, align 8, !tbaa !5
  store i64 %1, ptr %19, align 8, !tbaa !5
  store i64 %2, ptr %20, align 8, !tbaa !5
  store double %3, ptr %21, align 8, !tbaa !9
  store ptr %4, ptr %22, align 8, !tbaa !11
  store i64 %5, ptr %23, align 8, !tbaa !5
  store i64 %6, ptr %24, align 8, !tbaa !5
  store i64 %7, ptr %25, align 8, !tbaa !5
  store ptr %8, ptr %26, align 8, !tbaa !11
  store i64 %9, ptr %27, align 8, !tbaa !5
  store i64 %10, ptr %28, align 8, !tbaa !5
  store i64 %11, ptr %29, align 8, !tbaa !5
  store double %12, ptr %30, align 8, !tbaa !9
  store ptr %13, ptr %31, align 8, !tbaa !11
  store i64 %14, ptr %32, align 8, !tbaa !5
  store i64 %15, ptr %33, align 8, !tbaa !5
  store ptr %16, ptr %34, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #3
  %38 = load i64, ptr %18, align 8, !tbaa !5
  %39 = icmp eq i64 %38, 0
  br i1 %39, label %43, label %40

40:                                               ; preds = %17
  %41 = load i64, ptr %19, align 8, !tbaa !5
  %42 = icmp eq i64 %41, 0
  br i1 %42, label %43, label %44

43:                                               ; preds = %40, %17
  store i32 1, ptr %37, align 4
  br label %248

44:                                               ; preds = %40
  %45 = load i64, ptr %18, align 8, !tbaa !5
  %46 = load i64, ptr %19, align 8, !tbaa !5
  %47 = load i64, ptr %20, align 8, !tbaa !5
  %48 = load double, ptr %21, align 8, !tbaa !9
  %49 = load ptr, ptr %22, align 8, !tbaa !11
  %50 = load i64, ptr %23, align 8, !tbaa !5
  %51 = load i64, ptr %24, align 8, !tbaa !5
  %52 = load i64, ptr %25, align 8, !tbaa !5
  %53 = load ptr, ptr %26, align 8, !tbaa !11
  %54 = load i64, ptr %27, align 8, !tbaa !5
  %55 = load i64, ptr %28, align 8, !tbaa !5
  %56 = load i64, ptr %29, align 8, !tbaa !5
  %57 = load double, ptr %30, align 8, !tbaa !9
  %58 = load ptr, ptr %31, align 8, !tbaa !11
  %59 = load i64, ptr %32, align 8, !tbaa !5
  %60 = load i64, ptr %33, align 8, !tbaa !5
  %61 = load ptr, ptr %34, align 8, !tbaa !11
  %62 = call noundef zeroext i1 @_ZN11alglib_impl12rmatrixgemmfEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %45, i64 noundef %46, i64 noundef %47, double noundef %48, ptr noundef %49, i64 noundef %50, i64 noundef %51, i64 noundef %52, ptr noundef %53, i64 noundef %54, i64 noundef %55, i64 noundef %56, double noundef %57, ptr noundef %58, i64 noundef %59, i64 noundef %60, ptr noundef %61)
  br i1 %62, label %63, label %64

63:                                               ; preds = %44
  store i32 1, ptr %37, align 4
  br label %248

64:                                               ; preds = %44
  %65 = load i64, ptr %20, align 8, !tbaa !5
  %66 = icmp eq i64 %65, 0
  br i1 %66, label %70, label %67

67:                                               ; preds = %64
  %68 = load double, ptr %21, align 8, !tbaa !9
  %69 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %68, double noundef 0.000000e+00)
  br i1 %69, label %70, label %159

70:                                               ; preds = %67, %64
  %71 = load double, ptr %30, align 8, !tbaa !9
  %72 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %71, double noundef 1.000000e+00)
  br i1 %72, label %73, label %158

73:                                               ; preds = %70
  %74 = load double, ptr %30, align 8, !tbaa !9
  %75 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %74, double noundef 0.000000e+00)
  br i1 %75, label %76, label %124

76:                                               ; preds = %73
  store i64 0, ptr %35, align 8, !tbaa !5
  br label %77

77:                                               ; preds = %120, %76
  %78 = load i64, ptr %35, align 8, !tbaa !5
  %79 = load i64, ptr %18, align 8, !tbaa !5
  %80 = sub nsw i64 %79, 1
  %81 = icmp sle i64 %78, %80
  br i1 %81, label %82, label %123

82:                                               ; preds = %77
  store i64 0, ptr %36, align 8, !tbaa !5
  br label %83

83:                                               ; preds = %116, %82
  %84 = load i64, ptr %36, align 8, !tbaa !5
  %85 = load i64, ptr %19, align 8, !tbaa !5
  %86 = sub nsw i64 %85, 1
  %87 = icmp sle i64 %84, %86
  br i1 %87, label %88, label %119

88:                                               ; preds = %83
  %89 = load double, ptr %30, align 8, !tbaa !9
  %90 = load ptr, ptr %31, align 8, !tbaa !11
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %90, i32 0, i32 6
  %92 = load ptr, ptr %91, align 8, !tbaa !13
  %93 = load i64, ptr %32, align 8, !tbaa !5
  %94 = load i64, ptr %35, align 8, !tbaa !5
  %95 = add nsw i64 %93, %94
  %96 = getelementptr inbounds ptr, ptr %92, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %98 = load i64, ptr %33, align 8, !tbaa !5
  %99 = load i64, ptr %36, align 8, !tbaa !5
  %100 = add nsw i64 %98, %99
  %101 = getelementptr inbounds double, ptr %97, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !9
  %103 = fmul double %89, %102
  %104 = load ptr, ptr %31, align 8, !tbaa !11
  %105 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %104, i32 0, i32 6
  %106 = load ptr, ptr %105, align 8, !tbaa !13
  %107 = load i64, ptr %32, align 8, !tbaa !5
  %108 = load i64, ptr %35, align 8, !tbaa !5
  %109 = add nsw i64 %107, %108
  %110 = getelementptr inbounds ptr, ptr %106, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !11
  %112 = load i64, ptr %33, align 8, !tbaa !5
  %113 = load i64, ptr %36, align 8, !tbaa !5
  %114 = add nsw i64 %112, %113
  %115 = getelementptr inbounds double, ptr %111, i64 %114
  store double %103, ptr %115, align 8, !tbaa !9
  br label %116

116:                                              ; preds = %88
  %117 = load i64, ptr %36, align 8, !tbaa !5
  %118 = add nsw i64 %117, 1
  store i64 %118, ptr %36, align 8, !tbaa !5
  br label %83, !llvm.loop !14

119:                                              ; preds = %83
  br label %120

120:                                              ; preds = %119
  %121 = load i64, ptr %35, align 8, !tbaa !5
  %122 = add nsw i64 %121, 1
  store i64 %122, ptr %35, align 8, !tbaa !5
  br label %77, !llvm.loop !16

123:                                              ; preds = %77
  br label %157

124:                                              ; preds = %73
  store i64 0, ptr %35, align 8, !tbaa !5
  br label %125

125:                                              ; preds = %153, %124
  %126 = load i64, ptr %35, align 8, !tbaa !5
  %127 = load i64, ptr %18, align 8, !tbaa !5
  %128 = sub nsw i64 %127, 1
  %129 = icmp sle i64 %126, %128
  br i1 %129, label %130, label %156

130:                                              ; preds = %125
  store i64 0, ptr %36, align 8, !tbaa !5
  br label %131

131:                                              ; preds = %149, %130
  %132 = load i64, ptr %36, align 8, !tbaa !5
  %133 = load i64, ptr %19, align 8, !tbaa !5
  %134 = sub nsw i64 %133, 1
  %135 = icmp sle i64 %132, %134
  br i1 %135, label %136, label %152

136:                                              ; preds = %131
  %137 = load ptr, ptr %31, align 8, !tbaa !11
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %137, i32 0, i32 6
  %139 = load ptr, ptr %138, align 8, !tbaa !13
  %140 = load i64, ptr %32, align 8, !tbaa !5
  %141 = load i64, ptr %35, align 8, !tbaa !5
  %142 = add nsw i64 %140, %141
  %143 = getelementptr inbounds ptr, ptr %139, i64 %142
  %144 = load ptr, ptr %143, align 8, !tbaa !11
  %145 = load i64, ptr %33, align 8, !tbaa !5
  %146 = load i64, ptr %36, align 8, !tbaa !5
  %147 = add nsw i64 %145, %146
  %148 = getelementptr inbounds double, ptr %144, i64 %147
  store double 0.000000e+00, ptr %148, align 8, !tbaa !9
  br label %149

149:                                              ; preds = %136
  %150 = load i64, ptr %36, align 8, !tbaa !5
  %151 = add nsw i64 %150, 1
  store i64 %151, ptr %36, align 8, !tbaa !5
  br label %131, !llvm.loop !17

152:                                              ; preds = %131
  br label %153

153:                                              ; preds = %152
  %154 = load i64, ptr %35, align 8, !tbaa !5
  %155 = add nsw i64 %154, 1
  store i64 %155, ptr %35, align 8, !tbaa !5
  br label %125, !llvm.loop !18

156:                                              ; preds = %125
  br label %157

157:                                              ; preds = %156, %123
  br label %158

158:                                              ; preds = %157, %70
  store i32 1, ptr %37, align 4
  br label %248

159:                                              ; preds = %67
  %160 = load i64, ptr %25, align 8, !tbaa !5
  %161 = icmp eq i64 %160, 0
  br i1 %161, label %162, label %181

162:                                              ; preds = %159
  %163 = load i64, ptr %29, align 8, !tbaa !5
  %164 = icmp eq i64 %163, 0
  br i1 %164, label %165, label %181

165:                                              ; preds = %162
  %166 = load i64, ptr %18, align 8, !tbaa !5
  %167 = load i64, ptr %19, align 8, !tbaa !5
  %168 = load i64, ptr %20, align 8, !tbaa !5
  %169 = load double, ptr %21, align 8, !tbaa !9
  %170 = load ptr, ptr %22, align 8, !tbaa !11
  %171 = load i64, ptr %23, align 8, !tbaa !5
  %172 = load i64, ptr %24, align 8, !tbaa !5
  %173 = load ptr, ptr %26, align 8, !tbaa !11
  %174 = load i64, ptr %27, align 8, !tbaa !5
  %175 = load i64, ptr %28, align 8, !tbaa !5
  %176 = load double, ptr %30, align 8, !tbaa !9
  %177 = load ptr, ptr %31, align 8, !tbaa !11
  %178 = load i64, ptr %32, align 8, !tbaa !5
  %179 = load i64, ptr %33, align 8, !tbaa !5
  %180 = load ptr, ptr %34, align 8, !tbaa !11
  call void @_ZN11alglib_impl17rmatrixgemmk44v00EllldPNS_9ae_matrixEllS1_lldS1_llPNS_8ae_stateE(i64 noundef %166, i64 noundef %167, i64 noundef %168, double noundef %169, ptr noundef %170, i64 noundef %171, i64 noundef %172, ptr noundef %173, i64 noundef %174, i64 noundef %175, double noundef %176, ptr noundef %177, i64 noundef %178, i64 noundef %179, ptr noundef %180)
  br label %181

181:                                              ; preds = %165, %162, %159
  %182 = load i64, ptr %25, align 8, !tbaa !5
  %183 = icmp eq i64 %182, 0
  br i1 %183, label %184, label %203

184:                                              ; preds = %181
  %185 = load i64, ptr %29, align 8, !tbaa !5
  %186 = icmp ne i64 %185, 0
  br i1 %186, label %187, label %203

187:                                              ; preds = %184
  %188 = load i64, ptr %18, align 8, !tbaa !5
  %189 = load i64, ptr %19, align 8, !tbaa !5
  %190 = load i64, ptr %20, align 8, !tbaa !5
  %191 = load double, ptr %21, align 8, !tbaa !9
  %192 = load ptr, ptr %22, align 8, !tbaa !11
  %193 = load i64, ptr %23, align 8, !tbaa !5
  %194 = load i64, ptr %24, align 8, !tbaa !5
  %195 = load ptr, ptr %26, align 8, !tbaa !11
  %196 = load i64, ptr %27, align 8, !tbaa !5
  %197 = load i64, ptr %28, align 8, !tbaa !5
  %198 = load double, ptr %30, align 8, !tbaa !9
  %199 = load ptr, ptr %31, align 8, !tbaa !11
  %200 = load i64, ptr %32, align 8, !tbaa !5
  %201 = load i64, ptr %33, align 8, !tbaa !5
  %202 = load ptr, ptr %34, align 8, !tbaa !11
  call void @_ZN11alglib_impl17rmatrixgemmk44v01EllldPNS_9ae_matrixEllS1_lldS1_llPNS_8ae_stateE(i64 noundef %188, i64 noundef %189, i64 noundef %190, double noundef %191, ptr noundef %192, i64 noundef %193, i64 noundef %194, ptr noundef %195, i64 noundef %196, i64 noundef %197, double noundef %198, ptr noundef %199, i64 noundef %200, i64 noundef %201, ptr noundef %202)
  br label %203

203:                                              ; preds = %187, %184, %181
  %204 = load i64, ptr %25, align 8, !tbaa !5
  %205 = icmp ne i64 %204, 0
  br i1 %205, label %206, label %225

206:                                              ; preds = %203
  %207 = load i64, ptr %29, align 8, !tbaa !5
  %208 = icmp eq i64 %207, 0
  br i1 %208, label %209, label %225

209:                                              ; preds = %206
  %210 = load i64, ptr %18, align 8, !tbaa !5
  %211 = load i64, ptr %19, align 8, !tbaa !5
  %212 = load i64, ptr %20, align 8, !tbaa !5
  %213 = load double, ptr %21, align 8, !tbaa !9
  %214 = load ptr, ptr %22, align 8, !tbaa !11
  %215 = load i64, ptr %23, align 8, !tbaa !5
  %216 = load i64, ptr %24, align 8, !tbaa !5
  %217 = load ptr, ptr %26, align 8, !tbaa !11
  %218 = load i64, ptr %27, align 8, !tbaa !5
  %219 = load i64, ptr %28, align 8, !tbaa !5
  %220 = load double, ptr %30, align 8, !tbaa !9
  %221 = load ptr, ptr %31, align 8, !tbaa !11
  %222 = load i64, ptr %32, align 8, !tbaa !5
  %223 = load i64, ptr %33, align 8, !tbaa !5
  %224 = load ptr, ptr %34, align 8, !tbaa !11
  call void @_ZN11alglib_impl17rmatrixgemmk44v10EllldPNS_9ae_matrixEllS1_lldS1_llPNS_8ae_stateE(i64 noundef %210, i64 noundef %211, i64 noundef %212, double noundef %213, ptr noundef %214, i64 noundef %215, i64 noundef %216, ptr noundef %217, i64 noundef %218, i64 noundef %219, double noundef %220, ptr noundef %221, i64 noundef %222, i64 noundef %223, ptr noundef %224)
  br label %225

225:                                              ; preds = %209, %206, %203
  %226 = load i64, ptr %25, align 8, !tbaa !5
  %227 = icmp ne i64 %226, 0
  br i1 %227, label %228, label %247

228:                                              ; preds = %225
  %229 = load i64, ptr %29, align 8, !tbaa !5
  %230 = icmp ne i64 %229, 0
  br i1 %230, label %231, label %247

231:                                              ; preds = %228
  %232 = load i64, ptr %18, align 8, !tbaa !5
  %233 = load i64, ptr %19, align 8, !tbaa !5
  %234 = load i64, ptr %20, align 8, !tbaa !5
  %235 = load double, ptr %21, align 8, !tbaa !9
  %236 = load ptr, ptr %22, align 8, !tbaa !11
  %237 = load i64, ptr %23, align 8, !tbaa !5
  %238 = load i64, ptr %24, align 8, !tbaa !5
  %239 = load ptr, ptr %26, align 8, !tbaa !11
  %240 = load i64, ptr %27, align 8, !tbaa !5
  %241 = load i64, ptr %28, align 8, !tbaa !5
  %242 = load double, ptr %30, align 8, !tbaa !9
  %243 = load ptr, ptr %31, align 8, !tbaa !11
  %244 = load i64, ptr %32, align 8, !tbaa !5
  %245 = load i64, ptr %33, align 8, !tbaa !5
  %246 = load ptr, ptr %34, align 8, !tbaa !11
  call void @_ZN11alglib_impl17rmatrixgemmk44v11EllldPNS_9ae_matrixEllS1_lldS1_llPNS_8ae_stateE(i64 noundef %232, i64 noundef %233, i64 noundef %234, double noundef %235, ptr noundef %236, i64 noundef %237, i64 noundef %238, ptr noundef %239, i64 noundef %240, i64 noundef %241, double noundef %242, ptr noundef %243, i64 noundef %244, i64 noundef %245, ptr noundef %246)
  br label %247

247:                                              ; preds = %231, %228, %225
  store i32 0, ptr %37, align 4
  br label %248

248:                                              ; preds = %247, %158, %63, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  %249 = load i32, ptr %37, align 4
  switch i32 %249, label %251 [
    i32 0, label %250
    i32 1, label %250
  ]

250:                                              ; preds = %248, %248
  ret void

251:                                              ; preds = %248
  unreachable
}

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

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

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

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

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

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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}


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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN11alglib_impl12rmatrixgemmfEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl12rmatrixgemmkEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, i64 noundef %2, double noundef %3, ptr noundef %4, i64 noundef %5, i64 noundef %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, i64 noundef %10, i64 noundef %11, double noundef %12, ptr noundef %13, i64 noundef %14, i64 noundef %15, ptr noundef %16) local_unnamed_addr #1 {
  %18 = icmp eq i64 %0, 0
  %19 = icmp eq i64 %1, 0
  %or.cond = or i1 %18, %19
  br i1 %or.cond, label %.loopexit, label %20

20:                                               ; preds = %17
  %21 = tail call noundef zeroext i1 @_ZN11alglib_impl12rmatrixgemmfEllldPNS_9ae_matrixElllS1_llldS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, i64 noundef %2, double noundef %3, ptr noundef %4, i64 noundef %5, i64 noundef %6, i64 noundef %7, ptr noundef %8, i64 noundef %9, i64 noundef %10, i64 noundef %11, double noundef %12, ptr noundef %13, i64 noundef %14, i64 noundef %15, ptr noundef %16)
  br i1 %21, label %.loopexit, label %22

22:                                               ; preds = %20
  %23 = icmp eq i64 %2, 0
  br i1 %23, label %26, label %24

24:                                               ; preds = %22
  %25 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %3, double noundef 0.000000e+00)
  br i1 %25, label %26, label %97

26:                                               ; preds = %24, %22
  %27 = tail call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %12, double noundef 1.000000e+00)
  br i1 %27, label %28, label %.loopexit

28:                                               ; preds = %26
  %29 = tail call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %12, double noundef 0.000000e+00)
  %.not.not133148 = icmp sgt i64 %0, 0
  br i1 %29, label %.preheader138, label %.preheader140

.preheader140:                                    ; preds = %28
  br i1 %.not.not133148, label %.preheader139.lr.ph, label %.loopexit

.preheader139.lr.ph:                              ; preds = %.preheader140
  %.not.not132142 = icmp sgt i64 %1, 0
  %30 = getelementptr inbounds i8, ptr %13, i64 72
  br i1 %.not.not132142, label %.preheader139.us.preheader, label %.loopexit

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

.preheader139.us:                                 ; preds = %.preheader139.us.preheader, %._crit_edge.us
  %.1128145.us = phi i64 [ %67, %._crit_edge.us ], [ 0, %.preheader139.us.preheader ]
  br i1 %31, label %._crit_edge.us.unr-lcssa, label %.preheader139.us.new

.preheader139.us.new:                             ; preds = %.preheader139.us, %.preheader139.us.new
  %.1143.us = phi i64 [ %59, %.preheader139.us.new ], [ 0, %.preheader139.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader139.us.new ], [ 0, %.preheader139.us ]
  %32 = load ptr, ptr %30, align 8, !tbaa !5
  %33 = getelementptr ptr, ptr %32, i64 %.1128145.us
  %34 = getelementptr ptr, ptr %33, i64 %14
  %35 = load ptr, ptr %34, align 8, !tbaa !8
  %36 = getelementptr double, ptr %35, i64 %.1143.us
  %37 = getelementptr double, ptr %36, i64 %15
  store double 0.000000e+00, ptr %37, align 8, !tbaa !10
  %38 = or disjoint i64 %.1143.us, 1
  %39 = load ptr, ptr %30, align 8, !tbaa !5
  %40 = getelementptr ptr, ptr %39, i64 %.1128145.us
  %41 = getelementptr ptr, ptr %40, i64 %14
  %42 = load ptr, ptr %41, align 8, !tbaa !8
  %43 = getelementptr double, ptr %42, i64 %38
  %44 = getelementptr double, ptr %43, i64 %15
  store double 0.000000e+00, ptr %44, align 8, !tbaa !10
  %45 = or disjoint i64 %.1143.us, 2
  %46 = load ptr, ptr %30, align 8, !tbaa !5
  %47 = getelementptr ptr, ptr %46, i64 %.1128145.us
  %48 = getelementptr ptr, ptr %47, i64 %14
  %49 = load ptr, ptr %48, align 8, !tbaa !8
  %50 = getelementptr double, ptr %49, i64 %45
  %51 = getelementptr double, ptr %50, i64 %15
  store double 0.000000e+00, ptr %51, align 8, !tbaa !10
  %52 = or disjoint i64 %.1143.us, 3
  %53 = load ptr, ptr %30, align 8, !tbaa !5
  %54 = getelementptr ptr, ptr %53, i64 %.1128145.us
  %55 = getelementptr ptr, ptr %54, i64 %14
  %56 = load ptr, ptr %55, align 8, !tbaa !8
  %57 = getelementptr double, ptr %56, i64 %52
  %58 = getelementptr double, ptr %57, i64 %15
  store double 0.000000e+00, ptr %58, align 8, !tbaa !10
  %59 = add nuw nsw i64 %.1143.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 %.preheader139.us.new, !llvm.loop !12

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

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %.1143.us.epil = phi i64 [ %66, %.epil.preheader ], [ %.1143.us.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %60 = load ptr, ptr %30, align 8, !tbaa !5
  %61 = getelementptr ptr, ptr %60, i64 %.1128145.us
  %62 = getelementptr ptr, ptr %61, i64 %14
  %63 = load ptr, ptr %62, align 8, !tbaa !8
  %64 = getelementptr double, ptr %63, i64 %.1143.us.epil
  %65 = getelementptr double, ptr %64, i64 %15
  store double 0.000000e+00, ptr %65, align 8, !tbaa !10
  %66 = add nuw nsw i64 %.1143.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 !14

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %67 = add nuw nsw i64 %.1128145.us, 1
  %exitcond154.not = icmp eq i64 %67, %0
  br i1 %exitcond154.not, label %.loopexit, label %.preheader139.us, !llvm.loop !16

.preheader138:                                    ; preds = %28
  br i1 %.not.not133148, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %.preheader138
  %.not.not134146 = icmp sgt i64 %1, 0
  %68 = getelementptr inbounds i8, ptr %13, i64 72
  br i1 %.not.not134146, label %.preheader.us.preheader, label %.loopexit

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter163 = and i64 %1, 1
  %69 = icmp eq i64 %1, 1
  %unroll_iter166 = and i64 %1, 9223372036854775806
  %lcmp.mod165.not = icmp eq i64 %xtraiter163, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us150
  %.0127149.us = phi i64 [ %96, %._crit_edge.us150 ], [ 0, %.preheader.us.preheader ]
  br i1 %69, label %._crit_edge.us150.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.0147.us = phi i64 [ %87, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter167 = phi i64 [ %niter167.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %70 = load ptr, ptr %68, align 8, !tbaa !5
  %71 = getelementptr ptr, ptr %70, i64 %.0127149.us
  %72 = getelementptr ptr, ptr %71, i64 %14
  %73 = load ptr, ptr %72, align 8, !tbaa !8
  %74 = getelementptr double, ptr %73, i64 %.0147.us
  %75 = getelementptr double, ptr %74, i64 %15
  %76 = load double, ptr %75, align 8, !tbaa !10
  %77 = fmul double %76, %12
  store double %77, ptr %75, align 8, !tbaa !10
  %78 = or disjoint i64 %.0147.us, 1
  %79 = load ptr, ptr %68, align 8, !tbaa !5
  %80 = getelementptr ptr, ptr %79, i64 %.0127149.us
  %81 = getelementptr ptr, ptr %80, i64 %14
  %82 = load ptr, ptr %81, align 8, !tbaa !8
  %83 = getelementptr double, ptr %82, i64 %78
  %84 = getelementptr double, ptr %83, i64 %15
  %85 = load double, ptr %84, align 8, !tbaa !10
  %86 = fmul double %85, %12
  store double %86, ptr %84, align 8, !tbaa !10
  %87 = add nuw nsw i64 %.0147.us, 2
  %niter167.next.1 = add i64 %niter167, 2
  %niter167.ncmp.1 = icmp eq i64 %niter167.next.1, %unroll_iter166
  br i1 %niter167.ncmp.1, label %._crit_edge.us150.unr-lcssa, label %.preheader.us.new, !llvm.loop !17

._crit_edge.us150.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.0147.us.unr = phi i64 [ 0, %.preheader.us ], [ %87, %.preheader.us.new ]
  br i1 %lcmp.mod165.not, label %._crit_edge.us150, label %._crit_edge.us150.epilog-lcssa

._crit_edge.us150.epilog-lcssa:                   ; preds = %._crit_edge.us150.unr-lcssa
  %88 = load ptr, ptr %68, align 8, !tbaa !5
  %89 = getelementptr ptr, ptr %88, i64 %.0127149.us
  %90 = getelementptr ptr, ptr %89, i64 %14
  %91 = load ptr, ptr %90, align 8, !tbaa !8
  %92 = getelementptr double, ptr %91, i64 %.0147.us.unr
  %93 = getelementptr double, ptr %92, i64 %15
  %94 = load double, ptr %93, align 8, !tbaa !10
  %95 = fmul double %94, %12
  store double %95, ptr %93, align 8, !tbaa !10
  br label %._crit_edge.us150

._crit_edge.us150:                                ; preds = %._crit_edge.us150.unr-lcssa, %._crit_edge.us150.epilog-lcssa
  %96 = add nuw nsw i64 %.0127149.us, 1
  %exitcond156.not = icmp eq i64 %96, %0
  br i1 %exitcond156.not, label %.loopexit, label %.preheader.us, !llvm.loop !18

97:                                               ; preds = %24
  %98 = icmp eq i64 %7, 0
  %99 = icmp eq i64 %11, 0
  %100 = or i64 %11, %7
  %or.cond3 = icmp eq i64 %100, 0
  br i1 %or.cond3, label %101, label %102

101:                                              ; preds = %97
  tail call void @_ZN11alglib_impl17rmatrixgemmk44v00EllldPNS_9ae_matrixEllS1_lldS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, i64 noundef %2, double noundef %3, ptr noundef %4, i64 noundef %5, i64 noundef %6, ptr noundef %8, i64 noundef %9, i64 noundef %10, double noundef %12, ptr noundef %13, i64 noundef %14, i64 noundef %15, ptr noundef %16)
  br label %102

102:                                              ; preds = %101, %97
  %103 = icmp ne i64 %11, 0
  %or.cond5 = and i1 %98, %103
  br i1 %or.cond5, label %.thread157, label %104

.thread157:                                       ; preds = %102
  tail call void @_ZN11alglib_impl17rmatrixgemmk44v01EllldPNS_9ae_matrixEllS1_lldS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, i64 noundef %2, double noundef %3, ptr noundef %4, i64 noundef %5, i64 noundef %6, ptr noundef %8, i64 noundef %9, i64 noundef %10, double noundef %12, ptr noundef %13, i64 noundef %14, i64 noundef %15, ptr noundef %16)
  br label %.loopexit

104:                                              ; preds = %102
  %105 = icmp ne i64 %7, 0
  %or.cond7 = and i1 %105, %99
  br i1 %or.cond7, label %.thread136, label %106

.thread136:                                       ; preds = %104
  tail call void @_ZN11alglib_impl17rmatrixgemmk44v10EllldPNS_9ae_matrixEllS1_lldS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, i64 noundef %2, double noundef %3, ptr noundef %4, i64 noundef %5, i64 noundef %6, ptr noundef %8, i64 noundef %9, i64 noundef %10, double noundef %12, ptr noundef %13, i64 noundef %14, i64 noundef %15, ptr noundef %16)
  br label %.loopexit

106:                                              ; preds = %104
  %or.cond9 = and i1 %103, %105
  br i1 %or.cond9, label %107, label %.loopexit

107:                                              ; preds = %106
  tail call void @_ZN11alglib_impl17rmatrixgemmk44v11EllldPNS_9ae_matrixEllS1_lldS1_llPNS_8ae_stateE(i64 noundef %0, i64 noundef %1, i64 noundef %2, double noundef %3, ptr noundef %4, i64 noundef %5, i64 noundef %6, ptr noundef %8, i64 noundef %9, i64 noundef %10, double noundef %12, ptr noundef %13, i64 noundef %14, i64 noundef %15, ptr noundef %16)
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge.us, %._crit_edge.us150, %.thread157, %.preheader.lr.ph, %.preheader139.lr.ph, %.preheader140, %.preheader138, %.thread136, %106, %107, %26, %20, %17
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl17rmatrixgemmk44v00EllldPNS_9ae_matrixEllS1_lldS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl17rmatrixgemmk44v01EllldPNS_9ae_matrixEllS1_lldS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl17rmatrixgemmk44v10EllldPNS_9ae_matrixEllS1_lldS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl17rmatrixgemmk44v11EllldPNS_9ae_matrixEllS1_lldS1_llPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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, !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, !11, i64 0}
!11 = !{!"double", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}


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