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

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

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

declare void @__Change2CNumbering(i32 noundef, ptr noundef, ptr noundef) #1

declare void @__SetUpGraph(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

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

declare void @__InitRandom(i32 noundef) #1

declare void @__AllocateWorkSpace(ptr noundef, ptr noundef, i32 noundef) #1

declare void @__InitTimers(ptr noundef) #1

declare double @__seconds() #1

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

declare void @__PrintTimers(ptr noundef) #1

declare void @__FreeWorkSpace(ptr noundef, ptr noundef) #1

declare void @__Change2FNumberingOrder(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; 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
define dso_local void @METIS_NodeWND(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #2 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %struct.graphdef, align 8
  %21 = alloca %struct.controldef, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 216, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 232, ptr %21) #3
  %22 = load ptr, ptr %13, align 8, !tbaa !5
  %23 = load i32, ptr %22, align 4, !tbaa !9
  %24 = icmp eq i32 %23, 1
  br i1 %24, label %25, label %30

25:                                               ; preds = %8
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = load i32, ptr %26, align 4, !tbaa !9
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  call void @__Change2CNumbering(i32 noundef %27, ptr noundef %28, ptr noundef %29)
  br label %30

30:                                               ; preds = %25, %8
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = load i32, ptr %31, align 4, !tbaa !9
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  call void @__SetUpGraph(ptr noundef %20, i32 noundef 4, i32 noundef %32, i32 noundef 1, ptr noundef %33, ptr noundef %34, ptr noundef %35, ptr noundef null, i32 noundef 2)
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  %37 = getelementptr inbounds i32, ptr %36, i64 0
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %45

40:                                               ; preds = %30
  %41 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 2
  store i32 3, ptr %41, align 8, !tbaa !11
  %42 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 3
  store i32 1, ptr %42, align 4, !tbaa !16
  %43 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 4
  store i32 2, ptr %43, align 8, !tbaa !17
  %44 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 1
  store i32 0, ptr %44, align 4, !tbaa !18
  br label %62

45:                                               ; preds = %30
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = getelementptr inbounds i32, ptr %46, i64 1
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 2
  store i32 %48, ptr %49, align 8, !tbaa !11
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = getelementptr inbounds i32, ptr %50, i64 2
  %52 = load i32, ptr %51, align 4, !tbaa !9
  %53 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 3
  store i32 %52, ptr %53, align 4, !tbaa !16
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = getelementptr inbounds i32, ptr %54, i64 3
  %56 = load i32, ptr %55, align 4, !tbaa !9
  %57 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 4
  store i32 %56, ptr %57, align 8, !tbaa !17
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  %59 = getelementptr inbounds i32, ptr %58, i64 4
  %60 = load i32, ptr %59, align 4, !tbaa !9
  %61 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 1
  store i32 %60, ptr %61, align 4, !tbaa !18
  br label %62

62:                                               ; preds = %45, %40
  %63 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 10
  store i32 1, ptr %63, align 8, !tbaa !19
  %64 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 8
  store i32 0, ptr %64, align 8, !tbaa !20
  %65 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 9
  store i32 2, ptr %65, align 4, !tbaa !21
  %66 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 7
  store i32 4, ptr %66, align 4, !tbaa !22
  %67 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 0
  store i32 100, ptr %67, align 8, !tbaa !23
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = getelementptr inbounds %struct.graphdef, ptr %20, i32 0, i32 5
  %71 = load ptr, ptr %70, align 8, !tbaa !24
  %72 = call i32 @__idxsum(i32 noundef %69, ptr noundef %71)
  %73 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 0
  %74 = load i32, ptr %73, align 8, !tbaa !23
  %75 = sdiv i32 %72, %74
  %76 = sitofp i32 %75 to double
  %77 = fmul double 1.500000e+00, %76
  %78 = fptosi double %77 to i32
  %79 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 5
  store i32 %78, ptr %79, align 4, !tbaa !26
  call void @__InitRandom(i32 noundef -1)
  call void @__AllocateWorkSpace(ptr noundef %21, ptr noundef %20, i32 noundef 2)
  %80 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 1
  %81 = load i32, ptr %80, align 4, !tbaa !18
  %82 = and i32 %81, 1
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %85

84:                                               ; preds = %62
  call void @__InitTimers(ptr noundef %21)
  br label %85

85:                                               ; preds = %84, %62
  %86 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 1
  %87 = load i32, ptr %86, align 4, !tbaa !18
  %88 = and i32 %87, 1
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %95

90:                                               ; preds = %85
  %91 = call double @__seconds()
  %92 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 12
  %93 = load double, ptr %92, align 8, !tbaa !27
  %94 = fsub double %93, %91
  store double %94, ptr %92, align 8, !tbaa !27
  br label %95

95:                                               ; preds = %90, %85
  %96 = load ptr, ptr %16, align 8, !tbaa !5
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = load i32, ptr %97, align 4, !tbaa !9
  call void @__MlevelNestedDissection(ptr noundef %21, ptr noundef %20, ptr noundef %96, float noundef 0x3FF19999A0000000, i32 noundef %98)
  %99 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 1
  %100 = load i32, ptr %99, align 4, !tbaa !18
  %101 = and i32 %100, 1
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %108

103:                                              ; preds = %95
  %104 = call double @__seconds()
  %105 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 12
  %106 = load double, ptr %105, align 8, !tbaa !27
  %107 = fadd double %106, %104
  store double %107, ptr %105, align 8, !tbaa !27
  br label %108

108:                                              ; preds = %103, %95
  %109 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 1
  %110 = load i32, ptr %109, align 4, !tbaa !18
  %111 = and i32 %110, 1
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %114

113:                                              ; preds = %108
  call void @__PrintTimers(ptr noundef %21)
  br label %114

114:                                              ; preds = %113, %108
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %130, %114
  %116 = load i32, ptr %17, align 4, !tbaa !9
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = load i32, ptr %117, align 4, !tbaa !9
  %119 = icmp slt i32 %116, %118
  br i1 %119, label %120, label %133

120:                                              ; preds = %115
  %121 = load i32, ptr %17, align 4, !tbaa !9
  %122 = load ptr, ptr %15, align 8, !tbaa !5
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  %124 = load i32, ptr %17, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds i32, ptr %123, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds i32, ptr %122, i64 %128
  store i32 %121, ptr %129, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %120
  %131 = load i32, ptr %17, align 4, !tbaa !9
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %17, align 4, !tbaa !9
  br label %115, !llvm.loop !28

133:                                              ; preds = %115
  call void @__FreeWorkSpace(ptr noundef %21, ptr noundef %20)
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = load i32, ptr %134, align 4, !tbaa !9
  %136 = icmp eq i32 %135, 1
  br i1 %136, label %137, label %144

137:                                              ; preds = %133
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = load i32, ptr %138, align 4, !tbaa !9
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  call void @__Change2FNumberingOrder(i32 noundef %139, ptr noundef %140, ptr noundef %141, ptr noundef %142, ptr noundef %143)
  br label %144

144:                                              ; preds = %137, %133
  call void @llvm.lifetime.end.p0(i64 232, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 216, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  ret void
}

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

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

declare void @__Change2CNumbering(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @__SetUpGraph(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

declare void @__InitRandom(i32 noundef) local_unnamed_addr #1

declare void @__AllocateWorkSpace(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @__InitTimers(ptr noundef) local_unnamed_addr #1

declare double @__seconds() local_unnamed_addr #1

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

declare void @__PrintTimers(ptr noundef) local_unnamed_addr #1

declare void @__FreeWorkSpace(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @__Change2FNumberingOrder(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @METIS_NodeWND(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef readonly %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #2 {
  %9 = alloca %struct.graphdef, align 8
  %10 = alloca %struct.controldef, align 8
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 232, ptr nonnull %10) #3
  %11 = load i32, ptr %4, align 4, !tbaa !5
  %12 = icmp eq i32 %11, 1
  br i1 %12, label %13, label %15

13:                                               ; preds = %8
  %14 = load i32, ptr %0, align 4, !tbaa !5
  tail call void @__Change2CNumbering(i32 noundef %14, ptr noundef %1, ptr noundef %2) #3
  br label %15

15:                                               ; preds = %13, %8
  %16 = load i32, ptr %0, align 4, !tbaa !5
  call void @__SetUpGraph(ptr noundef nonnull %9, i32 noundef 4, i32 noundef %16, i32 noundef 1, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef null, i32 noundef 2) #3
  %17 = load i32, ptr %5, align 4, !tbaa !5
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %22, label %19

19:                                               ; preds = %15
  %20 = getelementptr inbounds i8, ptr %5, i64 4
  %21 = load <4 x i32>, ptr %20, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %15, %19
  %23 = phi <4 x i32> [ %21, %19 ], [ <i32 3, i32 1, i32 2, i32 0>, %15 ]
  %24 = getelementptr inbounds i8, ptr %10, i64 4
  %25 = shufflevector <4 x i32> %23, <4 x i32> poison, <4 x i32> <i32 3, i32 0, i32 1, i32 2>
  store <4 x i32> %25, ptr %24, align 4
  %26 = getelementptr inbounds i8, ptr %10, i64 28
  store <4 x i32> <i32 4, i32 0, i32 2, i32 1>, ptr %26, align 4, !tbaa !5
  store i32 100, ptr %10, align 8, !tbaa !9
  %27 = load i32, ptr %0, align 4, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %9, i64 32
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  %30 = call i32 @__idxsum(i32 noundef %27, ptr noundef %29) #3
  %31 = sdiv i32 %30, 100
  %32 = sitofp i32 %31 to double
  %33 = fmul double %32, 1.500000e+00
  %34 = fptosi double %33 to i32
  %35 = getelementptr inbounds i8, ptr %10, i64 20
  store i32 %34, ptr %35, align 4, !tbaa !17
  call void @__InitRandom(i32 noundef -1) #3
  call void @__AllocateWorkSpace(ptr noundef nonnull %10, ptr noundef nonnull %9, i32 noundef 2) #3
  %36 = load i32, ptr %24, align 4, !tbaa !18
  %37 = and i32 %36, 1
  %.not = icmp eq i32 %37, 0
  br i1 %.not, label %.thread, label %38

38:                                               ; preds = %22
  call void @__InitTimers(ptr noundef nonnull %10) #3
  %.pre = load i32, ptr %24, align 4, !tbaa !18
  %.pre37 = and i32 %.pre, 1
  %39 = icmp eq i32 %.pre37, 0
  br i1 %39, label %.thread, label %40

40:                                               ; preds = %38
  %41 = call double @__seconds() #3
  %42 = getelementptr inbounds i8, ptr %10, i64 104
  %43 = load double, ptr %42, align 8, !tbaa !19
  %44 = fsub double %43, %41
  store double %44, ptr %42, align 8, !tbaa !19
  br label %.thread

.thread:                                          ; preds = %22, %40, %38
  %45 = load i32, ptr %0, align 4, !tbaa !5
  call void @__MlevelNestedDissection(ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef %7, float noundef 0x3FF19999A0000000, i32 noundef %45)
  %46 = load i32, ptr %24, align 4, !tbaa !18
  %47 = and i32 %46, 1
  %.not29 = icmp eq i32 %47, 0
  br i1 %.not29, label %.thread41, label %48

48:                                               ; preds = %.thread
  %49 = call double @__seconds() #3
  %50 = getelementptr inbounds i8, ptr %10, i64 104
  %51 = load double, ptr %50, align 8, !tbaa !19
  %52 = fadd double %49, %51
  store double %52, ptr %50, align 8, !tbaa !19
  %.pre36 = load i32, ptr %24, align 4, !tbaa !18
  %.pre38 = and i32 %.pre36, 1
  %53 = icmp eq i32 %.pre38, 0
  br i1 %53, label %.thread41, label %54

54:                                               ; preds = %48
  call void @__PrintTimers(ptr noundef nonnull %10) #3
  br label %.thread41

.thread41:                                        ; preds = %.thread, %54, %48
  %55 = load i32, ptr %0, align 4, !tbaa !5
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.thread41, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.thread41 ]
  %57 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i32, ptr %6, i64 %59
  %61 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %61, ptr %60, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %62 = load i32, ptr %0, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = icmp slt i64 %indvars.iv.next, %63
  br i1 %64, label %.lr.ph, label %._crit_edge, !llvm.loop !20

._crit_edge:                                      ; preds = %.lr.ph, %.thread41
  call void @__FreeWorkSpace(ptr noundef nonnull %10, ptr noundef nonnull %9) #3
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = icmp eq i32 %65, 1
  br i1 %66, label %67, label %69

67:                                               ; preds = %._crit_edge
  %68 = load i32, ptr %0, align 4, !tbaa !5
  call void @__Change2FNumberingOrder(i32 noundef %68, ptr noundef %1, ptr noundef %2, ptr noundef %6, ptr noundef %7) #3
  br label %69

69:                                               ; preds = %67, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %9) #3
  ret void
}

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


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass