; LLVM IR from sympiler/nasoq :: src/matrixVector/spmv_CSC.ll (ZN5nasoq16spmv_csc_sym_oneEiPmPiPdiS2_S2_iS2_S2_)

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5nasoq16spmv_csc_sym_oneEiPmPiPdiS2_S2_iS2_S2_(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8, ptr noundef %9) #2 {
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca [8 x double], align 16
  %22 = alloca [8 x double], align 16
  %23 = alloca [2 x double], align 16
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, 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 ptr, align 8
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  store i32 %0, ptr %11, align 4, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !9
  store ptr %2, ptr %13, align 8, !tbaa !9
  store ptr %3, ptr %14, align 8, !tbaa !9
  store i32 %4, ptr %15, align 4, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !9
  store ptr %6, ptr %17, align 8, !tbaa !9
  store i32 %7, ptr %18, align 4, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !9
  store ptr %9, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  %40 = load i32, ptr %11, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  store i64 %41, ptr %27, align 8, !tbaa !11
  store i64 %41, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  %42 = load i64, ptr %27, align 8, !tbaa !11
  %43 = mul i64 4, %42
  %44 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %43, i64 8)
  %45 = extractvalue { i64, i1 } %44, 1
  %46 = extractvalue { i64, i1 } %44, 0
  %47 = select i1 %45, i64 -1, i64 %46
  %48 = call noalias noundef nonnull ptr @_Znam(i64 noundef %47) #6
  call void @llvm.memset.p0.i64(ptr align 8 %48, i8 0, i64 %47, i1 false)
  store ptr %48, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #5
  %49 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %49, ptr %38, align 4, !tbaa !5
  %50 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %50, ptr %35, align 4, !tbaa !5
  %51 = load i32, ptr %18, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  store i64 %52, ptr %30, align 8, !tbaa !11
  %53 = load i32, ptr %18, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  store i64 %54, ptr %29, align 8, !tbaa !11
  %55 = load ptr, ptr %17, align 8, !tbaa !9
  %56 = getelementptr inbounds double, ptr %55, i64 0
  %57 = load double, ptr %56, align 8, !tbaa !13
  %58 = fcmp oeq double %57, 0.000000e+00
  br i1 %58, label %59, label %99

59:                                               ; preds = %10
  %60 = load ptr, ptr %17, align 8, !tbaa !9
  %61 = getelementptr inbounds double, ptr %60, i64 0
  %62 = load double, ptr %61, align 8, !tbaa !13
  %63 = load ptr, ptr %17, align 8, !tbaa !9
  %64 = getelementptr inbounds double, ptr %63, i64 0
  %65 = load double, ptr %64, align 8, !tbaa !13
  %66 = fcmp une double %62, %65
  br i1 %66, label %99, label %67

67:                                               ; preds = %59
  %68 = load ptr, ptr %17, align 8, !tbaa !9
  %69 = getelementptr inbounds double, ptr %68, i64 0
  %70 = load double, ptr %69, align 8, !tbaa !13
  %71 = load ptr, ptr %17, align 8, !tbaa !9
  %72 = getelementptr inbounds double, ptr %71, i64 0
  %73 = load double, ptr %72, align 8, !tbaa !13
  %74 = fcmp olt double %70, %73
  br i1 %74, label %99, label %75

75:                                               ; preds = %67
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %95, %75
  %77 = load i32, ptr %32, align 4, !tbaa !5
  %78 = load i32, ptr %35, align 4, !tbaa !5
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %80, label %98

80:                                               ; preds = %76
  store i32 0, ptr %36, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %91, %80
  %82 = load i32, ptr %36, align 4, !tbaa !5
  %83 = load i64, ptr %28, align 8, !tbaa !11
  %84 = trunc i64 %83 to i32
  %85 = icmp slt i32 %82, %84
  br i1 %85, label %86, label %94

86:                                               ; preds = %81
  %87 = load ptr, ptr %20, align 8, !tbaa !9
  %88 = load i32, ptr %36, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds double, ptr %87, i64 %89
  store double 0.000000e+00, ptr %90, align 8, !tbaa !13
  br label %91

91:                                               ; preds = %86
  %92 = load i32, ptr %36, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %36, align 4, !tbaa !5
  br label %81, !llvm.loop !15

94:                                               ; preds = %81
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %32, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %32, align 4, !tbaa !5
  br label %76, !llvm.loop !17

98:                                               ; preds = %76
  br label %138

99:                                               ; preds = %67, %59, %10
  %100 = load ptr, ptr %17, align 8, !tbaa !9
  %101 = getelementptr inbounds double, ptr %100, i64 0
  %102 = load double, ptr %101, align 8, !tbaa !13
  %103 = fcmp oeq double %102, 1.000000e+00
  br i1 %103, label %137, label %104

104:                                              ; preds = %99
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %133, %104
  %106 = load i32, ptr %32, align 4, !tbaa !5
  %107 = load i32, ptr %35, align 4, !tbaa !5
  %108 = icmp slt i32 %106, %107
  br i1 %108, label %109, label %136

109:                                              ; preds = %105
  store i32 0, ptr %36, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %129, %109
  %111 = load i32, ptr %36, align 4, !tbaa !5
  %112 = load i64, ptr %28, align 8, !tbaa !11
  %113 = trunc i64 %112 to i32
  %114 = icmp slt i32 %111, %113
  br i1 %114, label %115, label %132

115:                                              ; preds = %110
  %116 = load ptr, ptr %20, align 8, !tbaa !9
  %117 = load i32, ptr %36, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds double, ptr %116, i64 %118
  %120 = load double, ptr %119, align 8, !tbaa !13
  %121 = load ptr, ptr %17, align 8, !tbaa !9
  %122 = getelementptr inbounds double, ptr %121, i64 0
  %123 = load double, ptr %122, align 8, !tbaa !13
  %124 = fmul double %120, %123
  %125 = load ptr, ptr %20, align 8, !tbaa !9
  %126 = load i32, ptr %36, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds double, ptr %125, i64 %127
  store double %124, ptr %128, align 8, !tbaa !13
  br label %129

129:                                              ; preds = %115
  %130 = load i32, ptr %36, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %36, align 4, !tbaa !5
  br label %110, !llvm.loop !18

132:                                              ; preds = %110
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %32, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %32, align 4, !tbaa !5
  br label %105, !llvm.loop !19

136:                                              ; preds = %105
  br label %137

137:                                              ; preds = %136, %99
  br label %138

138:                                              ; preds = %137, %98
  %139 = load ptr, ptr %16, align 8, !tbaa !9
  %140 = getelementptr inbounds double, ptr %139, i64 0
  %141 = load double, ptr %140, align 8, !tbaa !13
  %142 = fcmp oeq double %141, 0.000000e+00
  br i1 %142, label %143, label %160

143:                                              ; preds = %138
  %144 = load ptr, ptr %16, align 8, !tbaa !9
  %145 = getelementptr inbounds double, ptr %144, i64 0
  %146 = load double, ptr %145, align 8, !tbaa !13
  %147 = load ptr, ptr %16, align 8, !tbaa !9
  %148 = getelementptr inbounds double, ptr %147, i64 0
  %149 = load double, ptr %148, align 8, !tbaa !13
  %150 = fcmp une double %146, %149
  br i1 %150, label %160, label %151

151:                                              ; preds = %143
  %152 = load ptr, ptr %16, align 8, !tbaa !9
  %153 = getelementptr inbounds double, ptr %152, i64 0
  %154 = load double, ptr %153, align 8, !tbaa !13
  %155 = load ptr, ptr %16, align 8, !tbaa !9
  %156 = getelementptr inbounds double, ptr %155, i64 0
  %157 = load double, ptr %156, align 8, !tbaa !13
  %158 = fcmp olt double %154, %157
  br i1 %158, label %160, label %159

159:                                              ; preds = %151
  store i32 1, ptr %39, align 4
  br label %281

160:                                              ; preds = %151, %143, %138
  store i32 0, ptr %32, align 4, !tbaa !5
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %275, %160
  %162 = load i32, ptr %31, align 4, !tbaa !5
  %163 = load i32, ptr %11, align 4, !tbaa !5
  %164 = icmp slt i32 %162, %163
  br i1 %164, label %165, label %278

165:                                              ; preds = %161
  %166 = getelementptr inbounds [8 x double], ptr %21, i64 0, i64 0
  store double 0.000000e+00, ptr %166, align 16, !tbaa !13
  %167 = load ptr, ptr %16, align 8, !tbaa !9
  %168 = getelementptr inbounds double, ptr %167, i64 0
  %169 = load double, ptr %168, align 8, !tbaa !13
  %170 = load ptr, ptr %19, align 8, !tbaa !9
  %171 = load i32, ptr %31, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds double, ptr %170, i64 %172
  %174 = load double, ptr %173, align 8, !tbaa !13
  %175 = fmul double %169, %174
  %176 = getelementptr inbounds [8 x double], ptr %22, i64 0, i64 0
  store double %175, ptr %176, align 16, !tbaa !13
  %177 = load ptr, ptr %12, align 8, !tbaa !9
  %178 = load i32, ptr %31, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds i64, ptr %177, i64 %179
  %181 = load i64, ptr %180, align 8, !tbaa !11
  %182 = trunc i64 %181 to i32
  store i32 %182, ptr %33, align 4, !tbaa !5
  %183 = load ptr, ptr %12, align 8, !tbaa !9
  %184 = load i32, ptr %31, align 4, !tbaa !5
  %185 = add nsw i32 %184, 1
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds i64, ptr %183, i64 %186
  %188 = load i64, ptr %187, align 8, !tbaa !11
  %189 = trunc i64 %188 to i32
  store i32 %189, ptr %34, align 4, !tbaa !5
  br label %190

190:                                              ; preds = %260, %165
  %191 = load i32, ptr %33, align 4, !tbaa !5
  %192 = load i32, ptr %34, align 4, !tbaa !5
  %193 = icmp slt i32 %191, %192
  br i1 %193, label %194, label %263

194:                                              ; preds = %190
  %195 = load ptr, ptr %13, align 8, !tbaa !9
  %196 = load i32, ptr %33, 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
  store i32 %199, ptr %36, align 4, !tbaa !5
  %200 = load i32, ptr %36, align 4, !tbaa !5
  %201 = load i32, ptr %31, align 4, !tbaa !5
  %202 = icmp eq i32 %200, %201
  br i1 %202, label %203, label %217

203:                                              ; preds = %194
  %204 = load ptr, ptr %14, align 8, !tbaa !9
  %205 = load i32, ptr %33, 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
  %209 = getelementptr inbounds [8 x double], ptr %22, i64 0, i64 0
  %210 = load double, ptr %209, align 16, !tbaa !13
  %211 = load ptr, ptr %20, align 8, !tbaa !9
  %212 = load i32, ptr %36, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds double, ptr %211, i64 %213
  %215 = load double, ptr %214, align 8, !tbaa !13
  %216 = call double @llvm.fmuladd.f64(double %208, double %210, double %215)
  store double %216, ptr %214, align 8, !tbaa !13
  br label %259

217:                                              ; preds = %194
  %218 = load i32, ptr %15, align 4, !tbaa !5
  %219 = icmp sgt i32 %218, 0
  br i1 %219, label %220, label %224

220:                                              ; preds = %217
  %221 = load i32, ptr %36, align 4, !tbaa !5
  %222 = load i32, ptr %31, align 4, !tbaa !5
  %223 = icmp slt i32 %221, %222
  br i1 %223, label %231, label %224

224:                                              ; preds = %220, %217
  %225 = load i32, ptr %15, align 4, !tbaa !5
  %226 = icmp slt i32 %225, 0
  br i1 %226, label %227, label %258

227:                                              ; preds = %224
  %228 = load i32, ptr %36, align 4, !tbaa !5
  %229 = load i32, ptr %31, align 4, !tbaa !5
  %230 = icmp sgt i32 %228, %229
  br i1 %230, label %231, label %258

231:                                              ; preds = %227, %220
  %232 = load ptr, ptr %14, align 8, !tbaa !9
  %233 = load i32, ptr %33, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds double, ptr %232, i64 %234
  %236 = load double, ptr %235, align 8, !tbaa !13
  %237 = getelementptr inbounds [2 x double], ptr %23, i64 0, i64 0
  store double %236, ptr %237, align 16, !tbaa !13
  %238 = getelementptr inbounds [2 x double], ptr %23, i64 0, i64 0
  %239 = load double, ptr %238, align 16, !tbaa !13
  %240 = getelementptr inbounds [8 x double], ptr %22, i64 0, i64 0
  %241 = load double, ptr %240, align 16, !tbaa !13
  %242 = load ptr, ptr %20, align 8, !tbaa !9
  %243 = load i32, ptr %36, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds double, ptr %242, i64 %244
  %246 = load double, ptr %245, align 8, !tbaa !13
  %247 = call double @llvm.fmuladd.f64(double %239, double %241, double %246)
  store double %247, ptr %245, align 8, !tbaa !13
  %248 = getelementptr inbounds [2 x double], ptr %23, i64 0, i64 0
  %249 = load double, ptr %248, align 16, !tbaa !13
  %250 = load ptr, ptr %19, align 8, !tbaa !9
  %251 = load i32, ptr %36, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds double, ptr %250, i64 %252
  %254 = load double, ptr %253, align 8, !tbaa !13
  %255 = getelementptr inbounds [8 x double], ptr %21, i64 0, i64 0
  %256 = load double, ptr %255, align 16, !tbaa !13
  %257 = call double @llvm.fmuladd.f64(double %249, double %254, double %256)
  store double %257, ptr %255, align 16, !tbaa !13
  br label %258

258:                                              ; preds = %231, %227, %224
  br label %259

259:                                              ; preds = %258, %203
  br label %260

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

263:                                              ; preds = %190
  %264 = load ptr, ptr %16, align 8, !tbaa !9
  %265 = getelementptr inbounds double, ptr %264, i64 0
  %266 = load double, ptr %265, align 8, !tbaa !13
  %267 = getelementptr inbounds [8 x double], ptr %21, i64 0, i64 0
  %268 = load double, ptr %267, align 16, !tbaa !13
  %269 = load ptr, ptr %20, align 8, !tbaa !9
  %270 = load i32, ptr %31, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds double, ptr %269, i64 %271
  %273 = load double, ptr %272, align 8, !tbaa !13
  %274 = call double @llvm.fmuladd.f64(double %266, double %268, double %273)
  store double %274, ptr %272, align 8, !tbaa !13
  br label %275

275:                                              ; preds = %263
  %276 = load i32, ptr %31, align 4, !tbaa !5
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %31, align 4, !tbaa !5
  br label %161, !llvm.loop !21

278:                                              ; preds = %161
  %279 = load i32, ptr %32, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %32, align 4, !tbaa !5
  store i32 0, ptr %39, align 4
  br label %281

281:                                              ; preds = %278, %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #5
  %282 = load i32, ptr %39, align 4
  switch i32 %282, label %284 [
    i32 0, label %283
    i32 1, label %283
  ]

283:                                              ; preds = %281, %281
  ret void

284:                                              ; preds = %281
  unreachable
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { builtin allocsize(0) }

!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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}


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

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

; Function Attrs: mustprogress nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define dso_local void @_ZN5nasoq16spmv_csc_sym_oneEiPmPiPdiS2_S2_iS2_S2_(i32 noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, i32 noundef %4, ptr nocapture noundef readonly %5, ptr nocapture noundef readonly %6, i32 noundef %7, ptr nocapture noundef readonly %8, ptr nocapture noundef %9) local_unnamed_addr #1 {
  %11 = load double, ptr %6, align 8, !tbaa !5
  %12 = fcmp oeq double %11, 0.000000e+00
  br i1 %12, label %.preheader88, label %18

.preheader88:                                     ; preds = %10
  %13 = icmp sgt i32 %7, 0
  br i1 %13, label %.preheader87.lr.ph, label %.loopexit89

.preheader87.lr.ph:                               ; preds = %.preheader88
  %14 = icmp sgt i32 %0, 0
  br i1 %14, label %.preheader87.us.preheader, label %.loopexit

.preheader87.us.preheader:                        ; preds = %.preheader87.lr.ph
  %15 = zext nneg i32 %0 to i64
  %16 = shl nuw nsw i64 %15, 3
  %xtraiter179 = and i32 %7, 7
  %17 = icmp ult i32 %7, 8
  br i1 %17, label %.loopexit89.loopexit.unr-lcssa, label %.preheader87.us.preheader.new

.preheader87.us.preheader.new:                    ; preds = %.preheader87.us.preheader
  %unroll_iter = and i32 %7, 2147483640
  br label %.preheader87.us

.preheader87.us:                                  ; preds = %.preheader87.us, %.preheader87.us.preheader.new
  %niter = phi i32 [ 0, %.preheader87.us.preheader.new ], [ %niter.next.7, %.preheader87.us ]
  tail call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 %16, i1 false), !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 %16, i1 false), !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 %16, i1 false), !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 %16, i1 false), !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 %16, i1 false), !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 %16, i1 false), !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 %16, i1 false), !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 %16, i1 false), !tbaa !5
  %niter.next.7 = add i32 %niter, 8
  %niter.ncmp.7 = icmp eq i32 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %.loopexit89.loopexit.unr-lcssa, label %.preheader87.us, !llvm.loop !9

18:                                               ; preds = %10
  %19 = fcmp une double %11, 1.000000e+00
  %20 = icmp sgt i32 %7, 0
  %or.cond110 = and i1 %19, %20
  br i1 %or.cond110, label %.preheader90.lr.ph, label %.loopexit89

.preheader90.lr.ph:                               ; preds = %18
  %21 = icmp sgt i32 %0, 0
  br i1 %21, label %.preheader90.us.preheader, label %.loopexit

.preheader90.us.preheader:                        ; preds = %.preheader90.lr.ph
  %wide.trip.count = zext nneg i32 %0 to i64
  %22 = shl nuw nsw i64 %wide.trip.count, 3
  %scevgep = getelementptr i8, ptr %9, i64 %22
  %scevgep171 = getelementptr i8, ptr %6, i64 8
  %min.iters.check = icmp ult i32 %0, 4
  %bound0 = icmp ugt ptr %scevgep171, %9
  %bound1 = icmp ugt ptr %scevgep, %6
  %found.conflict = and i1 %bound0, %bound1
  %n.vec = and i64 %wide.trip.count, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %invariant.gep = getelementptr i8, ptr %9, i64 8
  %invariant.gep184 = getelementptr i8, ptr %9, i64 16
  %invariant.gep186 = getelementptr i8, ptr %9, i64 24
  br label %.preheader90.us

.preheader90.us:                                  ; preds = %.preheader90.us.preheader, %._crit_edge.us
  %.18094.us = phi i32 [ %48, %._crit_edge.us ], [ 0, %.preheader90.us.preheader ]
  %brmerge = select i1 %min.iters.check, i1 true, i1 %found.conflict
  br i1 %brmerge, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.preheader90.us
  %23 = load double, ptr %6, align 8, !tbaa !5, !alias.scope !11
  %broadcast.splatinsert173 = insertelement <2 x double> poison, double %23, i64 0
  %broadcast.splat174 = shufflevector <2 x double> %broadcast.splatinsert173, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %24 = getelementptr inbounds double, ptr %9, i64 %index
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %wide.load = load <2 x double>, ptr %24, align 8, !tbaa !5, !alias.scope !14, !noalias !11
  %wide.load172 = load <2 x double>, ptr %25, align 8, !tbaa !5, !alias.scope !14, !noalias !11
  %26 = fmul <2 x double> %wide.load, %broadcast.splat174
  %27 = fmul <2 x double> %wide.load172, %broadcast.splat174
  store <2 x double> %26, ptr %24, align 8, !tbaa !5, !alias.scope !14, !noalias !11
  store <2 x double> %27, ptr %25, align 8, !tbaa !5, !alias.scope !14, !noalias !11
  %index.next = add nuw i64 %index, 4
  %28 = icmp eq i64 %index.next, %n.vec
  br i1 %28, label %middle.block, label %vector.body, !llvm.loop !16

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

scalar.ph.preheader:                              ; preds = %.preheader90.us, %middle.block
  %indvars.iv.ph = phi i64 [ 0, %.preheader90.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %29 = getelementptr inbounds double, ptr %9, i64 %indvars.iv.prol
  %30 = load double, ptr %29, align 8, !tbaa !5
  %31 = load double, ptr %6, align 8, !tbaa !5
  %32 = fmul double %30, %31
  store double %32, ptr %29, align 8, !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 %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !19

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

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %35 = getelementptr inbounds double, ptr %9, i64 %indvars.iv
  %36 = load double, ptr %35, align 8, !tbaa !5
  %37 = load double, ptr %6, align 8, !tbaa !5
  %38 = fmul double %36, %37
  store double %38, ptr %35, align 8, !tbaa !5
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv
  %39 = load double, ptr %gep, align 8, !tbaa !5
  %40 = load double, ptr %6, align 8, !tbaa !5
  %41 = fmul double %39, %40
  store double %41, ptr %gep, align 8, !tbaa !5
  %gep185 = getelementptr double, ptr %invariant.gep184, i64 %indvars.iv
  %42 = load double, ptr %gep185, align 8, !tbaa !5
  %43 = load double, ptr %6, align 8, !tbaa !5
  %44 = fmul double %42, %43
  store double %44, ptr %gep185, align 8, !tbaa !5
  %gep187 = getelementptr double, ptr %invariant.gep186, i64 %indvars.iv
  %45 = load double, ptr %gep187, align 8, !tbaa !5
  %46 = load double, ptr %6, align 8, !tbaa !5
  %47 = fmul double %45, %46
  store double %47, ptr %gep187, align 8, !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 %._crit_edge.us, label %scalar.ph, !llvm.loop !21

._crit_edge.us:                                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %48 = add nuw nsw i32 %.18094.us, 1
  %exitcond119.not = icmp eq i32 %48, %7
  br i1 %exitcond119.not, label %.loopexit89, label %.preheader90.us, !llvm.loop !22

.loopexit89.loopexit.unr-lcssa:                   ; preds = %.preheader87.us, %.preheader87.us.preheader
  %lcmp.mod180.not = icmp eq i32 %xtraiter179, 0
  br i1 %lcmp.mod180.not, label %.loopexit89, label %.preheader87.us.epil

.preheader87.us.epil:                             ; preds = %.loopexit89.loopexit.unr-lcssa, %.preheader87.us.epil
  %epil.iter = phi i32 [ %epil.iter.next, %.preheader87.us.epil ], [ 0, %.loopexit89.loopexit.unr-lcssa ]
  tail call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 %16, i1 false), !tbaa !5
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter179
  br i1 %epil.iter.cmp.not, label %.loopexit89, label %.preheader87.us.epil, !llvm.loop !23

.loopexit89:                                      ; preds = %._crit_edge.us, %.loopexit89.loopexit.unr-lcssa, %.preheader87.us.epil, %.preheader88, %18
  %49 = load double, ptr %5, align 8, !tbaa !5
  %50 = fcmp une double %49, 0.000000e+00
  %51 = icmp sgt i32 %0, 0
  %or.cond111 = and i1 %50, %51
  br i1 %or.cond111, label %.lr.ph102, label %.loopexit

.lr.ph102:                                        ; preds = %.loopexit89
  %52 = icmp sgt i32 %4, 0
  %53 = icmp slt i32 %4, 0
  %wide.trip.count152 = zext nneg i32 %0 to i64
  %.pre154 = load i64, ptr %1, align 8, !tbaa !24
  br i1 %52, label %.lr.ph102.split.us, label %.lr.ph102.split

.lr.ph102.split.us:                               ; preds = %.lr.ph102, %._crit_edge.split.us106
  %54 = phi i64 [ %61, %._crit_edge.split.us106 ], [ %.pre154, %.lr.ph102 ]
  %indvars.iv149 = phi i64 [ %indvars.iv.next150, %._crit_edge.split.us106 ], [ 0, %.lr.ph102 ]
  %55 = load double, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds double, ptr %8, i64 %indvars.iv149
  %57 = load double, ptr %56, align 8, !tbaa !5
  %58 = fmul double %55, %57
  %59 = trunc i64 %54 to i32
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %60 = getelementptr inbounds i64, ptr %1, i64 %indvars.iv.next150
  %61 = load i64, ptr %60, align 8, !tbaa !24
  %62 = trunc i64 %61 to i32
  %63 = icmp slt i32 %59, %62
  br i1 %63, label %.lr.ph.us, label %._crit_edge.split.us106

._crit_edge.split.us106:                          ; preds = %107, %82, %.lr.ph102.split.us
  %.sroa.042.0.lcssa.us = phi double [ 0.000000e+00, %.lr.ph102.split.us ], [ %.sroa.042.1.us105, %82 ], [ %.sroa.042.1.us105.us, %107 ]
  %64 = load double, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds double, ptr %9, i64 %indvars.iv149
  %66 = load double, ptr %65, align 8, !tbaa !5
  %67 = tail call double @llvm.fmuladd.f64(double %64, double %.sroa.042.0.lcssa.us, double %66)
  store double %67, ptr %65, align 8, !tbaa !5
  %exitcond153.not = icmp eq i64 %indvars.iv.next150, %wide.trip.count152
  br i1 %exitcond153.not, label %.loopexit, label %.lr.ph102.split.us, !llvm.loop !26

.lr.ph.split.us108.split:                         ; preds = %.lr.ph.us, %82
  %indvars.iv144 = phi i64 [ %indvars.iv.next145, %82 ], [ %83, %.lr.ph.us ]
  %.sroa.042.099.us103 = phi double [ %.sroa.042.1.us105, %82 ], [ 0.000000e+00, %.lr.ph.us ]
  %68 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv144
  %69 = load i32, ptr %68, align 4, !tbaa !27
  %70 = zext i32 %69 to i64
  %71 = icmp eq i64 %indvars.iv149, %70
  %72 = getelementptr inbounds double, ptr %3, i64 %indvars.iv144
  %73 = load double, ptr %72, align 8, !tbaa !5
  %74 = sext i32 %69 to i64
  %75 = getelementptr inbounds double, ptr %9, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !5
  %77 = tail call double @llvm.fmuladd.f64(double %73, double %58, double %76)
  store double %77, ptr %75, align 8, !tbaa !5
  br i1 %71, label %82, label %78

78:                                               ; preds = %.lr.ph.split.us108.split
  %79 = getelementptr inbounds double, ptr %8, i64 %74
  %80 = load double, ptr %79, align 8, !tbaa !5
  %81 = tail call double @llvm.fmuladd.f64(double %73, double %80, double %.sroa.042.099.us103)
  br label %82

82:                                               ; preds = %.lr.ph.split.us108.split, %78
  %.sroa.042.1.us105 = phi double [ %81, %78 ], [ %.sroa.042.099.us103, %.lr.ph.split.us108.split ]
  %indvars.iv.next145 = add nsw i64 %indvars.iv144, 1
  %exitcond148.not = icmp eq i64 %indvars.iv.next145, %wide.trip.count147
  br i1 %exitcond148.not, label %._crit_edge.split.us106, label %.lr.ph.split.us108.split, !llvm.loop !29

.lr.ph.us:                                        ; preds = %.lr.ph102.split.us
  %sext160 = shl i64 %54, 32
  %83 = ashr exact i64 %sext160, 32
  %sext161 = shl i64 %61, 32
  %wide.trip.count147 = ashr exact i64 %sext161, 32
  br i1 %53, label %.lr.ph.split.us108.split, label %.lr.ph.split.us108.split.us

.lr.ph.split.us108.split.us:                      ; preds = %.lr.ph.us, %107
  %indvars.iv139 = phi i64 [ %indvars.iv.next140, %107 ], [ %83, %.lr.ph.us ]
  %.sroa.042.099.us103.us = phi double [ %.sroa.042.1.us105.us, %107 ], [ 0.000000e+00, %.lr.ph.us ]
  %84 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv139
  %85 = load i32, ptr %84, align 4, !tbaa !27
  %86 = zext i32 %85 to i64
  %87 = icmp eq i64 %indvars.iv149, %86
  br i1 %87, label %100, label %88

88:                                               ; preds = %.lr.ph.split.us108.split.us
  %89 = sext i32 %85 to i64
  %90 = icmp sgt i64 %indvars.iv149, %89
  br i1 %90, label %91, label %107

91:                                               ; preds = %88
  %92 = getelementptr inbounds double, ptr %3, i64 %indvars.iv139
  %93 = load double, ptr %92, align 8, !tbaa !5
  %94 = getelementptr inbounds double, ptr %9, i64 %89
  %95 = load double, ptr %94, align 8, !tbaa !5
  %96 = tail call double @llvm.fmuladd.f64(double %93, double %58, double %95)
  store double %96, ptr %94, align 8, !tbaa !5
  %97 = getelementptr inbounds double, ptr %8, i64 %89
  %98 = load double, ptr %97, align 8, !tbaa !5
  %99 = tail call double @llvm.fmuladd.f64(double %93, double %98, double %.sroa.042.099.us103.us)
  br label %107

100:                                              ; preds = %.lr.ph.split.us108.split.us
  %101 = getelementptr inbounds double, ptr %3, i64 %indvars.iv139
  %102 = load double, ptr %101, align 8, !tbaa !5
  %103 = sext i32 %85 to i64
  %104 = getelementptr inbounds double, ptr %9, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !5
  %106 = tail call double @llvm.fmuladd.f64(double %102, double %58, double %105)
  store double %106, ptr %104, align 8, !tbaa !5
  br label %107

107:                                              ; preds = %88, %100, %91
  %.sroa.042.1.us105.us = phi double [ %.sroa.042.099.us103.us, %100 ], [ %99, %91 ], [ %.sroa.042.099.us103.us, %88 ]
  %indvars.iv.next140 = add nsw i64 %indvars.iv139, 1
  %exitcond143.not = icmp eq i64 %indvars.iv.next140, %wide.trip.count147
  br i1 %exitcond143.not, label %._crit_edge.split.us106, label %.lr.ph.split.us108.split.us, !llvm.loop !29

.lr.ph102.split:                                  ; preds = %.lr.ph102, %._crit_edge.split.us
  %108 = phi i64 [ %115, %._crit_edge.split.us ], [ %.pre154, %.lr.ph102 ]
  %indvars.iv134 = phi i64 [ %indvars.iv.next135, %._crit_edge.split.us ], [ 0, %.lr.ph102 ]
  %109 = load double, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds double, ptr %8, i64 %indvars.iv134
  %111 = load double, ptr %110, align 8, !tbaa !5
  %112 = fmul double %109, %111
  %113 = trunc i64 %108 to i32
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %114 = getelementptr inbounds i64, ptr %1, i64 %indvars.iv.next135
  %115 = load i64, ptr %114, align 8, !tbaa !24
  %116 = trunc i64 %115 to i32
  %117 = icmp slt i32 %113, %116
  br i1 %117, label %.lr.ph, label %._crit_edge.split.us

.lr.ph:                                           ; preds = %.lr.ph102.split
  %sext156 = shl i64 %108, 32
  %118 = ashr exact i64 %sext156, 32
  %sext157 = shl i64 %115, 32
  %wide.trip.count132 = ashr exact i64 %sext157, 32
  br i1 %53, label %.lr.ph.split.us.split, label %.lr.ph.split.us.split.us.preheader

.lr.ph.split.us.split.us.preheader:               ; preds = %.lr.ph
  %119 = sub i64 %115, %108
  %.neg = add nsw i64 %118, 1
  %xtraiter181 = and i64 %119, 1
  %lcmp.mod182.not = icmp eq i64 %xtraiter181, 0
  br i1 %lcmp.mod182.not, label %.lr.ph.split.us.split.us.prol.loopexit, label %.lr.ph.split.us.split.us.prol

.lr.ph.split.us.split.us.prol:                    ; preds = %.lr.ph.split.us.split.us.preheader
  %120 = getelementptr inbounds i32, ptr %2, i64 %118
  %121 = load i32, ptr %120, align 4, !tbaa !27
  %122 = zext i32 %121 to i64
  %123 = icmp eq i64 %indvars.iv134, %122
  br i1 %123, label %124, label %.lr.ph.split.us.split.us.prol.loopexit.unr-lcssa

124:                                              ; preds = %.lr.ph.split.us.split.us.prol
  %125 = getelementptr inbounds double, ptr %3, i64 %118
  %126 = load double, ptr %125, align 8, !tbaa !5
  %127 = sext i32 %121 to i64
  %128 = getelementptr inbounds double, ptr %9, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !5
  %130 = tail call double @llvm.fmuladd.f64(double %126, double %112, double %129)
  store double %130, ptr %128, align 8, !tbaa !5
  br label %.lr.ph.split.us.split.us.prol.loopexit.unr-lcssa

.lr.ph.split.us.split.us.prol.loopexit.unr-lcssa: ; preds = %124, %.lr.ph.split.us.split.us.prol
  %indvars.iv.next125.prol = add nsw i64 %118, 1
  br label %.lr.ph.split.us.split.us.prol.loopexit

.lr.ph.split.us.split.us.prol.loopexit:           ; preds = %.lr.ph.split.us.split.us.prol.loopexit.unr-lcssa, %.lr.ph.split.us.split.us.preheader
  %indvars.iv124.unr = phi i64 [ %118, %.lr.ph.split.us.split.us.preheader ], [ %indvars.iv.next125.prol, %.lr.ph.split.us.split.us.prol.loopexit.unr-lcssa ]
  %131 = icmp eq i64 %wide.trip.count132, %.neg
  br i1 %131, label %._crit_edge.split.us, label %.lr.ph.split.us.split.us

.lr.ph.split.us.split.us:                         ; preds = %.lr.ph.split.us.split.us.prol.loopexit, %154
  %indvars.iv124 = phi i64 [ %indvars.iv.next125.1, %154 ], [ %indvars.iv124.unr, %.lr.ph.split.us.split.us.prol.loopexit ]
  %132 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv124
  %133 = load i32, ptr %132, align 4, !tbaa !27
  %134 = zext i32 %133 to i64
  %135 = icmp eq i64 %indvars.iv134, %134
  br i1 %135, label %136, label %.lr.ph.split.us.split.us.1

136:                                              ; preds = %.lr.ph.split.us.split.us
  %137 = getelementptr inbounds double, ptr %3, i64 %indvars.iv124
  %138 = load double, ptr %137, align 8, !tbaa !5
  %139 = sext i32 %133 to i64
  %140 = getelementptr inbounds double, ptr %9, i64 %139
  %141 = load double, ptr %140, align 8, !tbaa !5
  %142 = tail call double @llvm.fmuladd.f64(double %138, double %112, double %141)
  store double %142, ptr %140, align 8, !tbaa !5
  br label %.lr.ph.split.us.split.us.1

.lr.ph.split.us.split.us.1:                       ; preds = %.lr.ph.split.us.split.us, %136
  %indvars.iv.next125 = add nsw i64 %indvars.iv124, 1
  %143 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv.next125
  %144 = load i32, ptr %143, align 4, !tbaa !27
  %145 = zext i32 %144 to i64
  %146 = icmp eq i64 %indvars.iv134, %145
  br i1 %146, label %147, label %154

147:                                              ; preds = %.lr.ph.split.us.split.us.1
  %148 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next125
  %149 = load double, ptr %148, align 8, !tbaa !5
  %150 = sext i32 %144 to i64
  %151 = getelementptr inbounds double, ptr %9, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !5
  %153 = tail call double @llvm.fmuladd.f64(double %149, double %112, double %152)
  store double %153, ptr %151, align 8, !tbaa !5
  br label %154

154:                                              ; preds = %147, %.lr.ph.split.us.split.us.1
  %indvars.iv.next125.1 = add nsw i64 %indvars.iv124, 2
  %exitcond128.not.1 = icmp eq i64 %indvars.iv.next125.1, %wide.trip.count132
  br i1 %exitcond128.not.1, label %._crit_edge.split.us, label %.lr.ph.split.us.split.us, !llvm.loop !29

.lr.ph.split.us.split:                            ; preds = %.lr.ph, %178
  %indvars.iv129 = phi i64 [ %indvars.iv.next130, %178 ], [ %118, %.lr.ph ]
  %.sroa.042.099.us = phi double [ %.sroa.042.1.us, %178 ], [ 0.000000e+00, %.lr.ph ]
  %155 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv129
  %156 = load i32, ptr %155, align 4, !tbaa !27
  %157 = zext i32 %156 to i64
  %158 = icmp eq i64 %indvars.iv134, %157
  br i1 %158, label %171, label %159

159:                                              ; preds = %.lr.ph.split.us.split
  %160 = sext i32 %156 to i64
  %161 = icmp slt i64 %indvars.iv134, %160
  br i1 %161, label %162, label %178

162:                                              ; preds = %159
  %163 = getelementptr inbounds double, ptr %3, i64 %indvars.iv129
  %164 = load double, ptr %163, align 8, !tbaa !5
  %165 = getelementptr inbounds double, ptr %9, i64 %160
  %166 = load double, ptr %165, align 8, !tbaa !5
  %167 = tail call double @llvm.fmuladd.f64(double %164, double %112, double %166)
  store double %167, ptr %165, align 8, !tbaa !5
  %168 = getelementptr inbounds double, ptr %8, i64 %160
  %169 = load double, ptr %168, align 8, !tbaa !5
  %170 = tail call double @llvm.fmuladd.f64(double %164, double %169, double %.sroa.042.099.us)
  br label %178

171:                                              ; preds = %.lr.ph.split.us.split
  %172 = getelementptr inbounds double, ptr %3, i64 %indvars.iv129
  %173 = load double, ptr %172, align 8, !tbaa !5
  %174 = sext i32 %156 to i64
  %175 = getelementptr inbounds double, ptr %9, i64 %174
  %176 = load double, ptr %175, align 8, !tbaa !5
  %177 = tail call double @llvm.fmuladd.f64(double %173, double %112, double %176)
  store double %177, ptr %175, align 8, !tbaa !5
  br label %178

178:                                              ; preds = %171, %162, %159
  %.sroa.042.1.us = phi double [ %.sroa.042.099.us, %171 ], [ %170, %162 ], [ %.sroa.042.099.us, %159 ]
  %indvars.iv.next130 = add nsw i64 %indvars.iv129, 1
  %exitcond133.not = icmp eq i64 %indvars.iv.next130, %wide.trip.count132
  br i1 %exitcond133.not, label %._crit_edge.split.us, label %.lr.ph.split.us.split, !llvm.loop !29

._crit_edge.split.us:                             ; preds = %.lr.ph.split.us.split.us.prol.loopexit, %154, %178, %.lr.ph102.split
  %.sroa.042.0.lcssa = phi double [ 0.000000e+00, %.lr.ph102.split ], [ %.sroa.042.1.us, %178 ], [ 0.000000e+00, %154 ], [ 0.000000e+00, %.lr.ph.split.us.split.us.prol.loopexit ]
  %179 = load double, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds double, ptr %9, i64 %indvars.iv134
  %181 = load double, ptr %180, align 8, !tbaa !5
  %182 = tail call double @llvm.fmuladd.f64(double %179, double %.sroa.042.0.lcssa, double %181)
  store double %182, ptr %180, align 8, !tbaa !5
  %exitcond138.not = icmp eq i64 %indvars.iv.next135, %wide.trip.count152
  br i1 %exitcond138.not, label %.loopexit, label %.lr.ph102.split, !llvm.loop !26

.loopexit:                                        ; preds = %._crit_edge.split.us, %._crit_edge.split.us106, %.preheader87.lr.ph, %.preheader90.lr.ph, %.loopexit89
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress nofree norecurse nosync nounwind memory(argmem: readwrite) 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }

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


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