; LLVM IR from siconos/siconos :: externals/lbl/metis4/mrefine.ll_ (MocRefine2Way)

; 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.graphdef = type { ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr }
%struct.controldef = type { i32, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, %struct.workspacedef, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%struct.workspacedef = type { ptr, i32, i32, ptr, ptr, i32, ptr, ptr }

@.str = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @__MocRefine2Way(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, float noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca [16 x float], align 16
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store float %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #3
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %13

13:                                               ; preds = %23, %5
  %14 = load i32, ptr %11, align 4, !tbaa !11
  %15 = load ptr, ptr %8, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.graphdef, ptr %15, i32 0, i32 24
  %17 = load i32, ptr %16, align 8, !tbaa !13
  %18 = icmp slt i32 %14, %17
  br i1 %18, label %19, label %26

19:                                               ; preds = %13
  %20 = load i32, ptr %11, align 4, !tbaa !11
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [16 x float], ptr %12, i64 0, i64 %21
  store float 1.000000e+00, ptr %22, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %19
  %24 = load i32, ptr %11, align 4, !tbaa !11
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %11, align 4, !tbaa !11
  br label %13, !llvm.loop !15

26:                                               ; preds = %13
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.controldef, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 4, !tbaa !17
  %30 = and i32 %29, 1
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %38

32:                                               ; preds = %26
  %33 = call double @__seconds()
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.controldef, ptr %34, i32 0, i32 17
  %36 = load double, ptr %35, align 8, !tbaa !21
  %37 = fsub double %36, %33
  store double %37, ptr %35, align 8, !tbaa !21
  br label %38

38:                                               ; preds = %32, %26
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  call void @__MocCompute2WayPartitionParams(ptr noundef %39, ptr noundef %40)
  br label %41

41:                                               ; preds = %122, %38
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.controldef, ptr %42, i32 0, i32 1
  %44 = load i32, ptr %43, align 4, !tbaa !17
  %45 = and i32 %44, 1
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %53

47:                                               ; preds = %41
  %48 = call double @__seconds()
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.controldef, ptr %49, i32 0, i32 19
  %51 = load double, ptr %50, align 8, !tbaa !22
  %52 = fsub double %51, %48
  store double %52, ptr %50, align 8, !tbaa !22
  br label %53

53:                                               ; preds = %47, %41
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.controldef, ptr %54, i32 0, i32 4
  %56 = load i32, ptr %55, align 8, !tbaa !23
  switch i32 %56, label %72 [
    i32 1, label %57
    i32 2, label %64
  ]

57:                                               ; preds = %53
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  call void @__MocBalance2Way(ptr noundef %58, ptr noundef %59, ptr noundef %60, float noundef 0x3FF07AE140000000)
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  call void @__MocFM_2WayEdgeRefine(ptr noundef %61, ptr noundef %62, ptr noundef %63, i32 noundef 8)
  br label %76

64:                                               ; preds = %53
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  call void @__MocBalance2Way(ptr noundef %65, ptr noundef %66, ptr noundef %67, float noundef 0x3FF07AE140000000)
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = getelementptr inbounds [16 x float], ptr %12, i64 0, i64 0
  call void @__MocFM_2WayEdgeRefine2(ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, i32 noundef 8)
  br label %76

72:                                               ; preds = %53
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.controldef, ptr %73, i32 0, i32 4
  %75 = load i32, ptr %74, align 8, !tbaa !23
  call void (ptr, ...) @__errexit(ptr noundef @.str, i32 noundef %75)
  br label %76

76:                                               ; preds = %72, %64, %57
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.controldef, ptr %77, i32 0, i32 1
  %79 = load i32, ptr %78, align 4, !tbaa !17
  %80 = and i32 %79, 1
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %88

82:                                               ; preds = %76
  %83 = call double @__seconds()
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.controldef, ptr %84, i32 0, i32 19
  %86 = load double, ptr %85, align 8, !tbaa !22
  %87 = fadd double %86, %83
  store double %87, ptr %85, align 8, !tbaa !22
  br label %88

88:                                               ; preds = %82, %76
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = icmp eq ptr %89, %90
  br i1 %91, label %92, label %93

92:                                               ; preds = %88
  br label %123

93:                                               ; preds = %88
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.graphdef, ptr %94, i32 0, i32 28
  %96 = load ptr, ptr %95, align 8, !tbaa !24
  store ptr %96, ptr %8, align 8, !tbaa !5
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.controldef, ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 4, !tbaa !17
  %100 = and i32 %99, 1
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %108

102:                                              ; preds = %93
  %103 = call double @__seconds()
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.controldef, ptr %104, i32 0, i32 20
  %106 = load double, ptr %105, align 8, !tbaa !25
  %107 = fsub double %106, %103
  store double %107, ptr %105, align 8, !tbaa !25
  br label %108

108:                                              ; preds = %102, %93
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  call void @__MocProject2WayPartition(ptr noundef %109, ptr noundef %110)
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.controldef, ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 4, !tbaa !17
  %114 = and i32 %113, 1
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %122

116:                                              ; preds = %108
  %117 = call double @__seconds()
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.controldef, ptr %118, i32 0, i32 20
  %120 = load double, ptr %119, align 8, !tbaa !25
  %121 = fadd double %120, %117
  store double %121, ptr %119, align 8, !tbaa !25
  br label %122

122:                                              ; preds = %116, %108
  br label %41

123:                                              ; preds = %92
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  call void @__MocBalance2Way(ptr noundef %124, ptr noundef %125, ptr noundef %126, float noundef 0x3FF028F5C0000000)
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  call void @__MocFM_2WayEdgeRefine(ptr noundef %127, ptr noundef %128, ptr noundef %129, i32 noundef 8)
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.controldef, ptr %130, i32 0, i32 1
  %132 = load i32, ptr %131, align 4, !tbaa !17
  %133 = and i32 %132, 1
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %141

135:                                              ; preds = %123
  %136 = call double @__seconds()
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.controldef, ptr %137, i32 0, i32 17
  %139 = load double, ptr %138, align 8, !tbaa !21
  %140 = fadd double %139, %136
  store double %140, ptr %138, align 8, !tbaa !21
  br label %141

141:                                              ; preds = %135, %123
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  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 @__seconds() #2

; Function Attrs: nounwind uwtable
declare dso_local void @__MocCompute2WayPartitionParams(ptr noundef, ptr noundef) #0

declare void @__MocBalance2Way(ptr noundef, ptr noundef, ptr noundef, float noundef) #2

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @__MocProject2WayPartition(ptr noundef, ptr noundef) #0

; 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 = { 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, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 176}
!14 = !{!"graphdef", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !12, i64 88, !12, i64 92, !6, i64 96, !6, i64 104, !12, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !12, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !12, i64 4}
!18 = !{!"controldef", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !10, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !19, i64 48, !20, i64 104, !20, i64 112, !20, i64 120, !20, i64 128, !20, i64 136, !20, i64 144, !20, i64 152, !20, i64 160, !20, i64 168, !20, i64 176, !20, i64 184, !20, i64 192, !20, i64 200, !20, i64 208, !20, i64 216, !20, i64 224}
!19 = !{!"workspacedef", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16, !6, i64 24, !12, i64 32, !6, i64 40, !6, i64 48}
!20 = !{!"double", !7, i64 0}
!21 = !{!18, !20, i64 144}
!22 = !{!18, !20, i64 160}
!23 = !{!18, !12, i64 16}
!24 = !{!14, !6, i64 208}
!25 = !{!18, !20, i64 168}


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

@.str = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @__MocRefine2Way(ptr noundef %0, ptr noundef readnone %1, ptr noundef %2, ptr noundef %3, float noundef %4) local_unnamed_addr #0 {
  %6 = alloca [16 x float], align 16
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #3
  %7 = getelementptr inbounds i8, ptr %2, i64 176
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %5
  %wide.trip.count = zext nneg i32 %8 to i64
  %min.iters.check = icmp ult i32 %8, 8
  br i1 %min.iters.check, label %.lr.ph.preheader50, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %10 = getelementptr inbounds [16 x float], ptr %6, i64 0, i64 %index
  %11 = getelementptr inbounds i8, ptr %10, i64 16
  store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, ptr %10, align 16, !tbaa !11
  store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, ptr %11, align 16, !tbaa !11
  %index.next = add nuw i64 %index, 8
  %12 = icmp eq i64 %index.next, %n.vec
  br i1 %12, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader50

.lr.ph.preheader50:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader50, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader50 ]
  %13 = getelementptr inbounds [16 x float], ptr %6, i64 0, i64 %indvars.iv
  store float 1.000000e+00, ptr %13, align 4, !tbaa !11
  %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 %._crit_edge, label %.lr.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %5
  %14 = getelementptr inbounds i8, ptr %0, i64 4
  %15 = load i32, ptr %14, align 4, !tbaa !18
  %16 = and i32 %15, 1
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %22, label %17

17:                                               ; preds = %._crit_edge
  %18 = tail call double @__seconds() #3
  %19 = getelementptr inbounds i8, ptr %0, i64 144
  %20 = load double, ptr %19, align 8, !tbaa !22
  %21 = fsub double %20, %18
  store double %21, ptr %19, align 8, !tbaa !22
  br label %22

22:                                               ; preds = %17, %._crit_edge
  tail call void @__MocCompute2WayPartitionParams(ptr noundef nonnull %0, ptr noundef nonnull %2)
  %23 = getelementptr inbounds i8, ptr %0, i64 160
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = getelementptr inbounds i8, ptr %0, i64 168
  br label %26

26:                                               ; preds = %.backedge, %22
  %.042 = phi ptr [ %2, %22 ], [ %49, %.backedge ]
  %27 = load i32, ptr %14, align 4, !tbaa !18
  %28 = and i32 %27, 1
  %.not43 = icmp eq i32 %28, 0
  br i1 %.not43, label %33, label %29

29:                                               ; preds = %26
  %30 = call double @__seconds() #3
  %31 = load double, ptr %23, align 8, !tbaa !23
  %32 = fsub double %31, %30
  store double %32, ptr %23, align 8, !tbaa !23
  br label %33

33:                                               ; preds = %29, %26
  %34 = load i32, ptr %24, align 8, !tbaa !24
  switch i32 %34, label %37 [
    i32 1, label %35
    i32 2, label %36
  ]

35:                                               ; preds = %33
  call void @__MocBalance2Way(ptr noundef nonnull %0, ptr noundef %.042, ptr noundef %3, float noundef 0x3FF07AE140000000) #3
  call void @__MocFM_2WayEdgeRefine(ptr noundef nonnull %0, ptr noundef %.042, ptr noundef %3, i32 noundef 8) #3
  br label %38

36:                                               ; preds = %33
  call void @__MocBalance2Way(ptr noundef nonnull %0, ptr noundef %.042, ptr noundef %3, float noundef 0x3FF07AE140000000) #3
  call void @__MocFM_2WayEdgeRefine2(ptr noundef nonnull %0, ptr noundef %.042, ptr noundef %3, ptr noundef nonnull %6, i32 noundef 8) #3
  br label %38

37:                                               ; preds = %33
  call void (ptr, ...) @__errexit(ptr noundef nonnull @.str, i32 noundef %34) #3
  br label %38

38:                                               ; preds = %37, %36, %35
  %39 = load i32, ptr %14, align 4, !tbaa !18
  %40 = and i32 %39, 1
  %.not44 = icmp eq i32 %40, 0
  br i1 %.not44, label %45, label %41

41:                                               ; preds = %38
  %42 = call double @__seconds() #3
  %43 = load double, ptr %23, align 8, !tbaa !23
  %44 = fadd double %42, %43
  store double %44, ptr %23, align 8, !tbaa !23
  br label %45

45:                                               ; preds = %41, %38
  %46 = icmp eq ptr %.042, %1
  br i1 %46, label %63, label %47

47:                                               ; preds = %45
  %48 = getelementptr inbounds i8, ptr %.042, i64 208
  %49 = load ptr, ptr %48, align 8, !tbaa !25
  %50 = load i32, ptr %14, align 4, !tbaa !18
  %51 = and i32 %50, 1
  %.not45 = icmp eq i32 %51, 0
  br i1 %.not45, label %56, label %52

52:                                               ; preds = %47
  %53 = call double @__seconds() #3
  %54 = load double, ptr %25, align 8, !tbaa !26
  %55 = fsub double %54, %53
  store double %55, ptr %25, align 8, !tbaa !26
  br label %56

56:                                               ; preds = %52, %47
  call void @__MocProject2WayPartition(ptr noundef nonnull %0, ptr noundef %49)
  %57 = load i32, ptr %14, align 4, !tbaa !18
  %58 = and i32 %57, 1
  %.not46 = icmp eq i32 %58, 0
  br i1 %.not46, label %.backedge, label %59

59:                                               ; preds = %56
  %60 = call double @__seconds() #3
  %61 = load double, ptr %25, align 8, !tbaa !26
  %62 = fadd double %60, %61
  store double %62, ptr %25, align 8, !tbaa !26
  br label %.backedge

.backedge:                                        ; preds = %59, %56
  br label %26

63:                                               ; preds = %45
  call void @__MocBalance2Way(ptr noundef nonnull %0, ptr noundef %.042, ptr noundef %3, float noundef 0x3FF028F5C0000000) #3
  call void @__MocFM_2WayEdgeRefine(ptr noundef nonnull %0, ptr noundef %.042, ptr noundef %3, i32 noundef 8) #3
  %64 = load i32, ptr %14, align 4, !tbaa !18
  %65 = and i32 %64, 1
  %.not47 = icmp eq i32 %65, 0
  br i1 %.not47, label %71, label %66

66:                                               ; preds = %63
  %67 = call double @__seconds() #3
  %68 = getelementptr inbounds i8, ptr %0, i64 144
  %69 = load double, ptr %68, align 8, !tbaa !22
  %70 = fadd double %67, %69
  store double %70, ptr %68, align 8, !tbaa !22
  br label %71

71:                                               ; preds = %66, %63
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #3
  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 @__seconds() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @__MocCompute2WayPartitionParams(ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @__MocBalance2Way(ptr noundef, ptr noundef, ptr noundef, float noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @__MocProject2WayPartition(ptr noundef, ptr noundef) local_unnamed_addr #0

; 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 = { 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, !10, i64 176}
!6 = !{!"graphdef", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !10, i64 88, !10, i64 92, !7, i64 96, !7, i64 104, !10, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !10, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !8, i64 0}
!13 = distinct !{!13, !14, !15, !16}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !14, !16, !15}
!18 = !{!19, !10, i64 4}
!19 = !{!"controldef", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !12, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !20, i64 48, !21, i64 104, !21, i64 112, !21, i64 120, !21, i64 128, !21, i64 136, !21, i64 144, !21, i64 152, !21, i64 160, !21, i64 168, !21, i64 176, !21, i64 184, !21, i64 192, !21, i64 200, !21, i64 208, !21, i64 216, !21, i64 224}
!20 = !{!"workspacedef", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 24, !10, i64 32, !7, i64 40, !7, i64 48}
!21 = !{!"double", !8, i64 0}
!22 = !{!19, !21, i64 144}
!23 = !{!19, !21, i64 160}
!24 = !{!19, !10, i64 16}
!25 = !{!6, !7, i64 208}
!26 = !{!19, !21, i64 168}


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