; LLVM IR from softmin/ReHLine-SVM :: liblinear (linear)

; 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.problem = type { i32, i32, ptr, ptr, double }
%class.Solver_MCSVM_CS = type { ptr, ptr, ptr, i32, i32, i32, i32, double, ptr }
%struct.model = type { %struct.parameter, i32, i32, ptr, ptr, double, double }
%struct.parameter = type { i32, double, double, i32, ptr, ptr, double, double, ptr, i32 }

@stderr = external global ptr, align 8
@.str.6 = 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15Solver_MCSVM_CS5SolveEPd(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local ptr @train(ptr noundef %0, ptr noundef %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %struct.problem, align 8
  %20 = alloca %class.Solver_MCSVM_CS, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.problem, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %28, align 8, !tbaa !9
  store i32 %29, ptr %7, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.problem, ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 4, !tbaa !14
  store i32 %32, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.problem, ptr %33, i32 0, i32 1
  %35 = load i32, ptr %34, align 4, !tbaa !14
  store i32 %35, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %36 = call noalias ptr @malloc(i64 noundef 120) #7
  store ptr %36, ptr %10, align 8, !tbaa !5
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.problem, ptr %37, i32 0, i32 4
  %39 = load double, ptr %38, align 8, !tbaa !15
  %40 = fcmp oge double %39, 0.000000e+00
  br i1 %40, label %41, label %46

41:                                               ; preds = %2
  %42 = load i32, ptr %8, align 4, !tbaa !13
  %43 = sub nsw i32 %42, 1
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.model, ptr %44, i32 0, i32 2
  store i32 %43, ptr %45, align 4, !tbaa !16
  br label %50

46:                                               ; preds = %2
  %47 = load i32, ptr %8, align 4, !tbaa !13
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.model, ptr %48, i32 0, i32 2
  store i32 %47, ptr %49, align 4, !tbaa !16
  br label %50

50:                                               ; preds = %46, %41
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.model, ptr %52, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %53, ptr align 8 %51, i64 80, i1 false), !tbaa.struct !19
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.problem, ptr %54, i32 0, i32 4
  %56 = load double, ptr %55, align 8, !tbaa !15
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.model, ptr %57, i32 0, i32 5
  store double %56, ptr %58, align 8, !tbaa !21
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = call i32 @check_regression_model(ptr noundef %59)
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %122

62:                                               ; preds = %50
  %63 = load i32, ptr %9, align 4, !tbaa !13
  %64 = sext i32 %63 to i64
  %65 = mul i64 %64, 8
  %66 = call noalias ptr @malloc(i64 noundef %65) #7
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.model, ptr %67, i32 0, i32 3
  store ptr %66, ptr %68, align 8, !tbaa !22
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.parameter, ptr %69, i32 0, i32 8
  %71 = load ptr, ptr %70, align 8, !tbaa !23
  %72 = icmp ne ptr %71, null
  br i1 %72, label %73, label %96

73:                                               ; preds = %62
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %74

74:                                               ; preds = %92, %73
  %75 = load i32, ptr %5, align 4, !tbaa !13
  %76 = load i32, ptr %9, align 4, !tbaa !13
  %77 = icmp slt i32 %75, %76
  br i1 %77, label %78, label %95

78:                                               ; preds = %74
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.parameter, ptr %79, i32 0, i32 8
  %81 = load ptr, ptr %80, align 8, !tbaa !23
  %82 = load i32, ptr %5, align 4, !tbaa !13
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds double, ptr %81, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !20
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.model, ptr %86, i32 0, i32 3
  %88 = load ptr, ptr %87, align 8, !tbaa !22
  %89 = load i32, ptr %5, align 4, !tbaa !13
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds double, ptr %88, i64 %90
  store double %85, ptr %91, align 8, !tbaa !20
  br label %92

92:                                               ; preds = %78
  %93 = load i32, ptr %5, align 4, !tbaa !13
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %5, align 4, !tbaa !13
  br label %74, !llvm.loop !24

95:                                               ; preds = %74
  br label %112

96:                                               ; preds = %62
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %97

97:                                               ; preds = %108, %96
  %98 = load i32, ptr %5, align 4, !tbaa !13
  %99 = load i32, ptr %9, align 4, !tbaa !13
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %101, label %111

101:                                              ; preds = %97
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.model, ptr %102, i32 0, i32 3
  %104 = load ptr, ptr %103, align 8, !tbaa !22
  %105 = load i32, ptr %5, align 4, !tbaa !13
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %104, i64 %106
  store double 0.000000e+00, ptr %107, align 8, !tbaa !20
  br label %108

108:                                              ; preds = %101
  %109 = load i32, ptr %5, align 4, !tbaa !13
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %5, align 4, !tbaa !13
  br label %97, !llvm.loop !26

111:                                              ; preds = %97
  br label %112

112:                                              ; preds = %111, %95
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.model, ptr %113, i32 0, i32 1
  store i32 2, ptr %114, align 8, !tbaa !27
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.model, ptr %115, i32 0, i32 4
  store ptr null, ptr %116, align 8, !tbaa !28
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.model, ptr %119, i32 0, i32 3
  %121 = load ptr, ptr %120, align 8, !tbaa !22
  call void @_ZL9train_onePK7problemPK9parameterPddd(ptr noundef %117, ptr noundef %118, ptr noundef %121, double noundef 0.000000e+00, double noundef 0.000000e+00)
  br label %663

122:                                              ; preds = %50
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = call i32 @check_oneclass_model(ptr noundef %123)
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %145

126:                                              ; preds = %122
  %127 = load i32, ptr %9, align 4, !tbaa !13
  %128 = sext i32 %127 to i64
  %129 = mul i64 %128, 8
  %130 = call noalias ptr @malloc(i64 noundef %129) #7
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.model, ptr %131, i32 0, i32 3
  store ptr %130, ptr %132, align 8, !tbaa !22
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.model, ptr %133, i32 0, i32 1
  store i32 2, ptr %134, align 8, !tbaa !27
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.model, ptr %135, i32 0, i32 4
  store ptr null, ptr %136, align 8, !tbaa !28
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.model, ptr %139, i32 0, i32 3
  %141 = load ptr, ptr %140, align 8, !tbaa !22
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.model, ptr %142, i32 0, i32 6
  %144 = call noundef i32 @_ZL18solve_oneclass_svmPK7problemPK9parameterPdS5_(ptr noundef %137, ptr noundef %138, ptr noundef %141, ptr noundef %143)
  br label %662

145:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store ptr null, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store ptr null, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %146 = load i32, ptr %7, align 4, !tbaa !13
  %147 = sext i32 %146 to i64
  %148 = mul i64 %147, 4
  %149 = call noalias ptr @malloc(i64 noundef %148) #7
  store ptr %149, ptr %15, align 8, !tbaa !5
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZL13group_classesPK7problemPiPS2_S3_S3_S2_(ptr noundef %150, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %151)
  %152 = load i32, ptr %11, align 4, !tbaa !13
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.model, ptr %153, i32 0, i32 1
  store i32 %152, ptr %154, align 8, !tbaa !27
  %155 = load i32, ptr %11, align 4, !tbaa !13
  %156 = sext i32 %155 to i64
  %157 = mul i64 %156, 4
  %158 = call noalias ptr @malloc(i64 noundef %157) #7
  %159 = load ptr, ptr %10, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.model, ptr %159, i32 0, i32 4
  store ptr %158, ptr %160, align 8, !tbaa !28
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %161

161:                                              ; preds = %177, %145
  %162 = load i32, ptr %5, align 4, !tbaa !13
  %163 = load i32, ptr %11, align 4, !tbaa !13
  %164 = icmp slt i32 %162, %163
  br i1 %164, label %165, label %180

165:                                              ; preds = %161
  %166 = load ptr, ptr %12, align 8, !tbaa !5
  %167 = load i32, ptr %5, align 4, !tbaa !13
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds i32, ptr %166, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !13
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.model, ptr %171, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !28
  %174 = load i32, ptr %5, align 4, !tbaa !13
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds i32, ptr %173, i64 %175
  store i32 %170, ptr %176, align 4, !tbaa !13
  br label %177

177:                                              ; preds = %165
  %178 = load i32, ptr %5, align 4, !tbaa !13
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %5, align 4, !tbaa !13
  br label %161, !llvm.loop !29

180:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %181 = load i32, ptr %11, align 4, !tbaa !13
  %182 = sext i32 %181 to i64
  %183 = mul i64 %182, 8
  %184 = call noalias ptr @malloc(i64 noundef %183) #7
  store ptr %184, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %185

185:                                              ; preds = %197, %180
  %186 = load i32, ptr %5, align 4, !tbaa !13
  %187 = load i32, ptr %11, align 4, !tbaa !13
  %188 = icmp slt i32 %186, %187
  br i1 %188, label %189, label %200

189:                                              ; preds = %185
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.parameter, ptr %190, i32 0, i32 2
  %192 = load double, ptr %191, align 8, !tbaa !30
  %193 = load ptr, ptr %16, align 8, !tbaa !5
  %194 = load i32, ptr %5, align 4, !tbaa !13
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds double, ptr %193, i64 %195
  store double %192, ptr %196, align 8, !tbaa !20
  br label %197

197:                                              ; preds = %189
  %198 = load i32, ptr %5, align 4, !tbaa !13
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %5, align 4, !tbaa !13
  br label %185, !llvm.loop !31

200:                                              ; preds = %185
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %201

201:                                              ; preds = %260, %200
  %202 = load i32, ptr %5, align 4, !tbaa !13
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.parameter, ptr %203, i32 0, i32 3
  %205 = load i32, ptr %204, align 8, !tbaa !32
  %206 = icmp slt i32 %202, %205
  br i1 %206, label %207, label %263

207:                                              ; preds = %201
  store i32 0, ptr %6, align 4, !tbaa !13
  br label %208

208:                                              ; preds = %228, %207
  %209 = load i32, ptr %6, align 4, !tbaa !13
  %210 = load i32, ptr %11, align 4, !tbaa !13
  %211 = icmp slt i32 %209, %210
  br i1 %211, label %212, label %231

212:                                              ; preds = %208
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.parameter, ptr %213, i32 0, i32 4
  %215 = load ptr, ptr %214, align 8, !tbaa !33
  %216 = load i32, ptr %5, align 4, !tbaa !13
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds i32, ptr %215, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !13
  %220 = load ptr, ptr %12, align 8, !tbaa !5
  %221 = load i32, ptr %6, align 4, !tbaa !13
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds i32, ptr %220, i64 %222
  %224 = load i32, ptr %223, align 4, !tbaa !13
  %225 = icmp eq i32 %219, %224
  br i1 %225, label %226, label %227

226:                                              ; preds = %212
  br label %231

227:                                              ; preds = %212
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %6, align 4, !tbaa !13
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %6, align 4, !tbaa !13
  br label %208, !llvm.loop !34

231:                                              ; preds = %226, %208
  %232 = load i32, ptr %6, align 4, !tbaa !13
  %233 = load i32, ptr %11, align 4, !tbaa !13
  %234 = icmp eq i32 %232, %233
  br i1 %234, label %235, label %245

235:                                              ; preds = %231
  %236 = load ptr, ptr @stderr, align 8, !tbaa !5
  %237 = load ptr, ptr %4, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.parameter, ptr %237, i32 0, i32 4
  %239 = load ptr, ptr %238, align 8, !tbaa !33
  %240 = load i32, ptr %5, align 4, !tbaa !13
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds i32, ptr %239, i64 %241
  %243 = load i32, ptr %242, align 4, !tbaa !13
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %236, ptr noundef @.str.6, i32 noundef %243) #6
  br label %259

245:                                              ; preds = %231
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.parameter, ptr %246, i32 0, i32 5
  %248 = load ptr, ptr %247, align 8, !tbaa !35
  %249 = load i32, ptr %5, align 4, !tbaa !13
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds double, ptr %248, i64 %250
  %252 = load double, ptr %251, align 8, !tbaa !20
  %253 = load ptr, ptr %16, align 8, !tbaa !5
  %254 = load i32, ptr %6, align 4, !tbaa !13
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds double, ptr %253, i64 %255
  %257 = load double, ptr %256, align 8, !tbaa !20
  %258 = fmul double %257, %252
  store double %258, ptr %256, align 8, !tbaa !20
  br label %259

259:                                              ; preds = %245, %235
  br label %260

260:                                              ; preds = %259
  %261 = load i32, ptr %5, align 4, !tbaa !13
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %5, align 4, !tbaa !13
  br label %201, !llvm.loop !36

263:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %264 = load i32, ptr %7, align 4, !tbaa !13
  %265 = sext i32 %264 to i64
  %266 = mul i64 %265, 8
  %267 = call noalias ptr @malloc(i64 noundef %266) #7
  store ptr %267, ptr %17, align 8, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %268

268:                                              ; preds = %288, %263
  %269 = load i32, ptr %5, align 4, !tbaa !13
  %270 = load i32, ptr %7, align 4, !tbaa !13
  %271 = icmp slt i32 %269, %270
  br i1 %271, label %272, label %291

272:                                              ; preds = %268
  %273 = load ptr, ptr %3, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.problem, ptr %273, i32 0, i32 3
  %275 = load ptr, ptr %274, align 8, !tbaa !37
  %276 = load ptr, ptr %15, align 8, !tbaa !5
  %277 = load i32, ptr %5, align 4, !tbaa !13
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds i32, ptr %276, i64 %278
  %280 = load i32, ptr %279, align 4, !tbaa !13
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds ptr, ptr %275, i64 %281
  %283 = load ptr, ptr %282, align 8, !tbaa !5
  %284 = load ptr, ptr %17, align 8, !tbaa !5
  %285 = load i32, ptr %5, align 4, !tbaa !13
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds ptr, ptr %284, i64 %286
  store ptr %283, ptr %287, align 8, !tbaa !5
  br label %288

288:                                              ; preds = %272
  %289 = load i32, ptr %5, align 4, !tbaa !13
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %5, align 4, !tbaa !13
  br label %268, !llvm.loop !38

291:                                              ; preds = %268
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  %292 = load i32, ptr %7, align 4, !tbaa !13
  %293 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 0
  store i32 %292, ptr %293, align 8, !tbaa !9
  %294 = load i32, ptr %8, align 4, !tbaa !13
  %295 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 1
  store i32 %294, ptr %295, align 4, !tbaa !14
  %296 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 0
  %297 = load i32, ptr %296, align 8, !tbaa !9
  %298 = sext i32 %297 to i64
  %299 = mul i64 %298, 8
  %300 = call noalias ptr @malloc(i64 noundef %299) #7
  %301 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 3
  store ptr %300, ptr %301, align 8, !tbaa !37
  %302 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 0
  %303 = load i32, ptr %302, align 8, !tbaa !9
  %304 = sext i32 %303 to i64
  %305 = mul i64 %304, 8
  %306 = call noalias ptr @malloc(i64 noundef %305) #7
  %307 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 2
  store ptr %306, ptr %307, align 8, !tbaa !39
  store i32 0, ptr %18, align 4, !tbaa !13
  br label %308

308:                                              ; preds = %324, %291
  %309 = load i32, ptr %18, align 4, !tbaa !13
  %310 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 0
  %311 = load i32, ptr %310, align 8, !tbaa !9
  %312 = icmp slt i32 %309, %311
  br i1 %312, label %313, label %327

313:                                              ; preds = %308
  %314 = load ptr, ptr %17, align 8, !tbaa !5
  %315 = load i32, ptr %18, align 4, !tbaa !13
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds ptr, ptr %314, i64 %316
  %318 = load ptr, ptr %317, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 3
  %320 = load ptr, ptr %319, align 8, !tbaa !37
  %321 = load i32, ptr %18, align 4, !tbaa !13
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds ptr, ptr %320, i64 %322
  store ptr %318, ptr %323, align 8, !tbaa !5
  br label %324

324:                                              ; preds = %313
  %325 = load i32, ptr %18, align 4, !tbaa !13
  %326 = add nsw i32 %325, 1
  store i32 %326, ptr %18, align 4, !tbaa !13
  br label %308, !llvm.loop !40

327:                                              ; preds = %308
  %328 = load ptr, ptr %4, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.parameter, ptr %328, i32 0, i32 0
  %330 = load i32, ptr %329, align 8, !tbaa !41
  %331 = icmp eq i32 %330, 4
  br i1 %331, label %332, label %394

332:                                              ; preds = %327
  %333 = load i32, ptr %8, align 4, !tbaa !13
  %334 = load i32, ptr %11, align 4, !tbaa !13
  %335 = mul nsw i32 %333, %334
  %336 = sext i32 %335 to i64
  %337 = mul i64 %336, 8
  %338 = call noalias ptr @malloc(i64 noundef %337) #7
  %339 = load ptr, ptr %10, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.model, ptr %339, i32 0, i32 3
  store ptr %338, ptr %340, align 8, !tbaa !22
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %341

341:                                              ; preds = %377, %332
  %342 = load i32, ptr %5, align 4, !tbaa !13
  %343 = load i32, ptr %11, align 4, !tbaa !13
  %344 = icmp slt i32 %342, %343
  br i1 %344, label %345, label %380

345:                                              ; preds = %341
  %346 = load ptr, ptr %13, align 8, !tbaa !5
  %347 = load i32, ptr %5, align 4, !tbaa !13
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds i32, ptr %346, i64 %348
  %350 = load i32, ptr %349, align 4, !tbaa !13
  store i32 %350, ptr %6, align 4, !tbaa !13
  br label %351

351:                                              ; preds = %373, %345
  %352 = load i32, ptr %6, align 4, !tbaa !13
  %353 = load ptr, ptr %13, align 8, !tbaa !5
  %354 = load i32, ptr %5, align 4, !tbaa !13
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds i32, ptr %353, i64 %355
  %357 = load i32, ptr %356, align 4, !tbaa !13
  %358 = load ptr, ptr %14, align 8, !tbaa !5
  %359 = load i32, ptr %5, align 4, !tbaa !13
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds i32, ptr %358, i64 %360
  %362 = load i32, ptr %361, align 4, !tbaa !13
  %363 = add nsw i32 %357, %362
  %364 = icmp slt i32 %352, %363
  br i1 %364, label %365, label %376

365:                                              ; preds = %351
  %366 = load i32, ptr %5, align 4, !tbaa !13
  %367 = sitofp i32 %366 to double
  %368 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 2
  %369 = load ptr, ptr %368, align 8, !tbaa !39
  %370 = load i32, ptr %6, align 4, !tbaa !13
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds double, ptr %369, i64 %371
  store double %367, ptr %372, align 8, !tbaa !20
  br label %373

373:                                              ; preds = %365
  %374 = load i32, ptr %6, align 4, !tbaa !13
  %375 = add nsw i32 %374, 1
  store i32 %375, ptr %6, align 4, !tbaa !13
  br label %351, !llvm.loop !42

376:                                              ; preds = %351
  br label %377

377:                                              ; preds = %376
  %378 = load i32, ptr %5, align 4, !tbaa !13
  %379 = add nsw i32 %378, 1
  store i32 %379, ptr %5, align 4, !tbaa !13
  br label %341, !llvm.loop !43

380:                                              ; preds = %341
  call void @llvm.lifetime.start.p0(i64 56, ptr %20) #6
  %381 = load i32, ptr %11, align 4, !tbaa !13
  %382 = load ptr, ptr %16, align 8, !tbaa !5
  %383 = load ptr, ptr %4, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.parameter, ptr %383, i32 0, i32 1
  %385 = load double, ptr %384, align 8, !tbaa !44
  call void @_ZN15Solver_MCSVM_CSC1EPK7problemiPddi(ptr noundef nonnull align 8 dereferenceable(56) %20, ptr noundef %19, i32 noundef %381, ptr noundef %382, double noundef %385, i32 noundef 100000)
  %386 = load ptr, ptr %10, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.model, ptr %386, i32 0, i32 3
  %388 = load ptr, ptr %387, align 8, !tbaa !22
  invoke void @_ZN15Solver_MCSVM_CS5SolveEPd(ptr noundef nonnull align 8 dereferenceable(56) %20, ptr noundef %388)
          to label %389 unwind label %390

389:                                              ; preds = %380
  call void @_ZN15Solver_MCSVM_CSD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %20) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %20) #6
  br label %651

390:                                              ; preds = %380
  %391 = landingpad { ptr, i32 }
          cleanup
  %392 = extractvalue { ptr, i32 } %391, 0
  store ptr %392, ptr %21, align 8
  %393 = extractvalue { ptr, i32 } %391, 1
  store i32 %393, ptr %22, align 4
  call void @_ZN15Solver_MCSVM_CSD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %20) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %665

394:                                              ; preds = %327
  %395 = load i32, ptr %11, align 4, !tbaa !13
  %396 = icmp eq i32 %395, 2
  br i1 %396, label %397, label %494

397:                                              ; preds = %394
  %398 = load i32, ptr %9, align 4, !tbaa !13
  %399 = sext i32 %398 to i64
  %400 = mul i64 %399, 8
  %401 = call noalias ptr @malloc(i64 noundef %400) #7
  %402 = load ptr, ptr %10, align 8, !tbaa !5
  %403 = getelementptr inbounds %struct.model, ptr %402, i32 0, i32 3
  store ptr %401, ptr %403, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %404 = load ptr, ptr %13, align 8, !tbaa !5
  %405 = getelementptr inbounds i32, ptr %404, i64 0
  %406 = load i32, ptr %405, align 4, !tbaa !13
  %407 = load ptr, ptr %14, align 8, !tbaa !5
  %408 = getelementptr inbounds i32, ptr %407, i64 0
  %409 = load i32, ptr %408, align 4, !tbaa !13
  %410 = add nsw i32 %406, %409
  store i32 %410, ptr %23, align 4, !tbaa !13
  store i32 0, ptr %18, align 4, !tbaa !13
  br label %411

411:                                              ; preds = %421, %397
  %412 = load i32, ptr %18, align 4, !tbaa !13
  %413 = load i32, ptr %23, align 4, !tbaa !13
  %414 = icmp slt i32 %412, %413
  br i1 %414, label %415, label %424

415:                                              ; preds = %411
  %416 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 2
  %417 = load ptr, ptr %416, align 8, !tbaa !39
  %418 = load i32, ptr %18, align 4, !tbaa !13
  %419 = sext i32 %418 to i64
  %420 = getelementptr inbounds double, ptr %417, i64 %419
  store double 1.000000e+00, ptr %420, align 8, !tbaa !20
  br label %421

421:                                              ; preds = %415
  %422 = load i32, ptr %18, align 4, !tbaa !13
  %423 = add nsw i32 %422, 1
  store i32 %423, ptr %18, align 4, !tbaa !13
  br label %411, !llvm.loop !45

424:                                              ; preds = %411
  br label %425

425:                                              ; preds = %436, %424
  %426 = load i32, ptr %18, align 4, !tbaa !13
  %427 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 0
  %428 = load i32, ptr %427, align 8, !tbaa !9
  %429 = icmp slt i32 %426, %428
  br i1 %429, label %430, label %439

430:                                              ; preds = %425
  %431 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 2
  %432 = load ptr, ptr %431, align 8, !tbaa !39
  %433 = load i32, ptr %18, align 4, !tbaa !13
  %434 = sext i32 %433 to i64
  %435 = getelementptr inbounds double, ptr %432, i64 %434
  store double -1.000000e+00, ptr %435, align 8, !tbaa !20
  br label %436

436:                                              ; preds = %430
  %437 = load i32, ptr %18, align 4, !tbaa !13
  %438 = add nsw i32 %437, 1
  store i32 %438, ptr %18, align 4, !tbaa !13
  br label %425, !llvm.loop !46

439:                                              ; preds = %425
  %440 = load ptr, ptr %4, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.parameter, ptr %440, i32 0, i32 8
  %442 = load ptr, ptr %441, align 8, !tbaa !23
  %443 = icmp ne ptr %442, null
  br i1 %443, label %444, label %467

444:                                              ; preds = %439
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %445

445:                                              ; preds = %463, %444
  %446 = load i32, ptr %5, align 4, !tbaa !13
  %447 = load i32, ptr %9, align 4, !tbaa !13
  %448 = icmp slt i32 %446, %447
  br i1 %448, label %449, label %466

449:                                              ; preds = %445
  %450 = load ptr, ptr %4, align 8, !tbaa !5
  %451 = getelementptr inbounds %struct.parameter, ptr %450, i32 0, i32 8
  %452 = load ptr, ptr %451, align 8, !tbaa !23
  %453 = load i32, ptr %5, align 4, !tbaa !13
  %454 = sext i32 %453 to i64
  %455 = getelementptr inbounds double, ptr %452, i64 %454
  %456 = load double, ptr %455, align 8, !tbaa !20
  %457 = load ptr, ptr %10, align 8, !tbaa !5
  %458 = getelementptr inbounds %struct.model, ptr %457, i32 0, i32 3
  %459 = load ptr, ptr %458, align 8, !tbaa !22
  %460 = load i32, ptr %5, align 4, !tbaa !13
  %461 = sext i32 %460 to i64
  %462 = getelementptr inbounds double, ptr %459, i64 %461
  store double %456, ptr %462, align 8, !tbaa !20
  br label %463

463:                                              ; preds = %449
  %464 = load i32, ptr %5, align 4, !tbaa !13
  %465 = add nsw i32 %464, 1
  store i32 %465, ptr %5, align 4, !tbaa !13
  br label %445, !llvm.loop !47

466:                                              ; preds = %445
  br label %483

467:                                              ; preds = %439
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %468

468:                                              ; preds = %479, %467
  %469 = load i32, ptr %5, align 4, !tbaa !13
  %470 = load i32, ptr %9, align 4, !tbaa !13
  %471 = icmp slt i32 %469, %470
  br i1 %471, label %472, label %482

472:                                              ; preds = %468
  %473 = load ptr, ptr %10, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.model, ptr %473, i32 0, i32 3
  %475 = load ptr, ptr %474, align 8, !tbaa !22
  %476 = load i32, ptr %5, align 4, !tbaa !13
  %477 = sext i32 %476 to i64
  %478 = getelementptr inbounds double, ptr %475, i64 %477
  store double 0.000000e+00, ptr %478, align 8, !tbaa !20
  br label %479

479:                                              ; preds = %472
  %480 = load i32, ptr %5, align 4, !tbaa !13
  %481 = add nsw i32 %480, 1
  store i32 %481, ptr %5, align 4, !tbaa !13
  br label %468, !llvm.loop !48

482:                                              ; preds = %468
  br label %483

483:                                              ; preds = %482, %466
  %484 = load ptr, ptr %4, align 8, !tbaa !5
  %485 = load ptr, ptr %10, align 8, !tbaa !5
  %486 = getelementptr inbounds %struct.model, ptr %485, i32 0, i32 3
  %487 = load ptr, ptr %486, align 8, !tbaa !22
  %488 = load ptr, ptr %16, align 8, !tbaa !5
  %489 = getelementptr inbounds double, ptr %488, i64 0
  %490 = load double, ptr %489, align 8, !tbaa !20
  %491 = load ptr, ptr %16, align 8, !tbaa !5
  %492 = getelementptr inbounds double, ptr %491, i64 1
  %493 = load double, ptr %492, align 8, !tbaa !20
  call void @_ZL9train_onePK7problemPK9parameterPddd(ptr noundef %19, ptr noundef %484, ptr noundef %487, double noundef %490, double noundef %493)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %650

494:                                              ; preds = %394
  %495 = load i32, ptr %9, align 4, !tbaa !13
  %496 = load i32, ptr %11, align 4, !tbaa !13
  %497 = mul nsw i32 %495, %496
  %498 = sext i32 %497 to i64
  %499 = mul i64 %498, 8
  %500 = call noalias ptr @malloc(i64 noundef %499) #7
  %501 = load ptr, ptr %10, align 8, !tbaa !5
  %502 = getelementptr inbounds %struct.model, ptr %501, i32 0, i32 3
  store ptr %500, ptr %502, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %503 = load i32, ptr %9, align 4, !tbaa !13
  %504 = sext i32 %503 to i64
  %505 = mul i64 %504, 8
  %506 = call noalias ptr @malloc(i64 noundef %505) #7
  store ptr %506, ptr %24, align 8, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %507

507:                                              ; preds = %645, %494
  %508 = load i32, ptr %5, align 4, !tbaa !13
  %509 = load i32, ptr %11, align 4, !tbaa !13
  %510 = icmp slt i32 %508, %509
  br i1 %510, label %511, label %648

511:                                              ; preds = %507
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %512 = load ptr, ptr %13, align 8, !tbaa !5
  %513 = load i32, ptr %5, align 4, !tbaa !13
  %514 = sext i32 %513 to i64
  %515 = getelementptr inbounds i32, ptr %512, i64 %514
  %516 = load i32, ptr %515, align 4, !tbaa !13
  store i32 %516, ptr %25, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %517 = load i32, ptr %25, align 4, !tbaa !13
  %518 = load ptr, ptr %14, align 8, !tbaa !5
  %519 = load i32, ptr %5, align 4, !tbaa !13
  %520 = sext i32 %519 to i64
  %521 = getelementptr inbounds i32, ptr %518, i64 %520
  %522 = load i32, ptr %521, align 4, !tbaa !13
  %523 = add nsw i32 %517, %522
  store i32 %523, ptr %26, align 4, !tbaa !13
  store i32 0, ptr %18, align 4, !tbaa !13
  br label %524

524:                                              ; preds = %534, %511
  %525 = load i32, ptr %18, align 4, !tbaa !13
  %526 = load i32, ptr %25, align 4, !tbaa !13
  %527 = icmp slt i32 %525, %526
  br i1 %527, label %528, label %537

528:                                              ; preds = %524
  %529 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 2
  %530 = load ptr, ptr %529, align 8, !tbaa !39
  %531 = load i32, ptr %18, align 4, !tbaa !13
  %532 = sext i32 %531 to i64
  %533 = getelementptr inbounds double, ptr %530, i64 %532
  store double -1.000000e+00, ptr %533, align 8, !tbaa !20
  br label %534

534:                                              ; preds = %528
  %535 = load i32, ptr %18, align 4, !tbaa !13
  %536 = add nsw i32 %535, 1
  store i32 %536, ptr %18, align 4, !tbaa !13
  br label %524, !llvm.loop !49

537:                                              ; preds = %524
  br label %538

538:                                              ; preds = %548, %537
  %539 = load i32, ptr %18, align 4, !tbaa !13
  %540 = load i32, ptr %26, align 4, !tbaa !13
  %541 = icmp slt i32 %539, %540
  br i1 %541, label %542, label %551

542:                                              ; preds = %538
  %543 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 2
  %544 = load ptr, ptr %543, align 8, !tbaa !39
  %545 = load i32, ptr %18, align 4, !tbaa !13
  %546 = sext i32 %545 to i64
  %547 = getelementptr inbounds double, ptr %544, i64 %546
  store double 1.000000e+00, ptr %547, align 8, !tbaa !20
  br label %548

548:                                              ; preds = %542
  %549 = load i32, ptr %18, align 4, !tbaa !13
  %550 = add nsw i32 %549, 1
  store i32 %550, ptr %18, align 4, !tbaa !13
  br label %538, !llvm.loop !50

551:                                              ; preds = %538
  br label %552

552:                                              ; preds = %563, %551
  %553 = load i32, ptr %18, align 4, !tbaa !13
  %554 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 0
  %555 = load i32, ptr %554, align 8, !tbaa !9
  %556 = icmp slt i32 %553, %555
  br i1 %556, label %557, label %566

557:                                              ; preds = %552
  %558 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 2
  %559 = load ptr, ptr %558, align 8, !tbaa !39
  %560 = load i32, ptr %18, align 4, !tbaa !13
  %561 = sext i32 %560 to i64
  %562 = getelementptr inbounds double, ptr %559, i64 %561
  store double -1.000000e+00, ptr %562, align 8, !tbaa !20
  br label %563

563:                                              ; preds = %557
  %564 = load i32, ptr %18, align 4, !tbaa !13
  %565 = add nsw i32 %564, 1
  store i32 %565, ptr %18, align 4, !tbaa !13
  br label %552, !llvm.loop !51

566:                                              ; preds = %552
  %567 = load ptr, ptr %4, align 8, !tbaa !5
  %568 = getelementptr inbounds %struct.parameter, ptr %567, i32 0, i32 8
  %569 = load ptr, ptr %568, align 8, !tbaa !23
  %570 = icmp ne ptr %569, null
  br i1 %570, label %571, label %596

571:                                              ; preds = %566
  store i32 0, ptr %6, align 4, !tbaa !13
  br label %572

572:                                              ; preds = %592, %571
  %573 = load i32, ptr %6, align 4, !tbaa !13
  %574 = load i32, ptr %9, align 4, !tbaa !13
  %575 = icmp slt i32 %573, %574
  br i1 %575, label %576, label %595

576:                                              ; preds = %572
  %577 = load ptr, ptr %4, align 8, !tbaa !5
  %578 = getelementptr inbounds %struct.parameter, ptr %577, i32 0, i32 8
  %579 = load ptr, ptr %578, align 8, !tbaa !23
  %580 = load i32, ptr %6, align 4, !tbaa !13
  %581 = load i32, ptr %11, align 4, !tbaa !13
  %582 = mul nsw i32 %580, %581
  %583 = load i32, ptr %5, align 4, !tbaa !13
  %584 = add nsw i32 %582, %583
  %585 = sext i32 %584 to i64
  %586 = getelementptr inbounds double, ptr %579, i64 %585
  %587 = load double, ptr %586, align 8, !tbaa !20
  %588 = load ptr, ptr %24, align 8, !tbaa !5
  %589 = load i32, ptr %6, align 4, !tbaa !13
  %590 = sext i32 %589 to i64
  %591 = getelementptr inbounds double, ptr %588, i64 %590
  store double %587, ptr %591, align 8, !tbaa !20
  br label %592

592:                                              ; preds = %576
  %593 = load i32, ptr %6, align 4, !tbaa !13
  %594 = add nsw i32 %593, 1
  store i32 %594, ptr %6, align 4, !tbaa !13
  br label %572, !llvm.loop !52

595:                                              ; preds = %572
  br label %610

596:                                              ; preds = %566
  store i32 0, ptr %6, align 4, !tbaa !13
  br label %597

597:                                              ; preds = %606, %596
  %598 = load i32, ptr %6, align 4, !tbaa !13
  %599 = load i32, ptr %9, align 4, !tbaa !13
  %600 = icmp slt i32 %598, %599
  br i1 %600, label %601, label %609

601:                                              ; preds = %597
  %602 = load ptr, ptr %24, align 8, !tbaa !5
  %603 = load i32, ptr %6, align 4, !tbaa !13
  %604 = sext i32 %603 to i64
  %605 = getelementptr inbounds double, ptr %602, i64 %604
  store double 0.000000e+00, ptr %605, align 8, !tbaa !20
  br label %606

606:                                              ; preds = %601
  %607 = load i32, ptr %6, align 4, !tbaa !13
  %608 = add nsw i32 %607, 1
  store i32 %608, ptr %6, align 4, !tbaa !13
  br label %597, !llvm.loop !53

609:                                              ; preds = %597
  br label %610

610:                                              ; preds = %609, %595
  %611 = load ptr, ptr %4, align 8, !tbaa !5
  %612 = load ptr, ptr %24, align 8, !tbaa !5
  %613 = load ptr, ptr %16, align 8, !tbaa !5
  %614 = load i32, ptr %5, align 4, !tbaa !13
  %615 = sext i32 %614 to i64
  %616 = getelementptr inbounds double, ptr %613, i64 %615
  %617 = load double, ptr %616, align 8, !tbaa !20
  %618 = load ptr, ptr %4, align 8, !tbaa !5
  %619 = getelementptr inbounds %struct.parameter, ptr %618, i32 0, i32 2
  %620 = load double, ptr %619, align 8, !tbaa !30
  call void @_ZL9train_onePK7problemPK9parameterPddd(ptr noundef %19, ptr noundef %611, ptr noundef %612, double noundef %617, double noundef %620)
  store i32 0, ptr %6, align 4, !tbaa !13
  br label %621

621:                                              ; preds = %641, %610
  %622 = load i32, ptr %6, align 4, !tbaa !13
  %623 = load i32, ptr %9, align 4, !tbaa !13
  %624 = icmp slt i32 %622, %623
  br i1 %624, label %625, label %644

625:                                              ; preds = %621
  %626 = load ptr, ptr %24, align 8, !tbaa !5
  %627 = load i32, ptr %6, align 4, !tbaa !13
  %628 = sext i32 %627 to i64
  %629 = getelementptr inbounds double, ptr %626, i64 %628
  %630 = load double, ptr %629, align 8, !tbaa !20
  %631 = load ptr, ptr %10, align 8, !tbaa !5
  %632 = getelementptr inbounds %struct.model, ptr %631, i32 0, i32 3
  %633 = load ptr, ptr %632, align 8, !tbaa !22
  %634 = load i32, ptr %6, align 4, !tbaa !13
  %635 = load i32, ptr %11, align 4, !tbaa !13
  %636 = mul nsw i32 %634, %635
  %637 = load i32, ptr %5, align 4, !tbaa !13
  %638 = add nsw i32 %636, %637
  %639 = sext i32 %638 to i64
  %640 = getelementptr inbounds double, ptr %633, i64 %639
  store double %630, ptr %640, align 8, !tbaa !20
  br label %641

641:                                              ; preds = %625
  %642 = load i32, ptr %6, align 4, !tbaa !13
  %643 = add nsw i32 %642, 1
  store i32 %643, ptr %6, align 4, !tbaa !13
  br label %621, !llvm.loop !54

644:                                              ; preds = %621
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %645

645:                                              ; preds = %644
  %646 = load i32, ptr %5, align 4, !tbaa !13
  %647 = add nsw i32 %646, 1
  store i32 %647, ptr %5, align 4, !tbaa !13
  br label %507, !llvm.loop !55

648:                                              ; preds = %507
  %649 = load ptr, ptr %24, align 8, !tbaa !5
  call void @free(ptr noundef %649) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %650

650:                                              ; preds = %648, %483
  br label %651

651:                                              ; preds = %650, %389
  %652 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free(ptr noundef %652) #6
  %653 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %653) #6
  %654 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %654) #6
  %655 = load ptr, ptr %14, align 8, !tbaa !5
  call void @free(ptr noundef %655) #6
  %656 = load ptr, ptr %15, align 8, !tbaa !5
  call void @free(ptr noundef %656) #6
  %657 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 3
  %658 = load ptr, ptr %657, align 8, !tbaa !37
  call void @free(ptr noundef %658) #6
  %659 = getelementptr inbounds %struct.problem, ptr %19, i32 0, i32 2
  %660 = load ptr, ptr %659, align 8, !tbaa !39
  call void @free(ptr noundef %660) #6
  %661 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free(ptr noundef %661) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %662

662:                                              ; preds = %651, %126
  br label %663

663:                                              ; preds = %662, %112
  %664 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret ptr %664

665:                                              ; preds = %390
  %666 = load ptr, ptr %21, align 8
  %667 = load i32, ptr %22, align 4
  %668 = insertvalue { ptr, i32 } poison, ptr %666, 0
  %669 = insertvalue { ptr, i32 } %668, i32 %667, 1
  resume { ptr, i32 } %669
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @check_regression_model(ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL9train_onePK7problemPK9parameterPddd(ptr noundef, ptr noundef, ptr noundef, double noundef, double noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @check_oneclass_model(ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL18solve_oneclass_svmPK7problemPK9parameterPdS5_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL13group_classesPK7problemPiPS2_S3_S3_S2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

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

declare void @_ZN15Solver_MCSVM_CSC1EPK7problemiPddi(ptr, ptr, i32, ptr, double, i32)

declare void @_ZN15Solver_MCSVM_CSD1Ev(ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress 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 #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++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS7problem", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !12, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 4}
!15 = !{!10, !12, i64 24}
!16 = !{!17, !11, i64 84}
!17 = !{!"_ZTS5model", !18, i64 0, !11, i64 80, !11, i64 84, !6, i64 88, !6, i64 96, !12, i64 104, !12, i64 112}
!18 = !{!"_ZTS9parameter", !11, i64 0, !12, i64 8, !12, i64 16, !11, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !12, i64 56, !6, i64 64, !11, i64 72}
!19 = !{i64 0, i64 4, !13, i64 8, i64 8, !20, i64 16, i64 8, !20, i64 24, i64 4, !13, i64 32, i64 8, !5, i64 40, i64 8, !5, i64 48, i64 8, !20, i64 56, i64 8, !20, i64 64, i64 8, !5, i64 72, i64 4, !13}
!20 = !{!12, !12, i64 0}
!21 = !{!17, !12, i64 104}
!22 = !{!17, !6, i64 88}
!23 = !{!18, !6, i64 64}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = !{!17, !11, i64 80}
!28 = !{!17, !6, i64 96}
!29 = distinct !{!29, !25}
!30 = !{!18, !12, i64 16}
!31 = distinct !{!31, !25}
!32 = !{!18, !11, i64 24}
!33 = !{!18, !6, i64 32}
!34 = distinct !{!34, !25}
!35 = !{!18, !6, i64 40}
!36 = distinct !{!36, !25}
!37 = !{!10, !6, i64 16}
!38 = distinct !{!38, !25}
!39 = !{!10, !6, i64 8}
!40 = distinct !{!40, !25}
!41 = !{!18, !11, i64 0}
!42 = distinct !{!42, !25}
!43 = distinct !{!43, !25}
!44 = !{!18, !12, i64 8}
!45 = distinct !{!45, !25}
!46 = distinct !{!46, !25}
!47 = distinct !{!47, !25}
!48 = distinct !{!48, !25}
!49 = distinct !{!49, !25}
!50 = distinct !{!50, !25}
!51 = distinct !{!51, !25}
!52 = distinct !{!52, !25}
!53 = distinct !{!53, !25}
!54 = distinct !{!54, !25}
!55 = distinct !{!55, !25}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.problem = type { i32, i32, ptr, ptr, double }
%class.Solver_MCSVM_CS = type { ptr, ptr, ptr, i32, i32, i32, i32, double, ptr }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [58 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15Solver_MCSVM_CS5SolveEPd(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @train(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.problem, align 8
  %8 = alloca %class.Solver_MCSVM_CS, align 8
  %9 = load i32, ptr %0, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 4
  %11 = load i32, ptr %10, align 4, !tbaa !12
  %12 = tail call noalias dereferenceable_or_null(120) ptr @malloc(i64 noundef 120) #9
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = load double, ptr %13, align 8, !tbaa !13
  %15 = fcmp oge double %14, 0.000000e+00
  %16 = sext i1 %15 to i32
  %.sink = add nsw i32 %11, %16
  %17 = getelementptr inbounds i8, ptr %12, i64 84
  store i32 %.sink, ptr %17, align 4
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %12, ptr noundef nonnull align 8 dereferenceable(80) %1, i64 80, i1 false), !tbaa.struct !14
  %18 = getelementptr inbounds i8, ptr %12, i64 104
  store double %14, ptr %18, align 8, !tbaa !18
  %19 = tail call i32 @check_regression_model(ptr noundef nonnull %12)
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %57, label %20

20:                                               ; preds = %2
  %21 = sext i32 %11 to i64
  %22 = shl nsw i64 %21, 3
  %23 = tail call noalias ptr @malloc(i64 noundef %22) #9
  %24 = ptrtoint ptr %23 to i64
  %25 = getelementptr inbounds i8, ptr %12, i64 88
  store ptr %23, ptr %25, align 8, !tbaa !21
  %26 = getelementptr inbounds i8, ptr %1, i64 64
  %27 = load ptr, ptr %26, align 8, !tbaa !22
  %28 = ptrtoint ptr %27 to i64
  %.not198 = icmp eq ptr %27, null
  %29 = icmp sgt i32 %11, 0
  br i1 %.not198, label %.preheader210, label %.preheader212

.preheader212:                                    ; preds = %20
  br i1 %29, label %.lr.ph.preheader, label %.loopexit211

.lr.ph.preheader:                                 ; preds = %.preheader212
  %wide.trip.count = zext nneg i32 %11 to i64
  %min.iters.check = icmp ult i32 %11, 6
  %30 = sub i64 %24, %28
  %diff.check = icmp ult i64 %30, 32
  %or.cond = or i1 %min.iters.check, %diff.check
  br i1 %or.cond, label %.lr.ph.preheader540, label %vector.ph

.lr.ph.preheader540:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader540, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader540 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader540 ]
  %31 = getelementptr inbounds double, ptr %27, i64 %indvars.iv.prol
  %32 = load double, ptr %31, align 8, !tbaa !16
  %33 = getelementptr inbounds double, ptr %23, i64 %indvars.iv.prol
  store double %32, ptr %33, align 8, !tbaa !16
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !23

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader540
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader540 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %34 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %35 = icmp ugt i64 %34, -4
  br i1 %35, label %.loopexit211, label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %36 = getelementptr inbounds double, ptr %27, i64 %index
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  %wide.load = load <2 x double>, ptr %36, align 8, !tbaa !16
  %wide.load382 = load <2 x double>, ptr %37, align 8, !tbaa !16
  %38 = getelementptr inbounds double, ptr %23, i64 %index
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  store <2 x double> %wide.load, ptr %38, align 8, !tbaa !16
  store <2 x double> %wide.load382, ptr %39, align 8, !tbaa !16
  %index.next = add nuw i64 %index, 4
  %40 = icmp eq i64 %index.next, %n.vec
  br i1 %40, label %middle.block, label %vector.body, !llvm.loop !25

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.loopexit211, label %.lr.ph.preheader540

.preheader210:                                    ; preds = %20
  br i1 %29, label %.lr.ph217.preheader, label %.loopexit211

.lr.ph217.preheader:                              ; preds = %.preheader210
  %41 = zext nneg i32 %11 to i64
  %42 = shl nuw nsw i64 %41, 3
  tail call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 %42, i1 false), !tbaa !16
  br label %.loopexit211

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %43 = getelementptr inbounds double, ptr %27, i64 %indvars.iv
  %44 = load double, ptr %43, align 8, !tbaa !16
  %45 = getelementptr inbounds double, ptr %23, i64 %indvars.iv
  store double %44, ptr %45, align 8, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %46 = getelementptr inbounds double, ptr %27, i64 %indvars.iv.next
  %47 = load double, ptr %46, align 8, !tbaa !16
  %48 = getelementptr inbounds double, ptr %23, i64 %indvars.iv.next
  store double %47, ptr %48, align 8, !tbaa !16
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %49 = getelementptr inbounds double, ptr %27, i64 %indvars.iv.next.1
  %50 = load double, ptr %49, align 8, !tbaa !16
  %51 = getelementptr inbounds double, ptr %23, i64 %indvars.iv.next.1
  store double %50, ptr %51, align 8, !tbaa !16
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %52 = getelementptr inbounds double, ptr %27, i64 %indvars.iv.next.2
  %53 = load double, ptr %52, align 8, !tbaa !16
  %54 = getelementptr inbounds double, ptr %23, i64 %indvars.iv.next.2
  store double %53, ptr %54, align 8, !tbaa !16
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %.loopexit211, label %.lr.ph, !llvm.loop !29

.loopexit211:                                     ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %.lr.ph217.preheader, %.preheader212, %.preheader210
  %55 = getelementptr inbounds i8, ptr %12, i64 80
  store i32 2, ptr %55, align 8, !tbaa !30
  %56 = getelementptr inbounds i8, ptr %12, i64 96
  store ptr null, ptr %56, align 8, !tbaa !31
  tail call void @_ZL9train_onePK7problemPK9parameterPddd(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %23, double noundef 0.000000e+00, double noundef 0.000000e+00)
  br label %425

57:                                               ; preds = %2
  %58 = tail call i32 @check_oneclass_model(ptr noundef nonnull %12)
  %.not195 = icmp eq i32 %58, 0
  br i1 %.not195, label %68, label %59

59:                                               ; preds = %57
  %60 = sext i32 %11 to i64
  %61 = shl nsw i64 %60, 3
  %62 = tail call noalias ptr @malloc(i64 noundef %61) #9
  %63 = getelementptr inbounds i8, ptr %12, i64 88
  store ptr %62, ptr %63, align 8, !tbaa !21
  %64 = getelementptr inbounds i8, ptr %12, i64 80
  store i32 2, ptr %64, align 8, !tbaa !30
  %65 = getelementptr inbounds i8, ptr %12, i64 96
  store ptr null, ptr %65, align 8, !tbaa !31
  %66 = getelementptr inbounds i8, ptr %12, i64 112
  %67 = tail call noundef i32 @_ZL18solve_oneclass_svmPK7problemPK9parameterPdS5_(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %62, ptr noundef nonnull %66)
  br label %425

68:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #10
  store ptr null, ptr %4, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #10
  store ptr null, ptr %5, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #10
  store ptr null, ptr %6, align 8, !tbaa !17
  %69 = sext i32 %9 to i64
  %70 = shl nsw i64 %69, 2
  %71 = tail call noalias ptr @malloc(i64 noundef %70) #9
  call void @_ZL13group_classesPK7problemPiPS2_S3_S3_S2_(ptr noundef nonnull %0, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef %71)
  %72 = load i32, ptr %3, align 4, !tbaa !15
  %73 = getelementptr inbounds i8, ptr %12, i64 80
  store i32 %72, ptr %73, align 8, !tbaa !30
  %74 = sext i32 %72 to i64
  %75 = shl nsw i64 %74, 2
  %76 = call noalias ptr @malloc(i64 noundef %75) #9
  %77 = getelementptr inbounds i8, ptr %12, i64 96
  store ptr %76, ptr %77, align 8, !tbaa !31
  %78 = icmp sgt i32 %72, 0
  br i1 %78, label %.lr.ph219, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %68
  %79 = shl nsw i64 %74, 3
  %80 = call noalias ptr @malloc(i64 noundef %79) #9
  br label %.preheader209

.lr.ph219:                                        ; preds = %68
  %81 = ptrtoint ptr %76 to i64
  %82 = load ptr, ptr %4, align 8, !tbaa !17
  %wide.trip.count295 = zext nneg i32 %72 to i64
  %min.iters.check387 = icmp ult i32 %72, 8
  %83 = ptrtoint ptr %82 to i64
  %84 = sub i64 %81, %83
  %diff.check384 = icmp ult i64 %84, 32
  %or.cond531 = select i1 %min.iters.check387, i1 true, i1 %diff.check384
  br i1 %or.cond531, label %scalar.ph386.preheader, label %vector.ph388

vector.ph388:                                     ; preds = %.lr.ph219
  %n.vec390 = and i64 %wide.trip.count295, 2147483640
  br label %vector.body392

vector.body392:                                   ; preds = %vector.body392, %vector.ph388
  %index393 = phi i64 [ 0, %vector.ph388 ], [ %index.next396, %vector.body392 ]
  %85 = getelementptr inbounds i32, ptr %82, i64 %index393
  %86 = getelementptr inbounds i8, ptr %85, i64 16
  %wide.load394 = load <4 x i32>, ptr %85, align 4, !tbaa !15
  %wide.load395 = load <4 x i32>, ptr %86, align 4, !tbaa !15
  %87 = getelementptr inbounds i32, ptr %76, i64 %index393
  %88 = getelementptr inbounds i8, ptr %87, i64 16
  store <4 x i32> %wide.load394, ptr %87, align 4, !tbaa !15
  store <4 x i32> %wide.load395, ptr %88, align 4, !tbaa !15
  %index.next396 = add nuw i64 %index393, 8
  %89 = icmp eq i64 %index.next396, %n.vec390
  br i1 %89, label %middle.block385, label %vector.body392, !llvm.loop !32

middle.block385:                                  ; preds = %vector.body392
  %cmp.n397 = icmp eq i64 %n.vec390, %wide.trip.count295
  br i1 %cmp.n397, label %._crit_edge, label %scalar.ph386.preheader

scalar.ph386.preheader:                           ; preds = %middle.block385, %.lr.ph219
  %indvars.iv292.ph = phi i64 [ 0, %.lr.ph219 ], [ %n.vec390, %middle.block385 ]
  %xtraiter541 = and i64 %wide.trip.count295, 3
  %lcmp.mod542.not = icmp eq i64 %xtraiter541, 0
  br i1 %lcmp.mod542.not, label %scalar.ph386.prol.loopexit, label %scalar.ph386.prol

scalar.ph386.prol:                                ; preds = %scalar.ph386.preheader, %scalar.ph386.prol
  %indvars.iv292.prol = phi i64 [ %indvars.iv.next293.prol, %scalar.ph386.prol ], [ %indvars.iv292.ph, %scalar.ph386.preheader ]
  %prol.iter543 = phi i64 [ %prol.iter543.next, %scalar.ph386.prol ], [ 0, %scalar.ph386.preheader ]
  %90 = getelementptr inbounds i32, ptr %82, i64 %indvars.iv292.prol
  %91 = load i32, ptr %90, align 4, !tbaa !15
  %92 = getelementptr inbounds i32, ptr %76, i64 %indvars.iv292.prol
  store i32 %91, ptr %92, align 4, !tbaa !15
  %indvars.iv.next293.prol = add nuw nsw i64 %indvars.iv292.prol, 1
  %prol.iter543.next = add i64 %prol.iter543, 1
  %prol.iter543.cmp.not = icmp eq i64 %prol.iter543.next, %xtraiter541
  br i1 %prol.iter543.cmp.not, label %scalar.ph386.prol.loopexit, label %scalar.ph386.prol, !llvm.loop !33

scalar.ph386.prol.loopexit:                       ; preds = %scalar.ph386.prol, %scalar.ph386.preheader
  %indvars.iv292.unr = phi i64 [ %indvars.iv292.ph, %scalar.ph386.preheader ], [ %indvars.iv.next293.prol, %scalar.ph386.prol ]
  %93 = sub nsw i64 %indvars.iv292.ph, %wide.trip.count295
  %94 = icmp ugt i64 %93, -4
  br i1 %94, label %._crit_edge, label %scalar.ph386

scalar.ph386:                                     ; preds = %scalar.ph386.prol.loopexit, %scalar.ph386
  %indvars.iv292 = phi i64 [ %indvars.iv.next293.3, %scalar.ph386 ], [ %indvars.iv292.unr, %scalar.ph386.prol.loopexit ]
  %95 = getelementptr inbounds i32, ptr %82, i64 %indvars.iv292
  %96 = load i32, ptr %95, align 4, !tbaa !15
  %97 = getelementptr inbounds i32, ptr %76, i64 %indvars.iv292
  store i32 %96, ptr %97, align 4, !tbaa !15
  %indvars.iv.next293 = add nuw nsw i64 %indvars.iv292, 1
  %98 = getelementptr inbounds i32, ptr %82, i64 %indvars.iv.next293
  %99 = load i32, ptr %98, align 4, !tbaa !15
  %100 = getelementptr inbounds i32, ptr %76, i64 %indvars.iv.next293
  store i32 %99, ptr %100, align 4, !tbaa !15
  %indvars.iv.next293.1 = add nuw nsw i64 %indvars.iv292, 2
  %101 = getelementptr inbounds i32, ptr %82, i64 %indvars.iv.next293.1
  %102 = load i32, ptr %101, align 4, !tbaa !15
  %103 = getelementptr inbounds i32, ptr %76, i64 %indvars.iv.next293.1
  store i32 %102, ptr %103, align 4, !tbaa !15
  %indvars.iv.next293.2 = add nuw nsw i64 %indvars.iv292, 3
  %104 = getelementptr inbounds i32, ptr %82, i64 %indvars.iv.next293.2
  %105 = load i32, ptr %104, align 4, !tbaa !15
  %106 = getelementptr inbounds i32, ptr %76, i64 %indvars.iv.next293.2
  store i32 %105, ptr %106, align 4, !tbaa !15
  %indvars.iv.next293.3 = add nuw nsw i64 %indvars.iv292, 4
  %exitcond296.not.3 = icmp eq i64 %indvars.iv.next293.3, %wide.trip.count295
  br i1 %exitcond296.not.3, label %._crit_edge, label %scalar.ph386, !llvm.loop !34

._crit_edge:                                      ; preds = %scalar.ph386.prol.loopexit, %scalar.ph386, %middle.block385
  %107 = shl nuw nsw i64 %74, 3
  %108 = call noalias ptr @malloc(i64 noundef %107) #9
  br i1 %78, label %.lr.ph222, label %.preheader209

.lr.ph222:                                        ; preds = %._crit_edge
  %109 = getelementptr inbounds i8, ptr %1, i64 16
  %110 = load double, ptr %109, align 8, !tbaa !35
  %wide.trip.count300 = zext nneg i32 %72 to i64
  %min.iters.check400 = icmp ult i32 %72, 4
  br i1 %min.iters.check400, label %scalar.ph399.preheader, label %vector.ph401

scalar.ph399.preheader:                           ; preds = %middle.block398, %.lr.ph222
  %indvars.iv297.ph = phi i64 [ 0, %.lr.ph222 ], [ %n.vec403, %middle.block398 ]
  br label %scalar.ph399

vector.ph401:                                     ; preds = %.lr.ph222
  %n.vec403 = and i64 %wide.trip.count295, 2147483644
  %broadcast.splatinsert = insertelement <2 x double> poison, double %110, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body405

vector.body405:                                   ; preds = %vector.body405, %vector.ph401
  %index406 = phi i64 [ 0, %vector.ph401 ], [ %index.next407, %vector.body405 ]
  %111 = getelementptr inbounds double, ptr %108, i64 %index406
  %112 = getelementptr inbounds i8, ptr %111, i64 16
  store <2 x double> %broadcast.splat, ptr %111, align 8, !tbaa !16
  store <2 x double> %broadcast.splat, ptr %112, align 8, !tbaa !16
  %index.next407 = add nuw i64 %index406, 4
  %113 = icmp eq i64 %index.next407, %n.vec403
  br i1 %113, label %middle.block398, label %vector.body405, !llvm.loop !36

middle.block398:                                  ; preds = %vector.body405
  %cmp.n408 = icmp eq i64 %n.vec403, %wide.trip.count295
  br i1 %cmp.n408, label %.preheader209, label %scalar.ph399.preheader

.preheader209:                                    ; preds = %scalar.ph399, %middle.block398, %._crit_edge.thread, %._crit_edge
  %114 = phi ptr [ %80, %._crit_edge.thread ], [ %108, %._crit_edge ], [ %108, %middle.block398 ], [ %108, %scalar.ph399 ]
  %115 = getelementptr inbounds i8, ptr %1, i64 24
  %116 = load i32, ptr %115, align 8, !tbaa !37
  %117 = icmp sgt i32 %116, 0
  br i1 %117, label %.preheader208.lr.ph, label %._crit_edge232

.preheader208.lr.ph:                              ; preds = %.preheader209
  %118 = getelementptr inbounds i8, ptr %1, i64 32
  %119 = getelementptr inbounds i8, ptr %1, i64 40
  br label %.preheader208

scalar.ph399:                                     ; preds = %scalar.ph399.preheader, %scalar.ph399
  %indvars.iv297 = phi i64 [ %indvars.iv.next298, %scalar.ph399 ], [ %indvars.iv297.ph, %scalar.ph399.preheader ]
  %120 = getelementptr inbounds double, ptr %108, i64 %indvars.iv297
  store double %110, ptr %120, align 8, !tbaa !16
  %indvars.iv.next298 = add nuw nsw i64 %indvars.iv297, 1
  %exitcond301.not = icmp eq i64 %indvars.iv.next298, %wide.trip.count300
  br i1 %exitcond301.not, label %.preheader209, label %scalar.ph399, !llvm.loop !38

.preheader208:                                    ; preds = %.preheader208.lr.ph, %148
  %121 = phi i32 [ %116, %.preheader208.lr.ph ], [ %149, %148 ]
  %indvars.iv307 = phi i64 [ 0, %.preheader208.lr.ph ], [ %indvars.iv.next308, %148 ]
  %122 = load i32, ptr %3, align 4, !tbaa !15
  %123 = icmp sgt i32 %122, 0
  br i1 %123, label %.lr.ph224, label %._crit_edge225

.lr.ph224:                                        ; preds = %.preheader208
  %124 = load ptr, ptr %118, align 8, !tbaa !39
  %125 = getelementptr inbounds i32, ptr %124, i64 %indvars.iv307
  %126 = load i32, ptr %125, align 4, !tbaa !15
  %127 = load ptr, ptr %4, align 8, !tbaa !17
  %wide.trip.count305 = zext nneg i32 %122 to i64
  br label %128

128:                                              ; preds = %.lr.ph224, %132
  %indvars.iv302 = phi i64 [ 0, %.lr.ph224 ], [ %indvars.iv.next303, %132 ]
  %129 = getelementptr inbounds i32, ptr %127, i64 %indvars.iv302
  %130 = load i32, ptr %129, align 4, !tbaa !15
  %131 = icmp eq i32 %126, %130
  br i1 %131, label %._crit_edge225.loopexit, label %132

132:                                              ; preds = %128
  %indvars.iv.next303 = add nuw nsw i64 %indvars.iv302, 1
  %exitcond306.not = icmp eq i64 %indvars.iv.next303, %wide.trip.count305
  br i1 %exitcond306.not, label %._crit_edge225.thread, label %128, !llvm.loop !40

._crit_edge225.loopexit:                          ; preds = %128
  %133 = trunc nuw nsw i64 %indvars.iv302 to i32
  br label %._crit_edge225

._crit_edge225:                                   ; preds = %._crit_edge225.loopexit, %.preheader208
  %.0181.lcssa = phi i32 [ 0, %.preheader208 ], [ %133, %._crit_edge225.loopexit ]
  %134 = icmp eq i32 %.0181.lcssa, %122
  br i1 %134, label %._crit_edge225.thread, label %140

._crit_edge225.thread:                            ; preds = %132, %._crit_edge225
  %135 = load ptr, ptr @stderr, align 8, !tbaa !17
  %136 = load ptr, ptr %118, align 8, !tbaa !39
  %137 = getelementptr inbounds i32, ptr %136, i64 %indvars.iv307
  %138 = load i32, ptr %137, align 4, !tbaa !15
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef nonnull @.str.6, i32 noundef %138) #11
  %.pre = load i32, ptr %115, align 8, !tbaa !37
  br label %148

140:                                              ; preds = %._crit_edge225
  %141 = load ptr, ptr %119, align 8, !tbaa !41
  %142 = getelementptr inbounds double, ptr %141, i64 %indvars.iv307
  %143 = load double, ptr %142, align 8, !tbaa !16
  %144 = zext nneg i32 %.0181.lcssa to i64
  %145 = getelementptr inbounds double, ptr %114, i64 %144
  %146 = load double, ptr %145, align 8, !tbaa !16
  %147 = fmul double %143, %146
  store double %147, ptr %145, align 8, !tbaa !16
  br label %148

148:                                              ; preds = %._crit_edge225.thread, %140
  %149 = phi i32 [ %.pre, %._crit_edge225.thread ], [ %121, %140 ]
  %indvars.iv.next308 = add nuw nsw i64 %indvars.iv307, 1
  %150 = sext i32 %149 to i64
  %151 = icmp slt i64 %indvars.iv.next308, %150
  br i1 %151, label %.preheader208, label %._crit_edge232, !llvm.loop !42

._crit_edge232:                                   ; preds = %148, %.preheader209
  %152 = shl nsw i64 %69, 3
  %153 = call noalias ptr @malloc(i64 noundef %152) #9
  %154 = icmp sgt i32 %9, 0
  br i1 %154, label %.lr.ph235, label %._crit_edge236

.lr.ph235:                                        ; preds = %._crit_edge232
  %155 = getelementptr inbounds i8, ptr %0, i64 16
  %156 = load ptr, ptr %155, align 8, !tbaa !43
  %wide.trip.count313 = zext nneg i32 %9 to i64
  %xtraiter544 = and i64 %wide.trip.count313, 3
  %157 = icmp ult i32 %9, 4
  br i1 %157, label %._crit_edge236.loopexit.unr-lcssa, label %.lr.ph235.new

.lr.ph235.new:                                    ; preds = %.lr.ph235
  %unroll_iter = and i64 %wide.trip.count313, 2147483644
  br label %158

158:                                              ; preds = %158, %.lr.ph235.new
  %indvars.iv310 = phi i64 [ 0, %.lr.ph235.new ], [ %indvars.iv.next311.3, %158 ]
  %niter = phi i64 [ 0, %.lr.ph235.new ], [ %niter.next.3, %158 ]
  %159 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv310
  %160 = load i32, ptr %159, align 4, !tbaa !15
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds ptr, ptr %156, i64 %161
  %163 = load ptr, ptr %162, align 8, !tbaa !17
  %164 = getelementptr inbounds ptr, ptr %153, i64 %indvars.iv310
  store ptr %163, ptr %164, align 8, !tbaa !17
  %indvars.iv.next311 = or disjoint i64 %indvars.iv310, 1
  %165 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv.next311
  %166 = load i32, ptr %165, align 4, !tbaa !15
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds ptr, ptr %156, i64 %167
  %169 = load ptr, ptr %168, align 8, !tbaa !17
  %170 = getelementptr inbounds ptr, ptr %153, i64 %indvars.iv.next311
  store ptr %169, ptr %170, align 8, !tbaa !17
  %indvars.iv.next311.1 = or disjoint i64 %indvars.iv310, 2
  %171 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv.next311.1
  %172 = load i32, ptr %171, align 4, !tbaa !15
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds ptr, ptr %156, i64 %173
  %175 = load ptr, ptr %174, align 8, !tbaa !17
  %176 = getelementptr inbounds ptr, ptr %153, i64 %indvars.iv.next311.1
  store ptr %175, ptr %176, align 8, !tbaa !17
  %indvars.iv.next311.2 = or disjoint i64 %indvars.iv310, 3
  %177 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv.next311.2
  %178 = load i32, ptr %177, align 4, !tbaa !15
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds ptr, ptr %156, i64 %179
  %181 = load ptr, ptr %180, align 8, !tbaa !17
  %182 = getelementptr inbounds ptr, ptr %153, i64 %indvars.iv.next311.2
  store ptr %181, ptr %182, align 8, !tbaa !17
  %indvars.iv.next311.3 = add nuw nsw i64 %indvars.iv310, 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_edge236.loopexit.unr-lcssa, label %158, !llvm.loop !44

._crit_edge236.loopexit.unr-lcssa:                ; preds = %158, %.lr.ph235
  %indvars.iv310.unr = phi i64 [ 0, %.lr.ph235 ], [ %indvars.iv.next311.3, %158 ]
  %lcmp.mod545.not = icmp eq i64 %xtraiter544, 0
  br i1 %lcmp.mod545.not, label %._crit_edge236, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge236.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv310.epil = phi i64 [ %indvars.iv.next311.epil, %.epil.preheader ], [ %indvars.iv310.unr, %._crit_edge236.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge236.loopexit.unr-lcssa ]
  %183 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv310.epil
  %184 = load i32, ptr %183, align 4, !tbaa !15
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds ptr, ptr %156, i64 %185
  %187 = load ptr, ptr %186, align 8, !tbaa !17
  %188 = getelementptr inbounds ptr, ptr %153, i64 %indvars.iv310.epil
  store ptr %187, ptr %188, align 8, !tbaa !17
  %indvars.iv.next311.epil = add nuw nsw i64 %indvars.iv310.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter544
  br i1 %epil.iter.cmp.not, label %._crit_edge236, label %.epil.preheader, !llvm.loop !45

._crit_edge236:                                   ; preds = %._crit_edge236.loopexit.unr-lcssa, %.epil.preheader, %._crit_edge232
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #10
  store i32 %9, ptr %7, align 8, !tbaa !5
  %189 = getelementptr inbounds i8, ptr %7, i64 4
  store i32 %11, ptr %189, align 4, !tbaa !12
  %190 = call noalias ptr @malloc(i64 noundef %152) #9
  %191 = getelementptr inbounds i8, ptr %7, i64 16
  store ptr %190, ptr %191, align 8, !tbaa !43
  %192 = call noalias ptr @malloc(i64 noundef %152) #9
  %193 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %192, ptr %193, align 8, !tbaa !46
  br i1 %154, label %.lr.ph239.preheader, label %._crit_edge240

.lr.ph239.preheader:                              ; preds = %._crit_edge236
  %wide.trip.count318 = zext nneg i32 %9 to i64
  %xtraiter546 = and i64 %wide.trip.count318, 3
  %194 = icmp ult i32 %9, 4
  br i1 %194, label %._crit_edge240.loopexit.unr-lcssa, label %.lr.ph239.preheader.new

.lr.ph239.preheader.new:                          ; preds = %.lr.ph239.preheader
  %unroll_iter549 = and i64 %wide.trip.count318, 2147483644
  br label %.lr.ph239

.lr.ph239:                                        ; preds = %.lr.ph239, %.lr.ph239.preheader.new
  %indvars.iv315 = phi i64 [ 0, %.lr.ph239.preheader.new ], [ %indvars.iv.next316.3, %.lr.ph239 ]
  %niter550 = phi i64 [ 0, %.lr.ph239.preheader.new ], [ %niter550.next.3, %.lr.ph239 ]
  %195 = getelementptr inbounds ptr, ptr %153, i64 %indvars.iv315
  %196 = load ptr, ptr %195, align 8, !tbaa !17
  %197 = load ptr, ptr %191, align 8, !tbaa !43
  %198 = getelementptr inbounds ptr, ptr %197, i64 %indvars.iv315
  store ptr %196, ptr %198, align 8, !tbaa !17
  %indvars.iv.next316 = or disjoint i64 %indvars.iv315, 1
  %199 = getelementptr inbounds ptr, ptr %153, i64 %indvars.iv.next316
  %200 = load ptr, ptr %199, align 8, !tbaa !17
  %201 = load ptr, ptr %191, align 8, !tbaa !43
  %202 = getelementptr inbounds ptr, ptr %201, i64 %indvars.iv.next316
  store ptr %200, ptr %202, align 8, !tbaa !17
  %indvars.iv.next316.1 = or disjoint i64 %indvars.iv315, 2
  %203 = getelementptr inbounds ptr, ptr %153, i64 %indvars.iv.next316.1
  %204 = load ptr, ptr %203, align 8, !tbaa !17
  %205 = load ptr, ptr %191, align 8, !tbaa !43
  %206 = getelementptr inbounds ptr, ptr %205, i64 %indvars.iv.next316.1
  store ptr %204, ptr %206, align 8, !tbaa !17
  %indvars.iv.next316.2 = or disjoint i64 %indvars.iv315, 3
  %207 = getelementptr inbounds ptr, ptr %153, i64 %indvars.iv.next316.2
  %208 = load ptr, ptr %207, align 8, !tbaa !17
  %209 = load ptr, ptr %191, align 8, !tbaa !43
  %210 = getelementptr inbounds ptr, ptr %209, i64 %indvars.iv.next316.2
  store ptr %208, ptr %210, align 8, !tbaa !17
  %indvars.iv.next316.3 = add nuw nsw i64 %indvars.iv315, 4
  %niter550.next.3 = add i64 %niter550, 4
  %niter550.ncmp.3 = icmp eq i64 %niter550.next.3, %unroll_iter549
  br i1 %niter550.ncmp.3, label %._crit_edge240.loopexit.unr-lcssa, label %.lr.ph239, !llvm.loop !47

._crit_edge240.loopexit.unr-lcssa:                ; preds = %.lr.ph239, %.lr.ph239.preheader
  %indvars.iv315.unr = phi i64 [ 0, %.lr.ph239.preheader ], [ %indvars.iv.next316.3, %.lr.ph239 ]
  %lcmp.mod548.not = icmp eq i64 %xtraiter546, 0
  br i1 %lcmp.mod548.not, label %._crit_edge240, label %.lr.ph239.epil

.lr.ph239.epil:                                   ; preds = %._crit_edge240.loopexit.unr-lcssa, %.lr.ph239.epil
  %indvars.iv315.epil = phi i64 [ %indvars.iv.next316.epil, %.lr.ph239.epil ], [ %indvars.iv315.unr, %._crit_edge240.loopexit.unr-lcssa ]
  %epil.iter547 = phi i64 [ %epil.iter547.next, %.lr.ph239.epil ], [ 0, %._crit_edge240.loopexit.unr-lcssa ]
  %211 = getelementptr inbounds ptr, ptr %153, i64 %indvars.iv315.epil
  %212 = load ptr, ptr %211, align 8, !tbaa !17
  %213 = load ptr, ptr %191, align 8, !tbaa !43
  %214 = getelementptr inbounds ptr, ptr %213, i64 %indvars.iv315.epil
  store ptr %212, ptr %214, align 8, !tbaa !17
  %indvars.iv.next316.epil = add nuw nsw i64 %indvars.iv315.epil, 1
  %epil.iter547.next = add i64 %epil.iter547, 1
  %epil.iter547.cmp.not = icmp eq i64 %epil.iter547.next, %xtraiter546
  br i1 %epil.iter547.cmp.not, label %._crit_edge240, label %.lr.ph239.epil, !llvm.loop !48

._crit_edge240:                                   ; preds = %._crit_edge240.loopexit.unr-lcssa, %.lr.ph239.epil, %._crit_edge236
  %215 = load i32, ptr %1, align 8, !tbaa !49
  %216 = icmp eq i32 %215, 4
  %217 = load i32, ptr %3, align 4, !tbaa !15
  br i1 %216, label %218, label %251

218:                                              ; preds = %._crit_edge240
  %219 = mul nsw i32 %217, %11
  %220 = sext i32 %219 to i64
  %221 = shl nsw i64 %220, 3
  %222 = call noalias ptr @malloc(i64 noundef %221) #9
  %223 = getelementptr inbounds i8, ptr %12, i64 88
  store ptr %222, ptr %223, align 8, !tbaa !21
  %224 = icmp sgt i32 %217, 0
  br i1 %224, label %.lr.ph281, label %._crit_edge282

.lr.ph281:                                        ; preds = %218
  %225 = load ptr, ptr %5, align 8, !tbaa !17
  %226 = load ptr, ptr %6, align 8, !tbaa !17
  %227 = load ptr, ptr %193, align 8
  %wide.trip.count373 = zext nneg i32 %217 to i64
  br label %228

228:                                              ; preds = %.lr.ph281, %._crit_edge278
  %indvars.iv370 = phi i64 [ 0, %.lr.ph281 ], [ %indvars.iv.next371, %._crit_edge278 ]
  %229 = getelementptr inbounds i32, ptr %226, i64 %indvars.iv370
  %230 = load i32, ptr %229, align 4, !tbaa !15
  %231 = icmp sgt i32 %230, 0
  br i1 %231, label %.lr.ph277, label %._crit_edge278

.lr.ph277:                                        ; preds = %228
  %232 = getelementptr inbounds i32, ptr %225, i64 %indvars.iv370
  %233 = load i32, ptr %232, align 4, !tbaa !15
  %234 = add nsw i32 %230, %233
  %235 = trunc nuw nsw i64 %indvars.iv370 to i32
  %236 = uitofp nneg i32 %235 to double
  %237 = sext i32 %233 to i64
  %238 = sext i32 %234 to i64
  %239 = add nsw i64 %237, 1
  %smax = call i64 @llvm.smax.i64(i64 %238, i64 %239)
  %240 = sub i64 %smax, %237
  %min.iters.check517 = icmp ult i64 %240, 4
  br i1 %min.iters.check517, label %scalar.ph516.preheader, label %vector.ph518

vector.ph518:                                     ; preds = %.lr.ph277
  %n.vec520 = and i64 %240, -4
  %ind.end521 = add i64 %n.vec520, %237
  %broadcast.splatinsert526 = insertelement <2 x double> poison, double %236, i64 0
  %broadcast.splat527 = shufflevector <2 x double> %broadcast.splatinsert526, <2 x double> poison, <2 x i32> zeroinitializer
  %invariant.gep567 = getelementptr double, ptr %227, i64 %237
  br label %vector.body523

vector.body523:                                   ; preds = %vector.body523, %vector.ph518
  %index524 = phi i64 [ 0, %vector.ph518 ], [ %index.next528, %vector.body523 ]
  %gep568 = getelementptr double, ptr %invariant.gep567, i64 %index524
  %241 = getelementptr inbounds i8, ptr %gep568, i64 16
  store <2 x double> %broadcast.splat527, ptr %gep568, align 8, !tbaa !16
  store <2 x double> %broadcast.splat527, ptr %241, align 8, !tbaa !16
  %index.next528 = add nuw i64 %index524, 4
  %242 = icmp eq i64 %index.next528, %n.vec520
  br i1 %242, label %middle.block515, label %vector.body523, !llvm.loop !50

middle.block515:                                  ; preds = %vector.body523
  %cmp.n529 = icmp eq i64 %240, %n.vec520
  br i1 %cmp.n529, label %._crit_edge278, label %scalar.ph516.preheader

scalar.ph516.preheader:                           ; preds = %middle.block515, %.lr.ph277
  %indvars.iv367.ph = phi i64 [ %237, %.lr.ph277 ], [ %ind.end521, %middle.block515 ]
  br label %scalar.ph516

scalar.ph516:                                     ; preds = %scalar.ph516.preheader, %scalar.ph516
  %indvars.iv367 = phi i64 [ %indvars.iv.next368, %scalar.ph516 ], [ %indvars.iv367.ph, %scalar.ph516.preheader ]
  %243 = getelementptr inbounds double, ptr %227, i64 %indvars.iv367
  store double %236, ptr %243, align 8, !tbaa !16
  %indvars.iv.next368 = add nsw i64 %indvars.iv367, 1
  %244 = icmp slt i64 %indvars.iv.next368, %238
  br i1 %244, label %scalar.ph516, label %._crit_edge278, !llvm.loop !51

._crit_edge278:                                   ; preds = %scalar.ph516, %middle.block515, %228
  %indvars.iv.next371 = add nuw nsw i64 %indvars.iv370, 1
  %exitcond374.not = icmp eq i64 %indvars.iv.next371, %wide.trip.count373
  br i1 %exitcond374.not, label %._crit_edge282, label %228, !llvm.loop !52

._crit_edge282:                                   ; preds = %._crit_edge278, %218
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #10
  %245 = getelementptr inbounds i8, ptr %1, i64 8
  %246 = load double, ptr %245, align 8, !tbaa !53
  call void @_ZN15Solver_MCSVM_CSC1EPK7problemiPddi(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull %7, i32 noundef %217, ptr noundef %114, double noundef %246, i32 noundef 100000)
  %247 = load ptr, ptr %223, align 8, !tbaa !21
  invoke void @_ZN15Solver_MCSVM_CS5SolveEPd(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef %247)
          to label %248 unwind label %249

248:                                              ; preds = %._crit_edge282
  call void @_ZN15Solver_MCSVM_CSD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #10
  br label %419

249:                                              ; preds = %._crit_edge282
  %250 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN15Solver_MCSVM_CSD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #10
  resume { ptr, i32 } %250

251:                                              ; preds = %._crit_edge240
  %252 = icmp eq i32 %217, 2
  %253 = getelementptr inbounds i8, ptr %12, i64 88
  br i1 %252, label %254, label %309

254:                                              ; preds = %251
  %255 = sext i32 %11 to i64
  %256 = shl nsw i64 %255, 3
  %257 = call noalias ptr @malloc(i64 noundef %256) #9
  %258 = ptrtoint ptr %257 to i64
  store ptr %257, ptr %253, align 8, !tbaa !21
  %259 = load ptr, ptr %5, align 8, !tbaa !17
  %260 = load i32, ptr %259, align 4, !tbaa !15
  %261 = load ptr, ptr %6, align 8, !tbaa !17
  %262 = load i32, ptr %261, align 4, !tbaa !15
  %263 = add nsw i32 %262, %260
  %264 = icmp sgt i32 %263, 0
  br i1 %264, label %.lr.ph266, label %.preheader201

.lr.ph266:                                        ; preds = %254
  %265 = load ptr, ptr %193, align 8, !tbaa !46
  %wide.trip.count352 = zext nneg i32 %263 to i64
  %min.iters.check478 = icmp ult i32 %263, 4
  br i1 %min.iters.check478, label %scalar.ph477.preheader, label %vector.ph479

scalar.ph477.preheader:                           ; preds = %middle.block476, %.lr.ph266
  %indvars.iv349.ph = phi i64 [ 0, %.lr.ph266 ], [ %n.vec481, %middle.block476 ]
  br label %scalar.ph477

vector.ph479:                                     ; preds = %.lr.ph266
  %n.vec481 = and i64 %wide.trip.count352, 2147483644
  br label %vector.body483

vector.body483:                                   ; preds = %vector.body483, %vector.ph479
  %index484 = phi i64 [ 0, %vector.ph479 ], [ %index.next485, %vector.body483 ]
  %266 = getelementptr inbounds double, ptr %265, i64 %index484
  %267 = getelementptr inbounds i8, ptr %266, i64 16
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %266, align 8, !tbaa !16
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %267, align 8, !tbaa !16
  %index.next485 = add nuw i64 %index484, 4
  %268 = icmp eq i64 %index.next485, %n.vec481
  br i1 %268, label %middle.block476, label %vector.body483, !llvm.loop !54

middle.block476:                                  ; preds = %vector.body483
  %cmp.n486 = icmp eq i64 %n.vec481, %wide.trip.count352
  br i1 %cmp.n486, label %.preheader201, label %scalar.ph477.preheader

.preheader201:                                    ; preds = %scalar.ph477, %middle.block476, %254
  %.1187.lcssa = phi i32 [ 0, %254 ], [ %263, %middle.block476 ], [ %263, %scalar.ph477 ]
  %269 = icmp slt i32 %.1187.lcssa, %9
  br i1 %269, label %.lr.ph269, label %._crit_edge270

.lr.ph269:                                        ; preds = %.preheader201
  %270 = load ptr, ptr %193, align 8, !tbaa !46
  %271 = zext nneg i32 %.1187.lcssa to i64
  %wide.trip.count357 = zext i32 %9 to i64
  %272 = sub nsw i64 %wide.trip.count357, %271
  %min.iters.check489 = icmp ult i64 %272, 4
  br i1 %min.iters.check489, label %scalar.ph488.preheader, label %vector.ph490

scalar.ph488.preheader:                           ; preds = %middle.block487, %.lr.ph269
  %indvars.iv354.ph = phi i64 [ %271, %.lr.ph269 ], [ %ind.end493, %middle.block487 ]
  br label %scalar.ph488

vector.ph490:                                     ; preds = %.lr.ph269
  %n.vec492 = and i64 %272, -4
  %ind.end493 = add nsw i64 %n.vec492, %271
  %invariant.gep565 = getelementptr double, ptr %270, i64 %271
  br label %vector.body495

vector.body495:                                   ; preds = %vector.body495, %vector.ph490
  %index496 = phi i64 [ 0, %vector.ph490 ], [ %index.next498, %vector.body495 ]
  %gep566 = getelementptr double, ptr %invariant.gep565, i64 %index496
  %273 = getelementptr inbounds i8, ptr %gep566, i64 16
  store <2 x double> <double -1.000000e+00, double -1.000000e+00>, ptr %gep566, align 8, !tbaa !16
  store <2 x double> <double -1.000000e+00, double -1.000000e+00>, ptr %273, align 8, !tbaa !16
  %index.next498 = add nuw i64 %index496, 4
  %274 = icmp eq i64 %index.next498, %n.vec492
  br i1 %274, label %middle.block487, label %vector.body495, !llvm.loop !55

middle.block487:                                  ; preds = %vector.body495
  %cmp.n499 = icmp eq i64 %272, %n.vec492
  br i1 %cmp.n499, label %._crit_edge270, label %scalar.ph488.preheader

scalar.ph477:                                     ; preds = %scalar.ph477.preheader, %scalar.ph477
  %indvars.iv349 = phi i64 [ %indvars.iv.next350, %scalar.ph477 ], [ %indvars.iv349.ph, %scalar.ph477.preheader ]
  %275 = getelementptr inbounds double, ptr %265, i64 %indvars.iv349
  store double 1.000000e+00, ptr %275, align 8, !tbaa !16
  %indvars.iv.next350 = add nuw nsw i64 %indvars.iv349, 1
  %exitcond353.not = icmp eq i64 %indvars.iv.next350, %wide.trip.count352
  br i1 %exitcond353.not, label %.preheader201, label %scalar.ph477, !llvm.loop !56

scalar.ph488:                                     ; preds = %scalar.ph488.preheader, %scalar.ph488
  %indvars.iv354 = phi i64 [ %indvars.iv.next355, %scalar.ph488 ], [ %indvars.iv354.ph, %scalar.ph488.preheader ]
  %276 = getelementptr inbounds double, ptr %270, i64 %indvars.iv354
  store double -1.000000e+00, ptr %276, align 8, !tbaa !16
  %indvars.iv.next355 = add nuw nsw i64 %indvars.iv354, 1
  %exitcond358.not = icmp eq i64 %indvars.iv.next355, %wide.trip.count357
  br i1 %exitcond358.not, label %._crit_edge270, label %scalar.ph488, !llvm.loop !57

._crit_edge270:                                   ; preds = %scalar.ph488, %middle.block487, %.preheader201
  %277 = getelementptr inbounds i8, ptr %1, i64 64
  %278 = load ptr, ptr %277, align 8, !tbaa !22
  %279 = ptrtoint ptr %278 to i64
  %.not197 = icmp eq ptr %278, null
  %280 = icmp sgt i32 %11, 0
  br i1 %.not197, label %.preheader, label %.preheader199

.preheader199:                                    ; preds = %._crit_edge270
  br i1 %280, label %.lr.ph272.preheader, label %.loopexit

.lr.ph272.preheader:                              ; preds = %.preheader199
  %wide.trip.count362 = zext nneg i32 %11 to i64
  %min.iters.check504 = icmp ult i32 %11, 6
  %281 = sub i64 %258, %279
  %diff.check501 = icmp ult i64 %281, 32
  %or.cond532 = or i1 %min.iters.check504, %diff.check501
  br i1 %or.cond532, label %.lr.ph272.preheader537, label %vector.ph505

.lr.ph272.preheader537:                           ; preds = %middle.block502, %.lr.ph272.preheader
  %indvars.iv359.ph = phi i64 [ 0, %.lr.ph272.preheader ], [ %n.vec507, %middle.block502 ]
  %xtraiter557 = and i64 %wide.trip.count362, 3
  %lcmp.mod558.not = icmp eq i64 %xtraiter557, 0
  br i1 %lcmp.mod558.not, label %.lr.ph272.prol.loopexit, label %.lr.ph272.prol

.lr.ph272.prol:                                   ; preds = %.lr.ph272.preheader537, %.lr.ph272.prol
  %indvars.iv359.prol = phi i64 [ %indvars.iv.next360.prol, %.lr.ph272.prol ], [ %indvars.iv359.ph, %.lr.ph272.preheader537 ]
  %prol.iter559 = phi i64 [ %prol.iter559.next, %.lr.ph272.prol ], [ 0, %.lr.ph272.preheader537 ]
  %282 = getelementptr inbounds double, ptr %278, i64 %indvars.iv359.prol
  %283 = load double, ptr %282, align 8, !tbaa !16
  %284 = getelementptr inbounds double, ptr %257, i64 %indvars.iv359.prol
  store double %283, ptr %284, align 8, !tbaa !16
  %indvars.iv.next360.prol = add nuw nsw i64 %indvars.iv359.prol, 1
  %prol.iter559.next = add i64 %prol.iter559, 1
  %prol.iter559.cmp.not = icmp eq i64 %prol.iter559.next, %xtraiter557
  br i1 %prol.iter559.cmp.not, label %.lr.ph272.prol.loopexit, label %.lr.ph272.prol, !llvm.loop !58

.lr.ph272.prol.loopexit:                          ; preds = %.lr.ph272.prol, %.lr.ph272.preheader537
  %indvars.iv359.unr = phi i64 [ %indvars.iv359.ph, %.lr.ph272.preheader537 ], [ %indvars.iv.next360.prol, %.lr.ph272.prol ]
  %285 = sub nsw i64 %indvars.iv359.ph, %wide.trip.count362
  %286 = icmp ugt i64 %285, -4
  br i1 %286, label %.loopexit, label %.lr.ph272

vector.ph505:                                     ; preds = %.lr.ph272.preheader
  %n.vec507 = and i64 %wide.trip.count362, 2147483644
  br label %vector.body509

vector.body509:                                   ; preds = %vector.body509, %vector.ph505
  %index510 = phi i64 [ 0, %vector.ph505 ], [ %index.next513, %vector.body509 ]
  %287 = getelementptr inbounds double, ptr %278, i64 %index510
  %288 = getelementptr inbounds i8, ptr %287, i64 16
  %wide.load511 = load <2 x double>, ptr %287, align 8, !tbaa !16
  %wide.load512 = load <2 x double>, ptr %288, align 8, !tbaa !16
  %289 = getelementptr inbounds double, ptr %257, i64 %index510
  %290 = getelementptr inbounds i8, ptr %289, i64 16
  store <2 x double> %wide.load511, ptr %289, align 8, !tbaa !16
  store <2 x double> %wide.load512, ptr %290, align 8, !tbaa !16
  %index.next513 = add nuw i64 %index510, 4
  %291 = icmp eq i64 %index.next513, %n.vec507
  br i1 %291, label %middle.block502, label %vector.body509, !llvm.loop !59

middle.block502:                                  ; preds = %vector.body509
  %cmp.n514 = icmp eq i64 %n.vec507, %wide.trip.count362
  br i1 %cmp.n514, label %.loopexit, label %.lr.ph272.preheader537

.preheader:                                       ; preds = %._crit_edge270
  br i1 %280, label %.lr.ph274.preheader, label %.loopexit

.lr.ph274.preheader:                              ; preds = %.preheader
  %292 = zext nneg i32 %11 to i64
  %293 = shl nuw nsw i64 %292, 3
  call void @llvm.memset.p0.i64(ptr align 8 %257, i8 0, i64 %293, i1 false), !tbaa !16
  br label %.loopexit

.lr.ph272:                                        ; preds = %.lr.ph272.prol.loopexit, %.lr.ph272
  %indvars.iv359 = phi i64 [ %indvars.iv.next360.3, %.lr.ph272 ], [ %indvars.iv359.unr, %.lr.ph272.prol.loopexit ]
  %294 = getelementptr inbounds double, ptr %278, i64 %indvars.iv359
  %295 = load double, ptr %294, align 8, !tbaa !16
  %296 = getelementptr inbounds double, ptr %257, i64 %indvars.iv359
  store double %295, ptr %296, align 8, !tbaa !16
  %indvars.iv.next360 = add nuw nsw i64 %indvars.iv359, 1
  %297 = getelementptr inbounds double, ptr %278, i64 %indvars.iv.next360
  %298 = load double, ptr %297, align 8, !tbaa !16
  %299 = getelementptr inbounds double, ptr %257, i64 %indvars.iv.next360
  store double %298, ptr %299, align 8, !tbaa !16
  %indvars.iv.next360.1 = add nuw nsw i64 %indvars.iv359, 2
  %300 = getelementptr inbounds double, ptr %278, i64 %indvars.iv.next360.1
  %301 = load double, ptr %300, align 8, !tbaa !16
  %302 = getelementptr inbounds double, ptr %257, i64 %indvars.iv.next360.1
  store double %301, ptr %302, align 8, !tbaa !16
  %indvars.iv.next360.2 = add nuw nsw i64 %indvars.iv359, 3
  %303 = getelementptr inbounds double, ptr %278, i64 %indvars.iv.next360.2
  %304 = load double, ptr %303, align 8, !tbaa !16
  %305 = getelementptr inbounds double, ptr %257, i64 %indvars.iv.next360.2
  store double %304, ptr %305, align 8, !tbaa !16
  %indvars.iv.next360.3 = add nuw nsw i64 %indvars.iv359, 4
  %exitcond363.not.3 = icmp eq i64 %indvars.iv.next360.3, %wide.trip.count362
  br i1 %exitcond363.not.3, label %.loopexit, label %.lr.ph272, !llvm.loop !60

.loopexit:                                        ; preds = %.lr.ph272.prol.loopexit, %.lr.ph272, %middle.block502, %.lr.ph274.preheader, %.preheader199, %.preheader
  %306 = load double, ptr %114, align 8, !tbaa !16
  %307 = getelementptr inbounds i8, ptr %114, i64 8
  %308 = load double, ptr %307, align 8, !tbaa !16
  call void @_ZL9train_onePK7problemPK9parameterPddd(ptr noundef nonnull %7, ptr noundef nonnull %1, ptr noundef %257, double noundef %306, double noundef %308)
  br label %419

309:                                              ; preds = %251
  %310 = mul nsw i32 %217, %11
  %311 = sext i32 %310 to i64
  %312 = shl nsw i64 %311, 3
  %313 = call noalias ptr @malloc(i64 noundef %312) #9
  store ptr %313, ptr %253, align 8, !tbaa !21
  %314 = sext i32 %11 to i64
  %315 = shl nsw i64 %314, 3
  %316 = call noalias ptr @malloc(i64 noundef %315) #9
  %317 = ptrtoint ptr %316 to i64
  %318 = icmp sgt i32 %217, 0
  br i1 %318, label %.lr.ph262, label %._crit_edge263

.lr.ph262:                                        ; preds = %309
  %319 = getelementptr inbounds i8, ptr %1, i64 64
  %320 = icmp sgt i32 %11, 0
  %321 = getelementptr inbounds i8, ptr %1, i64 16
  %322 = zext i32 %11 to i64
  %323 = shl nuw nsw i64 %322, 3
  %min.iters.check430 = icmp ugt i32 %11, 5
  %n.vec433 = and i64 %322, 2147483644
  %cmp.n440 = icmp eq i64 %n.vec433, %322
  %xtraiter551 = and i64 %322, 3
  %lcmp.mod552.not = icmp eq i64 %xtraiter551, 0
  %min.iters.check413 = icmp ult i32 %11, 6
  %n.vec416 = and i64 %322, 2147483644
  %cmp.n423 = icmp eq i64 %n.vec416, %322
  %xtraiter554 = and i64 %322, 3
  %lcmp.mod555.not = icmp eq i64 %xtraiter554, 0
  br label %324

324:                                              ; preds = %.lr.ph262, %._crit_edge258
  %indvars.iv346 = phi i64 [ 0, %.lr.ph262 ], [ %indvars.iv.next347, %._crit_edge258 ]
  %325 = phi i32 [ %217, %.lr.ph262 ], [ %.pre375, %._crit_edge258 ]
  %326 = shl i64 %indvars.iv346, 3
  %327 = shl nuw nsw i64 %indvars.iv346, 3
  %328 = sub i64 %327, %317
  %329 = load ptr, ptr %5, align 8, !tbaa !17
  %330 = getelementptr inbounds i32, ptr %329, i64 %indvars.iv346
  %331 = load i32, ptr %330, align 4, !tbaa !15
  %332 = load ptr, ptr %6, align 8, !tbaa !17
  %333 = getelementptr inbounds i32, ptr %332, i64 %indvars.iv346
  %334 = load i32, ptr %333, align 4, !tbaa !15
  %335 = add i32 %334, %331
  %336 = icmp sgt i32 %331, 0
  br i1 %336, label %.lr.ph243, label %.preheader207

.lr.ph243:                                        ; preds = %324
  %337 = load ptr, ptr %193, align 8, !tbaa !46
  %wide.trip.count323 = zext nneg i32 %331 to i64
  %min.iters.check467 = icmp ult i32 %331, 4
  br i1 %min.iters.check467, label %scalar.ph466.preheader, label %vector.ph468

scalar.ph466.preheader:                           ; preds = %middle.block465, %.lr.ph243
  %indvars.iv320.ph = phi i64 [ 0, %.lr.ph243 ], [ %n.vec470, %middle.block465 ]
  br label %scalar.ph466

vector.ph468:                                     ; preds = %.lr.ph243
  %n.vec470 = and i64 %wide.trip.count323, 2147483644
  br label %vector.body472

vector.body472:                                   ; preds = %vector.body472, %vector.ph468
  %index473 = phi i64 [ 0, %vector.ph468 ], [ %index.next474, %vector.body472 ]
  %338 = getelementptr inbounds double, ptr %337, i64 %index473
  %339 = getelementptr inbounds i8, ptr %338, i64 16
  store <2 x double> <double -1.000000e+00, double -1.000000e+00>, ptr %338, align 8, !tbaa !16
  store <2 x double> <double -1.000000e+00, double -1.000000e+00>, ptr %339, align 8, !tbaa !16
  %index.next474 = add nuw i64 %index473, 4
  %340 = icmp eq i64 %index.next474, %n.vec470
  br i1 %340, label %middle.block465, label %vector.body472, !llvm.loop !61

middle.block465:                                  ; preds = %vector.body472
  %cmp.n475 = icmp eq i64 %n.vec470, %wide.trip.count323
  br i1 %cmp.n475, label %.preheader207, label %scalar.ph466.preheader

.preheader207:                                    ; preds = %scalar.ph466, %middle.block465, %324
  %.3189.lcssa = phi i32 [ 0, %324 ], [ %331, %middle.block465 ], [ %331, %scalar.ph466 ]
  %341 = icmp slt i32 %.3189.lcssa, %335
  br i1 %341, label %.lr.ph246, label %.preheader206

.lr.ph246:                                        ; preds = %.preheader207
  %342 = load ptr, ptr %193, align 8, !tbaa !46
  %343 = zext nneg i32 %.3189.lcssa to i64
  %wide.trip.count328 = zext i32 %335 to i64
  %344 = sub nsw i64 %wide.trip.count328, %343
  %min.iters.check454 = icmp ult i64 %344, 4
  br i1 %min.iters.check454, label %scalar.ph453.preheader, label %vector.ph455

scalar.ph453.preheader:                           ; preds = %middle.block452, %.lr.ph246
  %indvars.iv325.ph = phi i64 [ %343, %.lr.ph246 ], [ %ind.end458, %middle.block452 ]
  br label %scalar.ph453

vector.ph455:                                     ; preds = %.lr.ph246
  %n.vec457 = and i64 %344, -4
  %ind.end458 = add nsw i64 %n.vec457, %343
  %invariant.gep561 = getelementptr double, ptr %342, i64 %343
  br label %vector.body460

vector.body460:                                   ; preds = %vector.body460, %vector.ph455
  %index461 = phi i64 [ 0, %vector.ph455 ], [ %index.next463, %vector.body460 ]
  %gep562 = getelementptr double, ptr %invariant.gep561, i64 %index461
  %345 = getelementptr inbounds i8, ptr %gep562, i64 16
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %gep562, align 8, !tbaa !16
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %345, align 8, !tbaa !16
  %index.next463 = add nuw i64 %index461, 4
  %346 = icmp eq i64 %index.next463, %n.vec457
  br i1 %346, label %middle.block452, label %vector.body460, !llvm.loop !62

middle.block452:                                  ; preds = %vector.body460
  %cmp.n464 = icmp eq i64 %344, %n.vec457
  br i1 %cmp.n464, label %.preheader206, label %scalar.ph453.preheader

scalar.ph466:                                     ; preds = %scalar.ph466.preheader, %scalar.ph466
  %indvars.iv320 = phi i64 [ %indvars.iv.next321, %scalar.ph466 ], [ %indvars.iv320.ph, %scalar.ph466.preheader ]
  %347 = getelementptr inbounds double, ptr %337, i64 %indvars.iv320
  store double -1.000000e+00, ptr %347, align 8, !tbaa !16
  %indvars.iv.next321 = add nuw nsw i64 %indvars.iv320, 1
  %exitcond324.not = icmp eq i64 %indvars.iv.next321, %wide.trip.count323
  br i1 %exitcond324.not, label %.preheader207, label %scalar.ph466, !llvm.loop !63

.preheader206:                                    ; preds = %scalar.ph453, %middle.block452, %.preheader207
  %.4190.lcssa = phi i32 [ %.3189.lcssa, %.preheader207 ], [ %335, %middle.block452 ], [ %335, %scalar.ph453 ]
  %348 = load i32, ptr %7, align 8, !tbaa !5
  %349 = icmp slt i32 %.4190.lcssa, %348
  br i1 %349, label %.lr.ph249, label %._crit_edge250

.lr.ph249:                                        ; preds = %.preheader206
  %350 = load ptr, ptr %193, align 8, !tbaa !46
  %351 = zext i32 %.4190.lcssa to i64
  %352 = xor i32 %.4190.lcssa, -1
  %353 = add i32 %348, %352
  %354 = zext i32 %353 to i64
  %355 = add nuw nsw i64 %354, 1
  %min.iters.check443 = icmp ult i32 %353, 3
  br i1 %min.iters.check443, label %scalar.ph442.preheader, label %vector.ph444

scalar.ph442.preheader:                           ; preds = %middle.block441, %.lr.ph249
  %indvars.iv330.ph = phi i64 [ %351, %.lr.ph249 ], [ %ind.end, %middle.block441 ]
  br label %scalar.ph442

vector.ph444:                                     ; preds = %.lr.ph249
  %n.vec446 = and i64 %355, 8589934588
  %ind.end = add nuw nsw i64 %n.vec446, %351
  %invariant.gep563 = getelementptr double, ptr %350, i64 %351
  br label %vector.body448

vector.body448:                                   ; preds = %vector.body448, %vector.ph444
  %index449 = phi i64 [ 0, %vector.ph444 ], [ %index.next450, %vector.body448 ]
  %gep564 = getelementptr double, ptr %invariant.gep563, i64 %index449
  %356 = getelementptr inbounds i8, ptr %gep564, i64 16
  store <2 x double> <double -1.000000e+00, double -1.000000e+00>, ptr %gep564, align 8, !tbaa !16
  store <2 x double> <double -1.000000e+00, double -1.000000e+00>, ptr %356, align 8, !tbaa !16
  %index.next450 = add nuw i64 %index449, 4
  %357 = icmp eq i64 %index.next450, %n.vec446
  br i1 %357, label %middle.block441, label %vector.body448, !llvm.loop !64

middle.block441:                                  ; preds = %vector.body448
  %cmp.n451 = icmp eq i64 %355, %n.vec446
  br i1 %cmp.n451, label %._crit_edge250, label %scalar.ph442.preheader

scalar.ph453:                                     ; preds = %scalar.ph453.preheader, %scalar.ph453
  %indvars.iv325 = phi i64 [ %indvars.iv.next326, %scalar.ph453 ], [ %indvars.iv325.ph, %scalar.ph453.preheader ]
  %358 = getelementptr inbounds double, ptr %342, i64 %indvars.iv325
  store double 1.000000e+00, ptr %358, align 8, !tbaa !16
  %indvars.iv.next326 = add nuw nsw i64 %indvars.iv325, 1
  %exitcond329.not = icmp eq i64 %indvars.iv.next326, %wide.trip.count328
  br i1 %exitcond329.not, label %.preheader206, label %scalar.ph453, !llvm.loop !65

scalar.ph442:                                     ; preds = %scalar.ph442.preheader, %scalar.ph442
  %indvars.iv330 = phi i64 [ %indvars.iv.next331, %scalar.ph442 ], [ %indvars.iv330.ph, %scalar.ph442.preheader ]
  %359 = getelementptr inbounds double, ptr %350, i64 %indvars.iv330
  store double -1.000000e+00, ptr %359, align 8, !tbaa !16
  %indvars.iv.next331 = add nuw nsw i64 %indvars.iv330, 1
  %360 = trunc nuw i64 %indvars.iv.next331 to i32
  %361 = icmp sgt i32 %348, %360
  br i1 %361, label %scalar.ph442, label %._crit_edge250, !llvm.loop !66

._crit_edge250:                                   ; preds = %scalar.ph442, %middle.block441, %.preheader206
  %362 = load ptr, ptr %319, align 8, !tbaa !22
  %363 = ptrtoint ptr %362 to i64
  %.not196 = icmp eq ptr %362, null
  br i1 %.not196, label %.preheader202, label %.preheader204

.preheader204:                                    ; preds = %._crit_edge250
  br i1 %320, label %.lr.ph252.preheader, label %.loopexit203

.lr.ph252.preheader:                              ; preds = %.preheader204
  %364 = sext i32 %325 to i64
  %invariant.gep = getelementptr double, ptr %362, i64 %indvars.iv346
  %ident.check425.not = icmp eq i32 %325, 1
  %or.cond533 = select i1 %min.iters.check430, i1 %ident.check425.not, i1 false
  br i1 %or.cond533, label %vector.memcheck426, label %.lr.ph252.preheader538

.lr.ph252.preheader538:                           ; preds = %middle.block428, %vector.memcheck426, %.lr.ph252.preheader
  %indvars.iv333.ph = phi i64 [ 0, %vector.memcheck426 ], [ 0, %.lr.ph252.preheader ], [ %n.vec433, %middle.block428 ]
  br i1 %lcmp.mod552.not, label %.lr.ph252.prol.loopexit, label %.lr.ph252.prol

.lr.ph252.prol:                                   ; preds = %.lr.ph252.preheader538, %.lr.ph252.prol
  %indvars.iv333.prol = phi i64 [ %indvars.iv.next334.prol, %.lr.ph252.prol ], [ %indvars.iv333.ph, %.lr.ph252.preheader538 ]
  %prol.iter553 = phi i64 [ %prol.iter553.next, %.lr.ph252.prol ], [ 0, %.lr.ph252.preheader538 ]
  %365 = mul nsw i64 %indvars.iv333.prol, %364
  %gep.prol = getelementptr double, ptr %invariant.gep, i64 %365
  %366 = load double, ptr %gep.prol, align 8, !tbaa !16
  %367 = getelementptr inbounds double, ptr %316, i64 %indvars.iv333.prol
  store double %366, ptr %367, align 8, !tbaa !16
  %indvars.iv.next334.prol = add nuw nsw i64 %indvars.iv333.prol, 1
  %prol.iter553.next = add i64 %prol.iter553, 1
  %prol.iter553.cmp.not = icmp eq i64 %prol.iter553.next, %xtraiter551
  br i1 %prol.iter553.cmp.not, label %.lr.ph252.prol.loopexit, label %.lr.ph252.prol, !llvm.loop !67

.lr.ph252.prol.loopexit:                          ; preds = %.lr.ph252.prol, %.lr.ph252.preheader538
  %indvars.iv333.unr = phi i64 [ %indvars.iv333.ph, %.lr.ph252.preheader538 ], [ %indvars.iv.next334.prol, %.lr.ph252.prol ]
  %368 = sub nsw i64 %indvars.iv333.ph, %322
  %369 = icmp ugt i64 %368, -4
  br i1 %369, label %.loopexit203, label %.lr.ph252

vector.memcheck426:                               ; preds = %.lr.ph252.preheader
  %370 = add i64 %326, %363
  %371 = sub i64 %317, %370
  %diff.check427 = icmp ult i64 %371, 32
  br i1 %diff.check427, label %.lr.ph252.preheader538, label %vector.body435

vector.body435:                                   ; preds = %vector.memcheck426, %vector.body435
  %index436 = phi i64 [ %index.next439, %vector.body435 ], [ 0, %vector.memcheck426 ]
  %372 = getelementptr double, ptr %invariant.gep, i64 %index436
  %373 = getelementptr i8, ptr %372, i64 16
  %wide.load437 = load <2 x double>, ptr %372, align 8, !tbaa !16
  %wide.load438 = load <2 x double>, ptr %373, align 8, !tbaa !16
  %374 = getelementptr inbounds double, ptr %316, i64 %index436
  %375 = getelementptr inbounds i8, ptr %374, i64 16
  store <2 x double> %wide.load437, ptr %374, align 8, !tbaa !16
  store <2 x double> %wide.load438, ptr %375, align 8, !tbaa !16
  %index.next439 = add nuw i64 %index436, 4
  %376 = icmp eq i64 %index.next439, %n.vec433
  br i1 %376, label %middle.block428, label %vector.body435, !llvm.loop !68

middle.block428:                                  ; preds = %vector.body435
  br i1 %cmp.n440, label %.loopexit203, label %.lr.ph252.preheader538

.preheader202:                                    ; preds = %._crit_edge250
  br i1 %320, label %.lr.ph254.preheader, label %.loopexit203

.lr.ph254.preheader:                              ; preds = %.preheader202
  call void @llvm.memset.p0.i64(ptr align 8 %316, i8 0, i64 %323, i1 false), !tbaa !16
  br label %.loopexit203

.lr.ph252:                                        ; preds = %.lr.ph252.prol.loopexit, %.lr.ph252
  %indvars.iv333 = phi i64 [ %indvars.iv.next334.3, %.lr.ph252 ], [ %indvars.iv333.unr, %.lr.ph252.prol.loopexit ]
  %377 = mul nsw i64 %indvars.iv333, %364
  %gep = getelementptr double, ptr %invariant.gep, i64 %377
  %378 = load double, ptr %gep, align 8, !tbaa !16
  %379 = getelementptr inbounds double, ptr %316, i64 %indvars.iv333
  store double %378, ptr %379, align 8, !tbaa !16
  %indvars.iv.next334 = add nuw nsw i64 %indvars.iv333, 1
  %380 = mul nsw i64 %indvars.iv.next334, %364
  %gep.1 = getelementptr double, ptr %invariant.gep, i64 %380
  %381 = load double, ptr %gep.1, align 8, !tbaa !16
  %382 = getelementptr inbounds double, ptr %316, i64 %indvars.iv.next334
  store double %381, ptr %382, align 8, !tbaa !16
  %indvars.iv.next334.1 = add nuw nsw i64 %indvars.iv333, 2
  %383 = mul nsw i64 %indvars.iv.next334.1, %364
  %gep.2 = getelementptr double, ptr %invariant.gep, i64 %383
  %384 = load double, ptr %gep.2, align 8, !tbaa !16
  %385 = getelementptr inbounds double, ptr %316, i64 %indvars.iv.next334.1
  store double %384, ptr %385, align 8, !tbaa !16
  %indvars.iv.next334.2 = add nuw nsw i64 %indvars.iv333, 3
  %386 = mul nsw i64 %indvars.iv.next334.2, %364
  %gep.3 = getelementptr double, ptr %invariant.gep, i64 %386
  %387 = load double, ptr %gep.3, align 8, !tbaa !16
  %388 = getelementptr inbounds double, ptr %316, i64 %indvars.iv.next334.2
  store double %387, ptr %388, align 8, !tbaa !16
  %indvars.iv.next334.3 = add nuw nsw i64 %indvars.iv333, 4
  %exitcond337.not.3 = icmp eq i64 %indvars.iv.next334.3, %322
  br i1 %exitcond337.not.3, label %.loopexit203, label %.lr.ph252, !llvm.loop !69

.loopexit203:                                     ; preds = %.lr.ph252.prol.loopexit, %.lr.ph252, %middle.block428, %.lr.ph254.preheader, %.preheader204, %.preheader202
  %389 = getelementptr inbounds double, ptr %114, i64 %indvars.iv346
  %390 = load double, ptr %389, align 8, !tbaa !16
  %391 = load double, ptr %321, align 8, !tbaa !35
  call void @_ZL9train_onePK7problemPK9parameterPddd(ptr noundef nonnull %7, ptr noundef nonnull %1, ptr noundef %316, double noundef %390, double noundef %391)
  %.pre375 = load i32, ptr %3, align 4, !tbaa !15
  br i1 %320, label %.lr.ph257, label %.loopexit203.._crit_edge258_crit_edge

.loopexit203.._crit_edge258_crit_edge:            ; preds = %.loopexit203
  %.pre376 = sext i32 %.pre375 to i64
  br label %._crit_edge258

.lr.ph257:                                        ; preds = %.loopexit203
  %392 = load ptr, ptr %253, align 8, !tbaa !21
  %393 = ptrtoint ptr %392 to i64
  %394 = sext i32 %.pre375 to i64
  %invariant.gep379 = getelementptr double, ptr %392, i64 %indvars.iv346
  %ident.check.not = icmp ne i32 %.pre375, 1
  %or.cond534.not536 = select i1 %min.iters.check413, i1 true, i1 %ident.check.not
  %395 = add i64 %328, %393
  %diff.check410 = icmp ult i64 %395, 32
  %or.cond535 = select i1 %or.cond534.not536, i1 true, i1 %diff.check410
  br i1 %or.cond535, label %scalar.ph412.preheader, label %vector.body418

vector.body418:                                   ; preds = %.lr.ph257, %vector.body418
  %index419 = phi i64 [ %index.next422, %vector.body418 ], [ 0, %.lr.ph257 ]
  %396 = getelementptr inbounds double, ptr %316, i64 %index419
  %397 = getelementptr inbounds i8, ptr %396, i64 16
  %wide.load420 = load <2 x double>, ptr %396, align 8, !tbaa !16
  %wide.load421 = load <2 x double>, ptr %397, align 8, !tbaa !16
  %398 = getelementptr double, ptr %invariant.gep379, i64 %index419
  %399 = getelementptr i8, ptr %398, i64 16
  store <2 x double> %wide.load420, ptr %398, align 8, !tbaa !16
  store <2 x double> %wide.load421, ptr %399, align 8, !tbaa !16
  %index.next422 = add nuw i64 %index419, 4
  %400 = icmp eq i64 %index.next422, %n.vec416
  br i1 %400, label %middle.block411, label %vector.body418, !llvm.loop !70

middle.block411:                                  ; preds = %vector.body418
  br i1 %cmp.n423, label %._crit_edge258, label %scalar.ph412.preheader

scalar.ph412.preheader:                           ; preds = %middle.block411, %.lr.ph257
  %indvars.iv341.ph = phi i64 [ 0, %.lr.ph257 ], [ %n.vec416, %middle.block411 ]
  br i1 %lcmp.mod555.not, label %scalar.ph412.prol.loopexit, label %scalar.ph412.prol

scalar.ph412.prol:                                ; preds = %scalar.ph412.preheader, %scalar.ph412.prol
  %indvars.iv341.prol = phi i64 [ %indvars.iv.next342.prol, %scalar.ph412.prol ], [ %indvars.iv341.ph, %scalar.ph412.preheader ]
  %prol.iter556 = phi i64 [ %prol.iter556.next, %scalar.ph412.prol ], [ 0, %scalar.ph412.preheader ]
  %401 = getelementptr inbounds double, ptr %316, i64 %indvars.iv341.prol
  %402 = load double, ptr %401, align 8, !tbaa !16
  %403 = mul nsw i64 %indvars.iv341.prol, %394
  %gep380.prol = getelementptr double, ptr %invariant.gep379, i64 %403
  store double %402, ptr %gep380.prol, align 8, !tbaa !16
  %indvars.iv.next342.prol = add nuw nsw i64 %indvars.iv341.prol, 1
  %prol.iter556.next = add i64 %prol.iter556, 1
  %prol.iter556.cmp.not = icmp eq i64 %prol.iter556.next, %xtraiter554
  br i1 %prol.iter556.cmp.not, label %scalar.ph412.prol.loopexit, label %scalar.ph412.prol, !llvm.loop !71

scalar.ph412.prol.loopexit:                       ; preds = %scalar.ph412.prol, %scalar.ph412.preheader
  %indvars.iv341.unr = phi i64 [ %indvars.iv341.ph, %scalar.ph412.preheader ], [ %indvars.iv.next342.prol, %scalar.ph412.prol ]
  %404 = sub nsw i64 %indvars.iv341.ph, %322
  %405 = icmp ugt i64 %404, -4
  br i1 %405, label %._crit_edge258, label %scalar.ph412

scalar.ph412:                                     ; preds = %scalar.ph412.prol.loopexit, %scalar.ph412
  %indvars.iv341 = phi i64 [ %indvars.iv.next342.3, %scalar.ph412 ], [ %indvars.iv341.unr, %scalar.ph412.prol.loopexit ]
  %406 = getelementptr inbounds double, ptr %316, i64 %indvars.iv341
  %407 = load double, ptr %406, align 8, !tbaa !16
  %408 = mul nsw i64 %indvars.iv341, %394
  %gep380 = getelementptr double, ptr %invariant.gep379, i64 %408
  store double %407, ptr %gep380, align 8, !tbaa !16
  %indvars.iv.next342 = add nuw nsw i64 %indvars.iv341, 1
  %409 = getelementptr inbounds double, ptr %316, i64 %indvars.iv.next342
  %410 = load double, ptr %409, align 8, !tbaa !16
  %411 = mul nsw i64 %indvars.iv.next342, %394
  %gep380.1 = getelementptr double, ptr %invariant.gep379, i64 %411
  store double %410, ptr %gep380.1, align 8, !tbaa !16
  %indvars.iv.next342.1 = add nuw nsw i64 %indvars.iv341, 2
  %412 = getelementptr inbounds double, ptr %316, i64 %indvars.iv.next342.1
  %413 = load double, ptr %412, align 8, !tbaa !16
  %414 = mul nsw i64 %indvars.iv.next342.1, %394
  %gep380.2 = getelementptr double, ptr %invariant.gep379, i64 %414
  store double %413, ptr %gep380.2, align 8, !tbaa !16
  %indvars.iv.next342.2 = add nuw nsw i64 %indvars.iv341, 3
  %415 = getelementptr inbounds double, ptr %316, i64 %indvars.iv.next342.2
  %416 = load double, ptr %415, align 8, !tbaa !16
  %417 = mul nsw i64 %indvars.iv.next342.2, %394
  %gep380.3 = getelementptr double, ptr %invariant.gep379, i64 %417
  store double %416, ptr %gep380.3, align 8, !tbaa !16
  %indvars.iv.next342.3 = add nuw nsw i64 %indvars.iv341, 4
  %exitcond345.not.3 = icmp eq i64 %indvars.iv.next342.3, %322
  br i1 %exitcond345.not.3, label %._crit_edge258, label %scalar.ph412, !llvm.loop !72

._crit_edge258:                                   ; preds = %scalar.ph412.prol.loopexit, %scalar.ph412, %middle.block411, %.loopexit203.._crit_edge258_crit_edge
  %.pre-phi = phi i64 [ %.pre376, %.loopexit203.._crit_edge258_crit_edge ], [ %394, %middle.block411 ], [ %394, %scalar.ph412 ], [ %394, %scalar.ph412.prol.loopexit ]
  %indvars.iv.next347 = add nuw nsw i64 %indvars.iv346, 1
  %418 = icmp slt i64 %indvars.iv.next347, %.pre-phi
  br i1 %418, label %324, label %._crit_edge263, !llvm.loop !73

._crit_edge263:                                   ; preds = %._crit_edge258, %309
  call void @free(ptr noundef %316) #10
  br label %419

419:                                              ; preds = %.loopexit, %._crit_edge263, %248
  call void @free(ptr noundef %153) #10
  %420 = load ptr, ptr %4, align 8, !tbaa !17
  call void @free(ptr noundef %420) #10
  %421 = load ptr, ptr %5, align 8, !tbaa !17
  call void @free(ptr noundef %421) #10
  %422 = load ptr, ptr %6, align 8, !tbaa !17
  call void @free(ptr noundef %422) #10
  call void @free(ptr noundef %71) #10
  %423 = load ptr, ptr %191, align 8, !tbaa !43
  call void @free(ptr noundef %423) #10
  %424 = load ptr, ptr %193, align 8, !tbaa !46
  call void @free(ptr noundef %424) #10
  call void @free(ptr noundef %114) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #10
  br label %425

425:                                              ; preds = %59, %419, %.loopexit211
  ret ptr %12
}

; 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @check_regression_model(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL9train_onePK7problemPK9parameterPddd(ptr noundef, ptr noundef, ptr noundef, double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @check_oneclass_model(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL18solve_oneclass_svmPK7problemPK9parameterPdS5_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL13group_classesPK7problemPiPS2_S3_S3_S2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

declare void @_ZN15Solver_MCSVM_CSC1EPK7problemiPddi(ptr, ptr, i32, ptr, double, i32) local_unnamed_addr

declare void @_ZN15Solver_MCSVM_CSD1Ev(ptr) local_unnamed_addr

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #8

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress 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 #5 = { 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 #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { nounwind }
attributes #11 = { cold 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, !7, i64 0}
!6 = !{!"_ZTS7problem", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !11, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !7, i64 4}
!13 = !{!6, !11, i64 24}
!14 = !{i64 0, i64 4, !15, i64 8, i64 8, !16, i64 16, i64 8, !16, i64 24, i64 4, !15, i64 32, i64 8, !17, i64 40, i64 8, !17, i64 48, i64 8, !16, i64 56, i64 8, !16, i64 64, i64 8, !17, i64 72, i64 4, !15}
!15 = !{!7, !7, i64 0}
!16 = !{!11, !11, i64 0}
!17 = !{!10, !10, i64 0}
!18 = !{!19, !11, i64 104}
!19 = !{!"_ZTS5model", !20, i64 0, !7, i64 80, !7, i64 84, !10, i64 88, !10, i64 96, !11, i64 104, !11, i64 112}
!20 = !{!"_ZTS9parameter", !7, i64 0, !11, i64 8, !11, i64 16, !7, i64 24, !10, i64 32, !10, i64 40, !11, i64 48, !11, i64 56, !10, i64 64, !7, i64 72}
!21 = !{!19, !10, i64 88}
!22 = !{!20, !10, i64 64}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = distinct !{!25, !26, !27, !28}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!"llvm.loop.isvectorized", i32 1}
!28 = !{!"llvm.loop.unroll.runtime.disable"}
!29 = distinct !{!29, !26, !27}
!30 = !{!19, !7, i64 80}
!31 = !{!19, !10, i64 96}
!32 = distinct !{!32, !26, !27, !28}
!33 = distinct !{!33, !24}
!34 = distinct !{!34, !26, !27}
!35 = !{!20, !11, i64 16}
!36 = distinct !{!36, !26, !27, !28}
!37 = !{!20, !7, i64 24}
!38 = distinct !{!38, !26, !28, !27}
!39 = !{!20, !10, i64 32}
!40 = distinct !{!40, !26}
!41 = !{!20, !10, i64 40}
!42 = distinct !{!42, !26}
!43 = !{!6, !10, i64 16}
!44 = distinct !{!44, !26}
!45 = distinct !{!45, !24}
!46 = !{!6, !10, i64 8}
!47 = distinct !{!47, !26}
!48 = distinct !{!48, !24}
!49 = !{!20, !7, i64 0}
!50 = distinct !{!50, !26, !27, !28}
!51 = distinct !{!51, !26, !28, !27}
!52 = distinct !{!52, !26}
!53 = !{!20, !11, i64 8}
!54 = distinct !{!54, !26, !27, !28}
!55 = distinct !{!55, !26, !27, !28}
!56 = distinct !{!56, !26, !28, !27}
!57 = distinct !{!57, !26, !28, !27}
!58 = distinct !{!58, !24}
!59 = distinct !{!59, !26, !27, !28}
!60 = distinct !{!60, !26, !27}
!61 = distinct !{!61, !26, !27, !28}
!62 = distinct !{!62, !26, !27, !28}
!63 = distinct !{!63, !26, !28, !27}
!64 = distinct !{!64, !26, !27, !28}
!65 = distinct !{!65, !26, !28, !27}
!66 = distinct !{!66, !26, !28, !27}
!67 = distinct !{!67, !24}
!68 = distinct !{!68, !26, !27, !28}
!69 = distinct !{!69, !26, !27}
!70 = distinct !{!70, !26, !27, !28}
!71 = distinct !{!71, !24}
!72 = distinct !{!72, !26, !27}
!73 = distinct !{!73, !26}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass