; LLVM IR from yangfengzzz/DigitalVox4 :: editor/imgui_canvas.ll (ZNK7ImGuiEx6Canvas14CalcCenterViewERK6ImRect)

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

%"struct.ImGuiEx::CanvasView" = type { %struct.ImVec2, float, float }
%struct.ImVec2 = type { float, float }
%"struct.ImGuiEx::Canvas" = type <{ i8, [3 x i8], %struct.ImVec2, %struct.ImVec2, %struct.ImRect, [4 x i8], ptr, i32, i32, i32, %"struct.ImGuiEx::CanvasView", %struct.ImRect, %struct.ImVec2, i32, float, %struct.ImVec2, %struct.ImVec2, [5 x %struct.ImVec2], %struct.ImVec2, [4 x i8] }>
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK6ImRect7GetSizeEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8), float noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, <2 x float> } @_ZNK7ImGuiEx6Canvas14CalcCenterViewERK6ImRect(ptr noundef nonnull align 8 dereferenceable(172) %0, ptr noundef nonnull align 4 dereferenceable(16) %1) #2 align 2 {
  %3 = alloca %"struct.ImGuiEx::CanvasView", align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.ImVec2, align 4
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca %struct.ImVec2, align 4
  %11 = alloca float, align 4
  %12 = alloca %struct.ImVec2, align 4
  %13 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = call <2 x float> @_ZNK6ImRect7GetSizeEv(ptr noundef nonnull align 4 dereferenceable(16) %15)
  store <2 x float> %16, ptr %6, align 4
  %17 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 0
  %18 = load float, ptr %17, align 4, !tbaa !9
  %19 = fcmp ole float %18, 0.000000e+00
  br i1 %19, label %24, label %20

20:                                               ; preds = %2
  %21 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 1
  %22 = load float, ptr %21, align 4, !tbaa !12
  %23 = fcmp ole float %22, 0.000000e+00
  br i1 %23, label %24, label %26

24:                                               ; preds = %20, %2
  %25 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK7ImGuiEx6Canvas4ViewEv(ptr noundef nonnull align 8 dereferenceable(172) %14)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %25, i64 16, i1 false), !tbaa.struct !13
  store i32 1, ptr %7, align 4
  br label %119

26:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %27 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %14, i32 0, i32 3
  %28 = getelementptr inbounds %struct.ImVec2, ptr %27, i32 0, i32 1
  %29 = load float, ptr %28, align 4, !tbaa !15
  %30 = fcmp ogt float %29, 0.000000e+00
  br i1 %30, label %31, label %39

31:                                               ; preds = %26
  %32 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %14, i32 0, i32 3
  %33 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 0
  %34 = load float, ptr %33, align 4, !tbaa !21
  %35 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %14, i32 0, i32 3
  %36 = getelementptr inbounds %struct.ImVec2, ptr %35, i32 0, i32 1
  %37 = load float, ptr %36, align 4, !tbaa !15
  %38 = fdiv float %34, %37
  br label %40

39:                                               ; preds = %26
  br label %40

40:                                               ; preds = %39, %31
  %41 = phi float [ %38, %31 ], [ 0.000000e+00, %39 ]
  store float %41, ptr %8, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %42 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 1
  %43 = load float, ptr %42, align 4, !tbaa !12
  %44 = fcmp ogt float %43, 0.000000e+00
  br i1 %44, label %45, label %51

45:                                               ; preds = %40
  %46 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 0
  %47 = load float, ptr %46, align 4, !tbaa !9
  %48 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 1
  %49 = load float, ptr %48, align 4, !tbaa !12
  %50 = fdiv float %47, %49
  br label %52

51:                                               ; preds = %40
  br label %52

52:                                               ; preds = %51, %45
  %53 = phi float [ %50, %45 ], [ 0.000000e+00, %51 ]
  store float %53, ptr %9, align 4, !tbaa !14
  %54 = load float, ptr %8, align 4, !tbaa !14
  %55 = fcmp ole float %54, 0.000000e+00
  br i1 %55, label %59, label %56

56:                                               ; preds = %52
  %57 = load float, ptr %9, align 4, !tbaa !14
  %58 = fcmp ole float %57, 0.000000e+00
  br i1 %58, label %59, label %61

59:                                               ; preds = %56, %52
  %60 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK7ImGuiEx6Canvas4ViewEv(ptr noundef nonnull align 8 dereferenceable(172) %14)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %60, i64 16, i1 false), !tbaa.struct !13
  store i32 1, ptr %7, align 4
  br label %118

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %62 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %14, i32 0, i32 10
  %63 = getelementptr inbounds %"struct.ImGuiEx::CanvasView", ptr %62, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %63, i64 8, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %64 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %14, i32 0, i32 10
  %65 = getelementptr inbounds %"struct.ImGuiEx::CanvasView", ptr %64, i32 0, i32 1
  %66 = load float, ptr %65, align 4, !tbaa !23
  store float %66, ptr %11, align 4, !tbaa !14
  %67 = load float, ptr %9, align 4, !tbaa !14
  %68 = load float, ptr %8, align 4, !tbaa !14
  %69 = fcmp ogt float %67, %68
  br i1 %69, label %70, label %93

70:                                               ; preds = %61
  %71 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %14, i32 0, i32 3
  %72 = getelementptr inbounds %struct.ImVec2, ptr %71, i32 0, i32 0
  %73 = load float, ptr %72, align 4, !tbaa !21
  %74 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 0
  %75 = load float, ptr %74, align 4, !tbaa !9
  %76 = fdiv float %73, %75
  store float %76, ptr %11, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.ImRect, ptr %77, i32 0, i32 0
  %79 = load float, ptr %11, align 4, !tbaa !14
  %80 = fneg float %79
  %81 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %78, float noundef %80)
  store <2 x float> %81, ptr %12, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %82 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %14, i32 0, i32 3
  %83 = getelementptr inbounds %struct.ImVec2, ptr %82, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !15
  %85 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 1
  %86 = load float, ptr %85, align 4, !tbaa !12
  %87 = load float, ptr %11, align 4, !tbaa !14
  %88 = fneg float %86
  %89 = call float @llvm.fmuladd.f32(float %88, float %87, float %84)
  %90 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 1
  %91 = load float, ptr %90, align 4, !tbaa !12
  %92 = call float @llvm.fmuladd.f32(float %89, float 5.000000e-01, float %91)
  store float %92, ptr %90, align 4, !tbaa !12
  br label %116

93:                                               ; preds = %61
  %94 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %14, i32 0, i32 3
  %95 = getelementptr inbounds %struct.ImVec2, ptr %94, i32 0, i32 1
  %96 = load float, ptr %95, align 4, !tbaa !15
  %97 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 1
  %98 = load float, ptr %97, align 4, !tbaa !12
  %99 = fdiv float %96, %98
  store float %99, ptr %11, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.ImRect, ptr %100, i32 0, i32 0
  %102 = load float, ptr %11, align 4, !tbaa !14
  %103 = fneg float %102
  %104 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %101, float noundef %103)
  store <2 x float> %104, ptr %13, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %105 = getelementptr inbounds %"struct.ImGuiEx::Canvas", ptr %14, i32 0, i32 3
  %106 = getelementptr inbounds %struct.ImVec2, ptr %105, i32 0, i32 0
  %107 = load float, ptr %106, align 4, !tbaa !21
  %108 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 0
  %109 = load float, ptr %108, align 4, !tbaa !9
  %110 = load float, ptr %11, align 4, !tbaa !14
  %111 = fneg float %109
  %112 = call float @llvm.fmuladd.f32(float %111, float %110, float %107)
  %113 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 0
  %114 = load float, ptr %113, align 4, !tbaa !9
  %115 = call float @llvm.fmuladd.f32(float %112, float 5.000000e-01, float %114)
  store float %115, ptr %113, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %93, %70
  %117 = load float, ptr %11, align 4, !tbaa !14
  call void @_ZN7ImGuiEx10CanvasViewC2ERK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %117)
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %118

118:                                              ; preds = %116, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %119

119:                                              ; preds = %118, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %120 = load { <2 x float>, <2 x float> }, ptr %3, align 4
  ret { <2 x float>, <2 x float> } %120
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK7ImGuiEx6Canvas4ViewEv(ptr noundef nonnull align 8 dereferenceable(172)) #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="64" "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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, !11, i64 0}
!10 = !{!"_ZTS6ImVec2", !11, i64 0, !11, i64 4}
!11 = !{!"float", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !14, i64 8, i64 4, !14, i64 12, i64 4, !14}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !11, i64 16}
!16 = !{!"_ZTSN7ImGuiEx6CanvasE", !17, i64 0, !10, i64 4, !10, i64 12, !18, i64 20, !6, i64 40, !19, i64 48, !19, i64 52, !19, i64 56, !20, i64 60, !18, i64 76, !10, i64 92, !19, i64 100, !11, i64 104, !10, i64 108, !10, i64 116, !7, i64 124, !10, i64 164}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTS6ImRect", !10, i64 0, !10, i64 8}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSN7ImGuiEx10CanvasViewE", !10, i64 0, !11, i64 8, !11, i64 12}
!21 = !{!16, !11, i64 12}
!22 = !{i64 0, i64 4, !14, i64 4, i64 4, !14}
!23 = !{!16, !11, i64 68}


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

%"struct.ImGuiEx::CanvasView" = type { %struct.ImVec2, float, float }
%struct.ImVec2 = type { float, 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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 uwtable
declare dso_local <2 x float> @_ZNK6ImRect7GetSizeEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8), float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, <2 x float> } @_ZNK7ImGuiEx6Canvas14CalcCenterViewERK6ImRect(ptr noundef nonnull align 8 dereferenceable(172) %0, ptr noundef nonnull align 4 dereferenceable(16) %1) local_unnamed_addr #2 align 2 {
  %3 = alloca %"struct.ImGuiEx::CanvasView", align 8
  %4 = alloca %struct.ImVec2, align 8
  %5 = tail call <2 x float> @_ZNK6ImRect7GetSizeEv(ptr noundef nonnull align 4 dereferenceable(16) %1)
  %.sroa.014.0.vec.extract = extractelement <2 x float> %5, i64 0
  %6 = fcmp ole float %.sroa.014.0.vec.extract, 0.000000e+00
  %.sroa.014.4.vec.extract28 = extractelement <2 x float> %5, i64 1
  %7 = fcmp ole float %.sroa.014.4.vec.extract28, 0.000000e+00
  %or.cond = select i1 %6, i1 true, i1 %7
  br i1 %or.cond, label %8, label %10

8:                                                ; preds = %2
  %9 = tail call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK7ImGuiEx6Canvas4ViewEv(ptr noundef nonnull align 8 dereferenceable(172) %0)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(16) %9, i64 16, i1 false), !tbaa.struct !5
  br label %47

10:                                               ; preds = %2
  %11 = getelementptr inbounds i8, ptr %0, i64 12
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load float, ptr %12, align 8, !tbaa !10
  %14 = fcmp ogt float %13, 0.000000e+00
  %15 = load float, ptr %11, align 4
  %16 = fdiv float %15, %13
  %17 = select i1 %14, float %16, float 0.000000e+00
  %18 = fcmp ogt float %.sroa.014.4.vec.extract28, 0.000000e+00
  %19 = fdiv float %.sroa.014.0.vec.extract, %.sroa.014.4.vec.extract28
  %20 = select i1 %18, float %19, float 0.000000e+00
  %21 = fcmp ole float %17, 0.000000e+00
  %22 = fcmp ole float %20, 0.000000e+00
  %or.cond4 = select i1 %21, i1 true, i1 %22
  br i1 %or.cond4, label %23, label %25

23:                                               ; preds = %10
  %24 = tail call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK7ImGuiEx6Canvas4ViewEv(ptr noundef nonnull align 8 dereferenceable(172) %0)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(16) %24, i64 16, i1 false), !tbaa.struct !5
  br label %47

25:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %26 = fcmp ogt float %20, %17
  br i1 %26, label %27, label %37

27:                                               ; preds = %25
  %28 = fdiv float %15, %.sroa.014.0.vec.extract
  %29 = fneg float %28
  %30 = tail call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %1, float noundef %29)
  store <2 x float> %30, ptr %4, align 8
  %31 = load float, ptr %12, align 8, !tbaa !10
  %32 = fneg float %.sroa.014.4.vec.extract28
  %33 = tail call float @llvm.fmuladd.f32(float %32, float %28, float %31)
  %34 = getelementptr inbounds i8, ptr %4, i64 4
  %35 = extractelement <2 x float> %30, i64 1
  %36 = tail call float @llvm.fmuladd.f32(float %33, float 5.000000e-01, float %35)
  store float %36, ptr %34, align 4, !tbaa !18
  br label %46

37:                                               ; preds = %25
  %38 = fdiv float %13, %.sroa.014.4.vec.extract28
  %39 = fneg float %38
  %40 = tail call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %1, float noundef %39)
  store <2 x float> %40, ptr %4, align 8
  %41 = load float, ptr %11, align 4, !tbaa !19
  %42 = fneg float %.sroa.014.0.vec.extract
  %43 = tail call float @llvm.fmuladd.f32(float %42, float %38, float %41)
  %44 = extractelement <2 x float> %40, i64 0
  %45 = tail call float @llvm.fmuladd.f32(float %43, float 5.000000e-01, float %44)
  store float %45, ptr %4, align 8, !tbaa !20
  br label %46

46:                                               ; preds = %37, %27
  %.0 = phi float [ %28, %27 ], [ %38, %37 ]
  call void @_ZN7ImGuiEx10CanvasViewC2ERK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef %.0)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %47

47:                                               ; preds = %23, %46, %8
  %.fca.0.load = load <2 x float>, ptr %3, align 8
  %.fca.0.insert = insertvalue { <2 x float>, <2 x float> } poison, <2 x float> %.fca.0.load, 0
  %.fca.1.gep = getelementptr inbounds i8, ptr %3, i64 8
  %.fca.1.load = load <2 x float>, ptr %.fca.1.gep, align 8
  %.fca.1.insert = insertvalue { <2 x float>, <2 x float> } %.fca.0.insert, <2 x float> %.fca.1.load, 1
  ret { <2 x float>, <2 x float> } %.fca.1.insert
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK7ImGuiEx6Canvas4ViewEv(ptr noundef nonnull align 8 dereferenceable(172)) local_unnamed_addr #3 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="64" "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6, i64 12, i64 4, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !7, i64 16}
!11 = !{!"_ZTSN7ImGuiEx6CanvasE", !12, i64 0, !13, i64 4, !13, i64 12, !14, i64 20, !15, i64 40, !16, i64 48, !16, i64 52, !16, i64 56, !17, i64 60, !14, i64 76, !13, i64 92, !16, i64 100, !7, i64 104, !13, i64 108, !13, i64 116, !8, i64 124, !13, i64 164}
!12 = !{!"bool", !8, i64 0}
!13 = !{!"_ZTS6ImVec2", !7, i64 0, !7, i64 4}
!14 = !{!"_ZTS6ImRect", !13, i64 0, !13, i64 8}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"int", !8, i64 0}
!17 = !{!"_ZTSN7ImGuiEx10CanvasViewE", !13, i64 0, !7, i64 8, !7, i64 12}
!18 = !{!13, !7, i64 4}
!19 = !{!11, !7, i64 12}
!20 = !{!13, !7, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass