; LLVM IR from fcimeson/cbTSP :: cbLKH/SRC (SolveDelaunaySubproblems)

; 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.Node = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double, double, double, double, double, i8, i8, i8 }

@FirstNode = external dso_local global ptr, align 8
@Distance = external dso_local global ptr, align 8
@TraceLevel = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [45 x i8], align 1
@SubproblemSize = external dso_local global i32, align 4
@SubproblemsCompressed = external dso_local global i32, align 4
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@Optimum = external dso_local global i64, align 8
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [1 x i8], align 1
@SubproblemBorders = external dso_local global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @SolveDelaunaySubproblems() #0 {
  %1 = alloca ptr, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %7 = call double @GetTime()
  store double %7, ptr %6, align 8, !tbaa !5
  call void @AllocateStructures()
  %8 = call i32 @ReadPenalties()
  store i64 0, ptr %2, align 8, !tbaa !9
  %9 = load ptr, ptr @FirstNode, align 8, !tbaa !11
  store ptr %9, ptr %1, align 8, !tbaa !11
  br label %10

10:                                               ; preds = %39, %0
  %11 = load ptr, ptr %1, align 8, !tbaa !11
  %12 = getelementptr inbounds %struct.Node, ptr %11, i32 0, i32 26
  %13 = load ptr, ptr %12, align 8, !tbaa !13
  %14 = load ptr, ptr %1, align 8, !tbaa !11
  %15 = getelementptr inbounds %struct.Node, ptr %14, i32 0, i32 35
  %16 = load ptr, ptr %15, align 8, !tbaa !16
  %17 = icmp eq ptr %13, %16
  br i1 %17, label %36, label %18

18:                                               ; preds = %10
  %19 = load ptr, ptr %1, align 8, !tbaa !11
  %20 = getelementptr inbounds %struct.Node, ptr %19, i32 0, i32 27
  %21 = load ptr, ptr %20, align 8, !tbaa !17
  %22 = load ptr, ptr %1, align 8, !tbaa !11
  %23 = getelementptr inbounds %struct.Node, ptr %22, i32 0, i32 35
  %24 = load ptr, ptr %23, align 8, !tbaa !16
  %25 = icmp eq ptr %21, %24
  br i1 %25, label %36, label %26

26:                                               ; preds = %18
  %27 = load ptr, ptr @Distance, align 8, !tbaa !11
  %28 = load ptr, ptr %1, align 8, !tbaa !11
  %29 = load ptr, ptr %1, align 8, !tbaa !11
  %30 = getelementptr inbounds %struct.Node, ptr %29, i32 0, i32 35
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  %32 = call i32 %27(ptr noundef %28, ptr noundef %31)
  %33 = sext i32 %32 to i64
  %34 = load i64, ptr %2, align 8, !tbaa !9
  %35 = add nsw i64 %34, %33
  store i64 %35, ptr %2, align 8, !tbaa !9
  br label %36

36:                                               ; preds = %26, %18, %10
  %37 = load ptr, ptr %1, align 8, !tbaa !11
  %38 = getelementptr inbounds %struct.Node, ptr %37, i32 0, i32 12
  store i32 0, ptr %38, align 8, !tbaa !18
  br label %39

39:                                               ; preds = %36
  %40 = load ptr, ptr %1, align 8, !tbaa !11
  %41 = getelementptr inbounds %struct.Node, ptr %40, i32 0, i32 35
  %42 = load ptr, ptr %41, align 8, !tbaa !16
  store ptr %42, ptr %1, align 8, !tbaa !11
  %43 = load ptr, ptr @FirstNode, align 8, !tbaa !11
  %44 = icmp ne ptr %42, %43
  br i1 %44, label %10, label %45, !llvm.loop !19

45:                                               ; preds = %39
  %46 = load i32, ptr @TraceLevel, align 4, !tbaa !21
  %47 = icmp sge i32 %46, 1
  br i1 %47, label %48, label %54

48:                                               ; preds = %45
  %49 = load i32, ptr @TraceLevel, align 4, !tbaa !21
  %50 = icmp sge i32 %49, 2
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  call void (ptr, ...) @printff(ptr noundef @.str)
  br label %52

52:                                               ; preds = %51, %48
  %53 = load i64, ptr %2, align 8, !tbaa !9
  call void (ptr, ...) @printff(ptr noundef @.str.1, i64 noundef %53)
  br label %54

54:                                               ; preds = %52, %45
  %55 = load i32, ptr @SubproblemSize, align 4, !tbaa !21
  %56 = call i32 @DelaunayClustering(i32 noundef %55)
  store i32 %56, ptr %5, align 4, !tbaa !21
  store i32 1, ptr %4, align 4, !tbaa !21
  br label %57

57:                                               ; preds = %76, %54
  %58 = load i32, ptr %4, align 4, !tbaa !21
  %59 = load i32, ptr %5, align 4, !tbaa !21
  %60 = icmp sle i32 %58, %59
  br i1 %60, label %61, label %79

61:                                               ; preds = %57
  %62 = load i64, ptr %2, align 8, !tbaa !9
  store i64 %62, ptr %3, align 8, !tbaa !9
  %63 = load i32, ptr %4, align 4, !tbaa !21
  %64 = load i32, ptr %5, align 4, !tbaa !21
  %65 = call i32 @SolveSubproblem(i32 noundef %63, i32 noundef %64, ptr noundef %2)
  %66 = load i32, ptr @SubproblemsCompressed, align 4, !tbaa !21
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %75

68:                                               ; preds = %61
  %69 = load i64, ptr %2, align 8, !tbaa !9
  %70 = load i64, ptr %3, align 8, !tbaa !9
  %71 = icmp eq i64 %69, %70
  br i1 %71, label %72, label %75

72:                                               ; preds = %68
  %73 = load i32, ptr %4, align 4, !tbaa !21
  %74 = load i32, ptr %5, align 4, !tbaa !21
  call void @SolveCompressedSubproblem(i32 noundef %73, i32 noundef %74, ptr noundef %2)
  br label %75

75:                                               ; preds = %72, %68, %61
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %4, align 4, !tbaa !21
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %4, align 4, !tbaa !21
  br label %57, !llvm.loop !22

79:                                               ; preds = %57
  %80 = load i64, ptr %2, align 8, !tbaa !9
  call void (ptr, ...) @printff(ptr noundef @.str.2, i64 noundef %80)
  %81 = load i64, ptr @Optimum, align 8, !tbaa !9
  %82 = icmp ne i64 %81, -9223372036854775808
  br i1 %82, label %83, label %95

83:                                               ; preds = %79
  %84 = load i64, ptr @Optimum, align 8, !tbaa !9
  %85 = icmp ne i64 %84, 0
  br i1 %85, label %86, label %95

86:                                               ; preds = %83
  %87 = load i64, ptr %2, align 8, !tbaa !9
  %88 = load i64, ptr @Optimum, align 8, !tbaa !9
  %89 = sub nsw i64 %87, %88
  %90 = sitofp i64 %89 to double
  %91 = fmul double 1.000000e+02, %90
  %92 = load i64, ptr @Optimum, align 8, !tbaa !9
  %93 = sitofp i64 %92 to double
  %94 = fdiv double %91, %93
  call void (ptr, ...) @printff(ptr noundef @.str.3, double noundef %94)
  br label %95

95:                                               ; preds = %86, %83, %79
  %96 = call double @GetTime()
  %97 = load double, ptr %6, align 8, !tbaa !5
  %98 = fsub double %96, %97
  %99 = call double @llvm.fabs.f64(double %98)
  %100 = load i64, ptr %2, align 8, !tbaa !9
  %101 = load i64, ptr @Optimum, align 8, !tbaa !9
  %102 = icmp slt i64 %100, %101
  br i1 %102, label %103, label %104

103:                                              ; preds = %95
  br label %110

104:                                              ; preds = %95
  %105 = load i64, ptr %2, align 8, !tbaa !9
  %106 = load i64, ptr @Optimum, align 8, !tbaa !9
  %107 = icmp eq i64 %105, %106
  %108 = zext i1 %107 to i64
  %109 = select i1 %107, ptr @.str.6, ptr @.str.7
  br label %110

110:                                              ; preds = %104, %103
  %111 = phi ptr [ @.str.5, %103 ], [ %109, %104 ]
  call void (ptr, ...) @printff(ptr noundef @.str.4, double noundef %99, ptr noundef %111)
  %112 = load i32, ptr @SubproblemBorders, align 4, !tbaa !21
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %119

114:                                              ; preds = %110
  %115 = load i32, ptr %5, align 4, !tbaa !21
  %116 = icmp sgt i32 %115, 1
  br i1 %116, label %117, label %119

117:                                              ; preds = %114
  %118 = load i32, ptr %5, align 4, !tbaa !21
  call void @SolveSubproblemBorderProblems(i32 noundef %118, ptr noundef %2)
  br label %119

119:                                              ; preds = %117, %114, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret void
}

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

declare double @GetTime() #2

declare void @AllocateStructures() #2

declare i32 @ReadPenalties() #2

declare void @printff(ptr noundef, ...) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @DelaunayClustering(i32 noundef) #0

declare i32 @SolveSubproblem(i32 noundef, i32 noundef, ptr noundef) #2

declare void @SolveCompressedSubproblem(i32 noundef, i32 noundef, ptr noundef) #2

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

declare void @SolveSubproblemBorderProblems(i32 noundef, ptr noundef) #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 152}
!14 = !{!"Node", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !7, i64 360, !7, i64 361, !7, i64 362}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !12, i64 224}
!17 = !{!14, !12, i64 160}
!18 = !{!14, !15, i64 48}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!15, !15, i64 0}
!22 = distinct !{!22, !20}


; 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"

@FirstNode = external dso_local local_unnamed_addr global ptr, align 8
@Distance = external dso_local local_unnamed_addr global ptr, align 8
@TraceLevel = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [45 x i8], align 1
@SubproblemSize = external dso_local local_unnamed_addr global i32, align 4
@SubproblemsCompressed = external dso_local local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@Optimum = external dso_local local_unnamed_addr global i64, align 8
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [1 x i8], align 1
@SubproblemBorders = external dso_local local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @SolveDelaunaySubproblems() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  %2 = tail call double @GetTime() #4
  tail call void @AllocateStructures() #4
  %3 = tail call i32 @ReadPenalties() #4
  %4 = load ptr, ptr @FirstNode, align 8, !tbaa !5
  br label %5

5:                                                ; preds = %22, %0
  %6 = phi ptr [ %4, %0 ], [ %23, %22 ]
  %7 = phi i64 [ 0, %0 ], [ %25, %22 ]
  %.0 = phi ptr [ %4, %0 ], [ %24, %22 ]
  %8 = getelementptr inbounds i8, ptr %.0, i64 152
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %.0, i64 224
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %12 = icmp eq ptr %9, %11
  br i1 %12, label %22, label %13

13:                                               ; preds = %5
  %14 = getelementptr inbounds i8, ptr %.0, i64 160
  %15 = load ptr, ptr %14, align 8, !tbaa !14
  %16 = icmp eq ptr %15, %11
  br i1 %16, label %22, label %17

17:                                               ; preds = %13
  %18 = load ptr, ptr @Distance, align 8, !tbaa !5
  %19 = tail call i32 %18(ptr noundef nonnull %.0, ptr noundef %11) #4
  %20 = sext i32 %19 to i64
  %21 = add nsw i64 %7, %20
  %.pre = load ptr, ptr %10, align 8, !tbaa !13
  %.pre35 = load ptr, ptr @FirstNode, align 8, !tbaa !5
  br label %22

22:                                               ; preds = %17, %13, %5
  %23 = phi ptr [ %.pre35, %17 ], [ %6, %13 ], [ %6, %5 ]
  %24 = phi ptr [ %.pre, %17 ], [ %11, %13 ], [ %11, %5 ]
  %25 = phi i64 [ %21, %17 ], [ %7, %13 ], [ %7, %5 ]
  %26 = getelementptr inbounds i8, ptr %.0, i64 48
  store i32 0, ptr %26, align 8, !tbaa !15
  %.not = icmp eq ptr %24, %23
  br i1 %.not, label %27, label %5, !llvm.loop !16

27:                                               ; preds = %22
  store i64 %25, ptr %1, align 8, !tbaa !18
  %28 = load i32, ptr @TraceLevel, align 4, !tbaa !20
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %30, label %33

30:                                               ; preds = %27
  %.not29 = icmp eq i32 %28, 1
  br i1 %.not29, label %32, label %31

31:                                               ; preds = %30
  tail call void (ptr, ...) @printff(ptr noundef nonnull @.str) #4
  br label %32

32:                                               ; preds = %31, %30
  tail call void (ptr, ...) @printff(ptr noundef nonnull @.str.1, i64 noundef %25) #4
  br label %33

33:                                               ; preds = %32, %27
  %34 = load i32, ptr @SubproblemSize, align 4, !tbaa !20
  %35 = tail call i32 @DelaunayClustering(i32 noundef %34)
  %.not3033 = icmp slt i32 %35, 1
  br i1 %.not3033, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %33, %42
  %.02134 = phi i32 [ %43, %42 ], [ 1, %33 ]
  %36 = load i64, ptr %1, align 8, !tbaa !18
  %37 = call i32 @SolveSubproblem(i32 noundef %.02134, i32 noundef %35, ptr noundef nonnull %1) #4
  %38 = load i32, ptr @SubproblemsCompressed, align 4, !tbaa !20
  %.not31 = icmp ne i32 %38, 0
  %39 = load i64, ptr %1, align 8
  %40 = icmp eq i64 %39, %36
  %or.cond = select i1 %.not31, i1 %40, i1 false
  br i1 %or.cond, label %41, label %42

41:                                               ; preds = %.lr.ph
  call void @SolveCompressedSubproblem(i32 noundef %.02134, i32 noundef %35, ptr noundef nonnull %1) #4
  br label %42

42:                                               ; preds = %.lr.ph, %41
  %43 = add nuw i32 %.02134, 1
  %exitcond.not = icmp eq i32 %.02134, %35
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !21

._crit_edge.loopexit:                             ; preds = %42
  %.pre36 = load i64, ptr %1, align 8, !tbaa !18
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %33
  %44 = phi i64 [ %.pre36, %._crit_edge.loopexit ], [ %25, %33 ]
  call void (ptr, ...) @printff(ptr noundef nonnull @.str.2, i64 noundef %44) #4
  %45 = load i64, ptr @Optimum, align 8
  %46 = and i64 %45, 9223372036854775807
  %or.cond.not = icmp eq i64 %46, 0
  br i1 %or.cond.not, label %54, label %47

47:                                               ; preds = %._crit_edge
  %48 = load i64, ptr %1, align 8, !tbaa !18
  %49 = sub nsw i64 %48, %45
  %50 = sitofp i64 %49 to double
  %51 = fmul double %50, 1.000000e+02
  %52 = sitofp i64 %45 to double
  %53 = fdiv double %51, %52
  call void (ptr, ...) @printff(ptr noundef nonnull @.str.3, double noundef %53) #4
  br label %54

54:                                               ; preds = %47, %._crit_edge
  %55 = call double @GetTime() #4
  %56 = fsub double %55, %2
  %57 = call double @llvm.fabs.f64(double %56)
  %58 = load i64, ptr %1, align 8, !tbaa !18
  %59 = load i64, ptr @Optimum, align 8, !tbaa !18
  %60 = icmp slt i64 %58, %59
  %61 = icmp eq i64 %58, %59
  %62 = select i1 %61, ptr @.str.6, ptr @.str.7
  %63 = select i1 %60, ptr @.str.5, ptr %62
  call void (ptr, ...) @printff(ptr noundef nonnull @.str.4, double noundef %57, ptr noundef nonnull %63) #4
  %64 = load i32, ptr @SubproblemBorders, align 4, !tbaa !20
  %65 = icmp ne i32 %64, 0
  %66 = icmp sgt i32 %35, 1
  %or.cond3 = and i1 %66, %65
  br i1 %or.cond3, label %67, label %68

67:                                               ; preds = %54
  call void @SolveSubproblemBorderProblems(i32 noundef %35, ptr noundef nonnull %1) #4
  br label %68

68:                                               ; preds = %67, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret void
}

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

declare double @GetTime() local_unnamed_addr #2

declare void @AllocateStructures() local_unnamed_addr #2

declare i32 @ReadPenalties() local_unnamed_addr #2

declare void @printff(ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @DelaunayClustering(i32 noundef) local_unnamed_addr #0

declare i32 @SolveSubproblem(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @SolveCompressedSubproblem(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

declare void @SolveSubproblemBorderProblems(i32 noundef, ptr noundef) local_unnamed_addr #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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/C++ TBAA"}
!9 = !{!10, !6, i64 152}
!10 = !{!"Node", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !12, i64 312, !12, i64 320, !12, i64 328, !12, i64 336, !12, i64 344, !12, i64 352, !7, i64 360, !7, i64 361, !7, i64 362}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!10, !6, i64 224}
!14 = !{!10, !6, i64 160}
!15 = !{!10, !11, i64 48}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"long long", !7, i64 0}
!20 = !{!11, !11, i64 0}
!21 = distinct !{!21, !17}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass