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

; 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.cache_def = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.cache_handler = type { ptr, ptr, ptr }
%struct.bpt_node = type { ptr }

@ORDER = external dso_local global i32, align 4
@cache = external dso_local global %struct.cache_def, align 8
@bpt_node_cache_handler = external dso_local global %struct.cache_handler, align 8
@uint32_t_cache_handler = external dso_local global %struct.cache_handler, align 8

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

declare void @UnityAssertEqualNumber(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i32 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 allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

declare ptr @bpt_new_node(i32 noundef) #1

declare i32 @bpt_find_leaf(i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @test_bpt_split_node_non_root_parent_has_room() #3 {
  %1 = alloca ptr, align 8
  %2 = alloca i32, align 4
  %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 i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  %16 = call ptr @simple_cache_init(i32 noundef 5, i32 noundef 1, ptr noundef null)
  store ptr %16, ptr %1, align 8, !tbaa !5
  store i32 4, ptr @ORDER, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %17 = load i32, ptr %2, align 4, !tbaa !9
  %18 = call ptr @bpt_new_node(i32 noundef %17)
  store ptr %18, ptr %3, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.bpt_node, ptr %19, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = getelementptr inbounds i32, ptr %21, i64 5
  store i32 1, ptr %22, align 4, !tbaa !9
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.bpt_node, ptr %23, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = getelementptr inbounds i32, ptr %25, i64 6
  %27 = getelementptr inbounds i32, ptr %26, i64 0
  store i32 9, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %28 = load i32, ptr %2, align 4, !tbaa !9
  %29 = call ptr @bpt_new_node(i32 noundef %28)
  store ptr %29, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.bpt_node, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = getelementptr inbounds i32, ptr %32, i64 5
  store i32 1, ptr %33, align 4, !tbaa !9
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.bpt_node, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  %37 = getelementptr inbounds i32, ptr %36, i64 6
  %38 = getelementptr inbounds i32, ptr %37, i64 0
  store i32 6, ptr %38, align 4, !tbaa !9
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.bpt_node, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !11
  %42 = getelementptr inbounds i32, ptr %41, i64 0
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.bpt_node, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !11
  %47 = load i32, ptr @ORDER, align 4, !tbaa !9
  %48 = add i32 6, %47
  %49 = add i32 %48, 2
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds i32, ptr %46, i64 %50
  %52 = getelementptr inbounds i32, ptr %51, i64 0
  store i32 %43, ptr %52, align 4, !tbaa !9
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.bpt_node, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !11
  %56 = getelementptr inbounds i32, ptr %55, i64 0
  %57 = load i32, ptr %56, align 4, !tbaa !9
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.bpt_node, ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !11
  %61 = getelementptr inbounds i32, ptr %60, i64 1
  store i32 %57, ptr %61, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %62 = load i32, ptr %2, align 4, !tbaa !9
  %63 = call ptr @bpt_new_node(i32 noundef %62)
  store ptr %63, ptr %5, align 8, !tbaa !5
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.bpt_node, ptr %64, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !11
  %67 = getelementptr inbounds i32, ptr %66, i64 2
  store i32 1, ptr %67, align 4, !tbaa !9
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.bpt_node, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !11
  %71 = getelementptr inbounds i32, ptr %70, i64 5
  store i32 5, ptr %71, align 4, !tbaa !9
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.bpt_node, ptr %72, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8, !tbaa !11
  %75 = getelementptr inbounds i32, ptr %74, i64 6
  %76 = getelementptr inbounds i32, ptr %75, i64 0
  store i32 1, ptr %76, align 4, !tbaa !9
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.bpt_node, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !11
  %80 = getelementptr inbounds i32, ptr %79, i64 6
  %81 = getelementptr inbounds i32, ptr %80, i64 1
  store i32 2, ptr %81, align 4, !tbaa !9
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.bpt_node, ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !11
  %85 = getelementptr inbounds i32, ptr %84, i64 6
  %86 = getelementptr inbounds i32, ptr %85, i64 2
  store i32 3, ptr %86, align 4, !tbaa !9
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.bpt_node, ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !11
  %90 = getelementptr inbounds i32, ptr %89, i64 6
  %91 = getelementptr inbounds i32, ptr %90, i64 3
  store i32 4, ptr %91, align 4, !tbaa !9
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.bpt_node, ptr %92, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = getelementptr inbounds i32, ptr %94, i64 6
  %96 = getelementptr inbounds i32, ptr %95, i64 4
  store i32 5, ptr %96, align 4, !tbaa !9
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.bpt_node, ptr %97, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8, !tbaa !11
  %100 = getelementptr inbounds i32, ptr %99, i64 0
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.bpt_node, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !11
  %105 = load i32, ptr @ORDER, align 4, !tbaa !9
  %106 = add i32 6, %105
  %107 = add i32 %106, 2
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds i32, ptr %104, i64 %108
  %110 = getelementptr inbounds i32, ptr %109, i64 0
  store i32 %101, ptr %110, align 4, !tbaa !9
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.bpt_node, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !11
  %114 = getelementptr inbounds i32, ptr %113, i64 0
  %115 = load i32, ptr %114, align 4, !tbaa !9
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.bpt_node, ptr %116, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8, !tbaa !11
  %119 = getelementptr inbounds i32, ptr %118, i64 1
  store i32 %115, ptr %119, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %120 = call noalias ptr @malloc(i64 noundef 4) #5
  store ptr %120, ptr %6, align 8, !tbaa !5
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 2, ptr %121, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %122 = call noalias ptr @malloc(i64 noundef 4) #5
  store ptr %122, ptr %7, align 8, !tbaa !5
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 3, ptr %123, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %124 = call noalias ptr @malloc(i64 noundef 4) #5
  store ptr %124, ptr %8, align 8, !tbaa !5
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 4, ptr %125, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %126 = call noalias ptr @malloc(i64 noundef 4) #5
  store ptr %126, ptr %9, align 8, !tbaa !5
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 5, ptr %127, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %128 = call noalias ptr @malloc(i64 noundef 4) #5
  store ptr %128, ptr %10, align 8, !tbaa !5
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 6, ptr %129, align 4, !tbaa !9
  %130 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 1), align 8, !tbaa !13
  %131 = load i32, ptr %2, align 4, !tbaa !9
  %132 = call i32 %130(i32 noundef %131)
  %133 = add i32 %132, 1
  %134 = zext i32 %133 to i64
  call void @UnityAssertEqualNumber(i64 noundef 4, i64 noundef %134, ptr noundef null, i64 noundef 313, i32 noundef 148)
  %135 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 1), align 8, !tbaa !13
  %136 = load i32, ptr %2, align 4, !tbaa !9
  %137 = call i32 %135(i32 noundef %136)
  %138 = add i32 %137, 1
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.bpt_node, ptr %139, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8, !tbaa !11
  %142 = load i32, ptr @ORDER, align 4, !tbaa !9
  %143 = add i32 6, %142
  %144 = add i32 %143, 2
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds i32, ptr %141, i64 %145
  %147 = getelementptr inbounds i32, ptr %146, i64 0
  store i32 %138, ptr %147, align 4, !tbaa !9
  %148 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 2), align 8, !tbaa !15
  %149 = load i32, ptr %2, align 4, !tbaa !9
  %150 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 1), align 8, !tbaa !13
  %151 = load i32, ptr %2, align 4, !tbaa !9
  %152 = call i32 %150(i32 noundef %151)
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  call void %148(i32 noundef %149, i32 noundef %152, ptr noundef %153, i64 noundef 4, ptr noundef @uint32_t_cache_handler)
  %154 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 1), align 8, !tbaa !13
  %155 = load i32, ptr %2, align 4, !tbaa !9
  %156 = call i32 %154(i32 noundef %155)
  %157 = add i32 %156, 1
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.bpt_node, ptr %158, i32 0, i32 0
  %160 = load ptr, ptr %159, align 8, !tbaa !11
  %161 = load i32, ptr @ORDER, align 4, !tbaa !9
  %162 = add i32 6, %161
  %163 = add i32 %162, 2
  %164 = zext i32 %163 to i64
  %165 = getelementptr inbounds i32, ptr %160, i64 %164
  %166 = getelementptr inbounds i32, ptr %165, i64 1
  store i32 %157, ptr %166, align 4, !tbaa !9
  %167 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 2), align 8, !tbaa !15
  %168 = load i32, ptr %2, align 4, !tbaa !9
  %169 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 1), align 8, !tbaa !13
  %170 = load i32, ptr %2, align 4, !tbaa !9
  %171 = call i32 %169(i32 noundef %170)
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  call void %167(i32 noundef %168, i32 noundef %171, ptr noundef %172, i64 noundef 4, ptr noundef @uint32_t_cache_handler)
  %173 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 1), align 8, !tbaa !13
  %174 = load i32, ptr %2, align 4, !tbaa !9
  %175 = call i32 %173(i32 noundef %174)
  %176 = add i32 %175, 1
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.bpt_node, ptr %177, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8, !tbaa !11
  %180 = load i32, ptr @ORDER, align 4, !tbaa !9
  %181 = add i32 6, %180
  %182 = add i32 %181, 2
  %183 = zext i32 %182 to i64
  %184 = getelementptr inbounds i32, ptr %179, i64 %183
  %185 = getelementptr inbounds i32, ptr %184, i64 2
  store i32 %176, ptr %185, align 4, !tbaa !9
  %186 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 2), align 8, !tbaa !15
  %187 = load i32, ptr %2, align 4, !tbaa !9
  %188 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 1), align 8, !tbaa !13
  %189 = load i32, ptr %2, align 4, !tbaa !9
  %190 = call i32 %188(i32 noundef %189)
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  call void %186(i32 noundef %187, i32 noundef %190, ptr noundef %191, i64 noundef 4, ptr noundef @uint32_t_cache_handler)
  %192 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 1), align 8, !tbaa !13
  %193 = load i32, ptr %2, align 4, !tbaa !9
  %194 = call i32 %192(i32 noundef %193)
  %195 = add i32 %194, 1
  %196 = load ptr, ptr %5, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.bpt_node, ptr %196, i32 0, i32 0
  %198 = load ptr, ptr %197, align 8, !tbaa !11
  %199 = load i32, ptr @ORDER, align 4, !tbaa !9
  %200 = add i32 6, %199
  %201 = add i32 %200, 2
  %202 = zext i32 %201 to i64
  %203 = getelementptr inbounds i32, ptr %198, i64 %202
  %204 = getelementptr inbounds i32, ptr %203, i64 3
  store i32 %195, ptr %204, align 4, !tbaa !9
  %205 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 2), align 8, !tbaa !15
  %206 = load i32, ptr %2, align 4, !tbaa !9
  %207 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 1), align 8, !tbaa !13
  %208 = load i32, ptr %2, align 4, !tbaa !9
  %209 = call i32 %207(i32 noundef %208)
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  call void %205(i32 noundef %206, i32 noundef %209, ptr noundef %210, i64 noundef 4, ptr noundef @uint32_t_cache_handler)
  %211 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 1), align 8, !tbaa !13
  %212 = load i32, ptr %2, align 4, !tbaa !9
  %213 = call i32 %211(i32 noundef %212)
  %214 = add i32 %213, 1
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.bpt_node, ptr %215, i32 0, i32 0
  %217 = load ptr, ptr %216, align 8, !tbaa !11
  %218 = load i32, ptr @ORDER, align 4, !tbaa !9
  %219 = add i32 6, %218
  %220 = add i32 %219, 2
  %221 = zext i32 %220 to i64
  %222 = getelementptr inbounds i32, ptr %217, i64 %221
  %223 = getelementptr inbounds i32, ptr %222, i64 4
  store i32 %214, ptr %223, align 4, !tbaa !9
  %224 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 2), align 8, !tbaa !15
  %225 = load i32, ptr %2, align 4, !tbaa !9
  %226 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 1), align 8, !tbaa !13
  %227 = load i32, ptr %2, align 4, !tbaa !9
  %228 = call i32 %226(i32 noundef %227)
  %229 = load ptr, ptr %10, align 8, !tbaa !5
  call void %224(i32 noundef %225, i32 noundef %228, ptr noundef %229, i64 noundef 4, ptr noundef @uint32_t_cache_handler)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %230 = load i32, ptr %2, align 4, !tbaa !9
  %231 = load ptr, ptr %3, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.bpt_node, ptr %231, i32 0, i32 0
  %233 = load ptr, ptr %232, align 8, !tbaa !11
  %234 = getelementptr inbounds i32, ptr %233, i64 0
  %235 = load i32, ptr %234, align 4, !tbaa !9
  %236 = load ptr, ptr %5, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.bpt_node, ptr %236, i32 0, i32 0
  %238 = load ptr, ptr %237, align 8, !tbaa !11
  %239 = getelementptr inbounds i32, ptr %238, i64 0
  %240 = load i32, ptr %239, align 4, !tbaa !9
  %241 = call i32 @bpt_split_node(i32 noundef %230, i32 noundef %235, i32 noundef %240, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef null)
  store i32 %241, ptr %14, align 4, !tbaa !9
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.bpt_node, ptr %242, i32 0, i32 0
  %244 = load ptr, ptr %243, align 8, !tbaa !11
  %245 = getelementptr inbounds i32, ptr %244, i64 0
  %246 = load i32, ptr %245, align 4, !tbaa !9
  %247 = zext i32 %246 to i64
  %248 = load i32, ptr %11, align 4, !tbaa !9
  %249 = zext i32 %248 to i64
  call void @UnityAssertEqualNumber(i64 noundef %247, i64 noundef %249, ptr noundef null, i64 noundef 362, i32 noundef 148)
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.bpt_node, ptr %250, i32 0, i32 0
  %252 = load ptr, ptr %251, align 8, !tbaa !11
  %253 = getelementptr inbounds i32, ptr %252, i64 4
  %254 = load i32, ptr %253, align 4, !tbaa !9
  %255 = zext i32 %254 to i64
  %256 = load i32, ptr %12, align 4, !tbaa !9
  %257 = zext i32 %256 to i64
  call void @UnityAssertEqualNumber(i64 noundef %255, i64 noundef %257, ptr noundef null, i64 noundef 363, i32 noundef 148)
  %258 = load i32, ptr %13, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  call void @UnityAssertEqualNumber(i64 noundef 2, i64 noundef %259, ptr noundef null, i64 noundef 364, i32 noundef 148)
  %260 = load ptr, ptr %5, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.bpt_node, ptr %260, i32 0, i32 0
  %262 = load ptr, ptr %261, align 8, !tbaa !11
  %263 = getelementptr inbounds i32, ptr %262, i64 5
  %264 = load i32, ptr %263, align 4, !tbaa !9
  %265 = zext i32 %264 to i64
  call void @UnityAssertEqualNumber(i64 noundef 2, i64 noundef %265, ptr noundef null, i64 noundef 367, i32 noundef 148)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %266 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 3), align 8, !tbaa !16
  %267 = load i32, ptr %2, align 4, !tbaa !9
  %268 = load i32, ptr %12, align 4, !tbaa !9
  %269 = sub i32 %268, 1
  %270 = call ptr %266(i32 noundef %267, i32 noundef %269, ptr noundef @bpt_node_cache_handler)
  store ptr %270, ptr %15, align 8, !tbaa !5
  %271 = load ptr, ptr %15, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.bpt_node, ptr %271, i32 0, i32 0
  %273 = load ptr, ptr %272, align 8, !tbaa !11
  %274 = getelementptr inbounds i32, ptr %273, i64 5
  %275 = load i32, ptr %274, align 4, !tbaa !9
  %276 = zext i32 %275 to i64
  call void @UnityAssertEqualNumber(i64 noundef 3, i64 noundef %276, ptr noundef null, i64 noundef 371, i32 noundef 148)
  %277 = load ptr, ptr %4, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.bpt_node, ptr %277, i32 0, i32 0
  %279 = load ptr, ptr %278, align 8, !tbaa !11
  %280 = getelementptr inbounds i32, ptr %279, i64 5
  %281 = load i32, ptr %280, align 4, !tbaa !9
  %282 = zext i32 %281 to i64
  call void @UnityAssertEqualNumber(i64 noundef 2, i64 noundef %282, ptr noundef null, i64 noundef 372, i32 noundef 148)
  %283 = load ptr, ptr %4, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.bpt_node, ptr %283, i32 0, i32 0
  %285 = load ptr, ptr %284, align 8, !tbaa !11
  %286 = getelementptr inbounds i32, ptr %285, i64 6
  %287 = getelementptr inbounds i32, ptr %286, i64 0
  %288 = load i32, ptr %287, align 4, !tbaa !9
  %289 = zext i32 %288 to i64
  call void @UnityAssertEqualNumber(i64 noundef 3, i64 noundef %289, ptr noundef null, i64 noundef 373, i32 noundef 148)
  %290 = load ptr, ptr %4, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.bpt_node, ptr %290, i32 0, i32 0
  %292 = load ptr, ptr %291, align 8, !tbaa !11
  %293 = getelementptr inbounds i32, ptr %292, i64 6
  %294 = getelementptr inbounds i32, ptr %293, i64 1
  %295 = load i32, ptr %294, align 4, !tbaa !9
  %296 = zext i32 %295 to i64
  call void @UnityAssertEqualNumber(i64 noundef 6, i64 noundef %296, ptr noundef null, i64 noundef 374, i32 noundef 148)
  %297 = load i32, ptr %11, align 4, !tbaa !9
  %298 = zext i32 %297 to i64
  %299 = load ptr, ptr %4, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.bpt_node, ptr %299, i32 0, i32 0
  %301 = load ptr, ptr %300, align 8, !tbaa !11
  %302 = load i32, ptr @ORDER, align 4, !tbaa !9
  %303 = add i32 6, %302
  %304 = add i32 %303, 2
  %305 = zext i32 %304 to i64
  %306 = getelementptr inbounds i32, ptr %301, i64 %305
  %307 = getelementptr inbounds i32, ptr %306, i64 0
  %308 = load i32, ptr %307, align 4, !tbaa !9
  %309 = zext i32 %308 to i64
  call void @UnityAssertEqualNumber(i64 noundef %298, i64 noundef %309, ptr noundef null, i64 noundef 375, i32 noundef 148)
  %310 = load i32, ptr %12, align 4, !tbaa !9
  %311 = zext i32 %310 to i64
  %312 = load ptr, ptr %4, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.bpt_node, ptr %312, i32 0, i32 0
  %314 = load ptr, ptr %313, align 8, !tbaa !11
  %315 = load i32, ptr @ORDER, align 4, !tbaa !9
  %316 = add i32 6, %315
  %317 = add i32 %316, 2
  %318 = zext i32 %317 to i64
  %319 = getelementptr inbounds i32, ptr %314, i64 %318
  %320 = getelementptr inbounds i32, ptr %319, i64 1
  %321 = load i32, ptr %320, align 4, !tbaa !9
  %322 = zext i32 %321 to i64
  call void @UnityAssertEqualNumber(i64 noundef %311, i64 noundef %322, ptr noundef null, i64 noundef 376, i32 noundef 148)
  %323 = load i32, ptr %11, align 4, !tbaa !9
  %324 = zext i32 %323 to i64
  %325 = load i32, ptr %2, align 4, !tbaa !9
  %326 = load i32, ptr %14, align 4, !tbaa !9
  %327 = call i32 @bpt_find_leaf(i32 noundef %325, i32 noundef %326, i32 noundef 1)
  %328 = zext i32 %327 to i64
  call void @UnityAssertEqualNumber(i64 noundef %324, i64 noundef %328, ptr noundef null, i64 noundef 378, i32 noundef 148)
  %329 = load i32, ptr %11, align 4, !tbaa !9
  %330 = zext i32 %329 to i64
  %331 = load i32, ptr %2, align 4, !tbaa !9
  %332 = load i32, ptr %14, align 4, !tbaa !9
  %333 = call i32 @bpt_find_leaf(i32 noundef %331, i32 noundef %332, i32 noundef 2)
  %334 = zext i32 %333 to i64
  call void @UnityAssertEqualNumber(i64 noundef %330, i64 noundef %334, ptr noundef null, i64 noundef 379, i32 noundef 148)
  %335 = load i32, ptr %12, align 4, !tbaa !9
  %336 = zext i32 %335 to i64
  %337 = load i32, ptr %2, align 4, !tbaa !9
  %338 = load i32, ptr %14, align 4, !tbaa !9
  %339 = call i32 @bpt_find_leaf(i32 noundef %337, i32 noundef %338, i32 noundef 3)
  %340 = zext i32 %339 to i64
  call void @UnityAssertEqualNumber(i64 noundef %336, i64 noundef %340, ptr noundef null, i64 noundef 380, i32 noundef 148)
  %341 = load i32, ptr %12, align 4, !tbaa !9
  %342 = zext i32 %341 to i64
  %343 = load i32, ptr %2, align 4, !tbaa !9
  %344 = load i32, ptr %14, align 4, !tbaa !9
  %345 = call i32 @bpt_find_leaf(i32 noundef %343, i32 noundef %344, i32 noundef 4)
  %346 = zext i32 %345 to i64
  call void @UnityAssertEqualNumber(i64 noundef %342, i64 noundef %346, ptr noundef null, i64 noundef 381, i32 noundef 148)
  %347 = load i32, ptr %12, align 4, !tbaa !9
  %348 = zext i32 %347 to i64
  %349 = load i32, ptr %2, align 4, !tbaa !9
  %350 = load i32, ptr %14, align 4, !tbaa !9
  %351 = call i32 @bpt_find_leaf(i32 noundef %349, i32 noundef %350, i32 noundef 5)
  %352 = zext i32 %351 to i64
  call void @UnityAssertEqualNumber(i64 noundef %348, i64 noundef %352, ptr noundef null, i64 noundef 382, i32 noundef 148)
  %353 = load ptr, ptr getelementptr inbounds (%struct.cache_def, ptr @cache, i32 0, i32 6), align 8, !tbaa !17
  call void (...) %353()
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret void
}

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

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 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 #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"bpt_node", !6, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"cache_def", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!15 = !{!14, !6, i64 16}
!16 = !{!14, !6, i64 24}
!17 = !{!14, !6, i64 48}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.cache_def = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.cache_handler = type { ptr, ptr, ptr }

@ORDER = external dso_local local_unnamed_addr global i32, align 4
@cache = external dso_local local_unnamed_addr global %struct.cache_def, align 8
@bpt_node_cache_handler = external dso_local global %struct.cache_handler, align 8
@uint32_t_cache_handler = external dso_local global %struct.cache_handler, align 8

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

declare void @UnityAssertEqualNumber(i64 noundef, i64 noundef, ptr noundef, i64 noundef, i32 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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

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

declare ptr @bpt_new_node(i32 noundef) local_unnamed_addr #1

declare i32 @bpt_find_leaf(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @test_bpt_split_node_non_root_parent_has_room() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = tail call ptr @simple_cache_init(i32 noundef 5, i32 noundef 1, ptr noundef null) #4
  store i32 4, ptr @ORDER, align 4, !tbaa !5
  %5 = tail call ptr @bpt_new_node(i32 noundef 0) #4
  %6 = load ptr, ptr %5, align 8, !tbaa !9
  %7 = getelementptr inbounds i8, ptr %6, i64 20
  store i32 1, ptr %7, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %6, i64 24
  store i32 9, ptr %8, align 4, !tbaa !5
  %9 = tail call ptr @bpt_new_node(i32 noundef 0) #4
  %10 = load ptr, ptr %9, align 8, !tbaa !9
  %11 = getelementptr inbounds i8, ptr %10, i64 20
  store i32 1, ptr %11, align 4, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %10, i64 24
  store i32 6, ptr %12, align 4, !tbaa !5
  %13 = load i32, ptr %10, align 4, !tbaa !5
  %14 = load ptr, ptr %5, align 8, !tbaa !9
  %15 = load i32, ptr @ORDER, align 4, !tbaa !5
  %16 = add i32 %15, 8
  %17 = zext i32 %16 to i64
  %18 = getelementptr inbounds i32, ptr %14, i64 %17
  store i32 %13, ptr %18, align 4, !tbaa !5
  %19 = load i32, ptr %14, align 4, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %10, i64 4
  store i32 %19, ptr %20, align 4, !tbaa !5
  %21 = tail call ptr @bpt_new_node(i32 noundef 0) #4
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = getelementptr inbounds i8, ptr %22, i64 8
  store i32 1, ptr %23, align 4, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %22, i64 20
  store <4 x i32> <i32 5, i32 1, i32 2, i32 3>, ptr %24, align 4, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %22, i64 36
  store i32 4, ptr %25, align 4, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %22, i64 40
  store i32 5, ptr %26, align 4, !tbaa !5
  %27 = load i32, ptr %22, align 4, !tbaa !5
  %28 = load ptr, ptr %9, align 8, !tbaa !9
  %29 = load i32, ptr @ORDER, align 4, !tbaa !5
  %30 = add i32 %29, 8
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds i32, ptr %28, i64 %31
  store i32 %27, ptr %32, align 4, !tbaa !5
  %33 = load i32, ptr %28, align 4, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %22, i64 4
  store i32 %33, ptr %34, align 4, !tbaa !5
  %35 = tail call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #5
  store i32 2, ptr %35, align 4, !tbaa !5
  %36 = tail call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #5
  store i32 3, ptr %36, align 4, !tbaa !5
  %37 = tail call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #5
  store i32 4, ptr %37, align 4, !tbaa !5
  %38 = tail call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #5
  store i32 5, ptr %38, align 4, !tbaa !5
  %39 = tail call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #5
  store i32 6, ptr %39, align 4, !tbaa !5
  %40 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 8), align 8, !tbaa !12
  %41 = tail call i32 %40(i32 noundef 0) #4
  %42 = add i32 %41, 1
  %43 = zext i32 %42 to i64
  tail call void @UnityAssertEqualNumber(i64 noundef 4, i64 noundef %43, ptr noundef null, i64 noundef 313, i32 noundef 148) #4
  %44 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 8), align 8, !tbaa !12
  %45 = tail call i32 %44(i32 noundef 0) #4
  %46 = add i32 %45, 1
  %47 = load ptr, ptr %21, align 8, !tbaa !9
  %48 = load i32, ptr @ORDER, align 4, !tbaa !5
  %49 = add i32 %48, 8
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds i32, ptr %47, i64 %50
  store i32 %46, ptr %51, align 4, !tbaa !5
  %52 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 16), align 8, !tbaa !14
  %53 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 8), align 8, !tbaa !12
  %54 = tail call i32 %53(i32 noundef 0) #4
  tail call void %52(i32 noundef 0, i32 noundef %54, ptr noundef nonnull %35, i64 noundef 4, ptr noundef nonnull @uint32_t_cache_handler) #4
  %55 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 8), align 8, !tbaa !12
  %56 = tail call i32 %55(i32 noundef 0) #4
  %57 = add i32 %56, 1
  %58 = load ptr, ptr %21, align 8, !tbaa !9
  %59 = load i32, ptr @ORDER, align 4, !tbaa !5
  %60 = add i32 %59, 8
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds i32, ptr %58, i64 %61
  %63 = getelementptr inbounds i8, ptr %62, i64 4
  store i32 %57, ptr %63, align 4, !tbaa !5
  %64 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 16), align 8, !tbaa !14
  %65 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 8), align 8, !tbaa !12
  %66 = tail call i32 %65(i32 noundef 0) #4
  tail call void %64(i32 noundef 0, i32 noundef %66, ptr noundef nonnull %36, i64 noundef 4, ptr noundef nonnull @uint32_t_cache_handler) #4
  %67 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 8), align 8, !tbaa !12
  %68 = tail call i32 %67(i32 noundef 0) #4
  %69 = add i32 %68, 1
  %70 = load ptr, ptr %21, align 8, !tbaa !9
  %71 = load i32, ptr @ORDER, align 4, !tbaa !5
  %72 = add i32 %71, 8
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds i32, ptr %70, i64 %73
  %75 = getelementptr inbounds i8, ptr %74, i64 8
  store i32 %69, ptr %75, align 4, !tbaa !5
  %76 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 16), align 8, !tbaa !14
  %77 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 8), align 8, !tbaa !12
  %78 = tail call i32 %77(i32 noundef 0) #4
  tail call void %76(i32 noundef 0, i32 noundef %78, ptr noundef nonnull %37, i64 noundef 4, ptr noundef nonnull @uint32_t_cache_handler) #4
  %79 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 8), align 8, !tbaa !12
  %80 = tail call i32 %79(i32 noundef 0) #4
  %81 = add i32 %80, 1
  %82 = load ptr, ptr %21, align 8, !tbaa !9
  %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 12
  store i32 %81, ptr %87, align 4, !tbaa !5
  %88 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 16), align 8, !tbaa !14
  %89 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 8), align 8, !tbaa !12
  %90 = tail call i32 %89(i32 noundef 0) #4
  tail call void %88(i32 noundef 0, i32 noundef %90, ptr noundef nonnull %38, i64 noundef 4, ptr noundef nonnull @uint32_t_cache_handler) #4
  %91 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 8), align 8, !tbaa !12
  %92 = tail call i32 %91(i32 noundef 0) #4
  %93 = add i32 %92, 1
  %94 = load ptr, ptr %21, align 8, !tbaa !9
  %95 = load i32, ptr @ORDER, align 4, !tbaa !5
  %96 = add i32 %95, 8
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %94, i64 %97
  %99 = getelementptr inbounds i8, ptr %98, i64 16
  store i32 %93, ptr %99, align 4, !tbaa !5
  %100 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 16), align 8, !tbaa !14
  %101 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 8), align 8, !tbaa !12
  %102 = tail call i32 %101(i32 noundef 0) #4
  tail call void %100(i32 noundef 0, i32 noundef %102, ptr noundef nonnull %39, i64 noundef 4, ptr noundef nonnull @uint32_t_cache_handler) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %103 = load ptr, ptr %5, align 8, !tbaa !9
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = load ptr, ptr %21, align 8, !tbaa !9
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = call i32 @bpt_split_node(i32 noundef 0, i32 noundef %104, i32 noundef %106, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef null) #4
  %108 = load ptr, ptr %21, align 8, !tbaa !9
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = zext i32 %109 to i64
  %111 = load i32, ptr %1, align 4, !tbaa !5
  %112 = zext i32 %111 to i64
  call void @UnityAssertEqualNumber(i64 noundef %110, i64 noundef %112, ptr noundef null, i64 noundef 362, i32 noundef 148) #4
  %113 = load ptr, ptr %21, align 8, !tbaa !9
  %114 = getelementptr inbounds i8, ptr %113, i64 16
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = zext i32 %115 to i64
  %117 = load i32, ptr %2, align 4, !tbaa !5
  %118 = zext i32 %117 to i64
  call void @UnityAssertEqualNumber(i64 noundef %116, i64 noundef %118, ptr noundef null, i64 noundef 363, i32 noundef 148) #4
  %119 = load i32, ptr %3, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  call void @UnityAssertEqualNumber(i64 noundef 2, i64 noundef %120, ptr noundef null, i64 noundef 364, i32 noundef 148) #4
  %121 = load ptr, ptr %21, align 8, !tbaa !9
  %122 = getelementptr inbounds i8, ptr %121, i64 20
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = zext i32 %123 to i64
  call void @UnityAssertEqualNumber(i64 noundef 2, i64 noundef %124, ptr noundef null, i64 noundef 367, i32 noundef 148) #4
  %125 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 24), align 8, !tbaa !15
  %126 = load i32, ptr %2, align 4, !tbaa !5
  %127 = add i32 %126, -1
  %128 = call ptr %125(i32 noundef 0, i32 noundef %127, ptr noundef nonnull @bpt_node_cache_handler) #4
  %129 = load ptr, ptr %128, align 8, !tbaa !9
  %130 = getelementptr inbounds i8, ptr %129, i64 20
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = zext i32 %131 to i64
  call void @UnityAssertEqualNumber(i64 noundef 3, i64 noundef %132, ptr noundef null, i64 noundef 371, i32 noundef 148) #4
  %133 = load ptr, ptr %9, align 8, !tbaa !9
  %134 = getelementptr inbounds i8, ptr %133, i64 20
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = zext i32 %135 to i64
  call void @UnityAssertEqualNumber(i64 noundef 2, i64 noundef %136, ptr noundef null, i64 noundef 372, i32 noundef 148) #4
  %137 = load ptr, ptr %9, align 8, !tbaa !9
  %138 = getelementptr inbounds i8, ptr %137, i64 24
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = zext i32 %139 to i64
  call void @UnityAssertEqualNumber(i64 noundef 3, i64 noundef %140, ptr noundef null, i64 noundef 373, i32 noundef 148) #4
  %141 = load ptr, ptr %9, align 8, !tbaa !9
  %142 = getelementptr inbounds i8, ptr %141, i64 28
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = zext i32 %143 to i64
  call void @UnityAssertEqualNumber(i64 noundef 6, i64 noundef %144, ptr noundef null, i64 noundef 374, i32 noundef 148) #4
  %145 = load i32, ptr %1, align 4, !tbaa !5
  %146 = zext i32 %145 to i64
  %147 = load ptr, ptr %9, align 8, !tbaa !9
  %148 = load i32, ptr @ORDER, align 4, !tbaa !5
  %149 = add i32 %148, 8
  %150 = zext i32 %149 to i64
  %151 = getelementptr inbounds i32, ptr %147, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = zext i32 %152 to i64
  call void @UnityAssertEqualNumber(i64 noundef %146, i64 noundef %153, ptr noundef null, i64 noundef 375, i32 noundef 148) #4
  %154 = load i32, ptr %2, align 4, !tbaa !5
  %155 = zext i32 %154 to i64
  %156 = load ptr, ptr %9, align 8, !tbaa !9
  %157 = load i32, ptr @ORDER, align 4, !tbaa !5
  %158 = add i32 %157, 8
  %159 = zext i32 %158 to i64
  %160 = getelementptr inbounds i32, ptr %156, i64 %159
  %161 = getelementptr inbounds i8, ptr %160, i64 4
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = zext i32 %162 to i64
  call void @UnityAssertEqualNumber(i64 noundef %155, i64 noundef %163, ptr noundef null, i64 noundef 376, i32 noundef 148) #4
  %164 = load i32, ptr %1, align 4, !tbaa !5
  %165 = zext i32 %164 to i64
  %166 = call i32 @bpt_find_leaf(i32 noundef 0, i32 noundef %107, i32 noundef 1) #4
  %167 = zext i32 %166 to i64
  call void @UnityAssertEqualNumber(i64 noundef %165, i64 noundef %167, ptr noundef null, i64 noundef 378, i32 noundef 148) #4
  %168 = load i32, ptr %1, align 4, !tbaa !5
  %169 = zext i32 %168 to i64
  %170 = call i32 @bpt_find_leaf(i32 noundef 0, i32 noundef %107, i32 noundef 2) #4
  %171 = zext i32 %170 to i64
  call void @UnityAssertEqualNumber(i64 noundef %169, i64 noundef %171, ptr noundef null, i64 noundef 379, i32 noundef 148) #4
  %172 = load i32, ptr %2, align 4, !tbaa !5
  %173 = zext i32 %172 to i64
  %174 = call i32 @bpt_find_leaf(i32 noundef 0, i32 noundef %107, i32 noundef 3) #4
  %175 = zext i32 %174 to i64
  call void @UnityAssertEqualNumber(i64 noundef %173, i64 noundef %175, ptr noundef null, i64 noundef 380, i32 noundef 148) #4
  %176 = load i32, ptr %2, align 4, !tbaa !5
  %177 = zext i32 %176 to i64
  %178 = call i32 @bpt_find_leaf(i32 noundef 0, i32 noundef %107, i32 noundef 4) #4
  %179 = zext i32 %178 to i64
  call void @UnityAssertEqualNumber(i64 noundef %177, i64 noundef %179, ptr noundef null, i64 noundef 381, i32 noundef 148) #4
  %180 = load i32, ptr %2, align 4, !tbaa !5
  %181 = zext i32 %180 to i64
  %182 = call i32 @bpt_find_leaf(i32 noundef 0, i32 noundef %107, i32 noundef 5) #4
  %183 = zext i32 %182 to i64
  call void @UnityAssertEqualNumber(i64 noundef %181, i64 noundef %183, ptr noundef null, i64 noundef 382, i32 noundef 148) #4
  %184 = load ptr, ptr getelementptr inbounds (i8, ptr @cache, i64 48), align 8, !tbaa !16
  call void (...) %184() #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret void
}

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

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 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 #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { 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, !11, i64 0}
!10 = !{!"bpt_node", !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !11, i64 8}
!13 = !{!"cache_def", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!14 = !{!13, !11, i64 16}
!15 = !{!13, !11, i64 24}
!16 = !{!13, !11, i64 48}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,TailCallElimPass