; LLVM IR from kalininalab/rinminer :: rinminer (rinminer)

; 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.dfs_code_t = type { i16, i16, i32, i32, %struct.edge_label_t, i32 }
%struct.edge_label_t = type { i32, i32 }
%struct.extension_t = type { ptr, ptr, i32, %struct.dfs_code_t }
%struct.neighbor_t = type { i16, %struct.edge_label_t, i32 }
%struct.database_t = type { ptr, i32, i32, i32 }
%struct.database_entry_t = type { ptr, ptr, ptr, i32, i32, i32, i32 }
%struct.subgraph_t = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i32, ptr }

@__const.find_canonical_parent.initial_code = external hidden unnamed_addr constant %struct.dfs_code_t, align 4

; 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

; Function Attrs: nounwind
declare void @free(ptr noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @reset_canonical_subgraph_template(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @update_canonical_subgraph_template(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @find_canonical_extension(ptr dead_on_unwind noalias writable sret(%struct.extension_t) align 8, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @minimize_labels(ptr noundef, ptr noundef) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @clear_embedding_store(ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local ptr @find_canonical_parent(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6) #4 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %struct.dfs_code_t, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca %struct.neighbor_t, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %struct.extension_t, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  store i32 %5, ptr %13, align 4, !tbaa !9
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.database_t, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  %37 = getelementptr inbounds %struct.database_entry_t, ptr %36, i64 0
  store ptr %37, ptr %15, align 8, !tbaa !5
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.subgraph_t, ptr %38, i32 0, i32 14
  %40 = load i32, ptr %39, align 8, !tbaa !13
  %41 = sub i32 %40, 1
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.database_entry_t, ptr %42, i32 0, i32 6
  store i32 %41, ptr %43, align 4, !tbaa !16
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.subgraph_t, ptr %44, i32 0, i32 18
  %46 = load i16, ptr %45, align 8, !tbaa !18
  %47 = zext i16 %46 to i32
  %48 = add nsw i32 %47, 1
  %49 = load ptr, ptr %15, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.database_entry_t, ptr %49, i32 0, i32 5
  store i32 %48, ptr %50, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 @__const.find_canonical_parent.initial_code, i64 24, i1 false)
  %51 = getelementptr inbounds %struct.dfs_code_t, ptr %16, i32 0, i32 0
  store i16 0, ptr %51, align 4, !tbaa !20
  %52 = getelementptr inbounds %struct.dfs_code_t, ptr %16, i32 0, i32 1
  store i16 1, ptr %52, align 2, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %73, %7
  %54 = load i32, ptr %17, align 4, !tbaa !9
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.subgraph_t, ptr %55, i32 0, i32 14
  %57 = load i32, ptr %56, align 8, !tbaa !13
  %58 = icmp ult i32 %54, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %76

60:                                               ; preds = %53
  %61 = load i32, ptr %17, align 4, !tbaa !9
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = icmp eq i32 %61, %62
  br i1 %63, label %64, label %65

64:                                               ; preds = %60
  br label %73

65:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.subgraph_t, ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !24
  %69 = load i32, ptr %17, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds %struct.dfs_code_t, ptr %68, i64 %70
  store ptr %71, ptr %18, align 8, !tbaa !5
  %72 = load ptr, ptr %18, align 8, !tbaa !5
  call void @minimize_labels(ptr noundef %16, ptr noundef %72)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %73

73:                                               ; preds = %65, %64
  %74 = load i32, ptr %17, align 4, !tbaa !9
  %75 = add i32 %74, 1
  store i32 %75, ptr %17, align 4, !tbaa !9
  br label %53, !llvm.loop !25

76:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.subgraph_t, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !24
  %80 = load i32, ptr %11, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds %struct.dfs_code_t, ptr %79, i64 %81
  store ptr %82, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %83 = load ptr, ptr %19, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.dfs_code_t, ptr %83, i32 0, i32 0
  %85 = load i16, ptr %84, align 4, !tbaa !20
  %86 = zext i16 %85 to i32
  store i32 %86, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %87 = load ptr, ptr %19, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.dfs_code_t, ptr %87, i32 0, i32 1
  %89 = load i16, ptr %88, align 2, !tbaa !23
  %90 = zext i16 %89 to i32
  store i32 %90, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %160, %76
  %92 = load i32, ptr %24, align 4, !tbaa !9
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.database_entry_t, ptr %93, i32 0, i32 1
  %95 = load ptr, ptr %94, align 8, !tbaa !27
  %96 = load i32, ptr %20, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %95, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = sub i32 %99, 1
  %101 = icmp ult i32 %92, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %91
  store i32 5, ptr %25, align 4
  br label %163

103:                                              ; preds = %91
  %104 = load ptr, ptr %15, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.database_entry_t, ptr %104, i32 0, i32 2
  %106 = load ptr, ptr %105, align 8, !tbaa !28
  %107 = load i32, ptr %20, align 4, !tbaa !9
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds ptr, ptr %106, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = load i32, ptr %24, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds %struct.neighbor_t, ptr %110, i64 %112
  %114 = getelementptr inbounds %struct.neighbor_t, ptr %113, i32 0, i32 0
  %115 = load i16, ptr %114, align 4, !tbaa !29
  %116 = zext i16 %115 to i32
  %117 = load i32, ptr %21, align 4, !tbaa !9
  %118 = icmp eq i32 %116, %117
  br i1 %118, label %119, label %159

119:                                              ; preds = %103
  %120 = load ptr, ptr %15, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.database_entry_t, ptr %120, i32 0, i32 2
  %122 = load ptr, ptr %121, align 8, !tbaa !28
  %123 = load i32, ptr %20, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds ptr, ptr %122, i64 %124
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = load ptr, ptr %15, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.database_entry_t, ptr %127, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8, !tbaa !27
  %130 = load i32, ptr %20, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds i32, ptr %129, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !9
  %134 = sub i32 %133, 1
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds %struct.neighbor_t, ptr %126, i64 %135
  store ptr %136, ptr %22, align 8, !tbaa !5
  %137 = load ptr, ptr %22, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %137, i64 16, i1 false), !tbaa.struct !31
  %138 = load ptr, ptr %22, align 8, !tbaa !5
  %139 = load ptr, ptr %15, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.database_entry_t, ptr %139, i32 0, i32 2
  %141 = load ptr, ptr %140, align 8, !tbaa !28
  %142 = load i32, ptr %20, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds ptr, ptr %141, i64 %143
  %145 = load ptr, ptr %144, align 8, !tbaa !5
  %146 = load i32, ptr %24, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = getelementptr inbounds %struct.neighbor_t, ptr %145, i64 %147
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %138, ptr align 4 %148, i64 16, i1 false), !tbaa.struct !31
  %149 = load ptr, ptr %15, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.database_entry_t, ptr %149, i32 0, i32 2
  %151 = load ptr, ptr %150, align 8, !tbaa !28
  %152 = load i32, ptr %20, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds ptr, ptr %151, i64 %153
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = load i32, ptr %24, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = getelementptr inbounds %struct.neighbor_t, ptr %155, i64 %157
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %158, ptr align 4 %23, i64 16, i1 false), !tbaa.struct !31
  store i32 5, ptr %25, align 4
  br label %163

159:                                              ; preds = %103
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %24, align 4, !tbaa !9
  %162 = add i32 %161, 1
  store i32 %162, ptr %24, align 4, !tbaa !9
  br label %91, !llvm.loop !33

163:                                              ; preds = %119, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %164

164:                                              ; preds = %163
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.database_entry_t, ptr %165, i32 0, i32 1
  %167 = load ptr, ptr %166, align 8, !tbaa !27
  %168 = load i32, ptr %20, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = getelementptr inbounds i32, ptr %167, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !9
  %172 = add i32 %171, -1
  store i32 %172, ptr %170, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %173

173:                                              ; preds = %242, %164
  %174 = load i32, ptr %26, align 4, !tbaa !9
  %175 = load ptr, ptr %15, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.database_entry_t, ptr %175, i32 0, i32 1
  %177 = load ptr, ptr %176, align 8, !tbaa !27
  %178 = load i32, ptr %21, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = getelementptr inbounds i32, ptr %177, i64 %179
  %181 = load i32, ptr %180, align 4, !tbaa !9
  %182 = sub i32 %181, 1
  %183 = icmp ult i32 %174, %182
  br i1 %183, label %185, label %184

184:                                              ; preds = %173
  store i32 8, ptr %25, align 4
  br label %245

185:                                              ; preds = %173
  %186 = load ptr, ptr %15, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.database_entry_t, ptr %186, i32 0, i32 2
  %188 = load ptr, ptr %187, align 8, !tbaa !28
  %189 = load i32, ptr %21, align 4, !tbaa !9
  %190 = zext i32 %189 to i64
  %191 = getelementptr inbounds ptr, ptr %188, i64 %190
  %192 = load ptr, ptr %191, align 8, !tbaa !5
  %193 = load i32, ptr %26, align 4, !tbaa !9
  %194 = zext i32 %193 to i64
  %195 = getelementptr inbounds %struct.neighbor_t, ptr %192, i64 %194
  %196 = getelementptr inbounds %struct.neighbor_t, ptr %195, i32 0, i32 0
  %197 = load i16, ptr %196, align 4, !tbaa !29
  %198 = zext i16 %197 to i32
  %199 = load i32, ptr %20, align 4, !tbaa !9
  %200 = icmp eq i32 %198, %199
  br i1 %200, label %201, label %241

201:                                              ; preds = %185
  %202 = load ptr, ptr %15, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.database_entry_t, ptr %202, i32 0, i32 2
  %204 = load ptr, ptr %203, align 8, !tbaa !28
  %205 = load i32, ptr %21, align 4, !tbaa !9
  %206 = zext i32 %205 to i64
  %207 = getelementptr inbounds ptr, ptr %204, i64 %206
  %208 = load ptr, ptr %207, align 8, !tbaa !5
  %209 = load ptr, ptr %15, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.database_entry_t, ptr %209, i32 0, i32 1
  %211 = load ptr, ptr %210, align 8, !tbaa !27
  %212 = load i32, ptr %21, align 4, !tbaa !9
  %213 = zext i32 %212 to i64
  %214 = getelementptr inbounds i32, ptr %211, i64 %213
  %215 = load i32, ptr %214, align 4, !tbaa !9
  %216 = sub i32 %215, 1
  %217 = zext i32 %216 to i64
  %218 = getelementptr inbounds %struct.neighbor_t, ptr %208, i64 %217
  store ptr %218, ptr %22, align 8, !tbaa !5
  %219 = load ptr, ptr %22, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %219, i64 16, i1 false), !tbaa.struct !31
  %220 = load ptr, ptr %22, align 8, !tbaa !5
  %221 = load ptr, ptr %15, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.database_entry_t, ptr %221, i32 0, i32 2
  %223 = load ptr, ptr %222, align 8, !tbaa !28
  %224 = load i32, ptr %21, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = getelementptr inbounds ptr, ptr %223, i64 %225
  %227 = load ptr, ptr %226, align 8, !tbaa !5
  %228 = load i32, ptr %26, align 4, !tbaa !9
  %229 = zext i32 %228 to i64
  %230 = getelementptr inbounds %struct.neighbor_t, ptr %227, i64 %229
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %220, ptr align 4 %230, i64 16, i1 false), !tbaa.struct !31
  %231 = load ptr, ptr %15, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.database_entry_t, ptr %231, i32 0, i32 2
  %233 = load ptr, ptr %232, align 8, !tbaa !28
  %234 = load i32, ptr %21, align 4, !tbaa !9
  %235 = zext i32 %234 to i64
  %236 = getelementptr inbounds ptr, ptr %233, i64 %235
  %237 = load ptr, ptr %236, align 8, !tbaa !5
  %238 = load i32, ptr %26, align 4, !tbaa !9
  %239 = zext i32 %238 to i64
  %240 = getelementptr inbounds %struct.neighbor_t, ptr %237, i64 %239
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %240, ptr align 4 %23, i64 16, i1 false), !tbaa.struct !31
  store i32 8, ptr %25, align 4
  br label %245

241:                                              ; preds = %185
  br label %242

242:                                              ; preds = %241
  %243 = load i32, ptr %26, align 4, !tbaa !9
  %244 = add i32 %243, 1
  store i32 %244, ptr %26, align 4, !tbaa !9
  br label %173, !llvm.loop !34

245:                                              ; preds = %201, %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %246

246:                                              ; preds = %245
  %247 = load ptr, ptr %15, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.database_entry_t, ptr %247, i32 0, i32 1
  %249 = load ptr, ptr %248, align 8, !tbaa !27
  %250 = load i32, ptr %21, align 4, !tbaa !9
  %251 = zext i32 %250 to i64
  %252 = getelementptr inbounds i32, ptr %249, i64 %251
  %253 = load i32, ptr %252, align 4, !tbaa !9
  %254 = add i32 %253, -1
  store i32 %254, ptr %252, align 4, !tbaa !9
  %255 = load ptr, ptr %10, align 8, !tbaa !5
  call void @reset_canonical_subgraph_template(ptr noundef %255, ptr noundef %16)
  %256 = load ptr, ptr %9, align 8, !tbaa !5
  %257 = load ptr, ptr %14, align 8, !tbaa !5
  %258 = load ptr, ptr %10, align 8, !tbaa !5
  call void @init_canonical_subgraph_isomorphisms(ptr noundef %256, ptr noundef %257, ptr noundef %258)
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 1, ptr %27, align 4, !tbaa !9
  br label %259

259:                                              ; preds = %278, %246
  %260 = load i32, ptr %27, align 4, !tbaa !9
  %261 = load ptr, ptr %15, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.database_entry_t, ptr %261, i32 0, i32 6
  %263 = load i32, ptr %262, align 4, !tbaa !16
  %264 = icmp ult i32 %260, %263
  br i1 %264, label %266, label %265

265:                                              ; preds = %259
  store i32 11, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %281

266:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 48, ptr %28) #6
  %267 = load ptr, ptr %9, align 8, !tbaa !5
  %268 = load ptr, ptr %10, align 8, !tbaa !5
  call void @find_canonical_extension(ptr dead_on_unwind writable sret(%struct.extension_t) align 8 %28, ptr noundef %267, ptr noundef %268)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %269 = load ptr, ptr %10, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.subgraph_t, ptr %269, i32 0, i32 3
  %271 = load ptr, ptr %270, align 8, !tbaa !35
  store ptr %271, ptr %29, align 8, !tbaa !5
  %272 = load ptr, ptr %10, align 8, !tbaa !5
  call void @update_canonical_subgraph_template(ptr noundef %272, ptr noundef %28)
  %273 = load ptr, ptr %9, align 8, !tbaa !5
  %274 = load ptr, ptr %14, align 8, !tbaa !5
  %275 = load ptr, ptr %10, align 8, !tbaa !5
  %276 = load ptr, ptr %29, align 8, !tbaa !5
  call void @update_canonical_subgraph_isomorphisms(ptr noundef %273, ptr noundef %274, ptr noundef %275, ptr noundef %276, i32 noundef 1)
  %277 = load ptr, ptr %29, align 8, !tbaa !5
  call void @free(ptr noundef %277) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %28) #6
  br label %278

278:                                              ; preds = %266
  %279 = load i32, ptr %27, align 4, !tbaa !9
  %280 = add i32 %279, 1
  store i32 %280, ptr %27, align 4, !tbaa !9
  br label %259, !llvm.loop !36

281:                                              ; preds = %265
  %282 = load ptr, ptr %10, align 8, !tbaa !5
  call void @calc_subgraph_hash(ptr noundef %282)
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %283 = load ptr, ptr %10, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.subgraph_t, ptr %283, i32 0, i32 9
  %285 = load i32, ptr %284, align 4, !tbaa !37
  %286 = load i32, ptr %13, align 4, !tbaa !9
  %287 = urem i32 %285, %286
  store i32 %287, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %288 = load ptr, ptr %12, align 8, !tbaa !5
  %289 = load i32, ptr %30, align 4, !tbaa !9
  %290 = zext i32 %289 to i64
  %291 = getelementptr inbounds ptr, ptr %288, i64 %290
  %292 = load ptr, ptr %291, align 8, !tbaa !5
  store ptr %292, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  store ptr null, ptr %32, align 8, !tbaa !5
  br label %293

293:                                              ; preds = %339, %281
  %294 = load ptr, ptr %31, align 8, !tbaa !5
  %295 = icmp ne ptr %294, null
  br i1 %295, label %296, label %343

296:                                              ; preds = %293
  %297 = load ptr, ptr %31, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.subgraph_t, ptr %297, i32 0, i32 9
  %299 = load i32, ptr %298, align 4, !tbaa !37
  %300 = load ptr, ptr %10, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.subgraph_t, ptr %300, i32 0, i32 9
  %302 = load i32, ptr %301, align 4, !tbaa !37
  %303 = icmp eq i32 %299, %302
  br i1 %303, label %304, label %339

304:                                              ; preds = %296
  %305 = load ptr, ptr %31, align 8, !tbaa !5
  store ptr %305, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %306

306:                                              ; preds = %330, %304
  %307 = load i32, ptr %33, align 4, !tbaa !9
  %308 = load ptr, ptr %15, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.database_entry_t, ptr %308, i32 0, i32 6
  %310 = load i32, ptr %309, align 4, !tbaa !16
  %311 = icmp ult i32 %307, %310
  br i1 %311, label %313, label %312

312:                                              ; preds = %306
  store i32 16, ptr %25, align 4
  br label %333

313:                                              ; preds = %306
  %314 = load ptr, ptr %10, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.subgraph_t, ptr %314, i32 0, i32 0
  %316 = load ptr, ptr %315, align 8, !tbaa !24
  %317 = load i32, ptr %33, align 4, !tbaa !9
  %318 = zext i32 %317 to i64
  %319 = getelementptr inbounds %struct.dfs_code_t, ptr %316, i64 %318
  %320 = load ptr, ptr %32, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.subgraph_t, ptr %320, i32 0, i32 0
  %322 = load ptr, ptr %321, align 8, !tbaa !24
  %323 = load i32, ptr %33, align 4, !tbaa !9
  %324 = zext i32 %323 to i64
  %325 = getelementptr inbounds %struct.dfs_code_t, ptr %322, i64 %324
  %326 = call i32 @code_matches(ptr noundef %319, ptr noundef %325)
  %327 = icmp ne i32 %326, 0
  br i1 %327, label %329, label %328

328:                                              ; preds = %313
  store ptr null, ptr %32, align 8, !tbaa !5
  store i32 16, ptr %25, align 4
  br label %333

329:                                              ; preds = %313
  br label %330

330:                                              ; preds = %329
  %331 = load i32, ptr %33, align 4, !tbaa !9
  %332 = add i32 %331, 1
  store i32 %332, ptr %33, align 4, !tbaa !9
  br label %306, !llvm.loop !38

333:                                              ; preds = %328, %312
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %334

334:                                              ; preds = %333
  %335 = load ptr, ptr %32, align 8, !tbaa !5
  %336 = icmp ne ptr %335, null
  br i1 %336, label %337, label %338

337:                                              ; preds = %334
  br label %343

338:                                              ; preds = %334
  br label %339

339:                                              ; preds = %338, %296
  %340 = load ptr, ptr %31, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.subgraph_t, ptr %340, i32 0, i32 20
  %342 = load ptr, ptr %341, align 8, !tbaa !39
  store ptr %342, ptr %31, align 8, !tbaa !5
  br label %293, !llvm.loop !40

343:                                              ; preds = %337, %293
  %344 = load ptr, ptr %15, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.database_entry_t, ptr %344, i32 0, i32 1
  %346 = load ptr, ptr %345, align 8, !tbaa !27
  %347 = load i32, ptr %20, align 4, !tbaa !9
  %348 = zext i32 %347 to i64
  %349 = getelementptr inbounds i32, ptr %346, i64 %348
  %350 = load i32, ptr %349, align 4, !tbaa !9
  %351 = add i32 %350, 1
  store i32 %351, ptr %349, align 4, !tbaa !9
  %352 = load ptr, ptr %15, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.database_entry_t, ptr %352, i32 0, i32 1
  %354 = load ptr, ptr %353, align 8, !tbaa !27
  %355 = load i32, ptr %21, align 4, !tbaa !9
  %356 = zext i32 %355 to i64
  %357 = getelementptr inbounds i32, ptr %354, i64 %356
  %358 = load i32, ptr %357, align 4, !tbaa !9
  %359 = add i32 %358, 1
  store i32 %359, ptr %357, align 4, !tbaa !9
  %360 = load ptr, ptr %14, align 8, !tbaa !5
  call void @clear_embedding_store(ptr noundef %360)
  %361 = load ptr, ptr %32, align 8, !tbaa !5
  store i32 1, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  ret ptr %361
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @calc_subgraph_hash(ptr noundef) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @code_matches(ptr noundef, ptr noundef) #5

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"database_t", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!13 = !{!14, !10, i64 88}
!14 = !{!"subgraph_t", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !15, i64 104, !10, i64 108, !6, i64 112}
!15 = !{!"short", !7, i64 0}
!16 = !{!17, !10, i64 36}
!17 = !{!"database_entry_t", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36}
!18 = !{!14, !15, i64 104}
!19 = !{!17, !10, i64 32}
!20 = !{!21, !15, i64 0}
!21 = !{!"dfs_code_t", !15, i64 0, !15, i64 2, !10, i64 4, !10, i64 8, !22, i64 12, !10, i64 20}
!22 = !{!"edge_label_t", !10, i64 0, !10, i64 4}
!23 = !{!21, !15, i64 2}
!24 = !{!14, !6, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!17, !6, i64 8}
!28 = !{!17, !6, i64 16}
!29 = !{!30, !15, i64 0}
!30 = !{!"neighbor_t", !15, i64 0, !22, i64 4, !10, i64 12}
!31 = !{i64 0, i64 2, !32, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9}
!32 = !{!15, !15, i64 0}
!33 = distinct !{!33, !26}
!34 = distinct !{!34, !26}
!35 = !{!14, !6, i64 24}
!36 = distinct !{!36, !26}
!37 = !{!14, !10, i64 68}
!38 = distinct !{!38, !26}
!39 = !{!14, !6, i64 112}
!40 = distinct !{!40, !26}


; 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.dfs_code_t = type { i16, i16, i32, i32, %struct.edge_label_t, i32 }
%struct.edge_label_t = type { i32, i32 }
%struct.extension_t = type { ptr, ptr, i32, %struct.dfs_code_t }
%struct.neighbor_t = type { i16, %struct.edge_label_t, i32 }

@__const.find_canonical_parent.initial_code = external hidden unnamed_addr constant %struct.dfs_code_t, align 4

; 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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @reset_canonical_subgraph_template(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @update_canonical_subgraph_template(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local void @find_canonical_extension(ptr dead_on_unwind noalias writable sret(%struct.extension_t) align 8, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @minimize_labels(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @clear_embedding_store(ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
define dso_local ptr @find_canonical_parent(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr nocapture noundef readonly %4, i32 noundef %5, ptr noundef %6) local_unnamed_addr #4 {
  %8 = alloca %struct.dfs_code_t, align 4
  %9 = alloca %struct.neighbor_t, align 4
  %10 = alloca %struct.extension_t, align 8
  %11 = load ptr, ptr %1, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 88
  %13 = load i32, ptr %12, align 8, !tbaa !11
  %14 = add i32 %13, -1
  %15 = getelementptr inbounds i8, ptr %11, i64 36
  store i32 %14, ptr %15, align 4, !tbaa !14
  %16 = getelementptr inbounds i8, ptr %0, i64 104
  %17 = load i16, ptr %16, align 8, !tbaa !16
  %18 = zext i16 %17 to i32
  %19 = add nuw nsw i32 %18, 1
  %20 = getelementptr inbounds i8, ptr %11, i64 32
  store i32 %19, ptr %20, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(24) @__const.find_canonical_parent.initial_code, i64 24, i1 false)
  store i16 0, ptr %8, align 4, !tbaa !18
  %21 = getelementptr inbounds i8, ptr %8, i64 2
  store i16 1, ptr %21, align 2, !tbaa !21
  %.not155 = icmp eq i32 %13, 0
  %.pre188 = zext i32 %3 to i64
  br i1 %.not155, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %42, %7
  %22 = load ptr, ptr %0, align 8, !tbaa !22
  %23 = getelementptr inbounds %struct.dfs_code_t, ptr %22, i64 %.pre188
  %24 = load i16, ptr %23, align 4, !tbaa !18
  %25 = getelementptr inbounds i8, ptr %23, i64 2
  %26 = load i16, ptr %25, align 2, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9)
  %27 = getelementptr inbounds i8, ptr %11, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !23
  %29 = zext i16 %24 to i64
  %30 = getelementptr inbounds i32, ptr %28, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !24
  %32 = add i32 %31, -1
  %.not156 = icmp eq i32 %32, 0
  br i1 %.not156, label %.loopexit114, label %.lr.ph136

.lr.ph136:                                        ; preds = %._crit_edge
  %33 = getelementptr inbounds i8, ptr %11, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !25
  %35 = getelementptr inbounds ptr, ptr %34, i64 %29
  %36 = load ptr, ptr %35, align 8, !tbaa !26
  %wide.trip.count = zext i32 %32 to i64
  br label %47

.lr.ph:                                           ; preds = %7, %42
  %37 = phi i32 [ %43, %42 ], [ %13, %7 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %42 ], [ 0, %7 ]
  %38 = icmp eq i64 %indvars.iv, %.pre188
  br i1 %38, label %42, label %39

39:                                               ; preds = %.lr.ph
  %40 = load ptr, ptr %0, align 8, !tbaa !22
  %41 = getelementptr inbounds %struct.dfs_code_t, ptr %40, i64 %indvars.iv
  call void @minimize_labels(ptr noundef nonnull %8, ptr noundef %41)
  %.pre = load i32, ptr %12, align 8, !tbaa !11
  br label %42

42:                                               ; preds = %.lr.ph, %39
  %43 = phi i32 [ %37, %.lr.ph ], [ %.pre, %39 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %44 = zext i32 %43 to i64
  %45 = icmp ult i64 %indvars.iv.next, %44
  br i1 %45, label %.lr.ph, label %._crit_edge, !llvm.loop !27

46:                                               ; preds = %47
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next170, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit114, label %47, !llvm.loop !29

47:                                               ; preds = %.lr.ph136, %46
  %indvars.iv169 = phi i64 [ 0, %.lr.ph136 ], [ %indvars.iv.next170, %46 ]
  %48 = getelementptr inbounds %struct.neighbor_t, ptr %36, i64 %indvars.iv169
  %49 = load i16, ptr %48, align 4, !tbaa !30
  %50 = icmp eq i16 %49, %26
  br i1 %50, label %51, label %46

51:                                               ; preds = %47
  %52 = getelementptr inbounds %struct.neighbor_t, ptr %36, i64 %wide.trip.count
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %52, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %52, ptr noundef nonnull align 4 dereferenceable(16) %48, i64 16, i1 false), !tbaa.struct !32
  %53 = load ptr, ptr %33, align 8, !tbaa !25
  %54 = getelementptr inbounds ptr, ptr %53, i64 %29
  %55 = load ptr, ptr %54, align 8, !tbaa !26
  %56 = getelementptr inbounds %struct.neighbor_t, ptr %55, i64 %indvars.iv169
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %56, ptr noundef nonnull align 4 dereferenceable(16) %9, i64 16, i1 false), !tbaa.struct !32
  %.pre180 = load ptr, ptr %27, align 8, !tbaa !23
  %.phi.trans.insert = getelementptr inbounds i32, ptr %.pre180, i64 %29
  %.pre181 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !24
  %.pre185 = add i32 %.pre181, -1
  br label %.loopexit114

.loopexit114:                                     ; preds = %46, %._crit_edge, %51
  %.pre-phi = phi i32 [ %.pre185, %51 ], [ 0, %._crit_edge ], [ %32, %46 ]
  %57 = phi ptr [ %.pre180, %51 ], [ %28, %._crit_edge ], [ %28, %46 ]
  %58 = getelementptr inbounds i32, ptr %57, i64 %29
  store i32 %.pre-phi, ptr %58, align 4, !tbaa !24
  %59 = zext i16 %26 to i64
  %60 = getelementptr inbounds i32, ptr %57, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !24
  %62 = add i32 %61, -1
  %.not157 = icmp eq i32 %62, 0
  br i1 %.not157, label %.loopexit113, label %.lr.ph139

.lr.ph139:                                        ; preds = %.loopexit114
  %63 = getelementptr inbounds i8, ptr %11, i64 16
  %64 = load ptr, ptr %63, align 8, !tbaa !25
  %65 = getelementptr inbounds ptr, ptr %64, i64 %59
  %66 = load ptr, ptr %65, align 8, !tbaa !26
  %wide.trip.count175 = zext i32 %62 to i64
  br label %68

67:                                               ; preds = %68
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %exitcond176.not = icmp eq i64 %indvars.iv.next173, %wide.trip.count175
  br i1 %exitcond176.not, label %.loopexit113, label %68, !llvm.loop !34

68:                                               ; preds = %.lr.ph139, %67
  %indvars.iv172 = phi i64 [ 0, %.lr.ph139 ], [ %indvars.iv.next173, %67 ]
  %69 = getelementptr inbounds %struct.neighbor_t, ptr %66, i64 %indvars.iv172
  %70 = load i16, ptr %69, align 4, !tbaa !30
  %71 = icmp eq i16 %70, %24
  br i1 %71, label %72, label %67

72:                                               ; preds = %68
  %73 = getelementptr inbounds %struct.neighbor_t, ptr %66, i64 %wide.trip.count175
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %73, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %73, ptr noundef nonnull align 4 dereferenceable(16) %69, i64 16, i1 false), !tbaa.struct !32
  %74 = load ptr, ptr %63, align 8, !tbaa !25
  %75 = getelementptr inbounds ptr, ptr %74, i64 %59
  %76 = load ptr, ptr %75, align 8, !tbaa !26
  %77 = getelementptr inbounds %struct.neighbor_t, ptr %76, i64 %indvars.iv172
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %77, ptr noundef nonnull align 4 dereferenceable(16) %9, i64 16, i1 false), !tbaa.struct !32
  %.pre182 = load ptr, ptr %27, align 8, !tbaa !23
  %.phi.trans.insert183 = getelementptr inbounds i32, ptr %.pre182, i64 %59
  %.pre184 = load i32, ptr %.phi.trans.insert183, align 4, !tbaa !24
  %.pre186 = add i32 %.pre184, -1
  br label %.loopexit113

.loopexit113:                                     ; preds = %67, %.loopexit114, %72
  %.pre-phi187 = phi i32 [ 0, %.loopexit114 ], [ %.pre186, %72 ], [ %62, %67 ]
  %78 = phi ptr [ %57, %.loopexit114 ], [ %.pre182, %72 ], [ %57, %67 ]
  %79 = getelementptr inbounds i32, ptr %78, i64 %59
  store i32 %.pre-phi187, ptr %79, align 4, !tbaa !24
  call void @reset_canonical_subgraph_template(ptr noundef %2, ptr noundef nonnull %8)
  call void @init_canonical_subgraph_isomorphisms(ptr noundef nonnull %1, ptr noundef %6, ptr noundef %2)
  %80 = load i32, ptr %15, align 4, !tbaa !14
  %81 = icmp ugt i32 %80, 1
  br i1 %81, label %.lr.ph143, label %._crit_edge144

.lr.ph143:                                        ; preds = %.loopexit113
  %82 = getelementptr inbounds i8, ptr %2, i64 24
  br label %88

._crit_edge144:                                   ; preds = %88, %.loopexit113
  call void @calc_subgraph_hash(ptr noundef %2)
  %83 = getelementptr inbounds i8, ptr %2, i64 68
  %84 = load i32, ptr %83, align 4, !tbaa !35
  %85 = urem i32 %84, %5
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds ptr, ptr %4, i64 %86
  %.0101149 = load ptr, ptr %87, align 8, !tbaa !26
  %.not150 = icmp eq ptr %.0101149, null
  br i1 %.not150, label %.loopexit, label %.lr.ph153

88:                                               ; preds = %.lr.ph143, %88
  %.0103141 = phi i32 [ 1, %.lr.ph143 ], [ %90, %88 ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #6
  call void @find_canonical_extension(ptr dead_on_unwind nonnull writable sret(%struct.extension_t) align 8 %10, ptr noundef nonnull %1, ptr noundef %2)
  %89 = load ptr, ptr %82, align 8, !tbaa !36
  call void @update_canonical_subgraph_template(ptr noundef %2, ptr noundef nonnull %10)
  call void @update_canonical_subgraph_isomorphisms(ptr noundef nonnull %1, ptr noundef %6, ptr noundef %2, ptr noundef %89, i32 noundef 1)
  call void @free(ptr noundef %89) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #6
  %90 = add nuw i32 %.0103141, 1
  %91 = load i32, ptr %15, align 4, !tbaa !14
  %92 = icmp ult i32 %90, %91
  br i1 %92, label %88, label %._crit_edge144, !llvm.loop !37

.lr.ph153:                                        ; preds = %._crit_edge144, %.thread
  %.0101151 = phi ptr [ %.0101, %.thread ], [ %.0101149, %._crit_edge144 ]
  %93 = getelementptr inbounds i8, ptr %.0101151, i64 68
  %94 = load i32, ptr %93, align 4, !tbaa !35
  %95 = load i32, ptr %83, align 4, !tbaa !35
  %96 = icmp eq i32 %94, %95
  br i1 %96, label %.preheader, label %.thread

.preheader:                                       ; preds = %.lr.ph153
  %97 = load i32, ptr %15, align 4, !tbaa !14
  %.not158 = icmp eq i32 %97, 0
  br i1 %.not158, label %.loopexit, label %.lr.ph146

98:                                               ; preds = %.lr.ph146
  %indvars.iv.next178 = add nuw nsw i64 %indvars.iv177, 1
  %99 = load i32, ptr %15, align 4, !tbaa !14
  %100 = zext i32 %99 to i64
  %101 = icmp ult i64 %indvars.iv.next178, %100
  br i1 %101, label %.lr.ph146, label %.loopexit, !llvm.loop !38

.lr.ph146:                                        ; preds = %.preheader, %98
  %indvars.iv177 = phi i64 [ %indvars.iv.next178, %98 ], [ 0, %.preheader ]
  %102 = load ptr, ptr %2, align 8, !tbaa !22
  %103 = getelementptr inbounds %struct.dfs_code_t, ptr %102, i64 %indvars.iv177
  %104 = load ptr, ptr %.0101151, align 8, !tbaa !22
  %105 = getelementptr inbounds %struct.dfs_code_t, ptr %104, i64 %indvars.iv177
  %106 = call i32 @code_matches(ptr noundef %103, ptr noundef %105)
  %.not108 = icmp eq i32 %106, 0
  br i1 %.not108, label %.thread, label %98

.thread:                                          ; preds = %.lr.ph146, %.lr.ph153
  %107 = getelementptr inbounds i8, ptr %.0101151, i64 112
  %.0101 = load ptr, ptr %107, align 8, !tbaa !26
  %.not = icmp eq ptr %.0101, null
  br i1 %.not, label %.loopexit, label %.lr.ph153, !llvm.loop !39

.loopexit:                                        ; preds = %.thread, %.preheader, %98, %._crit_edge144
  %.0101116 = phi ptr [ null, %._crit_edge144 ], [ %.0101151, %98 ], [ %.0101151, %.preheader ], [ null, %.thread ]
  %108 = load ptr, ptr %27, align 8, !tbaa !23
  %109 = getelementptr inbounds i32, ptr %108, i64 %29
  %110 = load i32, ptr %109, align 4, !tbaa !24
  %111 = add i32 %110, 1
  store i32 %111, ptr %109, align 4, !tbaa !24
  %112 = getelementptr inbounds i32, ptr %108, i64 %59
  %113 = load i32, ptr %112, align 4, !tbaa !24
  %114 = add i32 %113, 1
  store i32 %114, ptr %112, align 4, !tbaa !24
  call void @clear_embedding_store(ptr noundef %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  ret ptr %.0101116
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @calc_subgraph_hash(ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @code_matches(ptr noundef, ptr noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { noinline nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind 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 #5 = { 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 #6 = { 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, !7, i64 0}
!6 = !{!"database_t", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !10, i64 88}
!12 = !{!"subgraph_t", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !13, i64 104, !10, i64 108, !7, i64 112}
!13 = !{!"short", !8, i64 0}
!14 = !{!15, !10, i64 36}
!15 = !{!"database_entry_t", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36}
!16 = !{!12, !13, i64 104}
!17 = !{!15, !10, i64 32}
!18 = !{!19, !13, i64 0}
!19 = !{!"dfs_code_t", !13, i64 0, !13, i64 2, !10, i64 4, !10, i64 8, !20, i64 12, !10, i64 20}
!20 = !{!"edge_label_t", !10, i64 0, !10, i64 4}
!21 = !{!19, !13, i64 2}
!22 = !{!12, !7, i64 0}
!23 = !{!15, !7, i64 8}
!24 = !{!10, !10, i64 0}
!25 = !{!15, !7, i64 16}
!26 = !{!7, !7, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{!31, !13, i64 0}
!31 = !{!"neighbor_t", !13, i64 0, !20, i64 4, !10, i64 12}
!32 = !{i64 0, i64 2, !33, i64 4, i64 4, !24, i64 8, i64 4, !24, i64 12, i64 4, !24}
!33 = !{!13, !13, i64 0}
!34 = distinct !{!34, !28}
!35 = !{!12, !10, i64 68}
!36 = !{!12, !7, i64 24}
!37 = distinct !{!37, !28}
!38 = distinct !{!38, !28}
!39 = distinct !{!39, !28}


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