; LLVM IR from clausecker/24puzzle :: heuristic (heu_open)

; 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.anon = type { ptr, ptr, i32 }
%struct.heuristic = type { ptr, ptr, ptr, ptr, i32, i32, i32 }

@drivers = external dso_local constant [20 x %struct.anon], align 16
@stderr = external global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [48 x i8], align 1

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

32:                                               ; preds = %5
  %33 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %33, ptr %14, align 4, !tbaa !9
  store i32 %33, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %46

34:                                               ; preds = %5
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = call i32 @canonical_automorphism(i32 noundef %35)
  store i32 %36, ptr %15, align 4, !tbaa !9
  %37 = load i32, ptr %9, align 4, !tbaa !9
  %38 = call i32 @tileset_add(i32 noundef %37, i32 noundef 0)
  %39 = call i32 @canonical_automorphism(i32 noundef %38)
  store i32 %39, ptr %16, align 4, !tbaa !9
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = load i32, ptr %15, align 4, !tbaa !9
  %42 = call i32 @tileset_morph(i32 noundef %40, i32 noundef %41)
  store i32 %42, ptr %13, align 4, !tbaa !9
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = load i32, ptr %16, align 4, !tbaa !9
  %45 = call i32 @tileset_morph(i32 noundef %43, i32 noundef %44)
  store i32 %45, ptr %14, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %34, %32
  %47 = getelementptr inbounds [66 x i8], ptr %19, i64 0, i64 0
  %48 = load i32, ptr %13, align 4, !tbaa !9
  call void @tileset_list_string(ptr noundef %47, i32 noundef %48)
  %49 = getelementptr inbounds [66 x i8], ptr %20, i64 0, i64 0
  %50 = load i32, ptr %14, align 4, !tbaa !9
  call void @tileset_list_string(ptr noundef %49, i32 noundef %50)
  %51 = getelementptr inbounds [66 x i8], ptr %19, i64 0, i64 0
  store ptr %51, ptr %21, align 8, !tbaa !5
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %52

52:                                               ; preds = %114, %46
  %53 = load i64, ptr %12, align 8, !tbaa !13
  %54 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %53
  %55 = getelementptr inbounds %struct.anon, ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !15
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %117

58:                                               ; preds = %52
  %59 = load i64, ptr %12, align 8, !tbaa !13
  %60 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %59
  %61 = getelementptr inbounds %struct.anon, ptr %60, i32 0, i32 2
  %62 = load i32, ptr %61, align 8, !tbaa !17
  %63 = and i32 %62, 8
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %73, label %65

65:                                               ; preds = %58
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = load i64, ptr %12, align 8, !tbaa !13
  %68 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %67
  %69 = getelementptr inbounds %struct.anon, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !15
  %71 = call i32 @strcmp(ptr noundef %66, ptr noundef %70) #9
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %74

73:                                               ; preds = %65, %58
  br label %114

74:                                               ; preds = %65
  store i32 1, ptr %18, align 4, !tbaa !9
  %75 = load i64, ptr %12, align 8, !tbaa !13
  %76 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %75
  %77 = getelementptr inbounds %struct.anon, ptr %76, i32 0, i32 2
  %78 = load i32, ptr %77, align 8, !tbaa !17
  %79 = and i32 %78, 16
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %89

81:                                               ; preds = %74
  %82 = load i32, ptr %14, align 4, !tbaa !9
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.heuristic, ptr %83, i32 0, i32 4
  store i32 %82, ptr %84, align 8, !tbaa !18
  %85 = load i32, ptr %16, align 4, !tbaa !9
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.heuristic, ptr %86, i32 0, i32 5
  store i32 %85, ptr %87, align 4, !tbaa !19
  %88 = getelementptr inbounds [66 x i8], ptr %20, i64 0, i64 0
  store ptr %88, ptr %21, align 8, !tbaa !5
  br label %97

89:                                               ; preds = %74
  %90 = load i32, ptr %13, align 4, !tbaa !9
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.heuristic, ptr %91, i32 0, i32 4
  store i32 %90, ptr %92, align 8, !tbaa !18
  %93 = load i32, ptr %15, align 4, !tbaa !9
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.heuristic, ptr %94, i32 0, i32 5
  store i32 %93, ptr %95, align 4, !tbaa !19
  %96 = getelementptr inbounds [66 x i8], ptr %19, i64 0, i64 0
  store ptr %96, ptr %21, align 8, !tbaa !5
  br label %97

97:                                               ; preds = %89, %81
  %98 = load i64, ptr %12, align 8, !tbaa !13
  %99 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %98
  %100 = getelementptr inbounds %struct.anon, ptr %99, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !20
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.heuristic, ptr %104, i32 0, i32 4
  %106 = load i32, ptr %105, align 8, !tbaa !18
  %107 = load ptr, ptr %21, align 8, !tbaa !5
  %108 = load i32, ptr %11, align 4, !tbaa !9
  %109 = and i32 %108, -2
  %110 = call i32 %101(ptr noundef %102, ptr noundef %103, i32 noundef %106, ptr noundef %107, i32 noundef %109)
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %113

112:                                              ; preds = %97
  br label %303

113:                                              ; preds = %97
  br label %114

114:                                              ; preds = %113, %73
  %115 = load i64, ptr %12, align 8, !tbaa !13
  %116 = add i64 %115, 1
  store i64 %116, ptr %12, align 8, !tbaa !13
  br label %52, !llvm.loop !21

117:                                              ; preds = %52
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = and i32 %118, 8
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %188

121:                                              ; preds = %117
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %122

122:                                              ; preds = %184, %121
  %123 = load i64, ptr %12, align 8, !tbaa !13
  %124 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %123
  %125 = getelementptr inbounds %struct.anon, ptr %124, i32 0, i32 0
  %126 = load ptr, ptr %125, align 8, !tbaa !15
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %187

128:                                              ; preds = %122
  %129 = load i64, ptr %12, align 8, !tbaa !13
  %130 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %129
  %131 = getelementptr inbounds %struct.anon, ptr %130, i32 0, i32 2
  %132 = load i32, ptr %131, align 8, !tbaa !17
  %133 = and i32 %132, 8
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %143

135:                                              ; preds = %128
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = load i64, ptr %12, align 8, !tbaa !13
  %138 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %137
  %139 = getelementptr inbounds %struct.anon, ptr %138, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !15
  %141 = call i32 @strcmp(ptr noundef %136, ptr noundef %140) #9
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %144

143:                                              ; preds = %135, %128
  br label %184

144:                                              ; preds = %135
  store i32 1, ptr %18, align 4, !tbaa !9
  %145 = load i64, ptr %12, align 8, !tbaa !13
  %146 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %145
  %147 = getelementptr inbounds %struct.anon, ptr %146, i32 0, i32 2
  %148 = load i32, ptr %147, align 8, !tbaa !17
  %149 = and i32 %148, 16
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %159

151:                                              ; preds = %144
  %152 = load i32, ptr %14, align 4, !tbaa !9
  %153 = load ptr, ptr %7, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.heuristic, ptr %153, i32 0, i32 4
  store i32 %152, ptr %154, align 8, !tbaa !18
  %155 = load i32, ptr %16, align 4, !tbaa !9
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.heuristic, ptr %156, i32 0, i32 5
  store i32 %155, ptr %157, align 4, !tbaa !19
  %158 = getelementptr inbounds [66 x i8], ptr %20, i64 0, i64 0
  store ptr %158, ptr %21, align 8, !tbaa !5
  br label %167

159:                                              ; preds = %144
  %160 = load i32, ptr %13, align 4, !tbaa !9
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.heuristic, ptr %161, i32 0, i32 4
  store i32 %160, ptr %162, align 8, !tbaa !18
  %163 = load i32, ptr %15, align 4, !tbaa !9
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.heuristic, ptr %164, i32 0, i32 5
  store i32 %163, ptr %165, align 4, !tbaa !19
  %166 = getelementptr inbounds [66 x i8], ptr %19, i64 0, i64 0
  store ptr %166, ptr %21, align 8, !tbaa !5
  br label %167

167:                                              ; preds = %159, %151
  %168 = load i64, ptr %12, align 8, !tbaa !13
  %169 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %168
  %170 = getelementptr inbounds %struct.anon, ptr %169, i32 0, i32 1
  %171 = load ptr, ptr %170, align 8, !tbaa !20
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.heuristic, ptr %174, i32 0, i32 4
  %176 = load i32, ptr %175, align 8, !tbaa !18
  %177 = load ptr, ptr %21, align 8, !tbaa !5
  %178 = load i32, ptr %11, align 4, !tbaa !9
  %179 = and i32 %178, -2
  %180 = call i32 %171(ptr noundef %172, ptr noundef %173, i32 noundef %176, ptr noundef %177, i32 noundef %179)
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %182, label %183

182:                                              ; preds = %167
  br label %303

183:                                              ; preds = %167
  br label %184

184:                                              ; preds = %183, %143
  %185 = load i64, ptr %12, align 8, !tbaa !13
  %186 = add i64 %185, 1
  store i64 %186, ptr %12, align 8, !tbaa !13
  br label %122, !llvm.loop !23

187:                                              ; preds = %122
  br label %188

188:                                              ; preds = %187, %117
  %189 = load i32, ptr %11, align 4, !tbaa !9
  %190 = and i32 %189, 1
  %191 = icmp ne i32 %190, 0
  br i1 %191, label %192, label %273

192:                                              ; preds = %188
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %193

193:                                              ; preds = %269, %192
  %194 = load i64, ptr %12, align 8, !tbaa !13
  %195 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %194
  %196 = getelementptr inbounds %struct.anon, ptr %195, i32 0, i32 0
  %197 = load ptr, ptr %196, align 8, !tbaa !15
  %198 = icmp ne ptr %197, null
  br i1 %198, label %199, label %272

199:                                              ; preds = %193
  %200 = load i64, ptr %12, align 8, !tbaa !13
  %201 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %200
  %202 = getelementptr inbounds %struct.anon, ptr %201, i32 0, i32 2
  %203 = load i32, ptr %202, align 8, !tbaa !17
  %204 = and i32 %203, 8
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %214, label %206

206:                                              ; preds = %199
  %207 = load ptr, ptr %10, align 8, !tbaa !5
  %208 = load i64, ptr %12, align 8, !tbaa !13
  %209 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %208
  %210 = getelementptr inbounds %struct.anon, ptr %209, i32 0, i32 0
  %211 = load ptr, ptr %210, align 8, !tbaa !15
  %212 = call i32 @strcmp(ptr noundef %207, ptr noundef %211) #9
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %214, label %215

214:                                              ; preds = %206, %199
  br label %269

215:                                              ; preds = %206
  %216 = load i64, ptr %12, align 8, !tbaa !13
  %217 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %216
  %218 = getelementptr inbounds %struct.anon, ptr %217, i32 0, i32 2
  %219 = load i32, ptr %218, align 8, !tbaa !17
  %220 = and i32 %219, 16
  %221 = icmp ne i32 %220, 0
  br i1 %221, label %222, label %230

222:                                              ; preds = %215
  %223 = load i32, ptr %14, align 4, !tbaa !9
  %224 = load ptr, ptr %7, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.heuristic, ptr %224, i32 0, i32 4
  store i32 %223, ptr %225, align 8, !tbaa !18
  %226 = load i32, ptr %16, align 4, !tbaa !9
  %227 = load ptr, ptr %7, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.heuristic, ptr %227, i32 0, i32 5
  store i32 %226, ptr %228, align 4, !tbaa !19
  %229 = getelementptr inbounds [66 x i8], ptr %20, i64 0, i64 0
  store ptr %229, ptr %21, align 8, !tbaa !5
  br label %238

230:                                              ; preds = %215
  %231 = load i32, ptr %13, align 4, !tbaa !9
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.heuristic, ptr %232, i32 0, i32 4
  store i32 %231, ptr %233, align 8, !tbaa !18
  %234 = load i32, ptr %15, align 4, !tbaa !9
  %235 = load ptr, ptr %7, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.heuristic, ptr %235, i32 0, i32 5
  store i32 %234, ptr %236, align 4, !tbaa !19
  %237 = getelementptr inbounds [66 x i8], ptr %19, i64 0, i64 0
  store ptr %237, ptr %21, align 8, !tbaa !5
  br label %238

238:                                              ; preds = %230, %222
  %239 = load i64, ptr %12, align 8, !tbaa !13
  %240 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %239
  %241 = getelementptr inbounds %struct.anon, ptr %240, i32 0, i32 1
  %242 = load ptr, ptr %241, align 8, !tbaa !20
  %243 = load ptr, ptr %7, align 8, !tbaa !5
  %244 = load ptr, ptr %8, align 8, !tbaa !5
  %245 = load ptr, ptr %7, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.heuristic, ptr %245, i32 0, i32 4
  %247 = load i32, ptr %246, align 8, !tbaa !18
  %248 = load ptr, ptr %21, align 8, !tbaa !5
  %249 = load i32, ptr %11, align 4, !tbaa !9
  %250 = call i32 %242(ptr noundef %243, ptr noundef %244, i32 noundef %247, ptr noundef %248, i32 noundef %249)
  %251 = icmp eq i32 %250, 0
  br i1 %251, label %252, label %253

252:                                              ; preds = %238
  br label %303

253:                                              ; preds = %238
  %254 = call ptr @__errno_location() #8
  %255 = load i32, ptr %254, align 4, !tbaa !9
  store i32 %255, ptr %17, align 4, !tbaa !9
  %256 = load i32, ptr %11, align 4, !tbaa !9
  %257 = and i32 %256, 4
  %258 = icmp ne i32 %257, 0
  br i1 %258, label %259, label %266

259:                                              ; preds = %253
  %260 = load ptr, ptr @stderr, align 8, !tbaa !5
  %261 = load ptr, ptr %21, align 8, !tbaa !5
  %262 = load ptr, ptr %10, align 8, !tbaa !5
  %263 = load i32, ptr %17, align 4, !tbaa !9
  %264 = call ptr @strerror(i32 noundef %263) #7
  %265 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %260, ptr noundef @.str.7, ptr noundef %261, ptr noundef %262, ptr noundef %264) #7
  br label %266

266:                                              ; preds = %259, %253
  %267 = load i32, ptr %17, align 4, !tbaa !9
  %268 = call ptr @__errno_location() #8
  store i32 %267, ptr %268, align 4, !tbaa !9
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %22, align 4
  br label %306

269:                                              ; preds = %214
  %270 = load i64, ptr %12, align 8, !tbaa !13
  %271 = add i64 %270, 1
  store i64 %271, ptr %12, align 8, !tbaa !13
  br label %193, !llvm.loop !24

272:                                              ; preds = %193
  br label %273

273:                                              ; preds = %272, %188
  %274 = load i32, ptr %18, align 4, !tbaa !9
  %275 = icmp ne i32 %274, 0
  br i1 %275, label %276, label %292

276:                                              ; preds = %273
  %277 = load i32, ptr %11, align 4, !tbaa !9
  %278 = and i32 %277, 4
  %279 = icmp ne i32 %278, 0
  br i1 %279, label %280, label %290

280:                                              ; preds = %276
  %281 = load ptr, ptr @stderr, align 8, !tbaa !5
  %282 = load ptr, ptr %21, align 8, !tbaa !5
  %283 = load ptr, ptr %10, align 8, !tbaa !5
  %284 = load i32, ptr %11, align 4, !tbaa !9
  %285 = and i32 %284, 8
  %286 = icmp ne i32 %285, 0
  %287 = zext i1 %286 to i64
  %288 = select i1 %286, ptr @.str.9, ptr @.str.10
  %289 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %281, ptr noundef @.str.8, ptr noundef %282, ptr noundef %283, ptr noundef %288) #7
  br label %290

290:                                              ; preds = %280, %276
  %291 = call ptr @__errno_location() #8
  store i32 2, ptr %291, align 4, !tbaa !9
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %22, align 4
  br label %306

292:                                              ; preds = %273
  %293 = load i32, ptr %11, align 4, !tbaa !9
  %294 = and i32 %293, 4
  %295 = icmp ne i32 %294, 0
  br i1 %295, label %296, label %301

296:                                              ; preds = %292
  %297 = load ptr, ptr @stderr, align 8, !tbaa !5
  %298 = load ptr, ptr %10, align 8, !tbaa !5
  %299 = load ptr, ptr %21, align 8, !tbaa !5
  %300 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %297, ptr noundef @.str.11, ptr noundef %298, ptr noundef %299) #7
  br label %301

301:                                              ; preds = %296, %292
  %302 = call ptr @__errno_location() #8
  store i32 22, ptr %302, align 4, !tbaa !9
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %22, align 4
  br label %306

303:                                              ; preds = %252, %182, %112
  %304 = load i32, ptr %17, align 4, !tbaa !9
  %305 = call ptr @__errno_location() #8
  store i32 %304, ptr %305, align 4, !tbaa !9
  store i32 0, ptr %6, align 4
  store i32 1, ptr %22, align 4
  br label %306

306:                                              ; preds = %303, %301, %290, %266
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 66, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 66, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  %307 = load i32, ptr %6, align 4
  ret i32 %307
}

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

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @tileset_remove(i32 noundef, i32 noundef) #3

declare i32 @canonical_automorphism(i32 noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @tileset_add(i32 noundef, i32 noundef) #3

declare i32 @tileset_morph(i32 noundef, i32 noundef) #4

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #5

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #6

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) #6

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

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

!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 40}
!12 = !{!"heuristic", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"", !6, i64 0, !6, i64 8, !10, i64 16}
!17 = !{!16, !10, i64 16}
!18 = !{!12, !10, i64 32}
!19 = !{!12, !10, i64 36}
!20 = !{!16, !6, i64 8}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}


; 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.anon = type { ptr, ptr, i32 }

@drivers = external dso_local local_unnamed_addr constant [20 x %struct.anon], align 16
@stderr = external local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [48 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @heu_open(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #0 {
  %6 = alloca [66 x i8], align 16
  %7 = alloca [66 x i8], align 16
  %8 = tail call ptr @__errno_location() #8
  %9 = load i32, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 66, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 66, ptr nonnull %7) #9
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 0, ptr %10, align 8, !tbaa !9
  %11 = tail call i32 @tileset_remove(i32 noundef %2, i32 noundef 0)
  %12 = and i32 %4, 2
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %13, label %19

13:                                               ; preds = %5
  %14 = tail call i32 @canonical_automorphism(i32 noundef %11) #9
  %15 = tail call i32 @tileset_add(i32 noundef %11, i32 noundef 0)
  %16 = tail call i32 @canonical_automorphism(i32 noundef %15) #9
  %17 = tail call i32 @tileset_morph(i32 noundef %11, i32 noundef %14) #9
  %18 = tail call i32 @tileset_morph(i32 noundef %11, i32 noundef %16) #9
  br label %19

19:                                               ; preds = %5, %13
  %.096 = phi i32 [ %17, %13 ], [ %11, %5 ]
  %.095 = phi i32 [ %18, %13 ], [ %11, %5 ]
  %.094 = phi i32 [ %14, %13 ], [ 0, %5 ]
  %.093 = phi i32 [ %16, %13 ], [ 0, %5 ]
  call void @tileset_list_string(ptr noundef nonnull %6, i32 noundef %.096) #9
  call void @tileset_list_string(ptr noundef nonnull %7, i32 noundef %.095) #9
  %20 = load ptr, ptr @drivers, align 16
  %.not104132 = icmp eq ptr %20, null
  br i1 %.not104132, label %.loopexit.thread, label %.lr.ph

.lr.ph:                                           ; preds = %19
  %21 = getelementptr inbounds i8, ptr %0, i64 32
  %22 = getelementptr inbounds i8, ptr %0, i64 36
  %23 = and i32 %4, -2
  br label %24

24:                                               ; preds = %.lr.ph, %39
  %25 = phi ptr [ %20, %.lr.ph ], [ %42, %39 ]
  %26 = phi ptr [ @drivers, %.lr.ph ], [ %41, %39 ]
  %.0135 = phi ptr [ %6, %.lr.ph ], [ %.2, %39 ]
  %.088134 = phi i32 [ 0, %.lr.ph ], [ %.189, %39 ]
  %.097133 = phi i64 [ 0, %.lr.ph ], [ %40, %39 ]
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  %28 = load i32, ptr %27, align 8, !tbaa !12
  %29 = and i32 %28, 8
  %.not119 = icmp eq i32 %29, 0
  br i1 %.not119, label %30, label %39

30:                                               ; preds = %24
  %31 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %25) #10
  %.not120 = icmp eq i32 %31, 0
  br i1 %.not120, label %32, label %39

32:                                               ; preds = %30
  %33 = and i32 %28, 16
  %.not121 = icmp eq i32 %33, 0
  %storemerge = select i1 %.not121, i32 %.094, i32 %.093
  %34 = select i1 %.not121, i32 %.096, i32 %.095
  %.1 = select i1 %.not121, ptr %6, ptr %7
  store i32 %34, ptr %21, align 8, !tbaa !14
  store i32 %storemerge, ptr %22, align 4, !tbaa !15
  %35 = getelementptr inbounds i8, ptr %26, i64 8
  %36 = load ptr, ptr %35, align 8, !tbaa !16
  %37 = call i32 %36(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %34, ptr noundef nonnull %.1, i32 noundef %23) #9
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %.loopexit124, label %39

39:                                               ; preds = %32, %24, %30
  %.189 = phi i32 [ %.088134, %24 ], [ %.088134, %30 ], [ 1, %32 ]
  %.2 = phi ptr [ %.0135, %24 ], [ %.0135, %30 ], [ %.1, %32 ]
  %40 = add i64 %.097133, 1
  %41 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %40
  %42 = load ptr, ptr %41, align 8, !tbaa !17
  %.not104 = icmp eq ptr %42, null
  br i1 %.not104, label %._crit_edge, label %24, !llvm.loop !18

._crit_edge:                                      ; preds = %39
  %43 = and i32 %4, 8
  %.not105 = icmp eq i32 %43, 0
  br i1 %.not105, label %.loopexit123, label %.preheader122

.preheader122:                                    ; preds = %._crit_edge
  br i1 %.not104132, label %.loopexit, label %.lr.ph141

.lr.ph141:                                        ; preds = %.preheader122
  %44 = getelementptr inbounds i8, ptr %0, i64 32
  %45 = getelementptr inbounds i8, ptr %0, i64 36
  %46 = and i32 %4, -2
  br label %47

47:                                               ; preds = %.lr.ph141, %62
  %48 = phi ptr [ %20, %.lr.ph141 ], [ %65, %62 ]
  %49 = phi ptr [ @drivers, %.lr.ph141 ], [ %64, %62 ]
  %.3140 = phi ptr [ %.2, %.lr.ph141 ], [ %.5, %62 ]
  %.290139 = phi i32 [ %.189, %.lr.ph141 ], [ %.391, %62 ]
  %.198138 = phi i64 [ 0, %.lr.ph141 ], [ %63, %62 ]
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  %51 = load i32, ptr %50, align 8, !tbaa !12
  %52 = and i32 %51, 8
  %.not116 = icmp eq i32 %52, 0
  br i1 %.not116, label %62, label %53

53:                                               ; preds = %47
  %54 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %48) #10
  %.not117 = icmp eq i32 %54, 0
  br i1 %.not117, label %55, label %62

55:                                               ; preds = %53
  %56 = and i32 %51, 16
  %.not118 = icmp eq i32 %56, 0
  %storemerge152 = select i1 %.not118, i32 %.094, i32 %.093
  %57 = select i1 %.not118, i32 %.096, i32 %.095
  %.4 = select i1 %.not118, ptr %6, ptr %7
  store i32 %57, ptr %44, align 8, !tbaa !14
  store i32 %storemerge152, ptr %45, align 4, !tbaa !15
  %58 = getelementptr inbounds i8, ptr %49, i64 8
  %59 = load ptr, ptr %58, align 8, !tbaa !16
  %60 = call i32 %59(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %57, ptr noundef nonnull %.4, i32 noundef %46) #9
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %.loopexit124, label %62

62:                                               ; preds = %55, %47, %53
  %.391 = phi i32 [ %.290139, %53 ], [ 1, %55 ], [ %.290139, %47 ]
  %.5 = phi ptr [ %.3140, %53 ], [ %.4, %55 ], [ %.3140, %47 ]
  %63 = add i64 %.198138, 1
  %64 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !17
  %.not106 = icmp eq ptr %65, null
  br i1 %.not106, label %.loopexit123, label %47, !llvm.loop !20

.loopexit123:                                     ; preds = %62, %._crit_edge
  %.492 = phi i32 [ %.189, %._crit_edge ], [ %.391, %62 ]
  %.6 = phi ptr [ %.2, %._crit_edge ], [ %.5, %62 ]
  %66 = and i32 %4, 1
  %.not107 = icmp eq i32 %66, 0
  %or.cond = or i1 %.not107, %.not104132
  br i1 %or.cond, label %.loopexit, label %.lr.ph146

.lr.ph146:                                        ; preds = %.loopexit123, %89
  %67 = phi ptr [ %92, %89 ], [ %20, %.loopexit123 ]
  %68 = phi ptr [ %91, %89 ], [ @drivers, %.loopexit123 ]
  %.299145 = phi i64 [ %90, %89 ], [ 0, %.loopexit123 ]
  %69 = getelementptr inbounds i8, ptr %68, i64 16
  %70 = load i32, ptr %69, align 8, !tbaa !12
  %71 = and i32 %70, 8
  %.not112 = icmp eq i32 %71, 0
  br i1 %.not112, label %72, label %89

72:                                               ; preds = %.lr.ph146
  %73 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %67) #10
  %.not113 = icmp eq i32 %73, 0
  br i1 %.not113, label %74, label %89

74:                                               ; preds = %72
  %75 = and i32 %70, 16
  %.not114 = icmp eq i32 %75, 0
  %.095.sink = select i1 %.not114, i32 %.096, i32 %.095
  %.093.sink = select i1 %.not114, i32 %.094, i32 %.093
  %.7 = select i1 %.not114, ptr %6, ptr %7
  %76 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %.095.sink, ptr %76, align 8
  %77 = getelementptr inbounds i8, ptr %0, i64 36
  store i32 %.093.sink, ptr %77, align 4
  %78 = getelementptr inbounds i8, ptr %68, i64 8
  %79 = load ptr, ptr %78, align 8, !tbaa !16
  %80 = call i32 %79(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %.095.sink, ptr noundef nonnull %.7, i32 noundef %4) #9
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %.loopexit124, label %82

82:                                               ; preds = %74
  %83 = load i32, ptr %8, align 4, !tbaa !5
  %84 = and i32 %4, 4
  %.not115 = icmp eq i32 %84, 0
  br i1 %.not115, label %.loopexit124, label %85

85:                                               ; preds = %82
  %86 = load ptr, ptr @stderr, align 8, !tbaa !21
  %87 = call ptr @strerror(i32 noundef %83) #9
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.7, ptr noundef nonnull %.7, ptr noundef %3, ptr noundef %87) #11
  br label %.loopexit124

89:                                               ; preds = %.lr.ph146, %72
  %90 = add i64 %.299145, 1
  %91 = getelementptr inbounds [20 x %struct.anon], ptr @drivers, i64 0, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !17
  %.not108 = icmp eq ptr %92, null
  br i1 %.not108, label %.loopexit, label %.lr.ph146, !llvm.loop !22

.loopexit:                                        ; preds = %89, %.preheader122, %.loopexit123
  %.6171 = phi ptr [ %.6, %.loopexit123 ], [ %.2, %.preheader122 ], [ %.6, %89 ]
  %.492170 = phi i32 [ %.492, %.loopexit123 ], [ %.189, %.preheader122 ], [ %.492, %89 ]
  %.not105160169 = phi i1 [ %.not105, %.loopexit123 ], [ false, %.preheader122 ], [ %.not105, %89 ]
  %.not109 = icmp eq i32 %.492170, 0
  br i1 %.not109, label %.loopexit.thread, label %93

93:                                               ; preds = %.loopexit
  %94 = and i32 %4, 4
  %.not111 = icmp eq i32 %94, 0
  br i1 %.not111, label %.loopexit124, label %95

95:                                               ; preds = %93
  %96 = load ptr, ptr @stderr, align 8, !tbaa !21
  %97 = select i1 %.not105160169, ptr @.str.10, ptr @.str.9
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef nonnull @.str.8, ptr noundef %.6171, ptr noundef %3, ptr noundef nonnull %97) #11
  br label %.loopexit124

.loopexit.thread:                                 ; preds = %19, %.loopexit
  %.6171176 = phi ptr [ %.6171, %.loopexit ], [ %6, %19 ]
  %99 = and i32 %4, 4
  %.not110 = icmp eq i32 %99, 0
  br i1 %.not110, label %.loopexit124, label %100

100:                                              ; preds = %.loopexit.thread
  %101 = load ptr, ptr @stderr, align 8, !tbaa !21
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef nonnull @.str.11, ptr noundef %3, ptr noundef %.6171176) #11
  br label %.loopexit124

.loopexit124:                                     ; preds = %32, %55, %74, %.loopexit.thread, %100, %93, %95, %82, %85
  %.sink = phi i32 [ %83, %85 ], [ %83, %82 ], [ 2, %95 ], [ 2, %93 ], [ 22, %100 ], [ 22, %.loopexit.thread ], [ %9, %74 ], [ %9, %55 ], [ %9, %32 ]
  %.0100 = phi i32 [ -1, %85 ], [ -1, %82 ], [ -1, %95 ], [ -1, %93 ], [ -1, %100 ], [ -1, %.loopexit.thread ], [ 0, %74 ], [ 0, %55 ], [ 0, %32 ]
  store i32 %.sink, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 66, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 66, ptr nonnull %6) #9
  ret i32 %.0100
}

; 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 nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @tileset_remove(i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @canonical_automorphism(i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @tileset_add(i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @tileset_morph(i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @tileset_list_string(ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #5

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

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) local_unnamed_addr #7

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 = { inlinehint 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 #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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #6 = { 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 #7 = { 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 #8 = { nounwind willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { cold 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 40}
!10 = !{!"heuristic", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !6, i64 32, !6, i64 36, !6, i64 40}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !6, i64 16}
!13 = !{!"", !11, i64 0, !11, i64 8, !6, i64 16}
!14 = !{!10, !6, i64 32}
!15 = !{!10, !6, i64 36}
!16 = !{!13, !11, i64 8}
!17 = !{!13, !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!11, !11, i64 0}
!22 = distinct !{!22, !19}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,SROAPass,SimplifyCFGPass,TailCallElimPass