; LLVM IR from sympiler/nasoq :: src/common/Norm.ll (ZN5nasoq15norm_sparse_intEiPiS0_Pdii)

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt8isfinited(double noundef) #3

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #5

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #8

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN5nasoq15norm_sparse_intEiPiS0_Pdii(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #9 {
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i8, align 1
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store i32 %0, ptr %8, align 4, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !5
  store i32 %5, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #10
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  store i32 0, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #10
  store i8 1, ptr %20, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  %27 = load i32, ptr %8, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %28, i64 8)
  %30 = extractvalue { i64, i1 } %29, 1
  %31 = extractvalue { i64, i1 } %29, 0
  %32 = select i1 %30, i64 -1, i64 %31
  %33 = call noalias noundef nonnull ptr @_Znam(i64 noundef %32) #11
  call void @llvm.memset.p0.i64(ptr align 8 %33, i8 0, i64 %32, i1 false)
  store ptr %33, ptr %21, align 8, !tbaa !9
  %34 = load i32, ptr %13, align 4, !tbaa !5
  %35 = icmp slt i32 %34, 0
  br i1 %35, label %39, label %36

36:                                               ; preds = %6
  %37 = load i32, ptr %13, align 4, !tbaa !5
  %38 = icmp sgt i32 %37, 3
  br i1 %38, label %39, label %41

39:                                               ; preds = %36, %6
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  store double -1.000000e+00, ptr %7, align 8
  store i32 1, ptr %22, align 4
  br label %317

41:                                               ; preds = %36
  store double 0.000000e+00, ptr %14, align 8, !tbaa !11
  %42 = load i32, ptr %12, align 4, !tbaa !5
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %44, label %127

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #10
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %123, %44
  %46 = load i32, ptr %23, align 4, !tbaa !5
  %47 = load i32, ptr %8, align 4, !tbaa !5
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 2, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  br label %126

50:                                               ; preds = %45
  %51 = load ptr, ptr %9, align 8, !tbaa !9
  %52 = load i32, ptr %23, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i32, ptr %51, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !5
  store i32 %55, ptr %17, align 4, !tbaa !5
  %56 = load ptr, ptr %9, align 8, !tbaa !9
  %57 = load i32, ptr %23, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i32, ptr %56, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  store i32 %61, ptr %18, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %119, %50
  %63 = load i32, ptr %17, align 4, !tbaa !5
  %64 = load i32, ptr %18, align 4, !tbaa !5
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %66, label %122

66:                                               ; preds = %62
  %67 = load ptr, ptr %10, align 8, !tbaa !9
  %68 = load i32, ptr %17, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds i32, ptr %67, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  store i32 %71, ptr %19, align 4, !tbaa !5
  %72 = load ptr, ptr %11, align 8, !tbaa !9
  %73 = load i32, ptr %17, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %72, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !11
  %77 = call noundef double @_ZSt3absd(double noundef %76)
  store double %77, ptr %15, align 8, !tbaa !11
  %78 = load i32, ptr %19, align 4, !tbaa !5
  %79 = load i32, ptr %23, align 4, !tbaa !5
  %80 = icmp eq i32 %78, %79
  br i1 %80, label %81, label %93

81:                                               ; preds = %66
  %82 = load double, ptr %15, align 8, !tbaa !11
  %83 = load ptr, ptr %21, align 8, !tbaa !9
  %84 = load i32, ptr %19, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds double, ptr %83, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !11
  %88 = fadd double %87, %82
  store double %88, ptr %86, align 8, !tbaa !11
  %89 = load double, ptr %15, align 8, !tbaa !11
  %90 = load double, ptr %15, align 8, !tbaa !11
  %91 = load double, ptr %16, align 8, !tbaa !11
  %92 = call double @llvm.fmuladd.f64(double %89, double %90, double %91)
  store double %92, ptr %16, align 8, !tbaa !11
  br label %118

93:                                               ; preds = %66
  %94 = load i32, ptr %19, align 4, !tbaa !5
  %95 = load i32, ptr %23, align 4, !tbaa !5
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %97, label %117

97:                                               ; preds = %93
  %98 = load double, ptr %15, align 8, !tbaa !11
  %99 = load ptr, ptr %21, align 8, !tbaa !9
  %100 = load i32, ptr %19, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds double, ptr %99, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !11
  %104 = fadd double %103, %98
  store double %104, ptr %102, align 8, !tbaa !11
  %105 = load double, ptr %15, align 8, !tbaa !11
  %106 = load ptr, ptr %21, align 8, !tbaa !9
  %107 = load i32, ptr %23, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds double, ptr %106, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !11
  %111 = fadd double %110, %105
  store double %111, ptr %109, align 8, !tbaa !11
  %112 = load double, ptr %15, align 8, !tbaa !11
  %113 = fmul double 2.000000e+00, %112
  %114 = load double, ptr %15, align 8, !tbaa !11
  %115 = load double, ptr %16, align 8, !tbaa !11
  %116 = call double @llvm.fmuladd.f64(double %113, double %114, double %115)
  store double %116, ptr %16, align 8, !tbaa !11
  br label %117

117:                                              ; preds = %97, %93
  br label %118

118:                                              ; preds = %117, %81
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %17, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %17, align 4, !tbaa !5
  br label %62, !llvm.loop !15

122:                                              ; preds = %62
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %23, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %23, align 4, !tbaa !5
  br label %45, !llvm.loop !17

126:                                              ; preds = %49
  br label %271

127:                                              ; preds = %41
  %128 = load i32, ptr %12, align 4, !tbaa !5
  %129 = icmp slt i32 %128, 0
  br i1 %129, label %130, label %213

130:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #10
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %209, %130
  %132 = load i32, ptr %24, align 4, !tbaa !5
  %133 = load i32, ptr %8, align 4, !tbaa !5
  %134 = icmp slt i32 %132, %133
  br i1 %134, label %136, label %135

135:                                              ; preds = %131
  store i32 8, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #10
  br label %212

136:                                              ; preds = %131
  %137 = load ptr, ptr %9, align 8, !tbaa !9
  %138 = load i32, ptr %24, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds i32, ptr %137, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !5
  store i32 %141, ptr %17, align 4, !tbaa !5
  %142 = load ptr, ptr %9, align 8, !tbaa !9
  %143 = load i32, ptr %24, align 4, !tbaa !5
  %144 = add nsw i32 %143, 1
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds i32, ptr %142, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !5
  store i32 %147, ptr %18, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %205, %136
  %149 = load i32, ptr %17, align 4, !tbaa !5
  %150 = load i32, ptr %18, align 4, !tbaa !5
  %151 = icmp slt i32 %149, %150
  br i1 %151, label %152, label %208

152:                                              ; preds = %148
  %153 = load ptr, ptr %10, align 8, !tbaa !9
  %154 = load i32, ptr %17, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds i32, ptr %153, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !5
  store i32 %157, ptr %19, align 4, !tbaa !5
  %158 = load ptr, ptr %11, align 8, !tbaa !9
  %159 = load i32, ptr %17, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds double, ptr %158, i64 %160
  %162 = load double, ptr %161, align 8, !tbaa !11
  %163 = call noundef double @_ZSt3absd(double noundef %162)
  store double %163, ptr %15, align 8, !tbaa !11
  %164 = load i32, ptr %19, align 4, !tbaa !5
  %165 = load i32, ptr %24, align 4, !tbaa !5
  %166 = icmp eq i32 %164, %165
  br i1 %166, label %167, label %179

167:                                              ; preds = %152
  %168 = load double, ptr %15, align 8, !tbaa !11
  %169 = load ptr, ptr %21, align 8, !tbaa !9
  %170 = load i32, ptr %19, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds double, ptr %169, i64 %171
  %173 = load double, ptr %172, align 8, !tbaa !11
  %174 = fadd double %173, %168
  store double %174, ptr %172, align 8, !tbaa !11
  %175 = load double, ptr %15, align 8, !tbaa !11
  %176 = load double, ptr %15, align 8, !tbaa !11
  %177 = load double, ptr %16, align 8, !tbaa !11
  %178 = call double @llvm.fmuladd.f64(double %175, double %176, double %177)
  store double %178, ptr %16, align 8, !tbaa !11
  br label %204

179:                                              ; preds = %152
  %180 = load i32, ptr %19, align 4, !tbaa !5
  %181 = load i32, ptr %24, align 4, !tbaa !5
  %182 = icmp sgt i32 %180, %181
  br i1 %182, label %183, label %203

183:                                              ; preds = %179
  %184 = load double, ptr %15, align 8, !tbaa !11
  %185 = load ptr, ptr %21, align 8, !tbaa !9
  %186 = load i32, ptr %19, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds double, ptr %185, i64 %187
  %189 = load double, ptr %188, align 8, !tbaa !11
  %190 = fadd double %189, %184
  store double %190, ptr %188, align 8, !tbaa !11
  %191 = load double, ptr %15, align 8, !tbaa !11
  %192 = load ptr, ptr %21, align 8, !tbaa !9
  %193 = load i32, ptr %24, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds double, ptr %192, i64 %194
  %196 = load double, ptr %195, align 8, !tbaa !11
  %197 = fadd double %196, %191
  store double %197, ptr %195, align 8, !tbaa !11
  %198 = load double, ptr %15, align 8, !tbaa !11
  %199 = fmul double 2.000000e+00, %198
  %200 = load double, ptr %15, align 8, !tbaa !11
  %201 = load double, ptr %16, align 8, !tbaa !11
  %202 = call double @llvm.fmuladd.f64(double %199, double %200, double %201)
  store double %202, ptr %16, align 8, !tbaa !11
  br label %203

203:                                              ; preds = %183, %179
  br label %204

204:                                              ; preds = %203, %167
  br label %205

205:                                              ; preds = %204
  %206 = load i32, ptr %17, align 4, !tbaa !5
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %17, align 4, !tbaa !5
  br label %148, !llvm.loop !18

208:                                              ; preds = %148
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr %24, align 4, !tbaa !5
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %24, align 4, !tbaa !5
  br label %131, !llvm.loop !19

212:                                              ; preds = %135
  br label %270

213:                                              ; preds = %127
  %214 = load i32, ptr %12, align 4, !tbaa !5
  %215 = icmp eq i32 %214, 0
  br i1 %215, label %216, label %269

216:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #10
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %217

217:                                              ; preds = %265, %216
  %218 = load i32, ptr %25, align 4, !tbaa !5
  %219 = load i32, ptr %8, align 4, !tbaa !5
  %220 = icmp slt i32 %218, %219
  br i1 %220, label %222, label %221

221:                                              ; preds = %217
  store i32 14, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #10
  br label %268

222:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #10
  %223 = load ptr, ptr %9, align 8, !tbaa !9
  %224 = load i32, ptr %25, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds i32, ptr %223, i64 %225
  %227 = load i32, ptr %226, align 4, !tbaa !5
  store i32 %227, ptr %26, align 4, !tbaa !5
  br label %228

228:                                              ; preds = %261, %222
  %229 = load i32, ptr %26, align 4, !tbaa !5
  %230 = load ptr, ptr %9, align 8, !tbaa !9
  %231 = load i32, ptr %25, align 4, !tbaa !5
  %232 = add nsw i32 %231, 1
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds i32, ptr %230, i64 %233
  %235 = load i32, ptr %234, align 4, !tbaa !5
  %236 = icmp slt i32 %229, %235
  br i1 %236, label %238, label %237

237:                                              ; preds = %228
  store i32 17, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #10
  br label %264

238:                                              ; preds = %228
  %239 = load ptr, ptr %10, align 8, !tbaa !9
  %240 = load i32, ptr %26, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds i32, ptr %239, i64 %241
  %243 = load i32, ptr %242, align 4, !tbaa !5
  store i32 %243, ptr %17, align 4, !tbaa !5
  %244 = load ptr, ptr %11, align 8, !tbaa !9
  %245 = load i32, ptr %17, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds double, ptr %244, i64 %246
  %248 = load double, ptr %247, align 8, !tbaa !11
  %249 = call noundef double @_ZSt3absd(double noundef %248)
  store double %249, ptr %15, align 8, !tbaa !11
  %250 = load double, ptr %15, align 8, !tbaa !11
  %251 = load ptr, ptr %21, align 8, !tbaa !9
  %252 = load i32, ptr %17, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds double, ptr %251, i64 %253
  %255 = load double, ptr %254, align 8, !tbaa !11
  %256 = fadd double %255, %250
  store double %256, ptr %254, align 8, !tbaa !11
  %257 = load double, ptr %15, align 8, !tbaa !11
  %258 = load double, ptr %15, align 8, !tbaa !11
  %259 = load double, ptr %16, align 8, !tbaa !11
  %260 = call double @llvm.fmuladd.f64(double %257, double %258, double %259)
  store double %260, ptr %16, align 8, !tbaa !11
  br label %261

261:                                              ; preds = %238
  %262 = load i32, ptr %26, align 4, !tbaa !5
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %26, align 4, !tbaa !5
  br label %228, !llvm.loop !20

264:                                              ; preds = %237
  br label %265

265:                                              ; preds = %264
  %266 = load i32, ptr %25, align 4, !tbaa !5
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %25, align 4, !tbaa !5
  br label %217, !llvm.loop !21

268:                                              ; preds = %221
  br label %269

269:                                              ; preds = %268, %213
  br label %270

270:                                              ; preds = %269, %212
  br label %271

271:                                              ; preds = %270, %126
  %272 = load i32, ptr %13, align 4, !tbaa !5
  %273 = icmp eq i32 %272, 0
  br i1 %273, label %274, label %301

274:                                              ; preds = %271
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %275

275:                                              ; preds = %297, %274
  %276 = load i32, ptr %19, align 4, !tbaa !5
  %277 = load i32, ptr %8, align 4, !tbaa !5
  %278 = icmp slt i32 %276, %277
  br i1 %278, label %279, label %300

279:                                              ; preds = %275
  %280 = load ptr, ptr %21, align 8, !tbaa !9
  %281 = load i32, ptr %19, align 4, !tbaa !5
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds double, ptr %280, i64 %282
  %284 = load double, ptr %283, align 8, !tbaa !11
  store double %284, ptr %15, align 8, !tbaa !11
  %285 = load double, ptr %15, align 8, !tbaa !11
  %286 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %285)
  br i1 %286, label %287, label %291

287:                                              ; preds = %279
  %288 = load double, ptr %15, align 8, !tbaa !11
  %289 = load double, ptr %14, align 8, !tbaa !11
  %290 = fcmp ogt double %288, %289
  br i1 %290, label %291, label %296

291:                                              ; preds = %287, %279
  %292 = load double, ptr %14, align 8, !tbaa !11
  %293 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %292)
  br i1 %293, label %294, label %296

294:                                              ; preds = %291
  %295 = load double, ptr %15, align 8, !tbaa !11
  store double %295, ptr %14, align 8, !tbaa !11
  br label %296

296:                                              ; preds = %294, %291, %287
  br label %297

297:                                              ; preds = %296
  %298 = load i32, ptr %19, align 4, !tbaa !5
  %299 = add nsw i32 %298, 1
  store i32 %299, ptr %19, align 4, !tbaa !5
  br label %275, !llvm.loop !22

300:                                              ; preds = %275
  br label %301

301:                                              ; preds = %300, %271
  %302 = load i32, ptr %13, align 4, !tbaa !5
  %303 = icmp eq i32 %302, 2
  br i1 %303, label %304, label %311

304:                                              ; preds = %301
  %305 = load double, ptr %15, align 8, !tbaa !11
  %306 = call noundef zeroext i1 @_ZSt8isfinited(double noundef %305)
  br i1 %306, label %307, label %310

307:                                              ; preds = %304
  %308 = load double, ptr %16, align 8, !tbaa !11
  %309 = call double @sqrt(double noundef %308) #10
  store double %309, ptr %14, align 8, !tbaa !11
  br label %310

310:                                              ; preds = %307, %304
  br label %311

311:                                              ; preds = %310, %301
  %312 = load ptr, ptr %21, align 8, !tbaa !9
  %313 = icmp eq ptr %312, null
  br i1 %313, label %315, label %314

314:                                              ; preds = %311
  call void @_ZdaPv(ptr noundef %312) #12
  br label %315

315:                                              ; preds = %314, %311
  %316 = load double, ptr %14, align 8, !tbaa !11
  store double %316, ptr %7, align 8
  store i32 1, ptr %22, align 4
  br label %317

317:                                              ; preds = %315, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  %318 = load double, ptr %7, align 8
  ret double %318
}

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nobuiltin 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 #9 = { 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 #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin 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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !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}
!22 = distinct !{!22, !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"

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt8isfinited(double 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 nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #4

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN5nasoq15norm_sparse_intEiPiS0_Pdii(i32 noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #8 {
  %7 = zext i32 %0 to i64
  %8 = icmp slt i32 %0, 0
  %9 = shl nuw nsw i64 %7, 3
  %10 = select i1 %8, i64 -1, i64 %9
  %11 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %10) #9
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %11, i8 0, i64 %10, i1 false)
  %or.cond = icmp ugt i32 %5, 3
  br i1 %or.cond, label %12, label %14

12:                                               ; preds = %6
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  br label %119

14:                                               ; preds = %6
  %15 = icmp sgt i32 %4, 0
  br i1 %15, label %.preheader138, label %49

.preheader138:                                    ; preds = %14
  %16 = icmp sgt i32 %0, 0
  br i1 %16, label %.lr.ph175, label %.loopexit

.loopexit137:                                     ; preds = %48, %.lr.ph175
  %.1121.lcssa = phi double [ %.0120172, %.lr.ph175 ], [ %29, %48 ]
  %.1117.lcssa = phi double [ %.0116173, %.lr.ph175 ], [ %.2118, %48 ]
  %exitcond212.not = icmp eq i64 %indvars.iv.next209, %7
  br i1 %exitcond212.not, label %.loopexit139, label %.lr.ph175, !llvm.loop !5

.lr.ph175:                                        ; preds = %.preheader138, %.loopexit137
  %indvars.iv208 = phi i64 [ %indvars.iv.next209, %.loopexit137 ], [ 0, %.preheader138 ]
  %.0116173 = phi double [ %.1117.lcssa, %.loopexit137 ], [ 0.000000e+00, %.preheader138 ]
  %.0120172 = phi double [ %.1121.lcssa, %.loopexit137 ], [ undef, %.preheader138 ]
  %17 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv208
  %18 = load i32, ptr %17, align 4, !tbaa !7
  %indvars.iv.next209 = add nuw nsw i64 %indvars.iv208, 1
  %19 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv.next209
  %20 = load i32, ptr %19, align 4, !tbaa !7
  %21 = icmp slt i32 %18, %20
  br i1 %21, label %.lr.ph169, label %.loopexit137

.lr.ph169:                                        ; preds = %.lr.ph175
  %22 = getelementptr inbounds double, ptr %11, i64 %indvars.iv208
  %23 = sext i32 %18 to i64
  br label %24

24:                                               ; preds = %.lr.ph169, %48
  %indvars.iv203 = phi i64 [ %23, %.lr.ph169 ], [ %indvars.iv.next204, %48 ]
  %.1117167 = phi double [ %.0116173, %.lr.ph169 ], [ %.2118, %48 ]
  %25 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv203
  %26 = load i32, ptr %25, align 4, !tbaa !7
  %27 = getelementptr inbounds double, ptr %3, i64 %indvars.iv203
  %28 = load double, ptr %27, align 8, !tbaa !11
  %29 = tail call noundef double @_ZSt3absd(double noundef %28)
  %30 = zext i32 %26 to i64
  %31 = icmp eq i64 %indvars.iv208, %30
  %32 = sext i32 %26 to i64
  br i1 %31, label %33, label %38

33:                                               ; preds = %24
  %34 = getelementptr inbounds double, ptr %11, i64 %32
  %35 = load double, ptr %34, align 8, !tbaa !11
  %36 = fadd double %29, %35
  store double %36, ptr %34, align 8, !tbaa !11
  %37 = tail call double @llvm.fmuladd.f64(double %29, double %29, double %.1117167)
  br label %48

38:                                               ; preds = %24
  %39 = icmp sgt i64 %indvars.iv208, %32
  br i1 %39, label %40, label %48

40:                                               ; preds = %38
  %41 = getelementptr inbounds double, ptr %11, i64 %32
  %42 = load double, ptr %41, align 8, !tbaa !11
  %43 = fadd double %29, %42
  store double %43, ptr %41, align 8, !tbaa !11
  %44 = load double, ptr %22, align 8, !tbaa !11
  %45 = fadd double %29, %44
  store double %45, ptr %22, align 8, !tbaa !11
  %46 = fmul double %29, 2.000000e+00
  %47 = tail call double @llvm.fmuladd.f64(double %46, double %29, double %.1117167)
  br label %48

48:                                               ; preds = %33, %40, %38
  %.2118 = phi double [ %37, %33 ], [ %47, %40 ], [ %.1117167, %38 ]
  %indvars.iv.next204 = add nsw i64 %indvars.iv203, 1
  %lftr.wideiv206 = trunc i64 %indvars.iv.next204 to i32
  %exitcond207.not = icmp eq i32 %20, %lftr.wideiv206
  br i1 %exitcond207.not, label %.loopexit137, label %24, !llvm.loop !13

49:                                               ; preds = %14
  %50 = icmp slt i32 %4, 0
  %51 = icmp sgt i32 %0, 0
  br i1 %50, label %.preheader141, label %.preheader144

.preheader144:                                    ; preds = %49
  br i1 %51, label %.lr.ph153.preheader, label %.loopexit

.lr.ph153.preheader:                              ; preds = %.preheader144
  %.pre = load i32, ptr %1, align 4, !tbaa !7
  br label %.lr.ph153

.preheader141:                                    ; preds = %49
  br i1 %51, label %.lr.ph164, label %.loopexit

.loopexit140:                                     ; preds = %83, %.lr.ph164
  %.3123.lcssa = phi double [ %.2122161, %.lr.ph164 ], [ %64, %83 ]
  %.4.lcssa = phi double [ %.3119162, %.lr.ph164 ], [ %.5, %83 ]
  %exitcond202.not = icmp eq i64 %indvars.iv.next199, %7
  br i1 %exitcond202.not, label %.loopexit139, label %.lr.ph164, !llvm.loop !14

.lr.ph164:                                        ; preds = %.preheader141, %.loopexit140
  %indvars.iv198 = phi i64 [ %indvars.iv.next199, %.loopexit140 ], [ 0, %.preheader141 ]
  %.3119162 = phi double [ %.4.lcssa, %.loopexit140 ], [ 0.000000e+00, %.preheader141 ]
  %.2122161 = phi double [ %.3123.lcssa, %.loopexit140 ], [ undef, %.preheader141 ]
  %52 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv198
  %53 = load i32, ptr %52, align 4, !tbaa !7
  %indvars.iv.next199 = add nuw nsw i64 %indvars.iv198, 1
  %54 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv.next199
  %55 = load i32, ptr %54, align 4, !tbaa !7
  %56 = icmp slt i32 %53, %55
  br i1 %56, label %.lr.ph158, label %.loopexit140

.lr.ph158:                                        ; preds = %.lr.ph164
  %57 = getelementptr inbounds double, ptr %11, i64 %indvars.iv198
  %58 = sext i32 %53 to i64
  br label %59

59:                                               ; preds = %.lr.ph158, %83
  %indvars.iv194 = phi i64 [ %58, %.lr.ph158 ], [ %indvars.iv.next195, %83 ]
  %.4156 = phi double [ %.3119162, %.lr.ph158 ], [ %.5, %83 ]
  %60 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv194
  %61 = load i32, ptr %60, align 4, !tbaa !7
  %62 = getelementptr inbounds double, ptr %3, i64 %indvars.iv194
  %63 = load double, ptr %62, align 8, !tbaa !11
  %64 = tail call noundef double @_ZSt3absd(double noundef %63)
  %65 = zext i32 %61 to i64
  %66 = icmp eq i64 %indvars.iv198, %65
  %67 = sext i32 %61 to i64
  br i1 %66, label %68, label %73

68:                                               ; preds = %59
  %69 = getelementptr inbounds double, ptr %11, i64 %67
  %70 = load double, ptr %69, align 8, !tbaa !11
  %71 = fadd double %64, %70
  store double %71, ptr %69, align 8, !tbaa !11
  %72 = tail call double @llvm.fmuladd.f64(double %64, double %64, double %.4156)
  br label %83

73:                                               ; preds = %59
  %74 = icmp slt i64 %indvars.iv198, %67
  br i1 %74, label %75, label %83

75:                                               ; preds = %73
  %76 = getelementptr inbounds double, ptr %11, i64 %67
  %77 = load double, ptr %76, align 8, !tbaa !11
  %78 = fadd double %64, %77
  store double %78, ptr %76, align 8, !tbaa !11
  %79 = load double, ptr %57, align 8, !tbaa !11
  %80 = fadd double %64, %79
  store double %80, ptr %57, align 8, !tbaa !11
  %81 = fmul double %64, 2.000000e+00
  %82 = tail call double @llvm.fmuladd.f64(double %81, double %64, double %.4156)
  br label %83

83:                                               ; preds = %68, %75, %73
  %.5 = phi double [ %72, %68 ], [ %82, %75 ], [ %.4156, %73 ]
  %indvars.iv.next195 = add nsw i64 %indvars.iv194, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next195 to i32
  %exitcond197.not = icmp eq i32 %55, %lftr.wideiv
  br i1 %exitcond197.not, label %.loopexit140, label %59, !llvm.loop !15

.loopexit143:                                     ; preds = %.lr.ph, %.lr.ph153
  %84 = phi i32 [ %87, %.lr.ph153 ], [ %100, %.lr.ph ]
  %.5125.lcssa = phi double [ %.4124150, %.lr.ph153 ], [ %95, %.lr.ph ]
  %.7.lcssa = phi double [ %.6151, %.lr.ph153 ], [ %99, %.lr.ph ]
  %exitcond.not = icmp eq i64 %indvars.iv.next192, %7
  br i1 %exitcond.not, label %.loopexit139, label %.lr.ph153, !llvm.loop !16

.lr.ph153:                                        ; preds = %.lr.ph153.preheader, %.loopexit143
  %85 = phi i32 [ %.pre, %.lr.ph153.preheader ], [ %84, %.loopexit143 ]
  %indvars.iv191 = phi i64 [ 0, %.lr.ph153.preheader ], [ %indvars.iv.next192, %.loopexit143 ]
  %.6151 = phi double [ 0.000000e+00, %.lr.ph153.preheader ], [ %.7.lcssa, %.loopexit143 ]
  %.4124150 = phi double [ undef, %.lr.ph153.preheader ], [ %.5125.lcssa, %.loopexit143 ]
  %indvars.iv.next192 = add nuw nsw i64 %indvars.iv191, 1
  %86 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv.next192
  %87 = load i32, ptr %86, align 4, !tbaa !7
  %88 = icmp slt i32 %85, %87
  br i1 %88, label %.lr.ph.preheader, label %.loopexit143

.lr.ph.preheader:                                 ; preds = %.lr.ph153
  %89 = sext i32 %85 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %89, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.7146 = phi double [ %.6151, %.lr.ph.preheader ], [ %99, %.lr.ph ]
  %90 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv
  %91 = load i32, ptr %90, align 4, !tbaa !7
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds double, ptr %3, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !11
  %95 = tail call noundef double @_ZSt3absd(double noundef %94)
  %96 = getelementptr inbounds double, ptr %11, i64 %92
  %97 = load double, ptr %96, align 8, !tbaa !11
  %98 = fadd double %95, %97
  store double %98, ptr %96, align 8, !tbaa !11
  %99 = tail call double @llvm.fmuladd.f64(double %95, double %95, double %.7146)
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %100 = load i32, ptr %86, align 4, !tbaa !7
  %101 = sext i32 %100 to i64
  %102 = icmp slt i64 %indvars.iv.next, %101
  br i1 %102, label %.lr.ph, label %.loopexit143, !llvm.loop !17

.loopexit139:                                     ; preds = %.loopexit143, %.loopexit140, %.loopexit137
  %.6126 = phi double [ %.1121.lcssa, %.loopexit137 ], [ %.3123.lcssa, %.loopexit140 ], [ %.5125.lcssa, %.loopexit143 ]
  %.8 = phi double [ %.1117.lcssa, %.loopexit137 ], [ %.4.lcssa, %.loopexit140 ], [ %.7.lcssa, %.loopexit143 ]
  %103 = icmp eq i32 %5, 0
  %104 = icmp sgt i32 %0, 0
  %or.cond183 = and i1 %103, %104
  br i1 %or.cond183, label %.lr.ph180, label %.loopexit

.lr.ph180:                                        ; preds = %.loopexit139, %112
  %indvars.iv213 = phi i64 [ %indvars.iv.next214, %112 ], [ 0, %.loopexit139 ]
  %.0112179 = phi double [ %.1, %112 ], [ 0.000000e+00, %.loopexit139 ]
  %105 = getelementptr inbounds double, ptr %11, i64 %indvars.iv213
  %106 = load double, ptr %105, align 8, !tbaa !11
  %107 = tail call noundef zeroext i1 @_ZSt8isfinited(double noundef %106)
  %108 = fcmp ule double %106, %.0112179
  %or.cond135.not = select i1 %107, i1 %108, i1 false
  br i1 %or.cond135.not, label %112, label %109

109:                                              ; preds = %.lr.ph180
  %110 = tail call noundef zeroext i1 @_ZSt8isfinited(double noundef %.0112179)
  br i1 %110, label %111, label %112

111:                                              ; preds = %109
  br label %112

112:                                              ; preds = %.lr.ph180, %109, %111
  %.1 = phi double [ %106, %111 ], [ %.0112179, %109 ], [ %.0112179, %.lr.ph180 ]
  %indvars.iv.next214 = add nuw nsw i64 %indvars.iv213, 1
  %exitcond217.not = icmp eq i64 %indvars.iv.next214, %7
  br i1 %exitcond217.not, label %.loopexit, label %.lr.ph180, !llvm.loop !18

.loopexit:                                        ; preds = %112, %.preheader138, %.preheader141, %.preheader144, %.loopexit139
  %.8221 = phi double [ %.8, %.loopexit139 ], [ 0.000000e+00, %.preheader144 ], [ 0.000000e+00, %.preheader141 ], [ 0.000000e+00, %.preheader138 ], [ %.8, %112 ]
  %.8128 = phi double [ %.6126, %.loopexit139 ], [ undef, %.preheader144 ], [ undef, %.preheader141 ], [ undef, %.preheader138 ], [ %106, %112 ]
  %.2 = phi double [ 0.000000e+00, %.loopexit139 ], [ 0.000000e+00, %.preheader144 ], [ 0.000000e+00, %.preheader141 ], [ 0.000000e+00, %.preheader138 ], [ %.1, %112 ]
  %113 = icmp eq i32 %5, 2
  br i1 %113, label %114, label %118

114:                                              ; preds = %.loopexit
  %115 = tail call noundef zeroext i1 @_ZSt8isfinited(double noundef %.8128)
  br i1 %115, label %116, label %118

116:                                              ; preds = %114
  %117 = tail call double @sqrt(double noundef %.8221) #10
  br label %118

118:                                              ; preds = %.loopexit, %116, %114
  %.3 = phi double [ %117, %116 ], [ %.2, %114 ], [ %.2, %.loopexit ]
  tail call void @_ZdaPv(ptr noundef nonnull %11) #11
  br label %119

119:                                              ; preds = %118, %12
  %.0111 = phi double [ -1.000000e+00, %12 ], [ %.3, %118 ]
  ret double %.0111
}

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


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