; LLVM IR from wiktorowski211/deeds-registration :: deeds/libs/deedsBCV0.ll (Z11warpAffineSPsS_PfS0_S0_S0_)

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

@image_m = external dso_local global i32, align 4
@image_n = external dso_local global i32, align 4
@image_o = external dso_local global i32, align 4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11warpAffineSPsS_PfS0_S0_S0_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #4 {
  %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 i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %33 = load i32, ptr @image_m, align 4, !tbaa !9
  store i32 %33, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %34 = load i32, ptr @image_n, align 4, !tbaa !9
  store i32 %34, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %35 = load i32, ptr @image_o, align 4, !tbaa !9
  store i32 %35, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %36 = load i32, ptr %13, align 4, !tbaa !9
  %37 = load i32, ptr %14, align 4, !tbaa !9
  %38 = mul nsw i32 %36, %37
  %39 = load i32, ptr %15, align 4, !tbaa !9
  %40 = mul nsw i32 %38, %39
  store i32 %40, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %231, %6
  %42 = load i32, ptr %17, align 4, !tbaa !9
  %43 = load i32, ptr %15, align 4, !tbaa !9
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %234

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %227, %46
  %48 = load i32, ptr %19, align 4, !tbaa !9
  %49 = load i32, ptr %14, align 4, !tbaa !9
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %230

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %223, %52
  %54 = load i32, ptr %20, align 4, !tbaa !9
  %55 = load i32, ptr %13, align 4, !tbaa !9
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %53
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %226

58:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %59 = load i32, ptr %20, align 4, !tbaa !9
  %60 = sitofp i32 %59 to float
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds float, ptr %61, i64 0
  %63 = load float, ptr %62, align 4, !tbaa !11
  %64 = load i32, ptr %19, align 4, !tbaa !9
  %65 = sitofp i32 %64 to float
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = getelementptr inbounds float, ptr %66, i64 1
  %68 = load float, ptr %67, align 4, !tbaa !11
  %69 = fmul float %65, %68
  %70 = call float @llvm.fmuladd.f32(float %60, float %63, float %69)
  %71 = load i32, ptr %17, align 4, !tbaa !9
  %72 = sitofp i32 %71 to float
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds float, ptr %73, i64 2
  %75 = load float, ptr %74, align 4, !tbaa !11
  %76 = call float @llvm.fmuladd.f32(float %72, float %75, float %70)
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds float, ptr %77, i64 3
  %79 = load float, ptr %78, align 4, !tbaa !11
  %80 = fadd float %76, %79
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = load i32, ptr %20, align 4, !tbaa !9
  %83 = load i32, ptr %19, align 4, !tbaa !9
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = mul nsw i32 %83, %84
  %86 = add nsw i32 %82, %85
  %87 = load i32, ptr %17, align 4, !tbaa !9
  %88 = load i32, ptr %13, align 4, !tbaa !9
  %89 = mul nsw i32 %87, %88
  %90 = load i32, ptr %14, align 4, !tbaa !9
  %91 = mul nsw i32 %89, %90
  %92 = add nsw i32 %86, %91
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds float, ptr %81, i64 %93
  %95 = load float, ptr %94, align 4, !tbaa !11
  %96 = fadd float %80, %95
  store float %96, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %97 = load i32, ptr %20, align 4, !tbaa !9
  %98 = sitofp i32 %97 to float
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds float, ptr %99, i64 4
  %101 = load float, ptr %100, align 4, !tbaa !11
  %102 = load i32, ptr %19, align 4, !tbaa !9
  %103 = sitofp i32 %102 to float
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds float, ptr %104, i64 5
  %106 = load float, ptr %105, align 4, !tbaa !11
  %107 = fmul float %103, %106
  %108 = call float @llvm.fmuladd.f32(float %98, float %101, float %107)
  %109 = load i32, ptr %17, align 4, !tbaa !9
  %110 = sitofp i32 %109 to float
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = getelementptr inbounds float, ptr %111, i64 6
  %113 = load float, ptr %112, align 4, !tbaa !11
  %114 = call float @llvm.fmuladd.f32(float %110, float %113, float %108)
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = getelementptr inbounds float, ptr %115, i64 7
  %117 = load float, ptr %116, align 4, !tbaa !11
  %118 = fadd float %114, %117
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = load i32, ptr %20, align 4, !tbaa !9
  %121 = load i32, ptr %19, align 4, !tbaa !9
  %122 = load i32, ptr %13, align 4, !tbaa !9
  %123 = mul nsw i32 %121, %122
  %124 = add nsw i32 %120, %123
  %125 = load i32, ptr %17, align 4, !tbaa !9
  %126 = load i32, ptr %13, align 4, !tbaa !9
  %127 = mul nsw i32 %125, %126
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = mul nsw i32 %127, %128
  %130 = add nsw i32 %124, %129
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds float, ptr %119, i64 %131
  %133 = load float, ptr %132, align 4, !tbaa !11
  %134 = fadd float %118, %133
  store float %134, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %135 = load i32, ptr %20, align 4, !tbaa !9
  %136 = sitofp i32 %135 to float
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = getelementptr inbounds float, ptr %137, i64 8
  %139 = load float, ptr %138, align 4, !tbaa !11
  %140 = load i32, ptr %19, align 4, !tbaa !9
  %141 = sitofp i32 %140 to float
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = getelementptr inbounds float, ptr %142, i64 9
  %144 = load float, ptr %143, align 4, !tbaa !11
  %145 = fmul float %141, %144
  %146 = call float @llvm.fmuladd.f32(float %136, float %139, float %145)
  %147 = load i32, ptr %17, align 4, !tbaa !9
  %148 = sitofp i32 %147 to float
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = getelementptr inbounds float, ptr %149, i64 10
  %151 = load float, ptr %150, align 4, !tbaa !11
  %152 = call float @llvm.fmuladd.f32(float %148, float %151, float %146)
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  %154 = getelementptr inbounds float, ptr %153, i64 11
  %155 = load float, ptr %154, align 4, !tbaa !11
  %156 = fadd float %152, %155
  %157 = load ptr, ptr %12, align 8, !tbaa !5
  %158 = load i32, ptr %20, align 4, !tbaa !9
  %159 = load i32, ptr %19, align 4, !tbaa !9
  %160 = load i32, ptr %13, align 4, !tbaa !9
  %161 = mul nsw i32 %159, %160
  %162 = add nsw i32 %158, %161
  %163 = load i32, ptr %17, align 4, !tbaa !9
  %164 = load i32, ptr %13, align 4, !tbaa !9
  %165 = mul nsw i32 %163, %164
  %166 = load i32, ptr %14, align 4, !tbaa !9
  %167 = mul nsw i32 %165, %166
  %168 = add nsw i32 %162, %167
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds float, ptr %157, i64 %169
  %171 = load float, ptr %170, align 4, !tbaa !11
  %172 = fadd float %156, %171
  store float %172, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %173 = load float, ptr %22, align 4, !tbaa !11
  %174 = call noundef float @_ZSt5roundf(float noundef %173)
  %175 = fptosi float %174 to i32
  store i32 %175, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %176 = load float, ptr %21, align 4, !tbaa !11
  %177 = call noundef float @_ZSt5roundf(float noundef %176)
  %178 = fptosi float %177 to i32
  store i32 %178, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %179 = load float, ptr %23, align 4, !tbaa !11
  %180 = call noundef float @_ZSt5roundf(float noundef %179)
  %181 = fptosi float %180 to i32
  store i32 %181, ptr %26, align 4, !tbaa !9
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 0, ptr %27, align 4, !tbaa !9
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %27)
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %184 = load i32, ptr %13, align 4, !tbaa !9
  %185 = sub nsw i32 %184, 1
  store i32 %185, ptr %28, align 4, !tbaa !9
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %183, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %187 = load i32, ptr %186, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  store i32 0, ptr %29, align 4, !tbaa !9
  %188 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %29)
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %189 = load i32, ptr %14, align 4, !tbaa !9
  %190 = sub nsw i32 %189, 1
  store i32 %190, ptr %30, align 4, !tbaa !9
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %188, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %192 = load i32, ptr %191, align 4, !tbaa !9
  %193 = load i32, ptr %13, align 4, !tbaa !9
  %194 = mul nsw i32 %192, %193
  %195 = add nsw i32 %187, %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  store i32 0, ptr %31, align 4, !tbaa !9
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %31)
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  %197 = load i32, ptr %15, align 4, !tbaa !9
  %198 = sub nsw i32 %197, 1
  store i32 %198, ptr %32, align 4, !tbaa !9
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %196, ptr noundef nonnull align 4 dereferenceable(4) %32)
  %200 = load i32, ptr %199, align 4, !tbaa !9
  %201 = load i32, ptr %13, align 4, !tbaa !9
  %202 = mul nsw i32 %200, %201
  %203 = load i32, ptr %14, align 4, !tbaa !9
  %204 = mul nsw i32 %202, %203
  %205 = add nsw i32 %195, %204
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds i16, ptr %182, i64 %206
  %208 = load i16, ptr %207, align 2, !tbaa !13
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = load i32, ptr %20, align 4, !tbaa !9
  %211 = load i32, ptr %19, align 4, !tbaa !9
  %212 = load i32, ptr %13, align 4, !tbaa !9
  %213 = mul nsw i32 %211, %212
  %214 = add nsw i32 %210, %213
  %215 = load i32, ptr %17, align 4, !tbaa !9
  %216 = load i32, ptr %13, align 4, !tbaa !9
  %217 = mul nsw i32 %215, %216
  %218 = load i32, ptr %14, align 4, !tbaa !9
  %219 = mul nsw i32 %217, %218
  %220 = add nsw i32 %214, %219
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds i16, ptr %209, i64 %221
  store i16 %208, ptr %222, align 2, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  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 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %223

223:                                              ; preds = %58
  %224 = load i32, ptr %20, align 4, !tbaa !9
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %20, align 4, !tbaa !9
  br label %53, !llvm.loop !15

226:                                              ; preds = %57
  br label %227

227:                                              ; preds = %226
  %228 = load i32, ptr %19, align 4, !tbaa !9
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %19, align 4, !tbaa !9
  br label %47, !llvm.loop !17

230:                                              ; preds = %51
  br label %231

231:                                              ; preds = %230
  %232 = load i32, ptr %17, align 4, !tbaa !9
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %17, align 4, !tbaa !9
  br label %41, !llvm.loop !18

234:                                              ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  ret void
}

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


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

@image_m = external dso_local local_unnamed_addr global i32, align 4
@image_n = external dso_local local_unnamed_addr global i32, align 4
@image_o = external dso_local local_unnamed_addr global i32, align 4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z11warpAffineSPsS_PfS0_S0_S0_(ptr nocapture noundef writeonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, ptr nocapture noundef readonly %5) local_unnamed_addr #3 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = load i32, ptr @image_m, align 4, !tbaa !5
  %17 = load i32, ptr @image_n, align 4, !tbaa !5
  %18 = load i32, ptr @image_o, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.preheader77.lr.ph, label %._crit_edge

.preheader77.lr.ph:                               ; preds = %6
  %20 = icmp sgt i32 %17, 0
  %21 = getelementptr inbounds i8, ptr %2, i64 4
  %22 = getelementptr inbounds i8, ptr %2, i64 8
  %23 = getelementptr inbounds i8, ptr %2, i64 12
  %24 = getelementptr inbounds i8, ptr %2, i64 16
  %25 = getelementptr inbounds i8, ptr %2, i64 20
  %26 = getelementptr inbounds i8, ptr %2, i64 24
  %27 = getelementptr inbounds i8, ptr %2, i64 28
  %28 = getelementptr inbounds i8, ptr %2, i64 32
  %29 = getelementptr inbounds i8, ptr %2, i64 36
  %30 = getelementptr inbounds i8, ptr %2, i64 40
  %31 = getelementptr inbounds i8, ptr %2, i64 44
  %32 = add nsw i32 %16, -1
  %33 = add nsw i32 %17, -1
  %34 = add nsw i32 %18, -1
  %35 = icmp sgt i32 %16, 0
  %or.cond = select i1 %20, i1 %35, i1 false
  br i1 %or.cond, label %.preheader77.us.us.preheader, label %._crit_edge

.preheader77.us.us.preheader:                     ; preds = %.preheader77.lr.ph
  %wide.trip.count = zext nneg i32 %16 to i64
  br label %.preheader77.us.us

.preheader77.us.us:                               ; preds = %.preheader77.us.us.preheader, %._crit_edge80.split.us.us.us
  %.081.us.us = phi i32 [ %99, %._crit_edge80.split.us.us.us ], [ 0, %.preheader77.us.us.preheader ]
  %36 = uitofp nneg i32 %.081.us.us to float
  %37 = mul i32 %.081.us.us, %17
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %._crit_edge.us.us.us, %.preheader77.us.us
  %.07079.us.us.us = phi i32 [ 0, %.preheader77.us.us ], [ %98, %._crit_edge.us.us.us ]
  %38 = uitofp nneg i32 %.07079.us.us.us to float
  %reass.add.us.us.us = add i32 %.07079.us.us.us, %37
  %reass.mul.us.us.us = mul i32 %reass.add.us.us.us, %16
  br label %39

39:                                               ; preds = %39, %.preheader.us.us.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %39 ], [ 0, %.preheader.us.us.us ]
  %40 = trunc nuw nsw i64 %indvars.iv to i32
  %41 = uitofp nneg i32 %40 to float
  %42 = load float, ptr %2, align 4, !tbaa !9
  %43 = load float, ptr %21, align 4, !tbaa !9
  %44 = fmul float %43, %38
  %45 = call float @llvm.fmuladd.f32(float %41, float %42, float %44)
  %46 = load float, ptr %22, align 4, !tbaa !9
  %47 = call float @llvm.fmuladd.f32(float %36, float %46, float %45)
  %48 = load float, ptr %23, align 4, !tbaa !9
  %49 = fadd float %48, %47
  %50 = add i32 %reass.mul.us.us.us, %40
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds float, ptr %4, i64 %51
  %53 = load float, ptr %52, align 4, !tbaa !9
  %54 = fadd float %53, %49
  %55 = load float, ptr %24, align 4, !tbaa !9
  %56 = load float, ptr %25, align 4, !tbaa !9
  %57 = fmul float %56, %38
  %58 = call float @llvm.fmuladd.f32(float %41, float %55, float %57)
  %59 = load float, ptr %26, align 4, !tbaa !9
  %60 = call float @llvm.fmuladd.f32(float %36, float %59, float %58)
  %61 = load float, ptr %27, align 4, !tbaa !9
  %62 = fadd float %61, %60
  %63 = getelementptr inbounds float, ptr %3, i64 %51
  %64 = load float, ptr %63, align 4, !tbaa !9
  %65 = fadd float %64, %62
  %66 = load float, ptr %28, align 4, !tbaa !9
  %67 = load float, ptr %29, align 4, !tbaa !9
  %68 = fmul float %67, %38
  %69 = call float @llvm.fmuladd.f32(float %41, float %66, float %68)
  %70 = load float, ptr %30, align 4, !tbaa !9
  %71 = call float @llvm.fmuladd.f32(float %36, float %70, float %69)
  %72 = load float, ptr %31, align 4, !tbaa !9
  %73 = fadd float %72, %71
  %74 = getelementptr inbounds float, ptr %5, i64 %51
  %75 = load float, ptr %74, align 4, !tbaa !9
  %76 = fadd float %75, %73
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %77 = call noundef float @_ZSt5roundf(float noundef %65)
  %78 = fptosi float %77 to i32
  store i32 %78, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  %79 = call noundef float @_ZSt5roundf(float noundef %54)
  %80 = fptosi float %79 to i32
  store i32 %80, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  %81 = call noundef float @_ZSt5roundf(float noundef %76)
  %82 = fptosi float %81 to i32
  store i32 %82, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  store i32 %32, ptr %11, align 4, !tbaa !5
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %83, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %85 = load i32, ptr %84, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  store i32 0, ptr %12, align 4, !tbaa !5
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  store i32 %33, ptr %13, align 4, !tbaa !5
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %86, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %88 = load i32, ptr %87, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  store i32 %34, ptr %15, align 4, !tbaa !5
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %89, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = mul i32 %91, %17
  %reass.add75.us.us.us = add i32 %92, %88
  %reass.mul76.us.us.us = mul i32 %reass.add75.us.us.us, %16
  %93 = add i32 %reass.mul76.us.us.us, %85
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i16, ptr %1, i64 %94
  %96 = load i16, ptr %95, align 2, !tbaa !11
  %97 = getelementptr inbounds i16, ptr %0, i64 %51
  store i16 %96, ptr %97, align 2, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  %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.us.us.us, label %39, !llvm.loop !13

._crit_edge.us.us.us:                             ; preds = %39
  %98 = add nuw nsw i32 %.07079.us.us.us, 1
  %exitcond89.not = icmp eq i32 %98, %17
  br i1 %exitcond89.not, label %._crit_edge80.split.us.us.us, label %.preheader.us.us.us, !llvm.loop !15

._crit_edge80.split.us.us.us:                     ; preds = %._crit_edge.us.us.us
  %99 = add nuw nsw i32 %.081.us.us, 1
  %exitcond90.not = icmp eq i32 %99, %18
  br i1 %exitcond90.not, label %._crit_edge, label %.preheader77.us.us, !llvm.loop !16

._crit_edge:                                      ; preds = %._crit_edge80.split.us.us.us, %.preheader77.lr.ph, %6
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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