; 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::IntPoint" = type { i64, i64 }
%"class.ClipperLib::ClipperOffset" = type { double, double, %"class.std::vector.28", %"class.std::vector", %"class.std::vector", %"class.std::vector.49", double, double, double, double, double, double, %"struct.ClipperLib::IntPoint", %"class.ClipperLib::PolyNode" }
%"class.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<std::vector<ClipperLib::IntPoint>, std::allocator<std::vector<ClipperLib::IntPoint>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<ClipperLib::IntPoint>, std::allocator<std::vector<ClipperLib::IntPoint>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<ClipperLib::IntPoint>, std::allocator<std::vector<ClipperLib::IntPoint>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<ClipperLib::IntPoint>, std::allocator<std::vector<ClipperLib::IntPoint>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ClipperLib::IntPoint, std::allocator<ClipperLib::IntPoint>>::_Vector_impl" }
%"struct.std::_Vector_base<ClipperLib::IntPoint, std::allocator<ClipperLib::IntPoint>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClipperLib::IntPoint, std::allocator<ClipperLib::IntPoint>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClipperLib::IntPoint, std::allocator<ClipperLib::IntPoint>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.49" = type { %"struct.std::_Vector_base.50" }
%"struct.std::_Vector_base.50" = type { %"struct.std::_Vector_base<ClipperLib::DoublePoint, std::allocator<ClipperLib::DoublePoint>>::_Vector_impl" }
%"struct.std::_Vector_base<ClipperLib::DoublePoint, std::allocator<ClipperLib::DoublePoint>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClipperLib::DoublePoint, std::allocator<ClipperLib::DoublePoint>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClipperLib::DoublePoint, std::allocator<ClipperLib::DoublePoint>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.ClipperLib::PolyNode" = type { ptr, %"class.std::vector", %"class.std::vector.0", ptr, i32, i8, i32, i32 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<ClipperLib::PolyNode *, std::allocator<ClipperLib::PolyNode *>>::_Vector_impl" }
%"struct.std::_Vector_base<ClipperLib::PolyNode *, std::allocator<ClipperLib::PolyNode *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ClipperLib::PolyNode *, std::allocator<ClipperLib::PolyNode *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ClipperLib::PolyNode *, std::allocator<ClipperLib::PolyNode *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.ClipperLib::DoublePoint" = type { double, double }

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN10ClipperLib5RoundEd(double noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ClipperLib13ClipperOffset11OffsetPointEiRiNS_8JoinTypeE(ptr noundef nonnull align 8 dereferenceable(256) %0, i32 noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef %3) #4 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca %"struct.ClipperLib::IntPoint", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.ClipperLib::IntPoint", align 8
  %13 = alloca %"struct.ClipperLib::IntPoint", align 8
  %14 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !11
  %15 = load ptr, ptr %5, align 8
  %16 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = load i32, ptr %17, align 4, !tbaa !9
  %19 = sext i32 %18 to i64
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %19) #5
  %21 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %20, i32 0, i32 0
  %22 = load double, ptr %21, align 8, !tbaa !13
  %23 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %24 = load i32, ptr %6, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %25) #5
  %27 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %26, i32 0, i32 1
  %28 = load double, ptr %27, align 8, !tbaa !16
  %29 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %30 = load i32, ptr %6, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %31) #5
  %33 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %32, i32 0, i32 0
  %34 = load double, ptr %33, align 8, !tbaa !13
  %35 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %38) #5
  %40 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %39, i32 0, i32 1
  %41 = load double, ptr %40, align 8, !tbaa !16
  %42 = fmul double %34, %41
  %43 = fneg double %42
  %44 = call double @llvm.fmuladd.f64(double %22, double %28, double %43)
  %45 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 7
  store double %44, ptr %45, align 8, !tbaa !17
  %46 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 7
  %47 = load double, ptr %46, align 8, !tbaa !17
  %48 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 6
  %49 = load double, ptr %48, align 8, !tbaa !40
  %50 = fmul double %47, %49
  %51 = call double @llvm.fabs.f64(double %50)
  %52 = fcmp olt double %51, 1.000000e+00
  br i1 %52, label %53, label %126

53:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %54 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = load i32, ptr %55, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %57) #5
  %59 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %58, i32 0, i32 0
  %60 = load double, ptr %59, align 8, !tbaa !13
  %61 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %62 = load i32, ptr %6, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %63) #5
  %65 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %64, i32 0, i32 0
  %66 = load double, ptr %65, align 8, !tbaa !13
  %67 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %69) #5
  %71 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %70, i32 0, i32 1
  %72 = load double, ptr %71, align 8, !tbaa !16
  %73 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %76) #5
  %78 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %77, i32 0, i32 1
  %79 = load double, ptr %78, align 8, !tbaa !16
  %80 = fmul double %72, %79
  %81 = call double @llvm.fmuladd.f64(double %60, double %66, double %80)
  store double %81, ptr %9, align 8, !tbaa !41
  %82 = load double, ptr %9, align 8, !tbaa !41
  %83 = fcmp ogt double %82, 0.000000e+00
  br i1 %83, label %84, label %122

84:                                               ; preds = %53
  %85 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %86 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 3
  %87 = load i32, ptr %6, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %88) #5
  %90 = getelementptr inbounds %"struct.ClipperLib::IntPoint", ptr %89, i32 0, i32 0
  %91 = load i64, ptr %90, align 8, !tbaa !42
  %92 = sitofp i64 %91 to double
  %93 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %96) #5
  %98 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %97, i32 0, i32 0
  %99 = load double, ptr %98, align 8, !tbaa !13
  %100 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 6
  %101 = load double, ptr %100, align 8, !tbaa !40
  %102 = call double @llvm.fmuladd.f64(double %99, double %101, double %92)
  %103 = call noundef i64 @_ZN10ClipperLib5RoundEd(double noundef %102)
  %104 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 3
  %105 = load i32, ptr %6, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %104, i64 noundef %106) #5
  %108 = getelementptr inbounds %"struct.ClipperLib::IntPoint", ptr %107, i32 0, i32 1
  %109 = load i64, ptr %108, align 8, !tbaa !43
  %110 = sitofp i64 %109 to double
  %111 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %114) #5
  %116 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %115, i32 0, i32 1
  %117 = load double, ptr %116, align 8, !tbaa !16
  %118 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 6
  %119 = load double, ptr %118, align 8, !tbaa !40
  %120 = call double @llvm.fmuladd.f64(double %117, double %119, double %110)
  %121 = call noundef i64 @_ZN10ClipperLib5RoundEd(double noundef %120)
  call void @_ZN10ClipperLib8IntPointC2Exx(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %103, i64 noundef %121)
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %85, ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  store i32 1, ptr %11, align 4
  br label %123

122:                                              ; preds = %53
  store i32 0, ptr %11, align 4
  br label %123

123:                                              ; preds = %122, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %124 = load i32, ptr %11, align 4
  switch i32 %124, label %284 [
    i32 0, label %125
    i32 1, label %283
  ]

125:                                              ; preds = %123
  br label %140

126:                                              ; preds = %4
  %127 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 7
  %128 = load double, ptr %127, align 8, !tbaa !17
  %129 = fcmp ogt double %128, 1.000000e+00
  br i1 %129, label %130, label %132

130:                                              ; preds = %126
  %131 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 7
  store double 1.000000e+00, ptr %131, align 8, !tbaa !17
  br label %139

132:                                              ; preds = %126
  %133 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 7
  %134 = load double, ptr %133, align 8, !tbaa !17
  %135 = fcmp olt double %134, -1.000000e+00
  br i1 %135, label %136, label %138

136:                                              ; preds = %132
  %137 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 7
  store double -1.000000e+00, ptr %137, align 8, !tbaa !17
  br label %138

138:                                              ; preds = %136, %132
  br label %139

139:                                              ; preds = %138, %130
  br label %140

140:                                              ; preds = %139, %125
  %141 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 7
  %142 = load double, ptr %141, align 8, !tbaa !17
  %143 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 6
  %144 = load double, ptr %143, align 8, !tbaa !40
  %145 = fmul double %142, %144
  %146 = fcmp olt double %145, 0.000000e+00
  br i1 %146, label %147, label %225

147:                                              ; preds = %140
  %148 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %149 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 3
  %150 = load i32, ptr %6, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %151) #5
  %153 = getelementptr inbounds %"struct.ClipperLib::IntPoint", ptr %152, i32 0, i32 0
  %154 = load i64, ptr %153, align 8, !tbaa !42
  %155 = sitofp i64 %154 to double
  %156 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = load i32, ptr %157, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %159) #5
  %161 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %160, i32 0, i32 0
  %162 = load double, ptr %161, align 8, !tbaa !13
  %163 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 6
  %164 = load double, ptr %163, align 8, !tbaa !40
  %165 = call double @llvm.fmuladd.f64(double %162, double %164, double %155)
  %166 = call noundef i64 @_ZN10ClipperLib5RoundEd(double noundef %165)
  %167 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 3
  %168 = load i32, ptr %6, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %169) #5
  %171 = getelementptr inbounds %"struct.ClipperLib::IntPoint", ptr %170, i32 0, i32 1
  %172 = load i64, ptr %171, align 8, !tbaa !43
  %173 = sitofp i64 %172 to double
  %174 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  %176 = load i32, ptr %175, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %174, i64 noundef %177) #5
  %179 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %178, i32 0, i32 1
  %180 = load double, ptr %179, align 8, !tbaa !16
  %181 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 6
  %182 = load double, ptr %181, align 8, !tbaa !40
  %183 = call double @llvm.fmuladd.f64(double %180, double %182, double %173)
  %184 = call noundef i64 @_ZN10ClipperLib5RoundEd(double noundef %183)
  call void @_ZN10ClipperLib8IntPointC2Exx(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %166, i64 noundef %184)
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %148, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  %185 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 4
  %186 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 3
  %187 = load i32, ptr %6, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %186, i64 noundef %188) #5
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %185, ptr noundef nonnull align 8 dereferenceable(16) %189)
  %190 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %191 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 3
  %192 = load i32, ptr %6, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %191, i64 noundef %193) #5
  %195 = getelementptr inbounds %"struct.ClipperLib::IntPoint", ptr %194, i32 0, i32 0
  %196 = load i64, ptr %195, align 8, !tbaa !42
  %197 = sitofp i64 %196 to double
  %198 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %199 = load i32, ptr %6, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %198, i64 noundef %200) #5
  %202 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %201, i32 0, i32 0
  %203 = load double, ptr %202, align 8, !tbaa !13
  %204 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 6
  %205 = load double, ptr %204, align 8, !tbaa !40
  %206 = call double @llvm.fmuladd.f64(double %203, double %205, double %197)
  %207 = call noundef i64 @_ZN10ClipperLib5RoundEd(double noundef %206)
  %208 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 3
  %209 = load i32, ptr %6, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %208, i64 noundef %210) #5
  %212 = getelementptr inbounds %"struct.ClipperLib::IntPoint", ptr %211, i32 0, i32 1
  %213 = load i64, ptr %212, align 8, !tbaa !43
  %214 = sitofp i64 %213 to double
  %215 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %216 = load i32, ptr %6, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %215, i64 noundef %217) #5
  %219 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %218, i32 0, i32 1
  %220 = load double, ptr %219, align 8, !tbaa !16
  %221 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 6
  %222 = load double, ptr %221, align 8, !tbaa !40
  %223 = call double @llvm.fmuladd.f64(double %220, double %222, double %214)
  %224 = call noundef i64 @_ZN10ClipperLib5RoundEd(double noundef %223)
  call void @_ZN10ClipperLib8IntPointC2Exx(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %207, i64 noundef %224)
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %190, ptr noundef nonnull align 8 dereferenceable(16) %13)
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br label %280

225:                                              ; preds = %140
  %226 = load i32, ptr %8, align 4, !tbaa !11
  switch i32 %226, label %279 [
    i32 2, label %227
    i32 0, label %271
    i32 1, label %275
  ]

227:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %228 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %229 = load i32, ptr %6, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %228, i64 noundef %230) #5
  %232 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %231, i32 0, i32 0
  %233 = load double, ptr %232, align 8, !tbaa !13
  %234 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %235 = load ptr, ptr %7, align 8, !tbaa !5
  %236 = load i32, ptr %235, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %234, i64 noundef %237) #5
  %239 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %238, i32 0, i32 0
  %240 = load double, ptr %239, align 8, !tbaa !13
  %241 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %242 = load i32, ptr %6, align 4, !tbaa !9
  %243 = sext i32 %242 to i64
  %244 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %241, i64 noundef %243) #5
  %245 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %244, i32 0, i32 1
  %246 = load double, ptr %245, align 8, !tbaa !16
  %247 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 5
  %248 = load ptr, ptr %7, align 8, !tbaa !5
  %249 = load i32, ptr %248, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %247, i64 noundef %250) #5
  %252 = getelementptr inbounds %"struct.ClipperLib::DoublePoint", ptr %251, i32 0, i32 1
  %253 = load double, ptr %252, align 8, !tbaa !16
  %254 = fmul double %246, %253
  %255 = call double @llvm.fmuladd.f64(double %233, double %240, double %254)
  %256 = fadd double 1.000000e+00, %255
  store double %256, ptr %14, align 8, !tbaa !41
  %257 = load double, ptr %14, align 8, !tbaa !41
  %258 = getelementptr inbounds %"class.ClipperLib::ClipperOffset", ptr %15, i32 0, i32 10
  %259 = load double, ptr %258, align 8, !tbaa !44
  %260 = fcmp oge double %257, %259
  br i1 %260, label %261, label %266

261:                                              ; preds = %227
  %262 = load i32, ptr %6, align 4, !tbaa !9
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  %264 = load i32, ptr %263, align 4, !tbaa !9
  %265 = load double, ptr %14, align 8, !tbaa !41
  call void @_ZN10ClipperLib13ClipperOffset7DoMiterEiid(ptr noundef nonnull align 8 dereferenceable(256) %15, i32 noundef %262, i32 noundef %264, double noundef %265)
  br label %270

266:                                              ; preds = %227
  %267 = load i32, ptr %6, align 4, !tbaa !9
  %268 = load ptr, ptr %7, align 8, !tbaa !5
  %269 = load i32, ptr %268, align 4, !tbaa !9
  call void @_ZN10ClipperLib13ClipperOffset8DoSquareEii(ptr noundef nonnull align 8 dereferenceable(256) %15, i32 noundef %267, i32 noundef %269)
  br label %270

270:                                              ; preds = %266, %261
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %279

271:                                              ; preds = %225
  %272 = load i32, ptr %6, align 4, !tbaa !9
  %273 = load ptr, ptr %7, align 8, !tbaa !5
  %274 = load i32, ptr %273, align 4, !tbaa !9
  call void @_ZN10ClipperLib13ClipperOffset8DoSquareEii(ptr noundef nonnull align 8 dereferenceable(256) %15, i32 noundef %272, i32 noundef %274)
  br label %279

275:                                              ; preds = %225
  %276 = load i32, ptr %6, align 4, !tbaa !9
  %277 = load ptr, ptr %7, align 8, !tbaa !5
  %278 = load i32, ptr %277, align 4, !tbaa !9
  call void @_ZN10ClipperLib13ClipperOffset7DoRoundEii(ptr noundef nonnull align 8 dereferenceable(256) %15, i32 noundef %276, i32 noundef %278)
  br label %279

279:                                              ; preds = %275, %271, %270, %225
  br label %280

280:                                              ; preds = %279, %147
  %281 = load i32, ptr %6, align 4, !tbaa !9
  %282 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %281, ptr %282, align 4, !tbaa !9
  br label %283

283:                                              ; preds = %280, %123
  ret void

284:                                              ; preds = %123
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ClipperLib13ClipperOffset7DoMiterEiid(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef, i32 noundef, double noundef) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN10ClipperLib8JoinTypeE", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN10ClipperLib11DoublePointE", !15, i64 0, !15, i64 8}
!15 = !{!"double", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{!18, !15, i64 120}
!18 = !{!"_ZTSN10ClipperLib13ClipperOffsetE", !15, i64 0, !15, i64 8, !19, i64 16, !23, i64 40, !23, i64 64, !27, i64 88, !15, i64 112, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !31, i64 160, !33, i64 176}
!19 = !{!"_ZTSSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseISt6vectorIN10ClipperLib8IntPointESaIS2_EESaIS4_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN10ClipperLib8IntPointESaIS2_EESaIS4_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN10ClipperLib8IntPointESaIS2_EESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIN10ClipperLib8IntPointESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN10ClipperLib8IntPointESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib8IntPointESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib8IntPointESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt6vectorIN10ClipperLib11DoublePointESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIN10ClipperLib11DoublePointESaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib11DoublePointESaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib11DoublePointESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSN10ClipperLib8IntPointE", !32, i64 0, !32, i64 8}
!32 = !{!"long long", !7, i64 0}
!33 = !{!"_ZTSN10ClipperLib8PolyNodeE", !23, i64 8, !34, i64 32, !6, i64 56, !10, i64 64, !38, i64 68, !12, i64 72, !39, i64 76}
!34 = !{!"_ZTSSt6vectorIPN10ClipperLib8PolyNodeESaIS2_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib8PolyNodeESaIS2_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib8PolyNodeESaIS2_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib8PolyNodeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!"bool", !7, i64 0}
!39 = !{!"_ZTSN10ClipperLib7EndTypeE", !7, i64 0}
!40 = !{!18, !15, i64 112}
!41 = !{!15, !15, i64 0}
!42 = !{!31, !32, i64 0}
!43 = !{!31, !32, i64 8}
!44 = !{!18, !15, i64 144}


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

%"struct.ClipperLib::IntPoint" = type { i64, i64 }

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN10ClipperLib5RoundEd(double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ClipperLib13ClipperOffset11OffsetPointEiRiNS_8JoinTypeE(ptr noundef nonnull align 8 dereferenceable(256) %0, i32 noundef %1, ptr nocapture noundef nonnull align 4 dereferenceable(4) %2, i32 noundef %3) local_unnamed_addr #4 align 2 {
  %5 = alloca %"struct.ClipperLib::IntPoint", align 8
  %6 = alloca %"struct.ClipperLib::IntPoint", align 8
  %7 = alloca %"struct.ClipperLib::IntPoint", align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 88
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %10) #5
  %12 = load double, ptr %11, align 8, !tbaa !9
  %13 = sext i32 %1 to i64
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %13) #5
  %15 = getelementptr inbounds i8, ptr %14, i64 8
  %16 = load double, ptr %15, align 8, !tbaa !12
  %17 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %13) #5
  %18 = load double, ptr %17, align 8, !tbaa !9
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %20) #5
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  %23 = load double, ptr %22, align 8, !tbaa !12
  %24 = fneg double %18
  %25 = fmul double %23, %24
  %26 = tail call double @llvm.fmuladd.f64(double %12, double %16, double %25)
  %27 = getelementptr inbounds i8, ptr %0, i64 120
  store double %26, ptr %27, align 8, !tbaa !13
  %28 = getelementptr inbounds i8, ptr %0, i64 112
  %29 = load double, ptr %28, align 8, !tbaa !38
  %30 = fmul double %26, %29
  %31 = tail call double @llvm.fabs.f64(double %30)
  %32 = fcmp olt double %31, 1.000000e+00
  br i1 %32, label %33, label %76

33:                                               ; preds = %4
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %35) #5
  %37 = load double, ptr %36, align 8, !tbaa !9
  %38 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %13) #5
  %39 = load double, ptr %38, align 8, !tbaa !9
  %40 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %13) #5
  %41 = getelementptr inbounds i8, ptr %40, i64 8
  %42 = load double, ptr %41, align 8, !tbaa !12
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %44) #5
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  %47 = load double, ptr %46, align 8, !tbaa !12
  %48 = fmul double %42, %47
  %49 = tail call double @llvm.fmuladd.f64(double %37, double %39, double %48)
  %50 = fcmp ogt double %49, 0.000000e+00
  br i1 %50, label %51, label %..thread_crit_edge

..thread_crit_edge:                               ; preds = %33
  %.pre = load double, ptr %27, align 8, !tbaa !13
  %.pre43 = load double, ptr %28, align 8, !tbaa !38
  br label %.thread

51:                                               ; preds = %33
  %52 = getelementptr inbounds i8, ptr %0, i64 64
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %53 = getelementptr inbounds i8, ptr %0, i64 40
  %54 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %13) #5
  %55 = load i64, ptr %54, align 8, !tbaa !39
  %56 = sitofp i64 %55 to double
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %58) #5
  %60 = load double, ptr %59, align 8, !tbaa !9
  %61 = load double, ptr %28, align 8, !tbaa !38
  %62 = tail call double @llvm.fmuladd.f64(double %60, double %61, double %56)
  %63 = tail call noundef i64 @_ZN10ClipperLib5RoundEd(double noundef %62)
  %64 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %13) #5
  %65 = getelementptr inbounds i8, ptr %64, i64 8
  %66 = load i64, ptr %65, align 8, !tbaa !40
  %67 = sitofp i64 %66 to double
  %68 = load i32, ptr %2, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %69) #5
  %71 = getelementptr inbounds i8, ptr %70, i64 8
  %72 = load double, ptr %71, align 8, !tbaa !12
  %73 = load double, ptr %28, align 8, !tbaa !38
  %74 = tail call double @llvm.fmuladd.f64(double %72, double %73, double %67)
  %75 = tail call noundef i64 @_ZN10ClipperLib5RoundEd(double noundef %74)
  call void @_ZN10ClipperLib8IntPointC2Exx(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %63, i64 noundef %75)
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %52, ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %160

76:                                               ; preds = %4
  %77 = fcmp ogt double %26, 1.000000e+00
  br i1 %77, label %78, label %79

78:                                               ; preds = %76
  store double 1.000000e+00, ptr %27, align 8, !tbaa !13
  br label %.thread

79:                                               ; preds = %76
  %80 = fcmp olt double %26, -1.000000e+00
  br i1 %80, label %81, label %.thread

81:                                               ; preds = %79
  store double -1.000000e+00, ptr %27, align 8, !tbaa !13
  br label %.thread

.thread:                                          ; preds = %..thread_crit_edge, %78, %81, %79
  %82 = phi double [ %.pre43, %..thread_crit_edge ], [ %29, %78 ], [ %29, %81 ], [ %29, %79 ]
  %83 = phi double [ %.pre, %..thread_crit_edge ], [ 1.000000e+00, %78 ], [ -1.000000e+00, %81 ], [ %26, %79 ]
  %84 = fmul double %83, %82
  %85 = fcmp olt double %84, 0.000000e+00
  br i1 %85, label %86, label %130

86:                                               ; preds = %.thread
  %87 = getelementptr inbounds i8, ptr %0, i64 64
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %88 = getelementptr inbounds i8, ptr %0, i64 40
  %89 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %13) #5
  %90 = load i64, ptr %89, align 8, !tbaa !39
  %91 = sitofp i64 %90 to double
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %93) #5
  %95 = load double, ptr %94, align 8, !tbaa !9
  %96 = load double, ptr %28, align 8, !tbaa !38
  %97 = tail call double @llvm.fmuladd.f64(double %95, double %96, double %91)
  %98 = tail call noundef i64 @_ZN10ClipperLib5RoundEd(double noundef %97)
  %99 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %13) #5
  %100 = getelementptr inbounds i8, ptr %99, i64 8
  %101 = load i64, ptr %100, align 8, !tbaa !40
  %102 = sitofp i64 %101 to double
  %103 = load i32, ptr %2, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %104) #5
  %106 = getelementptr inbounds i8, ptr %105, i64 8
  %107 = load double, ptr %106, align 8, !tbaa !12
  %108 = load double, ptr %28, align 8, !tbaa !38
  %109 = tail call double @llvm.fmuladd.f64(double %107, double %108, double %102)
  %110 = tail call noundef i64 @_ZN10ClipperLib5RoundEd(double noundef %109)
  call void @_ZN10ClipperLib8IntPointC2Exx(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef %98, i64 noundef %110)
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  %111 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %13) #5
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 8 dereferenceable(16) %111)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %112 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %13) #5
  %113 = load i64, ptr %112, align 8, !tbaa !39
  %114 = sitofp i64 %113 to double
  %115 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %13) #5
  %116 = load double, ptr %115, align 8, !tbaa !9
  %117 = load double, ptr %28, align 8, !tbaa !38
  %118 = call double @llvm.fmuladd.f64(double %116, double %117, double %114)
  %119 = call noundef i64 @_ZN10ClipperLib5RoundEd(double noundef %118)
  %120 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %13) #5
  %121 = getelementptr inbounds i8, ptr %120, i64 8
  %122 = load i64, ptr %121, align 8, !tbaa !40
  %123 = sitofp i64 %122 to double
  %124 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %13) #5
  %125 = getelementptr inbounds i8, ptr %124, i64 8
  %126 = load double, ptr %125, align 8, !tbaa !12
  %127 = load double, ptr %28, align 8, !tbaa !38
  %128 = call double @llvm.fmuladd.f64(double %126, double %127, double %123)
  %129 = call noundef i64 @_ZN10ClipperLib5RoundEd(double noundef %128)
  call void @_ZN10ClipperLib8IntPointC2Exx(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %119, i64 noundef %129)
  call void @_ZNSt6vectorIN10ClipperLib8IntPointESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %159

130:                                              ; preds = %.thread
  switch i32 %3, label %159 [
    i32 2, label %131
    i32 0, label %155
    i32 1, label %157
  ]

131:                                              ; preds = %130
  %132 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %13) #5
  %133 = load double, ptr %132, align 8, !tbaa !9
  %134 = load i32, ptr %2, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %135) #5
  %137 = load double, ptr %136, align 8, !tbaa !9
  %138 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %13) #5
  %139 = getelementptr inbounds i8, ptr %138, i64 8
  %140 = load double, ptr %139, align 8, !tbaa !12
  %141 = load i32, ptr %2, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN10ClipperLib11DoublePointESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %142) #5
  %144 = getelementptr inbounds i8, ptr %143, i64 8
  %145 = load double, ptr %144, align 8, !tbaa !12
  %146 = fmul double %140, %145
  %147 = tail call double @llvm.fmuladd.f64(double %133, double %137, double %146)
  %148 = fadd double %147, 1.000000e+00
  %149 = getelementptr inbounds i8, ptr %0, i64 144
  %150 = load double, ptr %149, align 8, !tbaa !41
  %151 = fcmp ult double %148, %150
  %152 = load i32, ptr %2, align 4, !tbaa !5
  br i1 %151, label %154, label %153

153:                                              ; preds = %131
  tail call void @_ZN10ClipperLib13ClipperOffset7DoMiterEiid(ptr noundef nonnull align 8 dereferenceable(256) %0, i32 noundef %1, i32 noundef %152, double noundef %148)
  br label %159

154:                                              ; preds = %131
  tail call void @_ZN10ClipperLib13ClipperOffset8DoSquareEii(ptr noundef nonnull align 8 dereferenceable(256) %0, i32 noundef %1, i32 noundef %152)
  br label %159

155:                                              ; preds = %130
  %156 = load i32, ptr %2, align 4, !tbaa !5
  tail call void @_ZN10ClipperLib13ClipperOffset8DoSquareEii(ptr noundef nonnull align 8 dereferenceable(256) %0, i32 noundef %1, i32 noundef %156)
  br label %159

157:                                              ; preds = %130
  %158 = load i32, ptr %2, align 4, !tbaa !5
  tail call void @_ZN10ClipperLib13ClipperOffset7DoRoundEii(ptr noundef nonnull align 8 dereferenceable(256) %0, i32 noundef %1, i32 noundef %158)
  br label %159

159:                                              ; preds = %153, %154, %130, %155, %157, %86
  store i32 %1, ptr %2, align 4, !tbaa !5
  br label %160

160:                                              ; preds = %51, %159
  ret void
}

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN10ClipperLib11DoublePointE", !11, i64 0, !11, i64 8}
!11 = !{!"double", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !11, i64 120}
!14 = !{!"_ZTSN10ClipperLib13ClipperOffsetE", !11, i64 0, !11, i64 8, !15, i64 16, !20, i64 40, !20, i64 64, !24, i64 88, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !28, i64 160, !30, i64 176}
!15 = !{!"_ZTSSt6vectorIS_IN10ClipperLib8IntPointESaIS1_EESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseISt6vectorIN10ClipperLib8IntPointESaIS2_EESaIS4_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN10ClipperLib8IntPointESaIS2_EESaIS4_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN10ClipperLib8IntPointESaIS2_EESaIS4_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!19 = !{!"any pointer", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIN10ClipperLib8IntPointESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN10ClipperLib8IntPointESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib8IntPointESaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib8IntPointESaIS1_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!24 = !{!"_ZTSSt6vectorIN10ClipperLib11DoublePointESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIN10ClipperLib11DoublePointESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib11DoublePointESaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN10ClipperLib11DoublePointESaIS1_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!28 = !{!"_ZTSN10ClipperLib8IntPointE", !29, i64 0, !29, i64 8}
!29 = !{!"long long", !7, i64 0}
!30 = !{!"_ZTSN10ClipperLib8PolyNodeE", !20, i64 8, !31, i64 32, !19, i64 56, !6, i64 64, !35, i64 68, !36, i64 72, !37, i64 76}
!31 = !{!"_ZTSSt6vectorIPN10ClipperLib8PolyNodeESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIPN10ClipperLib8PolyNodeESaIS2_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib8PolyNodeESaIS2_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPN10ClipperLib8PolyNodeESaIS2_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!35 = !{!"bool", !7, i64 0}
!36 = !{!"_ZTSN10ClipperLib8JoinTypeE", !7, i64 0}
!37 = !{!"_ZTSN10ClipperLib7EndTypeE", !7, i64 0}
!38 = !{!14, !11, i64 112}
!39 = !{!28, !29, i64 0}
!40 = !{!28, !29, i64 8}
!41 = !{!14, !11, i64 144}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass