; LLVM IR from PaddlePaddle/Serving :: core/predictor/tools/ocrtools (clipper)

; 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.ClipperLib::ClipperBase" = type { ptr, %"class.__gnu_cxx::__normal_iterator", %"class.std::vector.5", i8, %"class.std::vector.10", i8, i8, %"class.std::vector.15", ptr, %"class.std::priority_queue" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<ClipperLib::LocalMinimum, std::allocator<ClipperLib::LocalMinimum>>::_Vector_impl" }
%"struct.std::_Vector_base<ClipperLib::LocalMinimum, std::allocator<ClipperLib::LocalMinimum>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClipperLib::LocalMinimum, std::allocator<ClipperLib::LocalMinimum>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClipperLib::LocalMinimum, std::allocator<ClipperLib::LocalMinimum>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<ClipperLib::TEdge *, std::allocator<ClipperLib::TEdge *>>::_Vector_impl" }
%"struct.std::_Vector_base<ClipperLib::TEdge *, std::allocator<ClipperLib::TEdge *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClipperLib::TEdge *, std::allocator<ClipperLib::TEdge *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClipperLib::TEdge *, std::allocator<ClipperLib::TEdge *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<ClipperLib::OutRec *, std::allocator<ClipperLib::OutRec *>>::_Vector_impl" }
%"struct.std::_Vector_base<ClipperLib::OutRec *, std::allocator<ClipperLib::OutRec *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClipperLib::OutRec *, std::allocator<ClipperLib::OutRec *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClipperLib::OutRec *, std::allocator<ClipperLib::OutRec *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::priority_queue" = type <{ %"class.std::vector.20", [8 x i8] }>
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.ClipperLib::TEdge" = type { %"struct.ClipperLib::IntPoint", %"struct.ClipperLib::IntPoint", %"struct.ClipperLib::IntPoint", double, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.ClipperLib::IntPoint" = type { i64, i64 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ClipperLib7Clipper17InsertEdgeIntoAELEPNS_5TEdgeES2_(ptr noundef nonnull align 8 dereferenceable(135) %0, ptr noundef %1, ptr noundef %2) #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = 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
  %7 = load ptr, ptr %4, align 8
  %8 = load ptr, ptr %7, align 8, !tbaa !9
  %9 = getelementptr i8, ptr %8, i64 -24
  %10 = load i64, ptr %9, align 8
  %11 = getelementptr inbounds i8, ptr %7, i64 %10
  %12 = getelementptr inbounds %"class.ClipperLib::ClipperBase", ptr %11, i32 0, i32 8
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  %14 = icmp ne ptr %13, null
  br i1 %14, label %26, label %15

15:                                               ; preds = %3
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %16, i32 0, i32 14
  store ptr null, ptr %17, align 8, !tbaa !33
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %18, i32 0, i32 13
  store ptr null, ptr %19, align 8, !tbaa !41
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = load ptr, ptr %7, align 8, !tbaa !9
  %22 = getelementptr i8, ptr %21, i64 -24
  %23 = load i64, ptr %22, align 8
  %24 = getelementptr inbounds i8, ptr %7, i64 %23
  %25 = getelementptr inbounds %"class.ClipperLib::ClipperBase", ptr %24, i32 0, i32 8
  store ptr %20, ptr %25, align 8, !tbaa !11
  br label %116

26:                                               ; preds = %3
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %63, label %29

29:                                               ; preds = %26
  %30 = load ptr, ptr %7, align 8, !tbaa !9
  %31 = getelementptr i8, ptr %30, i64 -24
  %32 = load i64, ptr %31, align 8
  %33 = getelementptr inbounds i8, ptr %7, i64 %32
  %34 = getelementptr inbounds %"class.ClipperLib::ClipperBase", ptr %33, i32 0, i32 8
  %35 = load ptr, ptr %34, align 8, !tbaa !11
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = call noundef zeroext i1 @_ZN10ClipperLib17E2InsertsBeforeE1ERNS_5TEdgeES1_(ptr noundef nonnull align 8 dereferenceable(136) %35, ptr noundef nonnull align 8 dereferenceable(136) %36)
  br i1 %37, label %38, label %63

38:                                               ; preds = %29
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %39, i32 0, i32 14
  store ptr null, ptr %40, align 8, !tbaa !33
  %41 = load ptr, ptr %7, align 8, !tbaa !9
  %42 = getelementptr i8, ptr %41, i64 -24
  %43 = load i64, ptr %42, align 8
  %44 = getelementptr inbounds i8, ptr %7, i64 %43
  %45 = getelementptr inbounds %"class.ClipperLib::ClipperBase", ptr %44, i32 0, i32 8
  %46 = load ptr, ptr %45, align 8, !tbaa !11
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %47, i32 0, i32 13
  store ptr %46, ptr %48, align 8, !tbaa !41
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = load ptr, ptr %7, align 8, !tbaa !9
  %51 = getelementptr i8, ptr %50, i64 -24
  %52 = load i64, ptr %51, align 8
  %53 = getelementptr inbounds i8, ptr %7, i64 %52
  %54 = getelementptr inbounds %"class.ClipperLib::ClipperBase", ptr %53, i32 0, i32 8
  %55 = load ptr, ptr %54, align 8, !tbaa !11
  %56 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %55, i32 0, i32 14
  store ptr %49, ptr %56, align 8, !tbaa !33
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = load ptr, ptr %7, align 8, !tbaa !9
  %59 = getelementptr i8, ptr %58, i64 -24
  %60 = load i64, ptr %59, align 8
  %61 = getelementptr inbounds i8, ptr %7, i64 %60
  %62 = getelementptr inbounds %"class.ClipperLib::ClipperBase", ptr %61, i32 0, i32 8
  store ptr %57, ptr %62, align 8, !tbaa !11
  br label %115

63:                                               ; preds = %29, %26
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = icmp ne ptr %64, null
  br i1 %65, label %73, label %66

66:                                               ; preds = %63
  %67 = load ptr, ptr %7, align 8, !tbaa !9
  %68 = getelementptr i8, ptr %67, i64 -24
  %69 = load i64, ptr %68, align 8
  %70 = getelementptr inbounds i8, ptr %7, i64 %69
  %71 = getelementptr inbounds %"class.ClipperLib::ClipperBase", ptr %70, i32 0, i32 8
  %72 = load ptr, ptr %71, align 8, !tbaa !11
  store ptr %72, ptr %6, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %66, %63
  br label %74

74:                                               ; preds = %88, %73
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %75, i32 0, i32 13
  %77 = load ptr, ptr %76, align 8, !tbaa !41
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %86

79:                                               ; preds = %74
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %80, i32 0, i32 13
  %82 = load ptr, ptr %81, align 8, !tbaa !41
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = call noundef zeroext i1 @_ZN10ClipperLib17E2InsertsBeforeE1ERNS_5TEdgeES1_(ptr noundef nonnull align 8 dereferenceable(136) %82, ptr noundef nonnull align 8 dereferenceable(136) %83)
  %85 = xor i1 %84, true
  br label %86

86:                                               ; preds = %79, %74
  %87 = phi i1 [ false, %74 ], [ %85, %79 ]
  br i1 %87, label %88, label %92

88:                                               ; preds = %86
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %89, i32 0, i32 13
  %91 = load ptr, ptr %90, align 8, !tbaa !41
  store ptr %91, ptr %6, align 8, !tbaa !5
  br label %74, !llvm.loop !42

92:                                               ; preds = %86
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %93, i32 0, i32 13
  %95 = load ptr, ptr %94, align 8, !tbaa !41
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %96, i32 0, i32 13
  store ptr %95, ptr %97, align 8, !tbaa !41
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %98, i32 0, i32 13
  %100 = load ptr, ptr %99, align 8, !tbaa !41
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %108

102:                                              ; preds = %92
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %104, i32 0, i32 13
  %106 = load ptr, ptr %105, align 8, !tbaa !41
  %107 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %106, i32 0, i32 14
  store ptr %103, ptr %107, align 8, !tbaa !33
  br label %108

108:                                              ; preds = %102, %92
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %110, i32 0, i32 14
  store ptr %109, ptr %111, align 8, !tbaa !33
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %113, i32 0, i32 13
  store ptr %112, ptr %114, align 8, !tbaa !41
  br label %115

115:                                              ; preds = %108, %38
  br label %116

116:                                              ; preds = %115, %15
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10ClipperLib17E2InsertsBeforeE1ERNS_5TEdgeES1_(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(136)) #1

attributes #0 = { 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 #1 = { 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" }

!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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 104}
!12 = !{!"_ZTSN10ClipperLib11ClipperBaseE", !13, i64 8, !14, i64 16, !18, i64 40, !19, i64 48, !18, i64 72, !18, i64 73, !23, i64 80, !6, i64 104, !27, i64 112}
!13 = !{!"_ZTSN9__gnu_cxx17__normal_iteratorIPN10ClipperLib12LocalMinimumESt6vectorIS2_SaIS2_EEEE", !6, i64 0}
!14 = !{!"_ZTSSt6vectorIN10ClipperLib12LocalMinimumESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN10ClipperLib12LocalMinimumESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib12LocalMinimumESaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib12LocalMinimumESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIPN10ClipperLib5TEdgeESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib5TEdgeESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib5TEdgeESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib5TEdgeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIPN10ClipperLib6OutRecESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib6OutRecESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib6OutRecESaIS2_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib6OutRecESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE", !28, i64 0, !32, i64 24}
!28 = !{!"_ZTSSt6vectorIxSaIxEE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIxSaIxEE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIxSaIxEE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIxSaIxEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"_ZTSSt4lessIxE"}
!33 = !{!34, !6, i64 112}
!34 = !{!"_ZTSN10ClipperLib5TEdgeE", !35, i64 0, !35, i64 16, !35, i64 32, !37, i64 48, !38, i64 56, !39, i64 60, !40, i64 64, !40, i64 68, !40, i64 72, !40, i64 76, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128}
!35 = !{!"_ZTSN10ClipperLib8IntPointE", !36, i64 0, !36, i64 8}
!36 = !{!"long long", !7, i64 0}
!37 = !{!"double", !7, i64 0}
!38 = !{!"_ZTSN10ClipperLib8PolyTypeE", !7, i64 0}
!39 = !{!"_ZTSN10ClipperLib8EdgeSideE", !7, i64 0}
!40 = !{!"int", !7, i64 0}
!41 = !{!34, !6, i64 104}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}


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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ClipperLib7Clipper17InsertEdgeIntoAELEPNS_5TEdgeES2_(ptr nocapture noundef nonnull align 8 dereferenceable(135) %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 align 2 {
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %5 = getelementptr i8, ptr %4, i64 -24
  %6 = load i64, ptr %5, align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 %6
  %8 = getelementptr inbounds i8, ptr %7, i64 104
  %9 = load ptr, ptr %8, align 8, !tbaa !8
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %10, label %15

10:                                               ; preds = %3
  %11 = getelementptr inbounds i8, ptr %1, i64 104
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %11, i8 0, i64 16, i1 false)
  %12 = load i64, ptr %5, align 8
  %13 = getelementptr inbounds i8, ptr %0, i64 %12
  %14 = getelementptr inbounds i8, ptr %13, i64 104
  br label %57

15:                                               ; preds = %3
  %.not28 = icmp eq ptr %2, null
  br i1 %.not28, label %16, label %.critedge32

16:                                               ; preds = %15
  %17 = tail call noundef zeroext i1 @_ZN10ClipperLib17E2InsertsBeforeE1ERNS_5TEdgeES1_(ptr noundef nonnull align 8 dereferenceable(136) %9, ptr noundef nonnull align 8 dereferenceable(136) %1)
  br i1 %17, label %18, label %35

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %1, i64 112
  store ptr null, ptr %19, align 8, !tbaa !32
  %20 = load ptr, ptr %0, align 8, !tbaa !5
  %21 = getelementptr i8, ptr %20, i64 -24
  %22 = load i64, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr %0, i64 %22
  %24 = getelementptr inbounds i8, ptr %23, i64 104
  %25 = load ptr, ptr %24, align 8, !tbaa !8
  %26 = getelementptr inbounds i8, ptr %1, i64 104
  store ptr %25, ptr %26, align 8, !tbaa !40
  %27 = load i64, ptr %21, align 8
  %28 = getelementptr inbounds i8, ptr %0, i64 %27
  %29 = getelementptr inbounds i8, ptr %28, i64 104
  %30 = load ptr, ptr %29, align 8, !tbaa !8
  %31 = getelementptr inbounds i8, ptr %30, i64 112
  store ptr %1, ptr %31, align 8, !tbaa !32
  %32 = load i64, ptr %21, align 8
  %33 = getelementptr inbounds i8, ptr %0, i64 %32
  %34 = getelementptr inbounds i8, ptr %33, i64 104
  br label %57

35:                                               ; preds = %16
  %36 = load ptr, ptr %0, align 8, !tbaa !5
  %37 = getelementptr i8, ptr %36, i64 -24
  %38 = load i64, ptr %37, align 8
  %39 = getelementptr inbounds i8, ptr %0, i64 %38
  %40 = getelementptr inbounds i8, ptr %39, i64 104
  %41 = load ptr, ptr %40, align 8, !tbaa !8
  br label %.critedge32

.critedge32:                                      ; preds = %15, %35
  %.0 = phi ptr [ %41, %35 ], [ %2, %15 ]
  %42 = getelementptr inbounds i8, ptr %.0, i64 104
  %43 = load ptr, ptr %42, align 8, !tbaa !40
  %.not2933 = icmp eq ptr %43, null
  br i1 %.not2933, label %.critedge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.critedge32
  %44 = tail call noundef zeroext i1 @_ZN10ClipperLib17E2InsertsBeforeE1ERNS_5TEdgeES1_(ptr noundef nonnull align 8 dereferenceable(136) %43, ptr noundef nonnull align 8 dereferenceable(136) %1)
  br i1 %44, label %.lr.ph..critedge.loopexit_crit_edge, label %.lr.ph50

.lr.ph:                                           ; preds = %.lr.ph50
  %45 = tail call noundef zeroext i1 @_ZN10ClipperLib17E2InsertsBeforeE1ERNS_5TEdgeES1_(ptr noundef nonnull align 8 dereferenceable(136) %49, ptr noundef nonnull align 8 dereferenceable(136) %1)
  br i1 %45, label %.lr.ph..critedge.loopexit_crit_edge, label %.lr.ph50, !llvm.loop !41

.lr.ph..critedge.loopexit_crit_edge:              ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa46 = phi ptr [ %42, %.lr.ph.preheader ], [ %48, %.lr.ph ]
  %.134.lcssa = phi ptr [ %.0, %.lr.ph.preheader ], [ %47, %.lr.ph ]
  %.pre.pre = load ptr, ptr %.lcssa46, align 8, !tbaa !40
  br label %.critedge

.lr.ph50:                                         ; preds = %.lr.ph.preheader, %.lr.ph
  %46 = phi ptr [ %48, %.lr.ph ], [ %42, %.lr.ph.preheader ]
  %47 = load ptr, ptr %46, align 8, !tbaa !40
  %48 = getelementptr inbounds i8, ptr %47, i64 104
  %49 = load ptr, ptr %48, align 8, !tbaa !40
  %.not29 = icmp eq ptr %49, null
  br i1 %.not29, label %.critedge, label %.lr.ph, !llvm.loop !41

.critedge:                                        ; preds = %.lr.ph50, %.lr.ph..critedge.loopexit_crit_edge, %.critedge32
  %50 = phi ptr [ null, %.critedge32 ], [ %.pre.pre, %.lr.ph..critedge.loopexit_crit_edge ], [ null, %.lr.ph50 ]
  %.1.lcssa = phi ptr [ %.0, %.critedge32 ], [ %.134.lcssa, %.lr.ph..critedge.loopexit_crit_edge ], [ %47, %.lr.ph50 ]
  %.lcssa = phi ptr [ %42, %.critedge32 ], [ %.lcssa46, %.lr.ph..critedge.loopexit_crit_edge ], [ %48, %.lr.ph50 ]
  %51 = getelementptr inbounds i8, ptr %1, i64 104
  store ptr %50, ptr %51, align 8, !tbaa !40
  %52 = load ptr, ptr %.lcssa, align 8, !tbaa !40
  %.not30 = icmp eq ptr %52, null
  br i1 %.not30, label %55, label %53

53:                                               ; preds = %.critedge
  %54 = getelementptr inbounds i8, ptr %52, i64 112
  store ptr %1, ptr %54, align 8, !tbaa !32
  br label %55

55:                                               ; preds = %53, %.critedge
  %56 = getelementptr inbounds i8, ptr %1, i64 112
  store ptr %.1.lcssa, ptr %56, align 8, !tbaa !32
  br label %57

57:                                               ; preds = %18, %55, %10
  %.sink = phi ptr [ %34, %18 ], [ %.lcssa, %55 ], [ %14, %10 ]
  store ptr %1, ptr %.sink, align 8, !tbaa !43
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10ClipperLib17E2InsertsBeforeE1ERNS_5TEdgeES1_(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(136)) local_unnamed_addr #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 104}
!9 = !{!"_ZTSN10ClipperLib11ClipperBaseE", !10, i64 8, !13, i64 16, !17, i64 40, !18, i64 48, !17, i64 72, !17, i64 73, !22, i64 80, !11, i64 104, !26, i64 112}
!10 = !{!"_ZTSN9__gnu_cxx17__normal_iteratorIPN10ClipperLib12LocalMinimumESt6vectorIS2_SaIS2_EEEE", !11, i64 0}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIN10ClipperLib12LocalMinimumESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN10ClipperLib12LocalMinimumESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib12LocalMinimumESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib12LocalMinimumESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!17 = !{!"bool", !12, i64 0}
!18 = !{!"_ZTSSt6vectorIPN10ClipperLib5TEdgeESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib5TEdgeESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib5TEdgeESaIS2_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib5TEdgeESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!22 = !{!"_ZTSSt6vectorIPN10ClipperLib6OutRecESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib6OutRecESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib6OutRecESaIS2_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib6OutRecESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!26 = !{!"_ZTSSt14priority_queueIxSt6vectorIxSaIxEESt4lessIxEE", !27, i64 0, !31, i64 24}
!27 = !{!"_ZTSSt6vectorIxSaIxEE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIxSaIxEE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIxSaIxEE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIxSaIxEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!31 = !{!"_ZTSSt4lessIxE"}
!32 = !{!33, !11, i64 112}
!33 = !{!"_ZTSN10ClipperLib5TEdgeE", !34, i64 0, !34, i64 16, !34, i64 32, !36, i64 48, !37, i64 56, !38, i64 60, !39, i64 64, !39, i64 68, !39, i64 72, !39, i64 76, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128}
!34 = !{!"_ZTSN10ClipperLib8IntPointE", !35, i64 0, !35, i64 8}
!35 = !{!"long long", !12, i64 0}
!36 = !{!"double", !12, i64 0}
!37 = !{!"_ZTSN10ClipperLib8PolyTypeE", !12, i64 0}
!38 = !{!"_ZTSN10ClipperLib8EdgeSideE", !12, i64 0}
!39 = !{!"int", !12, i64 0}
!40 = !{!33, !11, i64 104}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = !{!11, !11, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass