; LLVM IR from wesley-a-leung/Resources :: Tests/C++/geometry/2d (ConvexPolygonFuzzTest)

; 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.pt = type { x86_fp80, x86_fp80 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z2ltee(x86_fp80 noundef, x86_fp80 noundef) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3ccw2ptS_S_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3modii(i32 noundef, i32 noundef) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z31convexPolygonPointSingleTangentRKSt6vectorI2ptSaIS0_EES0_b(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef byval(%struct.pt) align 16 %1, i1 noundef zeroext %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.pt, align 16
  %9 = alloca %struct.pt, align 16
  %10 = alloca %struct.pt, align 16
  %11 = alloca i8, align 1
  %12 = alloca %struct.pt, align 16
  %13 = alloca %struct.pt, align 16
  %14 = alloca %struct.pt, align 16
  %15 = alloca %struct.pt, align 16
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.pt, align 16
  %20 = alloca %struct.pt, align 16
  %21 = alloca %struct.pt, align 16
  %22 = alloca %struct.pt, align 16
  %23 = alloca %struct.pt, align 16
  %24 = alloca %struct.pt, align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  %25 = zext i1 %2 to i8
  store i8 %25, ptr %5, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #4
  %28 = trunc i64 %27 to i32
  store i32 %28, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 %1, i64 32, i1 false), !tbaa.struct !13
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef 0) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 %30, i64 32, i1 false), !tbaa.struct !13
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 %32, i64 32, i1 false), !tbaa.struct !13
  %33 = call noundef i32 @_Z3ccw2ptS_S_(ptr noundef byval(%struct.pt) align 16 %8, ptr noundef byval(%struct.pt) align 16 %9, ptr noundef byval(%struct.pt) align 16 %10)
  store i32 %33, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  %34 = load i32, ptr %7, align 4, !tbaa !11
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %39

36:                                               ; preds = %3
  %37 = load i32, ptr %7, align 4, !tbaa !11
  %38 = icmp slt i32 %37, 0
  br label %47

39:                                               ; preds = %3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 %1, i64 32, i1 false), !tbaa.struct !13
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 %41, i64 32, i1 false), !tbaa.struct !13
  %42 = call noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16 %12, ptr noundef byval(%struct.pt) align 16 %13)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 %1, i64 32, i1 false), !tbaa.struct !13
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef 0) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 %44, i64 32, i1 false), !tbaa.struct !13
  %45 = call noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16 %14, ptr noundef byval(%struct.pt) align 16 %15)
  %46 = call noundef zeroext i1 @_Z2ltee(x86_fp80 noundef %42, x86_fp80 noundef %45)
  br label %47

47:                                               ; preds = %39, %36
  %48 = phi i1 [ %38, %36 ], [ %46, %39 ]
  %49 = zext i1 %48 to i8
  store i8 %49, ptr %11, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %50 = load i8, ptr %11, align 1, !tbaa !9, !range !16, !noundef !17
  %51 = trunc i8 %50 to i1
  %52 = zext i1 %51 to i32
  %53 = load i8, ptr %5, align 1, !tbaa !9, !range !16, !noundef !17
  %54 = trunc i8 %53 to i1
  %55 = zext i1 %54 to i32
  %56 = icmp ne i32 %52, %55
  %57 = zext i1 %56 to i32
  store i32 %57, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %58 = load i32, ptr %16, align 4, !tbaa !11
  %59 = load i32, ptr %6, align 4, !tbaa !11
  %60 = add nsw i32 %58, %59
  %61 = sub nsw i32 %60, 2
  store i32 %61, ptr %17, align 4, !tbaa !11
  br label %62

62:                                               ; preds = %126, %47
  %63 = load i32, ptr %16, align 4, !tbaa !11
  %64 = load i32, ptr %17, align 4, !tbaa !11
  %65 = icmp sle i32 %63, %64
  br i1 %65, label %66, label %127

66:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %67 = load i32, ptr %16, align 4, !tbaa !11
  %68 = load i32, ptr %17, align 4, !tbaa !11
  %69 = load i32, ptr %16, align 4, !tbaa !11
  %70 = sub nsw i32 %68, %69
  %71 = sdiv i32 %70, 2
  %72 = add nsw i32 %67, %71
  store i32 %72, ptr %18, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %1, i64 32, i1 false), !tbaa.struct !13
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef 0) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %74, i64 32, i1 false), !tbaa.struct !13
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = load i32, ptr %18, align 4, !tbaa !11
  %77 = sext i32 %76 to i64
  %78 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %77) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %78, i64 32, i1 false), !tbaa.struct !13
  %79 = call noundef i32 @_Z3ccw2ptS_S_(ptr noundef byval(%struct.pt) align 16 %19, ptr noundef byval(%struct.pt) align 16 %20, ptr noundef byval(%struct.pt) align 16 %21)
  %80 = load i8, ptr %5, align 1, !tbaa !9, !range !16, !noundef !17
  %81 = trunc i8 %80 to i1
  %82 = zext i1 %81 to i64
  %83 = select i1 %81, i32 -1, i32 1
  %84 = icmp eq i32 %79, %83
  br i1 %84, label %85, label %100

85:                                               ; preds = %66
  %86 = load i8, ptr %11, align 1, !tbaa !9, !range !16, !noundef !17
  %87 = trunc i8 %86 to i1
  %88 = zext i1 %87 to i32
  %89 = load i8, ptr %5, align 1, !tbaa !9, !range !16, !noundef !17
  %90 = trunc i8 %89 to i1
  %91 = zext i1 %90 to i32
  %92 = icmp eq i32 %88, %91
  br i1 %92, label %93, label %96

93:                                               ; preds = %85
  %94 = load i32, ptr %18, align 4, !tbaa !11
  %95 = sub nsw i32 %94, 1
  store i32 %95, ptr %17, align 4, !tbaa !11
  br label %99

96:                                               ; preds = %85
  %97 = load i32, ptr %18, align 4, !tbaa !11
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %16, align 4, !tbaa !11
  br label %99

99:                                               ; preds = %96, %93
  br label %126

100:                                              ; preds = %66
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = load i32, ptr %18, align 4, !tbaa !11
  %103 = sext i32 %102 to i64
  %104 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef %103) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %104, i64 32, i1 false), !tbaa.struct !13
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = load i32, ptr %18, align 4, !tbaa !11
  %107 = add nsw i32 %106, 1
  %108 = load i32, ptr %6, align 4, !tbaa !11
  %109 = call noundef i32 @_Z3modii(i32 noundef %107, i32 noundef %108)
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %110) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 %111, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %1, i64 32, i1 false), !tbaa.struct !13
  %112 = call noundef i32 @_Z3ccw2ptS_S_(ptr noundef byval(%struct.pt) align 16 %22, ptr noundef byval(%struct.pt) align 16 %23, ptr noundef byval(%struct.pt) align 16 %24)
  %113 = icmp slt i32 %112, 0
  %114 = zext i1 %113 to i32
  %115 = load i8, ptr %5, align 1, !tbaa !9, !range !16, !noundef !17
  %116 = trunc i8 %115 to i1
  %117 = zext i1 %116 to i32
  %118 = icmp eq i32 %114, %117
  br i1 %118, label %119, label %122

119:                                              ; preds = %100
  %120 = load i32, ptr %18, align 4, !tbaa !11
  %121 = sub nsw i32 %120, 1
  store i32 %121, ptr %17, align 4, !tbaa !11
  br label %125

122:                                              ; preds = %100
  %123 = load i32, ptr %18, align 4, !tbaa !11
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %16, align 4, !tbaa !11
  br label %125

125:                                              ; preds = %122, %119
  br label %126

126:                                              ; preds = %125, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %62, !llvm.loop !18

127:                                              ; preds = %62
  %128 = load i32, ptr %16, align 4, !tbaa !11
  %129 = load i32, ptr %6, align 4, !tbaa !11
  %130 = call noundef i32 @_Z3modii(i32 noundef %128, i32 noundef %129)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  ret i32 %130
}

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


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

%struct.pt = type { x86_fp80, x86_fp80 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z2ltee(x86_fp80 noundef, x86_fp80 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3ccw2ptS_S_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3modii(i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z31convexPolygonPointSingleTangentRKSt6vectorI2ptSaIS0_EES0_b(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nocapture noundef readonly byval(%struct.pt) align 16 %1, i1 noundef zeroext %2) local_unnamed_addr #2 {
  %4 = alloca %struct.pt, align 16
  %5 = alloca %struct.pt, align 16
  %6 = alloca %struct.pt, align 16
  %7 = alloca %struct.pt, align 16
  %8 = alloca %struct.pt, align 16
  %9 = alloca %struct.pt, align 16
  %10 = tail call noundef i64 @_ZNKSt6vectorI2ptSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %11 = trunc i64 %10 to i32
  %12 = tail call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %4, ptr noundef nonnull align 16 dereferenceable(32) %12, i64 32, i1 false), !tbaa.struct !5
  %13 = tail call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %14 = tail call noundef i32 @_Z3ccw2ptS_S_(ptr noundef nonnull byval(%struct.pt) align 16 %1, ptr noundef nonnull byval(%struct.pt) align 16 %4, ptr noundef nonnull byval(%struct.pt) align 16 %13)
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %17, label %15

15:                                               ; preds = %3
  %16 = icmp slt i32 %14, 0
  br label %23

17:                                               ; preds = %3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 16 dereferenceable(32) %1, i64 32, i1 false), !tbaa.struct !5
  %18 = tail call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %19 = tail call noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %5, ptr noundef nonnull byval(%struct.pt) align 16 %18)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %6, ptr noundef nonnull align 16 dereferenceable(32) %1, i64 32, i1 false), !tbaa.struct !5
  %20 = tail call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #3
  %21 = tail call noundef x86_fp80 @_Z6distSq2ptS_(ptr noundef nonnull byval(%struct.pt) align 16 %6, ptr noundef nonnull byval(%struct.pt) align 16 %20)
  %22 = tail call noundef zeroext i1 @_Z2ltee(x86_fp80 noundef %19, x86_fp80 noundef %21)
  br label %23

23:                                               ; preds = %17, %15
  %24 = phi i1 [ %16, %15 ], [ %22, %17 ]
  %25 = xor i1 %24, %2
  %26 = zext i1 %25 to i32
  %27 = add i32 %11, -2
  %28 = add i32 %27, %26
  %.not3638 = icmp slt i32 %28, %26
  br i1 %.not3638, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %23
  %29 = select i1 %2, i32 -1, i32 1
  br label %30

30:                                               ; preds = %.lr.ph, %54
  %.040 = phi i32 [ %26, %.lr.ph ], [ %.1, %54 ]
  %.03339 = phi i32 [ %28, %.lr.ph ], [ %.134, %54 ]
  %31 = sub nsw i32 %.03339, %.040
  %32 = sdiv i32 %31, 2
  %33 = add nsw i32 %32, %.040
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %7, ptr noundef nonnull align 16 dereferenceable(32) %1, i64 32, i1 false), !tbaa.struct !5
  %34 = tail call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 16 dereferenceable(32) %34, i64 32, i1 false), !tbaa.struct !5
  %35 = sext i32 %33 to i64
  %36 = tail call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %35) #3
  %37 = tail call noundef i32 @_Z3ccw2ptS_S_(ptr noundef nonnull byval(%struct.pt) align 16 %7, ptr noundef nonnull byval(%struct.pt) align 16 %8, ptr noundef nonnull byval(%struct.pt) align 16 %36)
  %38 = icmp eq i32 %37, %29
  br i1 %38, label %39, label %44

39:                                               ; preds = %30
  br i1 %25, label %42, label %40

40:                                               ; preds = %39
  %41 = add nsw i32 %33, -1
  br label %54

42:                                               ; preds = %39
  %43 = add nsw i32 %33, 1
  br label %54

44:                                               ; preds = %30
  %45 = tail call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %35) #3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %9, ptr noundef nonnull align 16 dereferenceable(32) %45, i64 32, i1 false), !tbaa.struct !5
  %46 = add nsw i32 %33, 1
  %47 = tail call noundef i32 @_Z3modii(i32 noundef %46, i32 noundef %11)
  %48 = sext i32 %47 to i64
  %49 = tail call noundef nonnull align 16 dereferenceable(32) ptr @_ZNKSt6vectorI2ptSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %48) #3
  %50 = tail call noundef i32 @_Z3ccw2ptS_S_(ptr noundef nonnull byval(%struct.pt) align 16 %9, ptr noundef nonnull byval(%struct.pt) align 16 %49, ptr noundef nonnull byval(%struct.pt) align 16 %1)
  %51 = icmp sgt i32 %50, -1
  %52 = xor i1 %51, %2
  %53 = add nsw i32 %33, -1
  %spec.select = select i1 %52, i32 %53, i32 %.03339
  %spec.select37 = select i1 %52, i32 %.040, i32 %46
  br label %54

54:                                               ; preds = %44, %40, %42
  %.134 = phi i32 [ %41, %40 ], [ %.03339, %42 ], [ %spec.select, %44 ]
  %.1 = phi i32 [ %.040, %40 ], [ %43, %42 ], [ %spec.select37, %44 ]
  %.not36 = icmp sgt i32 %.1, %.134
  br i1 %.not36, label %._crit_edge, label %30, !llvm.loop !10

._crit_edge:                                      ; preds = %54, %23
  %.0.lcssa = phi i32 [ %26, %23 ], [ %.1, %54 ]
  %55 = tail call noundef i32 @_Z3modii(i32 noundef %.0.lcssa, i32 noundef %11)
  ret i32 %55
}

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 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 = { 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 = !{i64 0, i64 16, !6, i64 16, i64 16, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"long double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


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