; LLVM IR from facebookresearch/habitat-sim :: src/deps/basis-universal/encoder (basisu_ssim)

; 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.basisu::vector2D" = type { i32, i32, %"class.basisu::vector" }
%"class.basisu::vector" = type { ptr, i32, i32 }
%"class.basisu::vec" = type { [4 x float] }

@.str.3 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [43 x i8], align 1
@__PRETTY_FUNCTION__._ZN6basisu15gaussian_filterERNS_6imagefERKS0_jfbjj = external hidden unnamed_addr constant [98 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu23compute_gaussian_kernelEPfiifj(ptr noundef, i32 noundef, i32 noundef, float noundef, i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6basisu15gaussian_filterERNS_6imagefERKS0_jfbjj(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2, float noundef %3, i1 noundef zeroext %4, i32 noundef %5, i32 noundef %6) #1 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.basisu::vector2D", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %"class.basisu::vec", align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"class.basisu::vec", align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca float, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store float %3, ptr %11, align 4, !tbaa !11
  %33 = zext i1 %4 to i8
  store i8 %33, ptr %12, align 1, !tbaa !13
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  %34 = load i32, ptr %10, align 4, !tbaa !9
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %40

36:                                               ; preds = %7
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = and i32 %37, 1
  %39 = icmp ne i32 %38, 0
  br label %40

40:                                               ; preds = %36, %7
  %41 = phi i1 [ false, %7 ], [ %39, %36 ]
  br i1 %41, label %42, label %43

42:                                               ; preds = %40
  br label %45

43:                                               ; preds = %40
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.3, i32 noundef 94, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu15gaussian_filterERNS_6imagefERKS0_jfbjj) #6
  unreachable

44:                                               ; No predecessors!
  br label %45

45:                                               ; preds = %44, %42
  %46 = load i32, ptr %10, align 4, !tbaa !9
  %47 = or i32 %46, 1
  store i32 %47, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #7
  %48 = load i32, ptr %10, align 4, !tbaa !9
  %49 = load i32, ptr %10, align 4, !tbaa !9
  call void @_ZN6basisu8vector2DIfEC2Ejj(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef %48, i32 noundef %49)
  %50 = invoke noundef ptr @_ZN6basisu8vector2DIfE7get_ptrEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %51 unwind label %81

51:                                               ; preds = %45
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = load float, ptr %11, align 4, !tbaa !11
  invoke void @_ZN6basisu23compute_gaussian_kernelEPfiifj(ptr noundef %50, i32 noundef %52, i32 noundef %53, float noundef %54, i32 noundef 1)
          to label %55 unwind label %81

55:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = invoke noundef i32 @_ZNK6basisu6imagef9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32) %56)
          to label %58 unwind label %85

58:                                               ; preds = %55
  %59 = load i32, ptr %13, align 4, !tbaa !9
  %60 = udiv i32 %57, %59
  store i32 %60, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = invoke noundef i32 @_ZNK6basisu6imagef10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32) %61)
          to label %63 unwind label %89

63:                                               ; preds = %58
  %64 = load i32, ptr %14, align 4, !tbaa !9
  %65 = udiv i32 %62, %64
  store i32 %65, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = udiv i32 %66, 2
  store i32 %67, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %68 = load i32, ptr %20, align 4, !tbaa !9
  %69 = sub nsw i32 0, %68
  store i32 %69, ptr %21, align 4, !tbaa !9
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = load i32, ptr %18, align 4, !tbaa !9
  %72 = load i32, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  invoke void @_ZN6basisu3vecILj4EfEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %22, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
          to label %73 unwind label %93

73:                                               ; preds = %63
  %74 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN6basisu6imagef4cropEjjjRKNS_3vecILj4EfEE(ptr noundef nonnull align 8 dereferenceable(32) %70, i32 noundef %71, i32 noundef %72, i32 noundef -1, ptr noundef nonnull align 4 dereferenceable(16) %22)
          to label %75 unwind label %93

75:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %230, %75
  %77 = load i32, ptr %23, align 4, !tbaa !9
  %78 = load i32, ptr %19, align 4, !tbaa !9
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %97, label %80

80:                                               ; preds = %76
  store i32 2, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %233

81:                                               ; preds = %51, %45
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %16, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %17, align 4
  br label %237

85:                                               ; preds = %55
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %16, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %17, align 4
  br label %236

89:                                               ; preds = %58
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %16, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %17, align 4
  br label %235

93:                                               ; preds = %73, %63
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %16, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  br label %234

97:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %225, %97
  %99 = load i32, ptr %25, align 4, !tbaa !9
  %100 = load i32, ptr %18, align 4, !tbaa !9
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %98
  store i32 5, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %229

103:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  invoke void @_ZN6basisu3vecILj4EfEC2Ef(ptr noundef nonnull align 4 dereferenceable(16) %26, float noundef 0.000000e+00)
          to label %104 unwind label %111

104:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %105 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %105, ptr %27, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %202, %104
  %107 = load i32, ptr %27, align 4, !tbaa !9
  %108 = load i32, ptr %20, align 4, !tbaa !9
  %109 = icmp sle i32 %107, %108
  br i1 %109, label %115, label %110

110:                                              ; preds = %106
  store i32 8, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %205

111:                                              ; preds = %221, %218, %215, %212, %210, %205, %103
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %16, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %17, align 4
  br label %228

115:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %116 = load i32, ptr %23, align 4, !tbaa !9
  %117 = load i32, ptr %14, align 4, !tbaa !9
  %118 = mul i32 %116, %117
  %119 = load i32, ptr %14, align 4, !tbaa !9
  %120 = lshr i32 %119, 1
  %121 = add i32 %118, %120
  %122 = load i32, ptr %27, align 4, !tbaa !9
  %123 = add i32 %121, %122
  store i32 %123, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %124 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %124, ptr %29, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %189, %115
  %126 = load i32, ptr %29, align 4, !tbaa !9
  %127 = load i32, ptr %20, align 4, !tbaa !9
  %128 = icmp sle i32 %126, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %125
  store i32 11, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %201

130:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %131 = load i32, ptr %25, align 4, !tbaa !9
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = mul i32 %131, %132
  %134 = load i32, ptr %13, align 4, !tbaa !9
  %135 = lshr i32 %134, 1
  %136 = add i32 %133, %135
  %137 = load i32, ptr %29, align 4, !tbaa !9
  %138 = add i32 %136, %137
  store i32 %138, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = load i32, ptr %30, align 4, !tbaa !9
  %141 = load i32, ptr %28, align 4, !tbaa !9
  %142 = load i8, ptr %12, align 1, !tbaa !13, !range !15, !noundef !16
  %143 = trunc i8 %142 to i1
  %144 = load i8, ptr %12, align 1, !tbaa !13, !range !15, !noundef !16
  %145 = trunc i8 %144 to i1
  %146 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZNK6basisu6imagef22get_clamped_or_wrappedEiibb(ptr noundef nonnull align 8 dereferenceable(32) %139, i32 noundef %140, i32 noundef %141, i1 noundef zeroext %143, i1 noundef zeroext %145)
          to label %147 unwind label %192

147:                                              ; preds = %130
  store ptr %146, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %148 = load i32, ptr %29, align 4, !tbaa !9
  %149 = load i32, ptr %20, align 4, !tbaa !9
  %150 = add nsw i32 %148, %149
  %151 = load i32, ptr %27, align 4, !tbaa !9
  %152 = load i32, ptr %20, align 4, !tbaa !9
  %153 = add nsw i32 %151, %152
  %154 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu8vector2DIfEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef %150, i32 noundef %153)
          to label %155 unwind label %196

155:                                              ; preds = %147
  %156 = load float, ptr %154, align 4, !tbaa !11
  store float %156, ptr %32, align 4, !tbaa !11
  %157 = load ptr, ptr %31, align 8, !tbaa !5
  %158 = invoke noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %157, i32 noundef 0)
          to label %159 unwind label %196

159:                                              ; preds = %155
  %160 = load float, ptr %32, align 4, !tbaa !11
  %161 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %26, i32 noundef 0)
          to label %162 unwind label %196

162:                                              ; preds = %159
  %163 = load float, ptr %161, align 4, !tbaa !11
  %164 = call float @llvm.fmuladd.f32(float %158, float %160, float %163)
  store float %164, ptr %161, align 4, !tbaa !11
  %165 = load ptr, ptr %31, align 8, !tbaa !5
  %166 = invoke noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %165, i32 noundef 1)
          to label %167 unwind label %196

167:                                              ; preds = %162
  %168 = load float, ptr %32, align 4, !tbaa !11
  %169 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %26, i32 noundef 1)
          to label %170 unwind label %196

170:                                              ; preds = %167
  %171 = load float, ptr %169, align 4, !tbaa !11
  %172 = call float @llvm.fmuladd.f32(float %166, float %168, float %171)
  store float %172, ptr %169, align 4, !tbaa !11
  %173 = load ptr, ptr %31, align 8, !tbaa !5
  %174 = invoke noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %173, i32 noundef 2)
          to label %175 unwind label %196

175:                                              ; preds = %170
  %176 = load float, ptr %32, align 4, !tbaa !11
  %177 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %26, i32 noundef 2)
          to label %178 unwind label %196

178:                                              ; preds = %175
  %179 = load float, ptr %177, align 4, !tbaa !11
  %180 = call float @llvm.fmuladd.f32(float %174, float %176, float %179)
  store float %180, ptr %177, align 4, !tbaa !11
  %181 = load ptr, ptr %31, align 8, !tbaa !5
  %182 = invoke noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %181, i32 noundef 3)
          to label %183 unwind label %196

183:                                              ; preds = %178
  %184 = load float, ptr %32, align 4, !tbaa !11
  %185 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %26, i32 noundef 3)
          to label %186 unwind label %196

186:                                              ; preds = %183
  %187 = load float, ptr %185, align 4, !tbaa !11
  %188 = call float @llvm.fmuladd.f32(float %182, float %184, float %187)
  store float %188, ptr %185, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %189

189:                                              ; preds = %186
  %190 = load i32, ptr %29, align 4, !tbaa !9
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %29, align 4, !tbaa !9
  br label %125, !llvm.loop !17

192:                                              ; preds = %130
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %16, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %17, align 4
  br label %200

196:                                              ; preds = %183, %178, %175, %170, %167, %162, %159, %155, %147
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %16, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %200

200:                                              ; preds = %196, %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %228

201:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %202

202:                                              ; preds = %201
  %203 = load i32, ptr %27, align 4, !tbaa !9
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %27, align 4, !tbaa !9
  br label %106, !llvm.loop !19

205:                                              ; preds = %110
  %206 = load ptr, ptr %8, align 8, !tbaa !5
  %207 = load i32, ptr %25, align 4, !tbaa !9
  %208 = load i32, ptr %23, align 4, !tbaa !9
  %209 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu6imagefclEjj(ptr noundef nonnull align 8 dereferenceable(32) %206, i32 noundef %207, i32 noundef %208)
          to label %210 unwind label %111

210:                                              ; preds = %205
  %211 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %26, i32 noundef 0)
          to label %212 unwind label %111

212:                                              ; preds = %210
  %213 = load float, ptr %211, align 4, !tbaa !11
  %214 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %26, i32 noundef 1)
          to label %215 unwind label %111

215:                                              ; preds = %212
  %216 = load float, ptr %214, align 4, !tbaa !11
  %217 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %26, i32 noundef 2)
          to label %218 unwind label %111

218:                                              ; preds = %215
  %219 = load float, ptr %217, align 4, !tbaa !11
  %220 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %26, i32 noundef 3)
          to label %221 unwind label %111

221:                                              ; preds = %218
  %222 = load float, ptr %220, align 4, !tbaa !11
  %223 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu3vecILj4EfE3setEffff(ptr noundef nonnull align 4 dereferenceable(16) %209, float noundef %213, float noundef %216, float noundef %219, float noundef %222)
          to label %224 unwind label %111

224:                                              ; preds = %221
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %25, align 4, !tbaa !9
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %25, align 4, !tbaa !9
  br label %98, !llvm.loop !20

228:                                              ; preds = %200, %111
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %234

229:                                              ; preds = %102
  br label %230

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

233:                                              ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @_ZN6basisu8vector2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  ret void

234:                                              ; preds = %228, %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %235

235:                                              ; preds = %234, %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %236

236:                                              ; preds = %235, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %237

237:                                              ; preds = %236, %81
  call void @_ZN6basisu8vector2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  br label %238

238:                                              ; preds = %237
  %239 = load ptr, ptr %16, align 8
  %240 = load i32, ptr %17, align 4
  %241 = insertvalue { ptr, i32 } poison, ptr %239, 0
  %242 = insertvalue { ptr, i32 } %241, i32 %240, 1
  resume { ptr, i32 } %242
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu6imagef9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu6imagef10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN6basisu6imagef4cropEjjjRKNS_3vecILj4EfEE(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(16)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu3vecILj4EfEC2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu3vecILj4EfEC2Ef(ptr noundef nonnull align 4 dereferenceable(16), float noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK6basisu6imagef22get_clamped_or_wrappedEiibb(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext) #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu6imagefclEjj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu8vector2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { noreturn nounwind }
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 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}


; 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.basisu::vector2D" = type { i32, i32, %"class.basisu::vector" }
%"class.basisu::vector" = type { ptr, i32, i32 }
%"class.basisu::vec" = type { [4 x float] }

@.str.3 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [43 x i8], align 1
@__PRETTY_FUNCTION__._ZN6basisu15gaussian_filterERNS_6imagefERKS0_jfbjj = external hidden unnamed_addr constant [98 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu23compute_gaussian_kernelEPfiifj(ptr noundef, i32 noundef, i32 noundef, float noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6basisu15gaussian_filterERNS_6imagefERKS0_jfbjj(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2, float noundef %3, i1 noundef zeroext %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.basisu::vector2D", align 8
  %9 = alloca %"class.basisu::vec", align 4
  %10 = alloca %"class.basisu::vec", align 4
  %11 = and i32 %2, 1
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %12, label %13

12:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.3, i32 noundef 94, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu15gaussian_filterERNS_6imagefERKS0_jfbjj) #6
  unreachable

13:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @_ZN6basisu8vector2DIfEC2Ejj(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef %2, i32 noundef %2)
  %14 = call noundef ptr @_ZN6basisu8vector2DIfE7get_ptrEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  invoke void @_ZN6basisu23compute_gaussian_kernelEPfiifj(ptr noundef %14, i32 noundef %2, i32 noundef %2, float noundef %3, i32 noundef 1)
          to label %15 unwind label %78

15:                                               ; preds = %13
  %16 = call noundef i32 @_ZNK6basisu6imagef9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %17 = udiv i32 %16, %5
  %18 = call noundef i32 @_ZNK6basisu6imagef10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %19 = udiv i32 %18, %6
  %20 = lshr i32 %2, 1
  %21 = sub nsw i32 0, %20
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  invoke void @_ZN6basisu3vecILj4EfEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
          to label %22 unwind label %80

22:                                               ; preds = %15
  %23 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN6basisu6imagef4cropEjjjRKNS_3vecILj4EfEE(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %17, i32 noundef %19, i32 noundef -1, ptr noundef nonnull align 4 dereferenceable(16) %9)
          to label %24 unwind label %80

24:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  %25 = icmp sgt i32 %19, 0
  br i1 %25, label %.preheader73.lr.ph, label %._crit_edge85

.preheader73.lr.ph:                               ; preds = %24
  %26 = icmp sgt i32 %17, 0
  %27 = lshr i32 %6, 1
  %28 = lshr i32 %5, 1
  br i1 %26, label %.preheader73.us, label %._crit_edge85

.preheader73.us:                                  ; preds = %.preheader73.lr.ph, %._crit_edge82.split.us88
  %.06483.us = phi i32 [ %74, %._crit_edge82.split.us88 ], [ 0, %.preheader73.lr.ph ]
  %29 = mul i32 %.06483.us, %6
  %30 = add i32 %29, %27
  br label %31

31:                                               ; preds = %.preheader73.us, %58
  %.06680.us86 = phi i32 [ 0, %.preheader73.us ], [ %59, %58 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  invoke void @_ZN6basisu3vecILj4EfEC2Ef(ptr noundef nonnull align 4 dereferenceable(16) %10, float noundef 0.000000e+00)
          to label %.preheader.us87 unwind label %.split.split.us

.lr.ph.us:                                        ; preds = %._crit_edge.us, %.preheader.us87
  %.06577.us = phi i32 [ %21, %.preheader.us87 ], [ %63, %._crit_edge.us ]
  %32 = add i32 %30, %.06577.us
  %33 = add nsw i32 %.06577.us, %20
  br label %34

34:                                               ; preds = %37, %.lr.ph.us
  %.06375.us = phi i32 [ %21, %.lr.ph.us ], [ %57, %37 ]
  %35 = add i32 %62, %.06375.us
  %36 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZNK6basisu6imagef22get_clamped_or_wrappedEiibb(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %35, i32 noundef %32, i1 noundef zeroext %4, i1 noundef zeroext %4)
          to label %37 unwind label %.split92.us

37:                                               ; preds = %34
  %38 = add nsw i32 %.06375.us, %20
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu8vector2DIfEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef %38, i32 noundef %33)
  %40 = load float, ptr %39, align 4, !tbaa !5
  %41 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %36, i32 noundef 0)
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef 0)
  %43 = load float, ptr %42, align 4, !tbaa !5
  %44 = call float @llvm.fmuladd.f32(float %41, float %40, float %43)
  store float %44, ptr %42, align 4, !tbaa !5
  %45 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %36, i32 noundef 1)
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef 1)
  %47 = load float, ptr %46, align 4, !tbaa !5
  %48 = call float @llvm.fmuladd.f32(float %45, float %40, float %47)
  store float %48, ptr %46, align 4, !tbaa !5
  %49 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %36, i32 noundef 2)
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef 2)
  %51 = load float, ptr %50, align 4, !tbaa !5
  %52 = call float @llvm.fmuladd.f32(float %49, float %40, float %51)
  store float %52, ptr %50, align 4, !tbaa !5
  %53 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %36, i32 noundef 3)
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef 3)
  %55 = load float, ptr %54, align 4, !tbaa !5
  %56 = call float @llvm.fmuladd.f32(float %53, float %40, float %55)
  store float %56, ptr %54, align 4, !tbaa !5
  %57 = add i32 %.06375.us, 1
  %exitcond.not = icmp eq i32 %.06375.us, %20
  br i1 %exitcond.not, label %._crit_edge.us, label %34, !llvm.loop !9

58:                                               ; preds = %._crit_edge79.split.us
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  %59 = add nuw nsw i32 %.06680.us86, 1
  %60 = icmp slt i32 %59, %17
  br i1 %60, label %31, label %._crit_edge82.split.us88, !llvm.loop !11

.preheader.us87:                                  ; preds = %31
  %61 = mul i32 %.06680.us86, %5
  %62 = add i32 %61, %28
  br label %.lr.ph.us

._crit_edge.us:                                   ; preds = %37
  %63 = add i32 %.06577.us, 1
  %exitcond98.not = icmp eq i32 %.06577.us, %20
  br i1 %exitcond98.not, label %._crit_edge79.split.us, label %.lr.ph.us, !llvm.loop !12

._crit_edge79.split.us:                           ; preds = %._crit_edge.us
  %64 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu6imagefclEjj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %.06680.us86, i32 noundef %.06483.us)
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef 0)
  %66 = load float, ptr %65, align 4, !tbaa !5
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef 1)
  %68 = load float, ptr %67, align 4, !tbaa !5
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef 2)
  %70 = load float, ptr %69, align 4, !tbaa !5
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef 3)
  %72 = load float, ptr %71, align 4, !tbaa !5
  %73 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu3vecILj4EfE3setEffff(ptr noundef nonnull align 4 dereferenceable(16) %64, float noundef %66, float noundef %68, float noundef %70, float noundef %72)
          to label %58 unwind label %.split.split.us

._crit_edge82.split.us88:                         ; preds = %58
  %74 = add nuw nsw i32 %.06483.us, 1
  %75 = icmp slt i32 %74, %19
  br i1 %75, label %.preheader73.us, label %._crit_edge85, !llvm.loop !13

.split.split.us:                                  ; preds = %._crit_edge79.split.us, %31
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %82

.split92.us:                                      ; preds = %34
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %82

._crit_edge85:                                    ; preds = %._crit_edge82.split.us88, %.preheader73.lr.ph, %24
  call void @_ZN6basisu8vector2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  ret void

78:                                               ; preds = %13
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %83

80:                                               ; preds = %22, %15
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %83

82:                                               ; preds = %.split.split.us, %.split92.us
  %.pn = phi { ptr, i32 } [ %77, %.split92.us ], [ %76, %.split.split.us ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %83

83:                                               ; preds = %80, %82, %78
  %.pn.pn.pn = phi { ptr, i32 } [ %79, %78 ], [ %.pn, %82 ], [ %81, %80 ]
  call void @_ZN6basisu8vector2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu6imagef9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu6imagef10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN6basisu6imagef4cropEjjjRKNS_3vecILj4EfEE(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu3vecILj4EfEC2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu3vecILj4EfEC2Ef(ptr noundef nonnull align 4 dereferenceable(16), float noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK6basisu6imagef22get_clamped_or_wrappedEiibb(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu6imagefclEjj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu8vector2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { noreturn nounwind }
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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass