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

22:                                               ; preds = %7
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = load i32, ptr %23, align 4, !tbaa !9
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  call void @__Change2CNumbering(i32 noundef %24, ptr noundef %25, ptr noundef %26)
  br label %27

27:                                               ; preds = %22, %7
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = load i32, ptr %28, align 4, !tbaa !9
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  call void @__SetUpGraph(ptr noundef %17, i32 noundef 3, i32 noundef %29, i32 noundef 1, ptr noundef %30, ptr noundef %31, ptr noundef null, ptr noundef null, i32 noundef 0)
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = getelementptr inbounds i32, ptr %32, i64 0
  %34 = load i32, ptr %33, align 4, !tbaa !9
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %41

36:                                               ; preds = %27
  %37 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 2
  store i32 3, ptr %37, align 8, !tbaa !11
  %38 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 3
  store i32 1, ptr %38, align 4, !tbaa !16
  %39 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 4
  store i32 1, ptr %39, align 8, !tbaa !17
  %40 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 1
  store i32 0, ptr %40, align 4, !tbaa !18
  br label %58

41:                                               ; preds = %27
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = getelementptr inbounds i32, ptr %42, i64 1
  %44 = load i32, ptr %43, align 4, !tbaa !9
  %45 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 2
  store i32 %44, ptr %45, align 8, !tbaa !11
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = getelementptr inbounds i32, ptr %46, i64 2
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 3
  store i32 %48, ptr %49, align 4, !tbaa !16
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = getelementptr inbounds i32, ptr %50, i64 3
  %52 = load i32, ptr %51, align 4, !tbaa !9
  %53 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 4
  store i32 %52, ptr %53, align 8, !tbaa !17
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  %55 = getelementptr inbounds i32, ptr %54, i64 4
  %56 = load i32, ptr %55, align 4, !tbaa !9
  %57 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 1
  store i32 %56, ptr %57, align 4, !tbaa !18
  br label %58

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

80:                                               ; preds = %58
  call void @__InitTimers(ptr noundef %18)
  br label %81

81:                                               ; preds = %80, %58
  %82 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 1
  %83 = load i32, ptr %82, align 4, !tbaa !18
  %84 = and i32 %83, 1
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %91

86:                                               ; preds = %81
  %87 = call double @__seconds()
  %88 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 12
  %89 = load double, ptr %88, align 8, !tbaa !27
  %90 = fsub double %89, %87
  store double %90, ptr %88, align 8, !tbaa !27
  br label %91

91:                                               ; preds = %86, %81
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = load i32, ptr %93, align 4, !tbaa !9
  call void @__MlevelNestedDissection(ptr noundef %18, ptr noundef %17, ptr noundef %92, float noundef 0x3FF19999A0000000, i32 noundef %94)
  %95 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 1
  %96 = load i32, ptr %95, align 4, !tbaa !18
  %97 = and i32 %96, 1
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %104

99:                                               ; preds = %91
  %100 = call double @__seconds()
  %101 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 12
  %102 = load double, ptr %101, align 8, !tbaa !27
  %103 = fadd double %102, %100
  store double %103, ptr %101, align 8, !tbaa !27
  br label %104

104:                                              ; preds = %99, %91
  %105 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 1
  %106 = load i32, ptr %105, align 4, !tbaa !18
  %107 = and i32 %106, 1
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %110

109:                                              ; preds = %104
  call void @__PrintTimers(ptr noundef %18)
  br label %110

110:                                              ; preds = %109, %104
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %126, %110
  %112 = load i32, ptr %15, align 4, !tbaa !9
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = icmp slt i32 %112, %114
  br i1 %115, label %116, label %129

116:                                              ; preds = %111
  %117 = load i32, ptr %15, align 4, !tbaa !9
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = load i32, ptr %15, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds i32, ptr %119, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds i32, ptr %118, i64 %124
  store i32 %117, ptr %125, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %116
  %127 = load i32, ptr %15, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %15, align 4, !tbaa !9
  br label %111, !llvm.loop !28

129:                                              ; preds = %111
  call void @__FreeWorkSpace(ptr noundef %18, ptr noundef %17)
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = load i32, ptr %130, align 4, !tbaa !9
  %132 = icmp eq i32 %131, 1
  br i1 %132, label %133, label %140

133:                                              ; preds = %129
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = load i32, ptr %134, align 4, !tbaa !9
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  call void @__Change2FNumberingOrder(i32 noundef %135, ptr noundef %136, ptr noundef %137, ptr noundef %138, ptr noundef %139)
  br label %140

140:                                              ; preds = %133, %129
  call void @llvm.lifetime.end.p0(i64 232, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 216, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #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 void @__Change2CNumbering(i32 noundef, ptr noundef, ptr noundef) #2

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

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

declare void @__InitRandom(i32 noundef) #2

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

declare void @__InitTimers(ptr noundef) #2

declare double @__seconds() #2

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

declare void @__PrintTimers(ptr noundef) #2

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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: nounwind uwtable
define dso_local void @METIS_EdgeND(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #0 {
  %8 = alloca %struct.graphdef, align 8
  %9 = alloca %struct.controldef, align 8
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 232, ptr nonnull %9) #3
  %10 = load i32, ptr %3, align 4, !tbaa !5
  %11 = icmp eq i32 %10, 1
  br i1 %11, label %12, label %14

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

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

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

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

37:                                               ; preds = %21
  call void @__InitTimers(ptr noundef nonnull %9) #3
  %.pre = load i32, ptr %23, align 4, !tbaa !18
  %.pre36 = and i32 %.pre, 1
  %38 = icmp eq i32 %.pre36, 0
  br i1 %38, label %.thread, label %39

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

.thread:                                          ; preds = %21, %39, %37
  %44 = load i32, ptr %0, align 4, !tbaa !5
  call void @__MlevelNestedDissection(ptr noundef nonnull %9, ptr noundef nonnull %8, ptr noundef %6, float noundef 0x3FF19999A0000000, i32 noundef %44)
  %45 = load i32, ptr %23, align 4, !tbaa !18
  %46 = and i32 %45, 1
  %.not28 = icmp eq i32 %46, 0
  br i1 %.not28, label %.thread40, label %47

47:                                               ; preds = %.thread
  %48 = call double @__seconds() #3
  %49 = getelementptr inbounds i8, ptr %9, i64 104
  %50 = load double, ptr %49, align 8, !tbaa !19
  %51 = fadd double %48, %50
  store double %51, ptr %49, align 8, !tbaa !19
  %.pre35 = load i32, ptr %23, align 4, !tbaa !18
  %.pre37 = and i32 %.pre35, 1
  %52 = icmp eq i32 %.pre37, 0
  br i1 %52, label %.thread40, label %53

53:                                               ; preds = %47
  call void @__PrintTimers(ptr noundef nonnull %9) #3
  br label %.thread40

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

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

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

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

68:                                               ; preds = %66, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %8) #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 void @__Change2CNumbering(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare void @__InitRandom(i32 noundef) local_unnamed_addr #2

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

declare void @__InitTimers(ptr noundef) local_unnamed_addr #2

declare double @__seconds() local_unnamed_addr #2

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

declare void @__PrintTimers(ptr noundef) local_unnamed_addr #2

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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