; LLVM IR from siconos/siconos :: externals/lbl/metis4/ometis.ll_ (MlevelNestedDissection)

; 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.3 = external hidden unnamed_addr constant [27 x i8], align 1

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

declare i32 @__idxsum(i32 noundef, ptr noundef) #1

declare double @__seconds() #1

; Function Attrs: nounwind uwtable
define dso_local void @__MlevelNestedDissection(ptr noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3, i32 noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca [2 x i32], align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %struct.graphdef, align 8
  %20 = alloca %struct.graphdef, align 8
  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 float %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 216, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 216, ptr %20) #3
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.graphdef, ptr %21, i32 0, i32 2
  %23 = load i32, ptr %22, align 8, !tbaa !13
  store i32 %23, ptr %13, align 4, !tbaa !11
  %24 = load i32, ptr %13, align 4, !tbaa !11
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.graphdef, ptr %25, i32 0, i32 5
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  %28 = call i32 @__idxsum(i32 noundef %24, ptr noundef %27)
  store i32 %28, ptr %15, align 4, !tbaa !11
  %29 = load i32, ptr %15, align 4, !tbaa !11
  %30 = sdiv i32 %29, 2
  %31 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
  store i32 %30, ptr %31, align 4, !tbaa !11
  %32 = load i32, ptr %15, align 4, !tbaa !11
  %33 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = sub nsw i32 %32, %34
  %36 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
  store i32 %35, ptr %36, align 4, !tbaa !11
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.controldef, ptr %37, i32 0, i32 7
  %39 = load i32, ptr %38, align 4, !tbaa !16
  switch i32 %39, label %103 [
    i32 3, label %40
    i32 4, label %72
  ]

40:                                               ; preds = %5
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
  %44 = load float, ptr %9, align 4, !tbaa !9
  call void @__MlevelEdgeBisection(ptr noundef %41, ptr noundef %42, ptr noundef %43, float noundef %44)
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.controldef, ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 4, !tbaa !20
  %48 = and i32 %47, 1
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %56

50:                                               ; preds = %40
  %51 = call double @__seconds()
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.controldef, ptr %52, i32 0, i32 18
  %54 = load double, ptr %53, align 8, !tbaa !21
  %55 = fsub double %54, %51
  store double %55, ptr %53, align 8, !tbaa !21
  br label %56

56:                                               ; preds = %50, %40
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = load float, ptr %9, align 4, !tbaa !9
  call void @__ConstructMinCoverSeparator(ptr noundef %57, ptr noundef %58, float noundef %59)
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.controldef, ptr %60, i32 0, i32 1
  %62 = load i32, ptr %61, align 4, !tbaa !20
  %63 = and i32 %62, 1
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %71

65:                                               ; preds = %56
  %66 = call double @__seconds()
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.controldef, ptr %67, i32 0, i32 18
  %69 = load double, ptr %68, align 8, !tbaa !21
  %70 = fadd double %69, %66
  store double %70, ptr %68, align 8, !tbaa !21
  br label %71

71:                                               ; preds = %65, %56
  br label %103

72:                                               ; preds = %5
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
  %76 = load float, ptr %9, align 4, !tbaa !9
  call void @__MlevelNodeBisectionMultiple(ptr noundef %73, ptr noundef %74, ptr noundef %75, float noundef %76)
  %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 !20
  %80 = and i32 %79, 128
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %102

82:                                               ; preds = %72
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.graphdef, ptr %83, i32 0, i32 2
  %85 = load i32, ptr %84, align 8, !tbaa !13
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.graphdef, ptr %86, i32 0, i32 15
  %88 = load ptr, ptr %87, align 8, !tbaa !22
  %89 = getelementptr inbounds i32, ptr %88, i64 0
  %90 = load i32, ptr %89, align 4, !tbaa !11
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.graphdef, ptr %91, i32 0, i32 15
  %93 = load ptr, ptr %92, align 8, !tbaa !22
  %94 = getelementptr inbounds i32, ptr %93, i64 1
  %95 = load i32, ptr %94, align 4, !tbaa !11
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.graphdef, ptr %96, i32 0, i32 15
  %98 = load ptr, ptr %97, align 8, !tbaa !22
  %99 = getelementptr inbounds i32, ptr %98, i64 2
  %100 = load i32, ptr %99, align 4, !tbaa !11
  %101 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %85, i32 noundef %90, i32 noundef %95, i32 noundef %100)
  br label %102

102:                                              ; preds = %82, %72
  br label %103

103:                                              ; preds = %102, %71, %5
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.graphdef, ptr %104, i32 0, i32 16
  %106 = load i32, ptr %105, align 8, !tbaa !23
  store i32 %106, ptr %14, align 4, !tbaa !11
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.graphdef, ptr %107, i32 0, i32 18
  %109 = load ptr, ptr %108, align 8, !tbaa !24
  store ptr %109, ptr %18, align 8, !tbaa !5
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.graphdef, ptr %110, i32 0, i32 10
  %112 = load ptr, ptr %111, align 8, !tbaa !25
  store ptr %112, ptr %17, align 8, !tbaa !5
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %113

113:                                              ; preds = %132, %103
  %114 = load i32, ptr %11, align 4, !tbaa !11
  %115 = load i32, ptr %14, align 4, !tbaa !11
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %117, label %135

117:                                              ; preds = %113
  %118 = load i32, ptr %10, align 4, !tbaa !11
  %119 = add nsw i32 %118, -1
  store i32 %119, ptr %10, align 4, !tbaa !11
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = load ptr, ptr %17, align 8, !tbaa !5
  %122 = load ptr, ptr %18, align 8, !tbaa !5
  %123 = load i32, ptr %11, align 4, !tbaa !11
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds i32, ptr %122, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !11
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds i32, ptr %121, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !11
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds i32, ptr %120, i64 %130
  store i32 %119, ptr %131, align 4, !tbaa !11
  br label %132

132:                                              ; preds = %117
  %133 = load i32, ptr %11, align 4, !tbaa !11
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %11, align 4, !tbaa !11
  br label %113, !llvm.loop !26

135:                                              ; preds = %113
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  call void @__SplitGraphOrder(ptr noundef %136, ptr noundef %137, ptr noundef %19, ptr noundef %20)
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.graphdef, ptr %138, i32 0, i32 0
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.graphdef, ptr %140, i32 0, i32 1
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.graphdef, ptr %142, i32 0, i32 10
  call void (ptr, ...) @GKfree(ptr noundef %139, ptr noundef %141, ptr noundef %143, ptr noundef null)
  %144 = getelementptr inbounds %struct.graphdef, ptr %20, i32 0, i32 2
  %145 = load i32, ptr %144, align 8, !tbaa !13
  %146 = icmp sgt i32 %145, 200
  br i1 %146, label %147, label %152

147:                                              ; preds = %135
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = load float, ptr %9, align 4, !tbaa !9
  %151 = load i32, ptr %10, align 4, !tbaa !11
  call void @__MlevelNestedDissection(ptr noundef %148, ptr noundef %20, ptr noundef %149, float noundef %150, i32 noundef %151)
  br label %159

152:                                              ; preds = %135
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = load i32, ptr %10, align 4, !tbaa !11
  call void @__MMDOrder(ptr noundef %153, ptr noundef %20, ptr noundef %154, i32 noundef %155)
  %156 = getelementptr inbounds %struct.graphdef, ptr %20, i32 0, i32 0
  %157 = getelementptr inbounds %struct.graphdef, ptr %20, i32 0, i32 1
  %158 = getelementptr inbounds %struct.graphdef, ptr %20, i32 0, i32 10
  call void (ptr, ...) @GKfree(ptr noundef %156, ptr noundef %157, ptr noundef %158, ptr noundef null)
  br label %159

159:                                              ; preds = %152, %147
  %160 = getelementptr inbounds %struct.graphdef, ptr %19, i32 0, i32 2
  %161 = load i32, ptr %160, align 8, !tbaa !13
  %162 = icmp sgt i32 %161, 200
  br i1 %162, label %163, label %171

163:                                              ; preds = %159
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = load ptr, ptr %8, align 8, !tbaa !5
  %166 = load float, ptr %9, align 4, !tbaa !9
  %167 = load i32, ptr %10, align 4, !tbaa !11
  %168 = getelementptr inbounds %struct.graphdef, ptr %20, i32 0, i32 2
  %169 = load i32, ptr %168, align 8, !tbaa !13
  %170 = sub nsw i32 %167, %169
  call void @__MlevelNestedDissection(ptr noundef %164, ptr noundef %19, ptr noundef %165, float noundef %166, i32 noundef %170)
  br label %181

171:                                              ; preds = %159
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = load i32, ptr %10, align 4, !tbaa !11
  %175 = getelementptr inbounds %struct.graphdef, ptr %20, i32 0, i32 2
  %176 = load i32, ptr %175, align 8, !tbaa !13
  %177 = sub nsw i32 %174, %176
  call void @__MMDOrder(ptr noundef %172, ptr noundef %19, ptr noundef %173, i32 noundef %177)
  %178 = getelementptr inbounds %struct.graphdef, ptr %19, i32 0, i32 0
  %179 = getelementptr inbounds %struct.graphdef, ptr %19, i32 0, i32 1
  %180 = getelementptr inbounds %struct.graphdef, ptr %19, i32 0, i32 10
  call void (ptr, ...) @GKfree(ptr noundef %178, ptr noundef %179, ptr noundef %180, ptr noundef null)
  br label %181

181:                                              ; preds = %171, %163
  call void @llvm.lifetime.end.p0(i64 216, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 216, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, 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.end.p0(i64 immarg, ptr nocapture) #0

declare void @GKfree(ptr noundef, ...) #1

declare void @__MlevelEdgeBisection(ptr noundef, ptr noundef, ptr noundef, float noundef) #1

declare void @__ConstructMinCoverSeparator(ptr noundef, ptr noundef, float noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @__MlevelNodeBisectionMultiple(ptr noundef, ptr noundef, ptr noundef, float noundef) #2

declare i32 @printf(ptr noundef, ...) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @__MMDOrder(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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 16}
!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 = !{!14, !6, i64 32}
!16 = !{!17, !12, i64 28}
!17 = !{!"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, !18, i64 48, !19, i64 104, !19, i64 112, !19, i64 120, !19, i64 128, !19, i64 136, !19, i64 144, !19, i64 152, !19, i64 160, !19, i64 168, !19, i64 176, !19, i64 184, !19, i64 192, !19, i64 200, !19, i64 208, !19, i64 216, !19, i64 224}
!18 = !{!"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}
!19 = !{!"double", !7, i64 0}
!20 = !{!17, !12, i64 4}
!21 = !{!17, !19, i64 152}
!22 = !{!14, !6, i64 104}
!23 = !{!14, !12, i64 112}
!24 = !{!14, !6, i64 128}
!25 = !{!14, !6, i64 72}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


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

%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 }

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

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

declare i32 @__idxsum(i32 noundef, ptr noundef) local_unnamed_addr #1

declare double @__seconds() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @__MlevelNestedDissection(ptr noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = alloca [2 x i32], align 4
  %7 = alloca %struct.graphdef, align 8
  %8 = alloca %struct.graphdef, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %8) #4
  %9 = getelementptr inbounds i8, ptr %1, i64 16
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %1, i64 32
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = tail call i32 @__idxsum(i32 noundef %10, ptr noundef %12) #4
  %14 = sdiv i32 %13, 2
  store i32 %14, ptr %6, align 4, !tbaa !12
  %15 = sub nsw i32 %13, %14
  %16 = getelementptr inbounds i8, ptr %6, i64 4
  store i32 %15, ptr %16, align 4, !tbaa !12
  %17 = getelementptr inbounds i8, ptr %0, i64 28
  %18 = load i32, ptr %17, align 4, !tbaa !13
  switch i32 %18, label %50 [
    i32 3, label %19
    i32 4, label %36
  ]

19:                                               ; preds = %5
  call void @__MlevelEdgeBisection(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %6, float noundef %3) #4
  %20 = getelementptr inbounds i8, ptr %0, i64 4
  %21 = load i32, ptr %20, align 4, !tbaa !18
  %22 = and i32 %21, 1
  %.not54 = icmp eq i32 %22, 0
  br i1 %.not54, label %28, label %23

23:                                               ; preds = %19
  %24 = call double @__seconds() #4
  %25 = getelementptr inbounds i8, ptr %0, i64 152
  %26 = load double, ptr %25, align 8, !tbaa !19
  %27 = fsub double %26, %24
  store double %27, ptr %25, align 8, !tbaa !19
  br label %28

28:                                               ; preds = %23, %19
  call void @__ConstructMinCoverSeparator(ptr noundef nonnull %0, ptr noundef nonnull %1, float noundef %3) #4
  %29 = load i32, ptr %20, align 4, !tbaa !18
  %30 = and i32 %29, 1
  %.not55 = icmp eq i32 %30, 0
  br i1 %.not55, label %50, label %31

31:                                               ; preds = %28
  %32 = call double @__seconds() #4
  %33 = getelementptr inbounds i8, ptr %0, i64 152
  %34 = load double, ptr %33, align 8, !tbaa !19
  %35 = fadd double %32, %34
  store double %35, ptr %33, align 8, !tbaa !19
  br label %50

36:                                               ; preds = %5
  call void @__MlevelNodeBisectionMultiple(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %6, float noundef %3)
  %37 = getelementptr inbounds i8, ptr %0, i64 4
  %38 = load i32, ptr %37, align 4, !tbaa !18
  %39 = and i32 %38, 128
  %.not = icmp eq i32 %39, 0
  br i1 %.not, label %50, label %40

40:                                               ; preds = %36
  %41 = load i32, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %1, i64 104
  %43 = load ptr, ptr %42, align 8, !tbaa !20
  %44 = load i32, ptr %43, align 4, !tbaa !12
  %45 = getelementptr inbounds i8, ptr %43, i64 4
  %46 = load i32, ptr %45, align 4, !tbaa !12
  %47 = getelementptr inbounds i8, ptr %43, i64 8
  %48 = load i32, ptr %47, align 4, !tbaa !12
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %41, i32 noundef %44, i32 noundef %46, i32 noundef %48)
  br label %50

50:                                               ; preds = %36, %40, %28, %31, %5
  %51 = getelementptr inbounds i8, ptr %1, i64 112
  %52 = load i32, ptr %51, align 8, !tbaa !21
  %53 = getelementptr inbounds i8, ptr %1, i64 128
  %54 = load ptr, ptr %53, align 8, !tbaa !22
  %55 = getelementptr inbounds i8, ptr %1, i64 72
  %56 = load ptr, ptr %55, align 8, !tbaa !23
  %57 = icmp sgt i32 %52, 0
  br i1 %57, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %50
  %wide.trip.count = zext nneg i32 %52 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %58 = icmp ult i32 %52, 4
  br i1 %58, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %.057 = phi i32 [ %4, %.lr.ph.preheader.new ], [ %83, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %59 = add nsw i32 %.057, -1
  %60 = getelementptr inbounds i32, ptr %54, i64 %indvars.iv
  %61 = load i32, ptr %60, align 4, !tbaa !12
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i32, ptr %56, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !12
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds i32, ptr %2, i64 %65
  store i32 %59, ptr %66, align 4, !tbaa !12
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %67 = add nsw i32 %.057, -2
  %68 = getelementptr inbounds i32, ptr %54, i64 %indvars.iv.next
  %69 = load i32, ptr %68, align 4, !tbaa !12
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds i32, ptr %56, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !12
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds i32, ptr %2, i64 %73
  store i32 %67, ptr %74, align 4, !tbaa !12
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %75 = add nsw i32 %.057, -3
  %76 = getelementptr inbounds i32, ptr %54, i64 %indvars.iv.next.1
  %77 = load i32, ptr %76, align 4, !tbaa !12
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i32, ptr %56, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !12
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds i32, ptr %2, i64 %81
  store i32 %75, ptr %82, align 4, !tbaa !12
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %83 = add nsw i32 %.057, -4
  %84 = getelementptr inbounds i32, ptr %54, i64 %indvars.iv.next.2
  %85 = load i32, ptr %84, align 4, !tbaa !12
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i32, ptr %56, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !12
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds i32, ptr %2, i64 %89
  store i32 %83, ptr %90, align 4, !tbaa !12
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !24

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa.ph = phi i32 [ poison, %.lr.ph.preheader ], [ %83, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %.057.unr = phi i32 [ %4, %.lr.ph.preheader ], [ %83, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.057.epil = phi i32 [ %91, %.lr.ph.epil ], [ %.057.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %91 = add nsw i32 %.057.epil, -1
  %92 = getelementptr inbounds i32, ptr %54, i64 %indvars.iv.epil
  %93 = load i32, ptr %92, align 4, !tbaa !12
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %56, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !12
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %2, i64 %97
  store i32 %91, ptr %98, align 4, !tbaa !12
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !26

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %50
  %.0.lcssa = phi i32 [ %4, %50 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %91, %.lr.ph.epil ]
  call void @__SplitGraphOrder(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %99 = getelementptr inbounds i8, ptr %1, i64 8
  call void (ptr, ...) @GKfree(ptr noundef %1, ptr noundef nonnull %99, ptr noundef nonnull %55, ptr noundef null) #4
  %100 = getelementptr inbounds i8, ptr %8, i64 16
  %101 = load i32, ptr %100, align 8, !tbaa !5
  %102 = icmp sgt i32 %101, 200
  br i1 %102, label %103, label %104

103:                                              ; preds = %._crit_edge
  call void @__MlevelNestedDissection(ptr noundef %0, ptr noundef nonnull %8, ptr noundef %2, float noundef %3, i32 noundef %.0.lcssa)
  br label %107

104:                                              ; preds = %._crit_edge
  call void @__MMDOrder(ptr noundef %0, ptr noundef nonnull %8, ptr noundef %2, i32 noundef %.0.lcssa)
  %105 = getelementptr inbounds i8, ptr %8, i64 8
  %106 = getelementptr inbounds i8, ptr %8, i64 72
  call void (ptr, ...) @GKfree(ptr noundef nonnull %8, ptr noundef nonnull %105, ptr noundef nonnull %106, ptr noundef null) #4
  br label %107

107:                                              ; preds = %104, %103
  %108 = getelementptr inbounds i8, ptr %7, i64 16
  %109 = load i32, ptr %108, align 8, !tbaa !5
  %110 = icmp sgt i32 %109, 200
  %111 = load i32, ptr %100, align 8, !tbaa !5
  %112 = sub nsw i32 %.0.lcssa, %111
  br i1 %110, label %113, label %114

113:                                              ; preds = %107
  call void @__MlevelNestedDissection(ptr noundef %0, ptr noundef nonnull %7, ptr noundef %2, float noundef %3, i32 noundef %112)
  br label %117

114:                                              ; preds = %107
  call void @__MMDOrder(ptr noundef %0, ptr noundef nonnull %7, ptr noundef %2, i32 noundef %112)
  %115 = getelementptr inbounds i8, ptr %7, i64 8
  %116 = getelementptr inbounds i8, ptr %7, i64 72
  call void (ptr, ...) @GKfree(ptr noundef nonnull %7, ptr noundef nonnull %115, ptr noundef nonnull %116, ptr noundef null) #4
  br label %117

117:                                              ; preds = %114, %113
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  ret void
}

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

declare void @GKfree(ptr noundef, ...) local_unnamed_addr #1

declare void @__MlevelEdgeBisection(ptr noundef, ptr noundef, ptr noundef, float noundef) local_unnamed_addr #1

declare void @__ConstructMinCoverSeparator(ptr noundef, ptr noundef, float noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @__MlevelNodeBisectionMultiple(ptr noundef, ptr noundef, ptr noundef, float noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare dso_local void @__MMDOrder(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 16}
!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 = !{!6, !7, i64 32}
!12 = !{!10, !10, i64 0}
!13 = !{!14, !10, i64 28}
!14 = !{!"controldef", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !15, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !16, i64 48, !17, i64 104, !17, i64 112, !17, i64 120, !17, i64 128, !17, i64 136, !17, i64 144, !17, i64 152, !17, i64 160, !17, i64 168, !17, i64 176, !17, i64 184, !17, i64 192, !17, i64 200, !17, i64 208, !17, i64 216, !17, i64 224}
!15 = !{!"float", !8, i64 0}
!16 = !{!"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}
!17 = !{!"double", !8, i64 0}
!18 = !{!14, !10, i64 4}
!19 = !{!14, !17, i64 152}
!20 = !{!6, !7, i64 104}
!21 = !{!6, !10, i64 112}
!22 = !{!6, !7, i64 128}
!23 = !{!6, !7, i64 72}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.unroll.disable"}


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