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

%"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 }
%"class.ClipperLib::Clipper" = type <{ ptr, %"class.std::vector.33", %"class.std::vector.33", %"class.std::vector.38", i32, [4 x i8], %"class.std::__cxx11::list", ptr, i8, [3 x i8], i32, i32, i8, i8, i8, i8, %"class.ClipperLib::ClipperBase" }>
%"class.std::vector.33" = type { %"struct.std::_Vector_base.34" }
%"struct.std::_Vector_base.34" = type { %"struct.std::_Vector_base<ClipperLib::Join *, std::allocator<ClipperLib::Join *>>::_Vector_impl" }
%"struct.std::_Vector_base<ClipperLib::Join *, std::allocator<ClipperLib::Join *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClipperLib::Join *, std::allocator<ClipperLib::Join *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClipperLib::Join *, std::allocator<ClipperLib::Join *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.38" = type { %"struct.std::_Vector_base.39" }
%"struct.std::_Vector_base.39" = type { %"struct.std::_Vector_base<ClipperLib::IntersectNode *, std::allocator<ClipperLib::IntersectNode *>>::_Vector_impl" }
%"struct.std::_Vector_base<ClipperLib::IntersectNode *, std::allocator<ClipperLib::IntersectNode *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClipperLib::IntersectNode *, std::allocator<ClipperLib::IntersectNode *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClipperLib::IntersectNode *, std::allocator<ClipperLib::IntersectNode *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<long long, std::allocator<long long>>::_List_impl" }
%"struct.std::__cxx11::_List_base<long long, std::allocator<long long>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"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 }

; 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 i64 @_ZN10ClipperLib3AbsEx(i64 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK10ClipperLib7Clipper14IsContributingERKNS_5TEdgeE(ptr noundef nonnull align 8 dereferenceable(135) %0, ptr noundef nonnull align 8 dereferenceable(136) %1) #2 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %9 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  %11 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %10, i32 0, i32 4
  %12 = load i32, ptr %11, align 8, !tbaa !9
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %14, label %19

14:                                               ; preds = %2
  %15 = getelementptr inbounds %"class.ClipperLib::Clipper", ptr %9, i32 0, i32 11
  %16 = load i32, ptr %15, align 8, !tbaa !17
  store i32 %16, ptr %6, align 4, !tbaa !36
  %17 = getelementptr inbounds %"class.ClipperLib::Clipper", ptr %9, i32 0, i32 10
  %18 = load i32, ptr %17, align 4, !tbaa !37
  store i32 %18, ptr %7, align 4, !tbaa !36
  br label %24

19:                                               ; preds = %2
  %20 = getelementptr inbounds %"class.ClipperLib::Clipper", ptr %9, i32 0, i32 10
  %21 = load i32, ptr %20, align 4, !tbaa !37
  store i32 %21, ptr %6, align 4, !tbaa !36
  %22 = getelementptr inbounds %"class.ClipperLib::Clipper", ptr %9, i32 0, i32 11
  %23 = load i32, ptr %22, align 8, !tbaa !17
  store i32 %23, ptr %7, align 4, !tbaa !36
  br label %24

24:                                               ; preds = %19, %14
  %25 = load i32, ptr %6, align 4, !tbaa !36
  switch i32 %25, label %54 [
    i32 0, label %26
    i32 1, label %38
    i32 2, label %47
  ]

26:                                               ; preds = %24
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %27, i32 0, i32 6
  %29 = load i32, ptr %28, align 8, !tbaa !38
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %37

31:                                               ; preds = %26
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %32, i32 0, i32 7
  %34 = load i32, ptr %33, align 4, !tbaa !39
  %35 = icmp ne i32 %34, 1
  br i1 %35, label %36, label %37

36:                                               ; preds = %31
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

37:                                               ; preds = %31, %26
  br label %61

38:                                               ; preds = %24
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %39, i32 0, i32 7
  %41 = load i32, ptr %40, align 4, !tbaa !39
  %42 = sext i32 %41 to i64
  %43 = call noundef i64 @_ZN10ClipperLib3AbsEx(i64 noundef %42)
  %44 = icmp ne i64 %43, 1
  br i1 %44, label %45, label %46

45:                                               ; preds = %38
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

46:                                               ; preds = %38
  br label %61

47:                                               ; preds = %24
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %48, i32 0, i32 7
  %50 = load i32, ptr %49, align 4, !tbaa !39
  %51 = icmp ne i32 %50, 1
  br i1 %51, label %52, label %53

52:                                               ; preds = %47
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

53:                                               ; preds = %47
  br label %61

54:                                               ; preds = %24
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %55, i32 0, i32 7
  %57 = load i32, ptr %56, align 4, !tbaa !39
  %58 = icmp ne i32 %57, -1
  br i1 %58, label %59, label %60

59:                                               ; preds = %54
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

60:                                               ; preds = %54
  br label %61

61:                                               ; preds = %60, %53, %46, %37
  %62 = getelementptr inbounds %"class.ClipperLib::Clipper", ptr %9, i32 0, i32 4
  %63 = load i32, ptr %62, align 8, !tbaa !40
  switch i32 %63, label %160 [
    i32 0, label %64
    i32 1, label %81
    i32 2, label %98
    i32 3, label %137
  ]

64:                                               ; preds = %61
  %65 = load i32, ptr %7, align 4, !tbaa !36
  switch i32 %65, label %76 [
    i32 0, label %66
    i32 1, label %66
    i32 2, label %71
  ]

66:                                               ; preds = %64, %64
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %67, i32 0, i32 8
  %69 = load i32, ptr %68, align 8, !tbaa !41
  %70 = icmp ne i32 %69, 0
  store i1 %70, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

71:                                               ; preds = %64
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %72, i32 0, i32 8
  %74 = load i32, ptr %73, align 8, !tbaa !41
  %75 = icmp sgt i32 %74, 0
  store i1 %75, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

76:                                               ; preds = %64
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %77, i32 0, i32 8
  %79 = load i32, ptr %78, align 8, !tbaa !41
  %80 = icmp slt i32 %79, 0
  store i1 %80, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

81:                                               ; preds = %61
  %82 = load i32, ptr %7, align 4, !tbaa !36
  switch i32 %82, label %93 [
    i32 0, label %83
    i32 1, label %83
    i32 2, label %88
  ]

83:                                               ; preds = %81, %81
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %84, i32 0, i32 8
  %86 = load i32, ptr %85, align 8, !tbaa !41
  %87 = icmp eq i32 %86, 0
  store i1 %87, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

88:                                               ; preds = %81
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %89, i32 0, i32 8
  %91 = load i32, ptr %90, align 8, !tbaa !41
  %92 = icmp sle i32 %91, 0
  store i1 %92, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

93:                                               ; preds = %81
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %94, i32 0, i32 8
  %96 = load i32, ptr %95, align 8, !tbaa !41
  %97 = icmp sge i32 %96, 0
  store i1 %97, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

98:                                               ; preds = %61
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %99, i32 0, i32 4
  %101 = load i32, ptr %100, align 8, !tbaa !9
  %102 = icmp eq i32 %101, 0
  br i1 %102, label %103, label %120

103:                                              ; preds = %98
  %104 = load i32, ptr %7, align 4, !tbaa !36
  switch i32 %104, label %115 [
    i32 0, label %105
    i32 1, label %105
    i32 2, label %110
  ]

105:                                              ; preds = %103, %103
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %106, i32 0, i32 8
  %108 = load i32, ptr %107, align 8, !tbaa !41
  %109 = icmp eq i32 %108, 0
  store i1 %109, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

110:                                              ; preds = %103
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %111, i32 0, i32 8
  %113 = load i32, ptr %112, align 8, !tbaa !41
  %114 = icmp sle i32 %113, 0
  store i1 %114, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

115:                                              ; preds = %103
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %116, i32 0, i32 8
  %118 = load i32, ptr %117, align 8, !tbaa !41
  %119 = icmp sge i32 %118, 0
  store i1 %119, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

120:                                              ; preds = %98
  %121 = load i32, ptr %7, align 4, !tbaa !36
  switch i32 %121, label %132 [
    i32 0, label %122
    i32 1, label %122
    i32 2, label %127
  ]

122:                                              ; preds = %120, %120
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %123, i32 0, i32 8
  %125 = load i32, ptr %124, align 8, !tbaa !41
  %126 = icmp ne i32 %125, 0
  store i1 %126, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

127:                                              ; preds = %120
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %128, i32 0, i32 8
  %130 = load i32, ptr %129, align 8, !tbaa !41
  %131 = icmp sgt i32 %130, 0
  store i1 %131, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

132:                                              ; preds = %120
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %133, i32 0, i32 8
  %135 = load i32, ptr %134, align 8, !tbaa !41
  %136 = icmp slt i32 %135, 0
  store i1 %136, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

137:                                              ; preds = %61
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %138, i32 0, i32 6
  %140 = load i32, ptr %139, align 8, !tbaa !38
  %141 = icmp eq i32 %140, 0
  br i1 %141, label %142, label %159

142:                                              ; preds = %137
  %143 = load i32, ptr %7, align 4, !tbaa !36
  switch i32 %143, label %154 [
    i32 0, label %144
    i32 1, label %144
    i32 2, label %149
  ]

144:                                              ; preds = %142, %142
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %145, i32 0, i32 8
  %147 = load i32, ptr %146, align 8, !tbaa !41
  %148 = icmp eq i32 %147, 0
  store i1 %148, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

149:                                              ; preds = %142
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %150, i32 0, i32 8
  %152 = load i32, ptr %151, align 8, !tbaa !41
  %153 = icmp sle i32 %152, 0
  store i1 %153, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

154:                                              ; preds = %142
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.ClipperLib::TEdge", ptr %155, i32 0, i32 8
  %157 = load i32, ptr %156, align 8, !tbaa !41
  %158 = icmp sge i32 %157, 0
  store i1 %158, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

159:                                              ; preds = %137
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

160:                                              ; preds = %61
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %161

161:                                              ; preds = %160, %159, %154, %149, %144, %132, %127, %122, %115, %110, %105, %93, %88, %83, %76, %71, %66, %59, %52, %45, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  %162 = load i1, ptr %3, align 1
  ret i1 %162
}

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 = { 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 = { 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, !14, i64 56}
!10 = !{!"_ZTSN10ClipperLib5TEdgeE", !11, i64 0, !11, i64 16, !11, i64 32, !13, i64 48, !14, i64 56, !15, i64 60, !16, i64 64, !16, i64 68, !16, i64 72, !16, i64 76, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128}
!11 = !{!"_ZTSN10ClipperLib8IntPointE", !12, i64 0, !12, i64 8}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_ZTSN10ClipperLib8PolyTypeE", !7, i64 0}
!15 = !{!"_ZTSN10ClipperLib8EdgeSideE", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!18, !35, i64 128}
!18 = !{!"_ZTSN10ClipperLib7ClipperE", !19, i64 8, !19, i64 32, !23, i64 56, !27, i64 80, !28, i64 88, !6, i64 112, !34, i64 120, !35, i64 124, !35, i64 128, !34, i64 132, !34, i64 133, !34, i64 134}
!19 = !{!"_ZTSSt6vectorIPN10ClipperLib4JoinESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib4JoinESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib4JoinESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib4JoinESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIPN10ClipperLib13IntersectNodeESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib13IntersectNodeESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib13IntersectNodeESaIS2_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib13IntersectNodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSN10ClipperLib8ClipTypeE", !7, i64 0}
!28 = !{!"_ZTSNSt7__cxx114listIxSaIxEEE", !29, i64 0}
!29 = !{!"_ZTSNSt7__cxx1110_List_baseIxSaIxEEE", !30, i64 0}
!30 = !{!"_ZTSNSt7__cxx1110_List_baseIxSaIxEE10_List_implE", !31, i64 0}
!31 = !{!"_ZTSNSt8__detail17_List_node_headerE", !32, i64 0, !33, i64 16}
!32 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!33 = !{!"long", !7, i64 0}
!34 = !{!"bool", !7, i64 0}
!35 = !{!"_ZTSN10ClipperLib12PolyFillTypeE", !7, i64 0}
!36 = !{!35, !35, i64 0}
!37 = !{!18, !35, i64 124}
!38 = !{!10, !16, i64 64}
!39 = !{!10, !16, i64 68}
!40 = !{!18, !27, i64 80}
!41 = !{!10, !16, i64 72}


; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN10ClipperLib3AbsEx(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZNK10ClipperLib7Clipper14IsContributingERKNS_5TEdgeE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(135) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(136) %1) local_unnamed_addr #1 align 2 {
  %3 = getelementptr inbounds i8, ptr %1, i64 56
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = icmp eq i32 %4, 0
  %6 = getelementptr inbounds i8, ptr %0, i64 128
  %7 = getelementptr inbounds i8, ptr %0, i64 124
  %.val = load i32, ptr %7, align 4
  %.val36 = load i32, ptr %6, align 8
  %.0 = select i1 %5, i32 %.val, i32 %.val36
  %.030 = select i1 %5, i32 %.val36, i32 %.val
  switch i32 %.030, label %22 [
    i32 0, label %8
    i32 1, label %14
    i32 2, label %19
  ]

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %1, i64 64
  %10 = load i32, ptr %9, align 8, !tbaa !16
  %11 = icmp ne i32 %10, 0
  %12 = getelementptr inbounds i8, ptr %1, i64 68
  %13 = load i32, ptr %12, align 4
  %.not33 = icmp eq i32 %13, 1
  %or.cond = select i1 %11, i1 true, i1 %.not33
  br i1 %or.cond, label %25, label %100

14:                                               ; preds = %2
  %15 = getelementptr inbounds i8, ptr %1, i64 68
  %16 = load i32, ptr %15, align 4, !tbaa !17
  %17 = sext i32 %16 to i64
  %18 = tail call noundef i64 @_ZN10ClipperLib3AbsEx(i64 noundef %17)
  %.not32 = icmp eq i64 %18, 1
  br i1 %.not32, label %25, label %100

19:                                               ; preds = %2
  %20 = getelementptr inbounds i8, ptr %1, i64 68
  %21 = load i32, ptr %20, align 4, !tbaa !17
  %.not = icmp eq i32 %21, 1
  br i1 %.not, label %25, label %100

22:                                               ; preds = %2
  %23 = getelementptr inbounds i8, ptr %1, i64 68
  %24 = load i32, ptr %23, align 4, !tbaa !17
  %.not34 = icmp eq i32 %24, -1
  br i1 %.not34, label %25, label %100

25:                                               ; preds = %22, %19, %14, %8
  %26 = getelementptr inbounds i8, ptr %0, i64 80
  %27 = load i32, ptr %26, align 8, !tbaa !18
  switch i32 %27, label %100 [
    i32 0, label %28
    i32 1, label %41
    i32 2, label %54
    i32 3, label %83
  ]

28:                                               ; preds = %25
  switch i32 %.0, label %37 [
    i32 0, label %29
    i32 1, label %29
    i32 2, label %33
  ]

29:                                               ; preds = %28, %28
  %30 = getelementptr inbounds i8, ptr %1, i64 72
  %31 = load i32, ptr %30, align 8, !tbaa !37
  %32 = icmp ne i32 %31, 0
  br label %100

33:                                               ; preds = %28
  %34 = getelementptr inbounds i8, ptr %1, i64 72
  %35 = load i32, ptr %34, align 8, !tbaa !37
  %36 = icmp sgt i32 %35, 0
  br label %100

37:                                               ; preds = %28
  %38 = getelementptr inbounds i8, ptr %1, i64 72
  %39 = load i32, ptr %38, align 8, !tbaa !37
  %40 = icmp slt i32 %39, 0
  br label %100

41:                                               ; preds = %25
  switch i32 %.0, label %50 [
    i32 0, label %42
    i32 1, label %42
    i32 2, label %46
  ]

42:                                               ; preds = %41, %41
  %43 = getelementptr inbounds i8, ptr %1, i64 72
  %44 = load i32, ptr %43, align 8, !tbaa !37
  %45 = icmp eq i32 %44, 0
  br label %100

46:                                               ; preds = %41
  %47 = getelementptr inbounds i8, ptr %1, i64 72
  %48 = load i32, ptr %47, align 8, !tbaa !37
  %49 = icmp slt i32 %48, 1
  br label %100

50:                                               ; preds = %41
  %51 = getelementptr inbounds i8, ptr %1, i64 72
  %52 = load i32, ptr %51, align 8, !tbaa !37
  %53 = icmp sgt i32 %52, -1
  br label %100

54:                                               ; preds = %25
  %55 = load i32, ptr %3, align 8, !tbaa !5
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %70

57:                                               ; preds = %54
  switch i32 %.0, label %66 [
    i32 0, label %58
    i32 1, label %58
    i32 2, label %62
  ]

58:                                               ; preds = %57, %57
  %59 = getelementptr inbounds i8, ptr %1, i64 72
  %60 = load i32, ptr %59, align 8, !tbaa !37
  %61 = icmp eq i32 %60, 0
  br label %100

62:                                               ; preds = %57
  %63 = getelementptr inbounds i8, ptr %1, i64 72
  %64 = load i32, ptr %63, align 8, !tbaa !37
  %65 = icmp slt i32 %64, 1
  br label %100

66:                                               ; preds = %57
  %67 = getelementptr inbounds i8, ptr %1, i64 72
  %68 = load i32, ptr %67, align 8, !tbaa !37
  %69 = icmp sgt i32 %68, -1
  br label %100

70:                                               ; preds = %54
  switch i32 %.0, label %79 [
    i32 0, label %71
    i32 1, label %71
    i32 2, label %75
  ]

71:                                               ; preds = %70, %70
  %72 = getelementptr inbounds i8, ptr %1, i64 72
  %73 = load i32, ptr %72, align 8, !tbaa !37
  %74 = icmp ne i32 %73, 0
  br label %100

75:                                               ; preds = %70
  %76 = getelementptr inbounds i8, ptr %1, i64 72
  %77 = load i32, ptr %76, align 8, !tbaa !37
  %78 = icmp sgt i32 %77, 0
  br label %100

79:                                               ; preds = %70
  %80 = getelementptr inbounds i8, ptr %1, i64 72
  %81 = load i32, ptr %80, align 8, !tbaa !37
  %82 = icmp slt i32 %81, 0
  br label %100

83:                                               ; preds = %25
  %84 = getelementptr inbounds i8, ptr %1, i64 64
  %85 = load i32, ptr %84, align 8, !tbaa !16
  %86 = icmp eq i32 %85, 0
  br i1 %86, label %87, label %100

87:                                               ; preds = %83
  switch i32 %.0, label %96 [
    i32 0, label %88
    i32 1, label %88
    i32 2, label %92
  ]

88:                                               ; preds = %87, %87
  %89 = getelementptr inbounds i8, ptr %1, i64 72
  %90 = load i32, ptr %89, align 8, !tbaa !37
  %91 = icmp eq i32 %90, 0
  br label %100

92:                                               ; preds = %87
  %93 = getelementptr inbounds i8, ptr %1, i64 72
  %94 = load i32, ptr %93, align 8, !tbaa !37
  %95 = icmp slt i32 %94, 1
  br label %100

96:                                               ; preds = %87
  %97 = getelementptr inbounds i8, ptr %1, i64 72
  %98 = load i32, ptr %97, align 8, !tbaa !37
  %99 = icmp sgt i32 %98, -1
  br label %100

100:                                              ; preds = %25, %83, %22, %19, %14, %8, %96, %92, %88, %79, %75, %71, %66, %62, %58, %50, %46, %42, %37, %33, %29
  %.031 = phi i1 [ %99, %96 ], [ %95, %92 ], [ %91, %88 ], [ %69, %66 ], [ %65, %62 ], [ %61, %58 ], [ %82, %79 ], [ %78, %75 ], [ %74, %71 ], [ %53, %50 ], [ %49, %46 ], [ %45, %42 ], [ %40, %37 ], [ %36, %33 ], [ %32, %29 ], [ false, %8 ], [ false, %14 ], [ false, %19 ], [ false, %22 ], [ true, %83 ], [ true, %25 ]
  ret i1 %.031
}

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

!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, !12, i64 56}
!6 = !{!"_ZTSN10ClipperLib5TEdgeE", !7, i64 0, !7, i64 16, !7, i64 32, !11, i64 48, !12, i64 56, !13, i64 60, !14, i64 64, !14, i64 68, !14, i64 72, !14, i64 76, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128}
!7 = !{!"_ZTSN10ClipperLib8IntPointE", !8, i64 0, !8, i64 8}
!8 = !{!"long long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"double", !9, i64 0}
!12 = !{!"_ZTSN10ClipperLib8PolyTypeE", !9, i64 0}
!13 = !{!"_ZTSN10ClipperLib8EdgeSideE", !9, i64 0}
!14 = !{!"int", !9, i64 0}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!6, !14, i64 64}
!17 = !{!6, !14, i64 68}
!18 = !{!19, !28, i64 80}
!19 = !{!"_ZTSN10ClipperLib7ClipperE", !20, i64 8, !20, i64 32, !24, i64 56, !28, i64 80, !29, i64 88, !15, i64 112, !35, i64 120, !36, i64 124, !36, i64 128, !35, i64 132, !35, i64 133, !35, i64 134}
!20 = !{!"_ZTSSt6vectorIPN10ClipperLib4JoinESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib4JoinESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib4JoinESaIS2_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib4JoinESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!24 = !{!"_ZTSSt6vectorIPN10ClipperLib13IntersectNodeESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib13IntersectNodeESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib13IntersectNodeESaIS2_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib13IntersectNodeESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!28 = !{!"_ZTSN10ClipperLib8ClipTypeE", !9, i64 0}
!29 = !{!"_ZTSNSt7__cxx114listIxSaIxEEE", !30, i64 0}
!30 = !{!"_ZTSNSt7__cxx1110_List_baseIxSaIxEEE", !31, i64 0}
!31 = !{!"_ZTSNSt7__cxx1110_List_baseIxSaIxEE10_List_implE", !32, i64 0}
!32 = !{!"_ZTSNSt8__detail17_List_node_headerE", !33, i64 0, !34, i64 16}
!33 = !{!"_ZTSNSt8__detail15_List_node_baseE", !15, i64 0, !15, i64 8}
!34 = !{!"long", !9, i64 0}
!35 = !{!"bool", !9, i64 0}
!36 = !{!"_ZTSN10ClipperLib12PolyFillTypeE", !9, i64 0}
!37 = !{!6, !14, i64 72}


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