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

; 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.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 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 void @__SetUpGraph(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

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

declare void @__InitRandom(i32 noundef) #1

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

declare void @__InitTimers(ptr noundef) #1

declare double @__seconds() #1

declare void @__PrintTimers(ptr noundef) #1

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

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

31:                                               ; preds = %8
  %32 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 2
  store i32 3, ptr %32, align 8, !tbaa !11
  %33 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 3
  store i32 1, ptr %33, align 4, !tbaa !16
  %34 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 4
  store i32 2, ptr %34, align 8, !tbaa !17
  %35 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 1
  store i32 0, ptr %35, align 4, !tbaa !18
  %36 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 10
  store i32 1, ptr %36, align 8, !tbaa !19
  %37 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 8
  store i32 -1, ptr %37, align 8, !tbaa !20
  %38 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 9
  store i32 1, ptr %38, align 4, !tbaa !21
  br label %68

39:                                               ; preds = %8
  %40 = load ptr, ptr %13, align 8, !tbaa !9
  %41 = getelementptr inbounds i32, ptr %40, i64 1
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 2
  store i32 %42, ptr %43, align 8, !tbaa !11
  %44 = load ptr, ptr %13, align 8, !tbaa !9
  %45 = getelementptr inbounds i32, ptr %44, i64 2
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 3
  store i32 %46, ptr %47, align 4, !tbaa !16
  %48 = load ptr, ptr %13, align 8, !tbaa !9
  %49 = getelementptr inbounds i32, ptr %48, i64 3
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 4
  store i32 %50, ptr %51, align 8, !tbaa !17
  %52 = load ptr, ptr %13, align 8, !tbaa !9
  %53 = getelementptr inbounds i32, ptr %52, i64 4
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 1
  store i32 %54, ptr %55, align 4, !tbaa !18
  %56 = load ptr, ptr %13, align 8, !tbaa !9
  %57 = getelementptr inbounds i32, ptr %56, i64 5
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 10
  store i32 %58, ptr %59, align 8, !tbaa !19
  %60 = load ptr, ptr %13, align 8, !tbaa !9
  %61 = getelementptr inbounds i32, ptr %60, i64 6
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 8
  store i32 %62, ptr %63, align 8, !tbaa !20
  %64 = load ptr, ptr %13, align 8, !tbaa !9
  %65 = getelementptr inbounds i32, ptr %64, i64 7
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 9
  store i32 %66, ptr %67, align 4, !tbaa !21
  br label %68

68:                                               ; preds = %39, %31
  %69 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 9
  %70 = load i32, ptr %69, align 4, !tbaa !21
  %71 = icmp slt i32 %70, 1
  br i1 %71, label %72, label %74

72:                                               ; preds = %68
  %73 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 9
  store i32 1, ptr %73, align 4, !tbaa !21
  br label %74

74:                                               ; preds = %72, %68
  %75 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 7
  store i32 4, ptr %75, align 4, !tbaa !22
  %76 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 0
  store i32 100, ptr %76, align 8, !tbaa !23
  %77 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 1
  %78 = load i32, ptr %77, align 4, !tbaa !18
  %79 = and i32 %78, 1
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %82

81:                                               ; preds = %74
  call void @__InitTimers(ptr noundef %24)
  br label %82

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

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

92:                                               ; preds = %87, %82
  call void @__InitRandom(i32 noundef -1)
  %93 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 10
  %94 = load i32, ptr %93, align 8, !tbaa !19
  %95 = and i32 %94, 1
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %133

97:                                               ; preds = %92
  %98 = load i32, ptr %9, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  %100 = call ptr @__idxmalloc(i32 noundef %99, ptr noundef @.str.1)
  store ptr %100, ptr %25, align 8, !tbaa !9
  %101 = load i32, ptr %9, align 4, !tbaa !5
  %102 = call ptr @__idxmalloc(i32 noundef %101, ptr noundef @.str.2)
  store ptr %102, ptr %26, align 8, !tbaa !9
  %103 = load i32, ptr %9, align 4, !tbaa !5
  %104 = load ptr, ptr %10, align 8, !tbaa !9
  %105 = load ptr, ptr %11, align 8, !tbaa !9
  %106 = load ptr, ptr %25, align 8, !tbaa !9
  %107 = load ptr, ptr %26, align 8, !tbaa !9
  call void @__CompressGraph(ptr noundef %24, ptr noundef %23, i32 noundef %103, ptr noundef %104, ptr noundef %105, ptr noundef %106, ptr noundef %107)
  %108 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 2
  %109 = load i32, ptr %108, align 8, !tbaa !25
  %110 = sitofp i32 %109 to double
  %111 = load i32, ptr %9, align 4, !tbaa !5
  %112 = sitofp i32 %111 to double
  %113 = fmul double 8.500000e-01, %112
  %114 = fcmp oge double %110, %113
  br i1 %114, label %115, label %119

115:                                              ; preds = %97
  %116 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 10
  %117 = load i32, ptr %116, align 8, !tbaa !19
  %118 = add nsw i32 %117, -1
  store i32 %118, ptr %116, align 8, !tbaa !19
  call void (ptr, ...) @GKfree(ptr noundef %25, ptr noundef %26, ptr noundef null)
  br label %132

119:                                              ; preds = %97
  %120 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 2
  %121 = load i32, ptr %120, align 8, !tbaa !25
  %122 = mul nsw i32 2, %121
  %123 = load i32, ptr %9, align 4, !tbaa !5
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %125, label %131

125:                                              ; preds = %119
  %126 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 9
  %127 = load i32, ptr %126, align 4, !tbaa !21
  %128 = icmp eq i32 %127, 1
  br i1 %128, label %129, label %131

129:                                              ; preds = %125
  %130 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 9
  store i32 2, ptr %130, align 4, !tbaa !21
  br label %131

131:                                              ; preds = %129, %125, %119
  br label %132

132:                                              ; preds = %131, %115
  br label %137

133:                                              ; preds = %92
  %134 = load i32, ptr %9, align 4, !tbaa !5
  %135 = load ptr, ptr %10, align 8, !tbaa !9
  %136 = load ptr, ptr %11, align 8, !tbaa !9
  call void @__SetUpGraph(ptr noundef %23, i32 noundef 4, i32 noundef %134, i32 noundef 1, ptr noundef %135, ptr noundef %136, ptr noundef null, ptr noundef null, i32 noundef 0)
  br label %137

137:                                              ; preds = %133, %132
  %138 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 2
  %139 = load i32, ptr %138, align 8, !tbaa !25
  %140 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 5
  %141 = load ptr, ptr %140, align 8, !tbaa !27
  %142 = call i32 @__idxsum(i32 noundef %139, ptr noundef %141)
  %143 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 0
  %144 = load i32, ptr %143, align 8, !tbaa !23
  %145 = sdiv i32 %142, %144
  %146 = sitofp i32 %145 to double
  %147 = fmul double 1.500000e+00, %146
  %148 = fptosi double %147 to i32
  %149 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 5
  store i32 %148, ptr %149, align 4, !tbaa !28
  call void @__AllocateWorkSpace(ptr noundef %24, ptr noundef %23, i32 noundef 2)
  %150 = load i32, ptr %12, align 4, !tbaa !5
  %151 = mul nsw i32 2, %150
  %152 = sub nsw i32 %151, 1
  %153 = load ptr, ptr %16, align 8, !tbaa !9
  %154 = call ptr @__idxset(i32 noundef %152, i32 noundef 0, ptr noundef %153)
  %155 = load ptr, ptr %15, align 8, !tbaa !9
  %156 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 2
  %157 = load i32, ptr %156, align 8, !tbaa !25
  %158 = load i32, ptr %12, align 4, !tbaa !5
  %159 = load ptr, ptr %16, align 8, !tbaa !9
  call void @__MlevelNestedDissectionP(ptr noundef %24, ptr noundef %23, ptr noundef %155, i32 noundef %157, i32 noundef %158, i32 noundef 0, ptr noundef %159)
  call void @__FreeWorkSpace(ptr noundef %24, ptr noundef %23)
  %160 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 10
  %161 = load i32, ptr %160, align 8, !tbaa !19
  %162 = and i32 %161, 1
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %164, label %237

164:                                              ; preds = %137
  %165 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 2
  %166 = load i32, ptr %165, align 8, !tbaa !25
  %167 = sitofp i32 %166 to double
  %168 = load i32, ptr %9, align 4, !tbaa !5
  %169 = sitofp i32 %168 to double
  %170 = fmul double 8.500000e-01, %169
  %171 = fcmp olt double %167, %170
  br i1 %171, label %172, label %236

172:                                              ; preds = %164
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %173

173:                                              ; preds = %188, %172
  %174 = load i32, ptr %17, align 4, !tbaa !5
  %175 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 2
  %176 = load i32, ptr %175, align 8, !tbaa !25
  %177 = icmp slt i32 %174, %176
  br i1 %177, label %178, label %191

178:                                              ; preds = %173
  %179 = load i32, ptr %17, align 4, !tbaa !5
  %180 = load ptr, ptr %14, align 8, !tbaa !9
  %181 = load ptr, ptr %15, align 8, !tbaa !9
  %182 = load i32, ptr %17, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds i32, ptr %181, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds i32, ptr %180, i64 %186
  store i32 %179, ptr %187, align 4, !tbaa !5
  br label %188

188:                                              ; preds = %178
  %189 = load i32, ptr %17, align 4, !tbaa !5
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %17, align 4, !tbaa !5
  br label %173, !llvm.loop !29

191:                                              ; preds = %173
  store i32 0, ptr %18, align 4, !tbaa !5
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %192

192:                                              ; preds = %232, %191
  %193 = load i32, ptr %18, align 4, !tbaa !5
  %194 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 2
  %195 = load i32, ptr %194, align 8, !tbaa !25
  %196 = icmp slt i32 %193, %195
  br i1 %196, label %197, label %235

197:                                              ; preds = %192
  %198 = load ptr, ptr %14, align 8, !tbaa !9
  %199 = load i32, ptr %18, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds i32, ptr %198, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !5
  store i32 %202, ptr %17, align 4, !tbaa !5
  %203 = load ptr, ptr %25, align 8, !tbaa !9
  %204 = load i32, ptr %17, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds i32, ptr %203, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !5
  store i32 %207, ptr %19, align 4, !tbaa !5
  br label %208

208:                                              ; preds = %228, %197
  %209 = load i32, ptr %19, align 4, !tbaa !5
  %210 = load ptr, ptr %25, align 8, !tbaa !9
  %211 = load i32, ptr %17, align 4, !tbaa !5
  %212 = add nsw i32 %211, 1
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds i32, ptr %210, i64 %213
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = icmp slt i32 %209, %215
  br i1 %216, label %217, label %231

217:                                              ; preds = %208
  %218 = load i32, ptr %20, align 4, !tbaa !5
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %20, align 4, !tbaa !5
  %220 = load ptr, ptr %15, align 8, !tbaa !9
  %221 = load ptr, ptr %26, align 8, !tbaa !9
  %222 = load i32, ptr %19, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds i32, ptr %221, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds i32, ptr %220, i64 %226
  store i32 %218, ptr %227, align 4, !tbaa !5
  br label %228

228:                                              ; preds = %217
  %229 = load i32, ptr %19, align 4, !tbaa !5
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %19, align 4, !tbaa !5
  br label %208, !llvm.loop !31

231:                                              ; preds = %208
  br label %232

232:                                              ; preds = %231
  %233 = load i32, ptr %18, align 4, !tbaa !5
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %18, align 4, !tbaa !5
  br label %192, !llvm.loop !32

235:                                              ; preds = %192
  br label %236

236:                                              ; preds = %235, %164
  call void (ptr, ...) @GKfree(ptr noundef %25, ptr noundef %26, ptr noundef null)
  br label %237

237:                                              ; preds = %236, %137
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %238

238:                                              ; preds = %252, %237
  %239 = load i32, ptr %17, align 4, !tbaa !5
  %240 = load i32, ptr %9, align 4, !tbaa !5
  %241 = icmp slt i32 %239, %240
  br i1 %241, label %242, label %255

242:                                              ; preds = %238
  %243 = load i32, ptr %17, align 4, !tbaa !5
  %244 = load ptr, ptr %14, align 8, !tbaa !9
  %245 = load ptr, ptr %15, align 8, !tbaa !9
  %246 = load i32, ptr %17, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds i32, ptr %245, i64 %247
  %249 = load i32, ptr %248, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds i32, ptr %244, i64 %250
  store i32 %243, ptr %251, align 4, !tbaa !5
  br label %252

252:                                              ; preds = %242
  %253 = load i32, ptr %17, align 4, !tbaa !5
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr %17, align 4, !tbaa !5
  br label %238, !llvm.loop !33

255:                                              ; preds = %238
  %256 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 1
  %257 = load i32, ptr %256, align 4, !tbaa !18
  %258 = and i32 %257, 1
  %259 = icmp ne i32 %258, 0
  br i1 %259, label %260, label %265

260:                                              ; preds = %255
  %261 = call double @__seconds()
  %262 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 12
  %263 = load double, ptr %262, align 8, !tbaa !24
  %264 = fadd double %263, %261
  store double %264, ptr %262, align 8, !tbaa !24
  br label %265

265:                                              ; preds = %260, %255
  %266 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 1
  %267 = load i32, ptr %266, align 4, !tbaa !18
  %268 = and i32 %267, 1
  %269 = icmp ne i32 %268, 0
  br i1 %269, label %270, label %271

270:                                              ; preds = %265
  call void @__PrintTimers(ptr noundef %24)
  br label %271

271:                                              ; preds = %270, %265
  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 232, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 216, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  ret void
}

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @__MlevelNestedDissectionP(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"controldef", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !13, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, 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", !10, i64 0, !6, i64 8, !6, i64 12, !10, i64 16, !10, i64 24, !6, i64 32, !10, i64 40, !10, i64 48}
!15 = !{!"double", !7, i64 0}
!16 = !{!12, !6, i64 12}
!17 = !{!12, !6, i64 16}
!18 = !{!12, !6, i64 4}
!19 = !{!12, !6, i64 40}
!20 = !{!12, !6, i64 32}
!21 = !{!12, !6, i64 36}
!22 = !{!12, !6, i64 28}
!23 = !{!12, !6, i64 0}
!24 = !{!12, !15, i64 104}
!25 = !{!26, !6, i64 16}
!26 = !{!"graphdef", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 20, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !6, i64 88, !6, i64 92, !10, i64 96, !10, i64 104, !6, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !6, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208}
!27 = !{!26, !10, i64 32}
!28 = !{!12, !6, i64 20}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = distinct !{!32, !30}
!33 = distinct !{!33, !30}


; 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.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 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 void @__SetUpGraph(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

declare void @__InitRandom(i32 noundef) local_unnamed_addr #1

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

declare void @__InitTimers(ptr noundef) local_unnamed_addr #1

declare double @__seconds() local_unnamed_addr #1

declare void @__PrintTimers(ptr noundef) local_unnamed_addr #1

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

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

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

24:                                               ; preds = %8, %15
  %.sink85 = phi i32 [ %19, %15 ], [ 1, %8 ]
  %.sink84 = phi i32 [ %21, %15 ], [ -1, %8 ]
  %.sink = phi i32 [ %23, %15 ], [ 1, %8 ]
  %25 = phi <4 x i32> [ %17, %15 ], [ <i32 3, i32 1, i32 2, i32 0>, %8 ]
  %26 = getelementptr inbounds i8, ptr %10, i64 4
  %27 = shufflevector <4 x i32> %25, <4 x i32> poison, <4 x i32> <i32 3, i32 0, i32 1, i32 2>
  store <4 x i32> %27, ptr %26, align 4
  %28 = getelementptr inbounds i8, ptr %10, i64 40
  store i32 %.sink85, ptr %28, align 8
  %29 = getelementptr inbounds i8, ptr %10, i64 32
  store i32 %.sink84, ptr %29, align 8
  %30 = getelementptr inbounds i8, ptr %10, i64 36
  %spec.select = tail call i32 @llvm.smax.i32(i32 %.sink, i32 1)
  store i32 %spec.select, ptr %30, align 4
  %31 = getelementptr inbounds i8, ptr %10, i64 28
  store i32 4, ptr %31, align 4, !tbaa !9
  store i32 100, ptr %10, align 8, !tbaa !15
  %32 = extractelement <4 x i32> %25, i64 3
  %33 = and i32 %32, 1
  %.not = icmp eq i32 %33, 0
  br i1 %.not, label %.thread, label %34

34:                                               ; preds = %24
  call void @__InitTimers(ptr noundef nonnull %10) #4
  %.pre = load i32, ptr %26, align 4, !tbaa !16
  %.pre91 = and i32 %.pre, 1
  %35 = icmp eq i32 %.pre91, 0
  br i1 %35, label %.thread, label %36

36:                                               ; preds = %34
  %37 = call double @__seconds() #4
  %38 = getelementptr inbounds i8, ptr %10, i64 104
  %39 = load double, ptr %38, align 8, !tbaa !17
  %40 = fsub double %39, %37
  store double %40, ptr %38, align 8, !tbaa !17
  br label %.thread

.thread:                                          ; preds = %24, %36, %34
  call void @__InitRandom(i32 noundef -1) #4
  %41 = load i32, ptr %28, align 8, !tbaa !18
  %42 = and i32 %41, 1
  %.not54 = icmp eq i32 %42, 0
  br i1 %.not54, label %63, label %43

43:                                               ; preds = %.thread
  %44 = add nsw i32 %0, 1
  %45 = call ptr @__idxmalloc(i32 noundef %44, ptr noundef nonnull @.str.1) #4
  store ptr %45, ptr %11, align 8, !tbaa !19
  %46 = call ptr @__idxmalloc(i32 noundef %0, ptr noundef nonnull @.str.2) #4
  store ptr %46, ptr %12, align 8, !tbaa !19
  %47 = load ptr, ptr %11, align 8, !tbaa !19
  call void @__CompressGraph(ptr noundef nonnull %10, ptr noundef nonnull %9, i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %47, ptr noundef %46) #4
  %48 = getelementptr inbounds i8, ptr %9, i64 16
  %49 = load i32, ptr %48, align 8, !tbaa !20
  %50 = sitofp i32 %49 to double
  %51 = sitofp i32 %0 to double
  %52 = fmul double %51, 8.500000e-01
  %53 = fcmp ugt double %52, %50
  br i1 %53, label %57, label %54

54:                                               ; preds = %43
  %55 = load i32, ptr %28, align 8, !tbaa !18
  %56 = add nsw i32 %55, -1
  store i32 %56, ptr %28, align 8, !tbaa !18
  call void (ptr, ...) @GKfree(ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef null) #4
  br label %64

57:                                               ; preds = %43
  %58 = shl nsw i32 %49, 1
  %59 = icmp slt i32 %58, %0
  %60 = load i32, ptr %30, align 4
  %61 = icmp eq i32 %60, 1
  %or.cond = select i1 %59, i1 %61, i1 false
  br i1 %or.cond, label %62, label %64

62:                                               ; preds = %57
  store i32 2, ptr %30, align 4, !tbaa !22
  br label %64

63:                                               ; preds = %.thread
  call void @__SetUpGraph(ptr noundef nonnull %9, i32 noundef 4, i32 noundef %0, i32 noundef 1, ptr noundef %1, ptr noundef %2, ptr noundef null, ptr noundef null, i32 noundef 0) #4
  br label %64

64:                                               ; preds = %54, %62, %57, %63
  %65 = getelementptr inbounds i8, ptr %9, i64 16
  %66 = load i32, ptr %65, align 8, !tbaa !20
  %67 = getelementptr inbounds i8, ptr %9, i64 32
  %68 = load ptr, ptr %67, align 8, !tbaa !23
  %69 = call i32 @__idxsum(i32 noundef %66, ptr noundef %68) #4
  %70 = load i32, ptr %10, align 8, !tbaa !15
  %71 = sdiv i32 %69, %70
  %72 = sitofp i32 %71 to double
  %73 = fmul double %72, 1.500000e+00
  %74 = fptosi double %73 to i32
  %75 = getelementptr inbounds i8, ptr %10, i64 20
  store i32 %74, ptr %75, align 4, !tbaa !24
  call void @__AllocateWorkSpace(ptr noundef nonnull %10, ptr noundef nonnull %9, i32 noundef 2) #4
  %76 = shl nsw i32 %3, 1
  %77 = add nsw i32 %76, -1
  %78 = call ptr @__idxset(i32 noundef %77, i32 noundef 0, ptr noundef %7) #4
  %79 = load i32, ptr %65, align 8, !tbaa !20
  call void @__MlevelNestedDissectionP(ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef %6, i32 noundef %79, i32 noundef %3, i32 noundef 0, ptr noundef %7)
  call void @__FreeWorkSpace(ptr noundef nonnull %10, ptr noundef nonnull %9) #4
  %80 = load i32, ptr %28, align 8, !tbaa !18
  %81 = and i32 %80, 1
  %.not55 = icmp eq i32 %81, 0
  br i1 %.not55, label %135, label %82

82:                                               ; preds = %64
  %83 = load i32, ptr %65, align 8, !tbaa !20
  %84 = sitofp i32 %83 to double
  %85 = sitofp i32 %0 to double
  %86 = fmul double %85, 8.500000e-01
  %87 = fcmp ogt double %86, %84
  br i1 %87, label %.preheader58, label %.loopexit

.preheader58:                                     ; preds = %82
  %88 = icmp sgt i32 %83, 0
  br i1 %88, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %.preheader58
  %wide.trip.count = zext nneg i32 %83 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %89 = icmp ult i32 %83, 4
  br i1 %89, label %.preheader.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

.preheader.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 %.preheader, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader.unr-lcssa ]
  %90 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.epil
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i32, ptr %5, i64 %92
  %94 = trunc nuw nsw i64 %indvars.iv.epil to i32
  store i32 %94, ptr %93, align 4, !tbaa !5
  %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 %.preheader, label %.lr.ph.epil, !llvm.loop !25

.preheader:                                       ; preds = %.lr.ph.epil, %.preheader.unr-lcssa
  br i1 %88, label %.lr.ph65, label %.loopexit

.lr.ph65:                                         ; preds = %.preheader
  %95 = load ptr, ptr %11, align 8, !tbaa !19
  %96 = load ptr, ptr %12, align 8
  %wide.trip.count77 = zext nneg i32 %83 to i64
  br label %117

.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 ]
  %97 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds i32, ptr %5, i64 %99
  %101 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %101, ptr %100, align 4, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %102 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i32, ptr %5, i64 %104
  %106 = trunc nuw nsw i64 %indvars.iv.next to i32
  store i32 %106, ptr %105, align 4, !tbaa !5
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %107 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next.1
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i32, ptr %5, i64 %109
  %111 = trunc nuw nsw i64 %indvars.iv.next.1 to i32
  store i32 %111, ptr %110, align 4, !tbaa !5
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %112 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next.2
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i32, ptr %5, i64 %114
  %116 = trunc nuw nsw i64 %indvars.iv.next.2 to i32
  store i32 %116, ptr %115, align 4, !tbaa !5
  %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 %.preheader.unr-lcssa, label %.lr.ph, !llvm.loop !27

117:                                              ; preds = %.lr.ph65, %._crit_edge
  %indvars.iv74 = phi i64 [ 0, %.lr.ph65 ], [ %indvars.iv.next75, %._crit_edge ]
  %.05063 = phi i32 [ 0, %.lr.ph65 ], [ %.151.lcssa, %._crit_edge ]
  %118 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv74
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i32, ptr %95, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = getelementptr i8, ptr %121, i64 4
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = icmp slt i32 %122, %124
  br i1 %125, label %.lr.ph62.preheader, label %._crit_edge

.lr.ph62.preheader:                               ; preds = %117
  %126 = sext i32 %122 to i64
  br label %.lr.ph62

.lr.ph62:                                         ; preds = %.lr.ph62.preheader, %.lr.ph62
  %indvars.iv71 = phi i64 [ %126, %.lr.ph62.preheader ], [ %indvars.iv.next72, %.lr.ph62 ]
  %.15161 = phi i32 [ %.05063, %.lr.ph62.preheader ], [ %127, %.lr.ph62 ]
  %127 = add nsw i32 %.15161, 1
  %128 = getelementptr inbounds i32, ptr %96, i64 %indvars.iv71
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds i32, ptr %6, i64 %130
  store i32 %.15161, ptr %131, align 4, !tbaa !5
  %indvars.iv.next72 = add nsw i64 %indvars.iv71, 1
  %132 = load i32, ptr %123, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = icmp slt i64 %indvars.iv.next72, %133
  br i1 %134, label %.lr.ph62, label %._crit_edge, !llvm.loop !29

._crit_edge:                                      ; preds = %.lr.ph62, %117
  %.151.lcssa = phi i32 [ %.05063, %117 ], [ %127, %.lr.ph62 ]
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %exitcond78.not = icmp eq i64 %indvars.iv.next75, %wide.trip.count77
  br i1 %exitcond78.not, label %.loopexit, label %117, !llvm.loop !30

.loopexit:                                        ; preds = %._crit_edge, %.preheader58, %.preheader, %82
  call void (ptr, ...) @GKfree(ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef null) #4
  br label %135

135:                                              ; preds = %.loopexit, %64
  %136 = icmp sgt i32 %0, 0
  br i1 %136, label %.lr.ph68.preheader, label %._crit_edge69

.lr.ph68.preheader:                               ; preds = %135
  %wide.trip.count82 = zext nneg i32 %0 to i64
  %xtraiter97 = and i64 %wide.trip.count82, 3
  %137 = icmp ult i32 %0, 4
  br i1 %137, label %._crit_edge69.loopexit.unr-lcssa, label %.lr.ph68.preheader.new

.lr.ph68.preheader.new:                           ; preds = %.lr.ph68.preheader
  %unroll_iter100 = and i64 %wide.trip.count82, 2147483644
  br label %.lr.ph68

.lr.ph68:                                         ; preds = %.lr.ph68, %.lr.ph68.preheader.new
  %indvars.iv79 = phi i64 [ 0, %.lr.ph68.preheader.new ], [ %indvars.iv.next80.3, %.lr.ph68 ]
  %niter101 = phi i64 [ 0, %.lr.ph68.preheader.new ], [ %niter101.next.3, %.lr.ph68 ]
  %138 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv79
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds i32, ptr %5, i64 %140
  %142 = trunc nuw nsw i64 %indvars.iv79 to i32
  store i32 %142, ptr %141, align 4, !tbaa !5
  %indvars.iv.next80 = or disjoint i64 %indvars.iv79, 1
  %143 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next80
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds i32, ptr %5, i64 %145
  %147 = trunc nuw nsw i64 %indvars.iv.next80 to i32
  store i32 %147, ptr %146, align 4, !tbaa !5
  %indvars.iv.next80.1 = or disjoint i64 %indvars.iv79, 2
  %148 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next80.1
  %149 = load i32, ptr %148, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds i32, ptr %5, i64 %150
  %152 = trunc nuw nsw i64 %indvars.iv.next80.1 to i32
  store i32 %152, ptr %151, align 4, !tbaa !5
  %indvars.iv.next80.2 = or disjoint i64 %indvars.iv79, 3
  %153 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next80.2
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds i32, ptr %5, i64 %155
  %157 = trunc nuw nsw i64 %indvars.iv.next80.2 to i32
  store i32 %157, ptr %156, align 4, !tbaa !5
  %indvars.iv.next80.3 = add nuw nsw i64 %indvars.iv79, 4
  %niter101.next.3 = add i64 %niter101, 4
  %niter101.ncmp.3 = icmp eq i64 %niter101.next.3, %unroll_iter100
  br i1 %niter101.ncmp.3, label %._crit_edge69.loopexit.unr-lcssa, label %.lr.ph68, !llvm.loop !31

._crit_edge69.loopexit.unr-lcssa:                 ; preds = %.lr.ph68, %.lr.ph68.preheader
  %indvars.iv79.unr = phi i64 [ 0, %.lr.ph68.preheader ], [ %indvars.iv.next80.3, %.lr.ph68 ]
  %lcmp.mod99.not = icmp eq i64 %xtraiter97, 0
  br i1 %lcmp.mod99.not, label %._crit_edge69, label %.lr.ph68.epil

.lr.ph68.epil:                                    ; preds = %._crit_edge69.loopexit.unr-lcssa, %.lr.ph68.epil
  %indvars.iv79.epil = phi i64 [ %indvars.iv.next80.epil, %.lr.ph68.epil ], [ %indvars.iv79.unr, %._crit_edge69.loopexit.unr-lcssa ]
  %epil.iter98 = phi i64 [ %epil.iter98.next, %.lr.ph68.epil ], [ 0, %._crit_edge69.loopexit.unr-lcssa ]
  %158 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv79.epil
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds i32, ptr %5, i64 %160
  %162 = trunc nuw nsw i64 %indvars.iv79.epil to i32
  store i32 %162, ptr %161, align 4, !tbaa !5
  %indvars.iv.next80.epil = add nuw nsw i64 %indvars.iv79.epil, 1
  %epil.iter98.next = add i64 %epil.iter98, 1
  %epil.iter98.cmp.not = icmp eq i64 %epil.iter98.next, %xtraiter97
  br i1 %epil.iter98.cmp.not, label %._crit_edge69, label %.lr.ph68.epil, !llvm.loop !32

._crit_edge69:                                    ; preds = %._crit_edge69.loopexit.unr-lcssa, %.lr.ph68.epil, %135
  %163 = load i32, ptr %26, align 4, !tbaa !16
  %164 = and i32 %163, 1
  %.not56 = icmp eq i32 %164, 0
  br i1 %.not56, label %.thread95, label %165

165:                                              ; preds = %._crit_edge69
  %166 = call double @__seconds() #4
  %167 = getelementptr inbounds i8, ptr %10, i64 104
  %168 = load double, ptr %167, align 8, !tbaa !17
  %169 = fadd double %166, %168
  store double %169, ptr %167, align 8, !tbaa !17
  %.pre90 = load i32, ptr %26, align 4, !tbaa !16
  %.pre92 = and i32 %.pre90, 1
  %170 = icmp eq i32 %.pre92, 0
  br i1 %170, label %.thread95, label %171

171:                                              ; preds = %165
  call void @__PrintTimers(ptr noundef nonnull %10) #4
  br label %.thread95

.thread95:                                        ; preds = %._crit_edge69, %171, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %9) #4
  ret void
}

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !6, i64 4}
!17 = !{!10, !14, i64 104}
!18 = !{!10, !6, i64 40}
!19 = !{!13, !13, i64 0}
!20 = !{!21, !6, i64 16}
!21 = !{!"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}
!22 = !{!10, !6, i64 36}
!23 = !{!21, !13, i64 32}
!24 = !{!10, !6, i64 20}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.unroll.disable"}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !28}
!31 = distinct !{!31, !28}
!32 = distinct !{!32, !26}


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