; LLVM IR from sympiler/nasoq :: src/ldl (Serial_update_simplicial_ldl)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [89 x i8], align 1
@__PRETTY_FUNCTION__._ZN5nasoq29update_ldl_left_simplicial_01EiPiS0_PdS0_S0_S0_S0_RS1_S1_S0_St6vectorIiSaIiEES1_S0_ = external hidden unnamed_addr constant [161 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5nasoq29update_ldl_left_simplicial_01EiPiS0_PdS0_S0_S0_S0_RS1_S1_S0_St6vectorIiSaIiEES1_S0_(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13) #0 {
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i8, align 1
  %44 = alloca double, align 8
  %45 = alloca double, align 8
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca double, align 8
  %50 = alloca i32, align 4
  store i32 %0, ptr %15, align 4, !tbaa !5
  store ptr %1, ptr %16, align 8, !tbaa !9
  store ptr %2, ptr %17, align 8, !tbaa !9
  store ptr %3, ptr %18, align 8, !tbaa !9
  store ptr %4, ptr %19, align 8, !tbaa !9
  store ptr %5, ptr %20, align 8, !tbaa !9
  store ptr %6, ptr %21, align 8, !tbaa !9
  store ptr %7, ptr %22, align 8, !tbaa !9
  store ptr %8, ptr %23, align 8, !tbaa !9
  store ptr %9, ptr %24, align 8, !tbaa !9
  store ptr %10, ptr %25, align 8, !tbaa !9
  store ptr %11, ptr %26, align 8, !tbaa !9
  store ptr %12, ptr %27, align 8, !tbaa !9
  store ptr %13, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %51 = load ptr, ptr %27, align 8, !tbaa !9
  store ptr %51, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %52 = load ptr, ptr %28, align 8, !tbaa !9
  store ptr %52, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %53 = load ptr, ptr %28, align 8, !tbaa !9
  %54 = load i32, ptr %15, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i32, ptr %53, i64 %55
  store ptr %56, ptr %32, align 8, !tbaa !9
  %57 = load ptr, ptr %30, align 8, !tbaa !9
  %58 = load i32, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 0, ptr %33, align 4, !tbaa !5
  %59 = call noundef ptr @_ZSt6fill_nIPdiiET_S1_T0_RKT1_(ptr noundef %57, i32 noundef %58, ptr noundef nonnull align 4 dereferenceable(4) %33)
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  %60 = load ptr, ptr %32, align 8, !tbaa !9
  %61 = load i32, ptr %15, align 4, !tbaa !5
  %62 = mul nsw i32 2, %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  store i32 0, ptr %34, align 4, !tbaa !5
  %63 = call noundef ptr @_ZSt6fill_nIPiiiET_S1_T0_RKT1_(ptr noundef %60, i32 noundef %62, ptr noundef nonnull align 4 dereferenceable(4) %34)
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %79, %14
  %65 = load i32, ptr %35, align 4, !tbaa !5
  %66 = load i32, ptr %15, align 4, !tbaa !5
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %82

69:                                               ; preds = %64
  %70 = load ptr, ptr %21, align 8, !tbaa !9
  %71 = load i32, ptr %35, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds i32, ptr %70, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = load ptr, ptr %31, align 8, !tbaa !9
  %76 = load i32, ptr %35, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds i32, ptr %75, i64 %77
  store i32 %74, ptr %78, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %69
  %80 = load i32, ptr %35, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %35, align 4, !tbaa !5
  br label %64, !llvm.loop !11

82:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  store i32 0, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  store i32 0, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  store i32 0, ptr %38, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %354, %82
  %84 = load i32, ptr %38, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %87 = icmp ult i64 %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %83
  store i32 5, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  br label %357

89:                                               ; preds = %83
  %90 = load i32, ptr %38, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %91) #7
  %93 = load i32, ptr %92, align 4, !tbaa !5
  store i32 %93, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  %94 = load ptr, ptr %21, align 8, !tbaa !9
  %95 = load i32, ptr %37, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds i32, ptr %94, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !5
  store i32 %98, ptr %40, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %115, %89
  %100 = load i32, ptr %40, align 4, !tbaa !5
  %101 = load ptr, ptr %21, align 8, !tbaa !9
  %102 = load i32, ptr %37, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i32, ptr %101, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = icmp slt i32 %100, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %99
  store i32 8, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %118

109:                                              ; preds = %99
  %110 = load ptr, ptr %23, align 8, !tbaa !9
  %111 = load ptr, ptr %110, align 8, !tbaa !9
  %112 = load i32, ptr %40, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds double, ptr %111, i64 %113
  store double 0.000000e+00, ptr %114, align 8, !tbaa !13
  br label %115

115:                                              ; preds = %109
  %116 = load i32, ptr %40, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %40, align 4, !tbaa !5
  br label %99, !llvm.loop !15

118:                                              ; preds = %108
  %119 = load ptr, ptr %24, align 8, !tbaa !9
  %120 = load i32, ptr %37, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds double, ptr %119, i64 %121
  store double 0.000000e+00, ptr %122, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  %123 = load ptr, ptr %16, align 8, !tbaa !9
  %124 = load i32, ptr %37, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds i32, ptr %123, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !5
  store i32 %127, ptr %41, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %152, %118
  %129 = load i32, ptr %41, align 4, !tbaa !5
  %130 = load ptr, ptr %16, align 8, !tbaa !9
  %131 = load i32, ptr %37, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds i32, ptr %130, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = icmp slt i32 %129, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %128
  store i32 11, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  br label %155

138:                                              ; preds = %128
  %139 = load ptr, ptr %18, align 8, !tbaa !9
  %140 = load i32, ptr %41, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds double, ptr %139, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !13
  %144 = load ptr, ptr %30, align 8, !tbaa !9
  %145 = load ptr, ptr %17, align 8, !tbaa !9
  %146 = load i32, ptr %41, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds i32, ptr %145, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds double, ptr %144, i64 %150
  store double %143, ptr %151, align 8, !tbaa !13
  br label %152

152:                                              ; preds = %138
  %153 = load i32, ptr %41, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %41, align 4, !tbaa !5
  br label %128, !llvm.loop !16

155:                                              ; preds = %137
  %156 = load i32, ptr %15, align 4, !tbaa !5
  %157 = load ptr, ptr %19, align 8, !tbaa !9
  %158 = load ptr, ptr %20, align 8, !tbaa !9
  %159 = load i32, ptr %37, align 4, !tbaa !5
  %160 = load ptr, ptr %25, align 8, !tbaa !9
  %161 = load ptr, ptr %32, align 8, !tbaa !9
  %162 = load ptr, ptr %32, align 8, !tbaa !9
  %163 = load i32, ptr %15, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds i32, ptr %162, i64 %164
  %166 = call noundef i32 @_ZN5nasoq6ereachEiPiS0_iPKiS0_S0_(i32 noundef %156, ptr noundef %157, ptr noundef %158, i32 noundef %159, ptr noundef %160, ptr noundef %161, ptr noundef %165)
  store i32 %166, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  %167 = load i32, ptr %29, align 4, !tbaa !5
  store i32 %167, ptr %42, align 4, !tbaa !5
  br label %168

168:                                              ; preds = %272, %155
  %169 = load i32, ptr %42, align 4, !tbaa !5
  %170 = load i32, ptr %15, align 4, !tbaa !5
  %171 = icmp slt i32 %169, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %168
  store i32 14, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  br label %275

173:                                              ; preds = %168
  %174 = load ptr, ptr %32, align 8, !tbaa !9
  %175 = load i32, ptr %42, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds i32, ptr %174, i64 %176
  %178 = load i32, ptr %177, align 4, !tbaa !5
  store i32 %178, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %43) #7
  store i8 0, ptr %43, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  store double 0.000000e+00, ptr %44, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  store double 0.000000e+00, ptr %45, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #7
  store i32 -1, ptr %46, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #7
  %179 = load ptr, ptr %21, align 8, !tbaa !9
  %180 = load i32, ptr %36, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds i32, ptr %179, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !5
  store i32 %183, ptr %47, align 4, !tbaa !5
  br label %184

184:                                              ; preds = %218, %173
  %185 = load i32, ptr %47, align 4, !tbaa !5
  %186 = load ptr, ptr %21, align 8, !tbaa !9
  %187 = load i32, ptr %36, align 4, !tbaa !5
  %188 = add nsw i32 %187, 1
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds i32, ptr %186, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = icmp slt i32 %185, %191
  br i1 %192, label %194, label %193

193:                                              ; preds = %184
  store i32 17, ptr %39, align 4
  br label %221

194:                                              ; preds = %184
  %195 = load ptr, ptr %22, align 8, !tbaa !9
  %196 = load i32, ptr %47, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds i32, ptr %195, i64 %197
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %200 = load i32, ptr %37, align 4, !tbaa !5
  %201 = icmp eq i32 %199, %200
  br i1 %201, label %202, label %217

202:                                              ; preds = %194
  %203 = load ptr, ptr %23, align 8, !tbaa !9
  %204 = load ptr, ptr %203, align 8, !tbaa !9
  %205 = load i32, ptr %47, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds double, ptr %204, i64 %206
  %208 = load double, ptr %207, align 8, !tbaa !13
  store double %208, ptr %44, align 8, !tbaa !13
  %209 = load double, ptr %44, align 8, !tbaa !13
  %210 = load ptr, ptr %24, align 8, !tbaa !9
  %211 = load i32, ptr %36, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds double, ptr %210, i64 %212
  %214 = load double, ptr %213, align 8, !tbaa !13
  %215 = fmul double %209, %214
  store double %215, ptr %45, align 8, !tbaa !13
  %216 = load i32, ptr %47, align 4, !tbaa !5
  store i32 %216, ptr %46, align 4, !tbaa !5
  store i32 17, ptr %39, align 4
  br label %221

217:                                              ; preds = %194
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr %47, align 4, !tbaa !5
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %47, align 4, !tbaa !5
  br label %184, !llvm.loop !19

221:                                              ; preds = %202, %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  br label %222

222:                                              ; preds = %221
  %223 = load i32, ptr %46, align 4, !tbaa !5
  %224 = icmp sge i32 %223, 0
  br i1 %224, label %225, label %226

225:                                              ; preds = %222
  br label %228

226:                                              ; preds = %222
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 70, ptr noundef @__PRETTY_FUNCTION__._ZN5nasoq29update_ldl_left_simplicial_01EiPiS0_PdS0_S0_S0_S0_RS1_S1_S0_St6vectorIiSaIiEES1_S0_) #8
  unreachable

227:                                              ; No predecessors!
  br label %228

228:                                              ; preds = %227, %225
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #7
  %229 = load i32, ptr %46, align 4, !tbaa !5
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %48, align 4, !tbaa !5
  br label %231

231:                                              ; preds = %260, %228
  %232 = load i32, ptr %48, align 4, !tbaa !5
  %233 = load ptr, ptr %21, align 8, !tbaa !9
  %234 = load i32, ptr %36, align 4, !tbaa !5
  %235 = add nsw i32 %234, 1
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds i32, ptr %233, i64 %236
  %238 = load i32, ptr %237, align 4, !tbaa !5
  %239 = icmp slt i32 %232, %238
  br i1 %239, label %241, label %240

240:                                              ; preds = %231
  store i32 20, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  br label %263

241:                                              ; preds = %231
  %242 = load ptr, ptr %23, align 8, !tbaa !9
  %243 = load ptr, ptr %242, align 8, !tbaa !9
  %244 = load i32, ptr %48, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds double, ptr %243, i64 %245
  %247 = load double, ptr %246, align 8, !tbaa !13
  %248 = load double, ptr %45, align 8, !tbaa !13
  %249 = load ptr, ptr %30, align 8, !tbaa !9
  %250 = load ptr, ptr %22, align 8, !tbaa !9
  %251 = load i32, ptr %48, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds i32, ptr %250, i64 %252
  %254 = load i32, ptr %253, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds double, ptr %249, i64 %255
  %257 = load double, ptr %256, align 8, !tbaa !13
  %258 = fneg double %247
  %259 = call double @llvm.fmuladd.f64(double %258, double %248, double %257)
  store double %259, ptr %256, align 8, !tbaa !13
  br label %260

260:                                              ; preds = %241
  %261 = load i32, ptr %48, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %48, align 4, !tbaa !5
  br label %231, !llvm.loop !20

263:                                              ; preds = %240
  %264 = load double, ptr %44, align 8, !tbaa !13
  %265 = load double, ptr %45, align 8, !tbaa !13
  %266 = load ptr, ptr %24, align 8, !tbaa !9
  %267 = load i32, ptr %37, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds double, ptr %266, i64 %268
  %270 = load double, ptr %269, align 8, !tbaa !13
  %271 = call double @llvm.fmuladd.f64(double %264, double %265, double %270)
  store double %271, ptr %269, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #7
  br label %272

272:                                              ; preds = %263
  %273 = load i32, ptr %42, align 4, !tbaa !5
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %42, align 4, !tbaa !5
  br label %168, !llvm.loop !21

275:                                              ; preds = %172
  %276 = load ptr, ptr %30, align 8, !tbaa !9
  %277 = load i32, ptr %37, align 4, !tbaa !5
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds double, ptr %276, i64 %278
  %280 = load double, ptr %279, align 8, !tbaa !13
  %281 = load ptr, ptr %24, align 8, !tbaa !9
  %282 = load i32, ptr %37, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds double, ptr %281, i64 %283
  %285 = load double, ptr %284, align 8, !tbaa !13
  %286 = fsub double %280, %285
  %287 = load ptr, ptr %24, align 8, !tbaa !9
  %288 = load i32, ptr %37, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds double, ptr %287, i64 %289
  store double %286, ptr %290, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #7
  %291 = load ptr, ptr %24, align 8, !tbaa !9
  %292 = load i32, ptr %37, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds double, ptr %291, i64 %293
  %295 = load double, ptr %294, align 8, !tbaa !13
  store double %295, ptr %49, align 8, !tbaa !13
  %296 = load ptr, ptr %30, align 8, !tbaa !9
  %297 = load i32, ptr %37, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds double, ptr %296, i64 %298
  store double 0.000000e+00, ptr %299, align 8, !tbaa !13
  %300 = load ptr, ptr %23, align 8, !tbaa !9
  %301 = load ptr, ptr %300, align 8, !tbaa !9
  %302 = load ptr, ptr %21, align 8, !tbaa !9
  %303 = load i32, ptr %37, align 4, !tbaa !5
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds i32, ptr %302, i64 %304
  %306 = load i32, ptr %305, align 4, !tbaa !5
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds double, ptr %301, i64 %307
  store double 1.000000e+00, ptr %308, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #7
  %309 = load ptr, ptr %21, align 8, !tbaa !9
  %310 = load i32, ptr %37, align 4, !tbaa !5
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds i32, ptr %309, i64 %311
  %313 = load i32, ptr %312, align 4, !tbaa !5
  %314 = add nsw i32 %313, 1
  store i32 %314, ptr %50, align 4, !tbaa !5
  br label %315

315:                                              ; preds = %350, %275
  %316 = load i32, ptr %50, align 4, !tbaa !5
  %317 = load ptr, ptr %21, align 8, !tbaa !9
  %318 = load i32, ptr %37, align 4, !tbaa !5
  %319 = add nsw i32 %318, 1
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds i32, ptr %317, i64 %320
  %322 = load i32, ptr %321, align 4, !tbaa !5
  %323 = icmp slt i32 %316, %322
  br i1 %323, label %325, label %324

324:                                              ; preds = %315
  store i32 23, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #7
  br label %353

325:                                              ; preds = %315
  %326 = load ptr, ptr %30, align 8, !tbaa !9
  %327 = load ptr, ptr %22, align 8, !tbaa !9
  %328 = load i32, ptr %50, align 4, !tbaa !5
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds i32, ptr %327, i64 %329
  %331 = load i32, ptr %330, align 4, !tbaa !5
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds double, ptr %326, i64 %332
  %334 = load double, ptr %333, align 8, !tbaa !13
  %335 = load double, ptr %49, align 8, !tbaa !13
  %336 = fdiv double %334, %335
  %337 = load ptr, ptr %23, align 8, !tbaa !9
  %338 = load ptr, ptr %337, align 8, !tbaa !9
  %339 = load i32, ptr %50, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds double, ptr %338, i64 %340
  store double %336, ptr %341, align 8, !tbaa !13
  %342 = load ptr, ptr %30, align 8, !tbaa !9
  %343 = load ptr, ptr %22, align 8, !tbaa !9
  %344 = load i32, ptr %50, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds i32, ptr %343, i64 %345
  %347 = load i32, ptr %346, align 4, !tbaa !5
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds double, ptr %342, i64 %348
  store double 0.000000e+00, ptr %349, align 8, !tbaa !13
  br label %350

350:                                              ; preds = %325
  %351 = load i32, ptr %50, align 4, !tbaa !5
  %352 = add nsw i32 %351, 1
  store i32 %352, ptr %50, align 4, !tbaa !5
  br label %315, !llvm.loop !22

353:                                              ; preds = %324
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #7
  br label %354

354:                                              ; preds = %353
  %355 = load i32, ptr %38, align 4, !tbaa !5
  %356 = add nsw i32 %355, 1
  store i32 %356, ptr %38, align 4, !tbaa !5
  br label %83, !llvm.loop !23

357:                                              ; preds = %88
  store i32 1, ptr %39, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  ret i32 1
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6fill_nIPdiiET_S1_T0_RKT1_(ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6fill_nIPiiiET_S1_T0_RKT1_(ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

declare noundef i32 @_ZN5nasoq6ereachEiPiS0_iPKiS0_S0_(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

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

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


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

@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [89 x i8], align 1
@__PRETTY_FUNCTION__._ZN5nasoq29update_ldl_left_simplicial_01EiPiS0_PdS0_S0_S0_S0_RS1_S1_S0_St6vectorIiSaIiEES1_S0_ = external hidden unnamed_addr constant [161 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5nasoq29update_ldl_left_simplicial_01EiPiS0_PdS0_S0_S0_S0_RS1_S1_S0_St6vectorIiSaIiEES1_S0_(i32 noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr noundef %4, ptr noundef %5, ptr nocapture noundef readonly %6, ptr nocapture noundef readonly %7, ptr nocapture noundef nonnull readonly align 8 dereferenceable(8) %8, ptr nocapture noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13) local_unnamed_addr #0 {
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = sext i32 %0 to i64
  %18 = getelementptr inbounds i32, ptr %13, i64 %17
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #8
  store i32 0, ptr %15, align 4, !tbaa !5
  %19 = call noundef ptr @_ZSt6fill_nIPdiiET_S1_T0_RKT1_(ptr noundef %12, i32 noundef %0, ptr noundef nonnull align 4 dereferenceable(4) %15)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  %20 = shl nsw i32 %0, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  store i32 0, ptr %16, align 4, !tbaa !5
  %21 = call noundef ptr @_ZSt6fill_nIPiiiET_S1_T0_RKT1_(ptr noundef %18, i32 noundef %20, ptr noundef nonnull align 4 dereferenceable(4) %16)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  %22 = icmp sgt i32 %0, 0
  br i1 %22, label %.lr.ph.preheader, label %.preheader127

.lr.ph.preheader:                                 ; preds = %14
  %23 = ptrtoint ptr %13 to i64
  %24 = ptrtoint ptr %6 to i64
  %wide.trip.count = zext nneg i32 %0 to i64
  %min.iters.check = icmp ult i32 %0, 8
  %25 = sub i64 %23, %24
  %diff.check = icmp ult i64 %25, 32
  %or.cond = or i1 %min.iters.check, %diff.check
  br i1 %or.cond, label %.lr.ph.preheader207, label %vector.ph

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

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader207, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader207 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader207 ]
  %26 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.prol
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv.prol
  store i32 %27, ptr %28, align 4, !tbaa !5
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !9

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader207
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader207 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %29 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %30 = icmp ugt i64 %29, -4
  br i1 %30, label %.preheader127, label %.lr.ph

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

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %31 = getelementptr inbounds i32, ptr %6, i64 %index
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %wide.load = load <4 x i32>, ptr %31, align 4, !tbaa !5
  %wide.load203 = load <4 x i32>, ptr %32, align 4, !tbaa !5
  %33 = getelementptr inbounds i32, ptr %13, i64 %index
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  store <4 x i32> %wide.load, ptr %33, align 4, !tbaa !5
  store <4 x i32> %wide.load203, ptr %34, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %35 = icmp eq i64 %index.next, %n.vec
  br i1 %35, label %middle.block, label %vector.body, !llvm.loop !11

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

.preheader127:                                    ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %14
  %36 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %.not = icmp eq i64 %36, 0
  br i1 %.not, label %._crit_edge161, label %.lr.ph160

.lr.ph160:                                        ; preds = %.preheader127
  %37 = getelementptr inbounds i32, ptr %18, i64 %17
  br label %50

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %38 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv
  store i32 %39, ptr %40, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %41 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv.next
  store i32 %42, ptr %43, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %44 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next.1
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv.next.1
  store i32 %45, ptr %46, align 4, !tbaa !5
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %47 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next.2
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv.next.2
  store i32 %48, ptr %49, align 4, !tbaa !5
  %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 %.preheader127, label %.lr.ph, !llvm.loop !15

._crit_edge161:                                   ; preds = %._crit_edge158, %.preheader127
  ret i32 1

50:                                               ; preds = %.lr.ph160, %._crit_edge158
  %indvars.iv194 = phi i64 [ 0, %.lr.ph160 ], [ %indvars.iv.next195, %._crit_edge158 ]
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv194) #8
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i32, ptr %6, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = add nsw i32 %52, 1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds i32, ptr %6, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = icmp slt i32 %55, %59
  br i1 %60, label %.lr.ph136, label %._crit_edge

.lr.ph136:                                        ; preds = %50
  %61 = load ptr, ptr %8, align 8, !tbaa !16
  %62 = sext i32 %55 to i64
  %63 = shl nsw i64 %62, 3
  %scevgep = getelementptr i8, ptr %61, i64 %63
  %64 = xor i32 %55, -1
  %65 = add i32 %59, %64
  %66 = zext i32 %65 to i64
  %67 = shl nuw nsw i64 %66, 3
  %68 = add nuw nsw i64 %67, 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %scevgep, i8 0, i64 %68, i1 false), !tbaa !18
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph136, %50
  %69 = getelementptr inbounds double, ptr %9, i64 %53
  store double 0.000000e+00, ptr %69, align 8, !tbaa !18
  %70 = getelementptr inbounds i32, ptr %1, i64 %53
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = getelementptr inbounds i32, ptr %1, i64 %57
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = icmp slt i32 %71, %73
  br i1 %74, label %.lr.ph140.preheader, label %._crit_edge141

.lr.ph140.preheader:                              ; preds = %._crit_edge
  %75 = sext i32 %71 to i64
  %wide.trip.count172 = sext i32 %73 to i64
  %76 = sub nsw i64 %wide.trip.count172, %75
  %xtraiter208 = and i64 %76, 3
  %lcmp.mod209.not = icmp eq i64 %xtraiter208, 0
  br i1 %lcmp.mod209.not, label %.lr.ph140.prol.loopexit, label %.lr.ph140.prol

.lr.ph140.prol:                                   ; preds = %.lr.ph140.preheader, %.lr.ph140.prol
  %indvars.iv169.prol = phi i64 [ %indvars.iv.next170.prol, %.lr.ph140.prol ], [ %75, %.lr.ph140.preheader ]
  %prol.iter210 = phi i64 [ %prol.iter210.next, %.lr.ph140.prol ], [ 0, %.lr.ph140.preheader ]
  %77 = getelementptr inbounds double, ptr %3, i64 %indvars.iv169.prol
  %78 = load double, ptr %77, align 8, !tbaa !18
  %79 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv169.prol
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %12, i64 %81
  store double %78, ptr %82, align 8, !tbaa !18
  %indvars.iv.next170.prol = add nsw i64 %indvars.iv169.prol, 1
  %prol.iter210.next = add i64 %prol.iter210, 1
  %prol.iter210.cmp.not = icmp eq i64 %prol.iter210.next, %xtraiter208
  br i1 %prol.iter210.cmp.not, label %.lr.ph140.prol.loopexit, label %.lr.ph140.prol, !llvm.loop !20

.lr.ph140.prol.loopexit:                          ; preds = %.lr.ph140.prol, %.lr.ph140.preheader
  %indvars.iv169.unr = phi i64 [ %75, %.lr.ph140.preheader ], [ %indvars.iv.next170.prol, %.lr.ph140.prol ]
  %83 = sub nsw i64 %75, %wide.trip.count172
  %84 = icmp ugt i64 %83, -4
  br i1 %84, label %._crit_edge141, label %.lr.ph140

._crit_edge141:                                   ; preds = %.lr.ph140.prol.loopexit, %.lr.ph140, %._crit_edge
  %85 = call noundef i32 @_ZN5nasoq6ereachEiPiS0_iPKiS0_S0_(i32 noundef %0, ptr noundef %4, ptr noundef %5, i32 noundef %52, ptr noundef %10, ptr noundef %18, ptr noundef %37)
  %86 = icmp slt i32 %85, %0
  br i1 %86, label %.lr.ph152, label %._crit_edge141.._crit_edge153_crit_edge

._crit_edge141.._crit_edge153_crit_edge:          ; preds = %._crit_edge141
  %.pre = load double, ptr %69, align 8, !tbaa !18
  br label %._crit_edge153

.lr.ph152:                                        ; preds = %._crit_edge141
  %87 = load ptr, ptr %8, align 8
  %88 = sext i32 %85 to i64
  br label %135

.lr.ph140:                                        ; preds = %.lr.ph140.prol.loopexit, %.lr.ph140
  %indvars.iv169 = phi i64 [ %indvars.iv.next170.3, %.lr.ph140 ], [ %indvars.iv169.unr, %.lr.ph140.prol.loopexit ]
  %89 = getelementptr inbounds double, ptr %3, i64 %indvars.iv169
  %90 = load double, ptr %89, align 8, !tbaa !18
  %91 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv169
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds double, ptr %12, i64 %93
  store double %90, ptr %94, align 8, !tbaa !18
  %indvars.iv.next170 = add nsw i64 %indvars.iv169, 1
  %95 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next170
  %96 = load double, ptr %95, align 8, !tbaa !18
  %97 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv.next170
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds double, ptr %12, i64 %99
  store double %96, ptr %100, align 8, !tbaa !18
  %indvars.iv.next170.1 = add nsw i64 %indvars.iv169, 2
  %101 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next170.1
  %102 = load double, ptr %101, align 8, !tbaa !18
  %103 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv.next170.1
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds double, ptr %12, i64 %105
  store double %102, ptr %106, align 8, !tbaa !18
  %indvars.iv.next170.2 = add nsw i64 %indvars.iv169, 3
  %107 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next170.2
  %108 = load double, ptr %107, align 8, !tbaa !18
  %109 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv.next170.2
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds double, ptr %12, i64 %111
  store double %108, ptr %112, align 8, !tbaa !18
  %indvars.iv.next170.3 = add nsw i64 %indvars.iv169, 4
  %exitcond173.not.3 = icmp eq i64 %indvars.iv.next170.3, %wide.trip.count172
  br i1 %exitcond173.not.3, label %._crit_edge141, label %.lr.ph140, !llvm.loop !21

._crit_edge153:                                   ; preds = %._crit_edge149, %._crit_edge141.._crit_edge153_crit_edge
  %113 = phi double [ %.pre, %._crit_edge141.._crit_edge153_crit_edge ], [ %160, %._crit_edge149 ]
  %114 = getelementptr inbounds double, ptr %12, i64 %53
  %115 = load double, ptr %114, align 8, !tbaa !18
  %116 = fsub double %115, %113
  store double %116, ptr %69, align 8, !tbaa !18
  store double 0.000000e+00, ptr %114, align 8, !tbaa !18
  %117 = load ptr, ptr %8, align 8, !tbaa !16
  %118 = load i32, ptr %54, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds double, ptr %117, i64 %119
  store double 1.000000e+00, ptr %120, align 8, !tbaa !18
  %121 = load i32, ptr %58, align 4, !tbaa !5
  %.0154 = add nsw i32 %118, 1
  %122 = icmp slt i32 %.0154, %121
  br i1 %122, label %.lr.ph157.preheader, label %._crit_edge158

.lr.ph157.preheader:                              ; preds = %._crit_edge153
  %123 = add nsw i64 %119, 1
  %124 = add i32 %121, -2
  %125 = sub i32 %118, %121
  %126 = and i32 %125, 1
  %lcmp.mod212.not.not = icmp eq i32 %126, 0
  br i1 %lcmp.mod212.not.not, label %.lr.ph157.prol, label %.lr.ph157.prol.loopexit

.lr.ph157.prol:                                   ; preds = %.lr.ph157.preheader
  %127 = getelementptr inbounds i32, ptr %7, i64 %123
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds double, ptr %12, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !18
  %132 = fdiv double %131, %116
  %133 = getelementptr inbounds double, ptr %117, i64 %123
  store double %132, ptr %133, align 8, !tbaa !18
  store double 0.000000e+00, ptr %130, align 8, !tbaa !18
  %indvars.iv.next190.prol = add nsw i64 %119, 2
  br label %.lr.ph157.prol.loopexit

.lr.ph157.prol.loopexit:                          ; preds = %.lr.ph157.prol, %.lr.ph157.preheader
  %indvars.iv189.unr = phi i64 [ %123, %.lr.ph157.preheader ], [ %indvars.iv.next190.prol, %.lr.ph157.prol ]
  %134 = icmp eq i32 %124, %118
  br i1 %134, label %._crit_edge158, label %.lr.ph157

135:                                              ; preds = %.lr.ph152, %._crit_edge149
  %indvars.iv185 = phi i64 [ %88, %.lr.ph152 ], [ %indvars.iv.next186, %._crit_edge149 ]
  %136 = getelementptr inbounds i32, ptr %18, i64 %indvars.iv185
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds i32, ptr %6, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = getelementptr i8, ptr %139, i64 4
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = icmp slt i32 %140, %142
  br i1 %143, label %.lr.ph144.preheader, label %.thread

.lr.ph144.preheader:                              ; preds = %135
  %144 = sext i32 %140 to i64
  %wide.trip.count177 = sext i32 %142 to i64
  br label %.lr.ph144

.lr.ph144:                                        ; preds = %.lr.ph144.preheader, %148
  %indvars.iv179.in = phi i32 [ %140, %.lr.ph144.preheader ], [ %indvars.iv179, %148 ]
  %indvars.iv174 = phi i64 [ %144, %.lr.ph144.preheader ], [ %indvars.iv.next175, %148 ]
  %indvars.iv179 = add i32 %indvars.iv179.in, 1
  %145 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv174
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = icmp eq i32 %146, %52
  br i1 %147, label %149, label %148

148:                                              ; preds = %.lr.ph144
  %indvars.iv.next175 = add nsw i64 %indvars.iv174, 1
  %exitcond178.not = icmp eq i64 %indvars.iv.next175, %wide.trip.count177
  br i1 %exitcond178.not, label %.thread, label %.lr.ph144, !llvm.loop !22

149:                                              ; preds = %.lr.ph144
  %150 = getelementptr inbounds double, ptr %87, i64 %indvars.iv174
  %151 = load double, ptr %150, align 8, !tbaa !18
  %152 = getelementptr inbounds double, ptr %9, i64 %138
  %153 = load double, ptr %152, align 8, !tbaa !18
  %154 = fmul double %151, %153
  %155 = icmp sgt i64 %indvars.iv174, -1
  br i1 %155, label %.preheader, label %.thread

.preheader:                                       ; preds = %149
  %156 = trunc nsw i64 %indvars.iv174 to i32
  %.0111146 = add nuw nsw i32 %156, 1
  %157 = icmp slt i32 %.0111146, %142
  br i1 %157, label %.lr.ph148.preheader, label %._crit_edge149

.lr.ph148.preheader:                              ; preds = %.preheader
  %158 = zext i32 %indvars.iv179 to i64
  br label %.lr.ph148

.thread:                                          ; preds = %149, %135, %148
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 70, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5nasoq29update_ldl_left_simplicial_01EiPiS0_PdS0_S0_S0_S0_RS1_S1_S0_St6vectorIiSaIiEES1_S0_) #9
  unreachable

._crit_edge149:                                   ; preds = %.lr.ph148, %.preheader
  %159 = load double, ptr %69, align 8, !tbaa !18
  %160 = call double @llvm.fmuladd.f64(double %151, double %154, double %159)
  store double %160, ptr %69, align 8, !tbaa !18
  %indvars.iv.next186 = add nsw i64 %indvars.iv185, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next186 to i32
  %exitcond188.not = icmp eq i32 %lftr.wideiv, %0
  br i1 %exitcond188.not, label %._crit_edge153, label %135, !llvm.loop !23

.lr.ph148:                                        ; preds = %.lr.ph148.preheader, %.lr.ph148
  %indvars.iv182 = phi i64 [ %158, %.lr.ph148.preheader ], [ %indvars.iv.next183, %.lr.ph148 ]
  %161 = getelementptr inbounds double, ptr %87, i64 %indvars.iv182
  %162 = load double, ptr %161, align 8, !tbaa !18
  %163 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv182
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds double, ptr %12, i64 %165
  %167 = load double, ptr %166, align 8, !tbaa !18
  %168 = fneg double %162
  %169 = call double @llvm.fmuladd.f64(double %168, double %154, double %167)
  store double %169, ptr %166, align 8, !tbaa !18
  %indvars.iv.next183 = add nuw nsw i64 %indvars.iv182, 1
  %170 = trunc nuw i64 %indvars.iv.next183 to i32
  %171 = icmp sgt i32 %142, %170
  br i1 %171, label %.lr.ph148, label %._crit_edge149, !llvm.loop !24

._crit_edge158:                                   ; preds = %.lr.ph157.prol.loopexit, %.lr.ph157, %._crit_edge153
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %172 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %173 = icmp ugt i64 %172, %indvars.iv.next195
  br i1 %173, label %50, label %._crit_edge161, !llvm.loop !25

.lr.ph157:                                        ; preds = %.lr.ph157.prol.loopexit, %.lr.ph157
  %indvars.iv189 = phi i64 [ %indvars.iv.next190.1, %.lr.ph157 ], [ %indvars.iv189.unr, %.lr.ph157.prol.loopexit ]
  %174 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv189
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds double, ptr %12, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !18
  %179 = fdiv double %178, %116
  %180 = getelementptr inbounds double, ptr %117, i64 %indvars.iv189
  store double %179, ptr %180, align 8, !tbaa !18
  store double 0.000000e+00, ptr %177, align 8, !tbaa !18
  %indvars.iv.next190 = add nsw i64 %indvars.iv189, 1
  %181 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next190
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds double, ptr %12, i64 %183
  %185 = load double, ptr %184, align 8, !tbaa !18
  %186 = fdiv double %185, %116
  %187 = getelementptr inbounds double, ptr %117, i64 %indvars.iv.next190
  store double %186, ptr %187, align 8, !tbaa !18
  store double 0.000000e+00, ptr %184, align 8, !tbaa !18
  %indvars.iv.next190.1 = add nsw i64 %indvars.iv189, 2
  %lftr.wideiv192.1 = trunc i64 %indvars.iv.next190.1 to i32
  %exitcond193.not.1 = icmp eq i32 %121, %lftr.wideiv192.1
  br i1 %exitcond193.not.1, label %._crit_edge158, label %.lr.ph157, !llvm.loop !26
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6fill_nIPdiiET_S1_T0_RKT1_(ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6fill_nIPiiiET_S1_T0_RKT1_(ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

declare noundef i32 @_ZN5nasoq6ereachEiPiS0_iPKiS0_S0_(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

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

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

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


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