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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.graphdef = type { ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr }
%struct.controldef = type { i32, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, %struct.workspacedef, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%struct.workspacedef = type { ptr, i32, i32, ptr, ptr, i32, ptr, ptr }

@.str = external hidden unnamed_addr constant [18 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 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 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

declare void @__PrintTimers(ptr noundef) #1

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

declare void @__Change2FNumbering(i32 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_mCHPartGraphRecursive(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr 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) #2 {
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %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 i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca %struct.graphdef, align 8
  %30 = alloca %struct.controldef, align 8
  %31 = alloca ptr, align 8
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store ptr %2, ptr %16, align 8, !tbaa !5
  store ptr %3, ptr %17, align 8, !tbaa !5
  store ptr %4, ptr %18, align 8, !tbaa !5
  store ptr %5, ptr %19, align 8, !tbaa !5
  store ptr %6, ptr %20, align 8, !tbaa !5
  store ptr %7, ptr %21, align 8, !tbaa !5
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store ptr %11, ptr %25, align 8, !tbaa !5
  store ptr %12, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 216, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 232, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  %32 = load ptr, ptr %21, align 8, !tbaa !5
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 1
  br i1 %34, label %35, label %40

35:                                               ; preds = %13
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = load ptr, ptr %16, align 8, !tbaa !5
  %39 = load ptr, ptr %17, align 8, !tbaa !5
  call void @__Change2CNumbering(i32 noundef %37, ptr noundef %38, ptr noundef %39)
  br label %40

40:                                               ; preds = %35, %13
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = load ptr, ptr %15, align 8, !tbaa !5
  %44 = load i32, ptr %43, align 4, !tbaa !9
  %45 = load ptr, ptr %16, align 8, !tbaa !5
  %46 = load ptr, ptr %17, align 8, !tbaa !5
  %47 = load ptr, ptr %18, align 8, !tbaa !5
  %48 = load ptr, ptr %19, align 8, !tbaa !5
  %49 = load ptr, ptr %20, align 8, !tbaa !5
  %50 = load i32, ptr %49, align 4, !tbaa !9
  call void @__SetUpGraph(ptr noundef %29, i32 noundef 1, i32 noundef %42, i32 noundef %44, ptr noundef %45, ptr noundef %46, ptr noundef %47, ptr noundef %48, i32 noundef %50)
  %51 = load ptr, ptr %24, align 8, !tbaa !5
  %52 = getelementptr inbounds i32, ptr %51, i64 0
  %53 = load i32, ptr %52, align 4, !tbaa !9
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %60

55:                                               ; preds = %40
  %56 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 2
  store i32 3, ptr %56, align 8, !tbaa !11
  %57 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 3
  store i32 1, ptr %57, align 4, !tbaa !16
  %58 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 4
  store i32 1, ptr %58, align 8, !tbaa !17
  %59 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 1
  store i32 0, ptr %59, align 4, !tbaa !18
  br label %77

60:                                               ; preds = %40
  %61 = load ptr, ptr %24, align 8, !tbaa !5
  %62 = getelementptr inbounds i32, ptr %61, i64 1
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 2
  store i32 %63, ptr %64, align 8, !tbaa !11
  %65 = load ptr, ptr %24, align 8, !tbaa !5
  %66 = getelementptr inbounds i32, ptr %65, i64 2
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 3
  store i32 %67, ptr %68, align 4, !tbaa !16
  %69 = load ptr, ptr %24, align 8, !tbaa !5
  %70 = getelementptr inbounds i32, ptr %69, i64 3
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 4
  store i32 %71, ptr %72, align 8, !tbaa !17
  %73 = load ptr, ptr %24, align 8, !tbaa !5
  %74 = getelementptr inbounds i32, ptr %73, i64 4
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 1
  store i32 %75, ptr %76, align 4, !tbaa !18
  br label %77

77:                                               ; preds = %60, %55
  %78 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 7
  store i32 1, ptr %78, align 4, !tbaa !19
  %79 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 0
  store i32 100, ptr %79, align 8, !tbaa !20
  %80 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 0
  %81 = load i32, ptr %80, align 8, !tbaa !20
  %82 = sitofp i32 %81 to double
  %83 = fmul double 1.000000e+00, %82
  %84 = fdiv double 1.500000e+00, %83
  %85 = fptrunc double %84 to float
  %86 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 6
  store float %85, ptr %86, align 8, !tbaa !21
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = call ptr @__fmalloc(i32 noundef %88, ptr noundef @.str)
  store ptr %89, ptr %31, align 8, !tbaa !5
  %90 = load ptr, ptr %31, align 8, !tbaa !5
  %91 = load ptr, ptr %23, align 8, !tbaa !5
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = mul i64 4, %94
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %90, ptr align 1 %91, i64 %95, i1 false)
  call void @__InitRandom(i32 noundef -1)
  %96 = load ptr, ptr %22, align 8, !tbaa !5
  %97 = load i32, ptr %96, align 4, !tbaa !9
  call void @__AllocateWorkSpace(ptr noundef %30, ptr noundef %29, i32 noundef %97)
  %98 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 1
  %99 = load i32, ptr %98, align 4, !tbaa !18
  %100 = and i32 %99, 1
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %103

102:                                              ; preds = %77
  call void @__InitTimers(ptr noundef %30)
  br label %103

103:                                              ; preds = %102, %77
  %104 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 1
  %105 = load i32, ptr %104, align 4, !tbaa !18
  %106 = and i32 %105, 1
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %113

108:                                              ; preds = %103
  %109 = call double @__seconds()
  %110 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 12
  %111 = load double, ptr %110, align 8, !tbaa !22
  %112 = fsub double %111, %109
  store double %112, ptr %110, align 8, !tbaa !22
  br label %113

113:                                              ; preds = %108, %103
  %114 = load ptr, ptr %22, align 8, !tbaa !5
  %115 = load i32, ptr %114, align 4, !tbaa !9
  %116 = load ptr, ptr %26, align 8, !tbaa !5
  %117 = load ptr, ptr %31, align 8, !tbaa !5
  %118 = call i32 @__MCHMlevelRecursiveBisection(ptr noundef %30, ptr noundef %29, i32 noundef %115, ptr noundef %116, ptr noundef %117, i32 noundef 0)
  %119 = load ptr, ptr %25, align 8, !tbaa !5
  store i32 %118, ptr %119, align 4, !tbaa !9
  %120 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 1
  %121 = load i32, ptr %120, align 4, !tbaa !18
  %122 = and i32 %121, 1
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %129

124:                                              ; preds = %113
  %125 = call double @__seconds()
  %126 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 12
  %127 = load double, ptr %126, align 8, !tbaa !22
  %128 = fadd double %127, %125
  store double %128, ptr %126, align 8, !tbaa !22
  br label %129

129:                                              ; preds = %124, %113
  %130 = getelementptr inbounds %struct.controldef, ptr %30, i32 0, i32 1
  %131 = load i32, ptr %130, align 4, !tbaa !18
  %132 = and i32 %131, 1
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %135

134:                                              ; preds = %129
  call void @__PrintTimers(ptr noundef %30)
  br label %135

135:                                              ; preds = %134, %129
  call void @__FreeWorkSpace(ptr noundef %30, ptr noundef %29)
  call void (ptr, ...) @GKfree(ptr noundef %31, ptr noundef null)
  %136 = load ptr, ptr %21, align 8, !tbaa !5
  %137 = load i32, ptr %136, align 4, !tbaa !9
  %138 = icmp eq i32 %137, 1
  br i1 %138, label %139, label %145

139:                                              ; preds = %135
  %140 = load ptr, ptr %14, align 8, !tbaa !5
  %141 = load i32, ptr %140, align 4, !tbaa !9
  %142 = load ptr, ptr %16, align 8, !tbaa !5
  %143 = load ptr, ptr %17, align 8, !tbaa !5
  %144 = load ptr, ptr %26, align 8, !tbaa !5
  call void @__Change2FNumbering(i32 noundef %141, ptr noundef %142, ptr noundef %143, ptr noundef %144)
  br label %145

145:                                              ; preds = %139, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 232, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 216, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  ret void
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !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 28}
!20 = !{!12, !10, i64 0}
!21 = !{!12, !13, i64 24}
!22 = !{!12, !15, i64 104}


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

@.str = external hidden unnamed_addr constant [18 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 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 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

declare void @__PrintTimers(ptr noundef) local_unnamed_addr #1

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

declare void @__Change2FNumbering(i32 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_mCHPartGraphRecursive(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr nocapture noundef readonly %6, ptr nocapture noundef readonly %7, ptr nocapture noundef readonly %8, ptr nocapture noundef readonly %9, ptr nocapture noundef readonly %10, ptr nocapture noundef writeonly %11, ptr noundef %12) local_unnamed_addr #2 {
  %14 = alloca %struct.graphdef, align 8
  %15 = alloca %struct.controldef, align 8
  %16 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 232, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  %17 = load i32, ptr %7, align 4, !tbaa !5
  %18 = icmp eq i32 %17, 1
  br i1 %18, label %19, label %21

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

21:                                               ; preds = %19, %13
  %22 = load i32, ptr %0, align 4, !tbaa !5
  %23 = load i32, ptr %1, align 4, !tbaa !5
  %24 = load i32, ptr %6, align 4, !tbaa !5
  call void @__SetUpGraph(ptr noundef nonnull %14, i32 noundef 1, i32 noundef %22, i32 noundef %23, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %24) #4
  %25 = load i32, ptr %10, align 4, !tbaa !5
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %30, label %27

27:                                               ; preds = %21
  %28 = getelementptr inbounds i8, ptr %10, i64 4
  %29 = load <4 x i32>, ptr %28, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %21, %27
  %31 = phi <4 x i32> [ %29, %27 ], [ <i32 3, i32 1, i32 1, i32 0>, %21 ]
  %32 = getelementptr inbounds i8, ptr %15, i64 4
  %33 = shufflevector <4 x i32> %31, <4 x i32> poison, <4 x i32> <i32 3, i32 0, i32 1, i32 2>
  store <4 x i32> %33, ptr %32, align 4
  %34 = getelementptr inbounds i8, ptr %15, i64 28
  store i32 1, ptr %34, align 4, !tbaa !9
  store i32 100, ptr %15, align 8, !tbaa !15
  %35 = getelementptr inbounds i8, ptr %15, i64 24
  store float 0x3F8EB851E0000000, ptr %35, align 8, !tbaa !16
  %36 = load i32, ptr %1, align 4, !tbaa !5
  %37 = call ptr @__fmalloc(i32 noundef %36, ptr noundef nonnull @.str) #4
  store ptr %37, ptr %16, align 8, !tbaa !17
  %38 = load i32, ptr %1, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = shl nsw i64 %39, 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %37, ptr align 1 %9, i64 %40, i1 false)
  call void @__InitRandom(i32 noundef -1) #4
  %41 = load i32, ptr %8, align 4, !tbaa !5
  call void @__AllocateWorkSpace(ptr noundef nonnull %15, ptr noundef nonnull %14, i32 noundef %41) #4
  %42 = load i32, ptr %32, align 4, !tbaa !18
  %43 = and i32 %42, 1
  %.not = icmp eq i32 %43, 0
  br i1 %.not, label %.thread, label %44

44:                                               ; preds = %30
  call void @__InitTimers(ptr noundef nonnull %15) #4
  %.pre = load i32, ptr %32, align 4, !tbaa !18
  %.pre35 = and i32 %.pre, 1
  %45 = icmp eq i32 %.pre35, 0
  br i1 %45, label %.thread, label %46

46:                                               ; preds = %44
  %47 = call double @__seconds() #4
  %48 = getelementptr inbounds i8, ptr %15, i64 104
  %49 = load double, ptr %48, align 8, !tbaa !19
  %50 = fsub double %49, %47
  store double %50, ptr %48, align 8, !tbaa !19
  br label %.thread

.thread:                                          ; preds = %30, %46, %44
  %51 = load i32, ptr %8, align 4, !tbaa !5
  %52 = call i32 @__MCHMlevelRecursiveBisection(ptr noundef nonnull %15, ptr noundef nonnull %14, i32 noundef %51, ptr noundef %12, ptr noundef %37, i32 noundef 0)
  store i32 %52, ptr %11, align 4, !tbaa !5
  %53 = load i32, ptr %32, align 4, !tbaa !18
  %54 = and i32 %53, 1
  %.not29 = icmp eq i32 %54, 0
  br i1 %.not29, label %.thread39, label %55

55:                                               ; preds = %.thread
  %56 = call double @__seconds() #4
  %57 = getelementptr inbounds i8, ptr %15, i64 104
  %58 = load double, ptr %57, align 8, !tbaa !19
  %59 = fadd double %56, %58
  store double %59, ptr %57, align 8, !tbaa !19
  %.pre34 = load i32, ptr %32, align 4, !tbaa !18
  %.pre36 = and i32 %.pre34, 1
  %60 = icmp eq i32 %.pre36, 0
  br i1 %60, label %.thread39, label %61

61:                                               ; preds = %55
  call void @__PrintTimers(ptr noundef nonnull %15) #4
  br label %.thread39

.thread39:                                        ; preds = %.thread, %61, %55
  call void @__FreeWorkSpace(ptr noundef nonnull %15, ptr noundef nonnull %14) #4
  call void (ptr, ...) @GKfree(ptr noundef nonnull %16, ptr noundef null) #4
  %62 = load i32, ptr %7, align 4, !tbaa !5
  %63 = icmp eq i32 %62, 1
  br i1 %63, label %64, label %66

64:                                               ; preds = %.thread39
  %65 = load i32, ptr %0, align 4, !tbaa !5
  call void @__Change2FNumbering(i32 noundef %65, ptr noundef %2, ptr noundef %3, ptr noundef %12) #4
  br label %66

66:                                               ; preds = %64, %.thread39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %14) #4
  ret void
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 28}
!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 = !{!10, !6, i64 0}
!16 = !{!10, !11, i64 24}
!17 = !{!13, !13, i64 0}
!18 = !{!10, !6, i64 4}
!19 = !{!10, !14, i64 104}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,TailCallElimPass