; LLVM IR from NVIDIA/DALI :: dali/operators/image/resize (resize_attr_base)

; 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.dali::SmallVector" = type { %union.anon.28, i64 }
%union.anon.28 = type { %struct.anon, [8 x i8] }
%struct.anon = type { ptr, i64 }
%"class.dali::SmallVector.29" = type { %union.anon.32, i64 }
%union.anon.32 = type { %struct.anon.33 }
%struct.anon.33 = type { ptr, i64 }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali16AdjustOutputSizeEPfPKfiNS_10ResizeModeES2_(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"class.dali::SmallVector", align 8
  %12 = alloca %"class.dali::SmallVector.29", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca i8, align 1
  %27 = alloca i32, align 4
  %28 = alloca float, align 4
  %29 = alloca i32, align 4
  %30 = alloca double, align 8
  %31 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !11
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #7
  call void @_ZN4dali11SmallVectorIdLm3ESaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11)
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #7
  invoke void @_ZN4dali11SmallVectorIbLm3ESaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %32 unwind label %44

32:                                               ; preds = %5
  %33 = load i32, ptr %8, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store double 1.000000e+00, ptr %15, align 8, !tbaa !13
  invoke void @_ZN4dali11SmallVectorIdLm3ESaIdEE6resizeEmRKd(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %34, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %35 unwind label %48

35:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %36 = load i32, ptr %8, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  invoke void @_ZN4dali11SmallVectorIbLm3ESaIbEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %37)
          to label %38 unwind label %52

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %112, %38
  %40 = load i32, ptr %17, align 4, !tbaa !9
  %41 = load i32, ptr %8, align 4, !tbaa !9
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %56, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %119

44:                                               ; preds = %5
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %13, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %14, align 4
  br label %587

48:                                               ; preds = %32
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %13, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %586

52:                                               ; preds = %35
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %13, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %14, align 4
  br label %586

56:                                               ; preds = %39
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load i32, ptr %17, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds float, ptr %57, i64 %59
  %61 = load float, ptr %60, align 4, !tbaa !15
  %62 = fcmp une float %61, 0.000000e+00
  br i1 %62, label %63, label %70

63:                                               ; preds = %56
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load i32, ptr %17, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds float, ptr %64, i64 %66
  %68 = load float, ptr %67, align 4, !tbaa !15
  %69 = fcmp une float %68, 0.000000e+00
  br label %70

70:                                               ; preds = %63, %56
  %71 = phi i1 [ false, %56 ], [ %69, %63 ]
  %72 = load i32, ptr %17, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali11SmallVectorIbLm3ESaIbEEixEl(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %73)
          to label %75 unwind label %115

75:                                               ; preds = %70
  %76 = zext i1 %71 to i8
  store i8 %76, ptr %74, align 1, !tbaa !17
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = load i32, ptr %17, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds float, ptr %77, i64 %79
  %81 = load float, ptr %80, align 4, !tbaa !15
  %82 = fcmp une float %81, 0.000000e+00
  br i1 %82, label %83, label %95

83:                                               ; preds = %75
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = load i32, ptr %17, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds float, ptr %84, i64 %86
  %88 = load float, ptr %87, align 4, !tbaa !15
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = load i32, ptr %17, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds float, ptr %89, i64 %91
  %93 = load float, ptr %92, align 4, !tbaa !15
  %94 = fdiv float %88, %93
  br label %96

95:                                               ; preds = %75
  br label %96

96:                                               ; preds = %95, %83
  %97 = phi float [ %94, %83 ], [ 1.000000e+00, %95 ]
  %98 = fpext float %97 to double
  %99 = load i32, ptr %17, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %100)
          to label %102 unwind label %115

102:                                              ; preds = %96
  store double %98, ptr %101, align 8, !tbaa !13
  %103 = load i32, ptr %17, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali11SmallVectorIbLm3ESaIbEEixEl(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %104)
          to label %106 unwind label %115

106:                                              ; preds = %102
  %107 = load i8, ptr %105, align 1, !tbaa !17, !range !19, !noundef !20
  %108 = trunc i8 %107 to i1
  %109 = zext i1 %108 to i32
  %110 = load i32, ptr %16, align 4, !tbaa !9
  %111 = add nsw i32 %110, %109
  store i32 %111, ptr %16, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %106
  %113 = load i32, ptr %17, align 4, !tbaa !9
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %17, align 4, !tbaa !9
  br label %39, !llvm.loop !21

115:                                              ; preds = %102, %96, %70
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %13, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %585

119:                                              ; preds = %43
  %120 = load i32, ptr %16, align 4, !tbaa !9
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %122, label %142

122:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %138, %122
  %124 = load i32, ptr %18, align 4, !tbaa !9
  %125 = load i32, ptr %8, align 4, !tbaa !9
  %126 = icmp slt i32 %124, %125
  br i1 %126, label %128, label %127

127:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %141

128:                                              ; preds = %123
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = load i32, ptr %18, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds float, ptr %129, i64 %131
  %133 = load float, ptr %132, align 4, !tbaa !15
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = load i32, ptr %18, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds float, ptr %134, i64 %136
  store float %133, ptr %137, align 4, !tbaa !15
  br label %138

138:                                              ; preds = %128
  %139 = load i32, ptr %18, align 4, !tbaa !9
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %18, align 4, !tbaa !9
  br label %123, !llvm.loop !23

141:                                              ; preds = %127
  br label %584

142:                                              ; preds = %119
  %143 = load i32, ptr %9, align 4, !tbaa !11
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %145, label %307

145:                                              ; preds = %142
  %146 = load i32, ptr %16, align 4, !tbaa !9
  %147 = load i32, ptr %8, align 4, !tbaa !9
  %148 = icmp slt i32 %146, %147
  br i1 %148, label %149, label %235

149:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store double 1.000000e+00, ptr %19, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %150

150:                                              ; preds = %177, %149
  %151 = load i32, ptr %20, align 4, !tbaa !9
  %152 = load i32, ptr %8, align 4, !tbaa !9
  %153 = icmp slt i32 %151, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %180

155:                                              ; preds = %150
  %156 = load i32, ptr %20, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali11SmallVectorIbLm3ESaIbEEixEl(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %157)
          to label %159 unwind label %172

159:                                              ; preds = %155
  %160 = load i8, ptr %158, align 1, !tbaa !17, !range !19, !noundef !20
  %161 = trunc i8 %160 to i1
  br i1 %161, label %162, label %176

162:                                              ; preds = %159
  %163 = load i32, ptr %20, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %164)
          to label %166 unwind label %172

166:                                              ; preds = %162
  %167 = load double, ptr %165, align 8, !tbaa !13
  %168 = invoke noundef double @_ZSt3absd(double noundef %167)
          to label %169 unwind label %172

169:                                              ; preds = %166
  %170 = load double, ptr %19, align 8, !tbaa !13
  %171 = fmul double %170, %168
  store double %171, ptr %19, align 8, !tbaa !13
  br label %176

172:                                              ; preds = %166, %162, %155
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %13, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %234

176:                                              ; preds = %169, %159
  br label %177

177:                                              ; preds = %176
  %178 = load i32, ptr %20, align 4, !tbaa !9
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %20, align 4, !tbaa !9
  br label %150, !llvm.loop !24

180:                                              ; preds = %154
  %181 = load i32, ptr %16, align 4, !tbaa !9
  %182 = icmp sgt i32 %181, 1
  br i1 %182, label %183, label %189

183:                                              ; preds = %180
  %184 = load double, ptr %19, align 8, !tbaa !13
  %185 = load i32, ptr %16, align 4, !tbaa !9
  %186 = sitofp i32 %185 to double
  %187 = fdiv double 1.000000e+00, %186
  %188 = call double @pow(double noundef %184, double noundef %187) #7
  store double %188, ptr %19, align 8, !tbaa !13
  br label %189

189:                                              ; preds = %183, %180
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %230, %189
  %191 = load i32, ptr %21, align 4, !tbaa !9
  %192 = load i32, ptr %8, align 4, !tbaa !9
  %193 = icmp slt i32 %191, %192
  br i1 %193, label %195, label %194

194:                                              ; preds = %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %233

195:                                              ; preds = %190
  %196 = load i32, ptr %21, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali11SmallVectorIbLm3ESaIbEEixEl(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %197)
          to label %199 unwind label %225

199:                                              ; preds = %195
  %200 = load i8, ptr %198, align 1, !tbaa !17, !range !19, !noundef !20
  %201 = trunc i8 %200 to i1
  br i1 %201, label %229, label %202

202:                                              ; preds = %199
  %203 = load double, ptr %19, align 8, !tbaa !13
  %204 = load i32, ptr %21, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %205)
          to label %207 unwind label %225

207:                                              ; preds = %202
  store double %203, ptr %206, align 8, !tbaa !13
  %208 = load ptr, ptr %7, align 8, !tbaa !5
  %209 = load i32, ptr %21, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds float, ptr %208, i64 %210
  %212 = load float, ptr %211, align 4, !tbaa !15
  %213 = fpext float %212 to double
  %214 = load i32, ptr %21, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %215)
          to label %217 unwind label %225

217:                                              ; preds = %207
  %218 = load double, ptr %216, align 8, !tbaa !13
  %219 = fmul double %213, %218
  %220 = fptrunc double %219 to float
  %221 = load ptr, ptr %6, align 8, !tbaa !5
  %222 = load i32, ptr %21, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds float, ptr %221, i64 %223
  store float %220, ptr %224, align 4, !tbaa !15
  br label %229

225:                                              ; preds = %207, %202, %195
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %13, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %234

229:                                              ; preds = %217, %199
  br label %230

230:                                              ; preds = %229
  %231 = load i32, ptr %21, align 4, !tbaa !9
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %21, align 4, !tbaa !9
  br label %190, !llvm.loop !25

233:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %235

234:                                              ; preds = %225, %172
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %585

235:                                              ; preds = %233, %145
  %236 = load ptr, ptr %10, align 8, !tbaa !5
  %237 = icmp ne ptr %236, null
  br i1 %237, label %238, label %306

238:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %239

239:                                              ; preds = %302, %238
  %240 = load i32, ptr %22, align 4, !tbaa !9
  %241 = load i32, ptr %8, align 4, !tbaa !9
  %242 = icmp slt i32 %240, %241
  br i1 %242, label %244, label %243

243:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %305

244:                                              ; preds = %239
  %245 = load ptr, ptr %10, align 8, !tbaa !5
  %246 = load i32, ptr %22, align 4, !tbaa !9
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds float, ptr %245, i64 %247
  %249 = load float, ptr %248, align 4, !tbaa !15
  %250 = fcmp ogt float %249, 0.000000e+00
  br i1 %250, label %251, label %301

251:                                              ; preds = %244
  %252 = load ptr, ptr %6, align 8, !tbaa !5
  %253 = load i32, ptr %22, align 4, !tbaa !9
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds float, ptr %252, i64 %254
  %256 = load float, ptr %255, align 4, !tbaa !15
  %257 = invoke noundef float @_ZSt3absf(float noundef %256)
          to label %258 unwind label %297

258:                                              ; preds = %251
  %259 = load ptr, ptr %10, align 8, !tbaa !5
  %260 = load i32, ptr %22, align 4, !tbaa !9
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds float, ptr %259, i64 %261
  %263 = load float, ptr %262, align 4, !tbaa !15
  %264 = fcmp ogt float %257, %263
  br i1 %264, label %265, label %301

265:                                              ; preds = %258
  %266 = load ptr, ptr %10, align 8, !tbaa !5
  %267 = load i32, ptr %22, align 4, !tbaa !9
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds float, ptr %266, i64 %268
  %270 = load float, ptr %269, align 4, !tbaa !15
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = load i32, ptr %22, align 4, !tbaa !9
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds float, ptr %271, i64 %273
  %275 = load float, ptr %274, align 4, !tbaa !15
  %276 = call float @llvm.copysign.f32(float %270, float %275)
  %277 = load ptr, ptr %6, align 8, !tbaa !5
  %278 = load i32, ptr %22, align 4, !tbaa !9
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds float, ptr %277, i64 %279
  store float %276, ptr %280, align 4, !tbaa !15
  %281 = load ptr, ptr %6, align 8, !tbaa !5
  %282 = load i32, ptr %22, align 4, !tbaa !9
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds float, ptr %281, i64 %283
  %285 = load float, ptr %284, align 4, !tbaa !15
  %286 = load ptr, ptr %7, align 8, !tbaa !5
  %287 = load i32, ptr %22, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds float, ptr %286, i64 %288
  %290 = load float, ptr %289, align 4, !tbaa !15
  %291 = fdiv float %285, %290
  %292 = fpext float %291 to double
  %293 = load i32, ptr %22, align 4, !tbaa !9
  %294 = sext i32 %293 to i64
  %295 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %294)
          to label %296 unwind label %297

296:                                              ; preds = %265
  store double %292, ptr %295, align 8, !tbaa !13
  br label %301

297:                                              ; preds = %265, %251
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %13, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %585

301:                                              ; preds = %296, %258, %244
  br label %302

302:                                              ; preds = %301
  %303 = load i32, ptr %22, align 4, !tbaa !9
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %22, align 4, !tbaa !9
  br label %239, !llvm.loop !26

305:                                              ; preds = %243
  br label %306

306:                                              ; preds = %305, %235
  br label %583

307:                                              ; preds = %142
  %308 = load i32, ptr %9, align 4, !tbaa !11
  %309 = icmp eq i32 %308, 1
  br i1 %309, label %310, label %422

310:                                              ; preds = %307
  %311 = load i32, ptr %16, align 4, !tbaa !9
  %312 = load i32, ptr %8, align 4, !tbaa !9
  %313 = icmp slt i32 %311, %312
  br i1 %313, label %314, label %350

314:                                              ; preds = %310
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %315

315:                                              ; preds = %346, %314
  %316 = load i32, ptr %23, align 4, !tbaa !9
  %317 = load i32, ptr %8, align 4, !tbaa !9
  %318 = icmp slt i32 %316, %317
  br i1 %318, label %320, label %319

319:                                              ; preds = %315
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %349

320:                                              ; preds = %315
  %321 = load i32, ptr %23, align 4, !tbaa !9
  %322 = sext i32 %321 to i64
  %323 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali11SmallVectorIbLm3ESaIbEEixEl(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %322)
          to label %324 unwind label %341

324:                                              ; preds = %320
  %325 = load i8, ptr %323, align 1, !tbaa !17, !range !19, !noundef !20
  %326 = trunc i8 %325 to i1
  br i1 %326, label %345, label %327

327:                                              ; preds = %324
  %328 = load i32, ptr %23, align 4, !tbaa !9
  %329 = sext i32 %328 to i64
  %330 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %329)
          to label %331 unwind label %341

331:                                              ; preds = %327
  store double 1.000000e+00, ptr %330, align 8, !tbaa !13
  %332 = load ptr, ptr %7, align 8, !tbaa !5
  %333 = load i32, ptr %23, align 4, !tbaa !9
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds float, ptr %332, i64 %334
  %336 = load float, ptr %335, align 4, !tbaa !15
  %337 = load ptr, ptr %6, align 8, !tbaa !5
  %338 = load i32, ptr %23, align 4, !tbaa !9
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds float, ptr %337, i64 %339
  store float %336, ptr %340, align 4, !tbaa !15
  br label %345

341:                                              ; preds = %327, %320
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %13, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %585

345:                                              ; preds = %331, %324
  br label %346

346:                                              ; preds = %345
  %347 = load i32, ptr %23, align 4, !tbaa !9
  %348 = add nsw i32 %347, 1
  store i32 %348, ptr %23, align 4, !tbaa !9
  br label %315, !llvm.loop !27

349:                                              ; preds = %319
  br label %350

350:                                              ; preds = %349, %310
  %351 = load ptr, ptr %10, align 8, !tbaa !5
  %352 = icmp ne ptr %351, null
  br i1 %352, label %353, label %421

353:                                              ; preds = %350
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %354

354:                                              ; preds = %417, %353
  %355 = load i32, ptr %24, align 4, !tbaa !9
  %356 = load i32, ptr %8, align 4, !tbaa !9
  %357 = icmp slt i32 %355, %356
  br i1 %357, label %359, label %358

358:                                              ; preds = %354
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %420

359:                                              ; preds = %354
  %360 = load ptr, ptr %10, align 8, !tbaa !5
  %361 = load i32, ptr %24, align 4, !tbaa !9
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds float, ptr %360, i64 %362
  %364 = load float, ptr %363, align 4, !tbaa !15
  %365 = fcmp ogt float %364, 0.000000e+00
  br i1 %365, label %366, label %416

366:                                              ; preds = %359
  %367 = load ptr, ptr %6, align 8, !tbaa !5
  %368 = load i32, ptr %24, align 4, !tbaa !9
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds float, ptr %367, i64 %369
  %371 = load float, ptr %370, align 4, !tbaa !15
  %372 = invoke noundef float @_ZSt3absf(float noundef %371)
          to label %373 unwind label %412

373:                                              ; preds = %366
  %374 = load ptr, ptr %10, align 8, !tbaa !5
  %375 = load i32, ptr %24, align 4, !tbaa !9
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds float, ptr %374, i64 %376
  %378 = load float, ptr %377, align 4, !tbaa !15
  %379 = fcmp ogt float %372, %378
  br i1 %379, label %380, label %416

380:                                              ; preds = %373
  %381 = load ptr, ptr %10, align 8, !tbaa !5
  %382 = load i32, ptr %24, align 4, !tbaa !9
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds float, ptr %381, i64 %383
  %385 = load float, ptr %384, align 4, !tbaa !15
  %386 = load ptr, ptr %6, align 8, !tbaa !5
  %387 = load i32, ptr %24, align 4, !tbaa !9
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds float, ptr %386, i64 %388
  %390 = load float, ptr %389, align 4, !tbaa !15
  %391 = call float @llvm.copysign.f32(float %385, float %390)
  %392 = load ptr, ptr %6, align 8, !tbaa !5
  %393 = load i32, ptr %24, align 4, !tbaa !9
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds float, ptr %392, i64 %394
  store float %391, ptr %395, align 4, !tbaa !15
  %396 = load ptr, ptr %6, align 8, !tbaa !5
  %397 = load i32, ptr %24, align 4, !tbaa !9
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds float, ptr %396, i64 %398
  %400 = load float, ptr %399, align 4, !tbaa !15
  %401 = load ptr, ptr %7, align 8, !tbaa !5
  %402 = load i32, ptr %24, align 4, !tbaa !9
  %403 = sext i32 %402 to i64
  %404 = getelementptr inbounds float, ptr %401, i64 %403
  %405 = load float, ptr %404, align 4, !tbaa !15
  %406 = fdiv float %400, %405
  %407 = fpext float %406 to double
  %408 = load i32, ptr %24, align 4, !tbaa !9
  %409 = sext i32 %408 to i64
  %410 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %409)
          to label %411 unwind label %412

411:                                              ; preds = %380
  store double %407, ptr %410, align 8, !tbaa !13
  br label %416

412:                                              ; preds = %380, %366
  %413 = landingpad { ptr, i32 }
          cleanup
  %414 = extractvalue { ptr, i32 } %413, 0
  store ptr %414, ptr %13, align 8
  %415 = extractvalue { ptr, i32 } %413, 1
  store i32 %415, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %585

416:                                              ; preds = %411, %373, %359
  br label %417

417:                                              ; preds = %416
  %418 = load i32, ptr %24, align 4, !tbaa !9
  %419 = add nsw i32 %418, 1
  store i32 %419, ptr %24, align 4, !tbaa !9
  br label %354, !llvm.loop !28

420:                                              ; preds = %358
  br label %421

421:                                              ; preds = %420, %350
  br label %582

422:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  store double 0.000000e+00, ptr %25, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #7
  store i8 1, ptr %26, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %423

423:                                              ; preds = %475, %422
  %424 = load i32, ptr %27, align 4, !tbaa !9
  %425 = load i32, ptr %8, align 4, !tbaa !9
  %426 = icmp slt i32 %424, %425
  br i1 %426, label %428, label %427

427:                                              ; preds = %423
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %479

428:                                              ; preds = %423
  %429 = load i32, ptr %27, align 4, !tbaa !9
  %430 = sext i32 %429 to i64
  %431 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali11SmallVectorIbLm3ESaIbEEixEl(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %430)
          to label %432 unwind label %465

432:                                              ; preds = %428
  %433 = load i8, ptr %431, align 1, !tbaa !17, !range !19, !noundef !20
  %434 = trunc i8 %433 to i1
  br i1 %434, label %435, label %474

435:                                              ; preds = %432
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %436 = load i32, ptr %27, align 4, !tbaa !9
  %437 = sext i32 %436 to i64
  %438 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %437)
          to label %439 unwind label %469

439:                                              ; preds = %435
  %440 = load double, ptr %438, align 8, !tbaa !13
  %441 = invoke noundef double @_ZSt3absd(double noundef %440)
          to label %442 unwind label %469

442:                                              ; preds = %439
  %443 = fptrunc double %441 to float
  store float %443, ptr %28, align 4, !tbaa !15
  %444 = load i8, ptr %26, align 1, !tbaa !17, !range !19, !noundef !20
  %445 = trunc i8 %444 to i1
  br i1 %445, label %462, label %446

446:                                              ; preds = %442
  %447 = load i32, ptr %9, align 4, !tbaa !11
  %448 = icmp eq i32 %447, 3
  br i1 %448, label %449, label %454

449:                                              ; preds = %446
  %450 = load float, ptr %28, align 4, !tbaa !15
  %451 = fpext float %450 to double
  %452 = load double, ptr %25, align 8, !tbaa !13
  %453 = fcmp ogt double %451, %452
  br i1 %453, label %462, label %454

454:                                              ; preds = %449, %446
  %455 = load i32, ptr %9, align 4, !tbaa !11
  %456 = icmp eq i32 %455, 2
  br i1 %456, label %457, label %473

457:                                              ; preds = %454
  %458 = load float, ptr %28, align 4, !tbaa !15
  %459 = fpext float %458 to double
  %460 = load double, ptr %25, align 8, !tbaa !13
  %461 = fcmp olt double %459, %460
  br i1 %461, label %462, label %473

462:                                              ; preds = %457, %449, %442
  %463 = load float, ptr %28, align 4, !tbaa !15
  %464 = fpext float %463 to double
  store double %464, ptr %25, align 8, !tbaa !13
  br label %473

465:                                              ; preds = %428
  %466 = landingpad { ptr, i32 }
          cleanup
  %467 = extractvalue { ptr, i32 } %466, 0
  store ptr %467, ptr %13, align 8
  %468 = extractvalue { ptr, i32 } %466, 1
  store i32 %468, ptr %14, align 4
  br label %478

469:                                              ; preds = %439, %435
  %470 = landingpad { ptr, i32 }
          cleanup
  %471 = extractvalue { ptr, i32 } %470, 0
  store ptr %471, ptr %13, align 8
  %472 = extractvalue { ptr, i32 } %470, 1
  store i32 %472, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %478

473:                                              ; preds = %462, %457, %454
  store i8 0, ptr %26, align 1, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %474

474:                                              ; preds = %473, %432
  br label %475

475:                                              ; preds = %474
  %476 = load i32, ptr %27, align 4, !tbaa !9
  %477 = add nsw i32 %476, 1
  store i32 %477, ptr %27, align 4, !tbaa !9
  br label %423, !llvm.loop !29

478:                                              ; preds = %469, %465
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %581

479:                                              ; preds = %427
  %480 = load ptr, ptr %10, align 8, !tbaa !5
  %481 = icmp ne ptr %480, null
  br i1 %481, label %482, label %520

482:                                              ; preds = %479
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %483

483:                                              ; preds = %516, %482
  %484 = load i32, ptr %29, align 4, !tbaa !9
  %485 = load i32, ptr %8, align 4, !tbaa !9
  %486 = icmp slt i32 %484, %485
  br i1 %486, label %488, label %487

487:                                              ; preds = %483
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %519

488:                                              ; preds = %483
  %489 = load ptr, ptr %10, align 8, !tbaa !5
  %490 = load i32, ptr %29, align 4, !tbaa !9
  %491 = sext i32 %490 to i64
  %492 = getelementptr inbounds float, ptr %489, i64 %491
  %493 = load float, ptr %492, align 4, !tbaa !15
  %494 = fcmp ogt float %493, 0.000000e+00
  br i1 %494, label %495, label %515

495:                                              ; preds = %488
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %496 = load ptr, ptr %10, align 8, !tbaa !5
  %497 = load i32, ptr %29, align 4, !tbaa !9
  %498 = sext i32 %497 to i64
  %499 = getelementptr inbounds float, ptr %496, i64 %498
  %500 = load float, ptr %499, align 4, !tbaa !15
  %501 = fpext float %500 to double
  %502 = load ptr, ptr %7, align 8, !tbaa !5
  %503 = load i32, ptr %29, align 4, !tbaa !9
  %504 = sext i32 %503 to i64
  %505 = getelementptr inbounds float, ptr %502, i64 %504
  %506 = load float, ptr %505, align 4, !tbaa !15
  %507 = fpext float %506 to double
  %508 = fdiv double %501, %507
  store double %508, ptr %30, align 8, !tbaa !13
  %509 = load double, ptr %30, align 8, !tbaa !13
  %510 = load double, ptr %25, align 8, !tbaa !13
  %511 = fcmp olt double %509, %510
  br i1 %511, label %512, label %514

512:                                              ; preds = %495
  %513 = load double, ptr %30, align 8, !tbaa !13
  store double %513, ptr %25, align 8, !tbaa !13
  br label %514

514:                                              ; preds = %512, %495
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %515

515:                                              ; preds = %514, %488
  br label %516

516:                                              ; preds = %515
  %517 = load i32, ptr %29, align 4, !tbaa !9
  %518 = add nsw i32 %517, 1
  store i32 %518, ptr %29, align 4, !tbaa !9
  br label %483, !llvm.loop !30

519:                                              ; preds = %487
  br label %520

520:                                              ; preds = %519, %479
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %521

521:                                              ; preds = %577, %520
  %522 = load i32, ptr %31, align 4, !tbaa !9
  %523 = load i32, ptr %8, align 4, !tbaa !9
  %524 = icmp slt i32 %522, %523
  br i1 %524, label %526, label %525

525:                                              ; preds = %521
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %580

526:                                              ; preds = %521
  %527 = load i32, ptr %31, align 4, !tbaa !9
  %528 = sext i32 %527 to i64
  %529 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali11SmallVectorIbLm3ESaIbEEixEl(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %528)
          to label %530 unwind label %572

530:                                              ; preds = %526
  %531 = load i8, ptr %529, align 1, !tbaa !17, !range !19, !noundef !20
  %532 = trunc i8 %531 to i1
  br i1 %532, label %533, label %543

533:                                              ; preds = %530
  %534 = load i32, ptr %31, align 4, !tbaa !9
  %535 = sext i32 %534 to i64
  %536 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %535)
          to label %537 unwind label %572

537:                                              ; preds = %533
  %538 = load double, ptr %536, align 8, !tbaa !13
  %539 = invoke noundef double @_ZSt3absd(double noundef %538)
          to label %540 unwind label %572

540:                                              ; preds = %537
  %541 = load double, ptr %25, align 8, !tbaa !13
  %542 = fcmp une double %539, %541
  br i1 %542, label %543, label %576

543:                                              ; preds = %540, %530
  %544 = load double, ptr %25, align 8, !tbaa !13
  %545 = load i32, ptr %31, align 4, !tbaa !9
  %546 = sext i32 %545 to i64
  %547 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %546)
          to label %548 unwind label %572

548:                                              ; preds = %543
  %549 = load double, ptr %547, align 8, !tbaa !13
  %550 = call double @llvm.copysign.f64(double %544, double %549)
  %551 = load i32, ptr %31, align 4, !tbaa !9
  %552 = sext i32 %551 to i64
  %553 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %552)
          to label %554 unwind label %572

554:                                              ; preds = %548
  store double %550, ptr %553, align 8, !tbaa !13
  %555 = load ptr, ptr %7, align 8, !tbaa !5
  %556 = load i32, ptr %31, align 4, !tbaa !9
  %557 = sext i32 %556 to i64
  %558 = getelementptr inbounds float, ptr %555, i64 %557
  %559 = load float, ptr %558, align 4, !tbaa !15
  %560 = fpext float %559 to double
  %561 = load i32, ptr %31, align 4, !tbaa !9
  %562 = sext i32 %561 to i64
  %563 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %562)
          to label %564 unwind label %572

564:                                              ; preds = %554
  %565 = load double, ptr %563, align 8, !tbaa !13
  %566 = fmul double %560, %565
  %567 = fptrunc double %566 to float
  %568 = load ptr, ptr %6, align 8, !tbaa !5
  %569 = load i32, ptr %31, align 4, !tbaa !9
  %570 = sext i32 %569 to i64
  %571 = getelementptr inbounds float, ptr %568, i64 %570
  store float %567, ptr %571, align 4, !tbaa !15
  br label %576

572:                                              ; preds = %554, %548, %543, %537, %533, %526
  %573 = landingpad { ptr, i32 }
          cleanup
  %574 = extractvalue { ptr, i32 } %573, 0
  store ptr %574, ptr %13, align 8
  %575 = extractvalue { ptr, i32 } %573, 1
  store i32 %575, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %581

576:                                              ; preds = %564, %540
  br label %577

577:                                              ; preds = %576
  %578 = load i32, ptr %31, align 4, !tbaa !9
  %579 = add nsw i32 %578, 1
  store i32 %579, ptr %31, align 4, !tbaa !9
  br label %521, !llvm.loop !31

580:                                              ; preds = %525
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %582

581:                                              ; preds = %572, %478
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %585

582:                                              ; preds = %580, %421
  br label %583

583:                                              ; preds = %582, %306
  br label %584

584:                                              ; preds = %583, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @_ZN4dali11SmallVectorIbLm3ESaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  call void @_ZN4dali11SmallVectorIdLm3ESaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  ret void

585:                                              ; preds = %581, %412, %341, %297, %234, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %586

586:                                              ; preds = %585, %52, %48
  call void @_ZN4dali11SmallVectorIbLm3ESaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  br label %587

587:                                              ; preds = %586, %44
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  call void @_ZN4dali11SmallVectorIdLm3ESaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  br label %588

588:                                              ; preds = %587
  %589 = load ptr, ptr %13, align 8
  %590 = load i32, ptr %14, align 4
  %591 = insertvalue { ptr, i32 } poison, ptr %589, 0
  %592 = insertvalue { ptr, i32 } %591, i32 %590, 1
  resume { ptr, i32 } %592
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali11SmallVectorIdLm3ESaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali11SmallVectorIbLm3ESaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11SmallVectorIdLm3ESaIdEE6resizeEmRKd(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11SmallVectorIbLm3ESaIbEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali11SmallVectorIbLm3ESaIbEEixEl(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.copysign.f32(float, float) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali11SmallVectorIbLm3ESaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali11SmallVectorIdLm3ESaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN4dali10ResizeModeE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !22}
!29 = distinct !{!29, !22}
!30 = distinct !{!30, !22}
!31 = distinct !{!31, !22}


; 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.dali::SmallVector" = type { %union.anon.28, i64 }
%union.anon.28 = type { %struct.anon, [8 x i8] }
%struct.anon = type { ptr, i64 }
%"class.dali::SmallVector.29" = type { %union.anon.32, i64 }
%union.anon.32 = type { %struct.anon.33 }
%struct.anon.33 = type { ptr, i64 }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali16AdjustOutputSizeEPfPKfiNS_10ResizeModeES2_(ptr nocapture noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3, ptr noundef readonly %4) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %6 = ptrtoint ptr %1 to i64
  %7 = ptrtoint ptr %0 to i64
  %8 = alloca %"class.dali::SmallVector", align 8
  %9 = alloca %"class.dali::SmallVector.29", align 8
  %10 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  call void @_ZN4dali11SmallVectorIdLm3ESaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  call void @_ZN4dali11SmallVectorIbLm3ESaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %11 = sext i32 %2 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  store double 1.000000e+00, ptr %10, align 8, !tbaa !5
  invoke void @_ZN4dali11SmallVectorIdLm3ESaIdEE6resizeEmRKd(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %11, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %12 unwind label %26

12:                                               ; preds = %5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  invoke void @_ZN4dali11SmallVectorIbLm3ESaIbEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %11)
          to label %.preheader206 unwind label %28

.preheader206:                                    ; preds = %12
  %13 = icmp sgt i32 %2, 0
  br i1 %13, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %.preheader206
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %54
  %14 = icmp eq i32 %57, 0
  br i1 %14, label %.preheader, label %72

.preheader:                                       ; preds = %._crit_edge
  br i1 %13, label %.lr.ph241.preheader, label %.loopexit

.lr.ph241.preheader:                              ; preds = %.preheader
  %wide.trip.count293 = zext nneg i32 %2 to i64
  %min.iters.check = icmp ult i32 %2, 8
  %15 = sub i64 %7, %6
  %diff.check = icmp ult i64 %15, 32
  %or.cond310 = or i1 %min.iters.check, %diff.check
  br i1 %or.cond310, label %.lr.ph241.preheader311, label %vector.ph

.lr.ph241.preheader311:                           ; preds = %middle.block, %.lr.ph241.preheader
  %indvars.iv290.ph = phi i64 [ 0, %.lr.ph241.preheader ], [ %n.vec, %middle.block ]
  %xtraiter316 = and i64 %wide.trip.count, 3
  %lcmp.mod317.not = icmp eq i64 %xtraiter316, 0
  br i1 %lcmp.mod317.not, label %.lr.ph241.prol.loopexit, label %.lr.ph241.prol

.lr.ph241.prol:                                   ; preds = %.lr.ph241.preheader311, %.lr.ph241.prol
  %indvars.iv290.prol = phi i64 [ %indvars.iv.next291.prol, %.lr.ph241.prol ], [ %indvars.iv290.ph, %.lr.ph241.preheader311 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph241.prol ], [ 0, %.lr.ph241.preheader311 ]
  %16 = getelementptr inbounds float, ptr %1, i64 %indvars.iv290.prol
  %17 = load float, ptr %16, align 4, !tbaa !9
  %18 = getelementptr inbounds float, ptr %0, i64 %indvars.iv290.prol
  store float %17, ptr %18, align 4, !tbaa !9
  %indvars.iv.next291.prol = add nuw nsw i64 %indvars.iv290.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter316
  br i1 %prol.iter.cmp.not, label %.lr.ph241.prol.loopexit, label %.lr.ph241.prol, !llvm.loop !11

.lr.ph241.prol.loopexit:                          ; preds = %.lr.ph241.prol, %.lr.ph241.preheader311
  %indvars.iv290.unr = phi i64 [ %indvars.iv290.ph, %.lr.ph241.preheader311 ], [ %indvars.iv.next291.prol, %.lr.ph241.prol ]
  %19 = sub nsw i64 %indvars.iv290.ph, %wide.trip.count
  %20 = icmp ugt i64 %19, -4
  br i1 %20, label %.loopexit, label %.lr.ph241

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

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %21 = getelementptr inbounds float, ptr %1, i64 %index
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  %wide.load = load <4 x float>, ptr %21, align 4, !tbaa !9
  %wide.load309 = load <4 x float>, ptr %22, align 4, !tbaa !9
  %23 = getelementptr inbounds float, ptr %0, i64 %index
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  store <4 x float> %wide.load, ptr %23, align 4, !tbaa !9
  store <4 x float> %wide.load309, ptr %24, align 4, !tbaa !9
  %index.next = add nuw i64 %index, 8
  %25 = icmp eq i64 %index.next, %n.vec
  br i1 %25, label %middle.block, label %vector.body, !llvm.loop !13

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

26:                                               ; preds = %5
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %251

28:                                               ; preds = %12
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %251

.lr.ph:                                           ; preds = %.lr.ph.preheader, %54
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %54 ]
  %.0170211 = phi i32 [ 0, %.lr.ph.preheader ], [ %57, %54 ]
  %30 = getelementptr inbounds float, ptr %0, i64 %indvars.iv
  %31 = load float, ptr %30, align 4, !tbaa !9
  %32 = fcmp une float %31, 0.000000e+00
  br i1 %32, label %33, label %37

33:                                               ; preds = %.lr.ph
  %34 = getelementptr inbounds float, ptr %1, i64 %indvars.iv
  %35 = load float, ptr %34, align 4, !tbaa !9
  %36 = fcmp une float %35, 0.000000e+00
  br label %37

37:                                               ; preds = %33, %.lr.ph
  %38 = phi i1 [ false, %.lr.ph ], [ %36, %33 ]
  %39 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali11SmallVectorIbLm3ESaIbEEixEl(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv)
          to label %40 unwind label %58

40:                                               ; preds = %37
  %41 = zext i1 %38 to i8
  store i8 %41, ptr %39, align 1, !tbaa !17
  %42 = getelementptr inbounds float, ptr %1, i64 %indvars.iv
  %43 = load float, ptr %42, align 4, !tbaa !9
  %44 = fcmp une float %43, 0.000000e+00
  br i1 %44, label %45, label %48

45:                                               ; preds = %40
  %46 = load float, ptr %30, align 4, !tbaa !9
  %47 = fdiv float %46, %43
  br label %48

48:                                               ; preds = %40, %45
  %49 = phi float [ %47, %45 ], [ 1.000000e+00, %40 ]
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %indvars.iv)
          to label %51 unwind label %58

51:                                               ; preds = %48
  %52 = fpext float %49 to double
  store double %52, ptr %50, align 8, !tbaa !5
  %53 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali11SmallVectorIbLm3ESaIbEEixEl(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv)
          to label %54 unwind label %58

54:                                               ; preds = %51
  %55 = load i8, ptr %53, align 1, !tbaa !17, !range !19, !noundef !20
  %56 = zext nneg i8 %55 to i32
  %57 = add nuw nsw i32 %.0170211, %56
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !21

58:                                               ; preds = %51, %48, %37
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %251

.lr.ph241:                                        ; preds = %.lr.ph241.prol.loopexit, %.lr.ph241
  %indvars.iv290 = phi i64 [ %indvars.iv.next291.3, %.lr.ph241 ], [ %indvars.iv290.unr, %.lr.ph241.prol.loopexit ]
  %60 = getelementptr inbounds float, ptr %1, i64 %indvars.iv290
  %61 = load float, ptr %60, align 4, !tbaa !9
  %62 = getelementptr inbounds float, ptr %0, i64 %indvars.iv290
  store float %61, ptr %62, align 4, !tbaa !9
  %indvars.iv.next291 = add nuw nsw i64 %indvars.iv290, 1
  %63 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next291
  %64 = load float, ptr %63, align 4, !tbaa !9
  %65 = getelementptr inbounds float, ptr %0, i64 %indvars.iv.next291
  store float %64, ptr %65, align 4, !tbaa !9
  %indvars.iv.next291.1 = add nuw nsw i64 %indvars.iv290, 2
  %66 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next291.1
  %67 = load float, ptr %66, align 4, !tbaa !9
  %68 = getelementptr inbounds float, ptr %0, i64 %indvars.iv.next291.1
  store float %67, ptr %68, align 4, !tbaa !9
  %indvars.iv.next291.2 = add nuw nsw i64 %indvars.iv290, 3
  %69 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next291.2
  %70 = load float, ptr %69, align 4, !tbaa !9
  %71 = getelementptr inbounds float, ptr %0, i64 %indvars.iv.next291.2
  store float %70, ptr %71, align 4, !tbaa !9
  %indvars.iv.next291.3 = add nuw nsw i64 %indvars.iv290, 4
  %exitcond294.not.3 = icmp eq i64 %indvars.iv.next291.3, %wide.trip.count293
  br i1 %exitcond294.not.3, label %.loopexit, label %.lr.ph241, !llvm.loop !22

72:                                               ; preds = %._crit_edge
  switch i32 %3, label %.preheader197 [
    i32 0, label %75
    i32 1, label %135
  ]

.preheader197:                                    ; preds = %72
  br i1 %13, label %.lr.ph230, label %.loopexit

.lr.ph230:                                        ; preds = %.preheader197
  %73 = icmp eq i32 %3, 3
  %74 = icmp eq i32 %3, 2
  %wide.trip.count278 = zext nneg i32 %2 to i64
  br label %172

75:                                               ; preds = %72
  %76 = icmp slt i32 %57, %2
  br i1 %76, label %.preheader201, label %.loopexit200

.preheader201:                                    ; preds = %75
  br i1 %13, label %.lr.ph219.preheader, label %._crit_edge220

.lr.ph219.preheader:                              ; preds = %.preheader201
  %wide.trip.count264 = zext nneg i32 %2 to i64
  br label %.lr.ph219

._crit_edge220:                                   ; preds = %89, %.preheader201
  %.0165.lcssa = phi double [ 1.000000e+00, %.preheader201 ], [ %.1166, %89 ]
  %.not184 = icmp eq i32 %57, 1
  br i1 %.not184, label %94, label %90

.lr.ph219:                                        ; preds = %.lr.ph219.preheader, %89
  %indvars.iv261 = phi i64 [ 0, %.lr.ph219.preheader ], [ %indvars.iv.next262, %89 ]
  %.0165217 = phi double [ 1.000000e+00, %.lr.ph219.preheader ], [ %.1166, %89 ]
  %77 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali11SmallVectorIbLm3ESaIbEEixEl(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv261)
          to label %78 unwind label %87

78:                                               ; preds = %.lr.ph219
  %79 = load i8, ptr %77, align 1, !tbaa !17, !range !19, !noundef !20
  %80 = trunc nuw i8 %79 to i1
  br i1 %80, label %81, label %89

81:                                               ; preds = %78
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %indvars.iv261)
          to label %83 unwind label %87

83:                                               ; preds = %81
  %84 = load double, ptr %82, align 8, !tbaa !5
  %85 = call noundef double @_ZSt3absd(double noundef %84)
  %86 = fmul double %.0165217, %85
  br label %89

87:                                               ; preds = %81, %.lr.ph219
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %251

89:                                               ; preds = %78, %83
  %.1166 = phi double [ %86, %83 ], [ %.0165217, %78 ]
  %indvars.iv.next262 = add nuw nsw i64 %indvars.iv261, 1
  %exitcond265.not = icmp eq i64 %indvars.iv.next262, %wide.trip.count264
  br i1 %exitcond265.not, label %._crit_edge220, label %.lr.ph219, !llvm.loop !23

90:                                               ; preds = %._crit_edge220
  %91 = uitofp nneg i32 %57 to double
  %92 = fdiv double 1.000000e+00, %91
  %93 = call double @pow(double noundef %.0165.lcssa, double noundef %92) #7
  br label %94

94:                                               ; preds = %90, %._crit_edge220
  %.2167 = phi double [ %93, %90 ], [ %.0165.lcssa, %._crit_edge220 ]
  br i1 %13, label %.lr.ph224.preheader, label %.loopexit

.lr.ph224.preheader:                              ; preds = %94
  %wide.trip.count269 = zext nneg i32 %2 to i64
  br label %.lr.ph224

.lr.ph224:                                        ; preds = %.lr.ph224.preheader, %113
  %indvars.iv266 = phi i64 [ 0, %.lr.ph224.preheader ], [ %indvars.iv.next267, %113 ]
  %95 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali11SmallVectorIbLm3ESaIbEEixEl(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv266)
          to label %96 unwind label %111

96:                                               ; preds = %.lr.ph224
  %97 = load i8, ptr %95, align 1, !tbaa !17, !range !19, !noundef !20
  %98 = trunc nuw i8 %97 to i1
  br i1 %98, label %113, label %99

99:                                               ; preds = %96
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %indvars.iv266)
          to label %101 unwind label %111

101:                                              ; preds = %99
  store double %.2167, ptr %100, align 8, !tbaa !5
  %102 = getelementptr inbounds float, ptr %1, i64 %indvars.iv266
  %103 = load float, ptr %102, align 4, !tbaa !9
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %indvars.iv266)
          to label %105 unwind label %111

105:                                              ; preds = %101
  %106 = fpext float %103 to double
  %107 = load double, ptr %104, align 8, !tbaa !5
  %108 = fmul double %107, %106
  %109 = fptrunc double %108 to float
  %110 = getelementptr inbounds float, ptr %0, i64 %indvars.iv266
  store float %109, ptr %110, align 4, !tbaa !9
  br label %113

111:                                              ; preds = %101, %99, %.lr.ph224
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %251

113:                                              ; preds = %96, %105
  %indvars.iv.next267 = add nuw nsw i64 %indvars.iv266, 1
  %exitcond270.not = icmp eq i64 %indvars.iv.next267, %wide.trip.count269
  br i1 %exitcond270.not, label %.loopexit200, label %.lr.ph224, !llvm.loop !24

.loopexit200:                                     ; preds = %113, %75
  %.not185 = icmp ne ptr %4, null
  %or.cond243 = and i1 %.not185, %13
  br i1 %or.cond243, label %.lr.ph226.preheader, label %.loopexit

.lr.ph226.preheader:                              ; preds = %.loopexit200
  %wide.trip.count274 = zext nneg i32 %2 to i64
  br label %.lr.ph226

.lr.ph226:                                        ; preds = %.lr.ph226.preheader, %134
  %indvars.iv271 = phi i64 [ 0, %.lr.ph226.preheader ], [ %indvars.iv.next272, %134 ]
  %114 = getelementptr inbounds float, ptr %4, i64 %indvars.iv271
  %115 = load float, ptr %114, align 4, !tbaa !9
  %116 = fcmp ogt float %115, 0.000000e+00
  br i1 %116, label %117, label %134

117:                                              ; preds = %.lr.ph226
  %118 = getelementptr inbounds float, ptr %0, i64 %indvars.iv271
  %119 = load float, ptr %118, align 4, !tbaa !9
  %120 = call noundef float @_ZSt3absf(float noundef %119)
  %121 = load float, ptr %114, align 4, !tbaa !9
  %122 = fcmp ogt float %120, %121
  br i1 %122, label %123, label %134

123:                                              ; preds = %117
  %124 = load float, ptr %118, align 4, !tbaa !9
  %125 = call float @llvm.copysign.f32(float %121, float %124)
  store float %125, ptr %118, align 4, !tbaa !9
  %126 = getelementptr inbounds float, ptr %1, i64 %indvars.iv271
  %127 = load float, ptr %126, align 4, !tbaa !9
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %indvars.iv271)
          to label %129 unwind label %132

129:                                              ; preds = %123
  %130 = fdiv float %125, %127
  %131 = fpext float %130 to double
  store double %131, ptr %128, align 8, !tbaa !5
  br label %134

132:                                              ; preds = %123
  %133 = landingpad { ptr, i32 }
          cleanup
  br label %251

134:                                              ; preds = %.lr.ph226, %117, %129
  %indvars.iv.next272 = add nuw nsw i64 %indvars.iv271, 1
  %exitcond275.not = icmp eq i64 %indvars.iv.next272, %wide.trip.count274
  br i1 %exitcond275.not, label %.loopexit, label %.lr.ph226, !llvm.loop !25

135:                                              ; preds = %72
  %136 = icmp slt i32 %57, %2
  %or.cond244 = and i1 %136, %13
  br i1 %or.cond244, label %.lr.ph214.preheader, label %.loopexit205

.lr.ph214.preheader:                              ; preds = %135
  %wide.trip.count254 = zext nneg i32 %2 to i64
  br label %.lr.ph214

.lr.ph214:                                        ; preds = %.lr.ph214.preheader, %149
  %indvars.iv251 = phi i64 [ 0, %.lr.ph214.preheader ], [ %indvars.iv.next252, %149 ]
  %137 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali11SmallVectorIbLm3ESaIbEEixEl(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv251)
          to label %138 unwind label %147

138:                                              ; preds = %.lr.ph214
  %139 = load i8, ptr %137, align 1, !tbaa !17, !range !19, !noundef !20
  %140 = trunc nuw i8 %139 to i1
  br i1 %140, label %149, label %141

141:                                              ; preds = %138
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %indvars.iv251)
          to label %143 unwind label %147

143:                                              ; preds = %141
  store double 1.000000e+00, ptr %142, align 8, !tbaa !5
  %144 = getelementptr inbounds float, ptr %1, i64 %indvars.iv251
  %145 = load float, ptr %144, align 4, !tbaa !9
  %146 = getelementptr inbounds float, ptr %0, i64 %indvars.iv251
  store float %145, ptr %146, align 4, !tbaa !9
  br label %149

147:                                              ; preds = %141, %.lr.ph214
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %251

149:                                              ; preds = %138, %143
  %indvars.iv.next252 = add nuw nsw i64 %indvars.iv251, 1
  %exitcond255.not = icmp eq i64 %indvars.iv.next252, %wide.trip.count254
  br i1 %exitcond255.not, label %.loopexit205, label %.lr.ph214, !llvm.loop !26

.loopexit205:                                     ; preds = %149, %135
  %.not183 = icmp ne ptr %4, null
  %or.cond245 = and i1 %.not183, %13
  br i1 %or.cond245, label %.lr.ph216.preheader, label %.loopexit

.lr.ph216.preheader:                              ; preds = %.loopexit205
  %wide.trip.count259 = zext nneg i32 %2 to i64
  br label %.lr.ph216

.lr.ph216:                                        ; preds = %.lr.ph216.preheader, %170
  %indvars.iv256 = phi i64 [ 0, %.lr.ph216.preheader ], [ %indvars.iv.next257, %170 ]
  %150 = getelementptr inbounds float, ptr %4, i64 %indvars.iv256
  %151 = load float, ptr %150, align 4, !tbaa !9
  %152 = fcmp ogt float %151, 0.000000e+00
  br i1 %152, label %153, label %170

153:                                              ; preds = %.lr.ph216
  %154 = getelementptr inbounds float, ptr %0, i64 %indvars.iv256
  %155 = load float, ptr %154, align 4, !tbaa !9
  %156 = call noundef float @_ZSt3absf(float noundef %155)
  %157 = load float, ptr %150, align 4, !tbaa !9
  %158 = fcmp ogt float %156, %157
  br i1 %158, label %159, label %170

159:                                              ; preds = %153
  %160 = load float, ptr %154, align 4, !tbaa !9
  %161 = call float @llvm.copysign.f32(float %157, float %160)
  store float %161, ptr %154, align 4, !tbaa !9
  %162 = getelementptr inbounds float, ptr %1, i64 %indvars.iv256
  %163 = load float, ptr %162, align 4, !tbaa !9
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %indvars.iv256)
          to label %165 unwind label %168

165:                                              ; preds = %159
  %166 = fdiv float %161, %163
  %167 = fpext float %166 to double
  store double %167, ptr %164, align 8, !tbaa !5
  br label %170

168:                                              ; preds = %159
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %251

170:                                              ; preds = %.lr.ph216, %153, %165
  %indvars.iv.next257 = add nuw nsw i64 %indvars.iv256, 1
  %exitcond260.not = icmp eq i64 %indvars.iv.next257, %wide.trip.count259
  br i1 %exitcond260.not, label %.loopexit, label %.lr.ph216, !llvm.loop !27

._crit_edge231:                                   ; preds = %._crit_edge295
  %.not = icmp ne ptr %4, null
  %or.cond246 = and i1 %.not, %13
  br i1 %or.cond246, label %.lr.ph235.preheader, label %.loopexit196

.lr.ph235.preheader:                              ; preds = %._crit_edge231
  %xtraiter = and i64 %wide.trip.count, 1
  %171 = icmp eq i32 %2, 1
  br i1 %171, label %.loopexit196.loopexit.unr-lcssa, label %.lr.ph235.preheader.new

.lr.ph235.preheader.new:                          ; preds = %.lr.ph235.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph235

172:                                              ; preds = %.lr.ph230, %._crit_edge295
  %indvars.iv276 = phi i64 [ 0, %.lr.ph230 ], [ %indvars.iv.next277, %._crit_edge295 ]
  %.0153228 = phi i1 [ true, %.lr.ph230 ], [ %.1154, %._crit_edge295 ]
  %.0155227 = phi double [ 0.000000e+00, %.lr.ph230 ], [ %.2157, %._crit_edge295 ]
  %173 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali11SmallVectorIbLm3ESaIbEEixEl(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv276)
          to label %174 unwind label %187

174:                                              ; preds = %172
  %175 = load i8, ptr %173, align 1, !tbaa !17, !range !19, !noundef !20
  %176 = trunc nuw i8 %175 to i1
  br i1 %176, label %177, label %._crit_edge295

177:                                              ; preds = %174
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %indvars.iv276)
          to label %179 unwind label %189

179:                                              ; preds = %177
  %180 = load double, ptr %178, align 8, !tbaa !5
  %181 = call noundef double @_ZSt3absd(double noundef %180)
  %182 = fptrunc double %181 to float
  %.pre = fpext float %182 to double
  br i1 %.0153228, label %._crit_edge295, label %183

183:                                              ; preds = %179
  %184 = fcmp olt double %.0155227, %.pre
  %or.cond = select i1 %73, i1 %184, i1 false
  %185 = fcmp ogt double %.0155227, %.pre
  %or.cond193 = select i1 %74, i1 %185, i1 false
  %or.cond242 = select i1 %or.cond, i1 true, i1 %or.cond193
  br i1 %or.cond242, label %186, label %._crit_edge295

186:                                              ; preds = %183
  br label %._crit_edge295

187:                                              ; preds = %172
  %188 = landingpad { ptr, i32 }
          cleanup
  br label %251

189:                                              ; preds = %177
  %190 = landingpad { ptr, i32 }
          cleanup
  br label %251

._crit_edge295:                                   ; preds = %179, %183, %186, %174
  %.2157 = phi double [ %.0155227, %174 ], [ %.0155227, %183 ], [ %.pre, %186 ], [ %.pre, %179 ]
  %.1154 = phi i1 [ %.0153228, %174 ], [ false, %183 ], [ false, %186 ], [ false, %179 ]
  %indvars.iv.next277 = add nuw nsw i64 %indvars.iv276, 1
  %exitcond279.not = icmp eq i64 %indvars.iv.next277, %wide.trip.count278
  br i1 %exitcond279.not, label %._crit_edge231, label %172, !llvm.loop !28

.lr.ph235:                                        ; preds = %211, %.lr.ph235.preheader.new
  %indvars.iv280 = phi i64 [ 0, %.lr.ph235.preheader.new ], [ %indvars.iv.next281.1, %211 ]
  %.3158233 = phi double [ %.2157, %.lr.ph235.preheader.new ], [ %.5.1, %211 ]
  %niter = phi i64 [ 0, %.lr.ph235.preheader.new ], [ %niter.next.1, %211 ]
  %191 = getelementptr inbounds float, ptr %4, i64 %indvars.iv280
  %192 = load float, ptr %191, align 4, !tbaa !9
  %193 = fcmp ogt float %192, 0.000000e+00
  br i1 %193, label %194, label %.lr.ph235.1

194:                                              ; preds = %.lr.ph235
  %195 = fpext float %192 to double
  %196 = getelementptr inbounds float, ptr %1, i64 %indvars.iv280
  %197 = load float, ptr %196, align 4, !tbaa !9
  %198 = fpext float %197 to double
  %199 = fdiv double %195, %198
  %200 = fcmp olt double %199, %.3158233
  %.4159 = select i1 %200, double %199, double %.3158233
  br label %.lr.ph235.1

.lr.ph235.1:                                      ; preds = %.lr.ph235, %194
  %.5 = phi double [ %.4159, %194 ], [ %.3158233, %.lr.ph235 ]
  %indvars.iv.next281 = or disjoint i64 %indvars.iv280, 1
  %201 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next281
  %202 = load float, ptr %201, align 4, !tbaa !9
  %203 = fcmp ogt float %202, 0.000000e+00
  br i1 %203, label %204, label %211

204:                                              ; preds = %.lr.ph235.1
  %205 = fpext float %202 to double
  %206 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next281
  %207 = load float, ptr %206, align 4, !tbaa !9
  %208 = fpext float %207 to double
  %209 = fdiv double %205, %208
  %210 = fcmp olt double %209, %.5
  %.4159.1 = select i1 %210, double %209, double %.5
  br label %211

211:                                              ; preds = %204, %.lr.ph235.1
  %.5.1 = phi double [ %.4159.1, %204 ], [ %.5, %.lr.ph235.1 ]
  %indvars.iv.next281.1 = add nuw nsw i64 %indvars.iv280, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.loopexit196.loopexit.unr-lcssa, label %.lr.ph235, !llvm.loop !29

.loopexit196.loopexit.unr-lcssa:                  ; preds = %211, %.lr.ph235.preheader
  %.5.lcssa.ph = phi double [ poison, %.lr.ph235.preheader ], [ %.5.1, %211 ]
  %indvars.iv280.unr = phi i64 [ 0, %.lr.ph235.preheader ], [ %indvars.iv.next281.1, %211 ]
  %.3158233.unr = phi double [ %.2157, %.lr.ph235.preheader ], [ %.5.1, %211 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit196, label %.lr.ph235.epil

.lr.ph235.epil:                                   ; preds = %.loopexit196.loopexit.unr-lcssa
  %212 = getelementptr inbounds float, ptr %4, i64 %indvars.iv280.unr
  %213 = load float, ptr %212, align 4, !tbaa !9
  %214 = fcmp ogt float %213, 0.000000e+00
  br i1 %214, label %215, label %.loopexit196

215:                                              ; preds = %.lr.ph235.epil
  %216 = fpext float %213 to double
  %217 = getelementptr inbounds float, ptr %1, i64 %indvars.iv280.unr
  %218 = load float, ptr %217, align 4, !tbaa !9
  %219 = fpext float %218 to double
  %220 = fdiv double %216, %219
  %221 = fcmp olt double %220, %.3158233.unr
  %.4159.epil = select i1 %221, double %220, double %.3158233.unr
  br label %.loopexit196

.loopexit196:                                     ; preds = %.loopexit196.loopexit.unr-lcssa, %215, %.lr.ph235.epil, %._crit_edge231
  %.6 = phi double [ %.2157, %._crit_edge231 ], [ %.5.lcssa.ph, %.loopexit196.loopexit.unr-lcssa ], [ %.4159.epil, %215 ], [ %.3158233.unr, %.lr.ph235.epil ]
  br i1 %13, label %.lr.ph239.preheader, label %.loopexit

.lr.ph239.preheader:                              ; preds = %.loopexit196
  %wide.trip.count288 = zext nneg i32 %2 to i64
  br label %.lr.ph239

.lr.ph239:                                        ; preds = %.lr.ph239.preheader, %250
  %indvars.iv285 = phi i64 [ 0, %.lr.ph239.preheader ], [ %indvars.iv.next286, %250 ]
  %222 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN4dali11SmallVectorIbLm3ESaIbEEixEl(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv285)
          to label %223 unwind label %248

223:                                              ; preds = %.lr.ph239
  %224 = load i8, ptr %222, align 1, !tbaa !17, !range !19, !noundef !20
  %225 = trunc nuw i8 %224 to i1
  br i1 %225, label %226, label %232

226:                                              ; preds = %223
  %227 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %indvars.iv285)
          to label %228 unwind label %248

228:                                              ; preds = %226
  %229 = load double, ptr %227, align 8, !tbaa !5
  %230 = call noundef double @_ZSt3absd(double noundef %229)
  %231 = fcmp une double %230, %.6
  br i1 %231, label %232, label %250

232:                                              ; preds = %228, %223
  %233 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %indvars.iv285)
          to label %234 unwind label %248

234:                                              ; preds = %232
  %235 = load double, ptr %233, align 8, !tbaa !5
  %236 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %indvars.iv285)
          to label %237 unwind label %248

237:                                              ; preds = %234
  %238 = call double @llvm.copysign.f64(double %.6, double %235)
  store double %238, ptr %236, align 8, !tbaa !5
  %239 = getelementptr inbounds float, ptr %1, i64 %indvars.iv285
  %240 = load float, ptr %239, align 4, !tbaa !9
  %241 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %indvars.iv285)
          to label %242 unwind label %248

242:                                              ; preds = %237
  %243 = fpext float %240 to double
  %244 = load double, ptr %241, align 8, !tbaa !5
  %245 = fmul double %244, %243
  %246 = fptrunc double %245 to float
  %247 = getelementptr inbounds float, ptr %0, i64 %indvars.iv285
  store float %246, ptr %247, align 4, !tbaa !9
  br label %250

248:                                              ; preds = %237, %234, %232, %226, %.lr.ph239
  %249 = landingpad { ptr, i32 }
          cleanup
  br label %251

250:                                              ; preds = %228, %242
  %indvars.iv.next286 = add nuw nsw i64 %indvars.iv285, 1
  %exitcond289.not = icmp eq i64 %indvars.iv.next286, %wide.trip.count288
  br i1 %exitcond289.not, label %.loopexit, label %.lr.ph239, !llvm.loop !30

.loopexit:                                        ; preds = %170, %134, %250, %.lr.ph241.prol.loopexit, %.lr.ph241, %middle.block, %94, %.preheader197, %.preheader206, %.loopexit196, %.preheader, %.loopexit200, %.loopexit205
  call void @_ZN4dali11SmallVectorIbLm3ESaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  call void @_ZN4dali11SmallVectorIdLm3ESaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  ret void

251:                                              ; preds = %58, %132, %147, %168, %111, %87, %187, %189, %248, %28, %26
  %.pn188.pn = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ], [ %59, %58 ], [ %133, %132 ], [ %148, %147 ], [ %169, %168 ], [ %88, %87 ], [ %112, %111 ], [ %249, %248 ], [ %190, %189 ], [ %188, %187 ]
  call void @_ZN4dali11SmallVectorIbLm3ESaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  call void @_ZN4dali11SmallVectorIdLm3ESaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  resume { ptr, i32 } %.pn188.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali11SmallVectorIdLm3ESaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali11SmallVectorIbLm3ESaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11SmallVectorIdLm3ESaIdEE6resizeEmRKd(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11SmallVectorIbLm3ESaIbEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIdLm3ESaIdEEixEl(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.copysign.f32(float, float) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali11SmallVectorIbLm3ESaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali11SmallVectorIdLm3ESaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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


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