; LLVM IR from Slingshot-Physics/slingshot-community :: common/geometry/src (polygon)

; 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.Vector3 = type { [3 x float] }
%"struct.geometry::types::polygon50_t" = type { i32, [50 x %class.Vector3] }
%"struct.geometry::polygon::polyComparator_t" = type { i8 }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry7polygon13orderVertsCcwERNS_5types11polygon50_tE(ptr noundef nonnull align 4 dereferenceable(604) %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca %class.Vector3, align 4
  %4 = alloca %"struct.geometry::types::polygon50_t", align 4
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca %"struct.geometry::polygon::polyComparator_t", align 1
  %9 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %3) #6
  call void @_ZN7Vector3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3)
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %10, i32 0, i32 0
  %12 = load i32, ptr %11, align 4, !tbaa !9
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %13, i32 0, i32 1
  %15 = getelementptr inbounds [50 x %class.Vector3], ptr %14, i64 0, i64 0
  call void @_ZN8geometry13averageVertexEjPK7Vector3RS0_(i32 noundef %12, ptr noundef %15, ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @llvm.lifetime.start.p0(i64 604, ptr %4) #6
  call void @_ZN8geometry5types11polygon50_tC2Ev(ptr noundef nonnull align 4 dereferenceable(604) %4)
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %16, i32 0, i32 0
  %18 = load i32, ptr %17, align 4, !tbaa !9
  %19 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %4, i32 0, i32 0
  store i32 %18, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !12
  br label %20

20:                                               ; preds = %69, %1
  %21 = load i32, ptr %5, align 4, !tbaa !12
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %22, i32 0, i32 0
  %24 = load i32, ptr %23, align 4, !tbaa !9
  %25 = icmp ult i32 %21, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %72

27:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %28, i32 0, i32 1
  %30 = load i32, ptr %5, align 4, !tbaa !12
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds [50 x %class.Vector3], ptr %29, i64 0, i64 %31
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %32, i32 noundef 0)
  %34 = load float, ptr %33, align 4, !tbaa !13
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef 0)
  %36 = load float, ptr %35, align 4, !tbaa !13
  %37 = fsub float %34, %36
  store float %37, ptr %6, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %38, i32 0, i32 1
  %40 = load i32, ptr %5, align 4, !tbaa !12
  %41 = zext i32 %40 to i64
  %42 = getelementptr inbounds [50 x %class.Vector3], ptr %39, i64 0, i64 %41
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %42, i32 noundef 1)
  %44 = load float, ptr %43, align 4, !tbaa !13
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef 1)
  %46 = load float, ptr %45, align 4, !tbaa !13
  %47 = fsub float %44, %46
  store float %47, ptr %7, align 4, !tbaa !13
  %48 = load ptr, ptr %2, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %48, i32 0, i32 1
  %50 = load i32, ptr %5, align 4, !tbaa !12
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds [50 x %class.Vector3], ptr %49, i64 0, i64 %51
  %53 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %4, i32 0, i32 1
  %54 = load i32, ptr %5, align 4, !tbaa !12
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds [50 x %class.Vector3], ptr %53, i64 0, i64 %55
  %57 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %56, ptr noundef nonnull align 4 dereferenceable(12) %52)
  %58 = load float, ptr %7, align 4, !tbaa !13
  %59 = fpext float %58 to double
  %60 = load float, ptr %6, align 4, !tbaa !13
  %61 = fpext float %60 to double
  %62 = call double @atan2(double noundef %59, double noundef %61) #6
  %63 = fptrunc double %62 to float
  %64 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %4, i32 0, i32 1
  %65 = load i32, ptr %5, align 4, !tbaa !12
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds [50 x %class.Vector3], ptr %64, i64 0, i64 %66
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %67, i32 noundef 2)
  store float %63, ptr %68, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %69

69:                                               ; preds = %27
  %70 = load i32, ptr %5, align 4, !tbaa !12
  %71 = add i32 %70, 1
  store i32 %71, ptr %5, align 4, !tbaa !12
  br label %20, !llvm.loop !15

72:                                               ; preds = %26
  %73 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %4, i32 0, i32 1
  %74 = getelementptr inbounds [50 x %class.Vector3], ptr %73, i64 0, i64 0
  %75 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %4, i32 0, i32 1
  %76 = getelementptr inbounds [50 x %class.Vector3], ptr %75, i64 0, i64 0
  %77 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %4, i32 0, i32 0
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds %class.Vector3, ptr %76, i64 %79
  call void @_ZSt4sortIP7Vector3N8geometry7polygon16polyComparator_tEEvT_S5_T0_(ptr noundef %74, ptr noundef %80)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !12
  br label %81

81:                                               ; preds = %105, %72
  %82 = load i32, ptr %9, align 4, !tbaa !12
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %83, i32 0, i32 0
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = icmp ult i32 %82, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %108

88:                                               ; preds = %81
  %89 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %4, i32 0, i32 1
  %90 = load i32, ptr %9, align 4, !tbaa !12
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds [50 x %class.Vector3], ptr %89, i64 0, i64 %91
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %93, i32 0, i32 1
  %95 = load i32, ptr %9, align 4, !tbaa !12
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds [50 x %class.Vector3], ptr %94, i64 0, i64 %96
  %98 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %97, ptr noundef nonnull align 4 dereferenceable(12) %92)
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %99, i32 0, i32 1
  %101 = load i32, ptr %9, align 4, !tbaa !12
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds [50 x %class.Vector3], ptr %100, i64 0, i64 %102
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %103, i32 noundef 2)
  store float 0.000000e+00, ptr %104, align 4, !tbaa !13
  br label %105

105:                                              ; preds = %88
  %106 = load i32, ptr %9, align 4, !tbaa !12
  %107 = add i32 %106, 1
  store i32 %107, ptr %9, align 4, !tbaa !12
  br label %81, !llvm.loop !17

108:                                              ; preds = %87
  call void @llvm.lifetime.end.p0(i64 604, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #6
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

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

; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIP7Vector3N8geometry7polygon16polyComparator_tEEvT_S5_T0_(ptr noundef, ptr noundef) #4

declare void @_ZN8geometry13averageVertexEjPK7Vector3RS0_(i32 noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(12)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8geometry5types11polygon50_tC2Ev(ptr noundef nonnull align 4 dereferenceable(604)) unnamed_addr #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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 "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 = { 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 #5 = { "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 #6 = { 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, !11, i64 0}
!10 = !{!"_ZTSN8geometry5types11polygon50_tE", !11, i64 0, !7, i64 4}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; 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.Vector3 = type { [3 x float] }
%"struct.geometry::types::polygon50_t" = type { i32, [50 x %class.Vector3] }

; 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #1 align 2

; 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 uwtable
define dso_local void @_ZN8geometry7polygon13orderVertsCcwERNS_5types11polygon50_tE(ptr noundef nonnull align 4 dereferenceable(604) %0) local_unnamed_addr #2 {
  %2 = alloca %class.Vector3, align 4
  %3 = alloca %"struct.geometry::types::polygon50_t", align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #6
  call void @_ZN7Vector3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %2)
  %4 = load i32, ptr %0, align 4, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 4
  call void @_ZN8geometry13averageVertexEjPK7Vector3RS0_(i32 noundef %4, ptr noundef nonnull %5, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @llvm.lifetime.start.p0(i64 604, ptr nonnull %3) #6
  call void @_ZN8geometry5types11polygon50_tC2Ev(ptr noundef nonnull align 4 dereferenceable(604) %3)
  %6 = load i32, ptr %0, align 4, !tbaa !5
  store i32 %6, ptr %3, align 4, !tbaa !5
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %7 = getelementptr inbounds i8, ptr %3, i64 4
  br label %13

._crit_edge.loopexit:                             ; preds = %13
  %.pre = load i32, ptr %3, align 4, !tbaa !5
  %8 = zext i32 %.pre to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %1
  %9 = phi i64 [ %8, %._crit_edge.loopexit ], [ 0, %1 ]
  %10 = getelementptr inbounds i8, ptr %3, i64 4
  %11 = getelementptr inbounds %class.Vector3, ptr %10, i64 %9
  call void @_ZSt4sortIP7Vector3N8geometry7polygon16polyComparator_tEEvT_S5_T0_(ptr noundef nonnull %10, ptr noundef nonnull %11)
  %12 = load i32, ptr %0, align 4, !tbaa !5
  %.not29 = icmp eq i32 %12, 0
  br i1 %.not29, label %._crit_edge28, label %.lr.ph27

13:                                               ; preds = %.lr.ph, %13
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %13 ]
  %14 = getelementptr inbounds [50 x %class.Vector3], ptr %5, i64 0, i64 %indvars.iv
  %15 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 noundef 0)
  %16 = load float, ptr %15, align 4, !tbaa !10
  %17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef 0)
  %18 = load float, ptr %17, align 4, !tbaa !10
  %19 = fsub float %16, %18
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 noundef 1)
  %21 = load float, ptr %20, align 4, !tbaa !10
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef 1)
  %23 = load float, ptr %22, align 4, !tbaa !10
  %24 = fsub float %21, %23
  %25 = getelementptr inbounds [50 x %class.Vector3], ptr %7, i64 0, i64 %indvars.iv
  %26 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %14)
  %27 = fpext float %24 to double
  %28 = fpext float %19 to double
  %29 = call double @atan2(double noundef %27, double noundef %28) #6
  %30 = fptrunc double %29 to float
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %25, i32 noundef 2)
  store float %30, ptr %31, align 4, !tbaa !10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %32 = load i32, ptr %0, align 4, !tbaa !5
  %33 = zext i32 %32 to i64
  %34 = icmp ult i64 %indvars.iv.next, %33
  br i1 %34, label %13, label %._crit_edge.loopexit, !llvm.loop !12

._crit_edge28:                                    ; preds = %.lr.ph27, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 604, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #6
  ret void

.lr.ph27:                                         ; preds = %._crit_edge, %.lr.ph27
  %indvars.iv31 = phi i64 [ %indvars.iv.next32, %.lr.ph27 ], [ 0, %._crit_edge ]
  %35 = getelementptr inbounds [50 x %class.Vector3], ptr %10, i64 0, i64 %indvars.iv31
  %36 = getelementptr inbounds [50 x %class.Vector3], ptr %5, i64 0, i64 %indvars.iv31
  %37 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %36, ptr noundef nonnull align 4 dereferenceable(12) %35)
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %36, i32 noundef 2)
  store float 0.000000e+00, ptr %38, align 4, !tbaa !10
  %indvars.iv.next32 = add nuw nsw i64 %indvars.iv31, 1
  %39 = load i32, ptr %0, align 4, !tbaa !5
  %40 = zext i32 %39 to i64
  %41 = icmp ult i64 %indvars.iv.next32, %40
  br i1 %41, label %.lr.ph27, label %._crit_edge28, !llvm.loop !14
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @atan2(double noundef, double noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIP7Vector3N8geometry7polygon16polyComparator_tEEvT_S5_T0_(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN8geometry13averageVertexEjPK7Vector3RS0_(i32 noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8geometry5types11polygon50_tC2Ev(ptr noundef nonnull align 4 dereferenceable(604)) unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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 #5 = { "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 #6 = { 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, !7, i64 0}
!6 = !{!"_ZTSN8geometry5types11polygon50_tE", !7, i64 0, !8, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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