; LLVM IR from stivalaa/EstimNetDirected :: src (changeStatisticsGeneral)

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @changeIsolates(ptr noundef, i32 noundef, i32 noundef, double noundef) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @empty_graph_stats(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13) #1 {
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  store ptr %0, ptr %15, align 8, !tbaa !5
  store i32 %1, ptr %16, align 4, !tbaa !9
  store i32 %2, ptr %17, align 4, !tbaa !9
  store i32 %3, ptr %18, align 4, !tbaa !9
  store i32 %4, ptr %19, align 4, !tbaa !9
  store ptr %5, ptr %20, align 8, !tbaa !5
  store ptr %6, ptr %21, align 8, !tbaa !5
  store ptr %7, ptr %22, align 8, !tbaa !5
  store ptr %8, ptr %23, align 8, !tbaa !5
  store ptr %9, ptr %24, align 8, !tbaa !5
  store ptr %10, ptr %25, align 8, !tbaa !5
  store ptr %11, ptr %26, align 8, !tbaa !5
  store ptr %12, ptr %27, align 8, !tbaa !5
  store ptr %13, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  store i32 0, ptr %30, align 4, !tbaa !9
  %31 = load ptr, ptr %22, align 8, !tbaa !5
  %32 = load ptr, ptr %21, align 8, !tbaa !5
  %33 = load ptr, ptr %23, align 8, !tbaa !5
  %34 = load ptr, ptr %26, align 8, !tbaa !5
  %35 = load ptr, ptr %24, align 8, !tbaa !5
  %36 = load ptr, ptr %25, align 8, !tbaa !5
  %37 = load ptr, ptr %27, align 8, !tbaa !5
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %106, %14
  %39 = load i32, ptr %29, align 4, !tbaa !9
  %40 = load i32, ptr %16, align 4, !tbaa !9
  %41 = load i32, ptr %17, align 4, !tbaa !9
  %42 = sub i32 %40, %41
  %43 = load i32, ptr %18, align 4, !tbaa !9
  %44 = sub i32 %42, %43
  %45 = load i32, ptr %19, align 4, !tbaa !9
  %46 = sub i32 %44, %45
  %47 = icmp ult i32 %39, %46
  br i1 %47, label %48, label %109

48:                                               ; preds = %38
  %49 = load ptr, ptr %20, align 8, !tbaa !5
  %50 = load i32, ptr %29, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds ptr, ptr %49, i64 %51
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = icmp eq ptr %53, @changeIsolates
  br i1 %54, label %55, label %64

55:                                               ; preds = %48
  %56 = load ptr, ptr %15, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.graph_s, ptr %56, i32 0, i32 0
  %58 = load i32, ptr %57, align 8, !tbaa !11
  %59 = uitofp i32 %58 to double
  %60 = load ptr, ptr %28, align 8, !tbaa !5
  %61 = load i32, ptr %30, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds double, ptr %60, i64 %62
  store double %59, ptr %63, align 8, !tbaa !13
  br label %103

64:                                               ; preds = %48
  %65 = load ptr, ptr %20, align 8, !tbaa !5
  %66 = load i32, ptr %29, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds ptr, ptr %65, i64 %67
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = icmp eq ptr %69, @changeBipartiteIsolatesA
  br i1 %70, label %71, label %80

71:                                               ; preds = %64
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.graph_s, ptr %72, i32 0, i32 13
  %74 = load i32, ptr %73, align 8, !tbaa !15
  %75 = uitofp i32 %74 to double
  %76 = load ptr, ptr %28, align 8, !tbaa !5
  %77 = load i32, ptr %30, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds double, ptr %76, i64 %78
  store double %75, ptr %79, align 8, !tbaa !13
  br label %102

80:                                               ; preds = %64
  %81 = load ptr, ptr %20, align 8, !tbaa !5
  %82 = load i32, ptr %29, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds ptr, ptr %81, i64 %83
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  %86 = icmp eq ptr %85, @changeBipartiteIsolatesB
  br i1 %86, label %87, label %96

87:                                               ; preds = %80
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.graph_s, ptr %88, i32 0, i32 14
  %90 = load i32, ptr %89, align 4, !tbaa !16
  %91 = uitofp i32 %90 to double
  %92 = load ptr, ptr %28, align 8, !tbaa !5
  %93 = load i32, ptr %30, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds double, ptr %92, i64 %94
  store double %91, ptr %95, align 8, !tbaa !13
  br label %101

96:                                               ; preds = %80
  %97 = load ptr, ptr %28, align 8, !tbaa !5
  %98 = load i32, ptr %30, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds double, ptr %97, i64 %99
  store double 0.000000e+00, ptr %100, align 8, !tbaa !13
  br label %101

101:                                              ; preds = %96, %87
  br label %102

102:                                              ; preds = %101, %71
  br label %103

103:                                              ; preds = %102, %55
  %104 = load i32, ptr %30, align 4, !tbaa !9
  %105 = add i32 %104, 1
  store i32 %105, ptr %30, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %103
  %107 = load i32, ptr %29, align 4, !tbaa !9
  %108 = add i32 %107, 1
  store i32 %108, ptr %29, align 4, !tbaa !9
  br label %38, !llvm.loop !17

109:                                              ; preds = %38
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %121, %109
  %111 = load i32, ptr %29, align 4, !tbaa !9
  %112 = load i32, ptr %17, align 4, !tbaa !9
  %113 = icmp ult i32 %111, %112
  br i1 %113, label %114, label %124

114:                                              ; preds = %110
  %115 = load ptr, ptr %28, align 8, !tbaa !5
  %116 = load i32, ptr %30, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds double, ptr %115, i64 %117
  store double 0.000000e+00, ptr %118, align 8, !tbaa !13
  %119 = load i32, ptr %30, align 4, !tbaa !9
  %120 = add i32 %119, 1
  store i32 %120, ptr %30, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %114
  %122 = load i32, ptr %29, align 4, !tbaa !9
  %123 = add i32 %122, 1
  store i32 %123, ptr %29, align 4, !tbaa !9
  br label %110, !llvm.loop !19

124:                                              ; preds = %110
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %136, %124
  %126 = load i32, ptr %29, align 4, !tbaa !9
  %127 = load i32, ptr %18, align 4, !tbaa !9
  %128 = icmp ult i32 %126, %127
  br i1 %128, label %129, label %139

129:                                              ; preds = %125
  %130 = load ptr, ptr %28, align 8, !tbaa !5
  %131 = load i32, ptr %30, align 4, !tbaa !9
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds double, ptr %130, i64 %132
  store double 0.000000e+00, ptr %133, align 8, !tbaa !13
  %134 = load i32, ptr %30, align 4, !tbaa !9
  %135 = add i32 %134, 1
  store i32 %135, ptr %30, align 4, !tbaa !9
  br label %136

136:                                              ; preds = %129
  %137 = load i32, ptr %29, align 4, !tbaa !9
  %138 = add i32 %137, 1
  store i32 %138, ptr %29, align 4, !tbaa !9
  br label %125, !llvm.loop !20

139:                                              ; preds = %125
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %140

140:                                              ; preds = %151, %139
  %141 = load i32, ptr %29, align 4, !tbaa !9
  %142 = load i32, ptr %19, align 4, !tbaa !9
  %143 = icmp ult i32 %141, %142
  br i1 %143, label %144, label %154

144:                                              ; preds = %140
  %145 = load ptr, ptr %28, align 8, !tbaa !5
  %146 = load i32, ptr %30, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = getelementptr inbounds double, ptr %145, i64 %147
  store double 0.000000e+00, ptr %148, align 8, !tbaa !13
  %149 = load i32, ptr %30, align 4, !tbaa !9
  %150 = add i32 %149, 1
  store i32 %150, ptr %30, align 4, !tbaa !9
  br label %151

151:                                              ; preds = %144
  %152 = load i32, ptr %29, align 4, !tbaa !9
  %153 = add i32 %152, 1
  store i32 %153, ptr %29, align 4, !tbaa !9
  br label %140, !llvm.loop !21

154:                                              ; preds = %140
  %155 = load ptr, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  ret ptr %155
}

declare double @changeBipartiteIsolatesA(ptr noundef, i32 noundef, i32 noundef, double noundef) #2

declare double @changeBipartiteIsolatesB(ptr noundef, i32 noundef, i32 noundef, double noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { "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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"graph_s", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !10, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !6, i64 104, !6, i64 112, !10, i64 120, !6, i64 128, !6, i64 136, !10, i64 144, !6, i64 152, !6, i64 160, !10, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !6, i64 224, !10, i64 232, !10, i64 236, !6, i64 240, !6, i64 248, !10, i64 256, !6, i64 264, !10, i64 272, !6, i64 280, !6, i64 288, !10, i64 296, !10, i64 300, !6, i64 304, !10, i64 312, !6, i64 320}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!12, !10, i64 88}
!16 = !{!12, !10, i64 92}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}


; 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: nounwind uwtable
declare dso_local double @changeIsolates(ptr noundef, i32 noundef, i32 noundef, double noundef) #0

; Function Attrs: nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define dso_local noundef ptr @empty_graph_stats(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr nocapture noundef readonly %5, ptr nocapture noundef readnone %6, ptr nocapture noundef readnone %7, ptr nocapture noundef readnone %8, ptr nocapture noundef readnone %9, ptr nocapture noundef readnone %10, ptr nocapture noundef readnone %11, ptr nocapture noundef readnone %12, ptr noundef returned writeonly %13) local_unnamed_addr #1 {
  %15 = add i32 %2, %3
  %16 = add i32 %15, %4
  %17 = sub i32 %1, %16
  %.not = icmp eq i32 %16, %1
  br i1 %.not, label %.preheader59, label %.lr.ph

.lr.ph:                                           ; preds = %14
  %18 = getelementptr inbounds i8, ptr %0, i64 92
  %19 = getelementptr inbounds i8, ptr %0, i64 88
  %wide.trip.count = zext i32 %17 to i64
  br label %34

.preheader59:                                     ; preds = %51, %14
  %.0.lcssa = phi i32 [ 0, %14 ], [ %17, %51 ]
  %.not73 = icmp eq i32 %2, 0
  br i1 %.not73, label %.preheader58, label %.lr.ph64.preheader

.lr.ph64.preheader:                               ; preds = %.preheader59
  %20 = add i32 %.0.lcssa, %2
  %min.iters.check = icmp ult i32 %2, 8
  %21 = sub i32 0, %2
  %22 = icmp ugt i32 %.0.lcssa, %21
  %or.cond = or i1 %min.iters.check, %22
  br i1 %or.cond, label %.lr.ph64.preheader122, label %vector.ph

.lr.ph64.preheader122:                            ; preds = %middle.block, %.lr.ph64.preheader
  %.163.ph = phi i32 [ %.0.lcssa, %.lr.ph64.preheader ], [ %ind.end, %middle.block ]
  %23 = add i32 %.0.lcssa, %2
  %24 = sub i32 %23, %.163.ph
  %xtraiter = and i32 %24, 7
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph64.prol.loopexit, label %.lr.ph64.prol

.lr.ph64.prol:                                    ; preds = %.lr.ph64.preheader122, %.lr.ph64.prol
  %.163.prol = phi i32 [ %27, %.lr.ph64.prol ], [ %.163.ph, %.lr.ph64.preheader122 ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph64.prol ], [ 0, %.lr.ph64.preheader122 ]
  %25 = zext i32 %.163.prol to i64
  %26 = getelementptr inbounds double, ptr %13, i64 %25
  store double 0.000000e+00, ptr %26, align 8, !tbaa !5
  %27 = add i32 %.163.prol, 1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph64.prol.loopexit, label %.lr.ph64.prol, !llvm.loop !9

.lr.ph64.prol.loopexit:                           ; preds = %.lr.ph64.prol, %.lr.ph64.preheader122
  %.163.unr = phi i32 [ %.163.ph, %.lr.ph64.preheader122 ], [ %27, %.lr.ph64.prol ]
  %28 = sub i32 %.163.ph, %23
  %29 = icmp ugt i32 %28, -8
  br i1 %29, label %.preheader58, label %.lr.ph64

vector.ph:                                        ; preds = %.lr.ph64.preheader
  %n.vec = and i32 %2, -4
  %ind.end = add i32 %.0.lcssa, %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i32 %.0.lcssa, %index
  %30 = zext i32 %offset.idx to i64
  %31 = getelementptr inbounds double, ptr %13, i64 %30
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  store <2 x double> zeroinitializer, ptr %31, align 8, !tbaa !5
  store <2 x double> zeroinitializer, ptr %32, align 8, !tbaa !5
  %index.next = add nuw i32 %index, 4
  %33 = icmp eq i32 %index.next, %n.vec
  br i1 %33, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i32 %n.vec, %2
  br i1 %cmp.n, label %.preheader58, label %.lr.ph64.preheader122

34:                                               ; preds = %.lr.ph, %51
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %51 ]
  %35 = getelementptr inbounds ptr, ptr %5, i64 %indvars.iv
  %36 = load ptr, ptr %35, align 8, !tbaa !15
  %37 = icmp eq ptr %36, @changeIsolates
  br i1 %37, label %38, label %41

38:                                               ; preds = %34
  %39 = load i32, ptr %0, align 8, !tbaa !17
  %40 = uitofp i32 %39 to double
  br label %51

41:                                               ; preds = %34
  %42 = icmp eq ptr %36, @changeBipartiteIsolatesA
  br i1 %42, label %43, label %46

43:                                               ; preds = %41
  %44 = load i32, ptr %19, align 8, !tbaa !20
  %45 = uitofp i32 %44 to double
  br label %51

46:                                               ; preds = %41
  %47 = icmp eq ptr %36, @changeBipartiteIsolatesB
  br i1 %47, label %48, label %51

48:                                               ; preds = %46
  %49 = load i32, ptr %18, align 4, !tbaa !21
  %50 = uitofp i32 %49 to double
  br label %51

51:                                               ; preds = %46, %43, %48, %38
  %.sink = phi double [ %45, %43 ], [ %50, %48 ], [ %40, %38 ], [ 0.000000e+00, %46 ]
  %52 = getelementptr inbounds double, ptr %13, i64 %indvars.iv
  store double %.sink, ptr %52, align 8, !tbaa !5
  %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 %.preheader59, label %34, !llvm.loop !22

.preheader58:                                     ; preds = %.lr.ph64.prol.loopexit, %.lr.ph64, %middle.block, %.preheader59
  %.1.lcssa = phi i32 [ %.0.lcssa, %.preheader59 ], [ %20, %middle.block ], [ %20, %.lr.ph64 ], [ %20, %.lr.ph64.prol.loopexit ]
  %.not74 = icmp eq i32 %3, 0
  br i1 %.not74, label %.preheader, label %.lr.ph68.preheader

.lr.ph68.preheader:                               ; preds = %.preheader58
  %min.iters.check88 = icmp ult i32 %3, 6
  %53 = sub i32 0, %3
  %54 = icmp ugt i32 %.1.lcssa, %53
  %or.cond117 = or i1 %min.iters.check88, %54
  br i1 %or.cond117, label %.lr.ph68.preheader121, label %vector.ph89

.lr.ph68.preheader121:                            ; preds = %middle.block86, %.lr.ph68.preheader
  %.267.ph = phi i32 [ %.1.lcssa, %.lr.ph68.preheader ], [ %ind.end92, %middle.block86 ]
  %.25166.ph = phi i32 [ 0, %.lr.ph68.preheader ], [ %n.vec91, %middle.block86 ]
  %xtraiter123 = and i32 %3, 3
  %lcmp.mod124.not = icmp eq i32 %xtraiter123, 0
  br i1 %lcmp.mod124.not, label %.lr.ph68.prol.loopexit, label %.lr.ph68.prol

.lr.ph68.prol:                                    ; preds = %.lr.ph68.preheader121, %.lr.ph68.prol
  %.267.prol = phi i32 [ %57, %.lr.ph68.prol ], [ %.267.ph, %.lr.ph68.preheader121 ]
  %.25166.prol = phi i32 [ %58, %.lr.ph68.prol ], [ %.25166.ph, %.lr.ph68.preheader121 ]
  %prol.iter125 = phi i32 [ %prol.iter125.next, %.lr.ph68.prol ], [ 0, %.lr.ph68.preheader121 ]
  %55 = zext i32 %.267.prol to i64
  %56 = getelementptr inbounds double, ptr %13, i64 %55
  store double 0.000000e+00, ptr %56, align 8, !tbaa !5
  %57 = add i32 %.267.prol, 1
  %58 = add nuw i32 %.25166.prol, 1
  %prol.iter125.next = add i32 %prol.iter125, 1
  %prol.iter125.cmp.not = icmp eq i32 %prol.iter125.next, %xtraiter123
  br i1 %prol.iter125.cmp.not, label %.lr.ph68.prol.loopexit, label %.lr.ph68.prol, !llvm.loop !23

.lr.ph68.prol.loopexit:                           ; preds = %.lr.ph68.prol, %.lr.ph68.preheader121
  %.lcssa.unr = phi i32 [ poison, %.lr.ph68.preheader121 ], [ %57, %.lr.ph68.prol ]
  %.267.unr = phi i32 [ %.267.ph, %.lr.ph68.preheader121 ], [ %57, %.lr.ph68.prol ]
  %.25166.unr = phi i32 [ %.25166.ph, %.lr.ph68.preheader121 ], [ %58, %.lr.ph68.prol ]
  %59 = sub i32 %.25166.ph, %3
  %60 = icmp ugt i32 %59, -4
  br i1 %60, label %.preheader, label %.lr.ph68

vector.ph89:                                      ; preds = %.lr.ph68.preheader
  %n.vec91 = and i32 %3, -4
  %ind.end92 = add i32 %.1.lcssa, %n.vec91
  br label %vector.body95

vector.body95:                                    ; preds = %vector.body95, %vector.ph89
  %index96 = phi i32 [ 0, %vector.ph89 ], [ %index.next98, %vector.body95 ]
  %offset.idx97 = add i32 %.1.lcssa, %index96
  %61 = zext i32 %offset.idx97 to i64
  %62 = getelementptr inbounds double, ptr %13, i64 %61
  %63 = getelementptr inbounds i8, ptr %62, i64 16
  store <2 x double> zeroinitializer, ptr %62, align 8, !tbaa !5
  store <2 x double> zeroinitializer, ptr %63, align 8, !tbaa !5
  %index.next98 = add nuw i32 %index96, 4
  %64 = icmp eq i32 %index.next98, %n.vec91
  br i1 %64, label %middle.block86, label %vector.body95, !llvm.loop !24

middle.block86:                                   ; preds = %vector.body95
  %cmp.n99 = icmp eq i32 %n.vec91, %3
  br i1 %cmp.n99, label %.preheader, label %.lr.ph68.preheader121

.lr.ph64:                                         ; preds = %.lr.ph64.prol.loopexit, %.lr.ph64
  %.163 = phi i32 [ %88, %.lr.ph64 ], [ %.163.unr, %.lr.ph64.prol.loopexit ]
  %65 = zext i32 %.163 to i64
  %66 = getelementptr inbounds double, ptr %13, i64 %65
  store double 0.000000e+00, ptr %66, align 8, !tbaa !5
  %67 = add i32 %.163, 1
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds double, ptr %13, i64 %68
  store double 0.000000e+00, ptr %69, align 8, !tbaa !5
  %70 = add i32 %.163, 2
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds double, ptr %13, i64 %71
  store double 0.000000e+00, ptr %72, align 8, !tbaa !5
  %73 = add i32 %.163, 3
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %13, i64 %74
  store double 0.000000e+00, ptr %75, align 8, !tbaa !5
  %76 = add i32 %.163, 4
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %13, i64 %77
  store double 0.000000e+00, ptr %78, align 8, !tbaa !5
  %79 = add i32 %.163, 5
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr %13, i64 %80
  store double 0.000000e+00, ptr %81, align 8, !tbaa !5
  %82 = add i32 %.163, 6
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds double, ptr %13, i64 %83
  store double 0.000000e+00, ptr %84, align 8, !tbaa !5
  %85 = add i32 %.163, 7
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds double, ptr %13, i64 %86
  store double 0.000000e+00, ptr %87, align 8, !tbaa !5
  %88 = add i32 %.163, 8
  %exitcond81.not.7 = icmp eq i32 %88, %20
  br i1 %exitcond81.not.7, label %.preheader58, label %.lr.ph64, !llvm.loop !25

.preheader:                                       ; preds = %.lr.ph68.prol.loopexit, %.lr.ph68, %middle.block86, %.preheader58
  %.2.lcssa = phi i32 [ %.1.lcssa, %.preheader58 ], [ %ind.end92, %middle.block86 ], [ %.lcssa.unr, %.lr.ph68.prol.loopexit ], [ %112, %.lr.ph68 ]
  %.not75 = icmp eq i32 %4, 0
  br i1 %.not75, label %._crit_edge, label %.lr.ph72.preheader

.lr.ph72.preheader:                               ; preds = %.preheader
  %min.iters.check103 = icmp ult i32 %4, 6
  %89 = sub i32 0, %4
  %90 = icmp ugt i32 %.2.lcssa, %89
  %or.cond119 = or i1 %min.iters.check103, %90
  br i1 %or.cond119, label %.lr.ph72.preheader120, label %vector.ph104

.lr.ph72.preheader120:                            ; preds = %middle.block101, %.lr.ph72.preheader
  %.371.ph = phi i32 [ %.2.lcssa, %.lr.ph72.preheader ], [ %ind.end107, %middle.block101 ]
  %.35270.ph = phi i32 [ 0, %.lr.ph72.preheader ], [ %n.vec106, %middle.block101 ]
  %xtraiter126 = and i32 %4, 3
  %lcmp.mod127.not = icmp eq i32 %xtraiter126, 0
  br i1 %lcmp.mod127.not, label %.lr.ph72.prol.loopexit, label %.lr.ph72.prol

.lr.ph72.prol:                                    ; preds = %.lr.ph72.preheader120, %.lr.ph72.prol
  %.371.prol = phi i32 [ %93, %.lr.ph72.prol ], [ %.371.ph, %.lr.ph72.preheader120 ]
  %.35270.prol = phi i32 [ %94, %.lr.ph72.prol ], [ %.35270.ph, %.lr.ph72.preheader120 ]
  %prol.iter128 = phi i32 [ %prol.iter128.next, %.lr.ph72.prol ], [ 0, %.lr.ph72.preheader120 ]
  %91 = zext i32 %.371.prol to i64
  %92 = getelementptr inbounds double, ptr %13, i64 %91
  store double 0.000000e+00, ptr %92, align 8, !tbaa !5
  %93 = add i32 %.371.prol, 1
  %94 = add nuw i32 %.35270.prol, 1
  %prol.iter128.next = add i32 %prol.iter128, 1
  %prol.iter128.cmp.not = icmp eq i32 %prol.iter128.next, %xtraiter126
  br i1 %prol.iter128.cmp.not, label %.lr.ph72.prol.loopexit, label %.lr.ph72.prol, !llvm.loop !26

.lr.ph72.prol.loopexit:                           ; preds = %.lr.ph72.prol, %.lr.ph72.preheader120
  %.371.unr = phi i32 [ %.371.ph, %.lr.ph72.preheader120 ], [ %93, %.lr.ph72.prol ]
  %.35270.unr = phi i32 [ %.35270.ph, %.lr.ph72.preheader120 ], [ %94, %.lr.ph72.prol ]
  %95 = sub i32 %.35270.ph, %4
  %96 = icmp ugt i32 %95, -4
  br i1 %96, label %._crit_edge, label %.lr.ph72

vector.ph104:                                     ; preds = %.lr.ph72.preheader
  %n.vec106 = and i32 %4, -4
  %ind.end107 = add i32 %.2.lcssa, %n.vec106
  br label %vector.body110

vector.body110:                                   ; preds = %vector.body110, %vector.ph104
  %index111 = phi i32 [ 0, %vector.ph104 ], [ %index.next113, %vector.body110 ]
  %offset.idx112 = add i32 %.2.lcssa, %index111
  %97 = zext i32 %offset.idx112 to i64
  %98 = getelementptr inbounds double, ptr %13, i64 %97
  %99 = getelementptr inbounds i8, ptr %98, i64 16
  store <2 x double> zeroinitializer, ptr %98, align 8, !tbaa !5
  store <2 x double> zeroinitializer, ptr %99, align 8, !tbaa !5
  %index.next113 = add nuw i32 %index111, 4
  %100 = icmp eq i32 %index.next113, %n.vec106
  br i1 %100, label %middle.block101, label %vector.body110, !llvm.loop !27

middle.block101:                                  ; preds = %vector.body110
  %cmp.n114 = icmp eq i32 %n.vec106, %4
  br i1 %cmp.n114, label %._crit_edge, label %.lr.ph72.preheader120

.lr.ph68:                                         ; preds = %.lr.ph68.prol.loopexit, %.lr.ph68
  %.267 = phi i32 [ %112, %.lr.ph68 ], [ %.267.unr, %.lr.ph68.prol.loopexit ]
  %.25166 = phi i32 [ %113, %.lr.ph68 ], [ %.25166.unr, %.lr.ph68.prol.loopexit ]
  %101 = zext i32 %.267 to i64
  %102 = getelementptr inbounds double, ptr %13, i64 %101
  store double 0.000000e+00, ptr %102, align 8, !tbaa !5
  %103 = add i32 %.267, 1
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds double, ptr %13, i64 %104
  store double 0.000000e+00, ptr %105, align 8, !tbaa !5
  %106 = add i32 %.267, 2
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds double, ptr %13, i64 %107
  store double 0.000000e+00, ptr %108, align 8, !tbaa !5
  %109 = add i32 %.267, 3
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds double, ptr %13, i64 %110
  store double 0.000000e+00, ptr %111, align 8, !tbaa !5
  %112 = add i32 %.267, 4
  %113 = add nuw i32 %.25166, 4
  %exitcond82.not.3 = icmp eq i32 %113, %3
  br i1 %exitcond82.not.3, label %.preheader, label %.lr.ph68, !llvm.loop !28

.lr.ph72:                                         ; preds = %.lr.ph72.prol.loopexit, %.lr.ph72
  %.371 = phi i32 [ %125, %.lr.ph72 ], [ %.371.unr, %.lr.ph72.prol.loopexit ]
  %.35270 = phi i32 [ %126, %.lr.ph72 ], [ %.35270.unr, %.lr.ph72.prol.loopexit ]
  %114 = zext i32 %.371 to i64
  %115 = getelementptr inbounds double, ptr %13, i64 %114
  store double 0.000000e+00, ptr %115, align 8, !tbaa !5
  %116 = add i32 %.371, 1
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds double, ptr %13, i64 %117
  store double 0.000000e+00, ptr %118, align 8, !tbaa !5
  %119 = add i32 %.371, 2
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds double, ptr %13, i64 %120
  store double 0.000000e+00, ptr %121, align 8, !tbaa !5
  %122 = add i32 %.371, 3
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds double, ptr %13, i64 %123
  store double 0.000000e+00, ptr %124, align 8, !tbaa !5
  %125 = add i32 %.371, 4
  %126 = add nuw i32 %.35270, 4
  %exitcond83.not.3 = icmp eq i32 %126, %4
  br i1 %exitcond83.not.3, label %._crit_edge, label %.lr.ph72, !llvm.loop !29

._crit_edge:                                      ; preds = %.lr.ph72.prol.loopexit, %.lr.ph72, %middle.block101, %.preheader
  ret ptr %13
}

declare double @changeBipartiteIsolatesA(ptr noundef, i32 noundef, i32 noundef, double noundef) #2

declare double @changeBipartiteIsolatesB(ptr noundef, i32 noundef, i32 noundef, double noundef) #2

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 = { nofree norecurse nosync nounwind memory(argmem: readwrite) 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 = { "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" }

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!18, !19, i64 0}
!18 = !{!"graph_s", !19, i64 0, !19, i64 4, !19, i64 8, !19, i64 12, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !19, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !19, i64 88, !19, i64 92, !19, i64 96, !16, i64 104, !16, i64 112, !19, i64 120, !16, i64 128, !16, i64 136, !19, i64 144, !16, i64 152, !16, i64 160, !19, i64 168, !16, i64 176, !16, i64 184, !16, i64 192, !19, i64 200, !19, i64 204, !19, i64 208, !19, i64 212, !19, i64 216, !16, i64 224, !19, i64 232, !19, i64 236, !16, i64 240, !16, i64 248, !19, i64 256, !16, i64 264, !19, i64 272, !16, i64 280, !16, i64 288, !19, i64 296, !19, i64 300, !16, i64 304, !19, i64 312, !16, i64 320}
!19 = !{!"int", !7, i64 0}
!20 = !{!18, !19, i64 88}
!21 = !{!18, !19, i64 92}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !12, !13, !14}
!25 = distinct !{!25, !12, !13}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !12, !13, !14}
!28 = distinct !{!28, !12, !13}
!29 = distinct !{!29, !12, !13}


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