; LLVM IR from sympiler/nasoq :: src/ldl (serial_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 [82 x i8], align 1
@__PRETTY_FUNCTION__._ZN5nasoq22ldl_left_simplicial_02EiPiS0_PdS0_S0_S0_S0_RS1_S1_S0_S1_S0_ = external hidden unnamed_addr constant [136 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: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6fill_nIPdiiET_S1_T0_RKT1_(ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #1

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

; 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)) #1

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

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

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

60:                                               ; preds = %75, %13
  %61 = load i32, ptr %33, align 4, !tbaa !5
  %62 = load i32, ptr %14, align 4, !tbaa !5
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %78

65:                                               ; preds = %60
  %66 = load ptr, ptr %20, align 8, !tbaa !9
  %67 = load i32, ptr %33, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i32, ptr %66, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = load ptr, ptr %29, align 8, !tbaa !9
  %72 = load i32, ptr %33, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds i32, ptr %71, i64 %73
  store i32 %70, ptr %74, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %65
  %76 = load i32, ptr %33, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %33, align 4, !tbaa !5
  br label %60, !llvm.loop !11

78:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 0, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %316, %78
  %80 = load i32, ptr %35, align 4, !tbaa !5
  %81 = load i32, ptr %14, align 4, !tbaa !5
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  store i32 5, ptr %36, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %319

84:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  %85 = load ptr, ptr %15, align 8, !tbaa !9
  %86 = load i32, ptr %35, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i32, ptr %85, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  store i32 %89, ptr %37, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %114, %84
  %91 = load i32, ptr %37, align 4, !tbaa !5
  %92 = load ptr, ptr %15, align 8, !tbaa !9
  %93 = load i32, ptr %35, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds i32, ptr %92, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %98 = icmp slt i32 %91, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %90
  store i32 8, ptr %36, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  br label %117

100:                                              ; preds = %90
  %101 = load ptr, ptr %17, align 8, !tbaa !9
  %102 = load i32, ptr %37, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds double, ptr %101, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !13
  %106 = load ptr, ptr %28, align 8, !tbaa !9
  %107 = load ptr, ptr %16, align 8, !tbaa !9
  %108 = load i32, ptr %37, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i32, ptr %107, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds double, ptr %106, i64 %112
  store double %105, ptr %113, align 8, !tbaa !13
  br label %114

114:                                              ; preds = %100
  %115 = load i32, ptr %37, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %37, align 4, !tbaa !5
  br label %90, !llvm.loop !15

117:                                              ; preds = %99
  %118 = load i32, ptr %14, align 4, !tbaa !5
  %119 = load ptr, ptr %18, align 8, !tbaa !9
  %120 = load ptr, ptr %19, align 8, !tbaa !9
  %121 = load i32, ptr %35, align 4, !tbaa !5
  %122 = load ptr, ptr %24, align 8, !tbaa !9
  %123 = load ptr, ptr %30, align 8, !tbaa !9
  %124 = load ptr, ptr %30, align 8, !tbaa !9
  %125 = load i32, ptr %14, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds i32, ptr %124, i64 %126
  %128 = call noundef i32 @_ZN5nasoq6ereachEiPiS0_iPKiS0_S0_(i32 noundef %118, ptr noundef %119, ptr noundef %120, i32 noundef %121, ptr noundef %122, ptr noundef %123, ptr noundef %127)
  store i32 %128, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  %129 = load i32, ptr %27, align 4, !tbaa !5
  store i32 %129, ptr %38, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %234, %117
  %131 = load i32, ptr %38, align 4, !tbaa !5
  %132 = load i32, ptr %14, align 4, !tbaa !5
  %133 = icmp slt i32 %131, %132
  br i1 %133, label %135, label %134

134:                                              ; preds = %130
  store i32 11, ptr %36, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %237

135:                                              ; preds = %130
  %136 = load ptr, ptr %30, align 8, !tbaa !9
  %137 = load i32, ptr %38, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds i32, ptr %136, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !5
  store i32 %140, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #6
  store i8 0, ptr %39, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  store double 0.000000e+00, ptr %40, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  store double 0.000000e+00, ptr %41, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  store i32 -1, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  %141 = load ptr, ptr %20, align 8, !tbaa !9
  %142 = load i32, ptr %34, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds i32, ptr %141, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !5
  store i32 %145, ptr %43, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %180, %135
  %147 = load i32, ptr %43, align 4, !tbaa !5
  %148 = load ptr, ptr %20, align 8, !tbaa !9
  %149 = load i32, ptr %34, align 4, !tbaa !5
  %150 = add nsw i32 %149, 1
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds i32, ptr %148, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = icmp slt i32 %147, %153
  br i1 %154, label %156, label %155

155:                                              ; preds = %146
  store i32 14, ptr %36, align 4
  br label %183

156:                                              ; preds = %146
  %157 = load ptr, ptr %21, align 8, !tbaa !9
  %158 = load i32, ptr %43, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds i32, ptr %157, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = load i32, ptr %35, align 4, !tbaa !5
  %163 = icmp eq i32 %161, %162
  br i1 %163, label %164, label %179

164:                                              ; preds = %156
  %165 = load ptr, ptr %22, align 8, !tbaa !9
  %166 = load ptr, ptr %165, align 8, !tbaa !9
  %167 = load i32, ptr %43, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds double, ptr %166, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !13
  store double %170, ptr %40, align 8, !tbaa !13
  %171 = load double, ptr %40, align 8, !tbaa !13
  %172 = load ptr, ptr %23, align 8, !tbaa !9
  %173 = load i32, ptr %34, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds double, ptr %172, i64 %174
  %176 = load double, ptr %175, align 8, !tbaa !13
  %177 = fmul double %171, %176
  store double %177, ptr %41, align 8, !tbaa !13
  %178 = load i32, ptr %43, align 4, !tbaa !5
  store i32 %178, ptr %42, align 4, !tbaa !5
  store i32 14, ptr %36, align 4
  br label %183

179:                                              ; preds = %156
  br label %180

180:                                              ; preds = %179
  %181 = load i32, ptr %43, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %43, align 4, !tbaa !5
  br label %146, !llvm.loop !18

183:                                              ; preds = %164, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  br label %184

184:                                              ; preds = %183
  %185 = load i32, ptr %42, align 4, !tbaa !5
  %186 = icmp sge i32 %185, 0
  br i1 %186, label %187, label %188

187:                                              ; preds = %184
  br label %190

188:                                              ; preds = %184
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 119, ptr noundef @__PRETTY_FUNCTION__._ZN5nasoq22ldl_left_simplicial_02EiPiS0_PdS0_S0_S0_S0_RS1_S1_S0_S1_S0_) #7
  unreachable

189:                                              ; No predecessors!
  br label %190

190:                                              ; preds = %189, %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #6
  %191 = load i32, ptr %42, align 4, !tbaa !5
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %44, align 4, !tbaa !5
  br label %193

193:                                              ; preds = %222, %190
  %194 = load i32, ptr %44, align 4, !tbaa !5
  %195 = load ptr, ptr %20, align 8, !tbaa !9
  %196 = load i32, ptr %34, align 4, !tbaa !5
  %197 = add nsw i32 %196, 1
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds i32, ptr %195, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = icmp slt i32 %194, %200
  br i1 %201, label %203, label %202

202:                                              ; preds = %193
  store i32 17, ptr %36, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  br label %225

203:                                              ; preds = %193
  %204 = load ptr, ptr %22, align 8, !tbaa !9
  %205 = load ptr, ptr %204, align 8, !tbaa !9
  %206 = load i32, ptr %44, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds double, ptr %205, i64 %207
  %209 = load double, ptr %208, align 8, !tbaa !13
  %210 = load double, ptr %41, align 8, !tbaa !13
  %211 = load ptr, ptr %28, align 8, !tbaa !9
  %212 = load ptr, ptr %21, align 8, !tbaa !9
  %213 = load i32, ptr %44, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds i32, ptr %212, i64 %214
  %216 = load i32, ptr %215, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds double, ptr %211, i64 %217
  %219 = load double, ptr %218, align 8, !tbaa !13
  %220 = fneg double %209
  %221 = call double @llvm.fmuladd.f64(double %220, double %210, double %219)
  store double %221, ptr %218, align 8, !tbaa !13
  br label %222

222:                                              ; preds = %203
  %223 = load i32, ptr %44, align 4, !tbaa !5
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %44, align 4, !tbaa !5
  br label %193, !llvm.loop !19

225:                                              ; preds = %202
  %226 = load double, ptr %40, align 8, !tbaa !13
  %227 = load double, ptr %41, align 8, !tbaa !13
  %228 = load ptr, ptr %23, align 8, !tbaa !9
  %229 = load i32, ptr %35, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds double, ptr %228, i64 %230
  %232 = load double, ptr %231, align 8, !tbaa !13
  %233 = call double @llvm.fmuladd.f64(double %226, double %227, double %232)
  store double %233, ptr %231, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  br label %234

234:                                              ; preds = %225
  %235 = load i32, ptr %38, align 4, !tbaa !5
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %38, align 4, !tbaa !5
  br label %130, !llvm.loop !20

237:                                              ; preds = %134
  %238 = load ptr, ptr %28, align 8, !tbaa !9
  %239 = load i32, ptr %35, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds double, ptr %238, i64 %240
  %242 = load double, ptr %241, align 8, !tbaa !13
  %243 = load ptr, ptr %23, align 8, !tbaa !9
  %244 = load i32, ptr %35, 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 = fsub double %242, %247
  %249 = load ptr, ptr %23, align 8, !tbaa !9
  %250 = load i32, ptr %35, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds double, ptr %249, i64 %251
  store double %248, ptr %252, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #6
  %253 = load ptr, ptr %23, align 8, !tbaa !9
  %254 = load i32, ptr %35, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds double, ptr %253, i64 %255
  %257 = load double, ptr %256, align 8, !tbaa !13
  store double %257, ptr %45, align 8, !tbaa !13
  %258 = load ptr, ptr %28, align 8, !tbaa !9
  %259 = load i32, ptr %35, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds double, ptr %258, i64 %260
  store double 0.000000e+00, ptr %261, align 8, !tbaa !13
  %262 = load ptr, ptr %22, align 8, !tbaa !9
  %263 = load ptr, ptr %262, align 8, !tbaa !9
  %264 = load ptr, ptr %20, align 8, !tbaa !9
  %265 = load i32, ptr %35, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds i32, ptr %264, i64 %266
  %268 = load i32, ptr %267, align 4, !tbaa !5
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds double, ptr %263, i64 %269
  store double 1.000000e+00, ptr %270, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #6
  %271 = load ptr, ptr %20, align 8, !tbaa !9
  %272 = load i32, ptr %35, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds i32, ptr %271, i64 %273
  %275 = load i32, ptr %274, align 4, !tbaa !5
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %46, align 4, !tbaa !5
  br label %277

277:                                              ; preds = %312, %237
  %278 = load i32, ptr %46, align 4, !tbaa !5
  %279 = load ptr, ptr %20, align 8, !tbaa !9
  %280 = load i32, ptr %35, align 4, !tbaa !5
  %281 = add nsw i32 %280, 1
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds i32, ptr %279, i64 %282
  %284 = load i32, ptr %283, align 4, !tbaa !5
  %285 = icmp slt i32 %278, %284
  br i1 %285, label %287, label %286

286:                                              ; preds = %277
  store i32 20, ptr %36, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  br label %315

287:                                              ; preds = %277
  %288 = load ptr, ptr %28, align 8, !tbaa !9
  %289 = load ptr, ptr %21, align 8, !tbaa !9
  %290 = load i32, ptr %46, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds i32, ptr %289, i64 %291
  %293 = load i32, ptr %292, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds double, ptr %288, i64 %294
  %296 = load double, ptr %295, align 8, !tbaa !13
  %297 = load double, ptr %45, align 8, !tbaa !13
  %298 = fdiv double %296, %297
  %299 = load ptr, ptr %22, align 8, !tbaa !9
  %300 = load ptr, ptr %299, align 8, !tbaa !9
  %301 = load i32, ptr %46, align 4, !tbaa !5
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds double, ptr %300, i64 %302
  store double %298, ptr %303, align 8, !tbaa !13
  %304 = load ptr, ptr %28, align 8, !tbaa !9
  %305 = load ptr, ptr %21, align 8, !tbaa !9
  %306 = load i32, ptr %46, align 4, !tbaa !5
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds i32, ptr %305, i64 %307
  %309 = load i32, ptr %308, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds double, ptr %304, i64 %310
  store double 0.000000e+00, ptr %311, align 8, !tbaa !13
  br label %312

312:                                              ; preds = %287
  %313 = load i32, ptr %46, align 4, !tbaa !5
  %314 = add nsw i32 %313, 1
  store i32 %314, ptr %46, align 4, !tbaa !5
  br label %277, !llvm.loop !21

315:                                              ; preds = %286
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  br label %316

316:                                              ; preds = %315
  %317 = load i32, ptr %35, align 4, !tbaa !5
  %318 = add nsw i32 %317, 1
  store i32 %318, ptr %35, align 4, !tbaa !5
  br label %79, !llvm.loop !22

319:                                              ; preds = %83
  store i32 1, ptr %36, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  ret i32 1
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = { 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 = { nounwind }
attributes #7 = { 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 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !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 [82 x i8], align 1
@__PRETTY_FUNCTION__._ZN5nasoq22ldl_left_simplicial_02EiPiS0_PdS0_S0_S0_S0_RS1_S1_S0_S1_S0_ = external hidden unnamed_addr constant [136 x i8], align 1

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

; 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 #1

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

; 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 #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5nasoq22ldl_left_simplicial_02EiPiS0_PdS0_S0_S0_S0_RS1_S1_S0_S1_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) local_unnamed_addr #4 {
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = sext i32 %0 to i64
  %17 = getelementptr inbounds i32, ptr %12, i64 %16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  %18 = call noundef ptr @_ZSt6fill_nIPdiiET_S1_T0_RKT1_(ptr noundef %11, i32 noundef %0, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  %19 = shl nsw i32 %0, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  %20 = call noundef ptr @_ZSt6fill_nIPiiiET_S1_T0_RKT1_(ptr noundef %17, i32 noundef %19, ptr noundef nonnull align 4 dereferenceable(4) %15)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  %21 = icmp sgt i32 %0, 0
  br i1 %21, label %.lr.ph.preheader, label %._crit_edge143

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

.lr.ph.preheader188:                              ; 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.preheader188, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader188 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader188 ]
  %25 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.prol
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv.prol
  store i32 %26, ptr %27, 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.preheader188
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader188 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %28 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %29 = icmp ugt i64 %28, -4
  br i1 %29, label %.preheader115, 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 ]
  %30 = getelementptr inbounds i32, ptr %6, i64 %index
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %wide.load = load <4 x i32>, ptr %30, align 4, !tbaa !5
  %wide.load184 = load <4 x i32>, ptr %31, align 4, !tbaa !5
  %32 = getelementptr inbounds i32, ptr %12, i64 %index
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  store <4 x i32> %wide.load, ptr %32, align 4, !tbaa !5
  store <4 x i32> %wide.load184, ptr %33, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %34 = icmp eq i64 %index.next, %n.vec
  br i1 %34, 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 %.preheader115, label %.lr.ph.preheader188

.preheader115:                                    ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block
  br i1 %21, label %.lr.ph142, label %._crit_edge143

.lr.ph142:                                        ; preds = %.preheader115
  %35 = getelementptr inbounds i32, ptr %17, i64 %16
  %wide.trip.count176 = zext nneg i32 %0 to i64
  br label %48

.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 ]
  %36 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv
  store i32 %37, ptr %38, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %39 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv.next
  store i32 %40, ptr %41, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %42 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next.1
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv.next.1
  store i32 %43, ptr %44, align 4, !tbaa !5
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %45 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next.2
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv.next.2
  store i32 %46, ptr %47, 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 %.preheader115, label %.lr.ph, !llvm.loop !15

.loopexit:                                        ; preds = %.lr.ph140.prol.loopexit, %.lr.ph140, %._crit_edge136
  %exitcond177.not = icmp eq i64 %indvars.iv.next174, %wide.trip.count176
  br i1 %exitcond177.not, label %._crit_edge143, label %48, !llvm.loop !16

._crit_edge143:                                   ; preds = %.loopexit, %13, %.preheader115
  ret i32 1

48:                                               ; preds = %.lr.ph142, %.loopexit
  %indvars.iv173 = phi i64 [ 0, %.lr.ph142 ], [ %indvars.iv.next174, %.loopexit ]
  %49 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv173
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %indvars.iv.next174 = add nuw nsw i64 %indvars.iv173, 1
  %51 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv.next174
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = icmp slt i32 %50, %52
  br i1 %53, label %.lr.ph123.preheader, label %._crit_edge

.lr.ph123.preheader:                              ; preds = %48
  %54 = sext i32 %50 to i64
  %wide.trip.count151 = sext i32 %52 to i64
  %55 = sub nsw i64 %wide.trip.count151, %54
  %xtraiter189 = and i64 %55, 3
  %lcmp.mod190.not = icmp eq i64 %xtraiter189, 0
  br i1 %lcmp.mod190.not, label %.lr.ph123.prol.loopexit, label %.lr.ph123.prol

.lr.ph123.prol:                                   ; preds = %.lr.ph123.preheader, %.lr.ph123.prol
  %indvars.iv148.prol = phi i64 [ %indvars.iv.next149.prol, %.lr.ph123.prol ], [ %54, %.lr.ph123.preheader ]
  %prol.iter191 = phi i64 [ %prol.iter191.next, %.lr.ph123.prol ], [ 0, %.lr.ph123.preheader ]
  %56 = getelementptr inbounds double, ptr %3, i64 %indvars.iv148.prol
  %57 = load double, ptr %56, align 8, !tbaa !17
  %58 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv148.prol
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds double, ptr %11, i64 %60
  store double %57, ptr %61, align 8, !tbaa !17
  %indvars.iv.next149.prol = add nsw i64 %indvars.iv148.prol, 1
  %prol.iter191.next = add i64 %prol.iter191, 1
  %prol.iter191.cmp.not = icmp eq i64 %prol.iter191.next, %xtraiter189
  br i1 %prol.iter191.cmp.not, label %.lr.ph123.prol.loopexit, label %.lr.ph123.prol, !llvm.loop !19

.lr.ph123.prol.loopexit:                          ; preds = %.lr.ph123.prol, %.lr.ph123.preheader
  %indvars.iv148.unr = phi i64 [ %54, %.lr.ph123.preheader ], [ %indvars.iv.next149.prol, %.lr.ph123.prol ]
  %62 = sub nsw i64 %54, %wide.trip.count151
  %63 = icmp ugt i64 %62, -4
  br i1 %63, label %._crit_edge, label %.lr.ph123

._crit_edge:                                      ; preds = %.lr.ph123.prol.loopexit, %.lr.ph123, %48
  %64 = trunc nuw nsw i64 %indvars.iv173 to i32
  %65 = call noundef i32 @_ZN5nasoq6ereachEiPiS0_iPKiS0_S0_(i32 noundef %0, ptr noundef %4, ptr noundef %5, i32 noundef %64, ptr noundef %10, ptr noundef nonnull %17, ptr noundef nonnull %35)
  %66 = icmp slt i32 %65, %0
  br i1 %66, label %.lr.ph135, label %._crit_edge.._crit_edge136_crit_edge

._crit_edge.._crit_edge136_crit_edge:             ; preds = %._crit_edge
  %.phi.trans.insert = getelementptr inbounds double, ptr %9, i64 %indvars.iv173
  %.pre = load double, ptr %.phi.trans.insert, align 8, !tbaa !17
  br label %._crit_edge136

.lr.ph135:                                        ; preds = %._crit_edge
  %67 = load ptr, ptr %8, align 8
  %68 = getelementptr inbounds double, ptr %9, i64 %indvars.iv173
  %69 = sext i32 %65 to i64
  br label %119

.lr.ph123:                                        ; preds = %.lr.ph123.prol.loopexit, %.lr.ph123
  %indvars.iv148 = phi i64 [ %indvars.iv.next149.3, %.lr.ph123 ], [ %indvars.iv148.unr, %.lr.ph123.prol.loopexit ]
  %70 = getelementptr inbounds double, ptr %3, i64 %indvars.iv148
  %71 = load double, ptr %70, align 8, !tbaa !17
  %72 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv148
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %11, i64 %74
  store double %71, ptr %75, align 8, !tbaa !17
  %indvars.iv.next149 = add nsw i64 %indvars.iv148, 1
  %76 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next149
  %77 = load double, ptr %76, align 8, !tbaa !17
  %78 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv.next149
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr %11, i64 %80
  store double %77, ptr %81, align 8, !tbaa !17
  %indvars.iv.next149.1 = add nsw i64 %indvars.iv148, 2
  %82 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next149.1
  %83 = load double, ptr %82, align 8, !tbaa !17
  %84 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv.next149.1
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds double, ptr %11, i64 %86
  store double %83, ptr %87, align 8, !tbaa !17
  %indvars.iv.next149.2 = add nsw i64 %indvars.iv148, 3
  %88 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next149.2
  %89 = load double, ptr %88, align 8, !tbaa !17
  %90 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv.next149.2
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds double, ptr %11, i64 %92
  store double %89, ptr %93, align 8, !tbaa !17
  %indvars.iv.next149.3 = add nsw i64 %indvars.iv148, 4
  %exitcond152.not.3 = icmp eq i64 %indvars.iv.next149.3, %wide.trip.count151
  br i1 %exitcond152.not.3, label %._crit_edge, label %.lr.ph123, !llvm.loop !20

._crit_edge136:                                   ; preds = %._crit_edge132, %._crit_edge.._crit_edge136_crit_edge
  %94 = phi double [ %.pre, %._crit_edge.._crit_edge136_crit_edge ], [ %145, %._crit_edge132 ]
  %95 = getelementptr inbounds double, ptr %11, i64 %indvars.iv173
  %96 = load double, ptr %95, align 8, !tbaa !17
  %97 = getelementptr inbounds double, ptr %9, i64 %indvars.iv173
  %98 = fsub double %96, %94
  store double %98, ptr %97, align 8, !tbaa !17
  store double 0.000000e+00, ptr %95, align 8, !tbaa !17
  %99 = load ptr, ptr %8, align 8, !tbaa !21
  %100 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv173
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds double, ptr %99, i64 %102
  store double 1.000000e+00, ptr %103, align 8, !tbaa !17
  %104 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next174
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %.0137 = add nsw i32 %101, 1
  %106 = icmp slt i32 %.0137, %105
  br i1 %106, label %.lr.ph140.preheader, label %.loopexit

.lr.ph140.preheader:                              ; preds = %._crit_edge136
  %107 = add nsw i64 %102, 1
  %108 = add i32 %105, -2
  %109 = sub i32 %101, %105
  %110 = and i32 %109, 1
  %lcmp.mod193.not.not = icmp eq i32 %110, 0
  br i1 %lcmp.mod193.not.not, label %.lr.ph140.prol, label %.lr.ph140.prol.loopexit

.lr.ph140.prol:                                   ; preds = %.lr.ph140.preheader
  %111 = getelementptr inbounds i32, ptr %7, i64 %107
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds double, ptr %11, i64 %113
  %115 = load double, ptr %114, align 8, !tbaa !17
  %116 = fdiv double %115, %98
  %117 = getelementptr inbounds double, ptr %99, i64 %107
  store double %116, ptr %117, align 8, !tbaa !17
  store double 0.000000e+00, ptr %114, align 8, !tbaa !17
  %indvars.iv.next169.prol = add nsw i64 %102, 2
  br label %.lr.ph140.prol.loopexit

.lr.ph140.prol.loopexit:                          ; preds = %.lr.ph140.prol, %.lr.ph140.preheader
  %indvars.iv168.unr = phi i64 [ %107, %.lr.ph140.preheader ], [ %indvars.iv.next169.prol, %.lr.ph140.prol ]
  %118 = icmp eq i32 %108, %101
  br i1 %118, label %.loopexit, label %.lr.ph140

119:                                              ; preds = %.lr.ph135, %._crit_edge132
  %indvars.iv163 = phi i64 [ %69, %.lr.ph135 ], [ %indvars.iv.next164, %._crit_edge132 ]
  %120 = getelementptr inbounds i32, ptr %17, i64 %indvars.iv163
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i32, ptr %6, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = getelementptr i8, ptr %123, i64 4
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = icmp slt i32 %124, %126
  br i1 %127, label %.lr.ph127.preheader, label %.thread

.lr.ph127.preheader:                              ; preds = %119
  %128 = sext i32 %124 to i64
  br label %.lr.ph127

.lr.ph127:                                        ; preds = %.lr.ph127.preheader, %133
  %indvars.iv157.in = phi i32 [ %124, %.lr.ph127.preheader ], [ %indvars.iv157, %133 ]
  %indvars.iv153 = phi i64 [ %128, %.lr.ph127.preheader ], [ %indvars.iv.next154, %133 ]
  %indvars.iv157 = add i32 %indvars.iv157.in, 1
  %129 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv153
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = zext i32 %130 to i64
  %132 = icmp eq i64 %indvars.iv173, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %.lr.ph127
  %indvars.iv.next154 = add nsw i64 %indvars.iv153, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next154 to i32
  %exitcond156.not = icmp eq i32 %126, %lftr.wideiv
  br i1 %exitcond156.not, label %.thread, label %.lr.ph127, !llvm.loop !23

134:                                              ; preds = %.lr.ph127
  %135 = getelementptr inbounds double, ptr %67, i64 %indvars.iv153
  %136 = load double, ptr %135, align 8, !tbaa !17
  %137 = getelementptr inbounds double, ptr %9, i64 %122
  %138 = load double, ptr %137, align 8, !tbaa !17
  %139 = fmul double %136, %138
  %140 = icmp sgt i64 %indvars.iv153, -1
  br i1 %140, label %.preheader, label %.thread

.preheader:                                       ; preds = %134
  %141 = trunc nsw i64 %indvars.iv153 to i32
  %.0101129 = add nuw nsw i32 %141, 1
  %142 = icmp slt i32 %.0101129, %126
  br i1 %142, label %.lr.ph131.preheader, label %._crit_edge132

.lr.ph131.preheader:                              ; preds = %.preheader
  %143 = zext i32 %indvars.iv157 to i64
  br label %.lr.ph131

.thread:                                          ; preds = %134, %119, %133
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 119, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5nasoq22ldl_left_simplicial_02EiPiS0_PdS0_S0_S0_S0_RS1_S1_S0_S1_S0_) #7
  unreachable

._crit_edge132:                                   ; preds = %.lr.ph131, %.preheader
  %144 = load double, ptr %68, align 8, !tbaa !17
  %145 = call double @llvm.fmuladd.f64(double %136, double %139, double %144)
  store double %145, ptr %68, align 8, !tbaa !17
  %indvars.iv.next164 = add nsw i64 %indvars.iv163, 1
  %lftr.wideiv166 = trunc i64 %indvars.iv.next164 to i32
  %exitcond167.not = icmp eq i32 %lftr.wideiv166, %0
  br i1 %exitcond167.not, label %._crit_edge136, label %119, !llvm.loop !24

.lr.ph131:                                        ; preds = %.lr.ph131.preheader, %.lr.ph131
  %indvars.iv160 = phi i64 [ %143, %.lr.ph131.preheader ], [ %indvars.iv.next161, %.lr.ph131 ]
  %146 = getelementptr inbounds double, ptr %67, i64 %indvars.iv160
  %147 = load double, ptr %146, align 8, !tbaa !17
  %148 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv160
  %149 = load i32, ptr %148, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds double, ptr %11, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !17
  %153 = fneg double %147
  %154 = call double @llvm.fmuladd.f64(double %153, double %139, double %152)
  store double %154, ptr %151, align 8, !tbaa !17
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %155 = trunc nuw i64 %indvars.iv.next161 to i32
  %156 = icmp sgt i32 %126, %155
  br i1 %156, label %.lr.ph131, label %._crit_edge132, !llvm.loop !25

.lr.ph140:                                        ; preds = %.lr.ph140.prol.loopexit, %.lr.ph140
  %indvars.iv168 = phi i64 [ %indvars.iv.next169.1, %.lr.ph140 ], [ %indvars.iv168.unr, %.lr.ph140.prol.loopexit ]
  %157 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv168
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds double, ptr %11, i64 %159
  %161 = load double, ptr %160, align 8, !tbaa !17
  %162 = fdiv double %161, %98
  %163 = getelementptr inbounds double, ptr %99, i64 %indvars.iv168
  store double %162, ptr %163, align 8, !tbaa !17
  store double 0.000000e+00, ptr %160, align 8, !tbaa !17
  %indvars.iv.next169 = add nsw i64 %indvars.iv168, 1
  %164 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next169
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds double, ptr %11, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !17
  %169 = fdiv double %168, %98
  %170 = getelementptr inbounds double, ptr %99, i64 %indvars.iv.next169
  store double %169, ptr %170, align 8, !tbaa !17
  store double 0.000000e+00, ptr %167, align 8, !tbaa !17
  %indvars.iv.next169.1 = add nsw i64 %indvars.iv168, 2
  %lftr.wideiv171.1 = trunc i64 %indvars.iv.next169.1 to i32
  %exitcond172.not.1 = icmp eq i32 %105, %lftr.wideiv171.1
  br i1 %exitcond172.not.1, label %.loopexit, label %.lr.ph140, !llvm.loop !26
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = { 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 = { nounwind }
attributes #7 = { 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 = distinct !{!16, !12}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !12}
!21 = !{!22, !22, i64 0}
!22 = !{!"any pointer", !7, i64 0}
!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,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass