; LLVM IR from darnstrom/daqp :: src (daqp_prox)

; 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.DAQPWorkspace = type { ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, ptr, ptr, ptr, ptr, i32, ptr, i32, i32, i32, double, ptr, ptr, i32, ptr }
%struct.DAQPSettings = type { double, double, double, double, double, i32, i32, double, double, double, double, double, double }
%struct.DAQPProblem = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }

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

29:                                               ; preds = %42, %1
  %30 = load i32, ptr %4, align 4, !tbaa !9
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.DAQPWorkspace, ptr %31, i32 0, i32 1
  %33 = load i32, ptr %32, align 8, !tbaa !11
  %34 = icmp slt i32 %30, %33
  br i1 %34, label %35, label %45

35:                                               ; preds = %29
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.DAQPWorkspace, ptr %36, i32 0, i32 12
  %38 = load ptr, ptr %37, align 8, !tbaa !19
  %39 = load i32, ptr %4, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds double, ptr %38, i64 %40
  store double 0.000000e+00, ptr %41, align 8, !tbaa !17
  br label %42

42:                                               ; preds = %35
  %43 = load i32, ptr %4, align 4, !tbaa !9
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %4, align 4, !tbaa !9
  br label %29, !llvm.loop !20

45:                                               ; preds = %29
  br label %46

46:                                               ; preds = %328, %45
  %47 = load i32, ptr %5, align 4, !tbaa !9
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.DAQPWorkspace, ptr %48, i32 0, i32 28
  %50 = load ptr, ptr %49, align 8, !tbaa !14
  %51 = getelementptr inbounds %struct.DAQPSettings, ptr %50, i32 0, i32 6
  %52 = load i32, ptr %51, align 4, !tbaa !22
  %53 = icmp slt i32 %47, %52
  br i1 %53, label %54, label %341

54:                                               ; preds = %46
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.DAQPWorkspace, ptr %55, i32 0, i32 13
  %57 = load ptr, ptr %56, align 8, !tbaa !23
  store ptr %57, ptr %8, align 8, !tbaa !5
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.DAQPWorkspace, ptr %58, i32 0, i32 12
  %60 = load ptr, ptr %59, align 8, !tbaa !19
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.DAQPWorkspace, ptr %61, i32 0, i32 13
  store ptr %60, ptr %62, align 8, !tbaa !23
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.DAQPWorkspace, ptr %64, i32 0, i32 12
  store ptr %63, ptr %65, align 8, !tbaa !19
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.DAQPWorkspace, ptr %66, i32 0, i32 12
  %68 = load ptr, ptr %67, align 8, !tbaa !19
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.DAQPWorkspace, ptr %69, i32 0, i32 16
  store ptr %68, ptr %70, align 8, !tbaa !24
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = call i32 @daqp_ldp(ptr noundef %71)
  store i32 %72, ptr %7, align 4, !tbaa !9
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.DAQPWorkspace, ptr %73, i32 0, i32 25
  %75 = load i32, ptr %74, align 4, !tbaa !25
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = add nsw i32 %76, %75
  store i32 %77, ptr %5, align 4, !tbaa !9
  %78 = load i32, ptr %7, align 4, !tbaa !9
  %79 = icmp slt i32 %78, 0
  br i1 %79, label %80, label %82

80:                                               ; preds = %54
  %81 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %81, ptr %2, align 4
  store i32 1, ptr %15, align 4
  br label %386

82:                                               ; preds = %54
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  call void @ldp2qp_solution(ptr noundef %83)
  br label %84

84:                                               ; preds = %82
  %85 = load double, ptr %10, align 8, !tbaa !17
  %86 = fcmp oeq double %85, 0.000000e+00
  br i1 %86, label %87, label %88

87:                                               ; preds = %84
  br label %341

88:                                               ; preds = %84
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.DAQPWorkspace, ptr %89, i32 0, i32 25
  %91 = load i32, ptr %90, align 4, !tbaa !25
  %92 = icmp eq i32 %91, 1
  br i1 %92, label %93, label %176

93:                                               ; preds = %88
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.DAQPWorkspace, ptr %94, i32 0, i32 7
  %96 = load ptr, ptr %95, align 8, !tbaa !26
  %97 = icmp eq ptr %96, null
  br i1 %97, label %98, label %107

98:                                               ; preds = %93
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.DAQPWorkspace, ptr %99, i32 0, i32 11
  %101 = load ptr, ptr %100, align 8, !tbaa !27
  %102 = icmp eq ptr %101, null
  br i1 %102, label %103, label %107

103:                                              ; preds = %98
  %104 = load double, ptr %12, align 8, !tbaa !17
  %105 = load double, ptr %10, align 8, !tbaa !17
  %106 = fmul double %104, %105
  br label %111

107:                                              ; preds = %98, %93
  %108 = load double, ptr %12, align 8, !tbaa !17
  %109 = load double, ptr %10, align 8, !tbaa !17
  %110 = fdiv double %108, %109
  br label %111

111:                                              ; preds = %107, %103
  %112 = phi double [ %106, %103 ], [ %110, %107 ]
  store double %112, ptr %11, align 8, !tbaa !17
  store i32 0, ptr %4, align 4, !tbaa !9
  store double 0.000000e+00, ptr %9, align 8, !tbaa !17
  br label %113

113:                                              ; preds = %143, %111
  %114 = load i32, ptr %4, align 4, !tbaa !9
  %115 = load i32, ptr %6, align 4, !tbaa !9
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %117, label %146

117:                                              ; preds = %113
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.DAQPWorkspace, ptr %118, i32 0, i32 12
  %120 = load ptr, ptr %119, align 8, !tbaa !19
  %121 = load i32, ptr %4, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds double, ptr %120, i64 %122
  %124 = load double, ptr %123, align 8, !tbaa !17
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.DAQPWorkspace, ptr %125, i32 0, i32 13
  %127 = load ptr, ptr %126, align 8, !tbaa !23
  %128 = load i32, ptr %4, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds double, ptr %127, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !17
  %132 = fsub double %124, %131
  store double %132, ptr %9, align 8, !tbaa !17
  %133 = load double, ptr %9, align 8, !tbaa !17
  %134 = load double, ptr %11, align 8, !tbaa !17
  %135 = fcmp ogt double %133, %134
  br i1 %135, label %141, label %136

136:                                              ; preds = %117
  %137 = load double, ptr %9, align 8, !tbaa !17
  %138 = load double, ptr %11, align 8, !tbaa !17
  %139 = fneg double %138
  %140 = fcmp olt double %137, %139
  br i1 %140, label %141, label %142

141:                                              ; preds = %136, %117
  br label %146

142:                                              ; preds = %136
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %4, align 4, !tbaa !9
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %4, align 4, !tbaa !9
  br label %113, !llvm.loop !28

146:                                              ; preds = %141, %113
  %147 = load i32, ptr %4, align 4, !tbaa !9
  %148 = load i32, ptr %6, align 4, !tbaa !9
  %149 = icmp eq i32 %147, %148
  br i1 %149, label %150, label %151

150:                                              ; preds = %146
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %341

151:                                              ; preds = %146
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.DAQPWorkspace, ptr %152, i32 0, i32 7
  %154 = load ptr, ptr %153, align 8, !tbaa !26
  %155 = icmp eq ptr %154, null
  br i1 %155, label %156, label %175

156:                                              ; preds = %151
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.DAQPWorkspace, ptr %157, i32 0, i32 11
  %159 = load ptr, ptr %158, align 8, !tbaa !27
  %160 = icmp eq ptr %159, null
  br i1 %160, label %161, label %175

161:                                              ; preds = %156
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.DAQPWorkspace, ptr %162, i32 0, i32 24
  %164 = load i32, ptr %163, align 8, !tbaa !29
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.DAQPWorkspace, ptr %165, i32 0, i32 1
  %167 = load i32, ptr %166, align 8, !tbaa !11
  %168 = icmp ne i32 %164, %167
  br i1 %168, label %169, label %175

169:                                              ; preds = %161
  %170 = load ptr, ptr %3, align 8, !tbaa !5
  %171 = call i32 @gradient_step(ptr noundef %170)
  %172 = icmp eq i32 %171, -1
  br i1 %172, label %173, label %174

173:                                              ; preds = %169
  store i32 -3, ptr %7, align 4, !tbaa !9
  br label %341

174:                                              ; preds = %169
  br label %175

175:                                              ; preds = %174, %161, %156, %151
  br label %176

176:                                              ; preds = %175, %88
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.DAQPWorkspace, ptr %177, i32 0, i32 7
  %179 = load ptr, ptr %178, align 8, !tbaa !26
  %180 = icmp eq ptr %179, null
  br i1 %180, label %181, label %229

181:                                              ; preds = %176
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.DAQPWorkspace, ptr %182, i32 0, i32 11
  %184 = load ptr, ptr %183, align 8, !tbaa !27
  %185 = icmp eq ptr %184, null
  br i1 %185, label %186, label %229

186:                                              ; preds = %181
  store i32 0, ptr %4, align 4, !tbaa !9
  %187 = load double, ptr %14, align 8, !tbaa !17
  store double %187, ptr %9, align 8, !tbaa !17
  br label %188

188:                                              ; preds = %212, %186
  %189 = load i32, ptr %4, align 4, !tbaa !9
  %190 = load i32, ptr %6, align 4, !tbaa !9
  %191 = icmp slt i32 %189, %190
  br i1 %191, label %192, label %215

192:                                              ; preds = %188
  %193 = load ptr, ptr %3, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.DAQPWorkspace, ptr %193, i32 0, i32 0
  %195 = load ptr, ptr %194, align 8, !tbaa !30
  %196 = getelementptr inbounds %struct.DAQPProblem, ptr %195, i32 0, i32 4
  %197 = load ptr, ptr %196, align 8, !tbaa !31
  %198 = load i32, ptr %4, align 4, !tbaa !9
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds double, ptr %197, i64 %199
  %201 = load double, ptr %200, align 8, !tbaa !17
  %202 = load ptr, ptr %3, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.DAQPWorkspace, ptr %202, i32 0, i32 12
  %204 = load ptr, ptr %203, align 8, !tbaa !19
  %205 = load i32, ptr %4, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds double, ptr %204, i64 %206
  %208 = load double, ptr %207, align 8, !tbaa !17
  %209 = load double, ptr %9, align 8, !tbaa !17
  %210 = fneg double %201
  %211 = call double @llvm.fmuladd.f64(double %210, double %208, double %209)
  store double %211, ptr %9, align 8, !tbaa !17
  br label %212

212:                                              ; preds = %192
  %213 = load i32, ptr %4, align 4, !tbaa !9
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %4, align 4, !tbaa !9
  br label %188, !llvm.loop !33

215:                                              ; preds = %188
  %216 = load double, ptr %9, align 8, !tbaa !17
  %217 = fcmp olt double %216, 1.000000e-10
  br i1 %217, label %218, label %224

218:                                              ; preds = %215
  %219 = load i32, ptr %13, align 4, !tbaa !9
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %13, align 4, !tbaa !9
  %221 = icmp sgt i32 %219, 10
  br i1 %221, label %222, label %223

222:                                              ; preds = %218
  store i32 1, ptr %2, align 4
  store i32 1, ptr %15, align 4
  br label %386

223:                                              ; preds = %218
  br label %228

224:                                              ; preds = %215
  %225 = load double, ptr %9, align 8, !tbaa !17
  %226 = load double, ptr %14, align 8, !tbaa !17
  %227 = fsub double %226, %225
  store double %227, ptr %14, align 8, !tbaa !17
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %228

228:                                              ; preds = %224, %223
  br label %229

229:                                              ; preds = %228, %181, %176
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.DAQPWorkspace, ptr %230, i32 0, i32 7
  %232 = load ptr, ptr %231, align 8, !tbaa !26
  %233 = icmp eq ptr %232, null
  br i1 %233, label %234, label %289

234:                                              ; preds = %229
  %235 = load ptr, ptr %3, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.DAQPWorkspace, ptr %235, i32 0, i32 11
  %237 = load ptr, ptr %236, align 8, !tbaa !27
  %238 = icmp eq ptr %237, null
  br i1 %238, label %239, label %289

239:                                              ; preds = %234
  %240 = load ptr, ptr %3, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.DAQPWorkspace, ptr %240, i32 0, i32 25
  %242 = load i32, ptr %241, align 4, !tbaa !25
  %243 = icmp eq i32 %242, 1
  %244 = zext i1 %243 to i64
  %245 = select i1 %243, double 1.000000e+01, double 9.000000e-01
  %246 = load double, ptr %10, align 8, !tbaa !17
  %247 = fmul double %246, %245
  store double %247, ptr %10, align 8, !tbaa !17
  %248 = load double, ptr %10, align 8, !tbaa !17
  %249 = fcmp ogt double %248, 1.000000e+03
  br i1 %249, label %250, label %251

250:                                              ; preds = %239
  br label %253

251:                                              ; preds = %239
  %252 = load double, ptr %10, align 8, !tbaa !17
  br label %253

253:                                              ; preds = %251, %250
  %254 = phi double [ 1.000000e+03, %250 ], [ %252, %251 ]
  store double %254, ptr %10, align 8, !tbaa !17
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %255

255:                                              ; preds = %285, %253
  %256 = load i32, ptr %4, align 4, !tbaa !9
  %257 = load i32, ptr %6, align 4, !tbaa !9
  %258 = icmp slt i32 %256, %257
  br i1 %258, label %259, label %288

259:                                              ; preds = %255
  %260 = load ptr, ptr %3, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.DAQPWorkspace, ptr %260, i32 0, i32 0
  %262 = load ptr, ptr %261, align 8, !tbaa !30
  %263 = getelementptr inbounds %struct.DAQPProblem, ptr %262, i32 0, i32 4
  %264 = load ptr, ptr %263, align 8, !tbaa !31
  %265 = load i32, ptr %4, align 4, !tbaa !9
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds double, ptr %264, i64 %266
  %268 = load double, ptr %267, align 8, !tbaa !17
  %269 = load double, ptr %10, align 8, !tbaa !17
  %270 = load ptr, ptr %3, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.DAQPWorkspace, ptr %270, i32 0, i32 12
  %272 = load ptr, ptr %271, align 8, !tbaa !19
  %273 = load i32, ptr %4, align 4, !tbaa !9
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds double, ptr %272, i64 %274
  %276 = load double, ptr %275, align 8, !tbaa !17
  %277 = fneg double %276
  %278 = call double @llvm.fmuladd.f64(double %268, double %269, double %277)
  %279 = load ptr, ptr %3, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.DAQPWorkspace, ptr %279, i32 0, i32 8
  %281 = load ptr, ptr %280, align 8, !tbaa !34
  %282 = load i32, ptr %4, align 4, !tbaa !9
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds double, ptr %281, i64 %283
  store double %278, ptr %284, align 8, !tbaa !17
  br label %285

285:                                              ; preds = %259
  %286 = load i32, ptr %4, align 4, !tbaa !9
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %4, align 4, !tbaa !9
  br label %255, !llvm.loop !35

288:                                              ; preds = %255
  br label %328

289:                                              ; preds = %234, %229
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %290

290:                                              ; preds = %320, %289
  %291 = load i32, ptr %4, align 4, !tbaa !9
  %292 = load i32, ptr %6, align 4, !tbaa !9
  %293 = icmp slt i32 %291, %292
  br i1 %293, label %294, label %323

294:                                              ; preds = %290
  %295 = load ptr, ptr %3, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.DAQPWorkspace, ptr %295, i32 0, i32 0
  %297 = load ptr, ptr %296, align 8, !tbaa !30
  %298 = getelementptr inbounds %struct.DAQPProblem, ptr %297, i32 0, i32 4
  %299 = load ptr, ptr %298, align 8, !tbaa !31
  %300 = load i32, ptr %4, align 4, !tbaa !9
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds double, ptr %299, i64 %301
  %303 = load double, ptr %302, align 8, !tbaa !17
  %304 = load double, ptr %10, align 8, !tbaa !17
  %305 = load ptr, ptr %3, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.DAQPWorkspace, ptr %305, i32 0, i32 12
  %307 = load ptr, ptr %306, align 8, !tbaa !19
  %308 = load i32, ptr %4, align 4, !tbaa !9
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds double, ptr %307, i64 %309
  %311 = load double, ptr %310, align 8, !tbaa !17
  %312 = fneg double %304
  %313 = call double @llvm.fmuladd.f64(double %312, double %311, double %303)
  %314 = load ptr, ptr %3, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.DAQPWorkspace, ptr %314, i32 0, i32 8
  %316 = load ptr, ptr %315, align 8, !tbaa !34
  %317 = load i32, ptr %4, align 4, !tbaa !9
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds double, ptr %316, i64 %318
  store double %313, ptr %319, align 8, !tbaa !17
  br label %320

320:                                              ; preds = %294
  %321 = load i32, ptr %4, align 4, !tbaa !9
  %322 = add nsw i32 %321, 1
  store i32 %322, ptr %4, align 4, !tbaa !9
  br label %290, !llvm.loop !36

323:                                              ; preds = %290
  %324 = load ptr, ptr %3, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.DAQPWorkspace, ptr %324, i32 0, i32 8
  %326 = load ptr, ptr %325, align 8, !tbaa !34
  %327 = load ptr, ptr %3, align 8, !tbaa !5
  call void @update_v(ptr noundef %326, ptr noundef %327, i32 noundef 0)
  br label %328

328:                                              ; preds = %323, %288
  %329 = load ptr, ptr %3, align 8, !tbaa !5
  %330 = load ptr, ptr %3, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.DAQPWorkspace, ptr %330, i32 0, i32 0
  %332 = load ptr, ptr %331, align 8, !tbaa !30
  %333 = getelementptr inbounds %struct.DAQPProblem, ptr %332, i32 0, i32 6
  %334 = load ptr, ptr %333, align 8, !tbaa !37
  %335 = load ptr, ptr %3, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.DAQPWorkspace, ptr %335, i32 0, i32 0
  %337 = load ptr, ptr %336, align 8, !tbaa !30
  %338 = getelementptr inbounds %struct.DAQPProblem, ptr %337, i32 0, i32 7
  %339 = load ptr, ptr %338, align 8, !tbaa !38
  %340 = call i32 @update_d(ptr noundef %329, ptr noundef %334, ptr noundef %339)
  br label %46, !llvm.loop !39

341:                                              ; preds = %173, %150, %87, %46
  %342 = load i32, ptr %5, align 4, !tbaa !9
  %343 = load ptr, ptr %3, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.DAQPWorkspace, ptr %343, i32 0, i32 28
  %345 = load ptr, ptr %344, align 8, !tbaa !14
  %346 = getelementptr inbounds %struct.DAQPSettings, ptr %345, i32 0, i32 6
  %347 = load i32, ptr %346, align 4, !tbaa !22
  %348 = icmp sge i32 %342, %347
  br i1 %348, label %349, label %350

349:                                              ; preds = %341
  store i32 -4, ptr %7, align 4, !tbaa !9
  br label %350

350:                                              ; preds = %349, %341
  %351 = load ptr, ptr %3, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.DAQPWorkspace, ptr %351, i32 0, i32 7
  %353 = load ptr, ptr %352, align 8, !tbaa !26
  %354 = icmp eq ptr %353, null
  br i1 %354, label %355, label %381

355:                                              ; preds = %350
  %356 = load ptr, ptr %3, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.DAQPWorkspace, ptr %356, i32 0, i32 11
  %358 = load ptr, ptr %357, align 8, !tbaa !27
  %359 = icmp eq ptr %358, null
  br i1 %359, label %360, label %381

360:                                              ; preds = %355
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %361

361:                                              ; preds = %377, %360
  %362 = load i32, ptr %4, align 4, !tbaa !9
  %363 = load ptr, ptr %3, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.DAQPWorkspace, ptr %363, i32 0, i32 24
  %365 = load i32, ptr %364, align 8, !tbaa !29
  %366 = icmp slt i32 %362, %365
  br i1 %366, label %367, label %380

367:                                              ; preds = %361
  %368 = load double, ptr %10, align 8, !tbaa !17
  %369 = load ptr, ptr %3, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.DAQPWorkspace, ptr %369, i32 0, i32 15
  %371 = load ptr, ptr %370, align 8, !tbaa !40
  %372 = load i32, ptr %4, align 4, !tbaa !9
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds double, ptr %371, i64 %373
  %375 = load double, ptr %374, align 8, !tbaa !17
  %376 = fdiv double %375, %368
  store double %376, ptr %374, align 8, !tbaa !17
  br label %377

377:                                              ; preds = %367
  %378 = load i32, ptr %4, align 4, !tbaa !9
  %379 = add nsw i32 %378, 1
  store i32 %379, ptr %4, align 4, !tbaa !9
  br label %361, !llvm.loop !41

380:                                              ; preds = %361
  br label %381

381:                                              ; preds = %380, %355, %350
  %382 = load i32, ptr %5, align 4, !tbaa !9
  %383 = load ptr, ptr %3, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.DAQPWorkspace, ptr %383, i32 0, i32 25
  store i32 %382, ptr %384, align 4, !tbaa !25
  %385 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %385, ptr %2, align 4
  store i32 1, ptr %15, align 4
  br label %386

386:                                              ; preds = %381, %222, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  %387 = load i32, ptr %2, align 4
  ret i32 %387
}

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

declare i32 @daqp_ldp(ptr noundef) #2

declare void @ldp2qp_solution(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @gradient_step(ptr noundef) #0

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

declare void @update_v(ptr noundef, ptr noundef, i32 noundef) #2

declare i32 @update_d(ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !13, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !10, i64 168, !6, i64 176, !10, i64 184, !10, i64 188, !10, i64 192, !13, i64 200, !6, i64 208, !6, i64 216, !10, i64 224, !6, i64 232}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !6, i64 208}
!15 = !{!16, !13, i64 56}
!16 = !{!"", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !10, i64 40, !10, i64 44, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88}
!17 = !{!13, !13, i64 0}
!18 = !{!16, !13, i64 64}
!19 = !{!12, !6, i64 88}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!16, !10, i64 44}
!23 = !{!12, !6, i64 96}
!24 = !{!12, !6, i64 120}
!25 = !{!12, !10, i64 188}
!26 = !{!12, !6, i64 48}
!27 = !{!12, !6, i64 80}
!28 = distinct !{!28, !21}
!29 = !{!12, !10, i64 184}
!30 = !{!12, !6, i64 0}
!31 = !{!32, !6, i64 24}
!32 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !10, i64 72}
!33 = distinct !{!33, !21}
!34 = !{!12, !6, i64 56}
!35 = distinct !{!35, !21}
!36 = distinct !{!36, !21}
!37 = !{!32, !6, i64 40}
!38 = !{!32, !6, i64 48}
!39 = distinct !{!39, !21}
!40 = !{!12, !6, i64 112}
!41 = distinct !{!41, !21}


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

; Function Attrs: nounwind uwtable
define dso_local i32 @daqp_prox(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 208
  %5 = load ptr, ptr %4, align 8, !tbaa !12
  %6 = getelementptr inbounds i8, ptr %5, i64 56
  %7 = load double, ptr %6, align 8, !tbaa !13
  %8 = getelementptr inbounds i8, ptr %5, i64 64
  %9 = load double, ptr %8, align 8, !tbaa !15
  %10 = icmp sgt i32 %3, 0
  br i1 %10, label %.lr.ph, label %.preheader140

.lr.ph:                                           ; preds = %1
  %11 = getelementptr inbounds i8, ptr %0, i64 88
  %12 = load ptr, ptr %11, align 8, !tbaa !16
  %13 = zext nneg i32 %3 to i64
  %14 = shl nuw nsw i64 %13, 3
  tail call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 %14, i1 false), !tbaa !17
  br label %.preheader140

.preheader140:                                    ; preds = %.lr.ph, %1
  %15 = getelementptr inbounds i8, ptr %5, i64 44
  %16 = load i32, ptr %15, align 4, !tbaa !18
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph163, label %._crit_edge164

.lr.ph163:                                        ; preds = %.preheader140
  %18 = getelementptr inbounds i8, ptr %0, i64 96
  %19 = getelementptr inbounds i8, ptr %0, i64 88
  %20 = getelementptr inbounds i8, ptr %0, i64 120
  %21 = getelementptr inbounds i8, ptr %0, i64 188
  %22 = getelementptr inbounds i8, ptr %0, i64 48
  %23 = getelementptr inbounds i8, ptr %0, i64 80
  %24 = getelementptr inbounds i8, ptr %0, i64 184
  %25 = getelementptr inbounds i8, ptr %0, i64 56
  %wide.trip.count = zext i32 %3 to i64
  %wide.trip.count194 = zext nneg i32 %3 to i64
  %wide.trip.count199 = zext nneg i32 %3 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %26 = icmp ult i32 %3, 4
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %min.iters.check244 = icmp ult i32 %3, 4
  %n.vec247 = and i64 %wide.trip.count, 2147483644
  %cmp.n258 = icmp eq i64 %n.vec247, %wide.trip.count
  %xtraiter281 = and i64 %wide.trip.count, 1
  %lcmp.mod282.not = icmp eq i64 %xtraiter281, 0
  %27 = add nsw i64 %wide.trip.count, -1
  %min.iters.check = icmp ult i32 %3, 4
  %n.vec = and i64 %wide.trip.count, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  %xtraiter283 = and i64 %wide.trip.count, 1
  %lcmp.mod284.not = icmp eq i64 %xtraiter283, 0
  %28 = add nsw i64 %wide.trip.count, -1
  br label %29

29:                                               ; preds = %.lr.ph163, %.loopexit138
  %.0162 = phi double [ 1.000000e+30, %.lr.ph163 ], [ %.1132, %.loopexit138 ]
  %.0108161 = phi i32 [ 0, %.lr.ph163 ], [ %.1109129, %.loopexit138 ]
  %.0113160 = phi double [ %7, %.lr.ph163 ], [ %.1114, %.loopexit138 ]
  %.0116159 = phi i32 [ 0, %.lr.ph163 ], [ %34, %.loopexit138 ]
  %30 = load ptr, ptr %18, align 8, !tbaa !19
  %31 = load ptr, ptr %19, align 8, !tbaa !16
  store ptr %31, ptr %18, align 8, !tbaa !19
  store ptr %30, ptr %19, align 8, !tbaa !16
  store ptr %30, ptr %20, align 8, !tbaa !20
  %32 = tail call i32 @daqp_ldp(ptr noundef nonnull %0) #5
  %33 = load i32, ptr %21, align 4, !tbaa !21
  %34 = add nsw i32 %33, %.0116159
  %35 = icmp slt i32 %32, 0
  br i1 %35, label %.loopexit141, label %36

36:                                               ; preds = %29
  tail call void @ldp2qp_solution(ptr noundef nonnull %0) #5
  %37 = fcmp oeq double %.0113160, 0.000000e+00
  br i1 %37, label %._crit_edge164.loopexit, label %38

38:                                               ; preds = %36
  %39 = load i32, ptr %21, align 4, !tbaa !21
  %40 = icmp eq i32 %39, 1
  %.pre207 = load ptr, ptr %22, align 8, !tbaa !22
  br i1 %40, label %41, label %76

41:                                               ; preds = %38
  %42 = icmp eq ptr %.pre207, null
  br i1 %42, label %43, label %48

43:                                               ; preds = %41
  %44 = load ptr, ptr %23, align 8, !tbaa !23
  %45 = icmp eq ptr %44, null
  br i1 %45, label %46, label %48

46:                                               ; preds = %43
  %47 = fmul double %9, %.0113160
  br label %50

48:                                               ; preds = %43, %41
  %49 = fdiv double %9, %.0113160
  br label %50

50:                                               ; preds = %48, %46
  %51 = phi double [ %47, %46 ], [ %49, %48 ]
  br i1 %10, label %.lr.ph145, label %._crit_edge

.lr.ph145:                                        ; preds = %50
  %52 = load ptr, ptr %19, align 8, !tbaa !16
  %53 = load ptr, ptr %18, align 8, !tbaa !19
  %54 = fneg double %51
  br label %55

55:                                               ; preds = %.lr.ph145, %63
  %indvars.iv = phi i64 [ 0, %.lr.ph145 ], [ %indvars.iv.next, %63 ]
  %56 = getelementptr inbounds double, ptr %52, i64 %indvars.iv
  %57 = load double, ptr %56, align 8, !tbaa !17
  %58 = getelementptr inbounds double, ptr %53, i64 %indvars.iv
  %59 = load double, ptr %58, align 8, !tbaa !17
  %60 = fsub double %57, %59
  %61 = fcmp ogt double %60, %51
  %62 = fcmp olt double %60, %54
  %or.cond = or i1 %61, %62
  br i1 %or.cond, label %._crit_edge.loopexit, label %63

63:                                               ; preds = %55
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge164.loopexit, label %55, !llvm.loop !24

._crit_edge.loopexit:                             ; preds = %55
  %64 = trunc nuw nsw i64 %indvars.iv to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %50
  %.1112.lcssa = phi i32 [ 0, %50 ], [ %64, %._crit_edge.loopexit ]
  %65 = icmp eq i32 %.1112.lcssa, %3
  br i1 %65, label %._crit_edge164.loopexit, label %66

66:                                               ; preds = %._crit_edge
  br i1 %42, label %67, label %.thread135

67:                                               ; preds = %66
  %68 = load ptr, ptr %23, align 8, !tbaa !23
  %69 = icmp eq ptr %68, null
  br i1 %69, label %70, label %.thread135

70:                                               ; preds = %67
  %71 = load i32, ptr %24, align 8, !tbaa !26
  %72 = load i32, ptr %2, align 8, !tbaa !5
  %.not = icmp eq i32 %71, %72
  br i1 %.not, label %.thread214, label %73

73:                                               ; preds = %70
  %74 = tail call i32 @gradient_step(ptr noundef nonnull %0)
  %75 = icmp eq i32 %74, -1
  br i1 %75, label %._crit_edge164.loopexit, label %._crit_edge206

._crit_edge206:                                   ; preds = %73
  %.pre = load ptr, ptr %22, align 8, !tbaa !22
  br label %76

76:                                               ; preds = %._crit_edge206, %38
  %77 = phi ptr [ %.pre, %._crit_edge206 ], [ %.pre207, %38 ]
  %78 = icmp eq ptr %77, null
  br i1 %78, label %.thread214, label %.thread135

.thread214:                                       ; preds = %70, %76
  %.pr = load ptr, ptr %23, align 8, !tbaa !23
  %79 = icmp eq ptr %.pr, null
  br i1 %79, label %.preheader139, label %.thread135

.preheader139:                                    ; preds = %.thread214
  br i1 %10, label %.lr.ph150, label %._crit_edge151

.lr.ph150:                                        ; preds = %.preheader139
  %80 = load ptr, ptr %0, align 8, !tbaa !27
  %81 = getelementptr inbounds i8, ptr %80, i64 24
  %82 = load ptr, ptr %81, align 8, !tbaa !28
  %83 = load ptr, ptr %19, align 8, !tbaa !16
  br i1 %26, label %._crit_edge151.loopexit.unr-lcssa, label %.lr.ph150.new

.lr.ph150.new:                                    ; preds = %.lr.ph150, %.lr.ph150.new
  %indvars.iv186 = phi i64 [ %indvars.iv.next187.3, %.lr.ph150.new ], [ 0, %.lr.ph150 ]
  %.0115148 = phi double [ %107, %.lr.ph150.new ], [ %.0162, %.lr.ph150 ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph150.new ], [ 0, %.lr.ph150 ]
  %84 = getelementptr inbounds double, ptr %82, i64 %indvars.iv186
  %85 = load double, ptr %84, align 8, !tbaa !17
  %86 = getelementptr inbounds double, ptr %83, i64 %indvars.iv186
  %87 = load double, ptr %86, align 8, !tbaa !17
  %88 = fneg double %85
  %89 = tail call double @llvm.fmuladd.f64(double %88, double %87, double %.0115148)
  %indvars.iv.next187 = or disjoint i64 %indvars.iv186, 1
  %90 = getelementptr inbounds double, ptr %82, i64 %indvars.iv.next187
  %91 = load double, ptr %90, align 8, !tbaa !17
  %92 = getelementptr inbounds double, ptr %83, i64 %indvars.iv.next187
  %93 = load double, ptr %92, align 8, !tbaa !17
  %94 = fneg double %91
  %95 = tail call double @llvm.fmuladd.f64(double %94, double %93, double %89)
  %indvars.iv.next187.1 = or disjoint i64 %indvars.iv186, 2
  %96 = getelementptr inbounds double, ptr %82, i64 %indvars.iv.next187.1
  %97 = load double, ptr %96, align 8, !tbaa !17
  %98 = getelementptr inbounds double, ptr %83, i64 %indvars.iv.next187.1
  %99 = load double, ptr %98, align 8, !tbaa !17
  %100 = fneg double %97
  %101 = tail call double @llvm.fmuladd.f64(double %100, double %99, double %95)
  %indvars.iv.next187.2 = or disjoint i64 %indvars.iv186, 3
  %102 = getelementptr inbounds double, ptr %82, i64 %indvars.iv.next187.2
  %103 = load double, ptr %102, align 8, !tbaa !17
  %104 = getelementptr inbounds double, ptr %83, i64 %indvars.iv.next187.2
  %105 = load double, ptr %104, align 8, !tbaa !17
  %106 = fneg double %103
  %107 = tail call double @llvm.fmuladd.f64(double %106, double %105, double %101)
  %indvars.iv.next187.3 = add nuw nsw i64 %indvars.iv186, 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_edge151.loopexit.unr-lcssa, label %.lr.ph150.new, !llvm.loop !30

._crit_edge151.loopexit.unr-lcssa:                ; preds = %.lr.ph150.new, %.lr.ph150
  %.lcssa.ph = phi double [ poison, %.lr.ph150 ], [ %107, %.lr.ph150.new ]
  %indvars.iv186.unr = phi i64 [ 0, %.lr.ph150 ], [ %indvars.iv.next187.3, %.lr.ph150.new ]
  %.0115148.unr = phi double [ %.0162, %.lr.ph150 ], [ %107, %.lr.ph150.new ]
  br i1 %lcmp.mod.not, label %._crit_edge151, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge151.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv186.epil = phi i64 [ %indvars.iv.next187.epil, %.epil.preheader ], [ %indvars.iv186.unr, %._crit_edge151.loopexit.unr-lcssa ]
  %.0115148.epil = phi double [ %113, %.epil.preheader ], [ %.0115148.unr, %._crit_edge151.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge151.loopexit.unr-lcssa ]
  %108 = getelementptr inbounds double, ptr %82, i64 %indvars.iv186.epil
  %109 = load double, ptr %108, align 8, !tbaa !17
  %110 = getelementptr inbounds double, ptr %83, i64 %indvars.iv186.epil
  %111 = load double, ptr %110, align 8, !tbaa !17
  %112 = fneg double %109
  %113 = tail call double @llvm.fmuladd.f64(double %112, double %111, double %.0115148.epil)
  %indvars.iv.next187.epil = add nuw nsw i64 %indvars.iv186.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge151, label %.epil.preheader, !llvm.loop !31

._crit_edge151:                                   ; preds = %._crit_edge151.loopexit.unr-lcssa, %.epil.preheader, %.preheader139
  %.0115.lcssa = phi double [ %.0162, %.preheader139 ], [ %.lcssa.ph, %._crit_edge151.loopexit.unr-lcssa ], [ %113, %.epil.preheader ]
  %114 = fcmp olt double %.0115.lcssa, 1.000000e-10
  br i1 %114, label %115, label %118

115:                                              ; preds = %._crit_edge151
  %116 = add nsw i32 %.0108161, 1
  %117 = icmp sgt i32 %.0108161, 10
  br i1 %117, label %.loopexit141, label %.thread

118:                                              ; preds = %._crit_edge151
  %119 = fsub double %.0162, %.0115.lcssa
  br label %.thread

.thread:                                          ; preds = %115, %118
  %.1134 = phi double [ %.0162, %115 ], [ %119, %118 ]
  %.1109131 = phi i32 [ %116, %115 ], [ 0, %118 ]
  br i1 %79, label %120, label %.thread135

120:                                              ; preds = %.thread
  %121 = load i32, ptr %21, align 4, !tbaa !21
  %122 = icmp eq i32 %121, 1
  %123 = select i1 %122, double 1.000000e+01, double 9.000000e-01
  %124 = fmul double %.0113160, %123
  %125 = fcmp ogt double %124, 1.000000e+03
  %126 = select i1 %125, double 1.000000e+03, double %124
  %.pre210 = load ptr, ptr %0, align 8, !tbaa !27
  br i1 %10, label %.lr.ph158, label %.loopexit138

.lr.ph158:                                        ; preds = %120
  %127 = getelementptr inbounds i8, ptr %.pre210, i64 24
  %128 = load ptr, ptr %127, align 8, !tbaa !28
  %129 = load ptr, ptr %19, align 8, !tbaa !16
  %130 = load ptr, ptr %25, align 8, !tbaa !33
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph158
  %131 = ptrtoint ptr %130 to i64
  %132 = ptrtoint ptr %129 to i64
  %133 = ptrtoint ptr %128 to i64
  %134 = sub i64 %131, %133
  %diff.check = icmp ult i64 %134, 32
  %135 = sub i64 %131, %132
  %diff.check233 = icmp ult i64 %135, 32
  %conflict.rdx = or i1 %diff.check, %diff.check233
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %broadcast.splatinsert = insertelement <2 x double> poison, double %126, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %136 = getelementptr inbounds double, ptr %128, i64 %index
  %137 = getelementptr inbounds i8, ptr %136, i64 16
  %wide.load = load <2 x double>, ptr %136, align 8, !tbaa !17
  %wide.load234 = load <2 x double>, ptr %137, align 8, !tbaa !17
  %138 = getelementptr inbounds double, ptr %129, i64 %index
  %139 = getelementptr inbounds i8, ptr %138, i64 16
  %wide.load235 = load <2 x double>, ptr %138, align 8, !tbaa !17
  %wide.load236 = load <2 x double>, ptr %139, align 8, !tbaa !17
  %140 = fneg <2 x double> %wide.load235
  %141 = fneg <2 x double> %wide.load236
  %142 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load, <2 x double> %broadcast.splat, <2 x double> %140)
  %143 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load234, <2 x double> %broadcast.splat, <2 x double> %141)
  %144 = getelementptr inbounds double, ptr %130, i64 %index
  %145 = getelementptr inbounds i8, ptr %144, i64 16
  store <2 x double> %142, ptr %144, align 8, !tbaa !17
  store <2 x double> %143, ptr %145, align 8, !tbaa !17
  %index.next = add nuw i64 %index, 4
  %146 = icmp eq i64 %index.next, %n.vec
  br i1 %146, label %middle.block, label %vector.body, !llvm.loop !34

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %.loopexit138, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph158
  %indvars.iv196.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph158 ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod284.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %147 = getelementptr inbounds double, ptr %128, i64 %indvars.iv196.ph
  %148 = load double, ptr %147, align 8, !tbaa !17
  %149 = getelementptr inbounds double, ptr %129, i64 %indvars.iv196.ph
  %150 = load double, ptr %149, align 8, !tbaa !17
  %151 = fneg double %150
  %152 = tail call double @llvm.fmuladd.f64(double %148, double %126, double %151)
  %153 = getelementptr inbounds double, ptr %130, i64 %indvars.iv196.ph
  store double %152, ptr %153, align 8, !tbaa !17
  %indvars.iv.next197.prol = or disjoint i64 %indvars.iv196.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv196.unr = phi i64 [ %indvars.iv196.ph, %scalar.ph.preheader ], [ %indvars.iv.next197.prol, %scalar.ph.prol ]
  %154 = icmp eq i64 %indvars.iv196.ph, %28
  br i1 %154, label %.loopexit138, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv196 = phi i64 [ %indvars.iv.next197.1, %scalar.ph ], [ %indvars.iv196.unr, %scalar.ph.prol.loopexit ]
  %155 = getelementptr inbounds double, ptr %128, i64 %indvars.iv196
  %156 = load double, ptr %155, align 8, !tbaa !17
  %157 = getelementptr inbounds double, ptr %129, i64 %indvars.iv196
  %158 = load double, ptr %157, align 8, !tbaa !17
  %159 = fneg double %158
  %160 = tail call double @llvm.fmuladd.f64(double %156, double %126, double %159)
  %161 = getelementptr inbounds double, ptr %130, i64 %indvars.iv196
  store double %160, ptr %161, align 8, !tbaa !17
  %indvars.iv.next197 = add nuw nsw i64 %indvars.iv196, 1
  %162 = getelementptr inbounds double, ptr %128, i64 %indvars.iv.next197
  %163 = load double, ptr %162, align 8, !tbaa !17
  %164 = getelementptr inbounds double, ptr %129, i64 %indvars.iv.next197
  %165 = load double, ptr %164, align 8, !tbaa !17
  %166 = fneg double %165
  %167 = tail call double @llvm.fmuladd.f64(double %163, double %126, double %166)
  %168 = getelementptr inbounds double, ptr %130, i64 %indvars.iv.next197
  store double %167, ptr %168, align 8, !tbaa !17
  %indvars.iv.next197.1 = add nuw nsw i64 %indvars.iv196, 2
  %exitcond200.not.1 = icmp eq i64 %indvars.iv.next197.1, %wide.trip.count199
  br i1 %exitcond200.not.1, label %.loopexit138, label %scalar.ph, !llvm.loop !37

.thread135:                                       ; preds = %67, %.thread214, %66, %76, %.thread
  %.1133 = phi double [ %.1134, %.thread ], [ %.0162, %76 ], [ %.0162, %66 ], [ %.0162, %.thread214 ], [ %.0162, %67 ]
  %.1109130 = phi i32 [ %.1109131, %.thread ], [ %.0108161, %76 ], [ %.0108161, %66 ], [ %.0108161, %.thread214 ], [ %.0108161, %67 ]
  %.pre208 = load ptr, ptr %25, align 8, !tbaa !33
  %.pre208238 = ptrtoint ptr %.pre208 to i64
  br i1 %10, label %.lr.ph154, label %._crit_edge155

.lr.ph154:                                        ; preds = %.thread135
  %169 = load ptr, ptr %0, align 8, !tbaa !27
  %170 = getelementptr inbounds i8, ptr %169, i64 24
  %171 = load ptr, ptr %170, align 8, !tbaa !28
  %172 = load ptr, ptr %19, align 8, !tbaa !16
  %173 = fneg double %.0113160
  br i1 %min.iters.check244, label %scalar.ph243.preheader, label %vector.memcheck237

vector.memcheck237:                               ; preds = %.lr.ph154
  %174 = ptrtoint ptr %172 to i64
  %175 = ptrtoint ptr %171 to i64
  %176 = sub i64 %.pre208238, %175
  %diff.check239 = icmp ult i64 %176, 32
  %177 = sub i64 %.pre208238, %174
  %diff.check240 = icmp ult i64 %177, 32
  %conflict.rdx241 = or i1 %diff.check239, %diff.check240
  br i1 %conflict.rdx241, label %scalar.ph243.preheader, label %vector.ph245

vector.ph245:                                     ; preds = %vector.memcheck237
  %broadcast.splatinsert255 = insertelement <2 x double> poison, double %173, i64 0
  %broadcast.splat256 = shufflevector <2 x double> %broadcast.splatinsert255, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body249

vector.body249:                                   ; preds = %vector.body249, %vector.ph245
  %index250 = phi i64 [ 0, %vector.ph245 ], [ %index.next257, %vector.body249 ]
  %178 = getelementptr inbounds double, ptr %171, i64 %index250
  %179 = getelementptr inbounds i8, ptr %178, i64 16
  %wide.load251 = load <2 x double>, ptr %178, align 8, !tbaa !17
  %wide.load252 = load <2 x double>, ptr %179, align 8, !tbaa !17
  %180 = getelementptr inbounds double, ptr %172, i64 %index250
  %181 = getelementptr inbounds i8, ptr %180, i64 16
  %wide.load253 = load <2 x double>, ptr %180, align 8, !tbaa !17
  %wide.load254 = load <2 x double>, ptr %181, align 8, !tbaa !17
  %182 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat256, <2 x double> %wide.load253, <2 x double> %wide.load251)
  %183 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat256, <2 x double> %wide.load254, <2 x double> %wide.load252)
  %184 = getelementptr inbounds double, ptr %.pre208, i64 %index250
  %185 = getelementptr inbounds i8, ptr %184, i64 16
  store <2 x double> %182, ptr %184, align 8, !tbaa !17
  store <2 x double> %183, ptr %185, align 8, !tbaa !17
  %index.next257 = add nuw i64 %index250, 4
  %186 = icmp eq i64 %index.next257, %n.vec247
  br i1 %186, label %middle.block242, label %vector.body249, !llvm.loop !38

middle.block242:                                  ; preds = %vector.body249
  br i1 %cmp.n258, label %._crit_edge155, label %scalar.ph243.preheader

scalar.ph243.preheader:                           ; preds = %middle.block242, %vector.memcheck237, %.lr.ph154
  %indvars.iv191.ph = phi i64 [ 0, %vector.memcheck237 ], [ 0, %.lr.ph154 ], [ %n.vec247, %middle.block242 ]
  br i1 %lcmp.mod282.not, label %scalar.ph243.prol.loopexit, label %scalar.ph243.prol

scalar.ph243.prol:                                ; preds = %scalar.ph243.preheader
  %187 = getelementptr inbounds double, ptr %171, i64 %indvars.iv191.ph
  %188 = load double, ptr %187, align 8, !tbaa !17
  %189 = getelementptr inbounds double, ptr %172, i64 %indvars.iv191.ph
  %190 = load double, ptr %189, align 8, !tbaa !17
  %191 = tail call double @llvm.fmuladd.f64(double %173, double %190, double %188)
  %192 = getelementptr inbounds double, ptr %.pre208, i64 %indvars.iv191.ph
  store double %191, ptr %192, align 8, !tbaa !17
  %indvars.iv.next192.prol = or disjoint i64 %indvars.iv191.ph, 1
  br label %scalar.ph243.prol.loopexit

scalar.ph243.prol.loopexit:                       ; preds = %scalar.ph243.prol, %scalar.ph243.preheader
  %indvars.iv191.unr = phi i64 [ %indvars.iv191.ph, %scalar.ph243.preheader ], [ %indvars.iv.next192.prol, %scalar.ph243.prol ]
  %193 = icmp eq i64 %indvars.iv191.ph, %27
  br i1 %193, label %._crit_edge155, label %scalar.ph243

scalar.ph243:                                     ; preds = %scalar.ph243.prol.loopexit, %scalar.ph243
  %indvars.iv191 = phi i64 [ %indvars.iv.next192.1, %scalar.ph243 ], [ %indvars.iv191.unr, %scalar.ph243.prol.loopexit ]
  %194 = getelementptr inbounds double, ptr %171, i64 %indvars.iv191
  %195 = load double, ptr %194, align 8, !tbaa !17
  %196 = getelementptr inbounds double, ptr %172, i64 %indvars.iv191
  %197 = load double, ptr %196, align 8, !tbaa !17
  %198 = tail call double @llvm.fmuladd.f64(double %173, double %197, double %195)
  %199 = getelementptr inbounds double, ptr %.pre208, i64 %indvars.iv191
  store double %198, ptr %199, align 8, !tbaa !17
  %indvars.iv.next192 = add nuw nsw i64 %indvars.iv191, 1
  %200 = getelementptr inbounds double, ptr %171, i64 %indvars.iv.next192
  %201 = load double, ptr %200, align 8, !tbaa !17
  %202 = getelementptr inbounds double, ptr %172, i64 %indvars.iv.next192
  %203 = load double, ptr %202, align 8, !tbaa !17
  %204 = tail call double @llvm.fmuladd.f64(double %173, double %203, double %201)
  %205 = getelementptr inbounds double, ptr %.pre208, i64 %indvars.iv.next192
  store double %204, ptr %205, align 8, !tbaa !17
  %indvars.iv.next192.1 = add nuw nsw i64 %indvars.iv191, 2
  %exitcond195.not.1 = icmp eq i64 %indvars.iv.next192.1, %wide.trip.count194
  br i1 %exitcond195.not.1, label %._crit_edge155, label %scalar.ph243, !llvm.loop !39

._crit_edge155:                                   ; preds = %scalar.ph243.prol.loopexit, %scalar.ph243, %middle.block242, %.thread135
  tail call void @update_v(ptr noundef %.pre208, ptr noundef nonnull %0, i32 noundef 0) #5
  %.pre209 = load ptr, ptr %0, align 8, !tbaa !27
  br label %.loopexit138

.loopexit138:                                     ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %120, %._crit_edge155
  %206 = phi ptr [ %.pre209, %._crit_edge155 ], [ %.pre210, %120 ], [ %.pre210, %middle.block ], [ %.pre210, %scalar.ph ], [ %.pre210, %scalar.ph.prol.loopexit ]
  %.1132 = phi double [ %.1133, %._crit_edge155 ], [ %.1134, %120 ], [ %.1134, %middle.block ], [ %.1134, %scalar.ph ], [ %.1134, %scalar.ph.prol.loopexit ]
  %.1109129 = phi i32 [ %.1109130, %._crit_edge155 ], [ %.1109131, %120 ], [ %.1109131, %middle.block ], [ %.1109131, %scalar.ph ], [ %.1109131, %scalar.ph.prol.loopexit ]
  %.1114 = phi double [ %.0113160, %._crit_edge155 ], [ %126, %120 ], [ %126, %middle.block ], [ %126, %scalar.ph ], [ %126, %scalar.ph.prol.loopexit ]
  %207 = getelementptr inbounds i8, ptr %206, i64 40
  %208 = load ptr, ptr %207, align 8, !tbaa !40
  %209 = getelementptr inbounds i8, ptr %206, i64 48
  %210 = load ptr, ptr %209, align 8, !tbaa !41
  %211 = tail call i32 @update_d(ptr noundef nonnull %0, ptr noundef %208, ptr noundef %210) #5
  %212 = load ptr, ptr %4, align 8, !tbaa !12
  %213 = getelementptr inbounds i8, ptr %212, i64 44
  %214 = load i32, ptr %213, align 4, !tbaa !18
  %215 = icmp slt i32 %34, %214
  br i1 %215, label %29, label %._crit_edge164.loopexit, !llvm.loop !42

._crit_edge164.loopexit:                          ; preds = %73, %._crit_edge, %36, %.loopexit138, %63
  %.0113.lcssa.ph = phi double [ %.0113160, %63 ], [ %.0113160, %73 ], [ %.0113160, %._crit_edge ], [ %.0113160, %36 ], [ %.1114, %.loopexit138 ]
  %.1119.ph = phi i32 [ 1, %63 ], [ -3, %73 ], [ 1, %._crit_edge ], [ %32, %36 ], [ %32, %.loopexit138 ]
  %.pre211 = load ptr, ptr %4, align 8, !tbaa !12
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre211, i64 44
  %.pre212 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !18
  br label %._crit_edge164

._crit_edge164:                                   ; preds = %._crit_edge164.loopexit, %.preheader140
  %216 = phi i32 [ %16, %.preheader140 ], [ %.pre212, %._crit_edge164.loopexit ]
  %.0113.lcssa = phi double [ %7, %.preheader140 ], [ %.0113.lcssa.ph, %._crit_edge164.loopexit ]
  %.1119 = phi i32 [ undef, %.preheader140 ], [ %.1119.ph, %._crit_edge164.loopexit ]
  %.1117 = phi i32 [ 0, %.preheader140 ], [ %34, %._crit_edge164.loopexit ]
  %.not125 = icmp slt i32 %.1117, %216
  %spec.select = select i1 %.not125, i32 %.1119, i32 -4
  %217 = getelementptr inbounds i8, ptr %0, i64 48
  %218 = load ptr, ptr %217, align 8, !tbaa !22
  %219 = icmp eq ptr %218, null
  br i1 %219, label %220, label %.loopexit

220:                                              ; preds = %._crit_edge164
  %221 = getelementptr inbounds i8, ptr %0, i64 80
  %222 = load ptr, ptr %221, align 8, !tbaa !23
  %223 = icmp eq ptr %222, null
  br i1 %223, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %220
  %224 = getelementptr inbounds i8, ptr %0, i64 184
  %225 = load i32, ptr %224, align 8, !tbaa !26
  %226 = icmp sgt i32 %225, 0
  br i1 %226, label %.lr.ph181, label %.loopexit

.lr.ph181:                                        ; preds = %.preheader
  %227 = getelementptr inbounds i8, ptr %0, i64 112
  %228 = load ptr, ptr %227, align 8, !tbaa !43
  %wide.trip.count204 = zext nneg i32 %225 to i64
  %min.iters.check261 = icmp eq i32 %225, 1
  br i1 %min.iters.check261, label %scalar.ph260.preheader, label %vector.ph262

vector.ph262:                                     ; preds = %.lr.ph181
  %n.vec264 = and i64 %wide.trip.count204, 2147483646
  %broadcast.splatinsert269 = insertelement <2 x double> poison, double %.0113.lcssa, i64 0
  %broadcast.splat270 = shufflevector <2 x double> %broadcast.splatinsert269, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body266

vector.body266:                                   ; preds = %vector.body266, %vector.ph262
  %index267 = phi i64 [ 0, %vector.ph262 ], [ %index.next271, %vector.body266 ]
  %229 = getelementptr inbounds double, ptr %228, i64 %index267
  %wide.load268 = load <2 x double>, ptr %229, align 8, !tbaa !17
  %230 = fdiv <2 x double> %wide.load268, %broadcast.splat270
  store <2 x double> %230, ptr %229, align 8, !tbaa !17
  %index.next271 = add nuw i64 %index267, 2
  %231 = icmp eq i64 %index.next271, %n.vec264
  br i1 %231, label %middle.block259, label %vector.body266, !llvm.loop !44

middle.block259:                                  ; preds = %vector.body266
  %cmp.n272 = icmp eq i64 %n.vec264, %wide.trip.count204
  br i1 %cmp.n272, label %.loopexit, label %scalar.ph260.preheader

scalar.ph260.preheader:                           ; preds = %middle.block259, %.lr.ph181
  %indvars.iv201.ph = phi i64 [ 0, %.lr.ph181 ], [ %n.vec264, %middle.block259 ]
  br label %scalar.ph260

scalar.ph260:                                     ; preds = %scalar.ph260.preheader, %scalar.ph260
  %indvars.iv201 = phi i64 [ %indvars.iv.next202, %scalar.ph260 ], [ %indvars.iv201.ph, %scalar.ph260.preheader ]
  %232 = getelementptr inbounds double, ptr %228, i64 %indvars.iv201
  %233 = load double, ptr %232, align 8, !tbaa !17
  %234 = fdiv double %233, %.0113.lcssa
  store double %234, ptr %232, align 8, !tbaa !17
  %indvars.iv.next202 = add nuw nsw i64 %indvars.iv201, 1
  %exitcond205.not = icmp eq i64 %indvars.iv.next202, %wide.trip.count204
  br i1 %exitcond205.not, label %.loopexit, label %scalar.ph260, !llvm.loop !45

.loopexit:                                        ; preds = %scalar.ph260, %middle.block259, %.preheader, %220, %._crit_edge164
  %235 = getelementptr inbounds i8, ptr %0, i64 188
  store i32 %.1117, ptr %235, align 4, !tbaa !21
  br label %.loopexit141

.loopexit141:                                     ; preds = %115, %29, %.loopexit
  %.0110 = phi i32 [ %spec.select, %.loopexit ], [ 1, %115 ], [ %32, %29 ]
  ret i32 %.0110
}

declare i32 @daqp_ldp(ptr noundef) local_unnamed_addr #1

declare void @ldp2qp_solution(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @gradient_step(ptr noundef) local_unnamed_addr #0

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

declare void @update_v(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @update_d(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !11, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !10, i64 168, !7, i64 176, !10, i64 184, !10, i64 188, !10, i64 192, !11, i64 200, !7, i64 208, !7, i64 216, !10, i64 224, !7, i64 232}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !7, i64 208}
!13 = !{!14, !11, i64 56}
!14 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !10, i64 40, !10, i64 44, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88}
!15 = !{!14, !11, i64 64}
!16 = !{!6, !7, i64 88}
!17 = !{!11, !11, i64 0}
!18 = !{!14, !10, i64 44}
!19 = !{!6, !7, i64 96}
!20 = !{!6, !7, i64 120}
!21 = !{!6, !10, i64 188}
!22 = !{!6, !7, i64 48}
!23 = !{!6, !7, i64 80}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!6, !10, i64 184}
!27 = !{!6, !7, i64 0}
!28 = !{!29, !7, i64 24}
!29 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !10, i64 72}
!30 = distinct !{!30, !25}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.unroll.disable"}
!33 = !{!6, !7, i64 56}
!34 = distinct !{!34, !25, !35, !36}
!35 = !{!"llvm.loop.isvectorized", i32 1}
!36 = !{!"llvm.loop.unroll.runtime.disable"}
!37 = distinct !{!37, !25, !35}
!38 = distinct !{!38, !25, !35, !36}
!39 = distinct !{!39, !25, !35}
!40 = !{!29, !7, i64 40}
!41 = !{!29, !7, i64 48}
!42 = distinct !{!42, !25}
!43 = !{!6, !7, i64 112}
!44 = distinct !{!44, !25, !35, !36}
!45 = distinct !{!45, !25, !36, !35}


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