; 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.subgraph_t = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i32, ptr }
%struct.database_entry_t = type { ptr, ptr, ptr, i32, i32, i32, i32 }
%struct.database_t = type { ptr, i32, i32, i32 }
%struct.thread_data_t = type { ptr, ptr, ptr, ptr, ptr, %struct.embedding_store_t, %struct.embedding_store_t, %struct.embedding_store_t, %struct.extension_store_t, ptr, %struct.rem_edge_store_t, ptr, ptr, i32, %struct.subgraph_store_t, i32 }
%struct.embedding_store_t = type { ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32 }
%struct.extension_store_t = type { ptr, ptr, ptr, i32, i32, i32 }
%struct.rem_edge_store_t = type { ptr, ptr, ptr }
%struct.subgraph_store_t = type { ptr, ptr, i32, i32 }
%struct.extension_t = type { ptr, ptr, i32, %struct.dfs_code_t }
%struct.dfs_code_t = type { i16, i16, i32, i32, %struct.edge_label_t, i32 }
%struct.edge_label_t = type { i32, i32 }
%struct.config_t = type { i32, i32, i32, i32, i32, float, %struct.mismatch_matrix_t }
%struct.mismatch_matrix_t = type { ptr, i32 }

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #2

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

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

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

; 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) #5

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @gspan_step_helper(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %struct.subgraph_t, align 8
  %22 = alloca %struct.database_entry_t, align 8
  %23 = alloca %struct.database_t, align 8
  %24 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %25, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.thread_data_t, ptr %26, i32 0, i32 2
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  store ptr %28, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.thread_data_t, ptr %29, i32 0, i32 3
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  store ptr %31, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.thread_data_t, ptr %32, i32 0, i32 4
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  store ptr %34, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.thread_data_t, ptr %35, i32 0, i32 8
  store ptr %36, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.thread_data_t, ptr %37, i32 0, i32 5
  store ptr %38, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.thread_data_t, ptr %39, i32 0, i32 6
  store ptr %40, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.thread_data_t, ptr %41, i32 0, i32 7
  store ptr %42, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.thread_data_t, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !18
  store ptr %45, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.thread_data_t, ptr %46, i32 0, i32 14
  store ptr %47, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.thread_data_t, ptr %48, i32 0, i32 10
  store ptr %49, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store ptr null, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  br label %50

50:                                               ; preds = %194, %1
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.thread_data_t, ptr %51, i32 0, i32 1
  %53 = load ptr, ptr %52, align 8, !tbaa !20
  %54 = atomicrmw add ptr %53, i32 1 seq_cst, align 4
  store i32 %54, ptr %16, align 4, !tbaa !19
  %55 = load i32, ptr %16, align 4, !tbaa !19
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.thread_data_t, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !18
  %59 = getelementptr inbounds %struct.subgraph_store_t, ptr %58, i32 0, i32 2
  %60 = load i32, ptr %59, align 8, !tbaa !21
  %61 = icmp ult i32 %55, %60
  br i1 %61, label %62, label %195

62:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.subgraph_store_t, ptr %63, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !22
  %66 = load i32, ptr %16, align 4, !tbaa !19
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds %struct.subgraph_t, ptr %65, i64 %67
  store ptr %68, ptr %17, align 8, !tbaa !5
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load ptr, ptr %17, align 8, !tbaa !5
  call void @rightmost_path_extensions(ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72)
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = load ptr, ptr %17, align 8, !tbaa !5
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  call void @write_subgraph(ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !19
  br label %77

77:                                               ; preds = %179, %62
  %78 = load i32, ptr %18, align 4, !tbaa !19
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.extension_store_t, ptr %79, i32 0, i32 3
  %81 = load i32, ptr %80, align 8, !tbaa !23
  %82 = icmp ult i32 %78, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %77
  store i32 4, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %182

84:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.extension_store_t, ptr %85, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !24
  %88 = load i32, ptr %18, align 4, !tbaa !19
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds %struct.extension_t, ptr %87, i64 %89
  store ptr %90, ptr %20, align 8, !tbaa !5
  %91 = load ptr, ptr %20, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.extension_t, ptr %91, i32 0, i32 2
  %93 = load i32, ptr %92, align 8, !tbaa !25
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.config_t, ptr %94, i32 0, i32 2
  %96 = load i32, ptr %95, align 8, !tbaa !30
  %97 = icmp ult i32 %93, %96
  br i1 %97, label %98, label %100

98:                                               ; preds = %84
  %99 = load ptr, ptr %20, align 8, !tbaa !5
  call void @free_extension(ptr noundef %99)
  store i32 6, ptr %19, align 4
  br label %176

100:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 120, ptr %21) #7
  %101 = load ptr, ptr %17, align 8, !tbaa !5
  %102 = load ptr, ptr %20, align 8, !tbaa !5
  call void @new_subgraph_from_extension(ptr dead_on_unwind writable sret(%struct.subgraph_t) align 8 %21, ptr noundef %101, ptr noundef %102)
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #7
  call void @canonical_database_entry(ptr dead_on_unwind writable sret(%struct.database_entry_t) align 8 %22, ptr noundef %21)
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #7
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 24, i1 false)
  %103 = getelementptr inbounds %struct.database_t, ptr %23, i32 0, i32 1
  store i32 1, ptr %103, align 8, !tbaa !34
  %104 = getelementptr inbounds %struct.database_t, ptr %23, i32 0, i32 0
  store ptr %22, ptr %104, align 8, !tbaa !36
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = call i32 @is_canonical(ptr noundef %21, ptr noundef %23, ptr noundef %105)
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %109, label %108

108:                                              ; preds = %100
  call void @free_canonical_database_entry(ptr noundef %22)
  call void @free_subgraph(ptr noundef %21)
  store i32 6, ptr %19, align 4
  br label %175

109:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %110 = getelementptr inbounds %struct.subgraph_t, ptr %21, i32 0, i32 10
  %111 = load i32, ptr %110, align 8, !tbaa !37
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.config_t, ptr %112, i32 0, i32 0
  %114 = load i32, ptr %113, align 8, !tbaa !39
  %115 = icmp uge i32 %111, %114
  %116 = zext i1 %115 to i32
  store i32 %116, ptr %24, align 4, !tbaa !19
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = load ptr, ptr %17, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.subgraph_t, ptr %120, i32 0, i32 3
  %122 = load ptr, ptr %121, align 8, !tbaa !40
  %123 = load ptr, ptr %17, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.subgraph_t, ptr %123, i32 0, i32 10
  %125 = load i32, ptr %124, align 8, !tbaa !37
  call void @update_subgraph_isomorphisms(ptr noundef %117, ptr noundef %118, ptr noundef %119, ptr noundef %21, ptr noundef %122, i32 noundef %125)
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  call void @calc_subgraph_score(ptr noundef %126, ptr noundef %21)
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.subgraph_store_t, ptr %129, i32 0, i32 1
  %131 = load ptr, ptr %130, align 8, !tbaa !41
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.subgraph_store_t, ptr %132, i32 0, i32 3
  %134 = load i32, ptr %133, align 4, !tbaa !42
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = load i32, ptr %24, align 4, !tbaa !19
  %138 = call i32 @parent_check(ptr noundef %127, ptr noundef %128, ptr noundef %21, ptr noundef %23, ptr noundef %131, i32 noundef %134, ptr noundef %135, ptr noundef %136, i32 noundef %137)
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %142, label %140

140:                                              ; preds = %109
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free_subgraph_mappings(ptr noundef %141, ptr noundef %21)
  call void @free_canonical_database_entry(ptr noundef %22)
  call void @free_subgraph(ptr noundef %21)
  store i32 6, ptr %19, align 4
  br label %174

142:                                              ; preds = %109
  call void @free_canonical_database_entry(ptr noundef %22)
  call void @calc_subgraph_hash(ptr noundef %21)
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = icmp ne ptr %143, null
  br i1 %144, label %145, label %155

145:                                              ; preds = %142
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.subgraph_t, ptr %149, i32 0, i32 4
  %151 = load ptr, ptr %150, align 8, !tbaa !43
  %152 = load ptr, ptr %17, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.subgraph_t, ptr %152, i32 0, i32 16
  %154 = load i32, ptr %153, align 8, !tbaa !44
  call void @update_sig_subgraph_isomorphisms(ptr noundef %146, ptr noundef %147, ptr noundef %148, ptr noundef %21, ptr noundef %151, i32 noundef %154)
  br label %155

155:                                              ; preds = %145, %142
  %156 = load i32, ptr %14, align 4, !tbaa !19
  %157 = add i32 %156, 1
  store i32 %157, ptr %14, align 4, !tbaa !19
  %158 = load i32, ptr %14, align 4, !tbaa !19
  %159 = urem i32 %158, 100
  %160 = icmp eq i32 %159, 1
  br i1 %160, label %161, label %168

161:                                              ; preds = %155
  %162 = load ptr, ptr %15, align 8, !tbaa !5
  %163 = load i32, ptr %14, align 4, !tbaa !19
  %164 = add i32 %163, 99
  %165 = zext i32 %164 to i64
  %166 = mul i64 %165, 120
  %167 = call ptr @realloc(ptr noundef %162, i64 noundef %166) #8
  store ptr %167, ptr %15, align 8, !tbaa !5
  br label %168

168:                                              ; preds = %161, %155
  %169 = load ptr, ptr %15, align 8, !tbaa !5
  %170 = load i32, ptr %14, align 4, !tbaa !19
  %171 = sub i32 %170, 1
  %172 = zext i32 %171 to i64
  %173 = getelementptr inbounds %struct.subgraph_t, ptr %169, i64 %172
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %173, ptr align 8 %21, i64 120, i1 false), !tbaa.struct !45
  store i32 0, ptr %19, align 4
  br label %174

174:                                              ; preds = %168, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %175

175:                                              ; preds = %174, %108
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %21) #7
  br label %176

176:                                              ; preds = %175, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  %177 = load i32, ptr %19, align 4
  switch i32 %177, label %202 [
    i32 0, label %178
    i32 6, label %179
  ]

178:                                              ; preds = %176
  br label %179

179:                                              ; preds = %178, %176
  %180 = load i32, ptr %18, align 4, !tbaa !19
  %181 = add i32 %180, 1
  store i32 %181, ptr %18, align 4, !tbaa !19
  br label %77, !llvm.loop !47

182:                                              ; preds = %83
  %183 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free_subgraph_labels(ptr noundef %183)
  %184 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free_subgraph_rightmost_path(ptr noundef %184)
  %185 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free_subgraph_parents(ptr noundef %185)
  %186 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free_subgraph_parent_ids(ptr noundef %186)
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free_subgraph_mappings(ptr noundef %187, ptr noundef %188)
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = icmp ne ptr %189, null
  br i1 %190, label %191, label %194

191:                                              ; preds = %182
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free_subgraph_sig_mappings(ptr noundef %192, ptr noundef %193)
  br label %194

194:                                              ; preds = %191, %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %50, !llvm.loop !49

195:                                              ; preds = %50
  %196 = load ptr, ptr %15, align 8, !tbaa !5
  %197 = load ptr, ptr %12, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.subgraph_store_t, ptr %197, i32 0, i32 0
  store ptr %196, ptr %198, align 8, !tbaa !22
  %199 = load i32, ptr %14, align 4, !tbaa !19
  %200 = load ptr, ptr %12, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.subgraph_store_t, ptr %200, i32 0, i32 2
  store i32 %199, ptr %201, align 8, !tbaa !21
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret ptr null

202:                                              ; preds = %176
  unreachable
}

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @update_sig_subgraph_isomorphisms(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #6

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

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

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

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

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

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

!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, !6, i64 16}
!10 = !{!"thread_data_t", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !11, i64 96, !11, i64 152, !13, i64 208, !6, i64 248, !14, i64 256, !6, i64 280, !6, i64 288, !12, i64 296, !15, i64 304, !12, i64 328}
!11 = !{!"embedding_store_t", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52}
!12 = !{!"int", !7, i64 0}
!13 = !{!"extension_store_t", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32}
!14 = !{!"rem_edge_store_t", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"subgraph_store_t", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 20}
!16 = !{!10, !6, i64 24}
!17 = !{!10, !6, i64 32}
!18 = !{!10, !6, i64 0}
!19 = !{!12, !12, i64 0}
!20 = !{!10, !6, i64 8}
!21 = !{!15, !12, i64 16}
!22 = !{!15, !6, i64 0}
!23 = !{!13, !12, i64 24}
!24 = !{!13, !6, i64 0}
!25 = !{!26, !12, i64 16}
!26 = !{!"extension_t", !6, i64 0, !6, i64 8, !12, i64 16, !27, i64 20}
!27 = !{!"dfs_code_t", !28, i64 0, !28, i64 2, !12, i64 4, !12, i64 8, !29, i64 12, !12, i64 20}
!28 = !{!"short", !7, i64 0}
!29 = !{!"edge_label_t", !12, i64 0, !12, i64 4}
!30 = !{!31, !12, i64 8}
!31 = !{!"config_t", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !32, i64 20, !33, i64 24}
!32 = !{!"float", !7, i64 0}
!33 = !{!"mismatch_matrix_t", !6, i64 0, !12, i64 8}
!34 = !{!35, !12, i64 8}
!35 = !{!"database_t", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16}
!36 = !{!35, !6, i64 0}
!37 = !{!38, !12, i64 72}
!38 = !{!"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, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !28, i64 104, !12, i64 108, !6, i64 112}
!39 = !{!31, !12, i64 0}
!40 = !{!38, !6, i64 24}
!41 = !{!15, !6, i64 8}
!42 = !{!15, !12, i64 20}
!43 = !{!38, !6, i64 32}
!44 = !{!38, !12, i64 96}
!45 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5, i64 40, i64 8, !5, i64 48, i64 8, !5, i64 56, i64 8, !5, i64 64, i64 4, !19, i64 68, i64 4, !19, i64 72, i64 4, !19, i64 76, i64 4, !19, i64 80, i64 4, !19, i64 84, i64 4, !19, i64 88, i64 4, !19, i64 92, i64 4, !19, i64 96, i64 4, !19, i64 100, i64 4, !19, i64 104, i64 2, !46, i64 108, i64 4, !19, i64 112, i64 8, !5}
!46 = !{!28, !28, i64 0}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}
!49 = distinct !{!49, !48}


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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #2

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

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

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

; 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) #5

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @gspan_step_helper(ptr noundef %0) local_unnamed_addr #3 {
  %2 = alloca %struct.subgraph_t, align 8
  %3 = alloca %struct.database_entry_t, align 8
  %4 = alloca %struct.database_t, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load ptr, ptr %7, align 8, !tbaa !15
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = load ptr, ptr %9, align 8, !tbaa !16
  %11 = getelementptr inbounds i8, ptr %0, i64 208
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  %13 = getelementptr inbounds i8, ptr %0, i64 96
  %14 = getelementptr inbounds i8, ptr %0, i64 152
  %15 = load ptr, ptr %0, align 8, !tbaa !17
  %16 = getelementptr inbounds i8, ptr %0, i64 256
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !18
  %19 = atomicrmw add ptr %18, i32 1 seq_cst, align 4
  %20 = load ptr, ptr %0, align 8, !tbaa !17
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  %22 = load i32, ptr %21, align 8, !tbaa !19
  %23 = icmp ult i32 %19, %22
  br i1 %23, label %.lr.ph92, label %._crit_edge93

.lr.ph92:                                         ; preds = %1
  %24 = getelementptr inbounds i8, ptr %0, i64 232
  %25 = getelementptr inbounds i8, ptr %6, i64 8
  %26 = getelementptr inbounds i8, ptr %4, i64 8
  %27 = getelementptr inbounds i8, ptr %2, i64 72
  %28 = getelementptr inbounds i8, ptr %15, i64 8
  %29 = getelementptr inbounds i8, ptr %15, i64 20
  %.not84 = icmp eq ptr %10, null
  %30 = getelementptr inbounds i8, ptr %4, i64 8
  br label %31

31:                                               ; preds = %.lr.ph92, %85
  %32 = phi i32 [ %19, %.lr.ph92 ], [ %87, %85 ]
  %.090 = phi i32 [ 0, %.lr.ph92 ], [ %.1.lcssa, %85 ]
  %.07489 = phi ptr [ null, %.lr.ph92 ], [ %.175.lcssa, %85 ]
  %33 = load ptr, ptr %15, align 8, !tbaa !20
  %34 = zext i32 %32 to i64
  %35 = getelementptr inbounds %struct.subgraph_t, ptr %33, i64 %34
  call void @rightmost_path_extensions(ptr noundef %6, ptr noundef %8, ptr noundef nonnull %11, ptr noundef %35)
  call void @write_subgraph(ptr noundef %8, ptr noundef %10, ptr noundef %35, ptr noundef nonnull %0)
  %36 = load i32, ptr %24, align 8, !tbaa !21
  %.not96 = icmp eq i32 %36, 0
  br i1 %.not96, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %31
  %37 = getelementptr inbounds i8, ptr %35, i64 24
  %38 = getelementptr inbounds i8, ptr %35, i64 72
  %39 = getelementptr inbounds i8, ptr %35, i64 32
  %40 = getelementptr inbounds i8, ptr %35, i64 96
  br label %41

._crit_edge:                                      ; preds = %80, %31
  %.175.lcssa = phi ptr [ %.07489, %31 ], [ %.5, %80 ]
  %.1.lcssa = phi i32 [ %.090, %31 ], [ %.4, %80 ]
  call void @free_subgraph_labels(ptr noundef %35)
  call void @free_subgraph_rightmost_path(ptr noundef %35)
  call void @free_subgraph_parents(ptr noundef %35)
  call void @free_subgraph_parent_ids(ptr noundef %35)
  call void @free_subgraph_mappings(ptr noundef nonnull %12, ptr noundef %35)
  br i1 %.not84, label %85, label %84

41:                                               ; preds = %.lr.ph, %80
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %80 ]
  %.187 = phi i32 [ %.090, %.lr.ph ], [ %.4, %80 ]
  %.17586 = phi ptr [ %.07489, %.lr.ph ], [ %.5, %80 ]
  %42 = load ptr, ptr %11, align 8, !tbaa !22
  %43 = getelementptr inbounds %struct.extension_t, ptr %42, i64 %indvars.iv
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %45 = load i32, ptr %44, align 8, !tbaa !23
  %46 = load i32, ptr %25, align 8, !tbaa !28
  %47 = icmp ult i32 %45, %46
  br i1 %47, label %48, label %49

48:                                               ; preds = %41
  call void @free_extension(ptr noundef nonnull %43)
  br label %80

49:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %2) #7
  call void @new_subgraph_from_extension(ptr dead_on_unwind nonnull writable sret(%struct.subgraph_t) align 8 %2, ptr noundef %35, ptr noundef nonnull %43)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #7
  call void @canonical_database_entry(ptr dead_on_unwind nonnull writable sret(%struct.database_entry_t) align 8 %3, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %30, i8 0, i64 16, i1 false)
  store i32 1, ptr %26, align 8, !tbaa !32
  store ptr %3, ptr %4, align 8, !tbaa !34
  %50 = call i32 @is_canonical(ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %14)
  %.not82 = icmp eq i32 %50, 0
  br i1 %.not82, label %51, label %52

51:                                               ; preds = %49
  call void @free_canonical_database_entry(ptr noundef nonnull %3)
  call void @free_subgraph(ptr noundef nonnull %2)
  br label %79

52:                                               ; preds = %49
  %53 = load i32, ptr %27, align 8, !tbaa !35
  %54 = load i32, ptr %6, align 8, !tbaa !37
  %55 = icmp uge i32 %53, %54
  %56 = zext i1 %55 to i32
  %57 = load ptr, ptr %37, align 8, !tbaa !38
  %58 = load i32, ptr %38, align 8, !tbaa !35
  call void @update_subgraph_isomorphisms(ptr noundef nonnull %6, ptr noundef %8, ptr noundef nonnull %12, ptr noundef nonnull %2, ptr noundef %57, i32 noundef %58)
  call void @calc_subgraph_score(ptr noundef nonnull %6, ptr noundef nonnull %2)
  %59 = load ptr, ptr %28, align 8, !tbaa !39
  %60 = load i32, ptr %29, align 4, !tbaa !40
  %61 = call i32 @parent_check(ptr noundef nonnull %6, ptr noundef %8, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef %59, i32 noundef %60, ptr noundef nonnull %14, ptr noundef nonnull %16, i32 noundef %56)
  %.not83 = icmp eq i32 %61, 0
  br i1 %.not83, label %62, label %63

62:                                               ; preds = %52
  call void @free_subgraph_mappings(ptr noundef nonnull %12, ptr noundef nonnull %2)
  call void @free_canonical_database_entry(ptr noundef nonnull %3)
  call void @free_subgraph(ptr noundef nonnull %2)
  br label %79

63:                                               ; preds = %52
  call void @free_canonical_database_entry(ptr noundef nonnull %3)
  call void @calc_subgraph_hash(ptr noundef nonnull %2)
  br i1 %.not84, label %67, label %64

64:                                               ; preds = %63
  %65 = load ptr, ptr %39, align 8, !tbaa !41
  %66 = load i32, ptr %40, align 8, !tbaa !42
  call void @update_sig_subgraph_isomorphisms(ptr noundef nonnull %6, ptr noundef nonnull %10, ptr noundef nonnull %13, ptr noundef nonnull %2, ptr noundef %65, i32 noundef %66)
  br label %67

67:                                               ; preds = %64, %63
  %68 = add i32 %.187, 1
  %69 = urem i32 %68, 100
  %70 = icmp eq i32 %69, 1
  br i1 %70, label %71, label %76

71:                                               ; preds = %67
  %72 = add i32 %.187, 100
  %73 = zext i32 %72 to i64
  %74 = mul nuw nsw i64 %73, 120
  %75 = call ptr @realloc(ptr noundef %.17586, i64 noundef %74) #8
  br label %76

76:                                               ; preds = %71, %67
  %.276 = phi ptr [ %75, %71 ], [ %.17586, %67 ]
  %77 = zext i32 %.187 to i64
  %78 = getelementptr inbounds %struct.subgraph_t, ptr %.276, i64 %77
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %78, ptr noundef nonnull align 8 dereferenceable(120) %2, i64 120, i1 false), !tbaa.struct !43
  br label %79

79:                                               ; preds = %62, %76, %51
  %.478 = phi ptr [ %.17586, %51 ], [ %.276, %76 ], [ %.17586, %62 ]
  %.3 = phi i32 [ %.187, %51 ], [ %68, %76 ], [ %.187, %62 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %2) #7
  br label %80

80:                                               ; preds = %79, %48
  %.5 = phi ptr [ %.17586, %48 ], [ %.478, %79 ]
  %.4 = phi i32 [ %.187, %48 ], [ %.3, %79 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %81 = load i32, ptr %24, align 8, !tbaa !21
  %82 = zext i32 %81 to i64
  %83 = icmp ult i64 %indvars.iv.next, %82
  br i1 %83, label %41, label %._crit_edge, !llvm.loop !47

84:                                               ; preds = %._crit_edge
  call void @free_subgraph_sig_mappings(ptr noundef nonnull %13, ptr noundef %35)
  br label %85

85:                                               ; preds = %84, %._crit_edge
  %86 = load ptr, ptr %17, align 8, !tbaa !18
  %87 = atomicrmw add ptr %86, i32 1 seq_cst, align 4
  %88 = load ptr, ptr %0, align 8, !tbaa !17
  %89 = getelementptr inbounds i8, ptr %88, i64 16
  %90 = load i32, ptr %89, align 8, !tbaa !19
  %91 = icmp ult i32 %87, %90
  br i1 %91, label %31, label %._crit_edge93, !llvm.loop !49

._crit_edge93:                                    ; preds = %85, %1
  %.074.lcssa = phi ptr [ null, %1 ], [ %.175.lcssa, %85 ]
  %.0.lcssa = phi i32 [ 0, %1 ], [ %.1.lcssa, %85 ]
  %92 = getelementptr inbounds i8, ptr %0, i64 304
  store ptr %.074.lcssa, ptr %92, align 8, !tbaa !20
  %93 = getelementptr inbounds i8, ptr %0, i64 320
  store i32 %.0.lcssa, ptr %93, align 8, !tbaa !19
  ret ptr null
}

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @update_sig_subgraph_isomorphisms(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 #3 = { 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 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(1) }

!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 16}
!6 = !{!"thread_data_t", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !10, i64 96, !10, i64 152, !12, i64 208, !7, i64 248, !13, i64 256, !7, i64 280, !7, i64 288, !11, i64 296, !14, i64 304, !11, i64 328}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"embedding_store_t", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52}
!11 = !{!"int", !8, i64 0}
!12 = !{!"extension_store_t", !7, i64 0, !7, i64 8, !7, i64 16, !11, i64 24, !11, i64 28, !11, i64 32}
!13 = !{!"rem_edge_store_t", !7, i64 0, !7, i64 8, !7, i64 16}
!14 = !{!"subgraph_store_t", !7, i64 0, !7, i64 8, !11, i64 16, !11, i64 20}
!15 = !{!6, !7, i64 24}
!16 = !{!6, !7, i64 32}
!17 = !{!6, !7, i64 0}
!18 = !{!6, !7, i64 8}
!19 = !{!14, !11, i64 16}
!20 = !{!14, !7, i64 0}
!21 = !{!12, !11, i64 24}
!22 = !{!12, !7, i64 0}
!23 = !{!24, !11, i64 16}
!24 = !{!"extension_t", !7, i64 0, !7, i64 8, !11, i64 16, !25, i64 20}
!25 = !{!"dfs_code_t", !26, i64 0, !26, i64 2, !11, i64 4, !11, i64 8, !27, i64 12, !11, i64 20}
!26 = !{!"short", !8, i64 0}
!27 = !{!"edge_label_t", !11, i64 0, !11, i64 4}
!28 = !{!29, !11, i64 8}
!29 = !{!"config_t", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !30, i64 20, !31, i64 24}
!30 = !{!"float", !8, i64 0}
!31 = !{!"mismatch_matrix_t", !7, i64 0, !11, i64 8}
!32 = !{!33, !11, i64 8}
!33 = !{!"database_t", !7, i64 0, !11, i64 8, !11, i64 12, !11, i64 16}
!34 = !{!33, !7, i64 0}
!35 = !{!36, !11, i64 72}
!36 = !{!"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, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !26, i64 104, !11, i64 108, !7, i64 112}
!37 = !{!29, !11, i64 0}
!38 = !{!36, !7, i64 24}
!39 = !{!14, !7, i64 8}
!40 = !{!14, !11, i64 20}
!41 = !{!36, !7, i64 32}
!42 = !{!36, !11, i64 96}
!43 = !{i64 0, i64 8, !44, i64 8, i64 8, !44, i64 16, i64 8, !44, i64 24, i64 8, !44, i64 32, i64 8, !44, i64 40, i64 8, !44, i64 48, i64 8, !44, i64 56, i64 8, !44, i64 64, i64 4, !45, i64 68, i64 4, !45, i64 72, i64 4, !45, i64 76, i64 4, !45, i64 80, i64 4, !45, i64 84, i64 4, !45, i64 88, i64 4, !45, i64 92, i64 4, !45, i64 96, i64 4, !45, i64 100, i64 4, !45, i64 104, i64 2, !46, i64 108, i64 4, !45, i64 112, i64 8, !44}
!44 = !{!7, !7, i64 0}
!45 = !{!11, !11, i64 0}
!46 = !{!26, !26, i64 0}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}
!49 = distinct !{!49, !48}


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