; 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::vec" = type { [4 x 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu6imagef9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu6imagef10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32)) #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 #2 align 2

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

; 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) #1 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) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6basisu9pow_imageERKNS_6imagefERS0_RKNS_3vecILj4EfEE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 4 dereferenceable(16) %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.basisu::vec", align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  call void @_ZN6basisu3vecILj4EfEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %7, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %14 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN6basisu6imagef6resizeERKS0_jRKNS_3vecILj4EfEE(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %13, i32 noundef -1, ptr noundef nonnull align 4 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %105, %3
  %16 = load i32, ptr %8, align 4, !tbaa !9
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = call noundef i32 @_ZNK6basisu6imagef10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
  %19 = icmp slt i32 %16, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %15
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %108

21:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %101, %21
  %23 = load i32, ptr %10, align 4, !tbaa !9
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = call noundef i32 @_ZNK6basisu6imagef9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32) %24)
  %26 = icmp ult i32 %23, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %22
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %104

28:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = load i32, ptr %10, align 4, !tbaa !9
  %31 = load i32, ptr %8, align 4, !tbaa !9
  %32 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK6basisu6imagefclEjj(ptr noundef nonnull align 8 dereferenceable(32) %29, i32 noundef %30, i32 noundef %31)
  store ptr %32, ptr %11, align 8, !tbaa !5
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %33, i32 noundef 0)
  %35 = fcmp oeq float %34, 2.000000e+00
  br i1 %35, label %36, label %74

36:                                               ; preds = %28
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %37, i32 noundef 1)
  %39 = fcmp oeq float %38, 2.000000e+00
  br i1 %39, label %40, label %74

40:                                               ; preds = %36
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %41, i32 noundef 2)
  %43 = fcmp oeq float %42, 2.000000e+00
  br i1 %43, label %44, label %74

44:                                               ; preds = %40
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %45, i32 noundef 3)
  %47 = fcmp oeq float %46, 2.000000e+00
  br i1 %47, label %48, label %74

48:                                               ; preds = %44
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = load i32, ptr %10, align 4, !tbaa !9
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu6imagefclEjj(ptr noundef nonnull align 8 dereferenceable(32) %49, i32 noundef %50, i32 noundef %51)
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %53, i32 noundef 0)
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %55, i32 noundef 0)
  %57 = fmul float %54, %56
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %58, i32 noundef 1)
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %60, i32 noundef 1)
  %62 = fmul float %59, %61
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %63, i32 noundef 2)
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %65, i32 noundef 2)
  %67 = fmul float %64, %66
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %68, i32 noundef 3)
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %70, i32 noundef 3)
  %72 = fmul float %69, %71
  %73 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu3vecILj4EfE3setEffff(ptr noundef nonnull align 4 dereferenceable(16) %52, float noundef %57, float noundef %62, float noundef %67, float noundef %72)
  br label %100

74:                                               ; preds = %44, %40, %36, %28
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = load i32, ptr %8, align 4, !tbaa !9
  %78 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu6imagefclEjj(ptr noundef nonnull align 8 dereferenceable(32) %75, i32 noundef %76, i32 noundef %77)
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %79, i32 noundef 0)
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %81, i32 noundef 0)
  %83 = call float @powf(float noundef %80, float noundef %82) #5
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %84, i32 noundef 1)
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %86, i32 noundef 1)
  %88 = call float @powf(float noundef %85, float noundef %87) #5
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %89, i32 noundef 2)
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %91, i32 noundef 2)
  %93 = call float @powf(float noundef %90, float noundef %92) #5
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %94, i32 noundef 3)
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %96, i32 noundef 3)
  %98 = call float @powf(float noundef %95, float noundef %97) #5
  %99 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu3vecILj4EfE3setEffff(ptr noundef nonnull align 4 dereferenceable(16) %78, float noundef %83, float noundef %88, float noundef %93, float noundef %98)
  br label %100

100:                                              ; preds = %74, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %101

101:                                              ; preds = %100
  %102 = load i32, ptr %10, align 4, !tbaa !9
  %103 = add i32 %102, 1
  store i32 %103, ptr %10, align 4, !tbaa !9
  br label %22, !llvm.loop !11

104:                                              ; preds = %27
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %8, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %8, align 4, !tbaa !9
  br label %15, !llvm.loop !13

108:                                              ; preds = %20
  ret void
}

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

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

; Function Attrs: nounwind
declare float @powf(float noundef, float noundef) #4

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 = { 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 #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 = { 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 #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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; 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::vec" = type { [4 x float] }

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu6imagef9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 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 #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 #2 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 #1 align 2

; 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 #1 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 #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6basisu9pow_imageERKNS_6imagefERS0_RKNS_3vecILj4EfEE(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 4 dereferenceable(16) %2) local_unnamed_addr #3 {
  %4 = alloca %"class.basisu::vec", align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZN6basisu3vecILj4EfEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %4, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %5 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN6basisu6imagef6resizeERKS0_jRKNS_3vecILj4EfEE(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef -1, ptr noundef nonnull align 4 dereferenceable(16) %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  %6 = call noundef i32 @_ZNK6basisu6imagef10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.preheader, label %._crit_edge40

.preheader:                                       ; preds = %3, %._crit_edge
  %.039 = phi i32 [ %9, %._crit_edge ], [ 0, %3 ]
  %8 = call noundef i32 @_ZNK6basisu6imagef9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge40:                                    ; preds = %._crit_edge, %3
  ret void

._crit_edge:                                      ; preds = %54, %.preheader
  %9 = add nuw nsw i32 %.039, 1
  %10 = call noundef i32 @_ZNK6basisu6imagef10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %11 = icmp slt i32 %9, %10
  br i1 %11, label %.preheader, label %._crit_edge40, !llvm.loop !5

.lr.ph:                                           ; preds = %.preheader, %54
  %.03637 = phi i32 [ %55, %54 ], [ 0, %.preheader ]
  %12 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK6basisu6imagefclEjj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %.03637, i32 noundef %.039)
  %13 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef 0)
  %14 = fcmp oeq float %13, 2.000000e+00
  br i1 %14, label %15, label %39

15:                                               ; preds = %.lr.ph
  %16 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef 1)
  %17 = fcmp oeq float %16, 2.000000e+00
  br i1 %17, label %18, label %39

18:                                               ; preds = %15
  %19 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef 2)
  %20 = fcmp oeq float %19, 2.000000e+00
  br i1 %20, label %21, label %39

21:                                               ; preds = %18
  %22 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef 3)
  %23 = fcmp oeq float %22, 2.000000e+00
  br i1 %23, label %24, label %39

24:                                               ; preds = %21
  %25 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu6imagefclEjj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %.03637, i32 noundef %.039)
  %26 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %12, i32 noundef 0)
  %27 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %12, i32 noundef 0)
  %28 = fmul float %26, %27
  %29 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %12, i32 noundef 1)
  %30 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %12, i32 noundef 1)
  %31 = fmul float %29, %30
  %32 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %12, i32 noundef 2)
  %33 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %12, i32 noundef 2)
  %34 = fmul float %32, %33
  %35 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %12, i32 noundef 3)
  %36 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %12, i32 noundef 3)
  %37 = fmul float %35, %36
  %38 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu3vecILj4EfE3setEffff(ptr noundef nonnull align 4 dereferenceable(16) %25, float noundef %28, float noundef %31, float noundef %34, float noundef %37)
  br label %54

39:                                               ; preds = %21, %18, %15, %.lr.ph
  %40 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu6imagefclEjj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %.03637, i32 noundef %.039)
  %41 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %12, i32 noundef 0)
  %42 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef 0)
  %43 = call float @powf(float noundef %41, float noundef %42) #5
  %44 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %12, i32 noundef 1)
  %45 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef 1)
  %46 = call float @powf(float noundef %44, float noundef %45) #5
  %47 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %12, i32 noundef 2)
  %48 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef 2)
  %49 = call float @powf(float noundef %47, float noundef %48) #5
  %50 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %12, i32 noundef 3)
  %51 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef 3)
  %52 = call float @powf(float noundef %50, float noundef %51) #5
  %53 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu3vecILj4EfE3setEffff(ptr noundef nonnull align 4 dereferenceable(16) %40, float noundef %43, float noundef %46, float noundef %49, float noundef %52)
  br label %54

54:                                               ; preds = %39, %24
  %55 = add nuw i32 %.03637, 1
  %56 = call noundef i32 @_ZNK6basisu6imagef9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %57 = icmp ult i32 %55, %56
  br i1 %57, label %.lr.ph, label %._crit_edge, !llvm.loop !7
}

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @powf(float noundef, float noundef) local_unnamed_addr #4

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 = { 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 #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 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass