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

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

@.str.1 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 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

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

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

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

36:                                               ; preds = %6
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  store i32 0, ptr %7, align 4
  store i32 1, ptr %27, align 4
  br label %264

38:                                               ; preds = %6
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = ashr i32 %39, 1
  %41 = sitofp i32 %40 to double
  %42 = fmul double 1.000000e+00, %41
  %43 = load i32, ptr %10, align 4, !tbaa !9
  %44 = sitofp i32 %43 to double
  %45 = fmul double 1.000000e+00, %44
  %46 = fdiv double %42, %45
  %47 = fptrunc double %46 to float
  %48 = getelementptr inbounds [2 x float], ptr %23, i64 0, i64 0
  store float %47, ptr %48, align 4, !tbaa !14
  %49 = getelementptr inbounds [2 x float], ptr %23, i64 0, i64 0
  %50 = load float, ptr %49, align 4, !tbaa !14
  %51 = fpext float %50 to double
  %52 = fsub double 1.000000e+00, %51
  %53 = fptrunc double %52 to float
  %54 = getelementptr inbounds [2 x float], ptr %23, i64 0, i64 1
  store float %53, ptr %54, align 4, !tbaa !14
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = icmp eq i32 %55, 2
  br i1 %56, label %57, label %62

57:                                               ; preds = %38
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds [2 x float], ptr %23, i64 0, i64 0
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  call void @__MCHMlevelEdgeBisection(ptr noundef %58, ptr noundef %59, ptr noundef %60, ptr noundef %61)
  br label %66

62:                                               ; preds = %38
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds [2 x float], ptr %23, i64 0, i64 0
  call void @__MCMlevelEdgeBisection(ptr noundef %63, ptr noundef %64, ptr noundef %65, float noundef 1.000000e+00)
  br label %66

66:                                               ; preds = %62, %57
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.graphdef, ptr %67, i32 0, i32 12
  %69 = load i32, ptr %68, align 8, !tbaa !16
  store i32 %69, ptr %18, align 4, !tbaa !9
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.graphdef, ptr %70, i32 0, i32 10
  %72 = load ptr, ptr %71, align 8, !tbaa !17
  store ptr %72, ptr %19, align 8, !tbaa !5
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.graphdef, ptr %73, i32 0, i32 14
  %75 = load ptr, ptr %74, align 8, !tbaa !18
  store ptr %75, ptr %20, align 8, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %96, %66
  %77 = load i32, ptr %14, align 4, !tbaa !9
  %78 = load i32, ptr %16, align 4, !tbaa !9
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %80, label %99

80:                                               ; preds = %76
  %81 = load ptr, ptr %20, align 8, !tbaa !5
  %82 = load i32, ptr %14, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds i32, ptr %81, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = add nsw i32 %85, %86
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = load ptr, ptr %19, align 8, !tbaa !5
  %90 = load i32, ptr %14, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i32, ptr %89, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %88, i64 %94
  store i32 %87, ptr %95, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %80
  %97 = load i32, ptr %14, align 4, !tbaa !9
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %14, align 4, !tbaa !9
  br label %76, !llvm.loop !19

99:                                               ; preds = %76
  %100 = load i32, ptr %10, align 4, !tbaa !9
  %101 = icmp sgt i32 %100, 2
  br i1 %101, label %102, label %203

102:                                              ; preds = %99
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.graphdef, ptr %103, i32 0, i32 26
  %105 = load ptr, ptr %104, align 8, !tbaa !21
  store ptr %105, ptr %24, align 8, !tbaa !5
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = call ptr @__fmalloc(i32 noundef %106, ptr noundef @.str.2)
  store ptr %107, ptr %25, align 8, !tbaa !5
  %108 = load i32, ptr %17, align 4, !tbaa !9
  %109 = call ptr @__fmalloc(i32 noundef %108, ptr noundef @.str.2)
  store ptr %109, ptr %26, align 8, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %197, %102
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = load i32, ptr %17, align 4, !tbaa !9
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %114, label %200

114:                                              ; preds = %110
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = load i32, ptr %14, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds float, ptr %115, i64 %117
  %119 = load float, ptr %118, align 4, !tbaa !14
  %120 = getelementptr inbounds [2 x float], ptr %23, i64 0, i64 0
  %121 = load float, ptr %120, align 4, !tbaa !14
  %122 = fmul float %119, %121
  %123 = load ptr, ptr %24, align 8, !tbaa !5
  %124 = load i32, ptr %14, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds float, ptr %123, i64 %125
  %127 = load float, ptr %126, align 4, !tbaa !14
  %128 = fdiv float %122, %127
  %129 = load ptr, ptr %25, align 8, !tbaa !5
  %130 = load i32, ptr %14, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds float, ptr %129, i64 %131
  store float %128, ptr %132, align 4, !tbaa !14
  %133 = load ptr, ptr %25, align 8, !tbaa !5
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds float, ptr %133, i64 %135
  %137 = load float, ptr %136, align 4, !tbaa !14
  %138 = fpext float %137 to double
  %139 = fcmp oge double %138, 1.010000e+00
  br i1 %139, label %140, label %147

140:                                              ; preds = %114
  %141 = load ptr, ptr %25, align 8, !tbaa !5
  %142 = load i32, ptr %14, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds float, ptr %141, i64 %143
  %145 = load float, ptr %144, align 4, !tbaa !14
  %146 = fpext float %145 to double
  br label %148

147:                                              ; preds = %114
  br label %148

148:                                              ; preds = %147, %140
  %149 = phi double [ %146, %140 ], [ 1.010000e+00, %147 ]
  %150 = fptrunc double %149 to float
  %151 = load ptr, ptr %25, align 8, !tbaa !5
  %152 = load i32, ptr %14, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds float, ptr %151, i64 %153
  store float %150, ptr %154, align 4, !tbaa !14
  %155 = load ptr, ptr %12, align 8, !tbaa !5
  %156 = load i32, ptr %14, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds float, ptr %155, i64 %157
  %159 = load float, ptr %158, align 4, !tbaa !14
  %160 = getelementptr inbounds [2 x float], ptr %23, i64 0, i64 1
  %161 = load float, ptr %160, align 4, !tbaa !14
  %162 = fmul float %159, %161
  %163 = load ptr, ptr %24, align 8, !tbaa !5
  %164 = load i32, ptr %17, align 4, !tbaa !9
  %165 = load i32, ptr %14, align 4, !tbaa !9
  %166 = add nsw i32 %164, %165
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds float, ptr %163, i64 %167
  %169 = load float, ptr %168, align 4, !tbaa !14
  %170 = fdiv float %162, %169
  %171 = load ptr, ptr %26, align 8, !tbaa !5
  %172 = load i32, ptr %14, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds float, ptr %171, i64 %173
  store float %170, ptr %174, align 4, !tbaa !14
  %175 = load ptr, ptr %26, align 8, !tbaa !5
  %176 = load i32, ptr %14, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds float, ptr %175, i64 %177
  %179 = load float, ptr %178, align 4, !tbaa !14
  %180 = fpext float %179 to double
  %181 = fcmp oge double %180, 1.010000e+00
  br i1 %181, label %182, label %189

182:                                              ; preds = %148
  %183 = load ptr, ptr %26, align 8, !tbaa !5
  %184 = load i32, ptr %14, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds float, ptr %183, i64 %185
  %187 = load float, ptr %186, align 4, !tbaa !14
  %188 = fpext float %187 to double
  br label %190

189:                                              ; preds = %148
  br label %190

190:                                              ; preds = %189, %182
  %191 = phi double [ %188, %182 ], [ 1.010000e+00, %189 ]
  %192 = fptrunc double %191 to float
  %193 = load ptr, ptr %26, align 8, !tbaa !5
  %194 = load i32, ptr %14, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds float, ptr %193, i64 %195
  store float %192, ptr %196, align 4, !tbaa !14
  br label %197

197:                                              ; preds = %190
  %198 = load i32, ptr %14, align 4, !tbaa !9
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %14, align 4, !tbaa !9
  br label %110, !llvm.loop !22

200:                                              ; preds = %110
  %201 = load ptr, ptr %8, align 8, !tbaa !5
  %202 = load ptr, ptr %9, align 8, !tbaa !5
  call void @__SplitGraphPart(ptr noundef %201, ptr noundef %202, ptr noundef %21, ptr noundef %22)
  br label %203

203:                                              ; preds = %200, %99
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.graphdef, ptr %204, i32 0, i32 0
  %206 = load ptr, ptr %9, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.graphdef, ptr %206, i32 0, i32 25
  %208 = load ptr, ptr %9, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.graphdef, ptr %208, i32 0, i32 1
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.graphdef, ptr %210, i32 0, i32 26
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.graphdef, ptr %212, i32 0, i32 10
  call void (ptr, ...) @GKfree(ptr noundef %205, ptr noundef %207, ptr noundef %209, ptr noundef %211, ptr noundef %213, ptr noundef null)
  %214 = load i32, ptr %10, align 4, !tbaa !9
  %215 = icmp sgt i32 %214, 3
  br i1 %215, label %216, label %240

216:                                              ; preds = %203
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  %218 = load i32, ptr %10, align 4, !tbaa !9
  %219 = sdiv i32 %218, 2
  %220 = load ptr, ptr %11, align 8, !tbaa !5
  %221 = load ptr, ptr %25, align 8, !tbaa !5
  %222 = load i32, ptr %13, align 4, !tbaa !9
  %223 = call i32 @__MCHMlevelRecursiveBisection(ptr noundef %217, ptr noundef %21, i32 noundef %219, ptr noundef %220, ptr noundef %221, i32 noundef %222)
  %224 = load i32, ptr %18, align 4, !tbaa !9
  %225 = add nsw i32 %224, %223
  store i32 %225, ptr %18, align 4, !tbaa !9
  %226 = load ptr, ptr %8, align 8, !tbaa !5
  %227 = load i32, ptr %10, align 4, !tbaa !9
  %228 = load i32, ptr %10, align 4, !tbaa !9
  %229 = sdiv i32 %228, 2
  %230 = sub nsw i32 %227, %229
  %231 = load ptr, ptr %11, align 8, !tbaa !5
  %232 = load ptr, ptr %26, align 8, !tbaa !5
  %233 = load i32, ptr %13, align 4, !tbaa !9
  %234 = load i32, ptr %10, align 4, !tbaa !9
  %235 = sdiv i32 %234, 2
  %236 = add nsw i32 %233, %235
  %237 = call i32 @__MCHMlevelRecursiveBisection(ptr noundef %226, ptr noundef %22, i32 noundef %230, ptr noundef %231, ptr noundef %232, i32 noundef %236)
  %238 = load i32, ptr %18, align 4, !tbaa !9
  %239 = add nsw i32 %238, %237
  store i32 %239, ptr %18, align 4, !tbaa !9
  br label %262

240:                                              ; preds = %203
  %241 = load i32, ptr %10, align 4, !tbaa !9
  %242 = icmp eq i32 %241, 3
  br i1 %242, label %243, label %261

243:                                              ; preds = %240
  %244 = load ptr, ptr %8, align 8, !tbaa !5
  %245 = load i32, ptr %10, align 4, !tbaa !9
  %246 = load i32, ptr %10, align 4, !tbaa !9
  %247 = sdiv i32 %246, 2
  %248 = sub nsw i32 %245, %247
  %249 = load ptr, ptr %11, align 8, !tbaa !5
  %250 = load ptr, ptr %26, align 8, !tbaa !5
  %251 = load i32, ptr %13, align 4, !tbaa !9
  %252 = load i32, ptr %10, align 4, !tbaa !9
  %253 = sdiv i32 %252, 2
  %254 = add nsw i32 %251, %253
  %255 = call i32 @__MCHMlevelRecursiveBisection(ptr noundef %244, ptr noundef %22, i32 noundef %248, ptr noundef %249, ptr noundef %250, i32 noundef %254)
  %256 = load i32, ptr %18, align 4, !tbaa !9
  %257 = add nsw i32 %256, %255
  store i32 %257, ptr %18, align 4, !tbaa !9
  %258 = getelementptr inbounds %struct.graphdef, ptr %21, i32 0, i32 0
  %259 = getelementptr inbounds %struct.graphdef, ptr %21, i32 0, i32 25
  %260 = getelementptr inbounds %struct.graphdef, ptr %21, i32 0, i32 10
  call void (ptr, ...) @GKfree(ptr noundef %258, ptr noundef %259, ptr noundef %260, ptr noundef null)
  br label %261

261:                                              ; preds = %243, %240
  br label %262

262:                                              ; preds = %261, %216
  call void (ptr, ...) @GKfree(ptr noundef %25, ptr noundef %26, ptr noundef null)
  %263 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %263, ptr %7, align 4
  store i32 1, ptr %27, align 4
  br label %264

264:                                              ; preds = %262, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 216, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 216, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 4, 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
  %265 = load i32, ptr %7, align 4
  ret i32 %265
}

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @__MCHMlevelEdgeBisection(ptr noundef, ptr noundef, ptr noundef, ptr 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"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}
!13 = !{!12, !10, i64 176}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!12, !10, i64 88}
!17 = !{!12, !6, i64 72}
!18 = !{!12, !6, i64 96}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!12, !6, i64 192}
!22 = distinct !{!22, !20}


; 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.1 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @__MCHMlevelRecursiveBisection(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) local_unnamed_addr #2 {
  %7 = alloca [2 x float], align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %struct.graphdef, align 8
  %11 = alloca %struct.graphdef, align 8
  %12 = alloca [2 x float], align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  store ptr null, ptr %14, align 8, !tbaa !5
  store ptr null, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 16
  %16 = load i32, ptr %15, align 8, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %1, i64 176
  %18 = load i32, ptr %17, align 8, !tbaa !12
  %19 = icmp eq i32 %16, 0
  br i1 %19, label %20, label %22

20:                                               ; preds = %6
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %196

22:                                               ; preds = %6
  %23 = ashr i32 %2, 1
  %24 = sitofp i32 %23 to double
  %25 = sitofp i32 %2 to double
  %26 = fdiv double %24, %25
  %27 = fptrunc double %26 to float
  store float %27, ptr %12, align 4, !tbaa !13
  %28 = fsub float 1.000000e+00, %27
  %29 = getelementptr inbounds i8, ptr %12, i64 4
  store float %28, ptr %29, align 4, !tbaa !13
  %30 = icmp eq i32 %2, 2
  br i1 %30, label %31, label %32

31:                                               ; preds = %22
  call void @__MCHMlevelEdgeBisection(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef %4)
  br label %33

32:                                               ; preds = %22
  call void @__MCMlevelEdgeBisection(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %12, float noundef 1.000000e+00)
  br label %33

33:                                               ; preds = %32, %31
  %34 = getelementptr inbounds i8, ptr %1, i64 88
  %35 = load i32, ptr %34, align 8, !tbaa !15
  %36 = getelementptr inbounds i8, ptr %1, i64 72
  %37 = load ptr, ptr %36, align 8, !tbaa !16
  %38 = getelementptr inbounds i8, ptr %1, i64 96
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  %40 = icmp sgt i32 %16, 0
  br i1 %40, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %33
  %wide.trip.count = zext nneg i32 %16 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %41 = icmp ult i32 %16, 4
  br i1 %41, 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 ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %42 = getelementptr inbounds i32, ptr %39, i64 %indvars.iv
  %43 = load i32, ptr %42, align 4, !tbaa !18
  %44 = add nsw i32 %43, %5
  %45 = getelementptr inbounds i32, ptr %37, i64 %indvars.iv
  %46 = load i32, ptr %45, align 4, !tbaa !18
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i32, ptr %3, i64 %47
  store i32 %44, ptr %48, align 4, !tbaa !18
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %49 = getelementptr inbounds i32, ptr %39, i64 %indvars.iv.next
  %50 = load i32, ptr %49, align 4, !tbaa !18
  %51 = add nsw i32 %50, %5
  %52 = getelementptr inbounds i32, ptr %37, i64 %indvars.iv.next
  %53 = load i32, ptr %52, align 4, !tbaa !18
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds i32, ptr %3, i64 %54
  store i32 %51, ptr %55, align 4, !tbaa !18
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %56 = getelementptr inbounds i32, ptr %39, i64 %indvars.iv.next.1
  %57 = load i32, ptr %56, align 4, !tbaa !18
  %58 = add nsw i32 %57, %5
  %59 = getelementptr inbounds i32, ptr %37, i64 %indvars.iv.next.1
  %60 = load i32, ptr %59, align 4, !tbaa !18
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds i32, ptr %3, i64 %61
  store i32 %58, ptr %62, align 4, !tbaa !18
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %63 = getelementptr inbounds i32, ptr %39, i64 %indvars.iv.next.2
  %64 = load i32, ptr %63, align 4, !tbaa !18
  %65 = add nsw i32 %64, %5
  %66 = getelementptr inbounds i32, ptr %37, i64 %indvars.iv.next.2
  %67 = load i32, ptr %66, align 4, !tbaa !18
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i32, ptr %3, i64 %68
  store i32 %65, ptr %69, align 4, !tbaa !18
  %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 !19

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.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 ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %70 = getelementptr inbounds i32, ptr %39, i64 %indvars.iv.epil
  %71 = load i32, ptr %70, align 4, !tbaa !18
  %72 = add nsw i32 %71, %5
  %73 = getelementptr inbounds i32, ptr %37, i64 %indvars.iv.epil
  %74 = load i32, ptr %73, align 4, !tbaa !18
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds i32, ptr %3, i64 %75
  store i32 %72, ptr %76, align 4, !tbaa !18
  %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 !21

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %33
  %77 = icmp sgt i32 %2, 2
  br i1 %77, label %81, label %.thread84

.thread84:                                        ; preds = %._crit_edge
  %78 = getelementptr inbounds i8, ptr %1, i64 184
  %79 = getelementptr inbounds i8, ptr %1, i64 8
  %80 = getelementptr inbounds i8, ptr %1, i64 192
  call void (ptr, ...) @GKfree(ptr noundef %1, ptr noundef nonnull %78, ptr noundef nonnull %79, ptr noundef nonnull %80, ptr noundef nonnull %36, ptr noundef null) #4
  br label %195

81:                                               ; preds = %._crit_edge
  %82 = getelementptr inbounds i8, ptr %1, i64 192
  %83 = load ptr, ptr %82, align 8, !tbaa !23
  %84 = call ptr @__fmalloc(i32 noundef %18, ptr noundef nonnull @.str.2) #4
  store ptr %84, ptr %13, align 8, !tbaa !5
  %85 = call ptr @__fmalloc(i32 noundef %18, ptr noundef nonnull @.str.2) #4
  store ptr %85, ptr %14, align 8, !tbaa !5
  %86 = icmp sgt i32 %18, 0
  br i1 %86, label %.lr.ph88, label %._crit_edge89

.lr.ph88:                                         ; preds = %81
  %87 = zext nneg i32 %18 to i64
  %invariant.gep = getelementptr inbounds float, ptr %83, i64 %87
  %min.iters.check = icmp ult i32 %18, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph88
  %88 = shl nuw nsw i64 %87, 2
  %scevgep = getelementptr i8, ptr %84, i64 %88
  %scevgep105 = getelementptr i8, ptr %85, i64 %88
  %scevgep106 = getelementptr i8, ptr %4, i64 %88
  %scevgep107 = getelementptr inbounds i8, ptr %12, i64 8
  %89 = shl nuw nsw i64 %87, 3
  %scevgep108 = getelementptr i8, ptr %83, i64 %89
  %bound0 = icmp ult ptr %84, %scevgep105
  %bound1 = icmp ult ptr %85, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound0109 = icmp ult ptr %84, %scevgep106
  %bound1110 = icmp ugt ptr %scevgep, %4
  %found.conflict111 = and i1 %bound0109, %bound1110
  %conflict.rdx = or i1 %found.conflict, %found.conflict111
  %bound0112 = icmp ult ptr %84, %scevgep107
  %bound1113 = icmp ult ptr %12, %scevgep
  %found.conflict114 = and i1 %bound0112, %bound1113
  %conflict.rdx115 = or i1 %conflict.rdx, %found.conflict114
  %bound0116 = icmp ult ptr %84, %scevgep108
  %bound1117 = icmp ult ptr %invariant.gep, %scevgep
  %found.conflict118 = and i1 %bound0116, %bound1117
  %conflict.rdx119 = or i1 %conflict.rdx115, %found.conflict118
  %bound0120 = icmp ult ptr %84, %invariant.gep
  %bound1121 = icmp ult ptr %83, %scevgep
  %found.conflict122 = and i1 %bound0120, %bound1121
  %conflict.rdx123 = or i1 %conflict.rdx119, %found.conflict122
  %bound0124 = icmp ult ptr %85, %scevgep106
  %bound1125 = icmp ugt ptr %scevgep105, %4
  %found.conflict126 = and i1 %bound0124, %bound1125
  %conflict.rdx127 = or i1 %conflict.rdx123, %found.conflict126
  %bound0128 = icmp ult ptr %85, %scevgep107
  %bound1129 = icmp ult ptr %12, %scevgep105
  %found.conflict130 = and i1 %bound0128, %bound1129
  %conflict.rdx131 = or i1 %conflict.rdx127, %found.conflict130
  %bound0132 = icmp ult ptr %85, %scevgep108
  %bound1133 = icmp ult ptr %invariant.gep, %scevgep105
  %found.conflict134 = and i1 %bound0132, %bound1133
  %conflict.rdx135 = or i1 %conflict.rdx131, %found.conflict134
  %bound0136 = icmp ult ptr %85, %invariant.gep
  %bound1137 = icmp ult ptr %83, %scevgep105
  %found.conflict138 = and i1 %bound0136, %bound1137
  %conflict.rdx139 = or i1 %conflict.rdx135, %found.conflict138
  br i1 %conflict.rdx139, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %87, 2147483644
  %90 = load float, ptr %12, align 4, !tbaa !13, !alias.scope !24
  %broadcast.splatinsert = insertelement <4 x float> poison, float %90, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %91 = load float, ptr %29, align 4, !tbaa !13, !alias.scope !24
  %broadcast.splatinsert142 = insertelement <4 x float> poison, float %91, i64 0
  %broadcast.splat143 = shufflevector <4 x float> %broadcast.splatinsert142, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %92 = getelementptr inbounds float, ptr %4, i64 %index
  %wide.load = load <4 x float>, ptr %92, align 4, !tbaa !13, !alias.scope !27
  %93 = fmul <4 x float> %wide.load, %broadcast.splat
  %94 = getelementptr inbounds float, ptr %83, i64 %index
  %wide.load140 = load <4 x float>, ptr %94, align 4, !tbaa !13, !alias.scope !29
  %95 = fdiv <4 x float> %93, %wide.load140
  %96 = getelementptr inbounds float, ptr %84, i64 %index
  %97 = fpext <4 x float> %95 to <4 x double>
  %98 = fcmp ult <4 x double> %97, <double 1.010000e+00, double 1.010000e+00, double 1.010000e+00, double 1.010000e+00>
  %99 = select <4 x i1> %98, <4 x float> <float 0x3FF028F5C0000000, float 0x3FF028F5C0000000, float 0x3FF028F5C0000000, float 0x3FF028F5C0000000>, <4 x float> %95
  store <4 x float> %99, ptr %96, align 4, !tbaa !13, !alias.scope !31, !noalias !33
  %wide.load141 = load <4 x float>, ptr %92, align 4, !tbaa !13, !alias.scope !27
  %100 = fmul <4 x float> %wide.load141, %broadcast.splat143
  %101 = getelementptr inbounds float, ptr %invariant.gep, i64 %index
  %wide.load144 = load <4 x float>, ptr %101, align 4, !tbaa !13, !alias.scope !36
  %102 = fdiv <4 x float> %100, %wide.load144
  %103 = getelementptr inbounds float, ptr %85, i64 %index
  %104 = fpext <4 x float> %102 to <4 x double>
  %105 = fcmp ult <4 x double> %104, <double 1.010000e+00, double 1.010000e+00, double 1.010000e+00, double 1.010000e+00>
  %106 = select <4 x i1> %105, <4 x float> <float 0x3FF028F5C0000000, float 0x3FF028F5C0000000, float 0x3FF028F5C0000000, float 0x3FF028F5C0000000>, <4 x float> %102
  store <4 x float> %106, ptr %103, align 4, !tbaa !13, !alias.scope !37, !noalias !38
  %index.next = add nuw i64 %index, 4
  %107 = icmp eq i64 %index.next, %n.vec
  br i1 %107, label %middle.block, label %vector.body, !llvm.loop !39

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %87
  br i1 %cmp.n, label %._crit_edge89, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph88
  %indvars.iv95.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph88 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv95 = phi i64 [ %indvars.iv.next96, %scalar.ph ], [ %indvars.iv95.ph, %scalar.ph.preheader ]
  %108 = getelementptr inbounds float, ptr %4, i64 %indvars.iv95
  %109 = load float, ptr %108, align 4, !tbaa !13
  %110 = load float, ptr %12, align 4, !tbaa !13
  %111 = fmul float %109, %110
  %112 = getelementptr inbounds float, ptr %83, i64 %indvars.iv95
  %113 = load float, ptr %112, align 4, !tbaa !13
  %114 = fdiv float %111, %113
  %115 = getelementptr inbounds float, ptr %84, i64 %indvars.iv95
  %116 = fpext float %114 to double
  %117 = fcmp ult double %116, 1.010000e+00
  %118 = select i1 %117, float 0x3FF028F5C0000000, float %114
  store float %118, ptr %115, align 4, !tbaa !13
  %119 = load float, ptr %108, align 4, !tbaa !13
  %120 = load float, ptr %29, align 4, !tbaa !13
  %121 = fmul float %119, %120
  %gep = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv95
  %122 = load float, ptr %gep, align 4, !tbaa !13
  %123 = fdiv float %121, %122
  %124 = getelementptr inbounds float, ptr %85, i64 %indvars.iv95
  %125 = fpext float %123 to double
  %126 = fcmp ult double %125, 1.010000e+00
  %127 = select i1 %126, float 0x3FF028F5C0000000, float %123
  store float %127, ptr %124, align 4, !tbaa !13
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %exitcond99.not = icmp eq i64 %indvars.iv.next96, %87
  br i1 %exitcond99.not, label %._crit_edge89, label %scalar.ph, !llvm.loop !42

._crit_edge89:                                    ; preds = %scalar.ph, %middle.block, %81
  call void @__SplitGraphPart(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %10, ptr noundef nonnull %11) #4
  %128 = getelementptr inbounds i8, ptr %1, i64 184
  %129 = getelementptr inbounds i8, ptr %1, i64 8
  call void (ptr, ...) @GKfree(ptr noundef %1, ptr noundef nonnull %128, ptr noundef nonnull %129, ptr noundef nonnull %82, ptr noundef nonnull %36, ptr noundef null) #4
  %.not = icmp eq i32 %2, 3
  br i1 %.not, label %138, label %130

130:                                              ; preds = %._crit_edge89
  %131 = lshr i32 %2, 1
  %132 = call i32 @__MCHMlevelRecursiveBisection(ptr noundef %0, ptr noundef nonnull %10, i32 noundef %131, ptr noundef %3, ptr noundef %84, i32 noundef %5)
  %133 = add nsw i32 %132, %35
  %134 = sub nsw i32 %2, %131
  %135 = add nsw i32 %131, %5
  %136 = call i32 @__MCHMlevelRecursiveBisection(ptr noundef %0, ptr noundef nonnull %11, i32 noundef %134, ptr noundef %3, ptr noundef %85, i32 noundef %135)
  %137 = add nsw i32 %133, %136
  br label %195

138:                                              ; preds = %._crit_edge89
  %139 = add nsw i32 %5, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  store ptr null, ptr %9, align 8, !tbaa !5
  store ptr null, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds i8, ptr %11, i64 16
  %141 = load i32, ptr %140, align 8, !tbaa !9
  %142 = icmp eq i32 %141, 0
  br i1 %142, label %143, label %145

143:                                              ; preds = %138
  %144 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %__MCHMlevelRecursiveBisection.exit

145:                                              ; preds = %138
  store <2 x float> <float 5.000000e-01, float 5.000000e-01>, ptr %7, align 8, !tbaa !13
  call void @__MCHMlevelEdgeBisection(ptr noundef %0, ptr noundef nonnull %11, ptr noundef nonnull %7, ptr noundef %85)
  %146 = getelementptr inbounds i8, ptr %11, i64 88
  %147 = load i32, ptr %146, align 8, !tbaa !15
  %148 = getelementptr inbounds i8, ptr %11, i64 72
  %149 = load ptr, ptr %148, align 8, !tbaa !16
  %150 = getelementptr inbounds i8, ptr %11, i64 96
  %151 = load ptr, ptr %150, align 8, !tbaa !17
  %152 = icmp sgt i32 %141, 0
  br i1 %152, label %.lr.ph92.preheader, label %._crit_edge93

.lr.ph92.preheader:                               ; preds = %145
  %wide.trip.count103 = zext nneg i32 %141 to i64
  %xtraiter145 = and i64 %wide.trip.count103, 3
  %153 = icmp ult i32 %141, 4
  br i1 %153, label %._crit_edge93.loopexit.unr-lcssa, label %.lr.ph92.preheader.new

.lr.ph92.preheader.new:                           ; preds = %.lr.ph92.preheader
  %unroll_iter148 = and i64 %wide.trip.count103, 2147483644
  br label %.lr.ph92

.lr.ph92:                                         ; preds = %.lr.ph92, %.lr.ph92.preheader.new
  %indvars.iv100 = phi i64 [ 0, %.lr.ph92.preheader.new ], [ %indvars.iv.next101.3, %.lr.ph92 ]
  %niter149 = phi i64 [ 0, %.lr.ph92.preheader.new ], [ %niter149.next.3, %.lr.ph92 ]
  %154 = getelementptr inbounds i32, ptr %151, i64 %indvars.iv100
  %155 = load i32, ptr %154, align 4, !tbaa !18
  %156 = add nsw i32 %139, %155
  %157 = getelementptr inbounds i32, ptr %149, i64 %indvars.iv100
  %158 = load i32, ptr %157, align 4, !tbaa !18
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds i32, ptr %3, i64 %159
  store i32 %156, ptr %160, align 4, !tbaa !18
  %indvars.iv.next101 = or disjoint i64 %indvars.iv100, 1
  %161 = getelementptr inbounds i32, ptr %151, i64 %indvars.iv.next101
  %162 = load i32, ptr %161, align 4, !tbaa !18
  %163 = add nsw i32 %139, %162
  %164 = getelementptr inbounds i32, ptr %149, i64 %indvars.iv.next101
  %165 = load i32, ptr %164, align 4, !tbaa !18
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds i32, ptr %3, i64 %166
  store i32 %163, ptr %167, align 4, !tbaa !18
  %indvars.iv.next101.1 = or disjoint i64 %indvars.iv100, 2
  %168 = getelementptr inbounds i32, ptr %151, i64 %indvars.iv.next101.1
  %169 = load i32, ptr %168, align 4, !tbaa !18
  %170 = add nsw i32 %139, %169
  %171 = getelementptr inbounds i32, ptr %149, i64 %indvars.iv.next101.1
  %172 = load i32, ptr %171, align 4, !tbaa !18
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds i32, ptr %3, i64 %173
  store i32 %170, ptr %174, align 4, !tbaa !18
  %indvars.iv.next101.2 = or disjoint i64 %indvars.iv100, 3
  %175 = getelementptr inbounds i32, ptr %151, i64 %indvars.iv.next101.2
  %176 = load i32, ptr %175, align 4, !tbaa !18
  %177 = add nsw i32 %139, %176
  %178 = getelementptr inbounds i32, ptr %149, i64 %indvars.iv.next101.2
  %179 = load i32, ptr %178, align 4, !tbaa !18
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds i32, ptr %3, i64 %180
  store i32 %177, ptr %181, align 4, !tbaa !18
  %indvars.iv.next101.3 = add nuw nsw i64 %indvars.iv100, 4
  %niter149.next.3 = add i64 %niter149, 4
  %niter149.ncmp.3 = icmp eq i64 %niter149.next.3, %unroll_iter148
  br i1 %niter149.ncmp.3, label %._crit_edge93.loopexit.unr-lcssa, label %.lr.ph92, !llvm.loop !19

._crit_edge93.loopexit.unr-lcssa:                 ; preds = %.lr.ph92, %.lr.ph92.preheader
  %indvars.iv100.unr = phi i64 [ 0, %.lr.ph92.preheader ], [ %indvars.iv.next101.3, %.lr.ph92 ]
  %lcmp.mod147.not = icmp eq i64 %xtraiter145, 0
  br i1 %lcmp.mod147.not, label %._crit_edge93, label %.lr.ph92.epil

.lr.ph92.epil:                                    ; preds = %._crit_edge93.loopexit.unr-lcssa, %.lr.ph92.epil
  %indvars.iv100.epil = phi i64 [ %indvars.iv.next101.epil, %.lr.ph92.epil ], [ %indvars.iv100.unr, %._crit_edge93.loopexit.unr-lcssa ]
  %epil.iter146 = phi i64 [ %epil.iter146.next, %.lr.ph92.epil ], [ 0, %._crit_edge93.loopexit.unr-lcssa ]
  %182 = getelementptr inbounds i32, ptr %151, i64 %indvars.iv100.epil
  %183 = load i32, ptr %182, align 4, !tbaa !18
  %184 = add nsw i32 %139, %183
  %185 = getelementptr inbounds i32, ptr %149, i64 %indvars.iv100.epil
  %186 = load i32, ptr %185, align 4, !tbaa !18
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds i32, ptr %3, i64 %187
  store i32 %184, ptr %188, align 4, !tbaa !18
  %indvars.iv.next101.epil = add nuw nsw i64 %indvars.iv100.epil, 1
  %epil.iter146.next = add i64 %epil.iter146, 1
  %epil.iter146.cmp.not = icmp eq i64 %epil.iter146.next, %xtraiter145
  br i1 %epil.iter146.cmp.not, label %._crit_edge93, label %.lr.ph92.epil, !llvm.loop !43

._crit_edge93:                                    ; preds = %._crit_edge93.loopexit.unr-lcssa, %.lr.ph92.epil, %145
  %189 = getelementptr inbounds i8, ptr %11, i64 184
  %190 = getelementptr inbounds i8, ptr %11, i64 8
  %191 = getelementptr inbounds i8, ptr %11, i64 192
  call void (ptr, ...) @GKfree(ptr noundef nonnull %11, ptr noundef nonnull %189, ptr noundef nonnull %190, ptr noundef nonnull %191, ptr noundef nonnull %148, ptr noundef null) #4
  call void (ptr, ...) @GKfree(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef null) #4
  br label %__MCHMlevelRecursiveBisection.exit

__MCHMlevelRecursiveBisection.exit:               ; preds = %143, %._crit_edge93
  %.0.i = phi i32 [ 0, %143 ], [ %147, %._crit_edge93 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  %192 = add nsw i32 %.0.i, %35
  %193 = getelementptr inbounds i8, ptr %10, i64 184
  %194 = getelementptr inbounds i8, ptr %10, i64 72
  call void (ptr, ...) @GKfree(ptr noundef nonnull %10, ptr noundef nonnull %193, ptr noundef nonnull %194, ptr noundef null) #4
  br label %195

195:                                              ; preds = %.thread84, %__MCHMlevelRecursiveBisection.exit, %130
  %.077 = phi i32 [ %137, %130 ], [ %192, %__MCHMlevelRecursiveBisection.exit ], [ %35, %.thread84 ]
  call void (ptr, ...) @GKfree(ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef null) #4
  br label %196

196:                                              ; preds = %195, %20
  %.0 = phi i32 [ 0, %20 ], [ %.077, %195 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %10) #4
  ret i32 %.0
}

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @__MCHMlevelEdgeBisection(ptr noundef, ptr noundef, ptr noundef, ptr 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"graphdef", !6, i64 0, !6, i64 8, !11, i64 16, !11, 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, !11, i64 88, !11, i64 92, !6, i64 96, !6, i64 104, !11, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !11, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 176}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!10, !11, i64 88}
!16 = !{!10, !6, i64 72}
!17 = !{!10, !6, i64 96}
!18 = !{!11, !11, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.unroll.disable"}
!23 = !{!10, !6, i64 192}
!24 = !{!25}
!25 = distinct !{!25, !26}
!26 = distinct !{!26, !"LVerDomain"}
!27 = !{!28}
!28 = distinct !{!28, !26}
!29 = !{!30}
!30 = distinct !{!30, !26}
!31 = !{!32}
!32 = distinct !{!32, !26}
!33 = !{!34, !28, !25, !35, !30}
!34 = distinct !{!34, !26}
!35 = distinct !{!35, !26}
!36 = !{!35}
!37 = !{!34}
!38 = !{!28, !25, !35, !30}
!39 = distinct !{!39, !20, !40, !41}
!40 = !{!"llvm.loop.isvectorized", i32 1}
!41 = !{!"llvm.loop.unroll.runtime.disable"}
!42 = distinct !{!42, !20, !40}
!43 = distinct !{!43, !22}


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