; LLVM IR from scemama/slaterlib :: src (test)

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

@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [60 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @random_int() #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @random_det(i32 noundef) #0

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

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

; Function Attrs: noreturn
declare void @err(i32 noundef, ptr noundef, ...) #3

declare i32 @exc_degree(i32 noundef, ptr noundef, ptr noundef) #4

declare void @debug_det(i32 noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local i32 @test_get_holes_particles(i32 noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca [2 x i32], align 4
  %13 = alloca [2 x i32], align 4
  %14 = alloca [2 x i32], align 4
  %15 = alloca [2 x i32], align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = zext i32 %16 to i64
  %18 = call ptr @llvm.stacksave.p0()
  store ptr %18, ptr %5, align 8
  %19 = alloca i64, i64 %17, align 16
  store i64 %17, ptr %6, align 8
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = zext i32 %20 to i64
  %22 = alloca i64, i64 %21, align 16
  store i64 %21, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %292, %1
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = icmp ult i32 %24, 10000
  br i1 %25, label %26, label %295

26:                                               ; preds = %23
  %27 = call i32 @random_int()
  store i32 %27, ptr %8, align 4, !tbaa !5
  %28 = load i32, ptr %8, align 4, !tbaa !5
  %29 = icmp ult i32 %28, 4
  br i1 %29, label %30, label %31

30:                                               ; preds = %26
  br label %34

31:                                               ; preds = %26
  %32 = load i32, ptr %8, align 4, !tbaa !5
  %33 = sub i32 %32, 2
  br label %34

34:                                               ; preds = %31, %30
  %35 = phi i32 [ 4, %30 ], [ %33, %31 ]
  store i32 %35, ptr %8, align 4, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %46, %34
  %37 = load i32, ptr %9, align 4, !tbaa !5
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = icmp ult i32 %37, %38
  br i1 %39, label %40, label %49

40:                                               ; preds = %36
  %41 = load i32, ptr %8, align 4, !tbaa !5
  %42 = call i64 @random_det(i32 noundef %41)
  %43 = load i32, ptr %9, align 4, !tbaa !5
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds i64, ptr %19, i64 %44
  store i64 %42, ptr %45, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %40
  %47 = load i32, ptr %9, align 4, !tbaa !5
  %48 = add i32 %47, 1
  store i32 %48, ptr %9, align 4, !tbaa !5
  br label %36, !llvm.loop !11

49:                                               ; preds = %36
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = call i32 @random_single_exc(i32 noundef %50, ptr noundef %19, ptr noundef %22)
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
  %54 = call i32 @get_holes(i32 noundef %52, ptr noundef %19, ptr noundef %22, ptr noundef %53)
  store i32 %54, ptr %10, align 4, !tbaa !5
  %55 = load i32, ptr %10, align 4, !tbaa !5
  %56 = icmp ne i32 %55, 1
  br i1 %56, label %57, label %62

57:                                               ; preds = %49
  %58 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %58, ptr noundef %19)
  %59 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %59, ptr noundef %22)
  store i32 -1, ptr %3, align 4, !tbaa !5
  store i32 10000, ptr %4, align 4, !tbaa !5
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = call i32 @exc_degree(i32 noundef %60, ptr noundef %19, ptr noundef %22)
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.9, i32 noundef %61) #6
  unreachable

62:                                               ; preds = %49
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %65 = call i32 @get_holes_simple(i32 noundef %63, ptr noundef %19, ptr noundef %22, ptr noundef %64)
  store i32 %65, ptr %11, align 4, !tbaa !5
  %66 = load i32, ptr %11, align 4, !tbaa !5
  %67 = load i32, ptr %10, align 4, !tbaa !5
  %68 = icmp ne i32 %66, %67
  br i1 %68, label %75, label %69

69:                                               ; preds = %62
  %70 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = icmp ne i32 %71, %73
  br i1 %74, label %75, label %82

75:                                               ; preds = %69, %62
  %76 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %76, ptr noundef %19)
  %77 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %77, ptr noundef %22)
  store i32 -1, ptr %3, align 4, !tbaa !5
  store i32 10000, ptr %4, align 4, !tbaa !5
  %78 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %81 = load i32, ptr %80, align 4, !tbaa !5
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.10, i32 noundef %79, i32 noundef %81) #6
  unreachable

82:                                               ; preds = %69
  %83 = load i32, ptr %2, align 4, !tbaa !5
  %84 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
  %85 = call i32 @get_particles(i32 noundef %83, ptr noundef %19, ptr noundef %22, ptr noundef %84)
  store i32 %85, ptr %11, align 4, !tbaa !5
  %86 = load i32, ptr %11, align 4, !tbaa !5
  %87 = load i32, ptr %10, align 4, !tbaa !5
  %88 = icmp ne i32 %86, %87
  br i1 %88, label %89, label %94

89:                                               ; preds = %82
  %90 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %90, ptr noundef %19)
  %91 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %91, ptr noundef %22)
  store i32 -1, ptr %3, align 4, !tbaa !5
  store i32 10000, ptr %4, align 4, !tbaa !5
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = call i32 @exc_degree(i32 noundef %92, ptr noundef %19, ptr noundef %22)
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.11, i32 noundef %93) #6
  unreachable

94:                                               ; preds = %82
  %95 = load i32, ptr %2, align 4, !tbaa !5
  %96 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 0
  %97 = call i32 @get_particles_simple(i32 noundef %95, ptr noundef %19, ptr noundef %22, ptr noundef %96)
  store i32 %97, ptr %11, align 4, !tbaa !5
  %98 = load i32, ptr %11, align 4, !tbaa !5
  %99 = load i32, ptr %10, align 4, !tbaa !5
  %100 = icmp ne i32 %98, %99
  br i1 %100, label %107, label %101

101:                                              ; preds = %94
  %102 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 0
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = icmp ne i32 %103, %105
  br i1 %106, label %107, label %115

107:                                              ; preds = %101, %94
  %108 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %108, ptr noundef %19)
  %109 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %109, ptr noundef %22)
  store i32 -1, ptr %3, align 4, !tbaa !5
  store i32 10000, ptr %4, align 4, !tbaa !5
  %110 = load i32, ptr %10, align 4, !tbaa !5
  %111 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 0
  %114 = load i32, ptr %113, align 4, !tbaa !5
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.12, i32 noundef %110, i32 noundef %112, i32 noundef %114) #6
  unreachable

115:                                              ; preds = %101
  %116 = load i32, ptr %2, align 4, !tbaa !5
  %117 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %118 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 0
  %119 = call i32 @get_holes_particles(i32 noundef %116, ptr noundef %19, ptr noundef %22, ptr noundef %117, ptr noundef %118)
  store i32 %119, ptr %11, align 4, !tbaa !5
  %120 = load i32, ptr %11, align 4, !tbaa !5
  %121 = load i32, ptr %10, align 4, !tbaa !5
  %122 = icmp ne i32 %120, %121
  br i1 %122, label %135, label %123

123:                                              ; preds = %115
  %124 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 0
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = icmp ne i32 %125, %127
  br i1 %128, label %135, label %129

129:                                              ; preds = %123
  %130 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %134 = icmp ne i32 %131, %133
  br i1 %134, label %135, label %147

135:                                              ; preds = %129, %123, %115
  %136 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %136, ptr noundef %19)
  %137 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %137, ptr noundef %22)
  store i32 -1, ptr %3, align 4, !tbaa !5
  store i32 10000, ptr %4, align 4, !tbaa !5
  %138 = load i32, ptr %10, align 4, !tbaa !5
  %139 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 0
  %146 = load i32, ptr %145, align 4, !tbaa !5
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.13, i32 noundef %138, i32 noundef %140, i32 noundef %142, i32 noundef %144, i32 noundef %146) #6
  unreachable

147:                                              ; preds = %129
  br label %148

148:                                              ; preds = %151, %147
  %149 = load i32, ptr %10, align 4, !tbaa !5
  %150 = icmp eq i32 %149, 1
  br i1 %150, label %151, label %157

151:                                              ; preds = %148
  %152 = load i32, ptr %2, align 4, !tbaa !5
  %153 = call i32 @random_double_exc(i32 noundef %152, ptr noundef %19, ptr noundef %22)
  %154 = load i32, ptr %2, align 4, !tbaa !5
  %155 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
  %156 = call i32 @get_holes(i32 noundef %154, ptr noundef %19, ptr noundef %22, ptr noundef %155)
  store i32 %156, ptr %10, align 4, !tbaa !5
  br label %148, !llvm.loop !13

157:                                              ; preds = %148
  %158 = load i32, ptr %10, align 4, !tbaa !5
  %159 = icmp ne i32 %158, 2
  br i1 %159, label %160, label %165

160:                                              ; preds = %157
  %161 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %161, ptr noundef %19)
  %162 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %162, ptr noundef %22)
  store i32 -1, ptr %3, align 4, !tbaa !5
  store i32 10000, ptr %4, align 4, !tbaa !5
  %163 = load i32, ptr %2, align 4, !tbaa !5
  %164 = call i32 @exc_degree(i32 noundef %163, ptr noundef %19, ptr noundef %22)
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.14, i32 noundef %164) #6
  unreachable

165:                                              ; preds = %157
  %166 = load i32, ptr %2, align 4, !tbaa !5
  %167 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %168 = call i32 @get_holes_simple(i32 noundef %166, ptr noundef %19, ptr noundef %22, ptr noundef %167)
  store i32 %168, ptr %11, align 4, !tbaa !5
  %169 = load i32, ptr %11, align 4, !tbaa !5
  %170 = load i32, ptr %10, align 4, !tbaa !5
  %171 = icmp ne i32 %169, %170
  br i1 %171, label %184, label %172

172:                                              ; preds = %165
  %173 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %175 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = icmp ne i32 %174, %176
  br i1 %177, label %184, label %178

178:                                              ; preds = %172
  %179 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 1
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = icmp ne i32 %180, %182
  br i1 %183, label %184, label %196

184:                                              ; preds = %178, %172, %165
  %185 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %185, ptr noundef %19)
  %186 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %186, ptr noundef %22)
  store i32 -1, ptr %3, align 4, !tbaa !5
  store i32 10000, ptr %4, align 4, !tbaa !5
  %187 = load i32, ptr %11, align 4, !tbaa !5
  %188 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 1
  %195 = load i32, ptr %194, align 4, !tbaa !5
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.15, i32 noundef %187, i32 noundef %189, i32 noundef %191, i32 noundef %193, i32 noundef %195) #6
  unreachable

196:                                              ; preds = %178
  %197 = load i32, ptr %2, align 4, !tbaa !5
  %198 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
  %199 = call i32 @get_particles(i32 noundef %197, ptr noundef %19, ptr noundef %22, ptr noundef %198)
  store i32 %199, ptr %11, align 4, !tbaa !5
  %200 = load i32, ptr %11, align 4, !tbaa !5
  %201 = load i32, ptr %10, align 4, !tbaa !5
  %202 = icmp ne i32 %200, %201
  br i1 %202, label %203, label %208

203:                                              ; preds = %196
  %204 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %204, ptr noundef %19)
  %205 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %205, ptr noundef %22)
  store i32 -1, ptr %3, align 4, !tbaa !5
  store i32 10000, ptr %4, align 4, !tbaa !5
  %206 = load i32, ptr %2, align 4, !tbaa !5
  %207 = call i32 @exc_degree(i32 noundef %206, ptr noundef %19, ptr noundef %22)
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.11, i32 noundef %207) #6
  unreachable

208:                                              ; preds = %196
  %209 = load i32, ptr %2, align 4, !tbaa !5
  %210 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 0
  %211 = call i32 @get_particles_simple(i32 noundef %209, ptr noundef %19, ptr noundef %22, ptr noundef %210)
  store i32 %211, ptr %11, align 4, !tbaa !5
  %212 = load i32, ptr %11, align 4, !tbaa !5
  %213 = load i32, ptr %10, align 4, !tbaa !5
  %214 = icmp ne i32 %212, %213
  br i1 %214, label %227, label %215

215:                                              ; preds = %208
  %216 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
  %217 = load i32, ptr %216, align 4, !tbaa !5
  %218 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 0
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %220 = icmp ne i32 %217, %219
  br i1 %220, label %227, label %221

221:                                              ; preds = %215
  %222 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %224 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 1
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = icmp ne i32 %223, %225
  br i1 %226, label %227, label %239

227:                                              ; preds = %221, %215, %208
  %228 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %228, ptr noundef %19)
  %229 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %229, ptr noundef %22)
  store i32 -1, ptr %3, align 4, !tbaa !5
  store i32 10000, ptr %4, align 4, !tbaa !5
  %230 = load i32, ptr %11, align 4, !tbaa !5
  %231 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
  %232 = load i32, ptr %231, align 4, !tbaa !5
  %233 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 0
  %234 = load i32, ptr %233, align 4, !tbaa !5
  %235 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
  %236 = load i32, ptr %235, align 4, !tbaa !5
  %237 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 1
  %238 = load i32, ptr %237, align 4, !tbaa !5
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.16, i32 noundef %230, i32 noundef %232, i32 noundef %234, i32 noundef %236, i32 noundef %238) #6
  unreachable

239:                                              ; preds = %221
  %240 = load i32, ptr %2, align 4, !tbaa !5
  %241 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %242 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 0
  %243 = call i32 @get_holes_particles(i32 noundef %240, ptr noundef %19, ptr noundef %22, ptr noundef %241, ptr noundef %242)
  store i32 %243, ptr %11, align 4, !tbaa !5
  %244 = load i32, ptr %11, align 4, !tbaa !5
  %245 = load i32, ptr %10, align 4, !tbaa !5
  %246 = icmp ne i32 %244, %245
  br i1 %246, label %271, label %247

247:                                              ; preds = %239
  %248 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
  %249 = load i32, ptr %248, align 4, !tbaa !5
  %250 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 0
  %251 = load i32, ptr %250, align 4, !tbaa !5
  %252 = icmp ne i32 %249, %251
  br i1 %252, label %271, label %253

253:                                              ; preds = %247
  %254 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
  %255 = load i32, ptr %254, align 4, !tbaa !5
  %256 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %257 = load i32, ptr %256, align 4, !tbaa !5
  %258 = icmp ne i32 %255, %257
  br i1 %258, label %271, label %259

259:                                              ; preds = %253
  %260 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
  %261 = load i32, ptr %260, align 4, !tbaa !5
  %262 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 1
  %263 = load i32, ptr %262, align 4, !tbaa !5
  %264 = icmp ne i32 %261, %263
  br i1 %264, label %271, label %265

265:                                              ; preds = %259
  %266 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
  %267 = load i32, ptr %266, align 4, !tbaa !5
  %268 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 1
  %269 = load i32, ptr %268, align 4, !tbaa !5
  %270 = icmp ne i32 %267, %269
  br i1 %270, label %271, label %291

271:                                              ; preds = %265, %259, %253, %247, %239
  %272 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %272, ptr noundef %19)
  %273 = load i32, ptr %2, align 4, !tbaa !5
  call void @debug_det(i32 noundef %273, ptr noundef %22)
  store i32 -1, ptr %3, align 4, !tbaa !5
  store i32 10000, ptr %4, align 4, !tbaa !5
  %274 = load i32, ptr %10, align 4, !tbaa !5
  %275 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
  %276 = load i32, ptr %275, align 4, !tbaa !5
  %277 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %278 = load i32, ptr %277, align 4, !tbaa !5
  %279 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 0
  %280 = load i32, ptr %279, align 4, !tbaa !5
  %281 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 0
  %282 = load i32, ptr %281, align 4, !tbaa !5
  %283 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
  %284 = load i32, ptr %283, align 4, !tbaa !5
  %285 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 1
  %286 = load i32, ptr %285, align 4, !tbaa !5
  %287 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 1
  %288 = load i32, ptr %287, align 4, !tbaa !5
  %289 = getelementptr inbounds [2 x i32], ptr %15, i64 0, i64 1
  %290 = load i32, ptr %289, align 4, !tbaa !5
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef @.str.17, i32 noundef %274, i32 noundef %276, i32 noundef %278, i32 noundef %280, i32 noundef %282, i32 noundef %284, i32 noundef %286, i32 noundef %288, i32 noundef %290) #6
  unreachable

291:                                              ; preds = %265
  br label %292

292:                                              ; preds = %291
  %293 = load i32, ptr %4, align 4, !tbaa !5
  %294 = add i32 %293, 1
  store i32 %294, ptr %4, align 4, !tbaa !5
  br label %23, !llvm.loop !14

295:                                              ; preds = %23
  %296 = load i32, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %297 = load ptr, ptr %5, align 8
  call void @llvm.stackrestore.p0(ptr %297)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret i32 %296
}

declare i32 @get_holes(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #4

declare i32 @get_holes_simple(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #4

declare i32 @get_particles(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #4

declare i32 @get_particles_simple(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #4

declare i32 @get_holes_particles(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

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

!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 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


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

@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [60 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @random_int() local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @random_det(i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: noreturn
declare void @err(i32 noundef, ptr noundef, ...) local_unnamed_addr #2

declare i32 @exc_degree(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @debug_det(i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @test_get_holes_particles(i32 noundef %0) local_unnamed_addr #0 {
  %2 = alloca [2 x i32], align 4
  %3 = alloca [2 x i32], align 4
  %4 = alloca [2 x i32], align 4
  %5 = alloca [2 x i32], align 4
  %6 = zext i32 %0 to i64
  %7 = alloca i64, i64 %6, align 16
  %8 = alloca i64, i64 %6, align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %.not112 = icmp eq i32 %0, 0
  %9 = getelementptr inbounds i8, ptr %2, i64 4
  %10 = getelementptr inbounds i8, ptr %3, i64 4
  %11 = getelementptr inbounds i8, ptr %4, i64 4
  %12 = getelementptr inbounds i8, ptr %5, i64 4
  br label %15

13:                                               ; preds = %105
  %14 = add nuw nsw i32 %.073111, 1
  %exitcond121.not = icmp eq i32 %14, 10000
  br i1 %exitcond121.not, label %117, label %15, !llvm.loop !5

15:                                               ; preds = %1, %13
  %.073111 = phi i32 [ 0, %1 ], [ %14, %13 ]
  %16 = call i32 @random_int()
  %17 = icmp ult i32 %16, 4
  %18 = add i32 %16, -2
  %19 = select i1 %17, i32 4, i32 %18
  br i1 %.not112, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %15, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %15 ]
  %20 = call i64 @random_det(i32 noundef %19)
  %21 = getelementptr inbounds i64, ptr %7, i64 %indvars.iv
  store i64 %20, ptr %21, align 8, !tbaa !7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %6
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %15
  %22 = call i32 @random_single_exc(i32 noundef %0, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %23 = call i32 @get_holes(i32 noundef %0, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %2) #4
  %.not = icmp eq i32 %23, 1
  br i1 %.not, label %26, label %24

24:                                               ; preds = %._crit_edge
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %7) #4
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %8) #4
  %25 = call i32 @exc_degree(i32 noundef %0, ptr noundef nonnull %7, ptr noundef nonnull %8) #4
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.9, i32 noundef %25) #5
  unreachable

26:                                               ; preds = %._crit_edge
  %27 = call i32 @get_holes_simple(i32 noundef %0, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %3) #4
  %.not76 = icmp eq i32 %27, 1
  br i1 %.not76, label %28, label %31

28:                                               ; preds = %26
  %29 = load i32, ptr %2, align 4, !tbaa !12
  %30 = load i32, ptr %3, align 4, !tbaa !12
  %.not77 = icmp eq i32 %29, %30
  br i1 %.not77, label %34, label %31

31:                                               ; preds = %28, %26
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %7) #4
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %8) #4
  %32 = load i32, ptr %2, align 4, !tbaa !12
  %33 = load i32, ptr %3, align 4, !tbaa !12
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.10, i32 noundef %32, i32 noundef %33) #5
  unreachable

34:                                               ; preds = %28
  %35 = call i32 @get_particles(i32 noundef %0, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %4) #4
  %.not78 = icmp eq i32 %35, 1
  br i1 %.not78, label %38, label %36

36:                                               ; preds = %34
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %7) #4
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %8) #4
  %37 = call i32 @exc_degree(i32 noundef %0, ptr noundef nonnull %7, ptr noundef nonnull %8) #4
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.11, i32 noundef %37) #5
  unreachable

38:                                               ; preds = %34
  %39 = call i32 @get_particles_simple(i32 noundef %0, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %5) #4
  %.not79 = icmp eq i32 %39, 1
  br i1 %.not79, label %40, label %43

40:                                               ; preds = %38
  %41 = load i32, ptr %4, align 4, !tbaa !12
  %42 = load i32, ptr %5, align 4, !tbaa !12
  %.not80 = icmp eq i32 %41, %42
  br i1 %.not80, label %46, label %43

43:                                               ; preds = %40, %38
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %7) #4
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %8) #4
  %44 = load i32, ptr %4, align 4, !tbaa !12
  %45 = load i32, ptr %5, align 4, !tbaa !12
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.12, i32 noundef 1, i32 noundef %44, i32 noundef %45) #5
  unreachable

46:                                               ; preds = %40
  %47 = call i32 @get_holes_particles(i32 noundef %0, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %3, ptr noundef nonnull %5) #4
  %.not81 = icmp eq i32 %47, 1
  br i1 %.not81, label %48, label %54

48:                                               ; preds = %46
  %49 = load i32, ptr %4, align 4, !tbaa !12
  %50 = load i32, ptr %5, align 4, !tbaa !12
  %.not82 = icmp eq i32 %49, %50
  br i1 %.not82, label %51, label %54

51:                                               ; preds = %48
  %52 = load i32, ptr %2, align 4, !tbaa !12
  %53 = load i32, ptr %3, align 4, !tbaa !12
  %.not83 = icmp eq i32 %52, %53
  br i1 %.not83, label %.preheader, label %54

54:                                               ; preds = %51, %48, %46
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %7) #4
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %8) #4
  %55 = load i32, ptr %2, align 4, !tbaa !12
  %56 = load i32, ptr %3, align 4, !tbaa !12
  %57 = load i32, ptr %4, align 4, !tbaa !12
  %58 = load i32, ptr %5, align 4, !tbaa !12
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.13, i32 noundef 1, i32 noundef %55, i32 noundef %56, i32 noundef %57, i32 noundef %58) #5
  unreachable

.preheader:                                       ; preds = %51, %59
  %.0 = phi i32 [ %61, %59 ], [ 1, %51 ]
  switch i32 %.0, label %62 [
    i32 1, label %59
    i32 2, label %64
  ]

59:                                               ; preds = %.preheader
  %60 = call i32 @random_double_exc(i32 noundef %0, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %61 = call i32 @get_holes(i32 noundef %0, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %2) #4
  br label %.preheader, !llvm.loop !14

62:                                               ; preds = %.preheader
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %7) #4
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %8) #4
  %63 = call i32 @exc_degree(i32 noundef %0, ptr noundef nonnull %7, ptr noundef nonnull %8) #4
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.14, i32 noundef %63) #5
  unreachable

64:                                               ; preds = %.preheader
  %65 = call i32 @get_holes_simple(i32 noundef %0, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %3) #4
  %.not85 = icmp eq i32 %65, 2
  br i1 %.not85, label %66, label %72

66:                                               ; preds = %64
  %67 = load i32, ptr %2, align 4, !tbaa !12
  %68 = load i32, ptr %3, align 4, !tbaa !12
  %.not86 = icmp eq i32 %67, %68
  br i1 %.not86, label %69, label %72

69:                                               ; preds = %66
  %70 = load i32, ptr %9, align 4, !tbaa !12
  %71 = load i32, ptr %10, align 4, !tbaa !12
  %.not87 = icmp eq i32 %70, %71
  br i1 %.not87, label %77, label %72

72:                                               ; preds = %69, %66, %64
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %7) #4
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %8) #4
  %73 = load i32, ptr %2, align 4, !tbaa !12
  %74 = load i32, ptr %3, align 4, !tbaa !12
  %75 = load i32, ptr %9, align 4, !tbaa !12
  %76 = load i32, ptr %10, align 4, !tbaa !12
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.15, i32 noundef %65, i32 noundef %73, i32 noundef %74, i32 noundef %75, i32 noundef %76) #5
  unreachable

77:                                               ; preds = %69
  %78 = call i32 @get_particles(i32 noundef %0, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %4) #4
  %.not88 = icmp eq i32 %78, 2
  br i1 %.not88, label %81, label %79

79:                                               ; preds = %77
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %7) #4
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %8) #4
  %80 = call i32 @exc_degree(i32 noundef %0, ptr noundef nonnull %7, ptr noundef nonnull %8) #4
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.11, i32 noundef %80) #5
  unreachable

81:                                               ; preds = %77
  %82 = call i32 @get_particles_simple(i32 noundef %0, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %5) #4
  %.not89 = icmp eq i32 %82, 2
  br i1 %.not89, label %83, label %89

83:                                               ; preds = %81
  %84 = load i32, ptr %4, align 4, !tbaa !12
  %85 = load i32, ptr %5, align 4, !tbaa !12
  %.not90 = icmp eq i32 %84, %85
  br i1 %.not90, label %86, label %89

86:                                               ; preds = %83
  %87 = load i32, ptr %11, align 4, !tbaa !12
  %88 = load i32, ptr %12, align 4, !tbaa !12
  %.not91 = icmp eq i32 %87, %88
  br i1 %.not91, label %94, label %89

89:                                               ; preds = %86, %83, %81
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %7) #4
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %8) #4
  %90 = load i32, ptr %4, align 4, !tbaa !12
  %91 = load i32, ptr %5, align 4, !tbaa !12
  %92 = load i32, ptr %11, align 4, !tbaa !12
  %93 = load i32, ptr %12, align 4, !tbaa !12
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.16, i32 noundef %82, i32 noundef %90, i32 noundef %91, i32 noundef %92, i32 noundef %93) #5
  unreachable

94:                                               ; preds = %86
  %95 = call i32 @get_holes_particles(i32 noundef %0, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %3, ptr noundef nonnull %5) #4
  %.not92 = icmp eq i32 %95, 2
  br i1 %.not92, label %96, label %108

96:                                               ; preds = %94
  %97 = load i32, ptr %4, align 4, !tbaa !12
  %98 = load i32, ptr %5, align 4, !tbaa !12
  %.not93 = icmp eq i32 %97, %98
  br i1 %.not93, label %99, label %108

99:                                               ; preds = %96
  %100 = load i32, ptr %2, align 4, !tbaa !12
  %101 = load i32, ptr %3, align 4, !tbaa !12
  %.not94 = icmp eq i32 %100, %101
  br i1 %.not94, label %102, label %108

102:                                              ; preds = %99
  %103 = load i32, ptr %11, align 4, !tbaa !12
  %104 = load i32, ptr %12, align 4, !tbaa !12
  %.not95 = icmp eq i32 %103, %104
  br i1 %.not95, label %105, label %108

105:                                              ; preds = %102
  %106 = load i32, ptr %9, align 4, !tbaa !12
  %107 = load i32, ptr %10, align 4, !tbaa !12
  %.not96 = icmp eq i32 %106, %107
  br i1 %.not96, label %13, label %108

108:                                              ; preds = %105, %102, %99, %96, %94
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %7) #4
  call void @debug_det(i32 noundef %0, ptr noundef nonnull %8) #4
  %109 = load i32, ptr %2, align 4, !tbaa !12
  %110 = load i32, ptr %3, align 4, !tbaa !12
  %111 = load i32, ptr %4, align 4, !tbaa !12
  %112 = load i32, ptr %5, align 4, !tbaa !12
  %113 = load i32, ptr %9, align 4, !tbaa !12
  %114 = load i32, ptr %10, align 4, !tbaa !12
  %115 = load i32, ptr %11, align 4, !tbaa !12
  %116 = load i32, ptr %12, align 4, !tbaa !12
  call void (i32, ptr, ...) @err(i32 noundef 1, ptr noundef nonnull @.str.17, i32 noundef 2, i32 noundef %109, i32 noundef %110, i32 noundef %111, i32 noundef %112, i32 noundef %113, i32 noundef %114, i32 noundef %115, i32 noundef %116) #5
  unreachable

117:                                              ; preds = %13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  ret i32 0
}

declare i32 @get_holes(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @get_holes_simple(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @get_particles(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @get_particles_simple(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @get_holes_particles(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn "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 = { "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 }
attributes #5 = { noreturn 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"long long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = distinct !{!14, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass