; LLVM IR from pmla/polyhedral-template-matching :: ptm_structure_matcher/ZN3ptm13match_generalEPKNS_9refdata_tEPA3_dS4_PNS_12convexh_59d65568 (tE)

; 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.ptm::refdata_t" = type { i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr }
%"struct.ptm::convexhull_t" = type { [28 x [3 x i8]], [28 x [3 x double]], [17 x i8], [4 x i32], [3 x double], i32, i32, i8 }

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3ptm13match_generalEPKNS_9refdata_tEPA3_dS4_PNS_12convexhull_tEPNS_8result_tE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #1 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca [16 x i8], align 16
  %13 = alloca [28 x [3 x i8]], align 16
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca [17 x [3 x double]], align 16
  %19 = alloca [84 x i8], align 16
  %20 = alloca [17 x i8], align 16
  %21 = alloca [17 x i8], align 16
  %22 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 84, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %23, i32 0, i32 1
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = add nsw i32 %25, 1
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = getelementptr inbounds [28 x [3 x i8]], ptr %13, i64 0, i64 0
  %30 = call noundef i32 @_ZN3ptm15get_convex_hullEiPA3_KdPNS_12convexhull_tEPA3_a(i32 noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29)
  store i32 %30, ptr %14, align 4, !tbaa !12
  %31 = load i32, ptr %14, align 4, !tbaa !12
  %32 = icmp sge i32 %31, 0
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.ptm::convexhull_t", ptr %33, i32 0, i32 7
  %35 = zext i1 %32 to i8
  store i8 %35, ptr %34, align 8, !tbaa !13
  %36 = load i32, ptr %14, align 4, !tbaa !12
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %5
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %123

39:                                               ; preds = %5
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.ptm::convexhull_t", ptr %40, i32 0, i32 5
  %42 = load i32, ptr %41, align 8, !tbaa !16
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %43, i32 0, i32 2
  %45 = load i32, ptr %44, align 8, !tbaa !17
  %46 = icmp ne i32 %42, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %39
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %123

48:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %49, i32 0, i32 2
  %51 = load i32, ptr %50, align 8, !tbaa !17
  %52 = getelementptr inbounds [28 x [3 x i8]], ptr %13, i64 0, i64 0
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %53, i32 0, i32 1
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
  %57 = call noundef i32 @_ZN3ptm12graph_degreeEiPA3_aiPa(i32 noundef %51, ptr noundef %52, i32 noundef %55, ptr noundef %56)
  store i32 %57, ptr %16, align 4, !tbaa !12
  %58 = load i32, ptr %16, align 4, !tbaa !12
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %59, i32 0, i32 3
  %61 = load i32, ptr %60, align 4, !tbaa !18
  %62 = icmp sgt i32 %58, %61
  br i1 %62, label %63, label %64

63:                                               ; preds = %48
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %122

64:                                               ; preds = %48
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %65, i32 0, i32 0
  %67 = load i32, ptr %66, align 8, !tbaa !19
  %68 = icmp eq i32 %67, 5
  br i1 %68, label %69, label %92

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !12
  br label %70

70:                                               ; preds = %86, %69
  %71 = load i32, ptr %17, align 4, !tbaa !12
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %72, i32 0, i32 1
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = icmp slt i32 %71, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %70
  store i32 2, ptr %15, align 4
  br label %89

77:                                               ; preds = %70
  %78 = load i32, ptr %17, align 4, !tbaa !12
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 %79
  %81 = load i8, ptr %80, align 1, !tbaa !20
  %82 = sext i8 %81 to i32
  %83 = icmp ne i32 %82, 4
  br i1 %83, label %84, label %85

84:                                               ; preds = %77
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %89

85:                                               ; preds = %77
  br label %86

86:                                               ; preds = %85
  %87 = load i32, ptr %17, align 4, !tbaa !12
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %17, align 4, !tbaa !12
  br label %70, !llvm.loop !21

89:                                               ; preds = %84, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  %90 = load i32, ptr %15, align 4
  switch i32 %90, label %122 [
    i32 2, label %91
  ]

91:                                               ; preds = %89
  br label %92

92:                                               ; preds = %91, %64
  call void @llvm.lifetime.start.p0(i64 408, ptr %18) #4
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %93, i32 0, i32 1
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = getelementptr inbounds [17 x [3 x double]], ptr %18, i64 0, i64 0
  call void @_ZN3ptm19subtract_barycentreEiPA3_dS1_(i32 noundef %96, ptr noundef %97, ptr noundef %98)
  call void @llvm.lifetime.start.p0(i64 84, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 17, ptr %20) #4
  call void @llvm.memset.p0.i64(ptr align 16 %20, i8 0, i64 17, i1 false)
  call void @llvm.lifetime.start.p0(i64 17, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store i64 0, ptr %22, align 8, !tbaa !23
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %99, i32 0, i32 2
  %101 = load i32, ptr %100, align 8, !tbaa !17
  %102 = getelementptr inbounds [28 x [3 x i8]], ptr %13, i64 0, i64 0
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %103, i32 0, i32 1
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 0
  %107 = getelementptr inbounds [17 x i8], ptr %20, i64 0, i64 0
  %108 = getelementptr inbounds [17 x i8], ptr %21, i64 0, i64 0
  %109 = getelementptr inbounds [84 x i8], ptr %19, i64 0, i64 0
  %110 = call noundef i32 @_ZN3ptm23canonical_form_colouredEiPA3_aiPaS2_S2_S2_Pm(i32 noundef %101, ptr noundef %102, i32 noundef %105, ptr noundef %106, ptr noundef %107, ptr noundef %108, ptr noundef %109, ptr noundef %22)
  store i32 %110, ptr %14, align 4, !tbaa !12
  %111 = load i32, ptr %14, align 4, !tbaa !12
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %115

113:                                              ; preds = %92
  %114 = load i32, ptr %14, align 4, !tbaa !12
  store i32 %114, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %121

115:                                              ; preds = %92
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = load i64, ptr %22, align 8, !tbaa !23
  %118 = getelementptr inbounds [17 x i8], ptr %21, i64 0, i64 0
  %119 = getelementptr inbounds [17 x [3 x double]], ptr %18, i64 0, i64 0
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN3ptmL12check_graphsEPKNS_9refdata_tEmPaPA3_dPNS_8result_tE(ptr noundef %116, i64 noundef %117, ptr noundef %118, ptr noundef %119, ptr noundef %120)
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %121

121:                                              ; preds = %115, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 17, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 17, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 84, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 408, ptr %18) #4
  br label %122

122:                                              ; preds = %121, %89, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %123

123:                                              ; preds = %122, %47, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 84, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  %124 = load i32, ptr %6, align 4
  ret i32 %124
}

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

declare noundef i32 @_ZN3ptm15get_convex_hullEiPA3_KdPNS_12convexhull_tEPA3_a(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare noundef i32 @_ZN3ptm12graph_degreeEiPA3_aiPa(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

declare void @_ZN3ptm19subtract_barycentreEiPA3_dS1_(i32 noundef, ptr noundef, ptr noundef) #3

declare noundef i32 @_ZN3ptm23canonical_form_colouredEiPA3_aiPaS2_S2_S2_Pm(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3ptmL12check_graphsEPKNS_9refdata_tEmPaPA3_dPNS_8result_tE(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 4}
!10 = !{!"_ZTSN3ptm9refdata_tE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !11, i64 96, !6, i64 104, !11, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !15, i64 832}
!14 = !{!"_ZTSN3ptm12convexhull_tE", !7, i64 0, !7, i64 88, !7, i64 760, !7, i64 780, !7, i64 800, !11, i64 824, !11, i64 828, !15, i64 832}
!15 = !{!"bool", !7, i64 0}
!16 = !{!14, !11, i64 824}
!17 = !{!10, !11, i64 8}
!18 = !{!10, !11, i64 12}
!19 = !{!10, !11, i64 0}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !24, i64 0}
!24 = !{!"long", !7, i64 0}


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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3ptm13match_generalEPKNS_9refdata_tEPA3_dS4_PNS_12convexhull_tEPNS_8result_tE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = alloca [16 x i8], align 16
  %7 = alloca [28 x [3 x i8]], align 16
  %8 = alloca [17 x [3 x double]], align 16
  %9 = alloca [84 x i8], align 16
  %10 = alloca [17 x i8], align 16
  %11 = alloca [17 x i8], align 16
  %12 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 84, ptr nonnull %7) #4
  %13 = getelementptr inbounds i8, ptr %0, i64 4
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = add nsw i32 %14, 1
  %16 = call noundef i32 @_ZN3ptm15get_convex_hullEiPA3_KdPNS_12convexhull_tEPA3_a(i32 noundef %15, ptr noundef %1, ptr noundef %3, ptr noundef nonnull %7)
  %17 = icmp sgt i32 %16, -1
  %18 = getelementptr inbounds i8, ptr %3, i64 832
  %19 = zext i1 %17 to i8
  store i8 %19, ptr %18, align 8, !tbaa !11
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %20, label %.loopexit

20:                                               ; preds = %5
  %21 = getelementptr inbounds i8, ptr %3, i64 824
  %22 = load i32, ptr %21, align 8, !tbaa !14
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = load i32, ptr %23, align 8, !tbaa !15
  %.not30 = icmp eq i32 %22, %24
  br i1 %.not30, label %25, label %.loopexit

25:                                               ; preds = %20
  %26 = load i32, ptr %13, align 4, !tbaa !5
  %27 = call noundef i32 @_ZN3ptm12graph_degreeEiPA3_aiPa(i32 noundef %22, ptr noundef nonnull %7, i32 noundef %26, ptr noundef nonnull %6)
  %28 = getelementptr inbounds i8, ptr %0, i64 12
  %29 = load i32, ptr %28, align 4, !tbaa !16
  %30 = icmp sgt i32 %27, %29
  br i1 %30, label %.loopexit, label %31

31:                                               ; preds = %25
  %32 = load i32, ptr %0, align 8, !tbaa !17
  %33 = icmp eq i32 %32, 5
  %.pre = load i32, ptr %13, align 4, !tbaa !5
  %.not3234 = icmp sgt i32 %.pre, 0
  %or.cond = select i1 %33, i1 %.not3234, i1 false
  br i1 %or.cond, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %31
  %wide.trip.count = zext nneg i32 %.pre to i64
  br label %.lr.ph

34:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.critedge, label %.lr.ph, !llvm.loop !18

.lr.ph:                                           ; preds = %.lr.ph.preheader, %34
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %34 ]
  %35 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 %indvars.iv
  %36 = load i8, ptr %35, align 1, !tbaa !20
  %.not31 = icmp eq i8 %36, 4
  br i1 %.not31, label %34, label %.loopexit

.critedge:                                        ; preds = %34, %31
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %8) #4
  %37 = add nsw i32 %.pre, 1
  call void @_ZN3ptm19subtract_barycentreEiPA3_dS1_(i32 noundef %37, ptr noundef %2, ptr noundef nonnull %8)
  call void @llvm.lifetime.start.p0(i64 84, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 17, ptr nonnull %10) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(17) %10, i8 0, i64 17, i1 false)
  call void @llvm.lifetime.start.p0(i64 17, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  store i64 0, ptr %12, align 8, !tbaa !21
  %38 = load i32, ptr %23, align 8, !tbaa !15
  %39 = load i32, ptr %13, align 4, !tbaa !5
  %40 = call noundef i32 @_ZN3ptm23canonical_form_colouredEiPA3_aiPaS2_S2_S2_Pm(i32 noundef %38, ptr noundef nonnull %7, i32 noundef %39, ptr noundef nonnull %6, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %9, ptr noundef nonnull %12)
  %.not33 = icmp eq i32 %40, 0
  br i1 %.not33, label %41, label %43

41:                                               ; preds = %.critedge
  %42 = load i64, ptr %12, align 8, !tbaa !21
  call void @_ZN3ptmL12check_graphsEPKNS_9refdata_tEmPaPA3_dPNS_8result_tE(ptr noundef nonnull %0, i64 noundef %42, ptr noundef nonnull %11, ptr noundef nonnull %8, ptr noundef %4)
  br label %43

43:                                               ; preds = %.critedge, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 17, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 17, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 84, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %8) #4
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %43, %25, %20, %5
  %.3 = phi i32 [ 0, %5 ], [ 0, %20 ], [ %40, %43 ], [ 0, %25 ], [ 0, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 84, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  ret i32 %.3
}

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

declare noundef i32 @_ZN3ptm15get_convex_hullEiPA3_KdPNS_12convexhull_tEPA3_a(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef i32 @_ZN3ptm12graph_degreeEiPA3_aiPa(i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

declare void @_ZN3ptm19subtract_barycentreEiPA3_dS1_(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef i32 @_ZN3ptm23canonical_form_colouredEiPA3_aiPaS2_S2_S2_Pm(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3ptmL12check_graphsEPKNS_9refdata_tEmPaPA3_dPNS_8result_tE(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 4}
!6 = !{!"_ZTSN3ptm9refdata_tE", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !7, i64 96, !10, i64 104, !7, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !13, i64 832}
!12 = !{!"_ZTSN3ptm12convexhull_tE", !8, i64 0, !8, i64 88, !8, i64 760, !8, i64 780, !8, i64 800, !7, i64 824, !7, i64 828, !13, i64 832}
!13 = !{!"bool", !8, i64 0}
!14 = !{!12, !7, i64 824}
!15 = !{!6, !7, i64 8}
!16 = !{!6, !7, i64 12}
!17 = !{!6, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!8, !8, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"long", !8, i64 0}


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