; LLVM IR from AlgoGenesis/C :: Machine_Learning_Algorithms/Ridge Regression (Program)

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

@.str = external hidden unnamed_addr constant [43 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @transpose(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @multiplyMatrices(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: nounwind uwtable
declare dso_local void @addRegularization(ptr noundef, double noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @invertMatrix(ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @ridgeRegression(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store double %5, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %27 = load i32, ptr %11, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = mul i64 %28, 8
  %30 = call noalias ptr @malloc(i64 noundef %29) #7
  store ptr %30, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %45, %6
  %32 = load i32, ptr %14, align 4, !tbaa !9
  %33 = load i32, ptr %11, align 4, !tbaa !9
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %48

36:                                               ; preds = %31
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = mul i64 %38, 8
  %40 = call noalias ptr @malloc(i64 noundef %39) #7
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  %42 = load i32, ptr %14, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds ptr, ptr %41, i64 %43
  store ptr %40, ptr %44, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %36
  %46 = load i32, ptr %14, align 4, !tbaa !9
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %14, align 4, !tbaa !9
  br label %31, !llvm.loop !13

48:                                               ; preds = %35
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = load i32, ptr %11, align 4, !tbaa !9
  call void @transpose(ptr noundef %49, ptr noundef %50, i32 noundef %51, i32 noundef %52)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = mul i64 %54, 8
  %56 = call noalias ptr @malloc(i64 noundef %55) #7
  store ptr %56, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %71, %48
  %58 = load i32, ptr %16, align 4, !tbaa !9
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %74

62:                                               ; preds = %57
  %63 = load i32, ptr %11, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = mul i64 %64, 8
  %66 = call noalias ptr @malloc(i64 noundef %65) #7
  %67 = load ptr, ptr %15, align 8, !tbaa !5
  %68 = load i32, ptr %16, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds ptr, ptr %67, i64 %69
  store ptr %66, ptr %70, align 8, !tbaa !5
  br label %71

71:                                               ; preds = %62
  %72 = load i32, ptr %16, align 4, !tbaa !9
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %16, align 4, !tbaa !9
  br label %57, !llvm.loop !15

74:                                               ; preds = %61
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = load i32, ptr %11, align 4, !tbaa !9
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = load i32, ptr %11, align 4, !tbaa !9
  call void @multiplyMatrices(ptr noundef %75, ptr noundef %76, ptr noundef %77, i32 noundef %78, i32 noundef %79, i32 noundef %80)
  %81 = load ptr, ptr %15, align 8, !tbaa !5
  %82 = load double, ptr %12, align 8, !tbaa !11
  %83 = load i32, ptr %11, align 4, !tbaa !9
  call void @addRegularization(ptr noundef %81, double noundef %82, i32 noundef %83)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %84 = load i32, ptr %11, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = mul i64 %85, 8
  %87 = call noalias ptr @malloc(i64 noundef %86) #7
  store ptr %87, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %102, %74
  %89 = load i32, ptr %18, align 4, !tbaa !9
  %90 = load i32, ptr %11, align 4, !tbaa !9
  %91 = icmp slt i32 %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %105

93:                                               ; preds = %88
  %94 = load i32, ptr %11, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = mul i64 %95, 8
  %97 = call noalias ptr @malloc(i64 noundef %96) #7
  %98 = load ptr, ptr %17, align 8, !tbaa !5
  %99 = load i32, ptr %18, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds ptr, ptr %98, i64 %100
  store ptr %97, ptr %101, align 8, !tbaa !5
  br label %102

102:                                              ; preds = %93
  %103 = load i32, ptr %18, align 4, !tbaa !9
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %18, align 4, !tbaa !9
  br label %88, !llvm.loop !16

105:                                              ; preds = %92
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  %108 = load i32, ptr %11, align 4, !tbaa !9
  %109 = call i32 @invertMatrix(ptr noundef %106, ptr noundef %107, i32 noundef %108)
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %113

111:                                              ; preds = %105
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  store i32 1, ptr %19, align 4
  br label %256

113:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %114 = load i32, ptr %11, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = mul i64 %115, 8
  %117 = call noalias ptr @malloc(i64 noundef %116) #7
  store ptr %117, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %167, %113
  %119 = load i32, ptr %21, align 4, !tbaa !9
  %120 = load i32, ptr %11, align 4, !tbaa !9
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  store i32 11, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %170

123:                                              ; preds = %118
  %124 = call noalias ptr @malloc(i64 noundef 8) #7
  %125 = load ptr, ptr %20, align 8, !tbaa !5
  %126 = load i32, ptr %21, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds ptr, ptr %125, i64 %127
  store ptr %124, ptr %128, align 8, !tbaa !5
  %129 = load ptr, ptr %20, align 8, !tbaa !5
  %130 = load i32, ptr %21, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds ptr, ptr %129, i64 %131
  %133 = load ptr, ptr %132, align 8, !tbaa !5
  %134 = getelementptr inbounds double, ptr %133, i64 0
  store double 0.000000e+00, ptr %134, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %163, %123
  %136 = load i32, ptr %22, align 4, !tbaa !9
  %137 = load i32, ptr %10, align 4, !tbaa !9
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  store i32 14, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %166

140:                                              ; preds = %135
  %141 = load ptr, ptr %13, align 8, !tbaa !5
  %142 = load i32, ptr %21, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds ptr, ptr %141, i64 %143
  %145 = load ptr, ptr %144, align 8, !tbaa !5
  %146 = load i32, ptr %22, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds double, ptr %145, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !11
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  %151 = load i32, ptr %22, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds double, ptr %150, i64 %152
  %154 = load double, ptr %153, align 8, !tbaa !11
  %155 = load ptr, ptr %20, align 8, !tbaa !5
  %156 = load i32, ptr %21, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds ptr, ptr %155, i64 %157
  %159 = load ptr, ptr %158, align 8, !tbaa !5
  %160 = getelementptr inbounds double, ptr %159, i64 0
  %161 = load double, ptr %160, align 8, !tbaa !11
  %162 = call double @llvm.fmuladd.f64(double %149, double %154, double %161)
  store double %162, ptr %160, align 8, !tbaa !11
  br label %163

163:                                              ; preds = %140
  %164 = load i32, ptr %22, align 4, !tbaa !9
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %22, align 4, !tbaa !9
  br label %135, !llvm.loop !17

166:                                              ; preds = %139
  br label %167

167:                                              ; preds = %166
  %168 = load i32, ptr %21, align 4, !tbaa !9
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %21, align 4, !tbaa !9
  br label %118, !llvm.loop !18

170:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %171 = load i32, ptr %11, align 4, !tbaa !9
  %172 = sext i32 %171 to i64
  %173 = mul i64 %172, 8
  %174 = call noalias ptr @malloc(i64 noundef %173) #7
  store ptr %174, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %186, %170
  %176 = load i32, ptr %24, align 4, !tbaa !9
  %177 = load i32, ptr %11, align 4, !tbaa !9
  %178 = icmp slt i32 %176, %177
  br i1 %178, label %180, label %179

179:                                              ; preds = %175
  store i32 17, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %189

180:                                              ; preds = %175
  %181 = call noalias ptr @malloc(i64 noundef 8) #7
  %182 = load ptr, ptr %23, align 8, !tbaa !5
  %183 = load i32, ptr %24, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds ptr, ptr %182, i64 %184
  store ptr %181, ptr %185, align 8, !tbaa !5
  br label %186

186:                                              ; preds = %180
  %187 = load i32, ptr %24, align 4, !tbaa !9
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %24, align 4, !tbaa !9
  br label %175, !llvm.loop !19

189:                                              ; preds = %179
  %190 = load ptr, ptr %17, align 8, !tbaa !5
  %191 = load ptr, ptr %20, align 8, !tbaa !5
  %192 = load ptr, ptr %23, align 8, !tbaa !5
  %193 = load i32, ptr %11, align 4, !tbaa !9
  %194 = load i32, ptr %11, align 4, !tbaa !9
  call void @multiplyMatrices(ptr noundef %190, ptr noundef %191, ptr noundef %192, i32 noundef %193, i32 noundef %194, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %195

195:                                              ; preds = %212, %189
  %196 = load i32, ptr %25, align 4, !tbaa !9
  %197 = load i32, ptr %11, align 4, !tbaa !9
  %198 = icmp slt i32 %196, %197
  br i1 %198, label %200, label %199

199:                                              ; preds = %195
  store i32 20, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %215

200:                                              ; preds = %195
  %201 = load ptr, ptr %23, align 8, !tbaa !5
  %202 = load i32, ptr %25, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds ptr, ptr %201, i64 %203
  %205 = load ptr, ptr %204, align 8, !tbaa !5
  %206 = getelementptr inbounds double, ptr %205, i64 0
  %207 = load double, ptr %206, align 8, !tbaa !11
  %208 = load ptr, ptr %9, align 8, !tbaa !5
  %209 = load i32, ptr %25, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds double, ptr %208, i64 %210
  store double %207, ptr %211, align 8, !tbaa !11
  br label %212

212:                                              ; preds = %200
  %213 = load i32, ptr %25, align 4, !tbaa !9
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %25, align 4, !tbaa !9
  br label %195, !llvm.loop !20

215:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %216

216:                                              ; preds = %247, %215
  %217 = load i32, ptr %26, align 4, !tbaa !9
  %218 = load i32, ptr %11, align 4, !tbaa !9
  %219 = icmp slt i32 %217, %218
  br i1 %219, label %221, label %220

220:                                              ; preds = %216
  store i32 23, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %250

221:                                              ; preds = %216
  %222 = load ptr, ptr %13, align 8, !tbaa !5
  %223 = load i32, ptr %26, align 4, !tbaa !9
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds ptr, ptr %222, i64 %224
  %226 = load ptr, ptr %225, align 8, !tbaa !5
  call void @free(ptr noundef %226) #6
  %227 = load ptr, ptr %15, align 8, !tbaa !5
  %228 = load i32, ptr %26, align 4, !tbaa !9
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds ptr, ptr %227, i64 %229
  %231 = load ptr, ptr %230, align 8, !tbaa !5
  call void @free(ptr noundef %231) #6
  %232 = load ptr, ptr %17, align 8, !tbaa !5
  %233 = load i32, ptr %26, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds ptr, ptr %232, i64 %234
  %236 = load ptr, ptr %235, align 8, !tbaa !5
  call void @free(ptr noundef %236) #6
  %237 = load ptr, ptr %20, align 8, !tbaa !5
  %238 = load i32, ptr %26, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds ptr, ptr %237, i64 %239
  %241 = load ptr, ptr %240, align 8, !tbaa !5
  call void @free(ptr noundef %241) #6
  %242 = load ptr, ptr %23, align 8, !tbaa !5
  %243 = load i32, ptr %26, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds ptr, ptr %242, i64 %244
  %246 = load ptr, ptr %245, align 8, !tbaa !5
  call void @free(ptr noundef %246) #6
  br label %247

247:                                              ; preds = %221
  %248 = load i32, ptr %26, align 4, !tbaa !9
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %26, align 4, !tbaa !9
  br label %216, !llvm.loop !21

250:                                              ; preds = %220
  %251 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %251) #6
  %252 = load ptr, ptr %15, align 8, !tbaa !5
  call void @free(ptr noundef %252) #6
  %253 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free(ptr noundef %253) #6
  %254 = load ptr, ptr %20, align 8, !tbaa !5
  call void @free(ptr noundef %254) #6
  %255 = load ptr, ptr %23, align 8, !tbaa !5
  call void @free(ptr noundef %255) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  store i32 0, ptr %19, align 4
  br label %256

256:                                              ; preds = %250, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %257 = load i32, ptr %19, align 4
  switch i32 %257, label %259 [
    i32 0, label %258
    i32 1, label %258
  ]

258:                                              ; preds = %256, %256
  ret void

259:                                              ; preds = %256
  unreachable
}

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

declare i32 @printf(ptr noundef, ...) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

attributes #0 = { nounwind 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 "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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}


; 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 = external hidden unnamed_addr constant [43 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @transpose(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @multiplyMatrices(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: nounwind uwtable
declare dso_local void @addRegularization(ptr noundef, double noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @invertMatrix(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @ridgeRegression(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2, i32 noundef %3, i32 noundef %4, double noundef %5) local_unnamed_addr #0 {
  %7 = sext i32 %4 to i64
  %8 = shl nsw i64 %7, 3
  %9 = tail call noalias ptr @malloc(i64 noundef %8) #5
  %10 = icmp sgt i32 %4, 0
  br i1 %10, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %6
  %11 = sext i32 %3 to i64
  %12 = shl nsw i64 %11, 3
  %wide.trip.count = zext nneg i32 %4 to i64
  br label %14

._crit_edge:                                      ; preds = %14, %6
  tail call void @transpose(ptr noundef %0, ptr noundef %9, i32 noundef %3, i32 noundef %4)
  %13 = tail call noalias ptr @malloc(i64 noundef %8) #5
  br i1 %10, label %.lr.ph101.preheader, label %._crit_edge102

.lr.ph101.preheader:                              ; preds = %._crit_edge
  %wide.trip.count130 = zext nneg i32 %4 to i64
  br label %.lr.ph101

14:                                               ; preds = %.lr.ph, %14
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %14 ]
  %15 = tail call noalias ptr @malloc(i64 noundef %12) #5
  %16 = getelementptr inbounds ptr, ptr %9, i64 %indvars.iv
  store ptr %15, ptr %16, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %14, !llvm.loop !9

._crit_edge102:                                   ; preds = %.lr.ph101, %._crit_edge
  tail call void @multiplyMatrices(ptr noundef %9, ptr noundef %0, ptr noundef %13, i32 noundef %4, i32 noundef %3, i32 noundef %4)
  tail call void @addRegularization(ptr noundef %13, double noundef %5, i32 noundef %4)
  %17 = tail call noalias ptr @malloc(i64 noundef %8) #5
  br i1 %10, label %.lr.ph105.preheader, label %._crit_edge106

.lr.ph105.preheader:                              ; preds = %._crit_edge102
  %wide.trip.count135 = zext nneg i32 %4 to i64
  br label %.lr.ph105

.lr.ph101:                                        ; preds = %.lr.ph101.preheader, %.lr.ph101
  %indvars.iv127 = phi i64 [ 0, %.lr.ph101.preheader ], [ %indvars.iv.next128, %.lr.ph101 ]
  %18 = tail call noalias ptr @malloc(i64 noundef %8) #5
  %19 = getelementptr inbounds ptr, ptr %13, i64 %indvars.iv127
  store ptr %18, ptr %19, align 8, !tbaa !5
  %indvars.iv.next128 = add nuw nsw i64 %indvars.iv127, 1
  %exitcond131.not = icmp eq i64 %indvars.iv.next128, %wide.trip.count130
  br i1 %exitcond131.not, label %._crit_edge102, label %.lr.ph101, !llvm.loop !11

._crit_edge106:                                   ; preds = %.lr.ph105, %._crit_edge102
  %20 = tail call i32 @invertMatrix(ptr noundef %13, ptr noundef %17, i32 noundef %4)
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %25, label %23

.lr.ph105:                                        ; preds = %.lr.ph105.preheader, %.lr.ph105
  %indvars.iv132 = phi i64 [ 0, %.lr.ph105.preheader ], [ %indvars.iv.next133, %.lr.ph105 ]
  %21 = tail call noalias ptr @malloc(i64 noundef %8) #5
  %22 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv132
  store ptr %21, ptr %22, align 8, !tbaa !5
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %exitcond136.not = icmp eq i64 %indvars.iv.next133, %wide.trip.count135
  br i1 %exitcond136.not, label %._crit_edge106, label %.lr.ph105, !llvm.loop !12

23:                                               ; preds = %._crit_edge106
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %98

25:                                               ; preds = %._crit_edge106
  %26 = tail call noalias ptr @malloc(i64 noundef %8) #5
  br i1 %10, label %.lr.ph113, label %._crit_edge114.thread

._crit_edge114.thread:                            ; preds = %25
  %27 = tail call noalias ptr @malloc(i64 noundef %8) #5
  br label %._crit_edge118.thread

.lr.ph113:                                        ; preds = %25
  %28 = icmp sgt i32 %3, 0
  %wide.trip.count150 = zext nneg i32 %4 to i64
  br i1 %28, label %.lr.ph109.us.preheader, label %.lr.ph113.split

.lr.ph109.us.preheader:                           ; preds = %.lr.ph113
  %wide.trip.count145 = zext nneg i32 %3 to i64
  %xtraiter = and i64 %wide.trip.count145, 3
  %29 = icmp ult i32 %3, 4
  %unroll_iter = and i64 %wide.trip.count145, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph109.us

.lr.ph109.us:                                     ; preds = %.lr.ph109.us.preheader, %._crit_edge110.us
  %indvars.iv147 = phi i64 [ 0, %.lr.ph109.us.preheader ], [ %indvars.iv.next148, %._crit_edge110.us ]
  %30 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #5
  %31 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv147
  store ptr %30, ptr %31, align 8, !tbaa !5
  store double 0.000000e+00, ptr %30, align 8, !tbaa !13
  %32 = getelementptr inbounds ptr, ptr %9, i64 %indvars.iv147
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  br i1 %29, label %._crit_edge110.us.unr-lcssa, label %.lr.ph109.us.new

.lr.ph109.us.new:                                 ; preds = %.lr.ph109.us, %.lr.ph109.us.new
  %indvars.iv142 = phi i64 [ %indvars.iv.next143.3, %.lr.ph109.us.new ], [ 0, %.lr.ph109.us ]
  %34 = phi double [ %54, %.lr.ph109.us.new ], [ 0.000000e+00, %.lr.ph109.us ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph109.us.new ], [ 0, %.lr.ph109.us ]
  %35 = getelementptr inbounds double, ptr %33, i64 %indvars.iv142
  %36 = load double, ptr %35, align 8, !tbaa !13
  %37 = getelementptr inbounds double, ptr %1, i64 %indvars.iv142
  %38 = load double, ptr %37, align 8, !tbaa !13
  %39 = tail call double @llvm.fmuladd.f64(double %36, double %38, double %34)
  store double %39, ptr %30, align 8, !tbaa !13
  %indvars.iv.next143 = or disjoint i64 %indvars.iv142, 1
  %40 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next143
  %41 = load double, ptr %40, align 8, !tbaa !13
  %42 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next143
  %43 = load double, ptr %42, align 8, !tbaa !13
  %44 = tail call double @llvm.fmuladd.f64(double %41, double %43, double %39)
  store double %44, ptr %30, align 8, !tbaa !13
  %indvars.iv.next143.1 = or disjoint i64 %indvars.iv142, 2
  %45 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next143.1
  %46 = load double, ptr %45, align 8, !tbaa !13
  %47 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next143.1
  %48 = load double, ptr %47, align 8, !tbaa !13
  %49 = tail call double @llvm.fmuladd.f64(double %46, double %48, double %44)
  store double %49, ptr %30, align 8, !tbaa !13
  %indvars.iv.next143.2 = or disjoint i64 %indvars.iv142, 3
  %50 = getelementptr inbounds double, ptr %33, i64 %indvars.iv.next143.2
  %51 = load double, ptr %50, align 8, !tbaa !13
  %52 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next143.2
  %53 = load double, ptr %52, align 8, !tbaa !13
  %54 = tail call double @llvm.fmuladd.f64(double %51, double %53, double %49)
  store double %54, ptr %30, align 8, !tbaa !13
  %indvars.iv.next143.3 = add nuw nsw i64 %indvars.iv142, 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_edge110.us.unr-lcssa, label %.lr.ph109.us.new, !llvm.loop !15

._crit_edge110.us.unr-lcssa:                      ; preds = %.lr.ph109.us.new, %.lr.ph109.us
  %indvars.iv142.unr = phi i64 [ 0, %.lr.ph109.us ], [ %indvars.iv.next143.3, %.lr.ph109.us.new ]
  %.unr = phi double [ 0.000000e+00, %.lr.ph109.us ], [ %54, %.lr.ph109.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge110.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge110.us.unr-lcssa, %.epil.preheader
  %indvars.iv142.epil = phi i64 [ %indvars.iv.next143.epil, %.epil.preheader ], [ %indvars.iv142.unr, %._crit_edge110.us.unr-lcssa ]
  %55 = phi double [ %60, %.epil.preheader ], [ %.unr, %._crit_edge110.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge110.us.unr-lcssa ]
  %56 = getelementptr inbounds double, ptr %33, i64 %indvars.iv142.epil
  %57 = load double, ptr %56, align 8, !tbaa !13
  %58 = getelementptr inbounds double, ptr %1, i64 %indvars.iv142.epil
  %59 = load double, ptr %58, align 8, !tbaa !13
  %60 = tail call double @llvm.fmuladd.f64(double %57, double %59, double %55)
  store double %60, ptr %30, align 8, !tbaa !13
  %indvars.iv.next143.epil = add nuw nsw i64 %indvars.iv142.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_edge110.us, label %.epil.preheader, !llvm.loop !16

._crit_edge110.us:                                ; preds = %.epil.preheader, %._crit_edge110.us.unr-lcssa
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %exitcond151.not = icmp eq i64 %indvars.iv.next148, %wide.trip.count150
  br i1 %exitcond151.not, label %._crit_edge114, label %.lr.ph109.us, !llvm.loop !18

._crit_edge114:                                   ; preds = %.lr.ph113.split, %._crit_edge110.us
  %61 = tail call noalias ptr @malloc(i64 noundef %8) #5
  br i1 %10, label %.lr.ph117.preheader, label %._crit_edge118.thread

.lr.ph117.preheader:                              ; preds = %._crit_edge114
  %wide.trip.count155 = zext nneg i32 %4 to i64
  br label %.lr.ph117

.lr.ph113.split:                                  ; preds = %.lr.ph113, %.lr.ph113.split
  %indvars.iv137 = phi i64 [ %indvars.iv.next138, %.lr.ph113.split ], [ 0, %.lr.ph113 ]
  %62 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #5
  %63 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv137
  store ptr %62, ptr %63, align 8, !tbaa !5
  store double 0.000000e+00, ptr %62, align 8, !tbaa !13
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %exitcond141.not = icmp eq i64 %indvars.iv.next138, %wide.trip.count150
  br i1 %exitcond141.not, label %._crit_edge114, label %.lr.ph113.split, !llvm.loop !18

._crit_edge118.thread:                            ; preds = %._crit_edge114.thread, %._crit_edge114
  %.ph = phi ptr [ %61, %._crit_edge114 ], [ %27, %._crit_edge114.thread ]
  tail call void @multiplyMatrices(ptr noundef %17, ptr noundef %26, ptr noundef %.ph, i32 noundef %4, i32 noundef %4, i32 noundef 1)
  br label %._crit_edge124

._crit_edge118:                                   ; preds = %.lr.ph117
  tail call void @multiplyMatrices(ptr noundef %17, ptr noundef %26, ptr noundef nonnull %61, i32 noundef %4, i32 noundef %4, i32 noundef 1)
  br i1 %10, label %.lr.ph121.preheader, label %._crit_edge124

.lr.ph121.preheader:                              ; preds = %._crit_edge118
  %xtraiter171 = and i64 %wide.trip.count150, 3
  %64 = icmp ult i32 %4, 4
  br i1 %64, label %.preheader.unr-lcssa, label %.lr.ph121.preheader.new

.lr.ph121.preheader.new:                          ; preds = %.lr.ph121.preheader
  %unroll_iter174 = and i64 %wide.trip.count150, 2147483644
  br label %.lr.ph121

.lr.ph117:                                        ; preds = %.lr.ph117.preheader, %.lr.ph117
  %indvars.iv152 = phi i64 [ 0, %.lr.ph117.preheader ], [ %indvars.iv.next153, %.lr.ph117 ]
  %65 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #5
  %66 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv152
  store ptr %65, ptr %66, align 8, !tbaa !5
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %exitcond156.not = icmp eq i64 %indvars.iv.next153, %wide.trip.count155
  br i1 %exitcond156.not, label %._crit_edge118, label %.lr.ph117, !llvm.loop !19

.preheader.unr-lcssa:                             ; preds = %.lr.ph121, %.lr.ph121.preheader
  %indvars.iv157.unr = phi i64 [ 0, %.lr.ph121.preheader ], [ %indvars.iv.next158.3, %.lr.ph121 ]
  %lcmp.mod173.not = icmp eq i64 %xtraiter171, 0
  br i1 %lcmp.mod173.not, label %.preheader, label %.lr.ph121.epil

.lr.ph121.epil:                                   ; preds = %.preheader.unr-lcssa, %.lr.ph121.epil
  %indvars.iv157.epil = phi i64 [ %indvars.iv.next158.epil, %.lr.ph121.epil ], [ %indvars.iv157.unr, %.preheader.unr-lcssa ]
  %epil.iter172 = phi i64 [ %epil.iter172.next, %.lr.ph121.epil ], [ 0, %.preheader.unr-lcssa ]
  %67 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv157.epil
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = load double, ptr %68, align 8, !tbaa !13
  %70 = getelementptr inbounds double, ptr %2, i64 %indvars.iv157.epil
  store double %69, ptr %70, align 8, !tbaa !13
  %indvars.iv.next158.epil = add nuw nsw i64 %indvars.iv157.epil, 1
  %epil.iter172.next = add i64 %epil.iter172, 1
  %epil.iter172.cmp.not = icmp eq i64 %epil.iter172.next, %xtraiter171
  br i1 %epil.iter172.cmp.not, label %.preheader, label %.lr.ph121.epil, !llvm.loop !20

.preheader:                                       ; preds = %.lr.ph121.epil, %.preheader.unr-lcssa
  br i1 %10, label %.lr.ph123.preheader, label %._crit_edge124

.lr.ph123.preheader:                              ; preds = %.preheader
  %wide.trip.count165 = zext nneg i32 %4 to i64
  br label %.lr.ph123

.lr.ph121:                                        ; preds = %.lr.ph121, %.lr.ph121.preheader.new
  %indvars.iv157 = phi i64 [ 0, %.lr.ph121.preheader.new ], [ %indvars.iv.next158.3, %.lr.ph121 ]
  %niter175 = phi i64 [ 0, %.lr.ph121.preheader.new ], [ %niter175.next.3, %.lr.ph121 ]
  %71 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv157
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = load double, ptr %72, align 8, !tbaa !13
  %74 = getelementptr inbounds double, ptr %2, i64 %indvars.iv157
  store double %73, ptr %74, align 8, !tbaa !13
  %indvars.iv.next158 = or disjoint i64 %indvars.iv157, 1
  %75 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv.next158
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = load double, ptr %76, align 8, !tbaa !13
  %78 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next158
  store double %77, ptr %78, align 8, !tbaa !13
  %indvars.iv.next158.1 = or disjoint i64 %indvars.iv157, 2
  %79 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv.next158.1
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = load double, ptr %80, align 8, !tbaa !13
  %82 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next158.1
  store double %81, ptr %82, align 8, !tbaa !13
  %indvars.iv.next158.2 = or disjoint i64 %indvars.iv157, 3
  %83 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv.next158.2
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = load double, ptr %84, align 8, !tbaa !13
  %86 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next158.2
  store double %85, ptr %86, align 8, !tbaa !13
  %indvars.iv.next158.3 = add nuw nsw i64 %indvars.iv157, 4
  %niter175.next.3 = add i64 %niter175, 4
  %niter175.ncmp.3 = icmp eq i64 %niter175.next.3, %unroll_iter174
  br i1 %niter175.ncmp.3, label %.preheader.unr-lcssa, label %.lr.ph121, !llvm.loop !21

._crit_edge124:                                   ; preds = %.lr.ph123, %._crit_edge118, %._crit_edge118.thread, %.preheader
  %87 = phi ptr [ %61, %.preheader ], [ %61, %._crit_edge118 ], [ %.ph, %._crit_edge118.thread ], [ %61, %.lr.ph123 ]
  tail call void @free(ptr noundef %9) #6
  tail call void @free(ptr noundef %13) #6
  tail call void @free(ptr noundef %17) #6
  tail call void @free(ptr noundef %26) #6
  tail call void @free(ptr noundef %87) #6
  br label %98

.lr.ph123:                                        ; preds = %.lr.ph123.preheader, %.lr.ph123
  %indvars.iv162 = phi i64 [ 0, %.lr.ph123.preheader ], [ %indvars.iv.next163, %.lr.ph123 ]
  %88 = getelementptr inbounds ptr, ptr %9, i64 %indvars.iv162
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  tail call void @free(ptr noundef %89) #6
  %90 = getelementptr inbounds ptr, ptr %13, i64 %indvars.iv162
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  tail call void @free(ptr noundef %91) #6
  %92 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv162
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  tail call void @free(ptr noundef %93) #6
  %94 = getelementptr inbounds ptr, ptr %26, i64 %indvars.iv162
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  tail call void @free(ptr noundef %95) #6
  %96 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv162
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  tail call void @free(ptr noundef %97) #6
  %indvars.iv.next163 = add nuw nsw i64 %indvars.iv162, 1
  %exitcond166.not = icmp eq i64 %indvars.iv.next163, %wide.trip.count165
  br i1 %exitcond166.not, label %._crit_edge124, label %.lr.ph123, !llvm.loop !22

98:                                               ; preds = %._crit_edge124, %23
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

attributes #0 = { nounwind 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 allocsize(0) }
attributes #6 = { 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/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}


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