; LLVM IR from ryanlayer/giggle :: test/unit (test_bulk_insert)

; 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.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }
%struct.giggle_index = type { ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.bpt_node = type { ptr }

@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@OFFSET_INDEX_FILE_NAME = external dso_local global ptr, align 8
@CHRM_INDEX_FILE_NAME = external dso_local global ptr, align 8
@ORDER = external dso_local global i32, align 4
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@CACHE_FILE_NAME_PREFIX = external dso_local global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [61 x i8], align 1
@__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_left_keys = external hidden unnamed_addr constant [4 x i32], align 16
@__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_left_pointers = external hidden unnamed_addr constant [5 x i32], align 16
@__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_right_keys = external hidden unnamed_addr constant [3 x i32], align 4
@__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_right_pointers = external hidden unnamed_addr constant [4 x i32], align 16

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

declare i32 @giggle_bulk_insert_open_files(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @UnityAssertEqualNumber(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef) #1

declare void @input_file_destroy(ptr noundef) #1

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

declare i32 @rmrf(ptr noundef) #1

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

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #2

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

declare ptr @offset_index_init(i32 noundef, ptr noundef) #1

declare ptr @chrm_index_init(i32 noundef, ptr noundef) #1

declare ptr @priq_new(i32 noundef) #1

declare void @giggle_bulk_insert_prime_pqs(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

declare void @priq_free(ptr noundef) #1

declare void @giggle_bulk_insert_build_leaf_levels(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

declare void @giggle_bulk_insert_build_tree_on_leaves(ptr noundef) #1

declare ptr @disk_store_load(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; 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

declare ptr @disk_store_get(ptr noundef, i32 noundef, ptr noundef) #1

declare i64 @bpt_node_deserialize(ptr noundef, i64 noundef, ptr noundef) #1

declare void @giggle_index_destroy(ptr noundef) #1

declare void @disk_store_destroy(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @test_giggle_bulk_insert_build_tree_on_leaves_few_order_4() #6 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca %struct.stat, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca [4 x i32], align 16
  %25 = alloca [5 x i32], align 16
  %26 = alloca [3 x i32], align 4
  %27 = alloca [4 x i32], align 16
  store i32 4, ptr @ORDER, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #7
  store ptr @.str.4, ptr %1, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store ptr @.str.9, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 144, ptr %3) #7
  call void @llvm.memset.p0.i64(ptr align 8 %3, i8 0, i64 144, i1 false)
  %28 = load ptr, ptr %2, align 8, !tbaa !9
  %29 = call i32 @stat(ptr noundef %28, ptr noundef %3) #7
  %30 = icmp eq i32 %29, -1
  br i1 %30, label %31, label %34

31:                                               ; preds = %0
  %32 = load ptr, ptr %2, align 8, !tbaa !9
  %33 = call i32 @mkdir(ptr noundef %32, i32 noundef 448) #7
  br label %39

34:                                               ; preds = %0
  %35 = load ptr, ptr %2, align 8, !tbaa !9
  %36 = call i32 @rmrf(ptr noundef %35)
  %37 = load ptr, ptr %2, align 8, !tbaa !9
  %38 = call i32 @mkdir(ptr noundef %37, i32 noundef 448) #7
  br label %39

39:                                               ; preds = %34, %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %40 = call noalias ptr @malloc(i64 noundef 64) #8
  store ptr %40, ptr %4, align 8, !tbaa !9
  %41 = load ptr, ptr %2, align 8, !tbaa !9
  %42 = call noalias ptr @strdup(ptr noundef %41) #7
  %43 = load ptr, ptr %4, align 8, !tbaa !9
  %44 = getelementptr inbounds %struct.giggle_index, ptr %43, i32 0, i32 7
  store ptr %42, ptr %44, align 8, !tbaa !11
  %45 = load ptr, ptr %4, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.giggle_index, ptr %45, i32 0, i32 4
  store ptr null, ptr %46, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store ptr null, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %47 = load ptr, ptr %1, align 8, !tbaa !9
  %48 = load ptr, ptr %4, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.giggle_index, ptr %48, i32 0, i32 7
  %50 = load ptr, ptr %49, align 8, !tbaa !11
  %51 = load ptr, ptr %4, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.giggle_index, ptr %51, i32 0, i32 4
  %53 = call i32 @giggle_bulk_insert_open_files(ptr noundef %47, ptr noundef %50, ptr noundef %5, ptr noundef %52)
  store i32 %53, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store ptr null, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %54 = load ptr, ptr %4, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct.giggle_index, ptr %54, i32 0, i32 7
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  %57 = load ptr, ptr @OFFSET_INDEX_FILE_NAME, align 8, !tbaa !9
  %58 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %7, ptr noundef @.str.2, ptr noundef %56, ptr noundef %57) #7
  store i32 %58, ptr %8, align 4, !tbaa !5
  %59 = load ptr, ptr %7, align 8, !tbaa !9
  %60 = call ptr @offset_index_init(i32 noundef 1000, ptr noundef %59)
  %61 = load ptr, ptr %4, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct.giggle_index, ptr %61, i32 0, i32 5
  store ptr %60, ptr %62, align 8, !tbaa !14
  %63 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %63) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store ptr null, ptr %9, align 8, !tbaa !9
  %64 = load ptr, ptr %4, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.giggle_index, ptr %64, i32 0, i32 7
  %66 = load ptr, ptr %65, align 8, !tbaa !11
  %67 = load ptr, ptr @CHRM_INDEX_FILE_NAME, align 8, !tbaa !9
  %68 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %9, ptr noundef @.str.2, ptr noundef %66, ptr noundef %67) #7
  store i32 %68, ptr %8, align 4, !tbaa !5
  %69 = load ptr, ptr %9, align 8, !tbaa !9
  %70 = call ptr @chrm_index_init(i32 noundef 24, ptr noundef %69)
  %71 = load ptr, ptr %4, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.giggle_index, ptr %71, i32 0, i32 3
  store ptr %70, ptr %72, align 8, !tbaa !15
  %73 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %73) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %75 = call ptr @priq_new(i32 noundef %74)
  store ptr %75, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = zext i32 %76 to i64
  %78 = mul i64 %77, 16
  %79 = call noalias ptr @malloc(i64 noundef %78) #8
  store ptr %79, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = call ptr @priq_new(i32 noundef %80)
  store ptr %81, ptr %12, align 8, !tbaa !9
  %82 = load ptr, ptr %4, align 8, !tbaa !9
  %83 = load ptr, ptr %11, align 8, !tbaa !9
  %84 = load ptr, ptr %5, align 8, !tbaa !9
  %85 = load i32, ptr %6, align 4, !tbaa !5
  call void @giggle_bulk_insert_prime_pqs(ptr noundef %82, ptr noundef %10, ptr noundef %83, ptr noundef %12, ptr noundef %84, i32 noundef %85)
  %86 = load ptr, ptr %4, align 8, !tbaa !9
  %87 = load ptr, ptr %11, align 8, !tbaa !9
  %88 = load ptr, ptr %5, align 8, !tbaa !9
  %89 = load i32, ptr %6, align 4, !tbaa !5
  call void @giggle_bulk_insert_build_leaf_levels(ptr noundef %86, ptr noundef %10, ptr noundef %87, ptr noundef %12, ptr noundef %88, i32 noundef %89)
  %90 = load ptr, ptr %12, align 8, !tbaa !9
  call void @priq_free(ptr noundef %90)
  %91 = load ptr, ptr %10, align 8, !tbaa !9
  call void @priq_free(ptr noundef %91)
  %92 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %92) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %102, %39
  %94 = load i32, ptr %13, align 4, !tbaa !5
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = icmp ult i32 %94, %95
  br i1 %96, label %97, label %105

97:                                               ; preds = %93
  %98 = load ptr, ptr %5, align 8, !tbaa !9
  %99 = load i32, ptr %13, align 4, !tbaa !5
  %100 = zext i32 %99 to i64
  %101 = getelementptr inbounds ptr, ptr %98, i64 %100
  call void @input_file_destroy(ptr noundef %101)
  br label %102

102:                                              ; preds = %97
  %103 = load i32, ptr %13, align 4, !tbaa !5
  %104 = add i32 %103, 1
  store i32 %104, ptr %13, align 4, !tbaa !5
  br label %93, !llvm.loop !16

105:                                              ; preds = %93
  %106 = load ptr, ptr %5, align 8, !tbaa !9
  call void @free(ptr noundef %106) #7
  %107 = load ptr, ptr %4, align 8, !tbaa !9
  call void @giggle_bulk_insert_build_tree_on_leaves(ptr noundef %107)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %108 = load ptr, ptr %4, align 8, !tbaa !9
  %109 = getelementptr inbounds %struct.giggle_index, ptr %108, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8, !tbaa !18
  %111 = getelementptr inbounds i32, ptr %110, i64 0
  %112 = load i32, ptr %111, align 4, !tbaa !5
  store i32 %112, ptr %14, align 4, !tbaa !5
  call void @giggle_index_destroy(ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store ptr null, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store ptr null, ptr %16, align 8, !tbaa !9
  %113 = load ptr, ptr %2, align 8, !tbaa !9
  %114 = load ptr, ptr @CACHE_FILE_NAME_PREFIX, align 8, !tbaa !9
  %115 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %15, ptr noundef @.str.6, ptr noundef %113, ptr noundef %114) #7
  store i32 %115, ptr %8, align 4, !tbaa !5
  %116 = load ptr, ptr %2, align 8, !tbaa !9
  %117 = load ptr, ptr @CACHE_FILE_NAME_PREFIX, align 8, !tbaa !9
  %118 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %16, ptr noundef @.str.7, ptr noundef %116, ptr noundef %117) #7
  store i32 %118, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %119 = load ptr, ptr %15, align 8, !tbaa !9
  %120 = load ptr, ptr %16, align 8, !tbaa !9
  %121 = call ptr @disk_store_load(ptr noundef null, ptr noundef %119, ptr noundef null, ptr noundef %120)
  store ptr %121, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %122 = load ptr, ptr %17, align 8, !tbaa !9
  %123 = load i32, ptr %14, align 4, !tbaa !5
  %124 = sub i32 %123, 1
  %125 = call ptr @disk_store_get(ptr noundef %122, i32 noundef %124, ptr noundef %18)
  store ptr %125, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %126 = load ptr, ptr %19, align 8, !tbaa !9
  %127 = load i64, ptr %18, align 8, !tbaa !19
  %128 = call i64 @bpt_node_deserialize(ptr noundef %126, i64 noundef %127, ptr noundef %20)
  store i64 %128, ptr %21, align 8, !tbaa !19
  %129 = load ptr, ptr %19, align 8, !tbaa !9
  call void @free(ptr noundef %129) #7
  %130 = load ptr, ptr %20, align 8, !tbaa !9
  %131 = getelementptr inbounds %struct.bpt_node, ptr %130, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8, !tbaa !21
  %133 = getelementptr inbounds i32, ptr %132, i64 5
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = zext i32 %134 to i64
  call void @UnityAssertEqualNumber(i64 noundef 1, i64 noundef %135, ptr noundef null, i64 noundef 1577, i32 noundef 148)
  %136 = load ptr, ptr %20, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.bpt_node, ptr %136, i32 0, i32 0
  %138 = load ptr, ptr %137, align 8, !tbaa !21
  %139 = getelementptr inbounds i32, ptr %138, i64 6
  %140 = getelementptr inbounds i32, ptr %139, i64 0
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = zext i32 %141 to i64
  call void @UnityAssertEqualNumber(i64 noundef 76, i64 noundef %142, ptr noundef null, i64 noundef 1578, i32 noundef 148)
  %143 = load ptr, ptr %20, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.bpt_node, ptr %143, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8, !tbaa !21
  %146 = load i32, ptr @ORDER, align 4, !tbaa !5
  %147 = add i32 6, %146
  %148 = add i32 %147, 2
  %149 = zext i32 %148 to i64
  %150 = getelementptr inbounds i32, ptr %145, i64 %149
  %151 = getelementptr inbounds i32, ptr %150, i64 0
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = zext i32 %152 to i64
  call void @UnityAssertEqualNumber(i64 noundef 17, i64 noundef %153, ptr noundef null, i64 noundef 1579, i32 noundef 148)
  %154 = load ptr, ptr %20, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct.bpt_node, ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8, !tbaa !21
  %157 = load i32, ptr @ORDER, align 4, !tbaa !5
  %158 = add i32 6, %157
  %159 = add i32 %158, 2
  %160 = zext i32 %159 to i64
  %161 = getelementptr inbounds i32, ptr %156, i64 %160
  %162 = getelementptr inbounds i32, ptr %161, i64 1
  %163 = load i32, ptr %162, align 4, !tbaa !5
  %164 = zext i32 %163 to i64
  call void @UnityAssertEqualNumber(i64 noundef 18, i64 noundef %164, ptr noundef null, i64 noundef 1580, i32 noundef 148)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %165 = load ptr, ptr %20, align 8, !tbaa !9
  %166 = getelementptr inbounds %struct.bpt_node, ptr %165, i32 0, i32 0
  %167 = load ptr, ptr %166, align 8, !tbaa !21
  %168 = load i32, ptr @ORDER, align 4, !tbaa !5
  %169 = add i32 6, %168
  %170 = add i32 %169, 2
  %171 = zext i32 %170 to i64
  %172 = getelementptr inbounds i32, ptr %167, i64 %171
  %173 = getelementptr inbounds i32, ptr %172, i64 0
  %174 = load i32, ptr %173, align 4, !tbaa !5
  store i32 %174, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %175 = load ptr, ptr %20, align 8, !tbaa !9
  %176 = getelementptr inbounds %struct.bpt_node, ptr %175, i32 0, i32 0
  %177 = load ptr, ptr %176, align 8, !tbaa !21
  %178 = load i32, ptr @ORDER, align 4, !tbaa !5
  %179 = add i32 6, %178
  %180 = add i32 %179, 2
  %181 = zext i32 %180 to i64
  %182 = getelementptr inbounds i32, ptr %177, i64 %181
  %183 = getelementptr inbounds i32, ptr %182, i64 1
  %184 = load i32, ptr %183, align 4, !tbaa !5
  store i32 %184, ptr %23, align 4, !tbaa !5
  %185 = load ptr, ptr %20, align 8, !tbaa !9
  %186 = getelementptr inbounds %struct.bpt_node, ptr %185, i32 0, i32 0
  %187 = load ptr, ptr %186, align 8, !tbaa !21
  call void @free(ptr noundef %187) #7
  %188 = load ptr, ptr %20, align 8, !tbaa !9
  call void @free(ptr noundef %188) #7
  %189 = load ptr, ptr %17, align 8, !tbaa !9
  %190 = load i32, ptr %22, align 4, !tbaa !5
  %191 = sub i32 %190, 1
  %192 = call ptr @disk_store_get(ptr noundef %189, i32 noundef %191, ptr noundef %18)
  store ptr %192, ptr %19, align 8, !tbaa !9
  %193 = load ptr, ptr %19, align 8, !tbaa !9
  %194 = load i64, ptr %18, align 8, !tbaa !19
  %195 = call i64 @bpt_node_deserialize(ptr noundef %193, i64 noundef %194, ptr noundef %20)
  store i64 %195, ptr %21, align 8, !tbaa !19
  %196 = load ptr, ptr %19, align 8, !tbaa !9
  call void @free(ptr noundef %196) #7
  %197 = load ptr, ptr %20, align 8, !tbaa !9
  %198 = getelementptr inbounds %struct.bpt_node, ptr %197, i32 0, i32 0
  %199 = load ptr, ptr %198, align 8, !tbaa !21
  %200 = getelementptr inbounds i32, ptr %199, i64 5
  %201 = load i32, ptr %200, align 4, !tbaa !5
  %202 = zext i32 %201 to i64
  call void @UnityAssertEqualNumber(i64 noundef 4, i64 noundef %202, ptr noundef null, i64 noundef 1594, i32 noundef 148)
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_left_keys, i64 16, i1 false)
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %203

203:                                              ; preds = %221, %105
  %204 = load i32, ptr %13, align 4, !tbaa !5
  %205 = icmp ult i32 %204, 4
  br i1 %205, label %206, label %224

206:                                              ; preds = %203
  %207 = load i32, ptr %13, align 4, !tbaa !5
  %208 = zext i32 %207 to i64
  %209 = getelementptr inbounds [4 x i32], ptr %24, i64 0, i64 %208
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = zext i32 %210 to i64
  %212 = load ptr, ptr %20, align 8, !tbaa !9
  %213 = getelementptr inbounds %struct.bpt_node, ptr %212, i32 0, i32 0
  %214 = load ptr, ptr %213, align 8, !tbaa !21
  %215 = getelementptr inbounds i32, ptr %214, i64 6
  %216 = load i32, ptr %13, align 4, !tbaa !5
  %217 = zext i32 %216 to i64
  %218 = getelementptr inbounds i32, ptr %215, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %220 = zext i32 %219 to i64
  call void @UnityAssertEqualNumber(i64 noundef %211, i64 noundef %220, ptr noundef null, i64 noundef 1597, i32 noundef 148)
  br label %221

221:                                              ; preds = %206
  %222 = load i32, ptr %13, align 4, !tbaa !5
  %223 = add i32 %222, 1
  store i32 %223, ptr %13, align 4, !tbaa !5
  br label %203, !llvm.loop !23

224:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 20, ptr %25) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_left_pointers, i64 20, i1 false)
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %225

225:                                              ; preds = %247, %224
  %226 = load i32, ptr %13, align 4, !tbaa !5
  %227 = icmp ult i32 %226, 5
  br i1 %227, label %228, label %250

228:                                              ; preds = %225
  %229 = load i32, ptr %13, align 4, !tbaa !5
  %230 = zext i32 %229 to i64
  %231 = getelementptr inbounds [5 x i32], ptr %25, i64 0, i64 %230
  %232 = load i32, ptr %231, align 4, !tbaa !5
  %233 = zext i32 %232 to i64
  %234 = load ptr, ptr %20, align 8, !tbaa !9
  %235 = getelementptr inbounds %struct.bpt_node, ptr %234, i32 0, i32 0
  %236 = load ptr, ptr %235, align 8, !tbaa !21
  %237 = load i32, ptr @ORDER, align 4, !tbaa !5
  %238 = add i32 6, %237
  %239 = add i32 %238, 2
  %240 = zext i32 %239 to i64
  %241 = getelementptr inbounds i32, ptr %236, i64 %240
  %242 = load i32, ptr %13, align 4, !tbaa !5
  %243 = zext i32 %242 to i64
  %244 = getelementptr inbounds i32, ptr %241, i64 %243
  %245 = load i32, ptr %244, align 4, !tbaa !5
  %246 = zext i32 %245 to i64
  call void @UnityAssertEqualNumber(i64 noundef %233, i64 noundef %246, ptr noundef null, i64 noundef 1601, i32 noundef 148)
  br label %247

247:                                              ; preds = %228
  %248 = load i32, ptr %13, align 4, !tbaa !5
  %249 = add i32 %248, 1
  store i32 %249, ptr %13, align 4, !tbaa !5
  br label %225, !llvm.loop !24

250:                                              ; preds = %225
  %251 = load ptr, ptr %20, align 8, !tbaa !9
  %252 = getelementptr inbounds %struct.bpt_node, ptr %251, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8, !tbaa !21
  call void @free(ptr noundef %253) #7
  %254 = load ptr, ptr %20, align 8, !tbaa !9
  call void @free(ptr noundef %254) #7
  %255 = load ptr, ptr %17, align 8, !tbaa !9
  %256 = load i32, ptr %23, align 4, !tbaa !5
  %257 = sub i32 %256, 1
  %258 = call ptr @disk_store_get(ptr noundef %255, i32 noundef %257, ptr noundef %18)
  store ptr %258, ptr %19, align 8, !tbaa !9
  %259 = load ptr, ptr %19, align 8, !tbaa !9
  %260 = load i64, ptr %18, align 8, !tbaa !19
  %261 = call i64 @bpt_node_deserialize(ptr noundef %259, i64 noundef %260, ptr noundef %20)
  store i64 %261, ptr %21, align 8, !tbaa !19
  %262 = load ptr, ptr %19, align 8, !tbaa !9
  call void @free(ptr noundef %262) #7
  %263 = load ptr, ptr %20, align 8, !tbaa !9
  %264 = getelementptr inbounds %struct.bpt_node, ptr %263, i32 0, i32 0
  %265 = load ptr, ptr %264, align 8, !tbaa !21
  %266 = getelementptr inbounds i32, ptr %265, i64 5
  %267 = load i32, ptr %266, align 4, !tbaa !5
  %268 = zext i32 %267 to i64
  call void @UnityAssertEqualNumber(i64 noundef 3, i64 noundef %268, ptr noundef null, i64 noundef 1612, i32 noundef 148)
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_right_keys, i64 12, i1 false)
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %269

269:                                              ; preds = %287, %250
  %270 = load i32, ptr %13, align 4, !tbaa !5
  %271 = icmp ult i32 %270, 3
  br i1 %271, label %272, label %290

272:                                              ; preds = %269
  %273 = load i32, ptr %13, align 4, !tbaa !5
  %274 = zext i32 %273 to i64
  %275 = getelementptr inbounds [3 x i32], ptr %26, i64 0, i64 %274
  %276 = load i32, ptr %275, align 4, !tbaa !5
  %277 = zext i32 %276 to i64
  %278 = load ptr, ptr %20, align 8, !tbaa !9
  %279 = getelementptr inbounds %struct.bpt_node, ptr %278, i32 0, i32 0
  %280 = load ptr, ptr %279, align 8, !tbaa !21
  %281 = getelementptr inbounds i32, ptr %280, i64 6
  %282 = load i32, ptr %13, align 4, !tbaa !5
  %283 = zext i32 %282 to i64
  %284 = getelementptr inbounds i32, ptr %281, i64 %283
  %285 = load i32, ptr %284, align 4, !tbaa !5
  %286 = zext i32 %285 to i64
  call void @UnityAssertEqualNumber(i64 noundef %277, i64 noundef %286, ptr noundef null, i64 noundef 1615, i32 noundef 148)
  br label %287

287:                                              ; preds = %272
  %288 = load i32, ptr %13, align 4, !tbaa !5
  %289 = add i32 %288, 1
  store i32 %289, ptr %13, align 4, !tbaa !5
  br label %269, !llvm.loop !25

290:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_right_pointers, i64 16, i1 false)
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %291

291:                                              ; preds = %313, %290
  %292 = load i32, ptr %13, align 4, !tbaa !5
  %293 = icmp ult i32 %292, 4
  br i1 %293, label %294, label %316

294:                                              ; preds = %291
  %295 = load i32, ptr %13, align 4, !tbaa !5
  %296 = zext i32 %295 to i64
  %297 = getelementptr inbounds [4 x i32], ptr %27, i64 0, i64 %296
  %298 = load i32, ptr %297, align 4, !tbaa !5
  %299 = zext i32 %298 to i64
  %300 = load ptr, ptr %20, align 8, !tbaa !9
  %301 = getelementptr inbounds %struct.bpt_node, ptr %300, i32 0, i32 0
  %302 = load ptr, ptr %301, align 8, !tbaa !21
  %303 = load i32, ptr @ORDER, align 4, !tbaa !5
  %304 = add i32 6, %303
  %305 = add i32 %304, 2
  %306 = zext i32 %305 to i64
  %307 = getelementptr inbounds i32, ptr %302, i64 %306
  %308 = load i32, ptr %13, align 4, !tbaa !5
  %309 = zext i32 %308 to i64
  %310 = getelementptr inbounds i32, ptr %307, i64 %309
  %311 = load i32, ptr %310, align 4, !tbaa !5
  %312 = zext i32 %311 to i64
  call void @UnityAssertEqualNumber(i64 noundef %299, i64 noundef %312, ptr noundef null, i64 noundef 1619, i32 noundef 148)
  br label %313

313:                                              ; preds = %294
  %314 = load i32, ptr %13, align 4, !tbaa !5
  %315 = add i32 %314, 1
  store i32 %315, ptr %13, align 4, !tbaa !5
  br label %291, !llvm.loop !26

316:                                              ; preds = %291
  %317 = load ptr, ptr %20, align 8, !tbaa !9
  %318 = getelementptr inbounds %struct.bpt_node, ptr %317, i32 0, i32 0
  %319 = load ptr, ptr %318, align 8, !tbaa !21
  call void @free(ptr noundef %319) #7
  %320 = load ptr, ptr %20, align 8, !tbaa !9
  call void @free(ptr noundef %320) #7
  call void @disk_store_destroy(ptr noundef %17)
  %321 = load ptr, ptr %2, align 8, !tbaa !9
  %322 = call i32 @rmrf(ptr noundef %321)
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 20, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, 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 4, 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 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, 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 144, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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(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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 48}
!12 = !{!"giggle_index", !10, i64 0, !6, i64 8, !6, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56}
!13 = !{!12, !10, i64 24}
!14 = !{!12, !10, i64 32}
!15 = !{!12, !10, i64 16}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!12, !10, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!22, !10, i64 0}
!22 = !{!"bpt_node", !10, i64 0}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}


; 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.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }

@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@OFFSET_INDEX_FILE_NAME = external dso_local local_unnamed_addr global ptr, align 8
@CHRM_INDEX_FILE_NAME = external dso_local local_unnamed_addr global ptr, align 8
@ORDER = external dso_local local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@CACHE_FILE_NAME_PREFIX = external dso_local local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [61 x i8], align 1
@__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_left_keys = external hidden unnamed_addr constant [4 x i32], align 16
@__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_left_pointers = external hidden unnamed_addr constant [5 x i32], align 16
@__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_right_keys = external hidden unnamed_addr constant [3 x i32], align 4
@__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_right_pointers = external hidden unnamed_addr constant [4 x i32], align 16

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

declare i32 @giggle_bulk_insert_open_files(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @UnityAssertEqualNumber(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

declare void @input_file_destroy(ptr noundef) local_unnamed_addr #1

; 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: nofree nounwind
declare noundef i32 @stat(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @mkdir(ptr nocapture noundef readonly, i32 noundef) local_unnamed_addr #4

declare i32 @rmrf(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #6

; Function Attrs: nounwind
declare i32 @asprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #7

declare ptr @offset_index_init(i32 noundef, ptr noundef) local_unnamed_addr #1

declare ptr @chrm_index_init(i32 noundef, ptr noundef) local_unnamed_addr #1

declare ptr @priq_new(i32 noundef) local_unnamed_addr #1

declare void @giggle_bulk_insert_prime_pqs(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @priq_free(ptr noundef) local_unnamed_addr #1

declare void @giggle_bulk_insert_build_leaf_levels(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @giggle_bulk_insert_build_tree_on_leaves(ptr noundef) local_unnamed_addr #1

declare ptr @disk_store_load(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @disk_store_get(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare i64 @bpt_node_deserialize(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare void @giggle_index_destroy(ptr noundef) local_unnamed_addr #1

declare void @disk_store_destroy(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @test_giggle_bulk_insert_build_tree_on_leaves_few_order_4() local_unnamed_addr #8 {
  %1 = alloca %struct.stat, align 8
  %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 i64, align 8
  %12 = alloca ptr, align 8
  store i32 4, ptr @ORDER, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %1) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(144) %1, i8 0, i64 144, i1 false)
  %13 = call i32 @stat(ptr noundef nonnull @.str.9, ptr noundef nonnull %1) #9
  %14 = icmp eq i32 %13, -1
  br i1 %14, label %17, label %15

15:                                               ; preds = %0
  %16 = tail call i32 @rmrf(ptr noundef nonnull @.str.9) #9
  br label %17

17:                                               ; preds = %0, %15
  %18 = tail call i32 @mkdir(ptr noundef nonnull @.str.9, i32 noundef 448) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  %19 = tail call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #10
  store ptr %19, ptr %2, align 8, !tbaa !9
  %20 = tail call noalias ptr @strdup(ptr noundef nonnull @.str.9) #9
  %21 = getelementptr inbounds i8, ptr %19, i64 48
  store ptr %20, ptr %21, align 8, !tbaa !11
  %22 = getelementptr inbounds i8, ptr %19, i64 24
  store ptr null, ptr %22, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  store ptr null, ptr %3, align 8, !tbaa !9
  %23 = call i32 @giggle_bulk_insert_open_files(ptr noundef nonnull @.str.4, ptr noundef %20, ptr noundef nonnull %3, ptr noundef nonnull %22) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  store ptr null, ptr %4, align 8, !tbaa !9
  %24 = load ptr, ptr %21, align 8, !tbaa !11
  %25 = load ptr, ptr @OFFSET_INDEX_FILE_NAME, align 8, !tbaa !9
  %26 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.2, ptr noundef %24, ptr noundef %25) #9
  %27 = load ptr, ptr %4, align 8, !tbaa !9
  %28 = call ptr @offset_index_init(i32 noundef 1000, ptr noundef %27) #9
  %29 = getelementptr inbounds i8, ptr %19, i64 32
  store ptr %28, ptr %29, align 8, !tbaa !14
  %30 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %30) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  store ptr null, ptr %5, align 8, !tbaa !9
  %31 = load ptr, ptr %21, align 8, !tbaa !11
  %32 = load ptr, ptr @CHRM_INDEX_FILE_NAME, align 8, !tbaa !9
  %33 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %5, ptr noundef nonnull @.str.2, ptr noundef %31, ptr noundef %32) #9
  %34 = load ptr, ptr %5, align 8, !tbaa !9
  %35 = call ptr @chrm_index_init(i32 noundef 24, ptr noundef %34) #9
  %36 = getelementptr inbounds i8, ptr %19, i64 16
  store ptr %35, ptr %36, align 8, !tbaa !15
  %37 = load ptr, ptr %5, align 8, !tbaa !9
  call void @free(ptr noundef %37) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %38 = call ptr @priq_new(i32 noundef %23) #9
  store ptr %38, ptr %6, align 8, !tbaa !9
  %39 = zext i32 %23 to i64
  %40 = shl nuw nsw i64 %39, 4
  %41 = call noalias ptr @malloc(i64 noundef %40) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %42 = call ptr @priq_new(i32 noundef %23) #9
  store ptr %42, ptr %7, align 8, !tbaa !9
  %43 = load ptr, ptr %3, align 8, !tbaa !9
  call void @giggle_bulk_insert_prime_pqs(ptr noundef %19, ptr noundef nonnull %6, ptr noundef %41, ptr noundef nonnull %7, ptr noundef %43, i32 noundef %23) #9
  %44 = load ptr, ptr %3, align 8, !tbaa !9
  call void @giggle_bulk_insert_build_leaf_levels(ptr noundef %19, ptr noundef nonnull %6, ptr noundef %41, ptr noundef nonnull %7, ptr noundef %44, i32 noundef %23) #9
  %45 = load ptr, ptr %7, align 8, !tbaa !9
  call void @priq_free(ptr noundef %45) #9
  %46 = load ptr, ptr %6, align 8, !tbaa !9
  call void @priq_free(ptr noundef %46) #9
  call void @free(ptr noundef %41) #9
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %17, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %17 ]
  %47 = load ptr, ptr %3, align 8, !tbaa !9
  %48 = getelementptr inbounds ptr, ptr %47, i64 %indvars.iv
  call void @input_file_destroy(ptr noundef %48) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %39
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph, %17
  %49 = load ptr, ptr %3, align 8, !tbaa !9
  call void @free(ptr noundef %49) #9
  call void @giggle_bulk_insert_build_tree_on_leaves(ptr noundef %19) #9
  %50 = load ptr, ptr %19, align 8, !tbaa !18
  %51 = load i32, ptr %50, align 4, !tbaa !5
  call void @giggle_index_destroy(ptr noundef nonnull %2) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  store ptr null, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  store ptr null, ptr %9, align 8, !tbaa !9
  %52 = load ptr, ptr @CACHE_FILE_NAME_PREFIX, align 8, !tbaa !9
  %53 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.9, ptr noundef %52) #9
  %54 = load ptr, ptr @CACHE_FILE_NAME_PREFIX, align 8, !tbaa !9
  %55 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.9, ptr noundef %54) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %56 = load ptr, ptr %8, align 8, !tbaa !9
  %57 = load ptr, ptr %9, align 8, !tbaa !9
  %58 = call ptr @disk_store_load(ptr noundef null, ptr noundef %56, ptr noundef null, ptr noundef %57) #9
  store ptr %58, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %59 = add i32 %51, -1
  %60 = call ptr @disk_store_get(ptr noundef %58, i32 noundef %59, ptr noundef nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %61 = load i64, ptr %11, align 8, !tbaa !19
  %62 = call i64 @bpt_node_deserialize(ptr noundef %60, i64 noundef %61, ptr noundef nonnull %12) #9
  call void @free(ptr noundef %60) #9
  %63 = load ptr, ptr %12, align 8, !tbaa !9
  %64 = load ptr, ptr %63, align 8, !tbaa !21
  %65 = getelementptr inbounds i8, ptr %64, i64 20
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = zext i32 %66 to i64
  call void @UnityAssertEqualNumber(i64 noundef 1, i64 noundef %67, ptr noundef null, i64 noundef 1577, i32 noundef 148) #9
  %68 = load ptr, ptr %12, align 8, !tbaa !9
  %69 = load ptr, ptr %68, align 8, !tbaa !21
  %70 = getelementptr inbounds i8, ptr %69, i64 24
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = zext i32 %71 to i64
  call void @UnityAssertEqualNumber(i64 noundef 76, i64 noundef %72, ptr noundef null, i64 noundef 1578, i32 noundef 148) #9
  %73 = load ptr, ptr %12, align 8, !tbaa !9
  %74 = load ptr, ptr %73, align 8, !tbaa !21
  %75 = load i32, ptr @ORDER, align 4, !tbaa !5
  %76 = add i32 %75, 8
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds i32, ptr %74, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = zext i32 %79 to i64
  call void @UnityAssertEqualNumber(i64 noundef 17, i64 noundef %80, ptr noundef null, i64 noundef 1579, i32 noundef 148) #9
  %81 = load ptr, ptr %12, align 8, !tbaa !9
  %82 = load ptr, ptr %81, align 8, !tbaa !21
  %83 = load i32, ptr @ORDER, align 4, !tbaa !5
  %84 = add i32 %83, 8
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds i32, ptr %82, i64 %85
  %87 = getelementptr inbounds i8, ptr %86, i64 4
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = zext i32 %88 to i64
  call void @UnityAssertEqualNumber(i64 noundef 18, i64 noundef %89, ptr noundef null, i64 noundef 1580, i32 noundef 148) #9
  %90 = load ptr, ptr %12, align 8, !tbaa !9
  %91 = load ptr, ptr %90, align 8, !tbaa !21
  %92 = load i32, ptr @ORDER, align 4, !tbaa !5
  %93 = add i32 %92, 8
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %91, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %95, i64 4
  %98 = load i32, ptr %97, align 4, !tbaa !5
  call void @free(ptr noundef %91) #9
  %99 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %99) #9
  %100 = add i32 %96, -1
  %101 = call ptr @disk_store_get(ptr noundef %58, i32 noundef %100, ptr noundef nonnull %11) #9
  %102 = load i64, ptr %11, align 8, !tbaa !19
  %103 = call i64 @bpt_node_deserialize(ptr noundef %101, i64 noundef %102, ptr noundef nonnull %12) #9
  call void @free(ptr noundef %101) #9
  %104 = load ptr, ptr %12, align 8, !tbaa !9
  %105 = load ptr, ptr %104, align 8, !tbaa !21
  %106 = getelementptr inbounds i8, ptr %105, i64 20
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = zext i32 %107 to i64
  call void @UnityAssertEqualNumber(i64 noundef 4, i64 noundef %108, ptr noundef null, i64 noundef 1594, i32 noundef 148) #9
  %109 = load i32, ptr @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_left_keys, align 16, !tbaa !5
  %110 = zext i32 %109 to i64
  %111 = load ptr, ptr %12, align 8, !tbaa !9
  %112 = load ptr, ptr %111, align 8, !tbaa !21
  %113 = getelementptr inbounds i8, ptr %112, i64 24
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = zext i32 %114 to i64
  call void @UnityAssertEqualNumber(i64 noundef %110, i64 noundef %115, ptr noundef null, i64 noundef 1597, i32 noundef 148) #9
  %116 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_left_keys, i64 4), align 4, !tbaa !5
  %117 = zext i32 %116 to i64
  %118 = load ptr, ptr %12, align 8, !tbaa !9
  %119 = load ptr, ptr %118, align 8, !tbaa !21
  %120 = getelementptr inbounds i8, ptr %119, i64 28
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = zext i32 %121 to i64
  call void @UnityAssertEqualNumber(i64 noundef %117, i64 noundef %122, ptr noundef null, i64 noundef 1597, i32 noundef 148) #9
  %123 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_left_keys, i64 8), align 8, !tbaa !5
  %124 = zext i32 %123 to i64
  %125 = load ptr, ptr %12, align 8, !tbaa !9
  %126 = load ptr, ptr %125, align 8, !tbaa !21
  %127 = getelementptr inbounds i8, ptr %126, i64 32
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = zext i32 %128 to i64
  call void @UnityAssertEqualNumber(i64 noundef %124, i64 noundef %129, ptr noundef null, i64 noundef 1597, i32 noundef 148) #9
  %130 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_left_keys, i64 12), align 4, !tbaa !5
  %131 = zext i32 %130 to i64
  %132 = load ptr, ptr %12, align 8, !tbaa !9
  %133 = load ptr, ptr %132, align 8, !tbaa !21
  %134 = getelementptr inbounds i8, ptr %133, i64 36
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = zext i32 %135 to i64
  call void @UnityAssertEqualNumber(i64 noundef %131, i64 noundef %136, ptr noundef null, i64 noundef 1597, i32 noundef 148) #9
  %137 = load i32, ptr @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_left_pointers, align 16, !tbaa !5
  %138 = zext i32 %137 to i64
  %139 = load ptr, ptr %12, align 8, !tbaa !9
  %140 = load ptr, ptr %139, align 8, !tbaa !21
  %141 = load i32, ptr @ORDER, align 4, !tbaa !5
  %142 = add i32 %141, 8
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds i32, ptr %140, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = zext i32 %145 to i64
  call void @UnityAssertEqualNumber(i64 noundef %138, i64 noundef %146, ptr noundef null, i64 noundef 1601, i32 noundef 148) #9
  %147 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_left_pointers, i64 4), align 4, !tbaa !5
  %148 = zext i32 %147 to i64
  %149 = load ptr, ptr %12, align 8, !tbaa !9
  %150 = load ptr, ptr %149, align 8, !tbaa !21
  %151 = load i32, ptr @ORDER, align 4, !tbaa !5
  %152 = add i32 %151, 8
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds i32, ptr %150, i64 %153
  %155 = getelementptr inbounds i8, ptr %154, i64 4
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = zext i32 %156 to i64
  call void @UnityAssertEqualNumber(i64 noundef %148, i64 noundef %157, ptr noundef null, i64 noundef 1601, i32 noundef 148) #9
  %158 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_left_pointers, i64 8), align 8, !tbaa !5
  %159 = zext i32 %158 to i64
  %160 = load ptr, ptr %12, align 8, !tbaa !9
  %161 = load ptr, ptr %160, align 8, !tbaa !21
  %162 = load i32, ptr @ORDER, align 4, !tbaa !5
  %163 = add i32 %162, 8
  %164 = zext i32 %163 to i64
  %165 = getelementptr inbounds i32, ptr %161, i64 %164
  %166 = getelementptr inbounds i8, ptr %165, i64 8
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = zext i32 %167 to i64
  call void @UnityAssertEqualNumber(i64 noundef %159, i64 noundef %168, ptr noundef null, i64 noundef 1601, i32 noundef 148) #9
  %169 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_left_pointers, i64 12), align 4, !tbaa !5
  %170 = zext i32 %169 to i64
  %171 = load ptr, ptr %12, align 8, !tbaa !9
  %172 = load ptr, ptr %171, align 8, !tbaa !21
  %173 = load i32, ptr @ORDER, align 4, !tbaa !5
  %174 = add i32 %173, 8
  %175 = zext i32 %174 to i64
  %176 = getelementptr inbounds i32, ptr %172, i64 %175
  %177 = getelementptr inbounds i8, ptr %176, i64 12
  %178 = load i32, ptr %177, align 4, !tbaa !5
  %179 = zext i32 %178 to i64
  call void @UnityAssertEqualNumber(i64 noundef %170, i64 noundef %179, ptr noundef null, i64 noundef 1601, i32 noundef 148) #9
  %180 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_left_pointers, i64 16), align 16, !tbaa !5
  %181 = zext i32 %180 to i64
  %182 = load ptr, ptr %12, align 8, !tbaa !9
  %183 = load ptr, ptr %182, align 8, !tbaa !21
  %184 = load i32, ptr @ORDER, align 4, !tbaa !5
  %185 = add i32 %184, 8
  %186 = zext i32 %185 to i64
  %187 = getelementptr inbounds i32, ptr %183, i64 %186
  %188 = getelementptr inbounds i8, ptr %187, i64 16
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = zext i32 %189 to i64
  call void @UnityAssertEqualNumber(i64 noundef %181, i64 noundef %190, ptr noundef null, i64 noundef 1601, i32 noundef 148) #9
  %191 = load ptr, ptr %12, align 8, !tbaa !9
  %192 = load ptr, ptr %191, align 8, !tbaa !21
  call void @free(ptr noundef %192) #9
  %193 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %193) #9
  %194 = load ptr, ptr %10, align 8, !tbaa !9
  %195 = add i32 %98, -1
  %196 = call ptr @disk_store_get(ptr noundef %194, i32 noundef %195, ptr noundef nonnull %11) #9
  %197 = load i64, ptr %11, align 8, !tbaa !19
  %198 = call i64 @bpt_node_deserialize(ptr noundef %196, i64 noundef %197, ptr noundef nonnull %12) #9
  call void @free(ptr noundef %196) #9
  %199 = load ptr, ptr %12, align 8, !tbaa !9
  %200 = load ptr, ptr %199, align 8, !tbaa !21
  %201 = getelementptr inbounds i8, ptr %200, i64 20
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %203 = zext i32 %202 to i64
  call void @UnityAssertEqualNumber(i64 noundef 3, i64 noundef %203, ptr noundef null, i64 noundef 1612, i32 noundef 148) #9
  %204 = load i32, ptr @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_right_keys, align 4, !tbaa !5
  %205 = zext i32 %204 to i64
  %206 = load ptr, ptr %12, align 8, !tbaa !9
  %207 = load ptr, ptr %206, align 8, !tbaa !21
  %208 = getelementptr inbounds i8, ptr %207, i64 24
  %209 = load i32, ptr %208, align 4, !tbaa !5
  %210 = zext i32 %209 to i64
  call void @UnityAssertEqualNumber(i64 noundef %205, i64 noundef %210, ptr noundef null, i64 noundef 1615, i32 noundef 148) #9
  %211 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_right_keys, i64 4), align 4, !tbaa !5
  %212 = zext i32 %211 to i64
  %213 = load ptr, ptr %12, align 8, !tbaa !9
  %214 = load ptr, ptr %213, align 8, !tbaa !21
  %215 = getelementptr inbounds i8, ptr %214, i64 28
  %216 = load i32, ptr %215, align 4, !tbaa !5
  %217 = zext i32 %216 to i64
  call void @UnityAssertEqualNumber(i64 noundef %212, i64 noundef %217, ptr noundef null, i64 noundef 1615, i32 noundef 148) #9
  %218 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_right_keys, i64 8), align 4, !tbaa !5
  %219 = zext i32 %218 to i64
  %220 = load ptr, ptr %12, align 8, !tbaa !9
  %221 = load ptr, ptr %220, align 8, !tbaa !21
  %222 = getelementptr inbounds i8, ptr %221, i64 32
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %224 = zext i32 %223 to i64
  call void @UnityAssertEqualNumber(i64 noundef %219, i64 noundef %224, ptr noundef null, i64 noundef 1615, i32 noundef 148) #9
  %225 = load i32, ptr @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_right_pointers, align 16, !tbaa !5
  %226 = zext i32 %225 to i64
  %227 = load ptr, ptr %12, align 8, !tbaa !9
  %228 = load ptr, ptr %227, align 8, !tbaa !21
  %229 = load i32, ptr @ORDER, align 4, !tbaa !5
  %230 = add i32 %229, 8
  %231 = zext i32 %230 to i64
  %232 = getelementptr inbounds i32, ptr %228, i64 %231
  %233 = load i32, ptr %232, align 4, !tbaa !5
  %234 = zext i32 %233 to i64
  call void @UnityAssertEqualNumber(i64 noundef %226, i64 noundef %234, ptr noundef null, i64 noundef 1619, i32 noundef 148) #9
  %235 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_right_pointers, i64 4), align 4, !tbaa !5
  %236 = zext i32 %235 to i64
  %237 = load ptr, ptr %12, align 8, !tbaa !9
  %238 = load ptr, ptr %237, align 8, !tbaa !21
  %239 = load i32, ptr @ORDER, align 4, !tbaa !5
  %240 = add i32 %239, 8
  %241 = zext i32 %240 to i64
  %242 = getelementptr inbounds i32, ptr %238, i64 %241
  %243 = getelementptr inbounds i8, ptr %242, i64 4
  %244 = load i32, ptr %243, align 4, !tbaa !5
  %245 = zext i32 %244 to i64
  call void @UnityAssertEqualNumber(i64 noundef %236, i64 noundef %245, ptr noundef null, i64 noundef 1619, i32 noundef 148) #9
  %246 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_right_pointers, i64 8), align 8, !tbaa !5
  %247 = zext i32 %246 to i64
  %248 = load ptr, ptr %12, align 8, !tbaa !9
  %249 = load ptr, ptr %248, align 8, !tbaa !21
  %250 = load i32, ptr @ORDER, align 4, !tbaa !5
  %251 = add i32 %250, 8
  %252 = zext i32 %251 to i64
  %253 = getelementptr inbounds i32, ptr %249, i64 %252
  %254 = getelementptr inbounds i8, ptr %253, i64 8
  %255 = load i32, ptr %254, align 4, !tbaa !5
  %256 = zext i32 %255 to i64
  call void @UnityAssertEqualNumber(i64 noundef %247, i64 noundef %256, ptr noundef null, i64 noundef 1619, i32 noundef 148) #9
  %257 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_giggle_bulk_insert_build_tree_on_leaves_few_order_4.A_right_pointers, i64 12), align 4, !tbaa !5
  %258 = zext i32 %257 to i64
  %259 = load ptr, ptr %12, align 8, !tbaa !9
  %260 = load ptr, ptr %259, align 8, !tbaa !21
  %261 = load i32, ptr @ORDER, align 4, !tbaa !5
  %262 = add i32 %261, 8
  %263 = zext i32 %262 to i64
  %264 = getelementptr inbounds i32, ptr %260, i64 %263
  %265 = getelementptr inbounds i8, ptr %264, i64 12
  %266 = load i32, ptr %265, align 4, !tbaa !5
  %267 = zext i32 %266 to i64
  call void @UnityAssertEqualNumber(i64 noundef %258, i64 noundef %267, ptr noundef null, i64 noundef 1619, i32 noundef 148) #9
  %268 = load ptr, ptr %12, align 8, !tbaa !9
  %269 = load ptr, ptr %268, align 8, !tbaa !21
  call void @free(ptr noundef %269) #9
  %270 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %270) #9
  call void @disk_store_destroy(ptr noundef nonnull %10) #9
  %271 = call i32 @rmrf(ptr noundef nonnull @.str.9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %1) #9
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { 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 #6 = { mustprogress nofree nounwind willreturn 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 #7 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind 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 #9 = { nounwind }
attributes #10 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 48}
!12 = !{!"giggle_index", !10, i64 0, !6, i64 8, !6, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56}
!13 = !{!12, !10, i64 24}
!14 = !{!12, !10, i64 32}
!15 = !{!12, !10, i64 16}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!12, !10, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!22, !10, i64 0}
!22 = !{!"bpt_node", !10, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass