; LLVM IR from MBMS/C-CODE_FOR_MEMBRANE_BASED_MODEL :: CODE_MODEL/SegmentSolve.ll (ZN12SegmentSolve3jfcEPA4_dPdid)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [17 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12SegmentSolve3jfcEPA4_dPdid(ptr noundef nonnull align 8 dereferenceable(432) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, double noundef %4) #2 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store double %4, ptr %10, align 8, !tbaa !11
  %24 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store double 0.000000e+00, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store double 0.000000e+00, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store double 0.000000e+00, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %272, %5
  %26 = load i32, ptr %15, align 4, !tbaa !9
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = sub nsw i32 %27, 1
  %29 = icmp slt i32 %26, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %25
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %275

31:                                               ; preds = %25
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = load i32, ptr %15, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [4 x double], ptr %32, i64 %34
  %36 = load i32, ptr %15, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [4 x double], ptr %35, i64 0, i64 %37
  %39 = load double, ptr %38, align 8, !tbaa !11
  %40 = call noundef double @_ZSt3absd(double noundef %39)
  store double %40, ptr %12, align 8, !tbaa !11
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = load i32, ptr %15, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [4 x double], ptr %41, i64 %43
  %45 = load i32, ptr %15, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [4 x double], ptr %44, i64 0, i64 %46
  %48 = load double, ptr %47, align 8, !tbaa !11
  store double %48, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %49 = load i32, ptr %15, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %17, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %148, %31
  %52 = load i32, ptr %17, align 4, !tbaa !9
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %151

56:                                               ; preds = %51
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = load i32, ptr %17, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [4 x double], ptr %57, i64 %59
  %61 = load i32, ptr %15, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [4 x double], ptr %60, i64 0, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !11
  %65 = call noundef double @_ZSt3absd(double noundef %64)
  %66 = load double, ptr %12, align 8, !tbaa !11
  %67 = fcmp ogt double %65, %66
  br i1 %67, label %68, label %147

68:                                               ; preds = %56
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = load i32, ptr %17, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [4 x double], ptr %69, i64 %71
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [4 x double], ptr %72, i64 0, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !11
  %77 = call noundef double @_ZSt3absd(double noundef %76)
  store double %77, ptr %12, align 8, !tbaa !11
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = load i32, ptr %17, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [4 x double], ptr %78, i64 %80
  %82 = load i32, ptr %15, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [4 x double], ptr %81, i64 0, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !11
  store double %85, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %86 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %86, ptr %18, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %124, %68
  %88 = load i32, ptr %18, align 4, !tbaa !9
  %89 = load i32, ptr %9, align 4, !tbaa !9
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %127

92:                                               ; preds = %87
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = load i32, ptr %15, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [4 x double], ptr %93, i64 %95
  %97 = load i32, ptr %18, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [4 x double], ptr %96, i64 0, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !11
  store double %100, ptr %14, align 8, !tbaa !11
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = load i32, ptr %17, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [4 x double], ptr %101, i64 %103
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [4 x double], ptr %104, i64 0, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !11
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = load i32, ptr %15, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [4 x double], ptr %109, i64 %111
  %113 = load i32, ptr %18, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [4 x double], ptr %112, i64 0, i64 %114
  store double %108, ptr %115, align 8, !tbaa !11
  %116 = load double, ptr %14, align 8, !tbaa !11
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = load i32, ptr %17, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [4 x double], ptr %117, i64 %119
  %121 = load i32, ptr %18, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [4 x double], ptr %120, i64 0, i64 %122
  store double %116, ptr %123, align 8, !tbaa !11
  br label %124

124:                                              ; preds = %92
  %125 = load i32, ptr %18, align 4, !tbaa !9
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %18, align 4, !tbaa !9
  br label %87, !llvm.loop !13

127:                                              ; preds = %91
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = load i32, ptr %15, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds double, ptr %128, i64 %130
  %132 = load double, ptr %131, align 8, !tbaa !11
  store double %132, ptr %14, align 8, !tbaa !11
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = load i32, ptr %17, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds double, ptr %133, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !11
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = load i32, ptr %15, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds double, ptr %138, i64 %140
  store double %137, ptr %141, align 8, !tbaa !11
  %142 = load double, ptr %14, align 8, !tbaa !11
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = load i32, ptr %17, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds double, ptr %143, i64 %145
  store double %142, ptr %146, align 8, !tbaa !11
  br label %147

147:                                              ; preds = %127, %56
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %17, align 4, !tbaa !9
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %17, align 4, !tbaa !9
  br label %51, !llvm.loop !15

151:                                              ; preds = %55
  %152 = load double, ptr %12, align 8, !tbaa !11
  %153 = load double, ptr %10, align 8, !tbaa !11
  %154 = fcmp olt double %152, %153
  br i1 %154, label %155, label %158

155:                                              ; preds = %151
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %156, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %158

158:                                              ; preds = %155, %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %159 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %159, ptr %19, align 4, !tbaa !9
  br label %160

160:                                              ; preds = %183, %158
  %161 = load i32, ptr %19, align 4, !tbaa !9
  %162 = load i32, ptr %9, align 4, !tbaa !9
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %160
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %186

165:                                              ; preds = %160
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = load i32, ptr %15, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [4 x double], ptr %166, i64 %168
  %170 = load i32, ptr %19, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [4 x double], ptr %169, i64 0, i64 %171
  %173 = load double, ptr %172, align 8, !tbaa !11
  %174 = load double, ptr %13, align 8, !tbaa !11
  %175 = fdiv double %173, %174
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = load i32, ptr %15, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [4 x double], ptr %176, i64 %178
  %180 = load i32, ptr %19, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [4 x double], ptr %179, i64 0, i64 %181
  store double %175, ptr %182, align 8, !tbaa !11
  br label %183

183:                                              ; preds = %165
  %184 = load i32, ptr %19, align 4, !tbaa !9
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %19, align 4, !tbaa !9
  br label %160, !llvm.loop !16

186:                                              ; preds = %164
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = load i32, ptr %15, align 4, !tbaa !9
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds double, ptr %187, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !11
  %192 = load double, ptr %13, align 8, !tbaa !11
  %193 = fdiv double %191, %192
  %194 = load ptr, ptr %8, align 8, !tbaa !5
  %195 = load i32, ptr %15, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds double, ptr %194, i64 %196
  store double %193, ptr %197, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %198 = load i32, ptr %15, align 4, !tbaa !9
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %20, align 4, !tbaa !9
  br label %200

200:                                              ; preds = %268, %186
  %201 = load i32, ptr %20, align 4, !tbaa !9
  %202 = load i32, ptr %9, align 4, !tbaa !9
  %203 = icmp slt i32 %201, %202
  br i1 %203, label %205, label %204

204:                                              ; preds = %200
  store i32 14, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %271

205:                                              ; preds = %200
  %206 = load ptr, ptr %7, align 8, !tbaa !5
  %207 = load i32, ptr %20, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [4 x double], ptr %206, i64 %208
  %210 = load i32, ptr %15, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [4 x double], ptr %209, i64 0, i64 %211
  %213 = load double, ptr %212, align 8, !tbaa !11
  store double %213, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %214 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %214, ptr %21, align 4, !tbaa !9
  br label %215

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

219:                                              ; preds = %215
  store i32 17, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %250

220:                                              ; preds = %215
  %221 = load ptr, ptr %7, align 8, !tbaa !5
  %222 = load i32, ptr %20, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [4 x double], ptr %221, i64 %223
  %225 = load i32, ptr %21, align 4, !tbaa !9
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [4 x double], ptr %224, i64 0, i64 %226
  %228 = load double, ptr %227, align 8, !tbaa !11
  %229 = load ptr, ptr %7, align 8, !tbaa !5
  %230 = load i32, ptr %15, align 4, !tbaa !9
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [4 x double], ptr %229, i64 %231
  %233 = load i32, ptr %21, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [4 x double], ptr %232, i64 0, i64 %234
  %236 = load double, ptr %235, align 8, !tbaa !11
  %237 = load double, ptr %11, align 8, !tbaa !11
  %238 = fneg double %236
  %239 = call double @llvm.fmuladd.f64(double %238, double %237, double %228)
  %240 = load ptr, ptr %7, align 8, !tbaa !5
  %241 = load i32, ptr %20, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [4 x double], ptr %240, i64 %242
  %244 = load i32, ptr %21, align 4, !tbaa !9
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [4 x double], ptr %243, i64 0, i64 %245
  store double %239, ptr %246, align 8, !tbaa !11
  br label %247

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

250:                                              ; preds = %219
  %251 = load ptr, ptr %8, align 8, !tbaa !5
  %252 = load i32, ptr %20, align 4, !tbaa !9
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds double, ptr %251, i64 %253
  %255 = load double, ptr %254, align 8, !tbaa !11
  %256 = load ptr, ptr %8, align 8, !tbaa !5
  %257 = load i32, ptr %15, align 4, !tbaa !9
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds double, ptr %256, i64 %258
  %260 = load double, ptr %259, align 8, !tbaa !11
  %261 = load double, ptr %11, align 8, !tbaa !11
  %262 = fneg double %260
  %263 = call double @llvm.fmuladd.f64(double %262, double %261, double %255)
  %264 = load ptr, ptr %8, align 8, !tbaa !5
  %265 = load i32, ptr %20, align 4, !tbaa !9
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds double, ptr %264, i64 %266
  store double %263, ptr %267, align 8, !tbaa !11
  br label %268

268:                                              ; preds = %250
  %269 = load i32, ptr %20, align 4, !tbaa !9
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %20, align 4, !tbaa !9
  br label %200, !llvm.loop !18

271:                                              ; preds = %204
  br label %272

272:                                              ; preds = %271
  %273 = load i32, ptr %15, align 4, !tbaa !9
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %15, align 4, !tbaa !9
  br label %25, !llvm.loop !19

275:                                              ; preds = %30
  %276 = load ptr, ptr %8, align 8, !tbaa !5
  %277 = load i32, ptr %9, align 4, !tbaa !9
  %278 = sub nsw i32 %277, 1
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds double, ptr %276, i64 %279
  %281 = load double, ptr %280, align 8, !tbaa !11
  %282 = load ptr, ptr %7, align 8, !tbaa !5
  %283 = load i32, ptr %9, align 4, !tbaa !9
  %284 = sub nsw i32 %283, 1
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [4 x double], ptr %282, i64 %285
  %287 = load i32, ptr %9, align 4, !tbaa !9
  %288 = sub nsw i32 %287, 1
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [4 x double], ptr %286, i64 0, i64 %289
  %291 = load double, ptr %290, align 8, !tbaa !11
  %292 = fdiv double %281, %291
  %293 = load ptr, ptr %8, align 8, !tbaa !5
  %294 = load i32, ptr %9, align 4, !tbaa !9
  %295 = sub nsw i32 %294, 1
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds double, ptr %293, i64 %296
  store double %292, ptr %297, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %298 = load i32, ptr %9, align 4, !tbaa !9
  %299 = sub nsw i32 %298, 1
  store i32 %299, ptr %22, align 4, !tbaa !9
  br label %300

300:                                              ; preds = %340, %275
  %301 = load i32, ptr %22, align 4, !tbaa !9
  %302 = icmp sgt i32 %301, -1
  br i1 %302, label %304, label %303

303:                                              ; preds = %300
  store i32 20, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %343

304:                                              ; preds = %300
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %305 = load i32, ptr %22, align 4, !tbaa !9
  %306 = sub nsw i32 %305, 1
  store i32 %306, ptr %23, align 4, !tbaa !9
  br label %307

307:                                              ; preds = %336, %304
  %308 = load i32, ptr %23, align 4, !tbaa !9
  %309 = icmp sgt i32 %308, -1
  br i1 %309, label %311, label %310

310:                                              ; preds = %307
  store i32 23, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %339

311:                                              ; preds = %307
  %312 = load ptr, ptr %8, align 8, !tbaa !5
  %313 = load i32, ptr %23, align 4, !tbaa !9
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds double, ptr %312, i64 %314
  %316 = load double, ptr %315, align 8, !tbaa !11
  %317 = load ptr, ptr %8, align 8, !tbaa !5
  %318 = load i32, ptr %22, align 4, !tbaa !9
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds double, ptr %317, i64 %319
  %321 = load double, ptr %320, align 8, !tbaa !11
  %322 = load ptr, ptr %7, align 8, !tbaa !5
  %323 = load i32, ptr %23, align 4, !tbaa !9
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [4 x double], ptr %322, i64 %324
  %326 = load i32, ptr %22, align 4, !tbaa !9
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [4 x double], ptr %325, i64 0, i64 %327
  %329 = load double, ptr %328, align 8, !tbaa !11
  %330 = fneg double %321
  %331 = call double @llvm.fmuladd.f64(double %330, double %329, double %316)
  %332 = load ptr, ptr %8, align 8, !tbaa !5
  %333 = load i32, ptr %23, align 4, !tbaa !9
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds double, ptr %332, i64 %334
  store double %331, ptr %335, align 8, !tbaa !11
  br label %336

336:                                              ; preds = %311
  %337 = load i32, ptr %23, align 4, !tbaa !9
  %338 = add nsw i32 %337, -1
  store i32 %338, ptr %23, align 4, !tbaa !9
  br label %307, !llvm.loop !20

339:                                              ; preds = %310
  br label %340

340:                                              ; preds = %339
  %341 = load i32, ptr %22, align 4, !tbaa !9
  %342 = add nsw i32 %341, -1
  store i32 %342, ptr %22, align 4, !tbaa !9
  br label %300, !llvm.loop !21

343:                                              ; preds = %303
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [17 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12SegmentSolve3jfcEPA4_dPdid(ptr nocapture noundef nonnull readnone align 8 dereferenceable(432) %0, ptr nocapture noundef %1, ptr nocapture noundef %2, i32 noundef %3, double noundef %4) local_unnamed_addr #1 align 2 {
  %6 = add i32 %3, -1
  %7 = icmp sgt i32 %3, 1
  br i1 %7, label %.lr.ph151.preheader, label %._crit_edge152

.lr.ph151.preheader:                              ; preds = %5
  %8 = zext nneg i32 %3 to i64
  %wide.trip.count187 = zext nneg i32 %6 to i64
  %wide.trip.count169 = zext nneg i32 %3 to i64
  %wide.trip.count174 = zext nneg i32 %3 to i64
  %wide.trip.count184 = zext nneg i32 %3 to i64
  %9 = mul nuw nsw i64 %wide.trip.count169, 40
  %10 = getelementptr i8, ptr %1, i64 %9
  %scevgep197 = getelementptr i8, ptr %10, i64 -32
  %11 = shl nuw nsw i64 %wide.trip.count169, 3
  %12 = shl nuw nsw i64 %wide.trip.count169, 3
  %13 = mul nuw nsw i64 %wide.trip.count169, 40
  %14 = getelementptr i8, ptr %1, i64 %13
  %scevgep223 = getelementptr i8, ptr %14, i64 -32
  %15 = getelementptr i8, ptr %1, i64 %12
  %invariant.gep = getelementptr i8, ptr %1, i64 32
  %invariant.gep247 = getelementptr i8, ptr %1, i64 32
  %16 = getelementptr i8, ptr %1, i64 %11
  %17 = add nsw i64 %wide.trip.count169, -1
  %18 = add nsw i64 %wide.trip.count169, -1
  br label %.lr.ph135

.loopexit:                                        ; preds = %._crit_edge145.us
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %exitcond188.not = icmp eq i64 %indvars.iv.next, %wide.trip.count187
  br i1 %exitcond188.not, label %._crit_edge152, label %.lr.ph135, !llvm.loop !5

._crit_edge152:                                   ; preds = %.loopexit, %5
  %19 = sext i32 %6 to i64
  %20 = getelementptr inbounds double, ptr %2, i64 %19
  %21 = load double, ptr %20, align 8, !tbaa !7
  %22 = getelementptr inbounds [4 x double], ptr %1, i64 %19, i64 %19
  %23 = load double, ptr %22, align 8, !tbaa !7
  %24 = fdiv double %21, %23
  store double %24, ptr %20, align 8, !tbaa !7
  %25 = icmp sgt i32 %3, 0
  br i1 %25, label %.preheader.preheader, label %._crit_edge158

.preheader.preheader:                             ; preds = %._crit_edge152
  %26 = zext nneg i32 %6 to i64
  br label %.preheader

.lr.ph135:                                        ; preds = %.loopexit, %.lr.ph151.preheader
  %indvars.iv164 = phi i64 [ 1, %.lr.ph151.preheader ], [ %indvars.iv.next165, %.loopexit ]
  %indvars.iv = phi i64 [ 0, %.lr.ph151.preheader ], [ %indvars.iv.next, %.loopexit ]
  %27 = sub nsw i64 %wide.trip.count169, %indvars.iv
  %28 = mul nuw nsw i64 %indvars.iv, 40
  %scevgep220 = getelementptr i8, ptr %1, i64 %28
  %29 = shl nuw nsw i64 %indvars.iv, 5
  %scevgep221 = getelementptr i8, ptr %15, i64 %29
  %gep = getelementptr i8, ptr %invariant.gep, i64 %28
  %30 = sub nsw i64 %wide.trip.count169, %indvars.iv
  %31 = sub nsw i64 %wide.trip.count169, %indvars.iv
  %32 = mul nuw nsw i64 %indvars.iv, 40
  %gep248 = getelementptr i8, ptr %invariant.gep247, i64 %32
  %scevgep198 = getelementptr i8, ptr %1, i64 %32
  %33 = shl nuw nsw i64 %indvars.iv, 5
  %scevgep199 = getelementptr i8, ptr %16, i64 %33
  %34 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv, i64 %indvars.iv
  %35 = load double, ptr %34, align 8, !tbaa !7
  %36 = tail call noundef double @_ZSt3absd(double noundef %35)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = load double, ptr %34, align 8, !tbaa !7
  %38 = getelementptr inbounds double, ptr %2, i64 %indvars.iv
  %min.iters.check229 = icmp ult i64 %27, 4
  %bound0224 = icmp ult ptr %scevgep220, %scevgep223
  %bound1225 = icmp ult ptr %gep, %scevgep221
  %found.conflict226 = and i1 %bound0224, %bound1225
  %n.vec232 = and i64 %27, -4
  %ind.end233 = add i64 %indvars.iv, %n.vec232
  %cmp.n243 = icmp eq i64 %27, %n.vec232
  br label %40

._crit_edge136:                                   ; preds = %70
  %39 = fcmp olt double %.1126, %4
  br i1 %39, label %71, label %74

40:                                               ; preds = %.lr.ph135, %70
  %indvars.iv166 = phi i64 [ %indvars.iv164, %.lr.ph135 ], [ %indvars.iv.next167, %70 ]
  %.0124132 = phi double [ %37, %.lr.ph135 ], [ %.1, %70 ]
  %.0125131 = phi double [ %36, %.lr.ph135 ], [ %.1126, %70 ]
  %41 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv166, i64 %indvars.iv
  %42 = load double, ptr %41, align 8, !tbaa !7
  %43 = tail call noundef double @_ZSt3absd(double noundef %42)
  %44 = fcmp ogt double %43, %.0125131
  br i1 %44, label %.lr.ph, label %70

.lr.ph:                                           ; preds = %40
  %45 = load double, ptr %41, align 8, !tbaa !7
  %46 = tail call noundef double @_ZSt3absd(double noundef %45)
  %47 = load double, ptr %41, align 8, !tbaa !7
  %brmerge = select i1 %min.iters.check229, i1 true, i1 %found.conflict226
  br i1 %brmerge, label %scalar.ph228.preheader, label %vector.body235

scalar.ph228.preheader:                           ; preds = %.lr.ph, %middle.block227
  %indvars.iv161.ph = phi i64 [ %indvars.iv, %.lr.ph ], [ %ind.end233, %middle.block227 ]
  %48 = sub i64 %wide.trip.count169, %indvars.iv161.ph
  %xtraiter = and i64 %48, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph228.prol.loopexit, label %scalar.ph228.prol

scalar.ph228.prol:                                ; preds = %scalar.ph228.preheader
  %49 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv, i64 %indvars.iv161.ph
  %50 = load double, ptr %49, align 8, !tbaa !7
  %51 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv166, i64 %indvars.iv161.ph
  %52 = load double, ptr %51, align 8, !tbaa !7
  store double %52, ptr %49, align 8, !tbaa !7
  store double %50, ptr %51, align 8, !tbaa !7
  %indvars.iv.next162.prol = add nuw nsw i64 %indvars.iv161.ph, 1
  br label %scalar.ph228.prol.loopexit

scalar.ph228.prol.loopexit:                       ; preds = %scalar.ph228.prol, %scalar.ph228.preheader
  %indvars.iv161.unr = phi i64 [ %indvars.iv161.ph, %scalar.ph228.preheader ], [ %indvars.iv.next162.prol, %scalar.ph228.prol ]
  %53 = icmp eq i64 %indvars.iv161.ph, %17
  br i1 %53, label %._crit_edge, label %scalar.ph228

vector.body235:                                   ; preds = %.lr.ph, %vector.body235
  %index236 = phi i64 [ %index.next242, %vector.body235 ], [ 0, %.lr.ph ]
  %offset.idx237 = add i64 %indvars.iv, %index236
  %54 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv, i64 %offset.idx237
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  %wide.load238 = load <2 x double>, ptr %54, align 8, !tbaa !7, !alias.scope !11, !noalias !14
  %wide.load239 = load <2 x double>, ptr %55, align 8, !tbaa !7, !alias.scope !11, !noalias !14
  %56 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv166, i64 %offset.idx237
  %57 = getelementptr inbounds i8, ptr %56, i64 16
  %wide.load240 = load <2 x double>, ptr %56, align 8, !tbaa !7, !alias.scope !14
  %wide.load241 = load <2 x double>, ptr %57, align 8, !tbaa !7, !alias.scope !14
  store <2 x double> %wide.load240, ptr %54, align 8, !tbaa !7, !alias.scope !11, !noalias !14
  store <2 x double> %wide.load241, ptr %55, align 8, !tbaa !7, !alias.scope !11, !noalias !14
  store <2 x double> %wide.load238, ptr %56, align 8, !tbaa !7, !alias.scope !14
  store <2 x double> %wide.load239, ptr %57, align 8, !tbaa !7, !alias.scope !14
  %index.next242 = add nuw i64 %index236, 4
  %58 = icmp eq i64 %index.next242, %n.vec232
  br i1 %58, label %middle.block227, label %vector.body235, !llvm.loop !16

middle.block227:                                  ; preds = %vector.body235
  br i1 %cmp.n243, label %._crit_edge, label %scalar.ph228.preheader

._crit_edge:                                      ; preds = %scalar.ph228.prol.loopexit, %scalar.ph228, %middle.block227
  %59 = load double, ptr %38, align 8, !tbaa !7
  %60 = getelementptr inbounds double, ptr %2, i64 %indvars.iv166
  %61 = load double, ptr %60, align 8, !tbaa !7
  store double %61, ptr %38, align 8, !tbaa !7
  store double %59, ptr %60, align 8, !tbaa !7
  br label %70

scalar.ph228:                                     ; preds = %scalar.ph228.prol.loopexit, %scalar.ph228
  %indvars.iv161 = phi i64 [ %indvars.iv.next162.1, %scalar.ph228 ], [ %indvars.iv161.unr, %scalar.ph228.prol.loopexit ]
  %62 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv, i64 %indvars.iv161
  %63 = load double, ptr %62, align 8, !tbaa !7
  %64 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv166, i64 %indvars.iv161
  %65 = load double, ptr %64, align 8, !tbaa !7
  store double %65, ptr %62, align 8, !tbaa !7
  store double %63, ptr %64, align 8, !tbaa !7
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %66 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv, i64 %indvars.iv.next162
  %67 = load double, ptr %66, align 8, !tbaa !7
  %68 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv166, i64 %indvars.iv.next162
  %69 = load double, ptr %68, align 8, !tbaa !7
  store double %69, ptr %66, align 8, !tbaa !7
  store double %67, ptr %68, align 8, !tbaa !7
  %indvars.iv.next162.1 = add nuw nsw i64 %indvars.iv161, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next162.1, %wide.trip.count169
  br i1 %exitcond.not.1, label %._crit_edge, label %scalar.ph228, !llvm.loop !19

70:                                               ; preds = %40, %._crit_edge
  %.1126 = phi double [ %46, %._crit_edge ], [ %.0125131, %40 ]
  %.1 = phi double [ %47, %._crit_edge ], [ %.0124132, %40 ]
  %indvars.iv.next167 = add nuw nsw i64 %indvars.iv166, 1
  %exitcond170.not = icmp eq i64 %indvars.iv.next167, %wide.trip.count169
  br i1 %exitcond170.not, label %._crit_edge136, label %40, !llvm.loop !20

71:                                               ; preds = %._crit_edge136
  %72 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %73 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %74

74:                                               ; preds = %71, %._crit_edge136
  %75 = icmp ult i64 %indvars.iv, %8
  br i1 %75, label %.lr.ph140.preheader, label %.lr.ph144.us.preheader

.lr.ph140.preheader:                              ; preds = %74
  %min.iters.check205 = icmp ult i64 %30, 2
  br i1 %min.iters.check205, label %.lr.ph140.preheader244, label %vector.ph206

.lr.ph140.preheader244:                           ; preds = %middle.block203, %.lr.ph140.preheader
  %indvars.iv171.ph = phi i64 [ %indvars.iv, %.lr.ph140.preheader ], [ %ind.end209, %middle.block203 ]
  br label %.lr.ph140

vector.ph206:                                     ; preds = %.lr.ph140.preheader
  %n.vec208 = and i64 %30, -2
  %ind.end209 = add i64 %indvars.iv, %n.vec208
  %broadcast.splatinsert215 = insertelement <2 x double> poison, double %.1, i64 0
  %broadcast.splat216 = shufflevector <2 x double> %broadcast.splatinsert215, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body211

vector.body211:                                   ; preds = %vector.body211, %vector.ph206
  %index212 = phi i64 [ 0, %vector.ph206 ], [ %index.next217, %vector.body211 ]
  %offset.idx213 = add i64 %indvars.iv, %index212
  %76 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv, i64 %offset.idx213
  %wide.load214 = load <2 x double>, ptr %76, align 8, !tbaa !7
  %77 = fdiv <2 x double> %wide.load214, %broadcast.splat216
  store <2 x double> %77, ptr %76, align 8, !tbaa !7
  %index.next217 = add nuw i64 %index212, 2
  %78 = icmp eq i64 %index.next217, %n.vec208
  br i1 %78, label %middle.block203, label %vector.body211, !llvm.loop !21

middle.block203:                                  ; preds = %vector.body211
  %cmp.n218 = icmp eq i64 %30, %n.vec208
  br i1 %cmp.n218, label %.lr.ph144.us.preheader, label %.lr.ph140.preheader244

.lr.ph144.us.preheader:                           ; preds = %.lr.ph140, %middle.block203, %74
  %79 = getelementptr inbounds double, ptr %2, i64 %indvars.iv
  %80 = load double, ptr %79, align 8, !tbaa !7
  %81 = fdiv double %80, %.1
  store double %81, ptr %79, align 8, !tbaa !7
  %min.iters.check = icmp ult i64 %31, 4
  %bound0 = icmp ult ptr %gep248, %scevgep199
  %bound1 = icmp ult ptr %scevgep198, %scevgep197
  %found.conflict = and i1 %bound0, %bound1
  %n.vec = and i64 %31, -4
  %ind.end = add i64 %indvars.iv, %n.vec
  %cmp.n = icmp eq i64 %31, %n.vec
  br label %.lr.ph144.us

.lr.ph144.us:                                     ; preds = %.lr.ph144.us.preheader, %._crit_edge145.us
  %indvars.iv181 = phi i64 [ %indvars.iv164, %.lr.ph144.us.preheader ], [ %indvars.iv.next182, %._crit_edge145.us ]
  %82 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv181, i64 %indvars.iv
  %83 = load double, ptr %82, align 8, !tbaa !7
  %brmerge249 = select i1 %min.iters.check, i1 true, i1 %found.conflict
  br i1 %brmerge249, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph144.us
  %broadcast.splatinsert = insertelement <2 x double> poison, double %83, 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 ]
  %offset.idx = add i64 %indvars.iv, %index
  %84 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv181, i64 %offset.idx
  %85 = getelementptr inbounds i8, ptr %84, i64 16
  %wide.load = load <2 x double>, ptr %84, align 8, !tbaa !7, !alias.scope !22, !noalias !25
  %wide.load200 = load <2 x double>, ptr %85, align 8, !tbaa !7, !alias.scope !22, !noalias !25
  %86 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv, i64 %offset.idx
  %87 = getelementptr inbounds i8, ptr %86, i64 16
  %wide.load201 = load <2 x double>, ptr %86, align 8, !tbaa !7, !alias.scope !25
  %wide.load202 = load <2 x double>, ptr %87, align 8, !tbaa !7, !alias.scope !25
  %88 = fneg <2 x double> %wide.load201
  %89 = fneg <2 x double> %wide.load202
  %90 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %88, <2 x double> %broadcast.splat, <2 x double> %wide.load)
  %91 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %89, <2 x double> %broadcast.splat, <2 x double> %wide.load200)
  store <2 x double> %90, ptr %84, align 8, !tbaa !7, !alias.scope !22, !noalias !25
  store <2 x double> %91, ptr %85, align 8, !tbaa !7, !alias.scope !22, !noalias !25
  %index.next = add nuw i64 %index, 4
  %92 = icmp eq i64 %index.next, %n.vec
  br i1 %92, label %middle.block, label %vector.body, !llvm.loop !27

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

scalar.ph.preheader:                              ; preds = %.lr.ph144.us, %middle.block
  %indvars.iv176.ph = phi i64 [ %indvars.iv, %.lr.ph144.us ], [ %ind.end, %middle.block ]
  %93 = sub i64 %wide.trip.count169, %indvars.iv176.ph
  %xtraiter245 = and i64 %93, 1
  %lcmp.mod246.not = icmp eq i64 %xtraiter245, 0
  br i1 %lcmp.mod246.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %94 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv181, i64 %indvars.iv176.ph
  %95 = load double, ptr %94, align 8, !tbaa !7
  %96 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv, i64 %indvars.iv176.ph
  %97 = load double, ptr %96, align 8, !tbaa !7
  %98 = fneg double %97
  %99 = tail call double @llvm.fmuladd.f64(double %98, double %83, double %95)
  store double %99, ptr %94, align 8, !tbaa !7
  %indvars.iv.next177.prol = add nuw nsw i64 %indvars.iv176.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv176.unr = phi i64 [ %indvars.iv176.ph, %scalar.ph.preheader ], [ %indvars.iv.next177.prol, %scalar.ph.prol ]
  %100 = icmp eq i64 %indvars.iv176.ph, %18
  br i1 %100, label %._crit_edge145.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv176 = phi i64 [ %indvars.iv.next177.1, %scalar.ph ], [ %indvars.iv176.unr, %scalar.ph.prol.loopexit ]
  %101 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv181, i64 %indvars.iv176
  %102 = load double, ptr %101, align 8, !tbaa !7
  %103 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv, i64 %indvars.iv176
  %104 = load double, ptr %103, align 8, !tbaa !7
  %105 = fneg double %104
  %106 = tail call double @llvm.fmuladd.f64(double %105, double %83, double %102)
  store double %106, ptr %101, align 8, !tbaa !7
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %107 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv181, i64 %indvars.iv.next177
  %108 = load double, ptr %107, align 8, !tbaa !7
  %109 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv, i64 %indvars.iv.next177
  %110 = load double, ptr %109, align 8, !tbaa !7
  %111 = fneg double %110
  %112 = tail call double @llvm.fmuladd.f64(double %111, double %83, double %108)
  store double %112, ptr %107, align 8, !tbaa !7
  %indvars.iv.next177.1 = add nuw nsw i64 %indvars.iv176, 2
  %exitcond180.not.1 = icmp eq i64 %indvars.iv.next177.1, %wide.trip.count184
  br i1 %exitcond180.not.1, label %._crit_edge145.us, label %scalar.ph, !llvm.loop !28

._crit_edge145.us:                                ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %113 = getelementptr inbounds double, ptr %2, i64 %indvars.iv181
  %114 = load double, ptr %113, align 8, !tbaa !7
  %115 = load double, ptr %79, align 8, !tbaa !7
  %116 = fneg double %115
  %117 = tail call double @llvm.fmuladd.f64(double %116, double %83, double %114)
  store double %117, ptr %113, align 8, !tbaa !7
  %indvars.iv.next182 = add nuw nsw i64 %indvars.iv181, 1
  %exitcond185.not = icmp eq i64 %indvars.iv.next182, %wide.trip.count184
  br i1 %exitcond185.not, label %.loopexit, label %.lr.ph144.us, !llvm.loop !29

.lr.ph140:                                        ; preds = %.lr.ph140.preheader244, %.lr.ph140
  %indvars.iv171 = phi i64 [ %indvars.iv.next172, %.lr.ph140 ], [ %indvars.iv171.ph, %.lr.ph140.preheader244 ]
  %118 = getelementptr inbounds [4 x double], ptr %1, i64 %indvars.iv, i64 %indvars.iv171
  %119 = load double, ptr %118, align 8, !tbaa !7
  %120 = fdiv double %119, %.1
  store double %120, ptr %118, align 8, !tbaa !7
  %indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
  %exitcond175.not = icmp eq i64 %indvars.iv.next172, %wide.trip.count174
  br i1 %exitcond175.not, label %.lr.ph144.us.preheader, label %.lr.ph140, !llvm.loop !30

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge156
  %indvars.iv189 = phi i64 [ %26, %.preheader.preheader ], [ %indvars.iv.next190, %._crit_edge156 ]
  %.not = icmp eq i64 %indvars.iv189, 0
  br i1 %.not, label %._crit_edge158, label %.lr.ph155

