; 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(4) ptr @_ZN6basisu3vecILj4EfEixEj(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: 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu3vecILj4EfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #1 align 2

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

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

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

26:                                               ; preds = %21
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %85

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

28:                                               ; preds = %78, %27
  %29 = load i32, ptr %12, align 4, !tbaa !9
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call noundef i32 @_ZNK6basisu6imagef9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32) %30)
  %32 = icmp ult i32 %29, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %28
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %81

34:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK6basisu6imagefclEjj(ptr noundef nonnull align 8 dereferenceable(32) %35, i32 noundef %36, i32 noundef %37)
  store ptr %38, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = load i32, ptr %12, align 4, !tbaa !9
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK6basisu6imagefclEjj(ptr noundef nonnull align 8 dereferenceable(32) %39, i32 noundef %40, i32 noundef %41)
  store ptr %42, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  call void @_ZN6basisu3vecILj4EfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %15)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %69, %34
  %44 = load i32, ptr %16, align 4, !tbaa !9
  %45 = icmp ult i32 %44, 4
  br i1 %45, label %47, label %46

46:                                               ; preds = %43
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %72

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %48 = load ptr, ptr %14, align 8, !tbaa !5
  %49 = load i32, ptr %16, align 4, !tbaa !9
  %50 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %48, i32 noundef %49)
  store float %50, ptr %17, align 4, !tbaa !11
  %51 = load float, ptr %17, align 4, !tbaa !11
  %52 = fcmp oeq float %51, 0.000000e+00
  br i1 %52, label %53, label %56

53:                                               ; preds = %47
  %54 = load i32, ptr %16, align 4, !tbaa !9
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %15, i32 noundef %54)
  store float 0.000000e+00, ptr %55, align 4, !tbaa !11
  br label %68

56:                                               ; preds = %47
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = load i32, ptr %16, align 4, !tbaa !9
  %59 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %57, i32 noundef %58)
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %60, i32 noundef %61)
  %63 = fmul float %59, %62
  %64 = load float, ptr %17, align 4, !tbaa !11
  %65 = fdiv float %63, %64
  %66 = load i32, ptr %16, align 4, !tbaa !9
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %15, i32 noundef %66)
  store float %65, ptr %67, align 4, !tbaa !11
  br label %68

68:                                               ; preds = %56, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %16, align 4, !tbaa !9
  %71 = add i32 %70, 1
  store i32 %71, ptr %16, align 4, !tbaa !9
  br label %43, !llvm.loop !13

72:                                               ; preds = %46
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = load i32, ptr %10, align 4, !tbaa !9
  %76 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu6imagefclEjj(ptr noundef nonnull align 8 dereferenceable(32) %73, i32 noundef %74, i32 noundef %75)
  %77 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu3vecILj4EfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %76, ptr noundef nonnull align 4 dereferenceable(16) %15)
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %78

78:                                               ; preds = %72
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = add i32 %79, 1
  store i32 %80, ptr %12, align 4, !tbaa !9
  br label %28, !llvm.loop !15

81:                                               ; preds = %33
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %10, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %10, align 4, !tbaa !9
  br label %21, !llvm.loop !16

85:                                               ; preds = %26
  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 = { 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 }

!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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; 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(4) ptr @_ZN6basisu3vecILj4EfEixEj(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: 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu3vecILj4EfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #1 align 2

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

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

.preheader:                                       ; preds = %4, %._crit_edge
  %.033 = phi i32 [ %11, %._crit_edge ], [ 0, %4 ]
  %10 = call noundef i32 @_ZNK6basisu6imagef9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge34:                                    ; preds = %._crit_edge, %4
  ret void

._crit_edge:                                      ; preds = %50, %.preheader
  %11 = add nuw nsw i32 %.033, 1
  %12 = call noundef i32 @_ZNK6basisu6imagef10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %13 = icmp slt i32 %11, %12
  br i1 %13, label %.preheader, label %._crit_edge34, !llvm.loop !5

.lr.ph:                                           ; preds = %.preheader, %50
  %.02932 = phi i32 [ %54, %50 ], [ 0, %.preheader ]
  %14 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK6basisu6imagefclEjj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %.02932, i32 noundef %.033)
  %15 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK6basisu6imagefclEjj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %.02932, i32 noundef %.033)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  call void @_ZN6basisu3vecILj4EfEC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6)
  %16 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %15, i32 noundef 0)
  %17 = fcmp oeq float %16, 0.000000e+00
  br i1 %17, label %23, label %18

18:                                               ; preds = %.lr.ph
  %19 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %14, i32 noundef 0)
  %20 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef 0)
  %21 = fmul float %19, %20
  %22 = fdiv float %21, %16
  br label %23

23:                                               ; preds = %.lr.ph, %18
  %.sink = phi float [ %22, %18 ], [ 0.000000e+00, %.lr.ph ]
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %6, i32 noundef 0)
  store float %.sink, ptr %24, align 4, !tbaa !7
  %25 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %15, i32 noundef 1)
  %26 = fcmp oeq float %25, 0.000000e+00
  br i1 %26, label %32, label %27

27:                                               ; preds = %23
  %28 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %14, i32 noundef 1)
  %29 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef 1)
  %30 = fmul float %28, %29
  %31 = fdiv float %30, %25
  br label %32

32:                                               ; preds = %23, %27
  %.sink36 = phi float [ %31, %27 ], [ 0.000000e+00, %23 ]
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %6, i32 noundef 1)
  store float %.sink36, ptr %33, align 4, !tbaa !7
  %34 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %15, i32 noundef 2)
  %35 = fcmp oeq float %34, 0.000000e+00
  br i1 %35, label %41, label %36

36:                                               ; preds = %32
  %37 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %14, i32 noundef 2)
  %38 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef 2)
  %39 = fmul float %37, %38
  %40 = fdiv float %39, %34
  br label %41

41:                                               ; preds = %32, %36
  %.sink38 = phi float [ %40, %36 ], [ 0.000000e+00, %32 ]
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %6, i32 noundef 2)
  store float %.sink38, ptr %42, align 4, !tbaa !7
  %43 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %15, i32 noundef 3)
  %44 = fcmp oeq float %43, 0.000000e+00
  br i1 %44, label %50, label %45

45:                                               ; preds = %41
  %46 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %14, i32 noundef 3)
  %47 = call noundef float @_ZNK6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef 3)
  %48 = fmul float %46, %47
  %49 = fdiv float %48, %43
  br label %50

50:                                               ; preds = %41, %45
  %.sink40 = phi float [ %49, %45 ], [ 0.000000e+00, %41 ]
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6basisu3vecILj4EfEixEj(ptr noundef nonnull align 4 dereferenceable(16) %6, i32 noundef 3)
  store float %.sink40, ptr %51, align 4, !tbaa !7
  %52 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu6imagefclEjj(ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef %.02932, i32 noundef %.033)
  %53 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN6basisu3vecILj4EfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %52, ptr noundef nonnull align 4 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  %54 = add nuw i32 %.02932, 1
  %55 = call noundef i32 @_ZNK6basisu6imagef9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %56 = icmp ult i32 %54, %55
  br i1 %56, label %.lr.ph, label %._crit_edge, !llvm.loop !11
}

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 = { 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 = !{!8, !8, i64 0}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}


; Effective O3 passes: GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass