; 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.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.output_t = type { ptr, i32, i64, i64, i64, ptr, i32, %union.pthread_mutex_t, i32, i32, i32, i32 }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%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_t = type { ptr, i32, i32, i32 }
%struct.db_mapping_t = type { ptr, i32, i16, i32 }
%struct.database_entry_t = type { ptr, ptr, ptr, i32, i32, i32, i32 }
%struct.mapping_t = type { ptr, ptr, i32, %struct.mapping_info_t }
%struct.mapping_info_t = type { i32, float }
%struct.dfs_code_t = type { i16, i16, i32, i32, %struct.edge_label_t, i32 }
%struct.edge_label_t = type { i32, i32 }

@.str.16 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [4 x i8], align 1

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @map(ptr noundef, ptr noundef, i16 noundef zeroext) #3

; Function Attrs: nounwind uwtable
define dso_local void @write_subgraph(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #4 {
  %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 i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca [4096 x i8], align 16
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i16, align 2
  %30 = alloca i16, align 2
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.thread_data_t, ptr %34, i32 0, i32 11
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  store ptr %36, ptr %9, align 8, !tbaa !5
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.output_t, ptr %37, i32 0, i32 1
  %39 = load i32, ptr %38, align 8, !tbaa !16
  %40 = icmp eq i32 %39, -1
  br i1 %40, label %41, label %42

41:                                               ; preds = %4
  store i32 1, ptr %10, align 4
  br label %423

42:                                               ; preds = %4
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.subgraph_t, ptr %43, i32 0, i32 14
  %45 = load i32, ptr %44, align 8, !tbaa !19
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.output_t, ptr %46, i32 0, i32 8
  %48 = load i32, ptr %47, align 8, !tbaa !22
  %49 = icmp ult i32 %45, %48
  br i1 %49, label %50, label %51

50:                                               ; preds = %42
  store i32 1, ptr %10, align 4
  br label %423

51:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 16384, ptr %12, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %52 = load i32, ptr %12, align 4, !tbaa !23
  %53 = zext i32 %52 to i64
  %54 = call noalias ptr @malloc(i64 noundef %53) #6
  store ptr %54, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4096, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %55 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  store ptr %55, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !23
  %56 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.subgraph_t, ptr %57, i32 0, i32 8
  %59 = load i32, ptr %58, align 8, !tbaa !24
  %60 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %56, ptr noundef @.str.16, i32 noundef %59) #5
  store i32 %60, ptr %16, align 4, !tbaa !23
  %61 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %62 = load i32, ptr %16, align 4, !tbaa !23
  call void @write_thread_buffer(ptr noundef %13, ptr noundef %11, ptr noundef %12, ptr noundef %61, i32 noundef %62)
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.subgraph_t, ptr %63, i32 0, i32 15
  %65 = load i32, ptr %64, align 4, !tbaa !25
  %66 = icmp ugt i32 %65, 0
  br i1 %66, label %67, label %111

67:                                               ; preds = %51
  %68 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %69 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %68, ptr noundef @.str.17) #5
  store i32 %69, ptr %16, align 4, !tbaa !23
  %70 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %71 = load i32, ptr %16, align 4, !tbaa !23
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds i8, ptr %70, i64 %72
  store ptr %73, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !23
  br label %74

74:                                               ; preds = %97, %67
  %75 = load i32, ptr %17, align 4, !tbaa !23
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.subgraph_t, ptr %76, i32 0, i32 15
  %78 = load i32, ptr %77, align 4, !tbaa !25
  %79 = icmp ult i32 %75, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %74
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %100

81:                                               ; preds = %74
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.subgraph_t, ptr %83, i32 0, i32 7
  %85 = load ptr, ptr %84, align 8, !tbaa !26
  %86 = load i32, ptr %17, align 4, !tbaa !23
  %87 = zext i32 %86 to i64
  %88 = getelementptr inbounds i32, ptr %85, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !23
  %90 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %82, ptr noundef @.str.18, i32 noundef %89) #5
  %91 = load i32, ptr %16, align 4, !tbaa !23
  %92 = add i32 %91, %90
  store i32 %92, ptr %16, align 4, !tbaa !23
  %93 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %94 = load i32, ptr %16, align 4, !tbaa !23
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds i8, ptr %93, i64 %95
  store ptr %96, ptr %15, align 8, !tbaa !5
  br label %97

97:                                               ; preds = %81
  %98 = load i32, ptr %17, align 4, !tbaa !23
  %99 = add i32 %98, 1
  store i32 %99, ptr %17, align 4, !tbaa !23
  br label %74, !llvm.loop !27

100:                                              ; preds = %80
  %101 = load ptr, ptr %15, align 8, !tbaa !5
  %102 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %101, ptr noundef @.str.19) #5
  %103 = load i32, ptr %16, align 4, !tbaa !23
  %104 = add i32 %103, %102
  store i32 %104, ptr %16, align 4, !tbaa !23
  %105 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %106 = load i32, ptr %16, align 4, !tbaa !23
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds i8, ptr %105, i64 %107
  store ptr %108, ptr %15, align 8, !tbaa !5
  %109 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %110 = load i32, ptr %16, align 4, !tbaa !23
  call void @write_thread_buffer(ptr noundef %13, ptr noundef %11, ptr noundef %12, ptr noundef %109, i32 noundef %110)
  br label %111

111:                                              ; preds = %100, %51
  %112 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.subgraph_t, ptr %113, i32 0, i32 19
  %115 = load i32, ptr %114, align 4, !tbaa !29
  %116 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %112, ptr noundef @.str.20, i32 noundef %115) #5
  store i32 %116, ptr %16, align 4, !tbaa !23
  %117 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %118 = load i32, ptr %16, align 4, !tbaa !23
  call void @write_thread_buffer(ptr noundef %13, ptr noundef %11, ptr noundef %12, ptr noundef %117, i32 noundef %118)
  %119 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.subgraph_t, ptr %120, i32 0, i32 11
  %122 = load i32, ptr %121, align 4, !tbaa !30
  %123 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %119, ptr noundef @.str.21, i32 noundef %122) #5
  store i32 %123, ptr %16, align 4, !tbaa !23
  %124 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %125 = load i32, ptr %16, align 4, !tbaa !23
  call void @write_thread_buffer(ptr noundef %13, ptr noundef %11, ptr noundef %12, ptr noundef %124, i32 noundef %125)
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %155

128:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.database_t, ptr %129, i32 0, i32 1
  %131 = load i32, ptr %130, align 8, !tbaa !31
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.database_t, ptr %132, i32 0, i32 2
  %134 = load i32, ptr %133, align 4, !tbaa !33
  %135 = sub i32 %131, %134
  store i32 %135, ptr %18, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.subgraph_t, ptr %136, i32 0, i32 16
  %138 = load i32, ptr %137, align 8, !tbaa !34
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.subgraph_t, ptr %139, i32 0, i32 17
  %141 = load i32, ptr %140, align 4, !tbaa !35
  %142 = sub i32 %138, %141
  store i32 %142, ptr %19, align 4, !tbaa !23
  %143 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.subgraph_t, ptr %144, i32 0, i32 17
  %146 = load i32, ptr %145, align 4, !tbaa !35
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.database_t, ptr %147, i32 0, i32 2
  %149 = load i32, ptr %148, align 4, !tbaa !33
  %150 = load i32, ptr %19, align 4, !tbaa !23
  %151 = load i32, ptr %18, align 4, !tbaa !23
  %152 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %143, ptr noundef @.str.22, i32 noundef %146, i32 noundef %149, i32 noundef %150, i32 noundef %151) #5
  store i32 %152, ptr %16, align 4, !tbaa !23
  %153 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %154 = load i32, ptr %16, align 4, !tbaa !23
  call void @write_thread_buffer(ptr noundef %13, ptr noundef %11, ptr noundef %12, ptr noundef %153, i32 noundef %154)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %155

155:                                              ; preds = %128, %111
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.subgraph_t, ptr %156, i32 0, i32 18
  %158 = load i16, ptr %157, align 8, !tbaa !36
  %159 = zext i16 %158 to i32
  %160 = add nsw i32 %159, 1
  %161 = sext i32 %160 to i64
  %162 = mul i64 %161, 4
  %163 = call noalias ptr @malloc(i64 noundef %162) #6
  store ptr %163, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !23
  br label %164

164:                                              ; preds = %280, %155
  %165 = load i32, ptr %21, align 4, !tbaa !23
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.subgraph_t, ptr %166, i32 0, i32 10
  %168 = load i32, ptr %167, align 8, !tbaa !37
  %169 = icmp ult i32 %165, %168
  br i1 %169, label %171, label %170

170:                                              ; preds = %164
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %283

171:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.subgraph_t, ptr %172, i32 0, i32 3
  %174 = load ptr, ptr %173, align 8, !tbaa !38
  %175 = load i32, ptr %21, align 4, !tbaa !23
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds %struct.db_mapping_t, ptr %174, i64 %176
  store ptr %177, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.database_t, ptr %178, i32 0, i32 0
  %180 = load ptr, ptr %179, align 8, !tbaa !39
  %181 = load ptr, ptr %22, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.db_mapping_t, ptr %181, i32 0, i32 1
  %183 = load i32, ptr %182, align 8, !tbaa !40
  %184 = zext i32 %183 to i64
  %185 = getelementptr inbounds %struct.database_entry_t, ptr %180, i64 %184
  %186 = getelementptr inbounds %struct.database_entry_t, ptr %185, i32 0, i32 3
  %187 = load i32, ptr %186, align 8, !tbaa !42
  store i32 %187, ptr %23, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %188 = load ptr, ptr %22, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.db_mapping_t, ptr %188, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8, !tbaa !44
  store ptr %190, ptr %24, align 8, !tbaa !5
  br label %191

191:                                              ; preds = %275, %171
  %192 = load ptr, ptr %24, align 8, !tbaa !5
  %193 = icmp ne ptr %192, null
  br i1 %193, label %195, label %194

194:                                              ; preds = %191
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %279

195:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %196 = load ptr, ptr %24, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.mapping_t, ptr %196, i32 0, i32 1
  %198 = load ptr, ptr %197, align 8, !tbaa !45
  store ptr %198, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %199 = load ptr, ptr %24, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.mapping_t, ptr %199, i32 0, i32 3
  store ptr %200, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %201 = load ptr, ptr %26, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.mapping_info_t, ptr %201, i32 0, i32 0
  %203 = load i32, ptr %202, align 4, !tbaa !49
  store i32 %203, ptr %27, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %204 = load ptr, ptr %24, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.mapping_t, ptr %204, i32 0, i32 2
  %206 = load i32, ptr %205, align 8, !tbaa !50
  store i32 %206, ptr %28, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 2, ptr %29) #5
  %207 = load ptr, ptr %22, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.db_mapping_t, ptr %207, i32 0, i32 2
  %209 = load i16, ptr %208, align 4, !tbaa !51
  %210 = zext i16 %209 to i32
  %211 = add nsw i32 %210, 1
  %212 = trunc i32 %211 to i16
  store i16 %212, ptr %29, align 2, !tbaa !52
  br label %213

213:                                              ; preds = %219, %195
  %214 = load i16, ptr %29, align 2, !tbaa !52
  %215 = add i16 %214, -1
  store i16 %215, ptr %29, align 2, !tbaa !52
  %216 = zext i16 %214 to i32
  %217 = icmp sgt i32 %216, 0
  br i1 %217, label %219, label %218

218:                                              ; preds = %213
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %29) #5
  br label %228

219:                                              ; preds = %213
  %220 = load ptr, ptr %22, align 8, !tbaa !5
  %221 = load ptr, ptr %25, align 8, !tbaa !5
  %222 = load i16, ptr %29, align 2, !tbaa !52
  %223 = call i32 @map(ptr noundef %220, ptr noundef %221, i16 noundef zeroext %222)
  %224 = load ptr, ptr %20, align 8, !tbaa !5
  %225 = load i16, ptr %29, align 2, !tbaa !52
  %226 = zext i16 %225 to i64
  %227 = getelementptr inbounds i32, ptr %224, i64 %226
  store i32 %223, ptr %227, align 4, !tbaa !23
  br label %213, !llvm.loop !53

228:                                              ; preds = %218
  %229 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %230 = load i32, ptr %23, align 4, !tbaa !23
  %231 = load i32, ptr %28, align 4, !tbaa !23
  %232 = load i32, ptr %27, align 4, !tbaa !23
  %233 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %229, ptr noundef @.str.23, i32 noundef %230, i32 noundef %231, i32 noundef %232) #5
  store i32 %233, ptr %16, align 4, !tbaa !23
  %234 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %235 = load i32, ptr %16, align 4, !tbaa !23
  %236 = zext i32 %235 to i64
  %237 = getelementptr inbounds i8, ptr %234, i64 %236
  store ptr %237, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %30) #5
  store i16 0, ptr %30, align 2, !tbaa !52
  br label %238

238:                                              ; preds = %261, %228
  %239 = load i16, ptr %30, align 2, !tbaa !52
  %240 = zext i16 %239 to i32
  %241 = load ptr, ptr %22, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.db_mapping_t, ptr %241, i32 0, i32 2
  %243 = load i16, ptr %242, align 4, !tbaa !51
  %244 = zext i16 %243 to i32
  %245 = icmp sle i32 %240, %244
  br i1 %245, label %247, label %246

246:                                              ; preds = %238
  store i32 13, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %30) #5
  br label %264

247:                                              ; preds = %238
  %248 = load ptr, ptr %15, align 8, !tbaa !5
  %249 = load ptr, ptr %20, align 8, !tbaa !5
  %250 = load i16, ptr %30, align 2, !tbaa !52
  %251 = zext i16 %250 to i64
  %252 = getelementptr inbounds i32, ptr %249, i64 %251
  %253 = load i32, ptr %252, align 4, !tbaa !23
  %254 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %248, ptr noundef @.str.18, i32 noundef %253) #5
  %255 = load i32, ptr %16, align 4, !tbaa !23
  %256 = add i32 %255, %254
  store i32 %256, ptr %16, align 4, !tbaa !23
  %257 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %258 = load i32, ptr %16, align 4, !tbaa !23
  %259 = zext i32 %258 to i64
  %260 = getelementptr inbounds i8, ptr %257, i64 %259
  store ptr %260, ptr %15, align 8, !tbaa !5
  br label %261

261:                                              ; preds = %247
  %262 = load i16, ptr %30, align 2, !tbaa !52
  %263 = add i16 %262, 1
  store i16 %263, ptr %30, align 2, !tbaa !52
  br label %238, !llvm.loop !54

264:                                              ; preds = %246
  %265 = load ptr, ptr %15, align 8, !tbaa !5
  %266 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %265, ptr noundef @.str.19) #5
  %267 = load i32, ptr %16, align 4, !tbaa !23
  %268 = add i32 %267, %266
  store i32 %268, ptr %16, align 4, !tbaa !23
  %269 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %270 = load i32, ptr %16, align 4, !tbaa !23
  %271 = zext i32 %270 to i64
  %272 = getelementptr inbounds i8, ptr %269, i64 %271
  store ptr %272, ptr %15, align 8, !tbaa !5
  %273 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %274 = load i32, ptr %16, align 4, !tbaa !23
  call void @write_thread_buffer(ptr noundef %13, ptr noundef %11, ptr noundef %12, ptr noundef %273, i32 noundef %274)
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %275

275:                                              ; preds = %264
  %276 = load ptr, ptr %24, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.mapping_t, ptr %276, i32 0, i32 0
  %278 = load ptr, ptr %277, align 8, !tbaa !55
  store ptr %278, ptr %24, align 8, !tbaa !5
  br label %191, !llvm.loop !56

279:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %280

280:                                              ; preds = %279
  %281 = load i32, ptr %21, align 4, !tbaa !23
  %282 = add i32 %281, 1
  store i32 %282, ptr %21, align 4, !tbaa !23
  br label %164, !llvm.loop !57

283:                                              ; preds = %170
  %284 = load ptr, ptr %20, align 8, !tbaa !5
  call void @free(ptr noundef %284) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  %285 = load ptr, ptr %7, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.subgraph_t, ptr %285, i32 0, i32 18
  %287 = load i16, ptr %286, align 8, !tbaa !36
  %288 = zext i16 %287 to i32
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %31, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  store i32 0, ptr %32, align 4, !tbaa !23
  br label %290

290:                                              ; preds = %308, %283
  %291 = load i32, ptr %32, align 4, !tbaa !23
  %292 = load i32, ptr %31, align 4, !tbaa !23
  %293 = icmp ult i32 %291, %292
  br i1 %293, label %295, label %294

294:                                              ; preds = %290
  store i32 16, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  br label %311

295:                                              ; preds = %290
  %296 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %297 = load i32, ptr %32, align 4, !tbaa !23
  %298 = load ptr, ptr %7, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.subgraph_t, ptr %298, i32 0, i32 1
  %300 = load ptr, ptr %299, align 8, !tbaa !58
  %301 = load i32, ptr %32, align 4, !tbaa !23
  %302 = zext i32 %301 to i64
  %303 = getelementptr inbounds i32, ptr %300, i64 %302
  %304 = load i32, ptr %303, align 4, !tbaa !23
  %305 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %296, ptr noundef @.str.24, i32 noundef %297, i32 noundef %304) #5
  store i32 %305, ptr %16, align 4, !tbaa !23
  %306 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %307 = load i32, ptr %16, align 4, !tbaa !23
  call void @write_thread_buffer(ptr noundef %13, ptr noundef %11, ptr noundef %12, ptr noundef %306, i32 noundef %307)
  br label %308

308:                                              ; preds = %295
  %309 = load i32, ptr %32, align 4, !tbaa !23
  %310 = add i32 %309, 1
  store i32 %310, ptr %32, align 4, !tbaa !23
  br label %290, !llvm.loop !59

311:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  store i32 0, ptr %33, align 4, !tbaa !23
  br label %312

312:                                              ; preds = %408, %311
  %313 = load i32, ptr %33, align 4, !tbaa !23
  %314 = load ptr, ptr %7, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.subgraph_t, ptr %314, i32 0, i32 14
  %316 = load i32, ptr %315, align 8, !tbaa !19
  %317 = icmp ult i32 %313, %316
  br i1 %317, label %319, label %318

318:                                              ; preds = %312
  store i32 19, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  br label %411

319:                                              ; preds = %312
  %320 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %321 = load ptr, ptr %7, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.subgraph_t, ptr %321, i32 0, i32 0
  %323 = load ptr, ptr %322, align 8, !tbaa !60
  %324 = load i32, ptr %33, align 4, !tbaa !23
  %325 = zext i32 %324 to i64
  %326 = getelementptr inbounds %struct.dfs_code_t, ptr %323, i64 %325
  %327 = getelementptr inbounds %struct.dfs_code_t, ptr %326, i32 0, i32 0
  %328 = load i16, ptr %327, align 4, !tbaa !61
  %329 = zext i16 %328 to i32
  %330 = load ptr, ptr %7, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.subgraph_t, ptr %330, i32 0, i32 0
  %332 = load ptr, ptr %331, align 8, !tbaa !60
  %333 = load i32, ptr %33, align 4, !tbaa !23
  %334 = zext i32 %333 to i64
  %335 = getelementptr inbounds %struct.dfs_code_t, ptr %332, i64 %334
  %336 = getelementptr inbounds %struct.dfs_code_t, ptr %335, i32 0, i32 1
  %337 = load i16, ptr %336, align 2, !tbaa !64
  %338 = zext i16 %337 to i32
  %339 = load ptr, ptr %7, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.subgraph_t, ptr %339, i32 0, i32 0
  %341 = load ptr, ptr %340, align 8, !tbaa !60
  %342 = load i32, ptr %33, align 4, !tbaa !23
  %343 = zext i32 %342 to i64
  %344 = getelementptr inbounds %struct.dfs_code_t, ptr %341, i64 %343
  %345 = getelementptr inbounds %struct.dfs_code_t, ptr %344, i32 0, i32 4
  %346 = getelementptr inbounds %struct.edge_label_t, ptr %345, i32 0, i32 0
  %347 = load i32, ptr %346, align 4, !tbaa !65
  %348 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %320, ptr noundef @.str.25, i32 noundef %329, i32 noundef %338, i32 noundef %347) #5
  store i32 %348, ptr %16, align 4, !tbaa !23
  %349 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %350 = load i32, ptr %16, align 4, !tbaa !23
  %351 = zext i32 %350 to i64
  %352 = getelementptr inbounds i8, ptr %349, i64 %351
  store ptr %352, ptr %15, align 8, !tbaa !5
  %353 = load ptr, ptr %9, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.output_t, ptr %353, i32 0, i32 10
  %355 = load i32, ptr %354, align 8, !tbaa !66
  %356 = icmp ne i32 %355, 0
  br i1 %356, label %357, label %375

357:                                              ; preds = %319
  %358 = load ptr, ptr %15, align 8, !tbaa !5
  %359 = load ptr, ptr %7, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.subgraph_t, ptr %359, i32 0, i32 0
  %361 = load ptr, ptr %360, align 8, !tbaa !60
  %362 = load i32, ptr %33, align 4, !tbaa !23
  %363 = zext i32 %362 to i64
  %364 = getelementptr inbounds %struct.dfs_code_t, ptr %361, i64 %363
  %365 = getelementptr inbounds %struct.dfs_code_t, ptr %364, i32 0, i32 4
  %366 = getelementptr inbounds %struct.edge_label_t, ptr %365, i32 0, i32 1
  %367 = load i32, ptr %366, align 4, !tbaa !67
  %368 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %358, ptr noundef @.str.26, i32 noundef %367) #5
  %369 = load i32, ptr %16, align 4, !tbaa !23
  %370 = add i32 %369, %368
  store i32 %370, ptr %16, align 4, !tbaa !23
  %371 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %372 = load i32, ptr %16, align 4, !tbaa !23
  %373 = zext i32 %372 to i64
  %374 = getelementptr inbounds i8, ptr %371, i64 %373
  store ptr %374, ptr %15, align 8, !tbaa !5
  br label %375

375:                                              ; preds = %357, %319
  %376 = load ptr, ptr %9, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.output_t, ptr %376, i32 0, i32 11
  %378 = load i32, ptr %377, align 4, !tbaa !68
  %379 = icmp ne i32 %378, 0
  br i1 %379, label %380, label %397

380:                                              ; preds = %375
  %381 = load ptr, ptr %15, align 8, !tbaa !5
  %382 = load ptr, ptr %7, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.subgraph_t, ptr %382, i32 0, i32 0
  %384 = load ptr, ptr %383, align 8, !tbaa !60
  %385 = load i32, ptr %33, align 4, !tbaa !23
  %386 = zext i32 %385 to i64
  %387 = getelementptr inbounds %struct.dfs_code_t, ptr %384, i64 %386
  %388 = getelementptr inbounds %struct.dfs_code_t, ptr %387, i32 0, i32 5
  %389 = load i32, ptr %388, align 4, !tbaa !69
  %390 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %381, ptr noundef @.str.26, i32 noundef %389) #5
  %391 = load i32, ptr %16, align 4, !tbaa !23
  %392 = add i32 %391, %390
  store i32 %392, ptr %16, align 4, !tbaa !23
  %393 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %394 = load i32, ptr %16, align 4, !tbaa !23
  %395 = zext i32 %394 to i64
  %396 = getelementptr inbounds i8, ptr %393, i64 %395
  store ptr %396, ptr %15, align 8, !tbaa !5
  br label %397

397:                                              ; preds = %380, %375
  %398 = load ptr, ptr %15, align 8, !tbaa !5
  %399 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %398, ptr noundef @.str.19) #5
  %400 = load i32, ptr %16, align 4, !tbaa !23
  %401 = add i32 %400, %399
  store i32 %401, ptr %16, align 4, !tbaa !23
  %402 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %403 = load i32, ptr %16, align 4, !tbaa !23
  %404 = zext i32 %403 to i64
  %405 = getelementptr inbounds i8, ptr %402, i64 %404
  store ptr %405, ptr %15, align 8, !tbaa !5
  %406 = getelementptr inbounds [4096 x i8], ptr %14, i64 0, i64 0
  %407 = load i32, ptr %16, align 4, !tbaa !23
  call void @write_thread_buffer(ptr noundef %13, ptr noundef %11, ptr noundef %12, ptr noundef %406, i32 noundef %407)
  br label %408

408:                                              ; preds = %397
  %409 = load i32, ptr %33, align 4, !tbaa !23
  %410 = add i32 %409, 1
  store i32 %410, ptr %33, align 4, !tbaa !23
  br label %312, !llvm.loop !70

411:                                              ; preds = %318
  %412 = load ptr, ptr %9, align 8, !tbaa !5
  %413 = getelementptr inbounds %struct.output_t, ptr %412, i32 0, i32 7
  %414 = call i32 @pthread_mutex_lock(ptr noundef %413) #5
  %415 = load ptr, ptr %9, align 8, !tbaa !5
  %416 = load ptr, ptr %13, align 8, !tbaa !5
  %417 = load i32, ptr %11, align 4, !tbaa !23
  %418 = zext i32 %417 to i64
  call void @write_output(ptr noundef %415, ptr noundef %416, i64 noundef %418)
  %419 = load ptr, ptr %9, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.output_t, ptr %419, i32 0, i32 7
  %421 = call i32 @pthread_mutex_unlock(ptr noundef %420) #5
  %422 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %422) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4096, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  store i32 0, ptr %10, align 4
  br label %423

423:                                              ; preds = %411, %50, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %424 = load i32, ptr %10, align 4
  switch i32 %424, label %426 [
    i32 0, label %425
    i32 1, label %425
  ]

425:                                              ; preds = %423, %423
  ret void

426:                                              ; preds = %423
  unreachable
}

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #2

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

; Function Attrs: nounwind
declare i32 @pthread_mutex_lock(ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @write_output(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: nounwind
declare i32 @pthread_mutex_unlock(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(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 #2 = { 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 #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 = { 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 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 280}
!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 = !{!17, !12, i64 8}
!17 = !{!"output_t", !6, i64 0, !12, i64 8, !18, i64 16, !18, i64 24, !18, i64 32, !6, i64 40, !12, i64 48, !7, i64 56, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108}
!18 = !{!"long", !7, i64 0}
!19 = !{!20, !12, i64 88}
!20 = !{!"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, !21, i64 104, !12, i64 108, !6, i64 112}
!21 = !{!"short", !7, i64 0}
!22 = !{!17, !12, i64 96}
!23 = !{!12, !12, i64 0}
!24 = !{!20, !12, i64 64}
!25 = !{!20, !12, i64 92}
!26 = !{!20, !6, i64 56}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!20, !12, i64 108}
!30 = !{!20, !12, i64 76}
!31 = !{!32, !12, i64 8}
!32 = !{!"database_t", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16}
!33 = !{!32, !12, i64 12}
!34 = !{!20, !12, i64 96}
!35 = !{!20, !12, i64 100}
!36 = !{!20, !21, i64 104}
!37 = !{!20, !12, i64 72}
!38 = !{!20, !6, i64 24}
!39 = !{!32, !6, i64 0}
!40 = !{!41, !12, i64 8}
!41 = !{!"db_mapping_t", !6, i64 0, !12, i64 8, !21, i64 12, !12, i64 16}
!42 = !{!43, !12, i64 24}
!43 = !{!"database_entry_t", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36}
!44 = !{!41, !6, i64 0}
!45 = !{!46, !6, i64 8}
!46 = !{!"mapping_t", !6, i64 0, !6, i64 8, !12, i64 16, !47, i64 20}
!47 = !{!"mapping_info_t", !12, i64 0, !48, i64 4}
!48 = !{!"float", !7, i64 0}
!49 = !{!47, !12, i64 0}
!50 = !{!46, !12, i64 16}
!51 = !{!41, !21, i64 12}
!52 = !{!21, !21, i64 0}
!53 = distinct !{!53, !28}
!54 = distinct !{!54, !28}
!55 = !{!46, !6, i64 0}
!56 = distinct !{!56, !28}
!57 = distinct !{!57, !28}
!58 = !{!20, !6, i64 8}
!59 = distinct !{!59, !28}
!60 = !{!20, !6, i64 0}
!61 = !{!62, !21, i64 0}
!62 = !{!"dfs_code_t", !21, i64 0, !21, i64 2, !12, i64 4, !12, i64 8, !63, i64 12, !12, i64 20}
!63 = !{!"edge_label_t", !12, i64 0, !12, i64 4}
!64 = !{!62, !21, i64 2}
!65 = !{!62, !12, i64 12}
!66 = !{!17, !12, i64 104}
!67 = !{!62, !12, i64 16}
!68 = !{!17, !12, i64 108}
!69 = !{!62, !12, i64 20}
!70 = distinct !{!70, !28}


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

@.str.16 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [4 x i8], align 1

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; 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 #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @map(ptr noundef, ptr noundef, i16 noundef zeroext) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @write_subgraph(ptr nocapture noundef readonly %0, ptr noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3) local_unnamed_addr #4 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca [4096 x i8], align 16
  %9 = getelementptr inbounds i8, ptr %3, i64 280
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 8
  %12 = load i32, ptr %11, align 8, !tbaa !15
  %13 = icmp eq i32 %12, -1
  br i1 %13, label %167, label %14

14:                                               ; preds = %4
  %15 = getelementptr inbounds i8, ptr %2, i64 88
  %16 = load i32, ptr %15, align 8, !tbaa !18
  %17 = getelementptr inbounds i8, ptr %10, i64 96
  %18 = load i32, ptr %17, align 8, !tbaa !21
  %19 = icmp ult i32 %16, %18
  br i1 %19, label %167, label %20

20:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 0, ptr %5, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 16384, ptr %6, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %21 = tail call noalias dereferenceable_or_null(16384) ptr @malloc(i64 noundef 16384) #8
  store ptr %21, ptr %7, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %8) #7
  %22 = getelementptr inbounds i8, ptr %2, i64 64
  %23 = load i32, ptr %22, align 8, !tbaa !24
  %24 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %23) #7
  call void @write_thread_buffer(ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %8, i32 noundef %24)
  %25 = getelementptr inbounds i8, ptr %2, i64 92
  %26 = load i32, ptr %25, align 4, !tbaa !25
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %42, label %27

27:                                               ; preds = %20
  %28 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.17) #7
  %.pn129 = zext i32 %28 to i64
  %.0112130 = getelementptr inbounds i8, ptr %8, i64 %.pn129
  %29 = load i32, ptr %25, align 4, !tbaa !25
  %.not159 = icmp eq i32 %29, 0
  br i1 %.not159, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %27
  %30 = getelementptr inbounds i8, ptr %2, i64 56
  br label %33

._crit_edge:                                      ; preds = %33, %27
  %.0113.lcssa = phi i32 [ %28, %27 ], [ %38, %33 ]
  %.0112.lcssa = phi ptr [ %.0112130, %27 ], [ %.0112, %33 ]
  %31 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %.0112.lcssa, ptr noundef nonnull dereferenceable(1) @.str.19) #7
  %32 = add i32 %31, %.0113.lcssa
  call void @write_thread_buffer(ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %8, i32 noundef %32)
  br label %42

33:                                               ; preds = %.lr.ph, %33
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %33 ]
  %.0112133 = phi ptr [ %.0112130, %.lr.ph ], [ %.0112, %33 ]
  %.0113132 = phi i32 [ %28, %.lr.ph ], [ %38, %33 ]
  %34 = load ptr, ptr %30, align 8, !tbaa !26
  %35 = getelementptr inbounds i32, ptr %34, i64 %indvars.iv
  %36 = load i32, ptr %35, align 4, !tbaa !22
  %37 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %.0112133, ptr noundef nonnull dereferenceable(1) @.str.18, i32 noundef %36) #7
  %38 = add i32 %37, %.0113132
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.pn = zext i32 %38 to i64
  %.0112 = getelementptr inbounds i8, ptr %8, i64 %.pn
  %39 = load i32, ptr %25, align 4, !tbaa !25
  %40 = zext i32 %39 to i64
  %41 = icmp ult i64 %indvars.iv.next, %40
  br i1 %41, label %33, label %._crit_edge, !llvm.loop !27

42:                                               ; preds = %._crit_edge, %20
  %43 = getelementptr inbounds i8, ptr %2, i64 108
  %44 = load i32, ptr %43, align 4, !tbaa !29
  %45 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.20, i32 noundef %44) #7
  call void @write_thread_buffer(ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %8, i32 noundef %45)
  %46 = getelementptr inbounds i8, ptr %2, i64 76
  %47 = load i32, ptr %46, align 4, !tbaa !30
  %48 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.21, i32 noundef %47) #7
  call void @write_thread_buffer(ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %8, i32 noundef %48)
  %.not121 = icmp eq ptr %1, null
  br i1 %.not121, label %61, label %49

49:                                               ; preds = %42
  %50 = getelementptr inbounds i8, ptr %1, i64 8
  %51 = load i32, ptr %50, align 8, !tbaa !31
  %52 = getelementptr inbounds i8, ptr %1, i64 12
  %53 = load i32, ptr %52, align 4, !tbaa !33
  %54 = sub i32 %51, %53
  %55 = getelementptr inbounds i8, ptr %2, i64 96
  %56 = load i32, ptr %55, align 8, !tbaa !34
  %57 = getelementptr inbounds i8, ptr %2, i64 100
  %58 = load i32, ptr %57, align 4, !tbaa !35
  %59 = sub i32 %56, %58
  %60 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.22, i32 noundef %58, i32 noundef %53, i32 noundef %59, i32 noundef %54) #7
  call void @write_thread_buffer(ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %8, i32 noundef %60)
  br label %61

61:                                               ; preds = %49, %42
  %62 = getelementptr inbounds i8, ptr %2, i64 104
  %63 = load i16, ptr %62, align 8, !tbaa !36
  %64 = zext i16 %63 to i64
  %65 = shl nuw nsw i64 %64, 2
  %66 = add nuw nsw i64 %65, 4
  %67 = call noalias ptr @malloc(i64 noundef %66) #8
  %68 = getelementptr inbounds i8, ptr %2, i64 72
  %69 = load i32, ptr %68, align 8, !tbaa !37
  %.not160 = icmp eq i32 %69, 0
  br i1 %.not160, label %._crit_edge154, label %.lr.ph153

.lr.ph153:                                        ; preds = %61
  %70 = getelementptr inbounds i8, ptr %2, i64 24
  br label %74

._crit_edge154.loopexit:                          ; preds = %._crit_edge150
  %.pre180 = load i16, ptr %62, align 8, !tbaa !36
  br label %._crit_edge154

._crit_edge154:                                   ; preds = %._crit_edge154.loopexit, %61
  %71 = phi i16 [ %.pre180, %._crit_edge154.loopexit ], [ %63, %61 ]
  call void @free(ptr noundef %67) #7
  %72 = zext i16 %71 to i64
  %73 = getelementptr inbounds i8, ptr %2, i64 8
  br label %116

74:                                               ; preds = %.lr.ph153, %._crit_edge150
  %75 = phi i32 [ %69, %.lr.ph153 ], [ %85, %._crit_edge150 ]
  %indvars.iv168 = phi i64 [ 0, %.lr.ph153 ], [ %indvars.iv.next169, %._crit_edge150 ]
  %76 = load ptr, ptr %70, align 8, !tbaa !38
  %77 = getelementptr inbounds %struct.db_mapping_t, ptr %76, i64 %indvars.iv168
  %78 = load ptr, ptr %0, align 8, !tbaa !39
  %79 = getelementptr inbounds i8, ptr %77, i64 8
  %80 = load i32, ptr %79, align 8, !tbaa !40
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds %struct.database_entry_t, ptr %78, i64 %81, i32 3
  %83 = load i32, ptr %82, align 8, !tbaa !42
  %.0119145 = load ptr, ptr %77, align 8, !tbaa !23
  %.not125146 = icmp eq ptr %.0119145, null
  br i1 %.not125146, label %._crit_edge150, label %.lr.ph149

.lr.ph149:                                        ; preds = %74
  %84 = getelementptr inbounds i8, ptr %77, i64 12
  br label %88

._crit_edge150.loopexit:                          ; preds = %102
  %.pre = load i32, ptr %68, align 8, !tbaa !37
  br label %._crit_edge150

._crit_edge150:                                   ; preds = %._crit_edge150.loopexit, %74
  %85 = phi i32 [ %.pre, %._crit_edge150.loopexit ], [ %75, %74 ]
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %86 = zext i32 %85 to i64
  %87 = icmp ult i64 %indvars.iv.next169, %86
  br i1 %87, label %74, label %._crit_edge154.loopexit, !llvm.loop !44

88:                                               ; preds = %.lr.ph149, %102
  %.0119147 = phi ptr [ %.0119145, %.lr.ph149 ], [ %.0119, %102 ]
  %89 = getelementptr inbounds i8, ptr %.0119147, i64 8
  %90 = load ptr, ptr %89, align 8, !tbaa !45
  %91 = getelementptr inbounds i8, ptr %.0119147, i64 20
  %92 = load i32, ptr %91, align 4, !tbaa !49
  %93 = getelementptr inbounds i8, ptr %.0119147, i64 16
  %94 = load i32, ptr %93, align 8, !tbaa !50
  %95 = load i16, ptr %84, align 4, !tbaa !51
  %96 = add i16 %95, 1
  %.not126135 = icmp eq i16 %96, 0
  br i1 %.not126135, label %._crit_edge139, label %.lr.ph138.preheader

.lr.ph138.preheader:                              ; preds = %88
  %97 = zext i16 %96 to i64
  br label %.lr.ph138

._crit_edge139:                                   ; preds = %.lr.ph138, %88
  %98 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %83, i32 noundef %94, i32 noundef %92) #7
  %.pn127140 = zext i32 %98 to i64
  %.1141 = getelementptr inbounds i8, ptr %8, i64 %.pn127140
  br label %105

.lr.ph138:                                        ; preds = %.lr.ph138.preheader, %.lr.ph138
  %indvars.iv165 = phi i64 [ %97, %.lr.ph138.preheader ], [ %indvars.iv.next166, %.lr.ph138 ]
  %indvars.iv.next166 = add nsw i64 %indvars.iv165, -1
  %indvars = trunc i64 %indvars.iv.next166 to i16
  %99 = call i32 @map(ptr noundef nonnull %77, ptr noundef %90, i16 noundef zeroext %indvars)
  %100 = and i64 %indvars.iv.next166, 65535
  %101 = getelementptr inbounds i32, ptr %67, i64 %100
  store i32 %99, ptr %101, align 4, !tbaa !22
  %.not126 = icmp eq i16 %indvars, 0
  br i1 %.not126, label %._crit_edge139, label %.lr.ph138, !llvm.loop !52

102:                                              ; preds = %105
  %103 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %.1, ptr noundef nonnull dereferenceable(1) @.str.19) #7
  %104 = add i32 %103, %110
  call void @write_thread_buffer(ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %8, i32 noundef %104)
  %.0119 = load ptr, ptr %.0119147, align 8, !tbaa !23
  %.not125 = icmp eq ptr %.0119, null
  br i1 %.not125, label %._crit_edge150.loopexit, label %88, !llvm.loop !53

105:                                              ; preds = %._crit_edge139, %105
  %.1144 = phi ptr [ %.1141, %._crit_edge139 ], [ %.1, %105 ]
  %.0110143 = phi i16 [ 0, %._crit_edge139 ], [ %111, %105 ]
  %.1114142 = phi i32 [ %98, %._crit_edge139 ], [ %110, %105 ]
  %106 = zext i16 %.0110143 to i64
  %107 = getelementptr inbounds i32, ptr %67, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !22
  %109 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %.1144, ptr noundef nonnull dereferenceable(1) @.str.18, i32 noundef %108) #7
  %110 = add i32 %109, %.1114142
  %111 = add i16 %.0110143, 1
  %.pn127 = zext i32 %110 to i64
  %.1 = getelementptr inbounds i8, ptr %8, i64 %.pn127
  %112 = load i16, ptr %84, align 4, !tbaa !51
  %.not128 = icmp ugt i16 %111, %112
  br i1 %.not128, label %102, label %105, !llvm.loop !54

.preheader:                                       ; preds = %116
  %113 = load i32, ptr %15, align 8, !tbaa !18
  %.not161 = icmp eq i32 %113, 0
  br i1 %.not161, label %._crit_edge158, label %.lr.ph157

.lr.ph157:                                        ; preds = %.preheader
  %114 = getelementptr inbounds i8, ptr %10, i64 104
  %115 = getelementptr inbounds i8, ptr %10, i64 108
  br label %129

116:                                              ; preds = %._crit_edge154, %116
  %indvars.iv172 = phi i64 [ 0, %._crit_edge154 ], [ %indvars.iv.next173, %116 ]
  %117 = load ptr, ptr %73, align 8, !tbaa !55
  %118 = getelementptr inbounds i32, ptr %117, i64 %indvars.iv172
  %119 = load i32, ptr %118, align 4, !tbaa !22
  %120 = trunc nuw nsw i64 %indvars.iv172 to i32
  %121 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.24, i32 noundef %120, i32 noundef %119) #7
  call void @write_thread_buffer(ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %8, i32 noundef %121)
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %exitcond.not = icmp eq i64 %indvars.iv172, %72
  br i1 %exitcond.not, label %.preheader, label %116, !llvm.loop !56

._crit_edge158:                                   ; preds = %161, %.preheader
  %122 = getelementptr inbounds i8, ptr %10, i64 56
  %123 = call i32 @pthread_mutex_lock(ptr noundef nonnull %122) #7
  %124 = load ptr, ptr %7, align 8, !tbaa !23
  %125 = load i32, ptr %5, align 4, !tbaa !22
  %126 = zext i32 %125 to i64
  call void @write_output(ptr noundef %10, ptr noundef %124, i64 noundef %126)
  %127 = call i32 @pthread_mutex_unlock(ptr noundef nonnull %122) #7
  %128 = load ptr, ptr %7, align 8, !tbaa !23
  call void @free(ptr noundef %128) #7
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %167

129:                                              ; preds = %.lr.ph157, %161
  %indvars.iv176 = phi i64 [ 0, %.lr.ph157 ], [ %indvars.iv.next177, %161 ]
  %130 = load ptr, ptr %2, align 8, !tbaa !57
  %131 = getelementptr inbounds %struct.dfs_code_t, ptr %130, i64 %indvars.iv176
  %132 = load i16, ptr %131, align 4, !tbaa !58
  %133 = zext i16 %132 to i32
  %134 = getelementptr inbounds i8, ptr %131, i64 2
  %135 = load i16, ptr %134, align 2, !tbaa !61
  %136 = zext i16 %135 to i32
  %137 = getelementptr inbounds i8, ptr %131, i64 12
  %138 = load i32, ptr %137, align 4, !tbaa !62
  %139 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.25, i32 noundef %133, i32 noundef %136, i32 noundef %138) #7
  %140 = zext i32 %139 to i64
  %141 = getelementptr inbounds i8, ptr %8, i64 %140
  %142 = load i32, ptr %114, align 8, !tbaa !63
  %.not123 = icmp eq i32 %142, 0
  br i1 %.not123, label %151, label %143

143:                                              ; preds = %129
  %144 = load ptr, ptr %2, align 8, !tbaa !57
  %145 = getelementptr inbounds %struct.dfs_code_t, ptr %144, i64 %indvars.iv176, i32 4, i32 1
  %146 = load i32, ptr %145, align 4, !tbaa !64
  %147 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %141, ptr noundef nonnull dereferenceable(1) @.str.26, i32 noundef %146) #7
  %148 = add i32 %147, %139
  %149 = zext i32 %148 to i64
  %150 = getelementptr inbounds i8, ptr %8, i64 %149
  br label %151

151:                                              ; preds = %143, %129
  %.2115 = phi i32 [ %148, %143 ], [ %139, %129 ]
  %.2 = phi ptr [ %150, %143 ], [ %141, %129 ]
  %152 = load i32, ptr %115, align 4, !tbaa !65
  %.not124 = icmp eq i32 %152, 0
  br i1 %.not124, label %161, label %153

153:                                              ; preds = %151
  %154 = load ptr, ptr %2, align 8, !tbaa !57
  %155 = getelementptr inbounds %struct.dfs_code_t, ptr %154, i64 %indvars.iv176, i32 5
  %156 = load i32, ptr %155, align 4, !tbaa !66
  %157 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %.2, ptr noundef nonnull dereferenceable(1) @.str.26, i32 noundef %156) #7
  %158 = add i32 %157, %.2115
  %159 = zext i32 %158 to i64
  %160 = getelementptr inbounds i8, ptr %8, i64 %159
  br label %161

161:                                              ; preds = %153, %151
  %.3116 = phi i32 [ %158, %153 ], [ %.2115, %151 ]
  %.3 = phi ptr [ %160, %153 ], [ %.2, %151 ]
  %162 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %.3, ptr noundef nonnull dereferenceable(1) @.str.19) #7
  %163 = add i32 %162, %.3116
  call void @write_thread_buffer(ptr noundef nonnull %7, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %8, i32 noundef %163)
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %164 = load i32, ptr %15, align 8, !tbaa !18
  %165 = zext i32 %164 to i64
  %166 = icmp ult i64 %indvars.iv.next177, %165
  br i1 %166, label %129, label %._crit_edge158, !llvm.loop !67

167:                                              ; preds = %14, %4, %._crit_edge158
  ret void
}

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @write_output(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 = { 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 #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 = { 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 = { 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 #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 allocsize(0) }

!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 280}
!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 = !{!16, !11, i64 8}
!16 = !{!"output_t", !7, i64 0, !11, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !7, i64 40, !11, i64 48, !8, i64 56, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108}
!17 = !{!"long", !8, i64 0}
!18 = !{!19, !11, i64 88}
!19 = !{!"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, !20, i64 104, !11, i64 108, !7, i64 112}
!20 = !{!"short", !8, i64 0}
!21 = !{!16, !11, i64 96}
!22 = !{!11, !11, i64 0}
!23 = !{!7, !7, i64 0}
!24 = !{!19, !11, i64 64}
!25 = !{!19, !11, i64 92}
!26 = !{!19, !7, i64 56}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!19, !11, i64 108}
!30 = !{!19, !11, i64 76}
!31 = !{!32, !11, i64 8}
!32 = !{!"database_t", !7, i64 0, !11, i64 8, !11, i64 12, !11, i64 16}
!33 = !{!32, !11, i64 12}
!34 = !{!19, !11, i64 96}
!35 = !{!19, !11, i64 100}
!36 = !{!19, !20, i64 104}
!37 = !{!19, !11, i64 72}
!38 = !{!19, !7, i64 24}
!39 = !{!32, !7, i64 0}
!40 = !{!41, !11, i64 8}
!41 = !{!"db_mapping_t", !7, i64 0, !11, i64 8, !20, i64 12, !11, i64 16}
!42 = !{!43, !11, i64 24}
!43 = !{!"database_entry_t", !7, i64 0, !7, i64 8, !7, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36}
!44 = distinct !{!44, !28}
!45 = !{!46, !7, i64 8}
!46 = !{!"mapping_t", !7, i64 0, !7, i64 8, !11, i64 16, !47, i64 20}
!47 = !{!"mapping_info_t", !11, i64 0, !48, i64 4}
!48 = !{!"float", !8, i64 0}
!49 = !{!47, !11, i64 0}
!50 = !{!46, !11, i64 16}
!51 = !{!41, !20, i64 12}
!52 = distinct !{!52, !28}
!53 = distinct !{!53, !28}
!54 = distinct !{!54, !28}
!55 = !{!19, !7, i64 8}
!56 = distinct !{!56, !28}
!57 = !{!19, !7, i64 0}
!58 = !{!59, !20, i64 0}
!59 = !{!"dfs_code_t", !20, i64 0, !20, i64 2, !11, i64 4, !11, i64 8, !60, i64 12, !11, i64 20}
!60 = !{!"edge_label_t", !11, i64 0, !11, i64 4}
!61 = !{!59, !20, i64 2}
!62 = !{!59, !11, i64 12}
!63 = !{!16, !11, i64 104}
!64 = !{!59, !11, i64 16}
!65 = !{!16, !11, i64 108}
!66 = !{!59, !11, i64 20}
!67 = distinct !{!67, !28}


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