.lr.ph155:                                        ; preds = %.preheader
  %121 = getelementptr inbounds double, ptr %2, i64 %indvars.iv189
  br label %122

._crit_edge158:                                   ; preds = %.preheader, %._crit_edge156, %._crit_edge152
  ret void

._crit_edge156:                                   ; preds = %122
  %indvars.iv.next190 = add nsw i64 %indvars.iv189, -1
  br i1 %.not, label %._crit_edge158, label %.preheader, !llvm.loop !31

122:                                              ; preds = %.lr.ph155, %122
  %indvars.iv191 = phi i64 [ %indvars.iv189, %.lr.ph155 ], [ %indvars.iv.next192, %122 ]
  %indvars.iv.next192 = add nsw i64 %indvars.iv191, -1
  %123 = and i64 %indvars.iv.next192, 4294967295
  %124 = getelementptr inbounds double, ptr %2, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !7
  %126 = load double, ptr %121, align 8, !tbaa !7
  %127 = getelementptr inbounds [4 x double], ptr %1, i64 %123, i64 %indvars.iv189
  %128 = load double, ptr %127, align 8, !tbaa !7
  %129 = fneg double %126
  %130 = tail call double @llvm.fmuladd.f64(double %129, double %128, double %125)
  store double %130, ptr %124, align 8, !tbaa !7
  %131 = trunc nuw i64 %indvars.iv191 to i32
  %132 = icmp sgt i32 %131, 1
  br i1 %132, label %122, label %._crit_edge156, !llvm.loop !32
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12}
!12 = distinct !{!12, !13}
!13 = distinct !{!13, !"LVerDomain"}
!14 = !{!15}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !6, !17, !18}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !6, !17}
!20 = distinct !{!20, !6}
!21 = distinct !{!21, !6, !17, !18}
!22 = !{!23}
!23 = distinct !{!23, !24}
!24 = distinct !{!24, !"LVerDomain"}
!25 = !{!26}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !6, !17, !18}
!28 = distinct !{!28, !6, !17}
!29 = distinct !{!29, !6}
!30 = distinct !{!30, !6, !18, !17}
!31 = distinct !{!31, !6}
!32 = distinct !{!32, !6}


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