; LLVM IR from Lut1n/ImpGears :: src/ImpGears/Geometry/Polygon.ll (ZN3imp7Polygon8applyOp2ERKS0_S2_NS0_6OpTypeE)

; 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.imp::Polygon" = type { %"class.imp::Object", %"class.std::vector" }
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<imp::Path, std::allocator<imp::Path>>::_Vector_impl" }
%"struct.std::_Vector_base<imp::Path, std::allocator<imp::Path>>::_Vector_impl" = type { %"struct.std::_Vector_base<imp::Path, std::allocator<imp::Path>>::_Vector_impl_data" }
%"struct.std::_Vector_base<imp::Path, std::allocator<imp::Path>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<imp::Intersection, std::allocator<imp::Intersection>>::_Vector_impl" }
%"struct.std::_Vector_base<imp::Intersection, std::allocator<imp::Intersection>>::_Vector_impl" = type { %"struct.std::_Vector_base<imp::Intersection, std::allocator<imp::Intersection>>::_Vector_impl_data" }
%"struct.std::_Vector_base<imp::Intersection, std::allocator<imp::Intersection>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.14" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.18" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3imp4PathESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3imp4PathESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp7Polygon8addPathsERKSt6vectorINS_4PathESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp7Polygon8applyOp2ERKS0_S2_NS0_6OpTypeE(ptr dead_on_unwind noalias writable sret(%"class.imp::Polygon") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(48) %2, i32 noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i1, align 1
  %10 = alloca %"class.imp::Polygon", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.imp::Polygon", align 8
  %14 = alloca %"class.std::vector.9", align 8
  %15 = alloca %"class.std::vector.14", align 8
  %16 = alloca i8, align 1
  %17 = alloca %"class.std::allocator.18", align 1
  %18 = alloca %"class.std::vector.14", align 8
  %19 = alloca i8, align 1
  %20 = alloca %"class.std::allocator.18", align 1
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i8, align 1
  %25 = alloca %"struct.std::_Bit_reference", align 8
  %26 = alloca %"struct.std::_Bit_reference", align 8
  %27 = alloca i32, align 4
  %28 = alloca %"struct.std::_Bit_reference", align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %"struct.std::_Bit_reference", align 8
  %32 = alloca %"class.std::vector", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  store i1 false, ptr %9, align 1
  call void @_ZN3imp7PolygonC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %0)
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #5
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN3imp7PolygonC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(48) %33)
          to label %34 unwind label %50

34:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 48, ptr %13) #5
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3imp7PolygonC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 8 dereferenceable(48) %35)
          to label %36 unwind label %54

36:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
  call void @_ZNSt6vectorIN3imp12IntersectionESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #5
  %37 = getelementptr inbounds %"class.imp::Polygon", ptr %10, i32 0, i32 1
  %38 = call noundef i64 @_ZNKSt6vectorIN3imp4PathESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  store i8 1, ptr %16, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #5
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %38, ptr noundef nonnull align 1 dereferenceable(1) %16, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %39 unwind label %58

39:                                               ; preds = %36
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #5
  %40 = getelementptr inbounds %"class.imp::Polygon", ptr %13, i32 0, i32 1
  %41 = call noundef i64 @_ZNKSt6vectorIN3imp4PathESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  store i8 1, ptr %19, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %18, i64 noundef %41, ptr noundef nonnull align 1 dereferenceable(1) %19, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %42 unwind label %62

42:                                               ; preds = %39
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !13
  br label %43

43:                                               ; preds = %125, %42
  %44 = load i32, ptr %21, align 4, !tbaa !13
  %45 = getelementptr inbounds %"class.imp::Polygon", ptr %10, i32 0, i32 1
  %46 = call noundef i64 @_ZNKSt6vectorIN3imp4PathESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #5
  %47 = trunc i64 %46 to i32
  %48 = icmp slt i32 %44, %47
  br i1 %48, label %66, label %49

49:                                               ; preds = %43
  store i32 2, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %128

50:                                               ; preds = %4
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %11, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %12, align 4
  br label %227

54:                                               ; preds = %34
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %11, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %12, align 4
  br label %226

58:                                               ; preds = %36
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %11, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  br label %225

62:                                               ; preds = %39
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %11, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  br label %224

66:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !13
  br label %67

67:                                               ; preds = %120, %66
  %68 = load i32, ptr %23, align 4, !tbaa !13
  %69 = getelementptr inbounds %"class.imp::Polygon", ptr %13, i32 0, i32 1
  %70 = call noundef i64 @_ZNKSt6vectorIN3imp4PathESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %69) #5
  %71 = trunc i64 %70 to i32
  %72 = icmp slt i32 %68, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %67
  store i32 5, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %124

74:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #5
  %75 = getelementptr inbounds %"class.imp::Polygon", ptr %10, i32 0, i32 1
  %76 = load i32, ptr %21, align 4, !tbaa !13
  %77 = sext i32 %76 to i64
  %78 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3imp4PathESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %77) #5
  %79 = getelementptr inbounds %"class.imp::Polygon", ptr %13, i32 0, i32 1
  %80 = load i32, ptr %23, align 4, !tbaa !13
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3imp4PathESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %81) #5
  %83 = invoke noundef zeroext i1 @_ZN3imp12Intersection8resolve2ERNS_4PathES2_RSt6vectorIS0_SaIS0_EE(ptr noundef nonnull align 8 dereferenceable(48) %78, ptr noundef nonnull align 8 dereferenceable(48) %82, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %84 unwind label %107

84:                                               ; preds = %74
  %85 = zext i1 %83 to i8
  store i8 %85, ptr %24, align 1, !tbaa !11
  %86 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %87 = trunc i8 %86 to i1
  br i1 %87, label %88, label %119

88:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %89 = load i32, ptr %21, align 4, !tbaa !13
  %90 = sext i32 %89 to i64
  %91 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %90)
          to label %92 unwind label %111

92:                                               ; preds = %88
  %93 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %94 = extractvalue { ptr, i64 } %91, 0
  store ptr %94, ptr %93, align 8
  %95 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %96 = extractvalue { ptr, i64 } %91, 1
  store i64 %96, ptr %95, align 8
  %97 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %25, i1 noundef zeroext false) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %98 = load i32, ptr %23, align 4, !tbaa !13
  %99 = sext i32 %98 to i64
  %100 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %18, i64 noundef %99)
          to label %101 unwind label %115

101:                                              ; preds = %92
  %102 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %103 = extractvalue { ptr, i64 } %100, 0
  store ptr %103, ptr %102, align 8
  %104 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %105 = extractvalue { ptr, i64 } %100, 1
  store i64 %105, ptr %104, align 8
  %106 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %26, i1 noundef zeroext false) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  br label %119

107:                                              ; preds = %74
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %11, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %12, align 4
  br label %123

111:                                              ; preds = %88
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %11, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  br label %123

115:                                              ; preds = %92
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %11, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  br label %123

119:                                              ; preds = %101, %84
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %23, align 4, !tbaa !13
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %23, align 4, !tbaa !13
  br label %67, !llvm.loop !17

123:                                              ; preds = %115, %111, %107
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %223

124:                                              ; preds = %73
  br label %125

125:                                              ; preds = %124
  %126 = load i32, ptr %21, align 4, !tbaa !13
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %21, align 4, !tbaa !13
  br label %43, !llvm.loop !19

128:                                              ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 0, ptr %27, align 4, !tbaa !13
  br label %129

129:                                              ; preds = %162, %128
  %130 = load i32, ptr %27, align 4, !tbaa !13
  %131 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %15) #5
  %132 = trunc i64 %131 to i32
  %133 = icmp slt i32 %130, %132
  br i1 %133, label %135, label %134

134:                                              ; preds = %129
  store i32 8, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %166

135:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  %136 = load i32, ptr %27, align 4, !tbaa !13
  %137 = sext i32 %136 to i64
  %138 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef %137)
          to label %139 unwind label %153

139:                                              ; preds = %135
  %140 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 0
  %141 = extractvalue { ptr, i64 } %138, 0
  store ptr %141, ptr %140, align 8
  %142 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 1
  %143 = extractvalue { ptr, i64 } %138, 1
  store i64 %143, ptr %142, align 8
  %144 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %28) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  br i1 %144, label %145, label %161

145:                                              ; preds = %139
  %146 = getelementptr inbounds %"class.imp::Polygon", ptr %10, i32 0, i32 1
  %147 = load i32, ptr %27, align 4, !tbaa !13
  %148 = sext i32 %147 to i64
  %149 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3imp4PathESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %146, i64 noundef %148) #5
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @_ZN3imp19analyticResolution2ERKNS_4PathERKNS_7PolygonENS3_6OpTypeERS3_(ptr noundef nonnull align 8 dereferenceable(48) %149, ptr noundef nonnull align 8 dereferenceable(48) %150, i32 noundef %151, ptr noundef nonnull align 8 dereferenceable(48) %0)
          to label %152 unwind label %157

152:                                              ; preds = %145
  br label %161

153:                                              ; preds = %135
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %11, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  br label %165

157:                                              ; preds = %145
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %11, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %12, align 4
  br label %165

161:                                              ; preds = %152, %139
  br label %162

162:                                              ; preds = %161
  %163 = load i32, ptr %27, align 4, !tbaa !13
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %27, align 4, !tbaa !13
  br label %129, !llvm.loop !20

165:                                              ; preds = %157, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %223

166:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %167 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %167, ptr %29, align 4, !tbaa !9
  %168 = load i32, ptr %29, align 4, !tbaa !9
  %169 = icmp eq i32 %168, 2
  br i1 %169, label %170, label %171

170:                                              ; preds = %166
  store i32 3, ptr %29, align 4, !tbaa !9
  br label %171

171:                                              ; preds = %170, %166
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  store i32 0, ptr %30, align 4, !tbaa !13
  br label %172

172:                                              ; preds = %205, %171
  %173 = load i32, ptr %30, align 4, !tbaa !13
  %174 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %18) #5
  %175 = trunc i64 %174 to i32
  %176 = icmp slt i32 %173, %175
  br i1 %176, label %178, label %177

177:                                              ; preds = %172
  store i32 11, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %209

178:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #5
  %179 = load i32, ptr %30, align 4, !tbaa !13
  %180 = sext i32 %179 to i64
  %181 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %18, i64 noundef %180)
          to label %182 unwind label %196

182:                                              ; preds = %178
  %183 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 0
  %184 = extractvalue { ptr, i64 } %181, 0
  store ptr %184, ptr %183, align 8
  %185 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 1
  %186 = extractvalue { ptr, i64 } %181, 1
  store i64 %186, ptr %185, align 8
  %187 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %31) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #5
  br i1 %187, label %188, label %204

188:                                              ; preds = %182
  %189 = getelementptr inbounds %"class.imp::Polygon", ptr %13, i32 0, i32 1
  %190 = load i32, ptr %30, align 4, !tbaa !13
  %191 = sext i32 %190 to i64
  %192 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3imp4PathESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %189, i64 noundef %191) #5
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = load i32, ptr %29, align 4, !tbaa !9
  invoke void @_ZN3imp19analyticResolution2ERKNS_4PathERKNS_7PolygonENS3_6OpTypeERS3_(ptr noundef nonnull align 8 dereferenceable(48) %192, ptr noundef nonnull align 8 dereferenceable(48) %193, i32 noundef %194, ptr noundef nonnull align 8 dereferenceable(48) %0)
          to label %195 unwind label %200

195:                                              ; preds = %188
  br label %204

196:                                              ; preds = %178
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %11, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #5
  br label %208

200:                                              ; preds = %188
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %11, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %12, align 4
  br label %208

204:                                              ; preds = %195, %182
  br label %205

205:                                              ; preds = %204
  %206 = load i32, ptr %30, align 4, !tbaa !13
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %30, align 4, !tbaa !13
  br label %172, !llvm.loop !21

208:                                              ; preds = %200, %196
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %222

209:                                              ; preds = %177
  %210 = call noundef i64 @_ZNKSt6vectorIN3imp12IntersectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  %211 = icmp ugt i64 %210, 0
  br i1 %211, label %212, label %220

212:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #5
  call void @_ZNSt6vectorIN3imp4PathESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  %213 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @_ZN3imp16findAllPathFrom2ERKNS_7PolygonES2_RKSt6vectorINS_12IntersectionESaIS4_EENS0_6OpTypeERS3_INS_4PathESaISA_EE(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef %213, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %214 unwind label %216

214:                                              ; preds = %212
  invoke void @_ZN3imp7Polygon8addPathsERKSt6vectorINS_4PathESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %215 unwind label %216

215:                                              ; preds = %214
  call void @_ZNSt6vectorIN3imp4PathESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #5
  br label %220

216:                                              ; preds = %214, %212
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %11, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %12, align 4
  call void @_ZNSt6vectorIN3imp4PathESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #5
  br label %222

220:                                              ; preds = %215, %209
  store i1 true, ptr %9, align 1
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #5
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #5
  call void @_ZNSt6vectorIN3imp12IntersectionESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @_ZN3imp7PolygonD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #5
  call void @_ZN3imp7PolygonD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #5
  %221 = load i1, ptr %9, align 1
  br i1 %221, label %229, label %228

222:                                              ; preds = %216, %208
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %223

223:                                              ; preds = %222, %165, %123
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #5
  br label %224

224:                                              ; preds = %223, %62
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #5
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #5
  br label %225

225:                                              ; preds = %224, %58
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #5
  call void @_ZNSt6vectorIN3imp12IntersectionESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @_ZN3imp7PolygonD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #5
  br label %226

226:                                              ; preds = %225, %54
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #5
  call void @_ZN3imp7PolygonD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  br label %227

227:                                              ; preds = %226, %50
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #5
  call void @_ZN3imp7PolygonD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  br label %230

228:                                              ; preds = %220
  call void @_ZN3imp7PolygonD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  br label %229

229:                                              ; preds = %228, %220
  ret void

230:                                              ; preds = %227
  %231 = load ptr, ptr %11, align 8
  %232 = load i32, ptr %12, align 4
  %233 = insertvalue { ptr, i32 } poison, ptr %231, 0
  %234 = insertvalue { ptr, i32 } %233, i32 %232, 1
  resume { ptr, i32 } %234
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp19analyticResolution2ERKNS_4PathERKNS_7PolygonENS3_6OpTypeERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, ptr noundef nonnull align 8 dereferenceable(48)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp16findAllPathFrom2ERKNS_7PolygonES2_RKSt6vectorINS_12IntersectionESaIS4_EENS0_6OpTypeERS3_INS_4PathESaISA_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3imp7PolygonC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3imp12IntersectionESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3imp4PathESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare noundef zeroext i1 @_ZN3imp12Intersection8resolve2ERNS_4PathES2_RSt6vectorIS0_SaIS0_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3imp4PathESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3imp12IntersectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3imp12IntersectionESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

declare void @_ZN3imp7PolygonC1Ev(ptr)

declare void @_ZN3imp7PolygonD1Ev(ptr)

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { "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 = { 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 = !{!"_ZTSN3imp7Polygon6OpTypeE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.imp::Polygon" = type { %"class.imp::Object", %"class.std::vector" }
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<imp::Path, std::allocator<imp::Path>>::_Vector_impl" }
%"struct.std::_Vector_base<imp::Path, std::allocator<imp::Path>>::_Vector_impl" = type { %"struct.std::_Vector_base<imp::Path, std::allocator<imp::Path>>::_Vector_impl_data" }
%"struct.std::_Vector_base<imp::Path, std::allocator<imp::Path>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<imp::Intersection, std::allocator<imp::Intersection>>::_Vector_impl" }
%"struct.std::_Vector_base<imp::Intersection, std::allocator<imp::Intersection>>::_Vector_impl" = type { %"struct.std::_Vector_base<imp::Intersection, std::allocator<imp::Intersection>>::_Vector_impl_data" }
%"struct.std::_Vector_base<imp::Intersection, std::allocator<imp::Intersection>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.14" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.18" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3imp4PathESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3imp4PathESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp7Polygon8addPathsERKSt6vectorINS_4PathESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp7Polygon8applyOp2ERKS0_S2_NS0_6OpTypeE(ptr dead_on_unwind noalias writable sret(%"class.imp::Polygon") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(48) %2, i32 noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.imp::Polygon", align 8
  %6 = alloca %"class.imp::Polygon", align 8
  %7 = alloca %"class.std::vector.9", align 8
  %8 = alloca %"class.std::vector.14", align 8
  %9 = alloca i8, align 1
  %10 = alloca %"class.std::allocator.18", align 1
  %11 = alloca %"class.std::vector.14", align 8
  %12 = alloca i8, align 1
  %13 = alloca %"class.std::allocator.18", align 1
  %14 = alloca %"struct.std::_Bit_reference", align 8
  %15 = alloca %"struct.std::_Bit_reference", align 8
  %16 = alloca %"struct.std::_Bit_reference", align 8
  %17 = alloca %"struct.std::_Bit_reference", align 8
  %18 = alloca %"class.std::vector", align 8
  tail call void @_ZN3imp7PolygonC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %0)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #5
  invoke void @_ZN3imp7PolygonC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %19 unwind label %39

19:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #5
  invoke void @_ZN3imp7PolygonC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %2)
          to label %20 unwind label %41

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  call void @_ZNSt6vectorIN3imp12IntersectionESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #5
  %21 = getelementptr inbounds i8, ptr %5, i64 24
  %22 = call noundef i64 @_ZNKSt6vectorIN3imp4PathESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #5
  store i8 1, ptr %9, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %8, i64 noundef %22, ptr noundef nonnull align 1 dereferenceable(1) %9, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %23 unwind label %43

23:                                               ; preds = %20
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #5
  %24 = getelementptr inbounds i8, ptr %6, i64 24
  %25 = call noundef i64 @_ZNKSt6vectorIN3imp4PathESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #5
  store i8 1, ptr %12, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #5
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef %25, ptr noundef nonnull align 1 dereferenceable(1) %12, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %26 unwind label %45

26:                                               ; preds = %23
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  %27 = call noundef i64 @_ZNKSt6vectorIN3imp4PathESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  %28 = trunc i64 %27 to i32
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.preheader52.lr.ph, label %.preheader

.preheader52.lr.ph:                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %14, i64 8
  %31 = getelementptr inbounds i8, ptr %15, i64 8
  br label %.preheader52

.preheader52:                                     ; preds = %.preheader52.lr.ph, %._crit_edge
  %indvars.iv63 = phi i64 [ 0, %.preheader52.lr.ph ], [ %indvars.iv.next64, %._crit_edge ]
  %32 = call noundef i64 @_ZNKSt6vectorIN3imp4PathESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  %33 = trunc i64 %32 to i32
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph, label %._crit_edge

.preheader:                                       ; preds = %._crit_edge, %26
  %35 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  %36 = trunc i64 %35 to i32
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.lr.ph56, label %._crit_edge57

.lr.ph56:                                         ; preds = %.preheader
  %38 = getelementptr inbounds i8, ptr %16, i64 8
  br label %80

39:                                               ; preds = %4
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %123

41:                                               ; preds = %19
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %122

43:                                               ; preds = %20
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  br label %121

45:                                               ; preds = %23
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  br label %120

._crit_edge:                                      ; preds = %71, %.preheader52
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %47 = call noundef i64 @_ZNKSt6vectorIN3imp4PathESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  %sext72 = shl i64 %47, 32
  %48 = ashr exact i64 %sext72, 32
  %49 = icmp slt i64 %indvars.iv.next64, %48
  br i1 %49, label %.preheader52, label %.preheader, !llvm.loop !9

.lr.ph:                                           ; preds = %.preheader52, %71
  %indvars.iv = phi i64 [ %indvars.iv.next, %71 ], [ 0, %.preheader52 ]
  %50 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3imp4PathESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %indvars.iv63) #5
  %51 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3imp4PathESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %indvars.iv) #5
  %52 = invoke noundef zeroext i1 @_ZN3imp12Intersection8resolve2ERNS_4PathES2_RSt6vectorIS0_SaIS0_EE(ptr noundef nonnull align 8 dereferenceable(48) %50, ptr noundef nonnull align 8 dereferenceable(48) %51, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %53 unwind label %65

53:                                               ; preds = %.lr.ph
  br i1 %52, label %54, label %71

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  %55 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %8, i64 noundef %indvars.iv63)
          to label %56 unwind label %67

56:                                               ; preds = %54
  %57 = extractvalue { ptr, i64 } %55, 0
  store ptr %57, ptr %14, align 8
  %58 = extractvalue { ptr, i64 } %55, 1
  store i64 %58, ptr %30, align 8
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext false) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #5
  %60 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef %indvars.iv)
          to label %61 unwind label %69

61:                                               ; preds = %56
  %62 = extractvalue { ptr, i64 } %60, 0
  store ptr %62, ptr %15, align 8
  %63 = extractvalue { ptr, i64 } %60, 1
  store i64 %63, ptr %31, align 8
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %15, i1 noundef zeroext false) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  br label %71

65:                                               ; preds = %.lr.ph
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %119

67:                                               ; preds = %54
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  br label %119

69:                                               ; preds = %56
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  br label %119

71:                                               ; preds = %61, %53
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %72 = call noundef i64 @_ZNKSt6vectorIN3imp4PathESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  %sext = shl i64 %72, 32
  %73 = ashr exact i64 %sext, 32
  %74 = icmp slt i64 %indvars.iv.next, %73
  br i1 %74, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge57:                                    ; preds = %92, %.preheader
  %75 = icmp eq i32 %3, 2
  %spec.store.select = select i1 %75, i32 3, i32 %3
  %76 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %11) #5
  %77 = trunc i64 %76 to i32
  %78 = icmp sgt i32 %77, 0
  br i1 %78, label %.lr.ph60, label %._crit_edge61

.lr.ph60:                                         ; preds = %._crit_edge57
  %79 = getelementptr inbounds i8, ptr %17, i64 8
  br label %97

80:                                               ; preds = %.lr.ph56, %92
  %indvars.iv66 = phi i64 [ 0, %.lr.ph56 ], [ %indvars.iv.next67, %92 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #5
  %81 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %8, i64 noundef %indvars.iv66)
          to label %82 unwind label %88

82:                                               ; preds = %80
  %83 = extractvalue { ptr, i64 } %81, 0
  store ptr %83, ptr %16, align 8
  %84 = extractvalue { ptr, i64 } %81, 1
  store i64 %84, ptr %38, align 8
  %85 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  br i1 %85, label %86, label %92

86:                                               ; preds = %82
  %87 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3imp4PathESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %indvars.iv66) #5
  invoke void @_ZN3imp19analyticResolution2ERKNS_4PathERKNS_7PolygonENS3_6OpTypeERS3_(ptr noundef nonnull align 8 dereferenceable(48) %87, ptr noundef nonnull align 8 dereferenceable(48) %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(48) %0)
          to label %92 unwind label %90

88:                                               ; preds = %80
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  br label %119

90:                                               ; preds = %86
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %119

92:                                               ; preds = %82, %86
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %93 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  %sext73 = shl i64 %93, 32
  %94 = ashr exact i64 %sext73, 32
  %95 = icmp slt i64 %indvars.iv.next67, %94
  br i1 %95, label %80, label %._crit_edge57, !llvm.loop !12

._crit_edge61:                                    ; preds = %109, %._crit_edge57
  %96 = call noundef i64 @_ZNKSt6vectorIN3imp12IntersectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %.not = icmp eq i64 %96, 0
  br i1 %.not, label %118, label %113

97:                                               ; preds = %.lr.ph60, %109
  %indvars.iv69 = phi i64 [ 0, %.lr.ph60 ], [ %indvars.iv.next70, %109 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #5
  %98 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef %indvars.iv69)
          to label %99 unwind label %105

99:                                               ; preds = %97
  %100 = extractvalue { ptr, i64 } %98, 0
  store ptr %100, ptr %17, align 8
  %101 = extractvalue { ptr, i64 } %98, 1
  store i64 %101, ptr %79, align 8
  %102 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  br i1 %102, label %103, label %109

103:                                              ; preds = %99
  %104 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3imp4PathESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %indvars.iv69) #5
  invoke void @_ZN3imp19analyticResolution2ERKNS_4PathERKNS_7PolygonENS3_6OpTypeERS3_(ptr noundef nonnull align 8 dereferenceable(48) %104, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %spec.store.select, ptr noundef nonnull align 8 dereferenceable(48) %0)
          to label %109 unwind label %107

105:                                              ; preds = %97
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  br label %119

107:                                              ; preds = %103
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %119

109:                                              ; preds = %99, %103
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %110 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %11) #5
  %sext74 = shl i64 %110, 32
  %111 = ashr exact i64 %sext74, 32
  %112 = icmp slt i64 %indvars.iv.next70, %111
  br i1 %112, label %97, label %._crit_edge61, !llvm.loop !13

113:                                              ; preds = %._crit_edge61
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #5
  call void @_ZNSt6vectorIN3imp4PathESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  invoke void @_ZN3imp16findAllPathFrom2ERKNS_7PolygonES2_RKSt6vectorINS_12IntersectionESaIS4_EENS0_6OpTypeERS3_INS_4PathESaISA_EE(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %114 unwind label %116

114:                                              ; preds = %113
  invoke void @_ZN3imp7Polygon8addPathsERKSt6vectorINS_4PathESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %115 unwind label %116

115:                                              ; preds = %114
  call void @_ZNSt6vectorIN3imp4PathESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #5
  br label %118

116:                                              ; preds = %114, %113
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3imp4PathESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #5
  br label %119

118:                                              ; preds = %115, %._crit_edge61
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #5
  call void @_ZNSt6vectorIN3imp12IntersectionESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @_ZN3imp7PolygonD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #5
  call void @_ZN3imp7PolygonD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #5
  ret void

119:                                              ; preds = %116, %107, %105, %88, %90, %65, %67, %69
  %.pn45.pn = phi { ptr, i32 } [ %70, %69 ], [ %68, %67 ], [ %66, %65 ], [ %91, %90 ], [ %89, %88 ], [ %117, %116 ], [ %108, %107 ], [ %106, %105 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #5
  br label %120

120:                                              ; preds = %119, %45
  %.pn45.pn.pn = phi { ptr, i32 } [ %.pn45.pn, %119 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #5
  br label %121

121:                                              ; preds = %120, %43
  %.pn45.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn, %120 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #5
  call void @_ZNSt6vectorIN3imp12IntersectionESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @_ZN3imp7PolygonD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  br label %122

122:                                              ; preds = %121, %41
  %.pn45.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn.pn, %121 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #5
  call void @_ZN3imp7PolygonD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  br label %123

123:                                              ; preds = %122, %39
  %.pn45.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn.pn.pn, %122 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #5
  call void @_ZN3imp7PolygonD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  resume { ptr, i32 } %.pn45.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp19analyticResolution2ERKNS_4PathERKNS_7PolygonENS3_6OpTypeERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp16findAllPathFrom2ERKNS_7PolygonES2_RKSt6vectorINS_12IntersectionESaIS4_EENS0_6OpTypeERS3_INS_4PathESaISA_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3imp7PolygonC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3imp12IntersectionESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3imp4PathESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare noundef zeroext i1 @_ZN3imp12Intersection8resolve2ERNS_4PathES2_RSt6vectorIS0_SaIS0_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN3imp4PathESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3imp12IntersectionESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3imp12IntersectionESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

declare void @_ZN3imp7PolygonC1Ev(ptr) local_unnamed_addr

declare void @_ZN3imp7PolygonD1Ev(ptr) local_unnamed_addr

attributes #0 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { "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 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


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