; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/ImGui/imgui_draw.ll (ZN10ImDrawList8PathRectERK6ImVec2S2_fi)

; 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.ImVec2 = type { float, float }

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMinIfET_S0_S0_(float noundef, float noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), float noundef, i32 noundef, i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ImDrawList8PathRectERK6ImVec2S2_fi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef %3, i32 noundef %4) #4 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.ImVec2, align 4
  %12 = alloca %struct.ImVec2, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca %struct.ImVec2, align 4
  %18 = alloca %struct.ImVec2, align 4
  %19 = alloca %struct.ImVec2, align 4
  %20 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store float %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !11
  %21 = load ptr, ptr %6, align 8
  %22 = load i32, ptr %10, align 4, !tbaa !11
  %23 = call noundef i32 @_ZL18FixRectCornerFlagsi(i32 noundef %22)
  store i32 %23, ptr %10, align 4, !tbaa !11
  %24 = load float, ptr %9, align 4, !tbaa !9
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ImVec2, ptr %25, i32 0, i32 0
  %27 = load float, ptr %26, align 4, !tbaa !13
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.ImVec2, ptr %28, i32 0, i32 0
  %30 = load float, ptr %29, align 4, !tbaa !13
  %31 = fsub float %27, %30
  %32 = call float @llvm.fabs.f32(float %31)
  %33 = load i32, ptr %10, align 4, !tbaa !11
  %34 = and i32 %33, 48
  %35 = icmp eq i32 %34, 48
  br i1 %35, label %40, label %36

36:                                               ; preds = %5
  %37 = load i32, ptr %10, align 4, !tbaa !11
  %38 = and i32 %37, 192
  %39 = icmp eq i32 %38, 192
  br label %40

40:                                               ; preds = %36, %5
  %41 = phi i1 [ true, %5 ], [ %39, %36 ]
  %42 = zext i1 %41 to i64
  %43 = select i1 %41, float 5.000000e-01, float 1.000000e+00
  %44 = call float @llvm.fmuladd.f32(float %32, float %43, float -1.000000e+00)
  %45 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %24, float noundef %44)
  store float %45, ptr %9, align 4, !tbaa !9
  %46 = load float, ptr %9, align 4, !tbaa !9
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.ImVec2, ptr %47, i32 0, i32 1
  %49 = load float, ptr %48, align 4, !tbaa !15
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ImVec2, ptr %50, i32 0, i32 1
  %52 = load float, ptr %51, align 4, !tbaa !15
  %53 = fsub float %49, %52
  %54 = call float @llvm.fabs.f32(float %53)
  %55 = load i32, ptr %10, align 4, !tbaa !11
  %56 = and i32 %55, 80
  %57 = icmp eq i32 %56, 80
  br i1 %57, label %62, label %58

58:                                               ; preds = %40
  %59 = load i32, ptr %10, align 4, !tbaa !11
  %60 = and i32 %59, 160
  %61 = icmp eq i32 %60, 160
  br label %62

62:                                               ; preds = %58, %40
  %63 = phi i1 [ true, %40 ], [ %61, %58 ]
  %64 = zext i1 %63 to i64
  %65 = select i1 %63, float 5.000000e-01, float 1.000000e+00
  %66 = call float @llvm.fmuladd.f32(float %54, float %65, float -1.000000e+00)
  %67 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %46, float noundef %66)
  store float %67, ptr %9, align 4, !tbaa !9
  %68 = load float, ptr %9, align 4, !tbaa !9
  %69 = fcmp olt float %68, 5.000000e-01
  br i1 %69, label %74, label %70

70:                                               ; preds = %62
  %71 = load i32, ptr %10, align 4, !tbaa !11
  %72 = and i32 %71, 496
  %73 = icmp eq i32 %72, 256
  br i1 %73, label %74, label %89

74:                                               ; preds = %70, %62
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(8) %75)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ImVec2, ptr %76, i32 0, i32 0
  %78 = load float, ptr %77, align 4, !tbaa !13
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.ImVec2, ptr %79, i32 0, i32 1
  %81 = load float, ptr %80, align 4, !tbaa !15
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %78, float noundef %81)
  call void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(8) %82)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.ImVec2, ptr %83, i32 0, i32 0
  %85 = load float, ptr %84, align 4, !tbaa !13
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.ImVec2, ptr %86, i32 0, i32 1
  %88 = load float, ptr %87, align 4, !tbaa !15
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %85, float noundef %88)
  call void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %166

89:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %90 = load i32, ptr %10, align 4, !tbaa !11
  %91 = and i32 %90, 16
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %95

93:                                               ; preds = %89
  %94 = load float, ptr %9, align 4, !tbaa !9
  br label %96

95:                                               ; preds = %89
  br label %96

96:                                               ; preds = %95, %93
  %97 = phi float [ %94, %93 ], [ 0.000000e+00, %95 ]
  store float %97, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %98 = load i32, ptr %10, align 4, !tbaa !11
  %99 = and i32 %98, 32
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %103

101:                                              ; preds = %96
  %102 = load float, ptr %9, align 4, !tbaa !9
  br label %104

103:                                              ; preds = %96
  br label %104

104:                                              ; preds = %103, %101
  %105 = phi float [ %102, %101 ], [ 0.000000e+00, %103 ]
  store float %105, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %106 = load i32, ptr %10, align 4, !tbaa !11
  %107 = and i32 %106, 128
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %111

109:                                              ; preds = %104
  %110 = load float, ptr %9, align 4, !tbaa !9
  br label %112

111:                                              ; preds = %104
  br label %112

112:                                              ; preds = %111, %109
  %113 = phi float [ %110, %109 ], [ 0.000000e+00, %111 ]
  store float %113, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %114 = load i32, ptr %10, align 4, !tbaa !11
  %115 = and i32 %114, 64
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %119

117:                                              ; preds = %112
  %118 = load float, ptr %9, align 4, !tbaa !9
  br label %120

119:                                              ; preds = %112
  br label %120

120:                                              ; preds = %119, %117
  %121 = phi float [ %118, %117 ], [ 0.000000e+00, %119 ]
  store float %121, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.ImVec2, ptr %122, i32 0, i32 0
  %124 = load float, ptr %123, align 4, !tbaa !13
  %125 = load float, ptr %13, align 4, !tbaa !9
  %126 = fadd float %124, %125
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.ImVec2, ptr %127, i32 0, i32 1
  %129 = load float, ptr %128, align 4, !tbaa !15
  %130 = load float, ptr %13, align 4, !tbaa !9
  %131 = fadd float %129, %130
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %17, float noundef %126, float noundef %131)
  %132 = load float, ptr %13, align 4, !tbaa !9
  call void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(8) %17, float noundef %132, i32 noundef 6, i32 noundef 9)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.ImVec2, ptr %133, i32 0, i32 0
  %135 = load float, ptr %134, align 4, !tbaa !13
  %136 = load float, ptr %14, align 4, !tbaa !9
  %137 = fsub float %135, %136
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.ImVec2, ptr %138, i32 0, i32 1
  %140 = load float, ptr %139, align 4, !tbaa !15
  %141 = load float, ptr %14, align 4, !tbaa !9
  %142 = fadd float %140, %141
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %18, float noundef %137, float noundef %142)
  %143 = load float, ptr %14, align 4, !tbaa !9
  call void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(8) %18, float noundef %143, i32 noundef 9, i32 noundef 12)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.ImVec2, ptr %144, i32 0, i32 0
  %146 = load float, ptr %145, align 4, !tbaa !13
  %147 = load float, ptr %15, align 4, !tbaa !9
  %148 = fsub float %146, %147
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.ImVec2, ptr %149, i32 0, i32 1
  %151 = load float, ptr %150, align 4, !tbaa !15
  %152 = load float, ptr %15, align 4, !tbaa !9
  %153 = fsub float %151, %152
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef %148, float noundef %153)
  %154 = load float, ptr %15, align 4, !tbaa !9
  call void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef %154, i32 noundef 0, i32 noundef 3)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.ImVec2, ptr %155, i32 0, i32 0
  %157 = load float, ptr %156, align 4, !tbaa !13
  %158 = load float, ptr %16, align 4, !tbaa !9
  %159 = fadd float %157, %158
  %160 = load ptr, ptr %8, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.ImVec2, ptr %160, i32 0, i32 1
  %162 = load float, ptr %161, align 4, !tbaa !15
  %163 = load float, ptr %16, align 4, !tbaa !9
  %164 = fsub float %162, %163
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %159, float noundef %164)
  %165 = load float, ptr %16, align 4, !tbaa !9
  call void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196) %21, ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %165, i32 noundef 3, i32 noundef 6)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %166

166:                                              ; preds = %120, %74
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL18FixRectCornerFlagsi(i32 noundef) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8)) #5 align 2

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


; 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.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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMinIfET_S0_S0_(float noundef, float noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), float noundef, i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ImDrawList8PathRectERK6ImVec2S2_fi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef %3, i32 noundef %4) local_unnamed_addr #4 align 2 {
  %6 = alloca %struct.ImVec2, align 4
  %7 = alloca %struct.ImVec2, align 4
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca %struct.ImVec2, align 4
  %10 = alloca %struct.ImVec2, align 4
  %11 = alloca %struct.ImVec2, align 4
  %12 = tail call noundef i32 @_ZL18FixRectCornerFlagsi(i32 noundef %4)
  %13 = load float, ptr %2, align 4, !tbaa !5
  %14 = load float, ptr %1, align 4, !tbaa !5
  %15 = fsub float %13, %14
  %16 = tail call float @llvm.fabs.f32(float %15)
  %17 = and i32 %12, 48
  %18 = icmp eq i32 %17, 48
  %19 = and i32 %12, 192
  %20 = icmp eq i32 %19, 192
  %21 = or i1 %18, %20
  %22 = select i1 %21, float 5.000000e-01, float 1.000000e+00
  %23 = tail call float @llvm.fmuladd.f32(float %16, float %22, float -1.000000e+00)
  %24 = tail call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %3, float noundef %23)
  %25 = getelementptr inbounds i8, ptr %2, i64 4
  %26 = load float, ptr %25, align 4, !tbaa !10
  %27 = getelementptr inbounds i8, ptr %1, i64 4
  %28 = load float, ptr %27, align 4, !tbaa !10
  %29 = fsub float %26, %28
  %30 = tail call float @llvm.fabs.f32(float %29)
  %31 = and i32 %12, 80
  %32 = icmp eq i32 %31, 80
  %33 = and i32 %12, 160
  %34 = icmp eq i32 %33, 160
  %35 = or i1 %32, %34
  %36 = select i1 %35, float 5.000000e-01, float 1.000000e+00
  %37 = tail call float @llvm.fmuladd.f32(float %30, float %36, float -1.000000e+00)
  %38 = tail call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %24, float noundef %37)
  %39 = fcmp olt float %38, 5.000000e-01
  %40 = and i32 %12, 496
  %41 = icmp eq i32 %40, 256
  %or.cond = or i1 %41, %39
  br i1 %or.cond, label %42, label %47

42:                                               ; preds = %5
  tail call void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %43 = load float, ptr %2, align 4, !tbaa !5
  %44 = load float, ptr %27, align 4, !tbaa !10
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef %43, float noundef %44)
  call void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %45 = load float, ptr %1, align 4, !tbaa !5
  %46 = load float, ptr %25, align 4, !tbaa !10
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %45, float noundef %46)
  call void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %72

47:                                               ; preds = %5
  %48 = and i32 %12, 16
  %.not = icmp eq i32 %48, 0
  %49 = select i1 %.not, float 0.000000e+00, float %38
  %50 = and i32 %12, 32
  %.not47 = icmp eq i32 %50, 0
  %51 = select i1 %.not47, float 0.000000e+00, float %38
  %52 = and i32 %12, 128
  %.not48 = icmp eq i32 %52, 0
  %53 = select i1 %.not48, float 0.000000e+00, float %38
  %54 = and i32 %12, 64
  %.not49 = icmp eq i32 %54, 0
  %55 = select i1 %.not49, float 0.000000e+00, float %38
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %56 = load float, ptr %1, align 4, !tbaa !5
  %57 = fadd float %49, %56
  %58 = load float, ptr %27, align 4, !tbaa !10
  %59 = fadd float %49, %58
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %57, float noundef %59)
  call void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %49, i32 noundef 6, i32 noundef 9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %60 = load float, ptr %2, align 4, !tbaa !5
  %61 = fsub float %60, %51
  %62 = load float, ptr %27, align 4, !tbaa !10
  %63 = fadd float %51, %62
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef %61, float noundef %63)
  call void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef %51, i32 noundef 9, i32 noundef 12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %64 = load float, ptr %2, align 4, !tbaa !5
  %65 = fsub float %64, %53
  %66 = load float, ptr %25, align 4, !tbaa !10
  %67 = fsub float %66, %53
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %65, float noundef %67)
  call void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %53, i32 noundef 0, i32 noundef 3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %68 = load float, ptr %1, align 4, !tbaa !5
  %69 = fadd float %55, %68
  %70 = load float, ptr %25, align 4, !tbaa !10
  %71 = fsub float %70, %55
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %69, float noundef %71)
  call void @_ZN10ImDrawList13PathArcToFastERK6ImVec2fii(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %55, i32 noundef 3, i32 noundef 6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %72

72:                                               ; preds = %47, %42
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL18FixRectCornerFlagsi(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10ImDrawList10PathLineToERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5 align 2

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass