; LLVM IR from ermig1979/Simd :: src/Simd (SimdBaseWarpAffine)

; 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.Simd::WarpAffine" = type { %"struct.Simd::Deletable", %"struct.Simd::WarpAffParam", i8, i64, i64, %"struct.Simd::Array" }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::WarpAffParam" = type { i32, [6 x float], [6 x float], [4 x i8], i64, i64, i64, i64, i64, i64, i64, i64 }
%"struct.Simd::Array" = type { ptr, i64 }
%"struct.Simd::Point" = type { float, float }

; 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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef, float noundef) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef, float noundef) #1

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Simd3MinIiEET_S1_S1_(i32 noundef, i32 noundef) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Simd3MaxIiEET_S1_S1_(i32 noundef, i32 noundef) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4Simd13RestrictRangeIfEET_S1_S1_S1_(float noundef, float noundef, float noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base22WarpAffineByteBilinear8SetRangeEPKNS_5PointIfEEPiS6_PKiS8_(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) unnamed_addr #3 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca i32, align 4
  %31 = alloca float, align 4
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %34 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %35 = getelementptr inbounds %"class.Simd::WarpAffine", ptr %34, i32 0, i32 1
  store ptr %35, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %36 = getelementptr inbounds %"class.Simd::WarpAffine", ptr %34, i32 0, i32 5
  %37 = getelementptr inbounds %"struct.Simd::Array", ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  store ptr %38, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  %40 = load ptr, ptr %13, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %40, i32 0, i32 8
  %42 = load i64, ptr %41, align 8, !tbaa !17
  %43 = getelementptr inbounds float, ptr %39, i64 %42
  store ptr %43, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %44, i32 0, i32 7
  %46 = load i64, ptr %45, align 8, !tbaa !18
  %47 = uitofp i64 %46 to float
  store float %47, ptr %16, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %48, i32 0, i32 8
  %50 = load i64, ptr %49, align 8, !tbaa !17
  %51 = uitofp i64 %50 to float
  store float %51, ptr %17, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store float 0.000000e+00, ptr %18, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store i64 0, ptr %19, align 8, !tbaa !21
  br label %52

52:                                               ; preds = %68, %6
  %53 = load i64, ptr %19, align 8, !tbaa !21
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %54, i32 0, i32 8
  %56 = load i64, ptr %55, align 8, !tbaa !17
  %57 = icmp ult i64 %53, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %71

59:                                               ; preds = %52
  %60 = load float, ptr %16, align 4, !tbaa !19
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  %62 = load i64, ptr %19, align 8, !tbaa !21
  %63 = getelementptr inbounds float, ptr %61, i64 %62
  store float %60, ptr %63, align 4, !tbaa !19
  %64 = load float, ptr %18, align 4, !tbaa !19
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = load i64, ptr %19, align 8, !tbaa !21
  %67 = getelementptr inbounds float, ptr %65, i64 %66
  store float %64, ptr %67, align 4, !tbaa !19
  br label %68

68:                                               ; preds = %59
  %69 = load i64, ptr %19, align 8, !tbaa !21
  %70 = add i64 %69, 1
  store i64 %70, ptr %19, align 8, !tbaa !21
  br label %52, !llvm.loop !22

71:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !24
  br label %72

72:                                               ; preds = %192, %71
  %73 = load i32, ptr %20, align 4, !tbaa !24
  %74 = icmp slt i32 %73, 4
  br i1 %74, label %76, label %75

75:                                               ; preds = %72
  store i32 5, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %195

76:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = load i32, ptr %20, align 4, !tbaa !24
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds %"struct.Simd::Point", ptr %77, i64 %79
  store ptr %80, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = load i32, ptr %20, align 4, !tbaa !24
  %83 = add nsw i32 %82, 1
  %84 = and i32 %83, 3
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds %"struct.Simd::Point", ptr %81, i64 %85
  store ptr %86, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %87 = load ptr, ptr %22, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.Simd::Point", ptr %87, i32 0, i32 1
  %89 = load float, ptr %88, align 4, !tbaa !26
  %90 = load ptr, ptr %23, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.Simd::Point", ptr %90, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !26
  %93 = call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %89, float noundef %92)
  %94 = load float, ptr %18, align 4, !tbaa !19
  %95 = call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %93, float noundef %94)
  store float %95, ptr %24, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %96 = load ptr, ptr %22, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.Simd::Point", ptr %96, i32 0, i32 1
  %98 = load float, ptr %97, align 4, !tbaa !26
  %99 = load ptr, ptr %23, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.Simd::Point", ptr %99, i32 0, i32 1
  %101 = load float, ptr %100, align 4, !tbaa !26
  %102 = call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %98, float noundef %101)
  %103 = load float, ptr %17, align 4, !tbaa !19
  %104 = call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %102, float noundef %103)
  store float %104, ptr %25, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %105 = load float, ptr %24, align 4, !tbaa !19
  %106 = call noundef float @_ZSt4ceilf(float noundef %105)
  %107 = fptosi float %106 to i32
  store i32 %107, ptr %26, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %108 = load float, ptr %25, align 4, !tbaa !19
  %109 = call noundef float @_ZSt4ceilf(float noundef %108)
  %110 = fptosi float %109 to i32
  store i32 %110, ptr %27, align 4, !tbaa !24
  %111 = load ptr, ptr %23, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.Simd::Point", ptr %111, i32 0, i32 1
  %113 = load float, ptr %112, align 4, !tbaa !26
  %114 = load ptr, ptr %22, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.Simd::Point", ptr %114, i32 0, i32 1
  %116 = load float, ptr %115, align 4, !tbaa !26
  %117 = fcmp oeq float %113, %116
  br i1 %117, label %118, label %119

118:                                              ; preds = %76
  store i32 7, ptr %21, align 4
  br label %189

119:                                              ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %120 = load ptr, ptr %23, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.Simd::Point", ptr %120, i32 0, i32 0
  %122 = load float, ptr %121, align 4, !tbaa !28
  %123 = load ptr, ptr %22, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.Simd::Point", ptr %123, i32 0, i32 0
  %125 = load float, ptr %124, align 4, !tbaa !28
  %126 = fsub float %122, %125
  %127 = load ptr, ptr %23, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.Simd::Point", ptr %127, i32 0, i32 1
  %129 = load float, ptr %128, align 4, !tbaa !26
  %130 = load ptr, ptr %22, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.Simd::Point", ptr %130, i32 0, i32 1
  %132 = load float, ptr %131, align 4, !tbaa !26
  %133 = fsub float %129, %132
  %134 = fdiv float %126, %133
  store float %134, ptr %28, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %135 = load ptr, ptr %22, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.Simd::Point", ptr %135, i32 0, i32 0
  %137 = load float, ptr %136, align 4, !tbaa !28
  %138 = load ptr, ptr %22, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.Simd::Point", ptr %138, i32 0, i32 1
  %140 = load float, ptr %139, align 4, !tbaa !26
  %141 = load float, ptr %28, align 4, !tbaa !19
  %142 = fneg float %140
  %143 = call float @llvm.fmuladd.f32(float %142, float %141, float %137)
  store float %143, ptr %29, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %144 = load i32, ptr %26, align 4, !tbaa !24
  store i32 %144, ptr %30, align 4, !tbaa !24
  br label %145

145:                                              ; preds = %185, %119
  %146 = load i32, ptr %30, align 4, !tbaa !24
  %147 = load i32, ptr %27, align 4, !tbaa !24
  %148 = icmp slt i32 %146, %147
  br i1 %148, label %150, label %149

149:                                              ; preds = %145
  store i32 8, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %188

150:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  %151 = load i32, ptr %30, align 4, !tbaa !24
  %152 = sitofp i32 %151 to float
  %153 = load float, ptr %24, align 4, !tbaa !19
  %154 = load float, ptr %25, align 4, !tbaa !19
  %155 = call noundef float @_ZN4Simd13RestrictRangeIfEET_S1_S1_S1_(float noundef %152, float noundef %153, float noundef %154)
  %156 = load float, ptr %28, align 4, !tbaa !19
  %157 = load float, ptr %29, align 4, !tbaa !19
  %158 = call float @llvm.fmuladd.f32(float %155, float %156, float %157)
  store float %158, ptr %31, align 4, !tbaa !19
  %159 = load ptr, ptr %14, align 8, !tbaa !5
  %160 = load i32, ptr %30, align 4, !tbaa !24
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds float, ptr %159, i64 %161
  %163 = load float, ptr %162, align 4, !tbaa !19
  %164 = load float, ptr %31, align 4, !tbaa !19
  %165 = load float, ptr %18, align 4, !tbaa !19
  %166 = call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %164, float noundef %165)
  %167 = call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %163, float noundef %166)
  %168 = load ptr, ptr %14, align 8, !tbaa !5
  %169 = load i32, ptr %30, align 4, !tbaa !24
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds float, ptr %168, i64 %170
  store float %167, ptr %171, align 4, !tbaa !19
  %172 = load ptr, ptr %15, align 8, !tbaa !5
  %173 = load i32, ptr %30, align 4, !tbaa !24
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds float, ptr %172, i64 %174
  %176 = load float, ptr %175, align 4, !tbaa !19
  %177 = load float, ptr %31, align 4, !tbaa !19
  %178 = load float, ptr %16, align 4, !tbaa !19
  %179 = call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %177, float noundef %178)
  %180 = call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %176, float noundef %179)
  %181 = load ptr, ptr %15, align 8, !tbaa !5
  %182 = load i32, ptr %30, align 4, !tbaa !24
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds float, ptr %181, i64 %183
  store float %180, ptr %184, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %185

185:                                              ; preds = %150
  %186 = load i32, ptr %30, align 4, !tbaa !24
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %30, align 4, !tbaa !24
  br label %145, !llvm.loop !29

188:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  store i32 0, ptr %21, align 4
  br label %189

189:                                              ; preds = %188, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  %190 = load i32, ptr %21, align 4
  switch i32 %190, label %278 [
    i32 0, label %191
    i32 7, label %192
  ]

191:                                              ; preds = %189
  br label %192

192:                                              ; preds = %191, %189
  %193 = load i32, ptr %20, align 4, !tbaa !24
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %20, align 4, !tbaa !24
  br label %72, !llvm.loop !30

195:                                              ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  store i64 0, ptr %32, align 8, !tbaa !21
  br label %196

196:                                              ; preds = %234, %195
  %197 = load i64, ptr %32, align 8, !tbaa !21
  %198 = load ptr, ptr %13, align 8, !tbaa !5
  %199 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %198, i32 0, i32 8
  %200 = load i64, ptr %199, align 8, !tbaa !17
  %201 = icmp ult i64 %197, %200
  br i1 %201, label %203, label %202

202:                                              ; preds = %196
  store i32 11, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  br label %237

203:                                              ; preds = %196
  %204 = load ptr, ptr %14, align 8, !tbaa !5
  %205 = load i64, ptr %32, align 8, !tbaa !21
  %206 = getelementptr inbounds float, ptr %204, i64 %205
  %207 = load float, ptr %206, align 4, !tbaa !19
  %208 = call noundef float @_ZSt4ceilf(float noundef %207)
  %209 = fptosi float %208 to i32
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = load i64, ptr %32, align 8, !tbaa !21
  %212 = getelementptr inbounds i32, ptr %210, i64 %211
  store i32 %209, ptr %212, align 4, !tbaa !24
  %213 = load ptr, ptr %15, align 8, !tbaa !5
  %214 = load i64, ptr %32, align 8, !tbaa !21
  %215 = getelementptr inbounds float, ptr %213, i64 %214
  %216 = load float, ptr %215, align 4, !tbaa !19
  %217 = call noundef float @_ZSt4ceilf(float noundef %216)
  %218 = fptosi float %217 to i32
  %219 = load ptr, ptr %10, align 8, !tbaa !5
  %220 = load i64, ptr %32, align 8, !tbaa !21
  %221 = getelementptr inbounds i32, ptr %219, i64 %220
  store i32 %218, ptr %221, align 4, !tbaa !24
  %222 = load ptr, ptr %9, align 8, !tbaa !5
  %223 = load i64, ptr %32, align 8, !tbaa !21
  %224 = getelementptr inbounds i32, ptr %222, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !24
  %226 = load ptr, ptr %10, align 8, !tbaa !5
  %227 = load i64, ptr %32, align 8, !tbaa !21
  %228 = getelementptr inbounds i32, ptr %226, i64 %227
  %229 = load i32, ptr %228, align 4, !tbaa !24
  %230 = call noundef i32 @_ZN4Simd3MaxIiEET_S1_S1_(i32 noundef %225, i32 noundef %229)
  %231 = load ptr, ptr %10, align 8, !tbaa !5
  %232 = load i64, ptr %32, align 8, !tbaa !21
  %233 = getelementptr inbounds i32, ptr %231, i64 %232
  store i32 %230, ptr %233, align 4, !tbaa !24
  br label %234

234:                                              ; preds = %203
  %235 = load i64, ptr %32, align 8, !tbaa !21
  %236 = add i64 %235, 1
  store i64 %236, ptr %32, align 8, !tbaa !21
  br label %196, !llvm.loop !31

237:                                              ; preds = %202
  %238 = load ptr, ptr %12, align 8, !tbaa !5
  %239 = icmp ne ptr %238, null
  br i1 %239, label %240, label %277

240:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  store i64 0, ptr %33, align 8, !tbaa !21
  br label %241

241:                                              ; preds = %273, %240
  %242 = load i64, ptr %33, align 8, !tbaa !21
  %243 = load ptr, ptr %13, align 8, !tbaa !5
  %244 = getelementptr inbounds %"struct.Simd::WarpAffParam", ptr %243, i32 0, i32 8
  %245 = load i64, ptr %244, align 8, !tbaa !17
  %246 = icmp ult i64 %242, %245
  br i1 %246, label %248, label %247

247:                                              ; preds = %241
  store i32 14, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  br label %276

248:                                              ; preds = %241
  %249 = load ptr, ptr %9, align 8, !tbaa !5
  %250 = load i64, ptr %33, align 8, !tbaa !21
  %251 = getelementptr inbounds i32, ptr %249, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !24
  %253 = load ptr, ptr %12, align 8, !tbaa !5
  %254 = load i64, ptr %33, align 8, !tbaa !21
  %255 = getelementptr inbounds i32, ptr %253, i64 %254
  %256 = load i32, ptr %255, align 4, !tbaa !24
  %257 = call noundef i32 @_ZN4Simd3MinIiEET_S1_S1_(i32 noundef %252, i32 noundef %256)
  %258 = load ptr, ptr %9, align 8, !tbaa !5
  %259 = load i64, ptr %33, align 8, !tbaa !21
  %260 = getelementptr inbounds i32, ptr %258, i64 %259
  store i32 %257, ptr %260, align 4, !tbaa !24
  %261 = load ptr, ptr %10, align 8, !tbaa !5
  %262 = load i64, ptr %33, align 8, !tbaa !21
  %263 = getelementptr inbounds i32, ptr %261, i64 %262
  %264 = load i32, ptr %263, align 4, !tbaa !24
  %265 = load ptr, ptr %12, align 8, !tbaa !5
  %266 = load i64, ptr %33, align 8, !tbaa !21
  %267 = getelementptr inbounds i32, ptr %265, i64 %266
  %268 = load i32, ptr %267, align 4, !tbaa !24
  %269 = call noundef i32 @_ZN4Simd3MinIiEET_S1_S1_(i32 noundef %264, i32 noundef %268)
  %270 = load ptr, ptr %10, align 8, !tbaa !5
  %271 = load i64, ptr %33, align 8, !tbaa !21
  %272 = getelementptr inbounds i32, ptr %270, i64 %271
  store i32 %269, ptr %272, align 4, !tbaa !24
  br label %273

273:                                              ; preds = %248
  %274 = load i64, ptr %33, align 8, !tbaa !21
  %275 = add i64 %274, 1
  store i64 %275, ptr %33, align 8, !tbaa !21
  br label %241, !llvm.loop !32

276:                                              ; preds = %247
  br label %277

277:                                              ; preds = %276, %237
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  ret void

278:                                              ; preds = %189
  unreachable
}

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

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

!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, !6, i64 152}
!10 = !{!"_ZTSN4Simd10WarpAffineE", !11, i64 0, !12, i64 8, !15, i64 128, !14, i64 136, !14, i64 144, !16, i64 152}
!11 = !{!"_ZTSN4Simd9DeletableE"}
!12 = !{!"_ZTSN4Simd12WarpAffParamE", !13, i64 0, !7, i64 4, !7, i64 28, !7, i64 52, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112}
!13 = !{!"_ZTS19SimdWarpAffineFlags", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !14, i64 8}
!17 = !{!12, !14, i64 88}
!18 = !{!12, !14, i64 80}
!19 = !{!20, !20, i64 0}
!20 = !{!"float", !7, i64 0}
!21 = !{!14, !14, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!25, !25, i64 0}
!25 = !{!"int", !7, i64 0}
!26 = !{!27, !20, i64 4}
!27 = !{!"_ZTSN4Simd5PointIfEE", !20, i64 0, !20, i64 4}
!28 = !{!27, !20, i64 0}
!29 = distinct !{!29, !23}
!30 = distinct !{!30, !23}
!31 = distinct !{!31, !23}
!32 = distinct !{!32, !23}


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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef, float noundef) local_unnamed_addr #0

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Simd3MinIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Simd3MaxIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4Simd13RestrictRangeIfEET_S1_S1_S1_(float noundef, float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4Simd4Base22WarpAffineByteBilinear8SetRangeEPKNS_5PointIfEEPiS6_PKiS8_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(224) %0, ptr nocapture noundef readonly %1, ptr nocapture noundef %2, ptr nocapture noundef %3, ptr nocapture noundef readnone %4, ptr noundef readonly %5) unnamed_addr #2 align 2 {
  %7 = getelementptr inbounds i8, ptr %0, i64 152
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 96
  %10 = load i64, ptr %9, align 8, !tbaa !16
  %11 = getelementptr float, ptr %8, i64 %10
  %12 = getelementptr inbounds i8, ptr %0, i64 88
  %13 = load i64, ptr %12, align 8, !tbaa !17
  %14 = uitofp i64 %13 to float
  %15 = uitofp i64 %10 to float
  %.not109 = icmp eq i64 %10, 0
  br i1 %.not109, label %.preheader99, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %6
  %min.iters.check = icmp ult i64 %10, 8
  br i1 %min.iters.check, label %.lr.ph.preheader121, label %vector.ph

.lr.ph.preheader121:                              ; preds = %middle.block, %.lr.ph.preheader
  %.091100.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %10, -8
  %broadcast.splatinsert = insertelement <4 x float> poison, float %14, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %16 = getelementptr inbounds float, ptr %8, i64 %index
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  store <4 x float> %broadcast.splat, ptr %16, align 4, !tbaa !18
  store <4 x float> %broadcast.splat, ptr %17, align 4, !tbaa !18
  %18 = getelementptr inbounds float, ptr %11, i64 %index
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  store <4 x float> zeroinitializer, ptr %18, align 4, !tbaa !18
  store <4 x float> zeroinitializer, ptr %19, align 4, !tbaa !18
  %index.next = add nuw i64 %index, 8
  %20 = icmp eq i64 %index.next, %n.vec
  br i1 %20, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %10, %n.vec
  br i1 %cmp.n, label %.preheader99, label %.lr.ph.preheader121

.preheader99:                                     ; preds = %.lr.ph, %middle.block, %6
  %21 = getelementptr inbounds i8, ptr %1, i64 8
  %22 = getelementptr inbounds i8, ptr %1, i64 4
  %23 = load float, ptr %22, align 4, !tbaa !24
  %24 = getelementptr inbounds i8, ptr %1, i64 12
  %25 = load float, ptr %24, align 4, !tbaa !24
  %26 = tail call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %23, float noundef %25)
  %27 = tail call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %26, float noundef 0.000000e+00)
  %28 = load float, ptr %22, align 4, !tbaa !24
  %29 = load float, ptr %24, align 4, !tbaa !24
  %30 = tail call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %28, float noundef %29)
  %31 = tail call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %30, float noundef %15)
  %32 = tail call noundef float @_ZSt4ceilf(float noundef %27)
  %33 = tail call noundef float @_ZSt4ceilf(float noundef %31)
  %34 = fptosi float %33 to i32
  %35 = load float, ptr %24, align 4, !tbaa !24
  %36 = load float, ptr %22, align 4, !tbaa !24
  %37 = fcmp oeq float %35, %36
  br i1 %37, label %.loopexit98, label %41

.lr.ph:                                           ; preds = %.lr.ph.preheader121, %.lr.ph
  %.091100 = phi i64 [ %40, %.lr.ph ], [ %.091100.ph, %.lr.ph.preheader121 ]
  %38 = getelementptr inbounds float, ptr %8, i64 %.091100
  store float %14, ptr %38, align 4, !tbaa !18
  %39 = getelementptr inbounds float, ptr %11, i64 %.091100
  store float 0.000000e+00, ptr %39, align 4, !tbaa !18
  %40 = add nuw i64 %.091100, 1
  %exitcond.not = icmp eq i64 %40, %10
  br i1 %exitcond.not, label %.preheader99, label %.lr.ph, !llvm.loop !26

41:                                               ; preds = %.preheader99
  %42 = fptosi float %32 to i32
  %43 = load float, ptr %21, align 4, !tbaa !27
  %44 = load float, ptr %1, align 4, !tbaa !27
  %45 = fsub float %43, %44
  %46 = fsub float %35, %36
  %47 = fdiv float %45, %46
  %48 = fneg float %36
  %49 = tail call float @llvm.fmuladd.f32(float %48, float %47, float %44)
  %50 = icmp slt i32 %42, %34
  br i1 %50, label %.lr.ph102.preheader, label %.loopexit98

.lr.ph102.preheader:                              ; preds = %41
  %51 = sext i32 %42 to i64
  br label %.lr.ph102

.lr.ph102:                                        ; preds = %.lr.ph102.preheader, %.lr.ph102
  %indvars.iv = phi i64 [ %51, %.lr.ph102.preheader ], [ %indvars.iv.next, %.lr.ph102 ]
  %52 = trunc nsw i64 %indvars.iv to i32
  %53 = sitofp i32 %52 to float
  %54 = tail call noundef float @_ZN4Simd13RestrictRangeIfEET_S1_S1_S1_(float noundef %53, float noundef %27, float noundef %31)
  %55 = tail call float @llvm.fmuladd.f32(float %54, float %47, float %49)
  %56 = getelementptr inbounds float, ptr %8, i64 %indvars.iv
  %57 = load float, ptr %56, align 4, !tbaa !18
  %58 = tail call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %55, float noundef 0.000000e+00)
  %59 = tail call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %57, float noundef %58)
  store float %59, ptr %56, align 4, !tbaa !18
  %60 = getelementptr inbounds float, ptr %11, i64 %indvars.iv
  %61 = load float, ptr %60, align 4, !tbaa !18
  %62 = tail call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %55, float noundef %14)
  %63 = tail call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %61, float noundef %62)
  store float %63, ptr %60, align 4, !tbaa !18
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond112.not = icmp eq i32 %lftr.wideiv, %34
  br i1 %exitcond112.not, label %.loopexit98.loopexit, label %.lr.ph102, !llvm.loop !28

.loopexit98.loopexit:                             ; preds = %.lr.ph102
  %.pre = load float, ptr %24, align 4, !tbaa !24
  br label %.loopexit98

.loopexit98:                                      ; preds = %.loopexit98.loopexit, %41, %.preheader99
  %64 = phi float [ %.pre, %.loopexit98.loopexit ], [ %35, %41 ], [ %35, %.preheader99 ]
  %65 = getelementptr inbounds i8, ptr %1, i64 16
  %66 = getelementptr inbounds i8, ptr %1, i64 20
  %67 = load float, ptr %66, align 4, !tbaa !24
  %68 = tail call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %64, float noundef %67)
  %69 = tail call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %68, float noundef 0.000000e+00)
  %70 = load float, ptr %24, align 4, !tbaa !24
  %71 = load float, ptr %66, align 4, !tbaa !24
  %72 = tail call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %70, float noundef %71)
  %73 = tail call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %72, float noundef %15)
  %74 = tail call noundef float @_ZSt4ceilf(float noundef %69)
  %75 = tail call noundef float @_ZSt4ceilf(float noundef %73)
  %76 = fptosi float %75 to i32
  %77 = load float, ptr %66, align 4, !tbaa !24
  %78 = load float, ptr %24, align 4, !tbaa !24
  %79 = fcmp oeq float %77, %78
  br i1 %79, label %.loopexit98.1, label %80

80:                                               ; preds = %.loopexit98
  %81 = fptosi float %74 to i32
  %82 = load float, ptr %65, align 4, !tbaa !27
  %83 = load float, ptr %21, align 4, !tbaa !27
  %84 = fsub float %82, %83
  %85 = fsub float %77, %78
  %86 = fdiv float %84, %85
  %87 = fneg float %78
  %88 = tail call float @llvm.fmuladd.f32(float %87, float %86, float %83)
  %89 = icmp slt i32 %81, %76
  br i1 %89, label %.lr.ph102.preheader.1, label %.loopexit98.1

.lr.ph102.preheader.1:                            ; preds = %80
  %90 = sext i32 %81 to i64
  br label %.lr.ph102.1

.lr.ph102.1:                                      ; preds = %.lr.ph102.1, %.lr.ph102.preheader.1
  %indvars.iv.1 = phi i64 [ %90, %.lr.ph102.preheader.1 ], [ %indvars.iv.next.1, %.lr.ph102.1 ]
  %91 = trunc nsw i64 %indvars.iv.1 to i32
  %92 = sitofp i32 %91 to float
  %93 = tail call noundef float @_ZN4Simd13RestrictRangeIfEET_S1_S1_S1_(float noundef %92, float noundef %69, float noundef %73)
  %94 = tail call float @llvm.fmuladd.f32(float %93, float %86, float %88)
  %95 = getelementptr inbounds float, ptr %8, i64 %indvars.iv.1
  %96 = load float, ptr %95, align 4, !tbaa !18
  %97 = tail call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %94, float noundef 0.000000e+00)
  %98 = tail call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %96, float noundef %97)
  store float %98, ptr %95, align 4, !tbaa !18
  %99 = getelementptr inbounds float, ptr %11, i64 %indvars.iv.1
  %100 = load float, ptr %99, align 4, !tbaa !18
  %101 = tail call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %94, float noundef %14)
  %102 = tail call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %100, float noundef %101)
  store float %102, ptr %99, align 4, !tbaa !18
  %indvars.iv.next.1 = add nsw i64 %indvars.iv.1, 1
  %lftr.wideiv.1 = trunc i64 %indvars.iv.next.1 to i32
  %exitcond112.1.not = icmp eq i32 %lftr.wideiv.1, %76
  br i1 %exitcond112.1.not, label %.loopexit98.loopexit.1, label %.lr.ph102.1, !llvm.loop !28

.loopexit98.loopexit.1:                           ; preds = %.lr.ph102.1
  %.pre117 = load float, ptr %66, align 4, !tbaa !24
  br label %.loopexit98.1

.loopexit98.1:                                    ; preds = %.loopexit98.loopexit.1, %80, %.loopexit98
  %103 = phi float [ %.pre117, %.loopexit98.loopexit.1 ], [ %77, %80 ], [ %77, %.loopexit98 ]
  %104 = getelementptr inbounds i8, ptr %1, i64 24
  %105 = getelementptr inbounds i8, ptr %1, i64 28
  %106 = load float, ptr %105, align 4, !tbaa !24
  %107 = tail call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %103, float noundef %106)
  %108 = tail call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %107, float noundef 0.000000e+00)
  %109 = load float, ptr %66, align 4, !tbaa !24
  %110 = load float, ptr %105, align 4, !tbaa !24
  %111 = tail call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %109, float noundef %110)
  %112 = tail call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %111, float noundef %15)
  %113 = tail call noundef float @_ZSt4ceilf(float noundef %108)
  %114 = tail call noundef float @_ZSt4ceilf(float noundef %112)
  %115 = fptosi float %114 to i32
  %116 = load float, ptr %105, align 4, !tbaa !24
  %117 = load float, ptr %66, align 4, !tbaa !24
  %118 = fcmp oeq float %116, %117
  br i1 %118, label %.loopexit98.2, label %119

119:                                              ; preds = %.loopexit98.1
  %120 = fptosi float %113 to i32
  %121 = load float, ptr %104, align 4, !tbaa !27
  %122 = load float, ptr %65, align 4, !tbaa !27
  %123 = fsub float %121, %122
  %124 = fsub float %116, %117
  %125 = fdiv float %123, %124
  %126 = fneg float %117
  %127 = tail call float @llvm.fmuladd.f32(float %126, float %125, float %122)
  %128 = icmp slt i32 %120, %115
  br i1 %128, label %.lr.ph102.preheader.2, label %.loopexit98.2

.lr.ph102.preheader.2:                            ; preds = %119
  %129 = sext i32 %120 to i64
  br label %.lr.ph102.2

.lr.ph102.2:                                      ; preds = %.lr.ph102.2, %.lr.ph102.preheader.2
  %indvars.iv.2 = phi i64 [ %129, %.lr.ph102.preheader.2 ], [ %indvars.iv.next.2, %.lr.ph102.2 ]
  %130 = trunc nsw i64 %indvars.iv.2 to i32
  %131 = sitofp i32 %130 to float
  %132 = tail call noundef float @_ZN4Simd13RestrictRangeIfEET_S1_S1_S1_(float noundef %131, float noundef %108, float noundef %112)
  %133 = tail call float @llvm.fmuladd.f32(float %132, float %125, float %127)
  %134 = getelementptr inbounds float, ptr %8, i64 %indvars.iv.2
  %135 = load float, ptr %134, align 4, !tbaa !18
  %136 = tail call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %133, float noundef 0.000000e+00)
  %137 = tail call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %135, float noundef %136)
  store float %137, ptr %134, align 4, !tbaa !18
  %138 = getelementptr inbounds float, ptr %11, i64 %indvars.iv.2
  %139 = load float, ptr %138, align 4, !tbaa !18
  %140 = tail call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %133, float noundef %14)
  %141 = tail call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %139, float noundef %140)
  store float %141, ptr %138, align 4, !tbaa !18
  %indvars.iv.next.2 = add nsw i64 %indvars.iv.2, 1
  %lftr.wideiv.2 = trunc i64 %indvars.iv.next.2 to i32
  %exitcond112.2.not = icmp eq i32 %lftr.wideiv.2, %115
  br i1 %exitcond112.2.not, label %.loopexit98.loopexit.2, label %.lr.ph102.2, !llvm.loop !28

.loopexit98.loopexit.2:                           ; preds = %.lr.ph102.2
  %.pre118 = load float, ptr %105, align 4, !tbaa !24
  br label %.loopexit98.2

.loopexit98.2:                                    ; preds = %.loopexit98.loopexit.2, %119, %.loopexit98.1
  %142 = phi float [ %.pre118, %.loopexit98.loopexit.2 ], [ %116, %119 ], [ %116, %.loopexit98.1 ]
  %143 = load float, ptr %22, align 4, !tbaa !24
  %144 = tail call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %142, float noundef %143)
  %145 = tail call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %144, float noundef 0.000000e+00)
  %146 = load float, ptr %105, align 4, !tbaa !24
  %147 = load float, ptr %22, align 4, !tbaa !24
  %148 = tail call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %146, float noundef %147)
  %149 = tail call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %148, float noundef %15)
  %150 = tail call noundef float @_ZSt4ceilf(float noundef %145)
  %151 = tail call noundef float @_ZSt4ceilf(float noundef %149)
  %152 = fptosi float %151 to i32
  %153 = load float, ptr %22, align 4, !tbaa !24
  %154 = load float, ptr %105, align 4, !tbaa !24
  %155 = fcmp oeq float %153, %154
  br i1 %155, label %.loopexit98.3, label %156

156:                                              ; preds = %.loopexit98.2
  %157 = fptosi float %150 to i32
  %158 = load float, ptr %1, align 4, !tbaa !27
  %159 = load float, ptr %104, align 4, !tbaa !27
  %160 = fsub float %158, %159
  %161 = fsub float %153, %154
  %162 = fdiv float %160, %161
  %163 = fneg float %154
  %164 = tail call float @llvm.fmuladd.f32(float %163, float %162, float %159)
  %165 = icmp slt i32 %157, %152
  br i1 %165, label %.lr.ph102.preheader.3, label %.loopexit98.3

.lr.ph102.preheader.3:                            ; preds = %156
  %166 = sext i32 %157 to i64
  br label %.lr.ph102.3

.lr.ph102.3:                                      ; preds = %.lr.ph102.3, %.lr.ph102.preheader.3
  %indvars.iv.3 = phi i64 [ %166, %.lr.ph102.preheader.3 ], [ %indvars.iv.next.3, %.lr.ph102.3 ]
  %167 = trunc nsw i64 %indvars.iv.3 to i32
  %168 = sitofp i32 %167 to float
  %169 = tail call noundef float @_ZN4Simd13RestrictRangeIfEET_S1_S1_S1_(float noundef %168, float noundef %145, float noundef %149)
  %170 = tail call float @llvm.fmuladd.f32(float %169, float %162, float %164)
  %171 = getelementptr inbounds float, ptr %8, i64 %indvars.iv.3
  %172 = load float, ptr %171, align 4, !tbaa !18
  %173 = tail call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %170, float noundef 0.000000e+00)
  %174 = tail call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %172, float noundef %173)
  store float %174, ptr %171, align 4, !tbaa !18
  %175 = getelementptr inbounds float, ptr %11, i64 %indvars.iv.3
  %176 = load float, ptr %175, align 4, !tbaa !18
  %177 = tail call noundef float @_ZN4Simd3MinIfEET_S1_S1_(float noundef %170, float noundef %14)
  %178 = tail call noundef float @_ZN4Simd3MaxIfEET_S1_S1_(float noundef %176, float noundef %177)
  store float %178, ptr %175, align 4, !tbaa !18
  %indvars.iv.next.3 = add nsw i64 %indvars.iv.3, 1
  %lftr.wideiv.3 = trunc i64 %indvars.iv.next.3 to i32
  %exitcond112.3.not = icmp eq i32 %lftr.wideiv.3, %152
  br i1 %exitcond112.3.not, label %.loopexit98.3, label %.lr.ph102.3, !llvm.loop !28

.loopexit98.3:                                    ; preds = %.lr.ph102.3, %156, %.loopexit98.2
  %179 = load i64, ptr %9, align 8
  %.not110 = icmp eq i64 %179, 0
  br i1 %.not110, label %.loopexit, label %.lr.ph105

._crit_edge:                                      ; preds = %.lr.ph105
  %180 = icmp ne i64 %194, 0
  %.not = icmp ne ptr %5, null
  %or.cond = and i1 %.not, %180
  br i1 %or.cond, label %.lr.ph107, label %.loopexit

.lr.ph105:                                        ; preds = %.loopexit98.3, %.lr.ph105
  %.090104 = phi i64 [ %193, %.lr.ph105 ], [ 0, %.loopexit98.3 ]
  %181 = getelementptr inbounds float, ptr %8, i64 %.090104
  %182 = load float, ptr %181, align 4, !tbaa !18
  %183 = tail call noundef float @_ZSt4ceilf(float noundef %182)
  %184 = fptosi float %183 to i32
  %185 = getelementptr inbounds i32, ptr %2, i64 %.090104
  store i32 %184, ptr %185, align 4, !tbaa !29
  %186 = getelementptr inbounds float, ptr %11, i64 %.090104
  %187 = load float, ptr %186, align 4, !tbaa !18
  %188 = tail call noundef float @_ZSt4ceilf(float noundef %187)
  %189 = fptosi float %188 to i32
  %190 = getelementptr inbounds i32, ptr %3, i64 %.090104
  store i32 %189, ptr %190, align 4, !tbaa !29
  %191 = load i32, ptr %185, align 4, !tbaa !29
  %192 = tail call noundef i32 @_ZN4Simd3MaxIiEET_S1_S1_(i32 noundef %191, i32 noundef %189)
  store i32 %192, ptr %190, align 4, !tbaa !29
  %193 = add nuw i64 %.090104, 1
  %194 = load i64, ptr %9, align 8
  %195 = icmp ult i64 %193, %194
  br i1 %195, label %.lr.ph105, label %._crit_edge, !llvm.loop !31

.lr.ph107:                                        ; preds = %._crit_edge, %.lr.ph107
  %.0106 = phi i64 [ %205, %.lr.ph107 ], [ 0, %._crit_edge ]
  %196 = getelementptr inbounds i32, ptr %2, i64 %.0106
  %197 = load i32, ptr %196, align 4, !tbaa !29
  %198 = getelementptr inbounds i32, ptr %5, i64 %.0106
  %199 = load i32, ptr %198, align 4, !tbaa !29
  %200 = tail call noundef i32 @_ZN4Simd3MinIiEET_S1_S1_(i32 noundef %197, i32 noundef %199)
  store i32 %200, ptr %196, align 4, !tbaa !29
  %201 = getelementptr inbounds i32, ptr %3, i64 %.0106
  %202 = load i32, ptr %201, align 4, !tbaa !29
  %203 = load i32, ptr %198, align 4, !tbaa !29
  %204 = tail call noundef i32 @_ZN4Simd3MinIiEET_S1_S1_(i32 noundef %202, i32 noundef %203)
  store i32 %204, ptr %201, align 4, !tbaa !29
  %205 = add nuw i64 %.0106, 1
  %206 = load i64, ptr %9, align 8, !tbaa !16
  %207 = icmp ult i64 %205, %206
  br i1 %207, label %.lr.ph107, label %.loopexit, !llvm.loop !32

.loopexit:                                        ; preds = %.lr.ph107, %.loopexit98.3, %._crit_edge
  ret void
}

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

attributes #0 = { alwaysinline 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 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" }

!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, !15, i64 152}
!6 = !{!"_ZTSN4Simd10WarpAffineE", !7, i64 0, !8, i64 8, !13, i64 128, !12, i64 136, !12, i64 144, !14, i64 152}
!7 = !{!"_ZTSN4Simd9DeletableE"}
!8 = !{!"_ZTSN4Simd12WarpAffParamE", !9, i64 0, !10, i64 4, !10, i64 28, !10, i64 52, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112}
!9 = !{!"_ZTS19SimdWarpAffineFlags", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"bool", !10, i64 0}
!14 = !{!"_ZTSN4Simd5ArrayIhEE", !15, i64 0, !12, i64 8}
!15 = !{!"any pointer", !10, i64 0}
!16 = !{!8, !12, i64 88}
!17 = !{!8, !12, i64 80}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !10, i64 0}
!20 = distinct !{!20, !21, !22, !23}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!"llvm.loop.isvectorized", i32 1}
!23 = !{!"llvm.loop.unroll.runtime.disable"}
!24 = !{!25, !19, i64 4}
!25 = !{!"_ZTSN4Simd5PointIfEE", !19, i64 0, !19, i64 4}
!26 = distinct !{!26, !21, !23, !22}
!27 = !{!25, !19, i64 0}
!28 = distinct !{!28, !21}
!29 = !{!30, !30, i64 0}
!30 = !{!"int", !10, i64 0}
!31 = distinct !{!31, !21}
!32 = distinct !{!32, !21}


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