; LLVM IR from simbody/simbody :: SimTKmath/Integrators/src/CPodes/sundials/src/cpodes (cpodes_root)

; 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.CPodeMemRec = type { double, i32, ptr, ptr, ptr, i32, i32, i32, double, double, ptr, ptr, ptr, [13 x ptr], ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, [14 x double], [6 x double], [13 x double], [13 x double], double, double, double, double, double, double, double, i32, i32, i32, i32, i64, i64, i32, i32, ptr, ptr, ptr, ptr, double, ptr, ptr, ptr, i64, i64, double, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i64, i64, i64, i64, i32, i32, ptr, ptr, i32, i32, double, double, ptr, [13 x ptr], ptr, ptr, ptr, ptr, double, i64, i64, i32, i32, i32, i64, i64, i32, i32, double, i32, i64, i32, i32, i32, i32, double, double, double, i64, i64, i64, i64, i64, i64, i32, double, double, double, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i64, double, double, double, i32, double, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, [6 x [4 x double]], i32, i64, i32, ptr, i32, ptr, ptr, ptr, ptr, double, double, double, ptr, ptr, ptr, double, i32, i32, i64, double, double, i32, i32, ptr, ptr }

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

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

declare double @RAbs(double noundef) #1

declare void @N_VLinearSum(double noundef, ptr noundef, double noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @cpRcheck2(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.CPodeMemRec, ptr %11, i32 0, i32 166
  %13 = load double, ptr %12, align 8, !tbaa !9
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.CPodeMemRec, ptr %14, i32 0, i32 165
  store double %13, ptr %15, align 8, !tbaa !14
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.CPodeMemRec, ptr %17, i32 0, i32 165
  %19 = load double, ptr %18, align 8, !tbaa !14
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.CPodeMemRec, ptr %20, i32 0, i32 15
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.CPodeMemRec, ptr %23, i32 0, i32 16
  %25 = load ptr, ptr %24, align 8, !tbaa !16
  %26 = call i32 @cpGetSolution(ptr noundef %16, double noundef %19, ptr noundef %22, ptr noundef %25)
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.CPodeMemRec, ptr %27, i32 0, i32 159
  %29 = load ptr, ptr %28, align 8, !tbaa !17
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.CPodeMemRec, ptr %30, i32 0, i32 165
  %32 = load double, ptr %31, align 8, !tbaa !14
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.CPodeMemRec, ptr %33, i32 0, i32 15
  %35 = load ptr, ptr %34, align 8, !tbaa !15
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.CPodeMemRec, ptr %36, i32 0, i32 16
  %38 = load ptr, ptr %37, align 8, !tbaa !16
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.CPodeMemRec, ptr %39, i32 0, i32 168
  %41 = load ptr, ptr %40, align 8, !tbaa !18
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.CPodeMemRec, ptr %42, i32 0, i32 161
  %44 = load ptr, ptr %43, align 8, !tbaa !19
  %45 = call i32 %29(double noundef %32, ptr noundef %35, ptr noundef %38, ptr noundef %41, ptr noundef %44)
  store i32 %45, ptr %5, align 4, !tbaa !20
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.CPodeMemRec, ptr %46, i32 0, i32 174
  %48 = load i64, ptr %47, align 8, !tbaa !21
  %49 = add nsw i64 %48, 1
  store i64 %49, ptr %47, align 8, !tbaa !21
  %50 = load i32, ptr %5, align 4, !tbaa !20
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %1
  store i32 -12, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %303

53:                                               ; preds = %1
  store i32 0, ptr %4, align 4, !tbaa !20
  br label %54

54:                                               ; preds = %74, %53
  %55 = load i32, ptr %4, align 4, !tbaa !20
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.CPodeMemRec, ptr %56, i32 0, i32 160
  %58 = load i32, ptr %57, align 8, !tbaa !22
  %59 = icmp slt i32 %55, %58
  br i1 %59, label %60, label %77

60:                                               ; preds = %54
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.CPodeMemRec, ptr %61, i32 0, i32 168
  %63 = load ptr, ptr %62, align 8, !tbaa !18
  %64 = load i32, ptr %4, align 4, !tbaa !20
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds double, ptr %63, i64 %65
  %67 = load double, ptr %66, align 8, !tbaa !23
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.CPodeMemRec, ptr %68, i32 0, i32 169
  %70 = load ptr, ptr %69, align 8, !tbaa !24
  %71 = load i32, ptr %4, align 4, !tbaa !20
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds double, ptr %70, i64 %72
  store double %67, ptr %73, align 8, !tbaa !23
  br label %74

74:                                               ; preds = %60
  %75 = load i32, ptr %4, align 4, !tbaa !20
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %4, align 4, !tbaa !20
  br label %54, !llvm.loop !25

77:                                               ; preds = %54
  store i32 0, ptr %9, align 4, !tbaa !20
  store i32 0, ptr %4, align 4, !tbaa !20
  br label %78

78:                                               ; preds = %91, %77
  %79 = load i32, ptr %4, align 4, !tbaa !20
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.CPodeMemRec, ptr %80, i32 0, i32 160
  %82 = load i32, ptr %81, align 8, !tbaa !22
  %83 = icmp slt i32 %79, %82
  br i1 %83, label %84, label %94

84:                                               ; preds = %78
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.CPodeMemRec, ptr %85, i32 0, i32 163
  %87 = load ptr, ptr %86, align 8, !tbaa !27
  %88 = load i32, ptr %4, align 4, !tbaa !20
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds i32, ptr %87, i64 %89
  store i32 0, ptr %90, align 4, !tbaa !20
  br label %91

91:                                               ; preds = %84
  %92 = load i32, ptr %4, align 4, !tbaa !20
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %4, align 4, !tbaa !20
  br label %78, !llvm.loop !28

94:                                               ; preds = %78
  store i32 0, ptr %4, align 4, !tbaa !20
  br label %95

95:                                               ; preds = %129, %94
  %96 = load i32, ptr %4, align 4, !tbaa !20
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.CPodeMemRec, ptr %97, i32 0, i32 160
  %99 = load i32, ptr %98, align 8, !tbaa !22
  %100 = icmp slt i32 %96, %99
  br i1 %100, label %101, label %132

101:                                              ; preds = %95
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.CPodeMemRec, ptr %102, i32 0, i32 162
  %104 = load ptr, ptr %103, align 8, !tbaa !29
  %105 = load i32, ptr %4, align 4, !tbaa !20
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds i32, ptr %104, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !20
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %111, label %110

110:                                              ; preds = %101
  br label %129

111:                                              ; preds = %101
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.CPodeMemRec, ptr %112, i32 0, i32 168
  %114 = load ptr, ptr %113, align 8, !tbaa !18
  %115 = load i32, ptr %4, align 4, !tbaa !20
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds double, ptr %114, i64 %116
  %118 = load double, ptr %117, align 8, !tbaa !23
  %119 = call double @RAbs(double noundef %118)
  %120 = fcmp oeq double %119, 0.000000e+00
  br i1 %120, label %121, label %128

121:                                              ; preds = %111
  store i32 1, ptr %9, align 4, !tbaa !20
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.CPodeMemRec, ptr %122, i32 0, i32 163
  %124 = load ptr, ptr %123, align 8, !tbaa !27
  %125 = load i32, ptr %4, align 4, !tbaa !20
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds i32, ptr %124, i64 %126
  store i32 1, ptr %127, align 4, !tbaa !20
  br label %128

128:                                              ; preds = %121, %111
  br label %129

129:                                              ; preds = %128, %110
  %130 = load i32, ptr %4, align 4, !tbaa !20
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %4, align 4, !tbaa !20
  br label %95, !llvm.loop !30

132:                                              ; preds = %95
  %133 = load i32, ptr %9, align 4, !tbaa !20
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %136, label %135

135:                                              ; preds = %132
  store i32 0, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %303

136:                                              ; preds = %132
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.CPodeMemRec, ptr %137, i32 0, i32 31
  %139 = load double, ptr %138, align 8, !tbaa !31
  %140 = call double @RAbs(double noundef %139)
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.CPodeMemRec, ptr %141, i32 0, i32 26
  %143 = load double, ptr %142, align 8, !tbaa !32
  %144 = call double @RAbs(double noundef %143)
  %145 = fadd double %140, %144
  %146 = load ptr, ptr %3, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.CPodeMemRec, ptr %146, i32 0, i32 0
  %148 = load double, ptr %147, align 8, !tbaa !33
  %149 = fmul double %145, %148
  %150 = fmul double %149, 1.000000e+02
  store double %150, ptr %6, align 8, !tbaa !23
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.CPodeMemRec, ptr %151, i32 0, i32 26
  %153 = load double, ptr %152, align 8, !tbaa !32
  %154 = fcmp ogt double %153, 0.000000e+00
  br i1 %154, label %155, label %157

155:                                              ; preds = %136
  %156 = load double, ptr %6, align 8, !tbaa !23
  br label %160

157:                                              ; preds = %136
  %158 = load double, ptr %6, align 8, !tbaa !23
  %159 = fneg double %158
  br label %160

160:                                              ; preds = %157, %155
  %161 = phi double [ %156, %155 ], [ %159, %157 ]
  store double %161, ptr %7, align 8, !tbaa !23
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.CPodeMemRec, ptr %162, i32 0, i32 165
  %164 = load double, ptr %163, align 8, !tbaa !14
  %165 = load double, ptr %7, align 8, !tbaa !23
  %166 = fadd double %164, %165
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.CPodeMemRec, ptr %167, i32 0, i32 166
  store double %166, ptr %168, align 8, !tbaa !9
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.CPodeMemRec, ptr %169, i32 0, i32 166
  %171 = load double, ptr %170, align 8, !tbaa !9
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.CPodeMemRec, ptr %172, i32 0, i32 31
  %174 = load double, ptr %173, align 8, !tbaa !31
  %175 = fsub double %171, %174
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.CPodeMemRec, ptr %176, i32 0, i32 26
  %178 = load double, ptr %177, align 8, !tbaa !32
  %179 = fmul double %175, %178
  %180 = fcmp oge double %179, 0.000000e+00
  br i1 %180, label %181, label %198

181:                                              ; preds = %160
  %182 = load double, ptr %7, align 8, !tbaa !23
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.CPodeMemRec, ptr %183, i32 0, i32 26
  %185 = load double, ptr %184, align 8, !tbaa !32
  %186 = fdiv double %182, %185
  store double %186, ptr %8, align 8, !tbaa !23
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.CPodeMemRec, ptr %187, i32 0, i32 15
  %189 = load ptr, ptr %188, align 8, !tbaa !15
  %190 = load double, ptr %8, align 8, !tbaa !23
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.CPodeMemRec, ptr %191, i32 0, i32 13
  %193 = getelementptr inbounds [13 x ptr], ptr %192, i64 0, i64 1
  %194 = load ptr, ptr %193, align 8, !tbaa !5
  %195 = load ptr, ptr %3, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.CPodeMemRec, ptr %195, i32 0, i32 15
  %197 = load ptr, ptr %196, align 8, !tbaa !15
  call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %189, double noundef %190, ptr noundef %194, ptr noundef %197)
  br label %210

198:                                              ; preds = %160
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.CPodeMemRec, ptr %200, i32 0, i32 166
  %202 = load double, ptr %201, align 8, !tbaa !9
  %203 = load ptr, ptr %3, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.CPodeMemRec, ptr %203, i32 0, i32 15
  %205 = load ptr, ptr %204, align 8, !tbaa !15
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.CPodeMemRec, ptr %206, i32 0, i32 16
  %208 = load ptr, ptr %207, align 8, !tbaa !16
  %209 = call i32 @cpGetSolution(ptr noundef %199, double noundef %202, ptr noundef %205, ptr noundef %208)
  br label %210

210:                                              ; preds = %198, %181
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.CPodeMemRec, ptr %211, i32 0, i32 159
  %213 = load ptr, ptr %212, align 8, !tbaa !17
  %214 = load ptr, ptr %3, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.CPodeMemRec, ptr %214, i32 0, i32 166
  %216 = load double, ptr %215, align 8, !tbaa !9
  %217 = load ptr, ptr %3, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.CPodeMemRec, ptr %217, i32 0, i32 15
  %219 = load ptr, ptr %218, align 8, !tbaa !15
  %220 = load ptr, ptr %3, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.CPodeMemRec, ptr %220, i32 0, i32 16
  %222 = load ptr, ptr %221, align 8, !tbaa !16
  %223 = load ptr, ptr %3, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.CPodeMemRec, ptr %223, i32 0, i32 169
  %225 = load ptr, ptr %224, align 8, !tbaa !24
  %226 = load ptr, ptr %3, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.CPodeMemRec, ptr %226, i32 0, i32 161
  %228 = load ptr, ptr %227, align 8, !tbaa !19
  %229 = call i32 %213(double noundef %216, ptr noundef %219, ptr noundef %222, ptr noundef %225, ptr noundef %228)
  store i32 %229, ptr %5, align 4, !tbaa !20
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.CPodeMemRec, ptr %230, i32 0, i32 174
  %232 = load i64, ptr %231, align 8, !tbaa !21
  %233 = add nsw i64 %232, 1
  store i64 %233, ptr %231, align 8, !tbaa !21
  %234 = load i32, ptr %5, align 4, !tbaa !20
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %237

236:                                              ; preds = %210
  store i32 -12, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %303

237:                                              ; preds = %210
  store i32 0, ptr %9, align 4, !tbaa !20
  store i32 0, ptr %4, align 4, !tbaa !20
  br label %238

238:                                              ; preds = %295, %237
  %239 = load i32, ptr %4, align 4, !tbaa !20
  %240 = load ptr, ptr %3, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.CPodeMemRec, ptr %240, i32 0, i32 160
  %242 = load i32, ptr %241, align 8, !tbaa !22
  %243 = icmp slt i32 %239, %242
  br i1 %243, label %244, label %298

244:                                              ; preds = %238
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.CPodeMemRec, ptr %245, i32 0, i32 169
  %247 = load ptr, ptr %246, align 8, !tbaa !24
  %248 = load i32, ptr %4, align 4, !tbaa !20
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds double, ptr %247, i64 %249
  %251 = load double, ptr %250, align 8, !tbaa !23
  %252 = call double @RAbs(double noundef %251)
  %253 = fcmp oeq double %252, 0.000000e+00
  br i1 %253, label %254, label %294

254:                                              ; preds = %244
  %255 = load ptr, ptr %3, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.CPodeMemRec, ptr %255, i32 0, i32 162
  %257 = load ptr, ptr %256, align 8, !tbaa !29
  %258 = load i32, ptr %4, align 4, !tbaa !20
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds i32, ptr %257, i64 %259
  %261 = load i32, ptr %260, align 4, !tbaa !20
  %262 = icmp ne i32 %261, 0
  br i1 %262, label %264, label %263

263:                                              ; preds = %254
  br label %295

264:                                              ; preds = %254
  %265 = load ptr, ptr %3, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.CPodeMemRec, ptr %265, i32 0, i32 163
  %267 = load ptr, ptr %266, align 8, !tbaa !27
  %268 = load i32, ptr %4, align 4, !tbaa !20
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds i32, ptr %267, i64 %269
  %271 = load i32, ptr %270, align 4, !tbaa !20
  %272 = icmp eq i32 %271, 1
  br i1 %272, label %273, label %286

273:                                              ; preds = %264
  %274 = load ptr, ptr %3, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.CPodeMemRec, ptr %274, i32 0, i32 163
  %276 = load ptr, ptr %275, align 8, !tbaa !27
  %277 = load i32, ptr %4, align 4, !tbaa !20
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds i32, ptr %276, i64 %278
  store i32 0, ptr %279, align 4, !tbaa !20
  %280 = load ptr, ptr %3, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.CPodeMemRec, ptr %280, i32 0, i32 162
  %282 = load ptr, ptr %281, align 8, !tbaa !29
  %283 = load i32, ptr %4, align 4, !tbaa !20
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds i32, ptr %282, i64 %284
  store i32 0, ptr %285, align 4, !tbaa !20
  br label %293

286:                                              ; preds = %264
  %287 = load ptr, ptr %3, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.CPodeMemRec, ptr %287, i32 0, i32 163
  %289 = load ptr, ptr %288, align 8, !tbaa !27
  %290 = load i32, ptr %4, align 4, !tbaa !20
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds i32, ptr %289, i64 %291
  store i32 1, ptr %292, align 4, !tbaa !20
  store i32 1, ptr %9, align 4, !tbaa !20
  br label %293

293:                                              ; preds = %286, %273
  br label %294

294:                                              ; preds = %293, %244
  br label %295

295:                                              ; preds = %294, %263
  %296 = load i32, ptr %4, align 4, !tbaa !20
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %4, align 4, !tbaa !20
  br label %238, !llvm.loop !34

298:                                              ; preds = %238
  %299 = load i32, ptr %9, align 4, !tbaa !20
  %300 = icmp ne i32 %299, 0
  br i1 %300, label %301, label %302

301:                                              ; preds = %298
  store i32 1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %303

302:                                              ; preds = %298
  store i32 0, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %303

303:                                              ; preds = %302, %301, %236, %135, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  %304 = load i32, ptr %2, align 4
  ret i32 %304
}

declare i32 @cpGetSolution(ptr noundef, double noundef, ptr noundef, ptr noundef) #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 1904}
!10 = !{!"CPodeMemRec", !11, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 44, !12, i64 48, !11, i64 56, !11, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !7, i64 96, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !11, i64 272, !11, i64 280, !11, i64 288, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320, !11, i64 328, !7, i64 336, !7, i64 448, !7, i64 496, !7, i64 600, !11, i64 704, !11, i64 712, !11, i64 720, !11, i64 728, !11, i64 736, !11, i64 744, !11, i64 752, !12, i64 760, !12, i64 764, !12, i64 768, !12, i64 772, !13, i64 776, !13, i64 784, !12, i64 792, !12, i64 796, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !11, i64 832, !6, i64 840, !6, i64 848, !6, i64 856, !13, i64 864, !13, i64 872, !11, i64 880, !12, i64 888, !12, i64 892, !12, i64 896, !6, i64 904, !6, i64 912, !6, i64 920, !6, i64 928, !12, i64 936, !13, i64 944, !13, i64 952, !13, i64 960, !13, i64 968, !12, i64 976, !12, i64 980, !6, i64 984, !6, i64 992, !12, i64 1000, !12, i64 1004, !11, i64 1008, !11, i64 1016, !6, i64 1024, !7, i64 1032, !6, i64 1136, !6, i64 1144, !6, i64 1152, !6, i64 1160, !11, i64 1168, !13, i64 1176, !13, i64 1184, !12, i64 1192, !12, i64 1196, !12, i64 1200, !13, i64 1208, !13, i64 1216, !12, i64 1224, !12, i64 1228, !11, i64 1232, !12, i64 1240, !13, i64 1248, !12, i64 1256, !12, i64 1260, !12, i64 1264, !12, i64 1268, !11, i64 1272, !11, i64 1280, !11, i64 1288, !13, i64 1296, !13, i64 1304, !13, i64 1312, !13, i64 1320, !13, i64 1328, !13, i64 1336, !12, i64 1344, !11, i64 1352, !11, i64 1360, !11, i64 1368, !13, i64 1376, !13, i64 1384, !13, i64 1392, !13, i64 1400, !13, i64 1408, !13, i64 1416, !6, i64 1424, !6, i64 1432, !6, i64 1440, !6, i64 1448, !6, i64 1456, !12, i64 1464, !6, i64 1472, !6, i64 1480, !6, i64 1488, !6, i64 1496, !6, i64 1504, !6, i64 1512, !12, i64 1520, !12, i64 1524, !13, i64 1528, !11, i64 1536, !11, i64 1544, !11, i64 1552, !12, i64 1560, !11, i64 1568, !12, i64 1576, !12, i64 1580, !12, i64 1584, !12, i64 1588, !12, i64 1592, !12, i64 1596, !6, i64 1600, !6, i64 1608, !6, i64 1616, !12, i64 1624, !7, i64 1632, !12, i64 1824, !13, i64 1832, !12, i64 1840, !6, i64 1848, !12, i64 1856, !6, i64 1864, !6, i64 1872, !6, i64 1880, !6, i64 1888, !11, i64 1896, !11, i64 1904, !11, i64 1912, !6, i64 1920, !6, i64 1928, !6, i64 1936, !11, i64 1944, !12, i64 1952, !12, i64 1956, !13, i64 1960, !11, i64 1968, !11, i64 1976, !12, i64 1984, !12, i64 1988, !6, i64 1992, !6, i64 2000}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !11, i64 1896}
!15 = !{!10, !6, i64 208}
!16 = !{!10, !6, i64 216}
!17 = !{!10, !6, i64 1848}
!18 = !{!10, !6, i64 1920}
!19 = !{!10, !6, i64 1864}
!20 = !{!12, !12, i64 0}
!21 = !{!10, !13, i64 1960}
!22 = !{!10, !12, i64 1856}
!23 = !{!11, !11, i64 0}
!24 = !{!10, !6, i64 1928}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!10, !6, i64 1880}
!28 = distinct !{!28, !26}
!29 = !{!10, !6, i64 1872}
!30 = distinct !{!30, !26}
!31 = !{!10, !11, i64 320}
!32 = !{!10, !11, i64 280}
!33 = !{!10, !11, i64 0}
!34 = distinct !{!34, !26}


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

declare double @RAbs(double noundef) local_unnamed_addr #0

declare void @N_VLinearSum(double noundef, ptr noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 -12, 2) i32 @cpRcheck2(ptr noundef %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 1904
  %3 = load double, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 1896
  store double %3, ptr %4, align 8, !tbaa !13
  %5 = getelementptr inbounds i8, ptr %0, i64 208
  %6 = load ptr, ptr %5, align 8, !tbaa !14
  %7 = getelementptr inbounds i8, ptr %0, i64 216
  %8 = load ptr, ptr %7, align 8, !tbaa !15
  %9 = tail call i32 @cpGetSolution(ptr noundef %0, double noundef %3, ptr noundef %6, ptr noundef %8) #2
  %10 = getelementptr inbounds i8, ptr %0, i64 1848
  %11 = load ptr, ptr %10, align 8, !tbaa !16
  %12 = load double, ptr %4, align 8, !tbaa !13
  %13 = load ptr, ptr %5, align 8, !tbaa !14
  %14 = load ptr, ptr %7, align 8, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %0, i64 1920
  %16 = load ptr, ptr %15, align 8, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %0, i64 1864
  %18 = load ptr, ptr %17, align 8, !tbaa !18
  %19 = tail call i32 %11(double noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %16, ptr noundef %18) #2
  %20 = getelementptr inbounds i8, ptr %0, i64 1960
  %21 = load i64, ptr %20, align 8, !tbaa !19
  %22 = add nsw i64 %21, 1
  store i64 %22, ptr %20, align 8, !tbaa !19
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %.preheader94, label %._crit_edge104

.preheader94:                                     ; preds = %1
  %23 = getelementptr inbounds i8, ptr %0, i64 1856
  %24 = load i32, ptr %23, align 8, !tbaa !20
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph, label %._crit_edge104

.lr.ph:                                           ; preds = %.preheader94
  %26 = load ptr, ptr %15, align 8, !tbaa !17
  %27 = getelementptr inbounds i8, ptr %0, i64 1928
  %28 = load ptr, ptr %27, align 8, !tbaa !21
  %wide.trip.count = zext nneg i32 %24 to i64
  %min.iters.check = icmp ult i32 %24, 6
  %29 = ptrtoint ptr %28 to i64
  %30 = ptrtoint ptr %26 to i64
  %31 = sub i64 %29, %30
  %diff.check = icmp ult i64 %31, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %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 %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %32 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.prol
  %33 = load double, ptr %32, align 8, !tbaa !22
  %34 = getelementptr inbounds double, ptr %28, i64 %indvars.iv.prol
  store double %33, ptr %34, align 8, !tbaa !22
  %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 %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !23

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %35 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %36 = icmp ugt i64 %35, -4
  br i1 %36, label %.preheader93, label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %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 ]
  %37 = getelementptr inbounds double, ptr %26, i64 %index
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  %wide.load = load <2 x double>, ptr %37, align 8, !tbaa !22
  %wide.load126 = load <2 x double>, ptr %38, align 8, !tbaa !22
  %39 = getelementptr inbounds double, ptr %28, i64 %index
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  store <2 x double> %wide.load, ptr %39, align 8, !tbaa !22
  store <2 x double> %wide.load126, ptr %40, align 8, !tbaa !22
  %index.next = add nuw i64 %index, 4
  %41 = icmp eq i64 %index.next, %n.vec
  br i1 %41, 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 %.preheader93, label %scalar.ph.preheader

.preheader93:                                     ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  br i1 %25, label %.lr.ph97, label %._crit_edge104

.lr.ph97:                                         ; preds = %.preheader93
  %42 = getelementptr inbounds i8, ptr %0, i64 1880
  %43 = load ptr, ptr %42, align 8, !tbaa !29
  br label %60

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %44 = getelementptr inbounds double, ptr %26, i64 %indvars.iv
  %45 = load double, ptr %44, align 8, !tbaa !22
  %46 = getelementptr inbounds double, ptr %28, i64 %indvars.iv
  store double %45, ptr %46, align 8, !tbaa !22
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %47 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.next
  %48 = load double, ptr %47, align 8, !tbaa !22
  %49 = getelementptr inbounds double, ptr %28, i64 %indvars.iv.next
  store double %48, ptr %49, align 8, !tbaa !22
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %50 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.next.1
  %51 = load double, ptr %50, align 8, !tbaa !22
  %52 = getelementptr inbounds double, ptr %28, i64 %indvars.iv.next.1
  store double %51, ptr %52, align 8, !tbaa !22
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %53 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.next.2
  %54 = load double, ptr %53, align 8, !tbaa !22
  %55 = getelementptr inbounds double, ptr %28, i64 %indvars.iv.next.2
  store double %54, ptr %55, align 8, !tbaa !22
  %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 %.preheader93, label %scalar.ph, !llvm.loop !30

.preheader92:                                     ; preds = %60
  %56 = icmp sgt i32 %62, 0
  br i1 %56, label %.lr.ph100, label %._crit_edge104

.lr.ph100:                                        ; preds = %.preheader92
  %57 = getelementptr inbounds i8, ptr %0, i64 1872
  %58 = getelementptr inbounds i8, ptr %0, i64 1880
  br label %.outer

.outer:                                           ; preds = %.thread, %.lr.ph100
  %indvars.iv110.ph = phi i64 [ %indvars.iv.next111118, %.thread ], [ 0, %.lr.ph100 ]
  %59 = phi i1 [ false, %.thread ], [ true, %.lr.ph100 ]
  br label %65

60:                                               ; preds = %.lr.ph97, %60
  %indvars.iv107 = phi i64 [ 0, %.lr.ph97 ], [ %indvars.iv.next108, %60 ]
  %61 = getelementptr inbounds i32, ptr %43, i64 %indvars.iv107
  store i32 0, ptr %61, align 4, !tbaa !31
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %62 = load i32, ptr %23, align 8, !tbaa !20
  %63 = sext i32 %62 to i64
  %64 = icmp slt i64 %indvars.iv.next108, %63
  br i1 %64, label %60, label %.preheader92, !llvm.loop !32

65:                                               ; preds = %.outer, %75
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %75 ], [ %indvars.iv110.ph, %.outer ]
  %66 = load ptr, ptr %57, align 8, !tbaa !33
  %67 = getelementptr inbounds i32, ptr %66, i64 %indvars.iv110
  %68 = load i32, ptr %67, align 4, !tbaa !31
  %.not91 = icmp eq i32 %68, 0
  br i1 %.not91, label %75, label %69

69:                                               ; preds = %65
  %70 = load ptr, ptr %15, align 8, !tbaa !17
  %71 = getelementptr inbounds double, ptr %70, i64 %indvars.iv110
  %72 = load double, ptr %71, align 8, !tbaa !22
  %73 = tail call double @RAbs(double noundef %72) #2
  %74 = fcmp oeq double %73, 0.000000e+00
  br i1 %74, label %.thread, label %75

75:                                               ; preds = %69, %65
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %76 = load i32, ptr %23, align 8, !tbaa !20
  %77 = sext i32 %76 to i64
  %78 = icmp slt i64 %indvars.iv.next111, %77
  br i1 %78, label %65, label %._crit_edge, !llvm.loop !34

.thread:                                          ; preds = %69
  %79 = load ptr, ptr %58, align 8, !tbaa !29
  %80 = getelementptr inbounds i32, ptr %79, i64 %indvars.iv110
  store i32 1, ptr %80, align 4, !tbaa !31
  %indvars.iv.next111118 = add nuw nsw i64 %indvars.iv110, 1
  %81 = load i32, ptr %23, align 8, !tbaa !20
  %82 = sext i32 %81 to i64
  %83 = icmp slt i64 %indvars.iv.next111118, %82
  br i1 %83, label %.outer, label %._crit_edge.thread120, !llvm.loop !34

._crit_edge:                                      ; preds = %75
  br i1 %59, label %._crit_edge104, label %._crit_edge.thread120

._crit_edge.thread120:                            ; preds = %.thread, %._crit_edge
  %84 = getelementptr inbounds i8, ptr %0, i64 320
  %85 = load double, ptr %84, align 8, !tbaa !35
  %86 = tail call double @RAbs(double noundef %85) #2
  %87 = getelementptr inbounds i8, ptr %0, i64 280
  %88 = load double, ptr %87, align 8, !tbaa !36
  %89 = tail call double @RAbs(double noundef %88) #2
  %90 = fadd double %86, %89
  %91 = load double, ptr %0, align 8, !tbaa !37
  %92 = fmul double %90, %91
  %93 = fmul double %92, 1.000000e+02
  %94 = load double, ptr %87, align 8, !tbaa !36
  %95 = fcmp ogt double %94, 0.000000e+00
  %96 = fneg double %93
  %97 = select i1 %95, double %93, double %96
  %98 = load double, ptr %4, align 8, !tbaa !13
  %99 = fadd double %98, %97
  store double %99, ptr %2, align 8, !tbaa !5
  %100 = load double, ptr %84, align 8, !tbaa !35
  %101 = fsub double %99, %100
  %102 = fmul double %94, %101
  %103 = fcmp ult double %102, 0.000000e+00
  br i1 %103, label %109, label %104

104:                                              ; preds = %._crit_edge.thread120
  %105 = fdiv double %97, %94
  %106 = load ptr, ptr %5, align 8, !tbaa !14
  %107 = getelementptr inbounds i8, ptr %0, i64 104
  %108 = load ptr, ptr %107, align 8, !tbaa !38
  tail call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %106, double noundef %105, ptr noundef %108, ptr noundef %106) #2
  br label %113

109:                                              ; preds = %._crit_edge.thread120
  %110 = load ptr, ptr %5, align 8, !tbaa !14
  %111 = load ptr, ptr %7, align 8, !tbaa !15
  %112 = tail call i32 @cpGetSolution(ptr noundef nonnull %0, double noundef %99, ptr noundef %110, ptr noundef %111) #2
  br label %113

113:                                              ; preds = %109, %104
  %114 = load ptr, ptr %10, align 8, !tbaa !16
  %115 = load double, ptr %2, align 8, !tbaa !5
  %116 = load ptr, ptr %5, align 8, !tbaa !14
  %117 = load ptr, ptr %7, align 8, !tbaa !15
  %118 = getelementptr inbounds i8, ptr %0, i64 1928
  %119 = load ptr, ptr %118, align 8, !tbaa !21
  %120 = load ptr, ptr %17, align 8, !tbaa !18
  %121 = tail call i32 %114(double noundef %115, ptr noundef %116, ptr noundef %117, ptr noundef %119, ptr noundef %120) #2
  %122 = load i64, ptr %20, align 8, !tbaa !19
  %123 = add nsw i64 %122, 1
  store i64 %123, ptr %20, align 8, !tbaa !19
  %.not88 = icmp eq i32 %121, 0
  br i1 %.not88, label %.preheader, label %._crit_edge104

.preheader:                                       ; preds = %113
  %124 = load i32, ptr %23, align 8, !tbaa !20
  %125 = icmp sgt i32 %124, 0
  br i1 %125, label %.lr.ph103, label %._crit_edge104

.lr.ph103:                                        ; preds = %.preheader
  %126 = getelementptr inbounds i8, ptr %0, i64 1872
  %127 = getelementptr inbounds i8, ptr %0, i64 1880
  br label %128

128:                                              ; preds = %.lr.ph103, %145
  %indvars.iv113 = phi i64 [ 0, %.lr.ph103 ], [ %indvars.iv.next114, %145 ]
  %.2102 = phi i32 [ 0, %.lr.ph103 ], [ %.3, %145 ]
  %129 = load ptr, ptr %118, align 8, !tbaa !21
  %130 = getelementptr inbounds double, ptr %129, i64 %indvars.iv113
  %131 = load double, ptr %130, align 8, !tbaa !22
  %132 = tail call double @RAbs(double noundef %131) #2
  %133 = fcmp oeq double %132, 0.000000e+00
  br i1 %133, label %134, label %145

134:                                              ; preds = %128
  %135 = load ptr, ptr %126, align 8, !tbaa !33
  %136 = getelementptr inbounds i32, ptr %135, i64 %indvars.iv113
  %137 = load i32, ptr %136, align 4, !tbaa !31
  %.not90 = icmp eq i32 %137, 0
  br i1 %.not90, label %145, label %138

138:                                              ; preds = %134
  %139 = load ptr, ptr %127, align 8, !tbaa !29
  %140 = getelementptr inbounds i32, ptr %139, i64 %indvars.iv113
  %141 = load i32, ptr %140, align 4, !tbaa !31
  %142 = icmp eq i32 %141, 1
  br i1 %142, label %143, label %144

143:                                              ; preds = %138
  store i32 0, ptr %140, align 4, !tbaa !31
  store i32 0, ptr %136, align 4, !tbaa !31
  br label %145

144:                                              ; preds = %138
  store i32 1, ptr %140, align 4, !tbaa !31
  br label %145

145:                                              ; preds = %128, %144, %143, %134
  %.3 = phi i32 [ %.2102, %143 ], [ 1, %144 ], [ %.2102, %134 ], [ %.2102, %128 ]
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %146 = load i32, ptr %23, align 8, !tbaa !20
  %147 = sext i32 %146 to i64
  %148 = icmp slt i64 %indvars.iv.next114, %147
  br i1 %148, label %128, label %._crit_edge104.loopexit, !llvm.loop !39

._crit_edge104.loopexit:                          ; preds = %145
  %149 = icmp ne i32 %.3, 0
  %150 = zext i1 %149 to i32
  br label %._crit_edge104

._crit_edge104:                                   ; preds = %.preheader94, %.preheader93, %.preheader92, %.preheader, %._crit_edge104.loopexit, %113, %._crit_edge, %1
  %.082 = phi i32 [ -12, %1 ], [ 0, %._crit_edge ], [ -12, %113 ], [ 0, %.preheader ], [ %150, %._crit_edge104.loopexit ], [ 0, %.preheader92 ], [ 0, %.preheader93 ], [ 0, %.preheader94 ]
  ret i32 %.082
}

declare i32 @cpGetSolution(ptr noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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 1904}
!6 = !{!"CPodeMemRec", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !7, i64 56, !7, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !8, i64 96, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !7, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !8, i64 336, !8, i64 448, !8, i64 496, !8, i64 600, !7, i64 704, !7, i64 712, !7, i64 720, !7, i64 728, !7, i64 736, !7, i64 744, !7, i64 752, !10, i64 760, !10, i64 764, !10, i64 768, !10, i64 772, !12, i64 776, !12, i64 784, !10, i64 792, !10, i64 796, !11, i64 800, !11, i64 808, !11, i64 816, !11, i64 824, !7, i64 832, !11, i64 840, !11, i64 848, !11, i64 856, !12, i64 864, !12, i64 872, !7, i64 880, !10, i64 888, !10, i64 892, !10, i64 896, !11, i64 904, !11, i64 912, !11, i64 920, !11, i64 928, !10, i64 936, !12, i64 944, !12, i64 952, !12, i64 960, !12, i64 968, !10, i64 976, !10, i64 980, !11, i64 984, !11, i64 992, !10, i64 1000, !10, i64 1004, !7, i64 1008, !7, i64 1016, !11, i64 1024, !8, i64 1032, !11, i64 1136, !11, i64 1144, !11, i64 1152, !11, i64 1160, !7, i64 1168, !12, i64 1176, !12, i64 1184, !10, i64 1192, !10, i64 1196, !10, i64 1200, !12, i64 1208, !12, i64 1216, !10, i64 1224, !10, i64 1228, !7, i64 1232, !10, i64 1240, !12, i64 1248, !10, i64 1256, !10, i64 1260, !10, i64 1264, !10, i64 1268, !7, i64 1272, !7, i64 1280, !7, i64 1288, !12, i64 1296, !12, i64 1304, !12, i64 1312, !12, i64 1320, !12, i64 1328, !12, i64 1336, !10, i64 1344, !7, i64 1352, !7, i64 1360, !7, i64 1368, !12, i64 1376, !12, i64 1384, !12, i64 1392, !12, i64 1400, !12, i64 1408, !12, i64 1416, !11, i64 1424, !11, i64 1432, !11, i64 1440, !11, i64 1448, !11, i64 1456, !10, i64 1464, !11, i64 1472, !11, i64 1480, !11, i64 1488, !11, i64 1496, !11, i64 1504, !11, i64 1512, !10, i64 1520, !10, i64 1524, !12, i64 1528, !7, i64 1536, !7, i64 1544, !7, i64 1552, !10, i64 1560, !7, i64 1568, !10, i64 1576, !10, i64 1580, !10, i64 1584, !10, i64 1588, !10, i64 1592, !10, i64 1596, !11, i64 1600, !11, i64 1608, !11, i64 1616, !10, i64 1624, !8, i64 1632, !10, i64 1824, !12, i64 1832, !10, i64 1840, !11, i64 1848, !10, i64 1856, !11, i64 1864, !11, i64 1872, !11, i64 1880, !11, i64 1888, !7, i64 1896, !7, i64 1904, !7, i64 1912, !11, i64 1920, !11, i64 1928, !11, i64 1936, !7, i64 1944, !10, i64 1952, !10, i64 1956, !12, i64 1960, !7, i64 1968, !7, i64 1976, !10, i64 1984, !10, i64 1988, !11, i64 1992, !11, i64 2000}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !7, i64 1896}
!14 = !{!6, !11, i64 208}
!15 = !{!6, !11, i64 216}
!16 = !{!6, !11, i64 1848}
!17 = !{!6, !11, i64 1920}
!18 = !{!6, !11, i64 1864}
!19 = !{!6, !12, i64 1960}
!20 = !{!6, !10, i64 1856}
!21 = !{!6, !11, i64 1928}
!22 = !{!7, !7, i64 0}
!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 = !{!6, !11, i64 1880}
!30 = distinct !{!30, !26, !27}
!31 = !{!10, !10, i64 0}
!32 = distinct !{!32, !26}
!33 = !{!6, !11, i64 1872}
!34 = distinct !{!34, !26}
!35 = !{!6, !7, i64 320}
!36 = !{!6, !7, i64 280}
!37 = !{!6, !7, i64 0}
!38 = !{!11, !11, i64 0}
!39 = distinct !{!39, !26}


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