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

; 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.disk_store = type { ptr, ptr, ptr, ptr, i32, i32, i64, i64, ptr, ptr, i8, ptr }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@__const.test_disk_store.V = external hidden unnamed_addr constant [11 x i32], align 16

; Function Attrs: nounwind uwtable
define dso_local void @test_disk_store() #0 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [11 x i32], align 16
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  store ptr @.str, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  store ptr @.str.1, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %10 = load ptr, ptr %1, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = call ptr @disk_store_init(i32 noundef 10, ptr noundef %3, ptr noundef %10, ptr noundef %4, ptr noundef %11)
  store ptr %12, ptr %5, align 8, !tbaa !5
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.disk_store, ptr %13, i32 0, i32 5
  %15 = load i32, ptr %14, align 4, !tbaa !9
  %16 = zext i32 %15 to i64
  call void @UnityAssertEqualNumber(i64 noundef 0, i64 noundef %16, ptr noundef null, i64 noundef 26, i32 noundef 148)
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.disk_store, ptr %17, i32 0, i32 4
  %19 = load i32, ptr %18, align 8, !tbaa !13
  %20 = zext i32 %19 to i64
  call void @UnityAssertEqualNumber(i64 noundef 10, i64 noundef %20, ptr noundef null, i64 noundef 27, i32 noundef 148)
  call void @llvm.lifetime.start.p0(i64 44, ptr %6) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.test_disk_store.V, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 0
  %23 = call i32 @disk_store_append(ptr noundef %21, ptr noundef %22, i64 noundef 4)
  store i32 %23, ptr %7, align 4, !tbaa !14
  %24 = load i32, ptr %7, align 4, !tbaa !14
  %25 = zext i32 %24 to i64
  call void @UnityAssertEqualNumber(i64 noundef 0, i64 noundef %25, ptr noundef null, i64 noundef 32, i32 noundef 148)
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 0
  %28 = getelementptr inbounds i32, ptr %27, i64 1
  %29 = call i32 @disk_store_append(ptr noundef %26, ptr noundef %28, i64 noundef 4)
  store i32 %29, ptr %7, align 4, !tbaa !14
  %30 = load i32, ptr %7, align 4, !tbaa !14
  %31 = zext i32 %30 to i64
  call void @UnityAssertEqualNumber(i64 noundef 1, i64 noundef %31, ptr noundef null, i64 noundef 35, i32 noundef 148)
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 0
  %34 = getelementptr inbounds i32, ptr %33, i64 2
  %35 = call i32 @disk_store_append(ptr noundef %32, ptr noundef %34, i64 noundef 4)
  store i32 %35, ptr %7, align 4, !tbaa !14
  %36 = load i32, ptr %7, align 4, !tbaa !14
  %37 = zext i32 %36 to i64
  call void @UnityAssertEqualNumber(i64 noundef 2, i64 noundef %37, ptr noundef null, i64 noundef 38, i32 noundef 148)
  call void @disk_store_destroy(ptr noundef %5)
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = ptrtoint ptr %38 to i64
  call void @UnityAssertEqualNumber(i64 noundef 0, i64 noundef %39, ptr noundef null, i64 noundef 41, i32 noundef 148)
  store ptr null, ptr %3, align 8, !tbaa !5
  store ptr null, ptr %4, align 8, !tbaa !5
  %40 = load ptr, ptr %1, align 8, !tbaa !5
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = call ptr @disk_store_load(ptr noundef %3, ptr noundef %40, ptr noundef %4, ptr noundef %41)
  store ptr %42, ptr %5, align 8, !tbaa !5
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.disk_store, ptr %43, i32 0, i32 5
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  call void @UnityAssertEqualNumber(i64 noundef 3, i64 noundef %46, ptr noundef null, i64 noundef 52, i32 noundef 148)
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.disk_store, ptr %47, i32 0, i32 4
  %49 = load i32, ptr %48, align 8, !tbaa !13
  %50 = zext i32 %49 to i64
  call void @UnityAssertEqualNumber(i64 noundef 10, i64 noundef %50, ptr noundef null, i64 noundef 53, i32 noundef 148)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = call ptr @disk_store_get(ptr noundef %51, i32 noundef 2, ptr noundef %8)
  store ptr %52, ptr %9, align 8, !tbaa !5
  %53 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 2
  %54 = load i32, ptr %53, align 8, !tbaa !14
  %55 = zext i32 %54 to i64
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = load i32, ptr %56, align 4, !tbaa !14
  %58 = zext i32 %57 to i64
  call void @UnityAssertEqualNumber(i64 noundef %55, i64 noundef %58, ptr noundef null, i64 noundef 58, i32 noundef 148)
  %59 = load i64, ptr %8, align 8, !tbaa !15
  call void @UnityAssertEqualNumber(i64 noundef 4, i64 noundef %59, ptr noundef null, i64 noundef 59, i32 noundef 148)
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 0
  %62 = getelementptr inbounds i32, ptr %61, i64 3
  %63 = call i32 @disk_store_append(ptr noundef %60, ptr noundef %62, i64 noundef 4)
  store i32 %63, ptr %7, align 4, !tbaa !14
  %64 = load i32, ptr %7, align 4, !tbaa !14
  %65 = zext i32 %64 to i64
  call void @UnityAssertEqualNumber(i64 noundef 3, i64 noundef %65, ptr noundef null, i64 noundef 62, i32 noundef 148)
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 0
  %68 = getelementptr inbounds i32, ptr %67, i64 4
  %69 = call i32 @disk_store_append(ptr noundef %66, ptr noundef %68, i64 noundef 4)
  store i32 %69, ptr %7, align 4, !tbaa !14
  %70 = load i32, ptr %7, align 4, !tbaa !14
  %71 = zext i32 %70 to i64
  call void @UnityAssertEqualNumber(i64 noundef 4, i64 noundef %71, ptr noundef null, i64 noundef 65, i32 noundef 148)
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 0
  %74 = getelementptr inbounds i32, ptr %73, i64 5
  %75 = call i32 @disk_store_append(ptr noundef %72, ptr noundef %74, i64 noundef 4)
  store i32 %75, ptr %7, align 4, !tbaa !14
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 0
  %78 = getelementptr inbounds i32, ptr %77, i64 6
  %79 = call i32 @disk_store_append(ptr noundef %76, ptr noundef %78, i64 noundef 4)
  store i32 %79, ptr %7, align 4, !tbaa !14
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 0
  %82 = getelementptr inbounds i32, ptr %81, i64 7
  %83 = call i32 @disk_store_append(ptr noundef %80, ptr noundef %82, i64 noundef 4)
  store i32 %83, ptr %7, align 4, !tbaa !14
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 0
  %86 = getelementptr inbounds i32, ptr %85, i64 8
  %87 = call i32 @disk_store_append(ptr noundef %84, ptr noundef %86, i64 noundef 4)
  store i32 %87, ptr %7, align 4, !tbaa !14
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 0
  %90 = getelementptr inbounds i32, ptr %89, i64 9
  %91 = call i32 @disk_store_append(ptr noundef %88, ptr noundef %90, i64 noundef 4)
  store i32 %91, ptr %7, align 4, !tbaa !14
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 0
  %94 = getelementptr inbounds i32, ptr %93, i64 10
  %95 = call i32 @disk_store_append(ptr noundef %92, ptr noundef %94, i64 noundef 4)
  store i32 %95, ptr %7, align 4, !tbaa !14
  call void @disk_store_destroy(ptr noundef %5)
  store ptr null, ptr %3, align 8, !tbaa !5
  store ptr null, ptr %4, align 8, !tbaa !5
  %96 = load ptr, ptr %1, align 8, !tbaa !5
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = call ptr @disk_store_load(ptr noundef %3, ptr noundef %96, ptr noundef %4, ptr noundef %97)
  store ptr %98, ptr %5, align 8, !tbaa !5
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.disk_store, ptr %99, i32 0, i32 5
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  call void @UnityAssertEqualNumber(i64 noundef 11, i64 noundef %102, ptr noundef null, i64 noundef 85, i32 noundef 148)
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.disk_store, ptr %103, i32 0, i32 4
  %105 = load i32, ptr %104, align 8, !tbaa !13
  %106 = zext i32 %105 to i64
  call void @UnityAssertEqualNumber(i64 noundef 20, i64 noundef %106, ptr noundef null, i64 noundef 86, i32 noundef 148)
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %107) #5
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = call ptr @disk_store_get(ptr noundef %108, i32 noundef 3, ptr noundef %8)
  store ptr %109, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 3
  %111 = load i32, ptr %110, align 4, !tbaa !14
  %112 = zext i32 %111 to i64
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = load i32, ptr %113, align 4, !tbaa !14
  %115 = zext i32 %114 to i64
  call void @UnityAssertEqualNumber(i64 noundef %112, i64 noundef %115, ptr noundef null, i64 noundef 91, i32 noundef 148)
  %116 = load i64, ptr %8, align 8, !tbaa !15
  call void @UnityAssertEqualNumber(i64 noundef 4, i64 noundef %116, ptr noundef null, i64 noundef 92, i32 noundef 148)
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %117) #5
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = call ptr @disk_store_get(ptr noundef %118, i32 noundef 1, ptr noundef %8)
  store ptr %119, ptr %9, align 8, !tbaa !5
  %120 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 1
  %121 = load i32, ptr %120, align 4, !tbaa !14
  %122 = zext i32 %121 to i64
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = load i32, ptr %123, align 4, !tbaa !14
  %125 = zext i32 %124 to i64
  call void @UnityAssertEqualNumber(i64 noundef %122, i64 noundef %125, ptr noundef null, i64 noundef 97, i32 noundef 148)
  %126 = load i64, ptr %8, align 8, !tbaa !15
  call void @UnityAssertEqualNumber(i64 noundef 4, i64 noundef %126, ptr noundef null, i64 noundef 98, i32 noundef 148)
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = call ptr @disk_store_get(ptr noundef %127, i32 noundef 10, ptr noundef %8)
  store ptr %128, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 10
  %130 = load i32, ptr %129, align 8, !tbaa !14
  %131 = zext i32 %130 to i64
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = load i32, ptr %132, align 4, !tbaa !14
  %134 = zext i32 %133 to i64
  call void @UnityAssertEqualNumber(i64 noundef %131, i64 noundef %134, ptr noundef null, i64 noundef 101, i32 noundef 148)
  %135 = load i64, ptr %8, align 8, !tbaa !15
  call void @UnityAssertEqualNumber(i64 noundef 4, i64 noundef %135, ptr noundef null, i64 noundef 102, i32 noundef 148)
  call void @disk_store_destroy(ptr noundef %5)
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %136) #5
  %137 = load ptr, ptr %1, align 8, !tbaa !5
  %138 = call i32 @remove(ptr noundef %137) #5
  %139 = load ptr, ptr %2, align 8, !tbaa !5
  %140 = call i32 @remove(ptr noundef %139) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 44, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  ret void
}

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

declare ptr @disk_store_init(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

declare i32 @disk_store_append(ptr noundef, ptr noundef, i64 noundef) #2

declare void @disk_store_destroy(ptr noundef) #2

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

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

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

; Function Attrs: nounwind
declare i32 @remove(ptr noundef) #4

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

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

!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, !11, i64 36}
!10 = !{!"disk_store", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !12, i64 40, !12, i64 48, !6, i64 56, !6, i64 64, !7, i64 72, !6, i64 80}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !11, i64 32}
!14 = !{!11, !11, i64 0}
!15 = !{!12, !12, i64 0}


; 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"

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@__const.test_disk_store.V = external hidden unnamed_addr constant [11 x i32], align 16

; Function Attrs: nounwind uwtable
define dso_local void @test_disk_store() local_unnamed_addr #0 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca [11 x i32], align 16
  %5 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  store ptr null, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  store ptr null, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %6 = call ptr @disk_store_init(i32 noundef 10, ptr noundef nonnull %1, ptr noundef nonnull @.str, ptr noundef nonnull %2, ptr noundef nonnull @.str.1) #6
  store ptr %6, ptr %3, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 36
  %8 = load i32, ptr %7, align 4, !tbaa !9
  %9 = zext i32 %8 to i64
  call void @UnityAssertEqualNumber(i64 noundef 0, i64 noundef %9, ptr noundef null, i64 noundef 26, i32 noundef 148) #6
  %10 = getelementptr inbounds i8, ptr %6, i64 32
  %11 = load i32, ptr %10, align 8, !tbaa !13
  %12 = zext i32 %11 to i64
  call void @UnityAssertEqualNumber(i64 noundef 10, i64 noundef %12, ptr noundef null, i64 noundef 27, i32 noundef 148) #6
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) %4, ptr noundef nonnull align 16 dereferenceable(44) @__const.test_disk_store.V, i64 44, i1 false)
  %13 = call i32 @disk_store_append(ptr noundef %6, ptr noundef nonnull %4, i64 noundef 4) #6
  %14 = zext i32 %13 to i64
  call void @UnityAssertEqualNumber(i64 noundef 0, i64 noundef %14, ptr noundef null, i64 noundef 32, i32 noundef 148) #6
  %15 = getelementptr inbounds i8, ptr %4, i64 4
  %16 = call i32 @disk_store_append(ptr noundef %6, ptr noundef nonnull %15, i64 noundef 4) #6
  %17 = zext i32 %16 to i64
  call void @UnityAssertEqualNumber(i64 noundef 1, i64 noundef %17, ptr noundef null, i64 noundef 35, i32 noundef 148) #6
  %18 = getelementptr inbounds i8, ptr %4, i64 8
  %19 = call i32 @disk_store_append(ptr noundef %6, ptr noundef nonnull %18, i64 noundef 4) #6
  %20 = zext i32 %19 to i64
  call void @UnityAssertEqualNumber(i64 noundef 2, i64 noundef %20, ptr noundef null, i64 noundef 38, i32 noundef 148) #6
  call void @disk_store_destroy(ptr noundef nonnull %3) #6
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = ptrtoint ptr %21 to i64
  call void @UnityAssertEqualNumber(i64 noundef 0, i64 noundef %22, ptr noundef null, i64 noundef 41, i32 noundef 148) #6
  store ptr null, ptr %1, align 8, !tbaa !5
  store ptr null, ptr %2, align 8, !tbaa !5
  %23 = call ptr @disk_store_load(ptr noundef nonnull %1, ptr noundef nonnull @.str, ptr noundef nonnull %2, ptr noundef nonnull @.str.1) #6
  store ptr %23, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 36
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = zext i32 %25 to i64
  call void @UnityAssertEqualNumber(i64 noundef 3, i64 noundef %26, ptr noundef null, i64 noundef 52, i32 noundef 148) #6
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 32
  %29 = load i32, ptr %28, align 8, !tbaa !13
  %30 = zext i32 %29 to i64
  call void @UnityAssertEqualNumber(i64 noundef 10, i64 noundef %30, ptr noundef null, i64 noundef 53, i32 noundef 148) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = call ptr @disk_store_get(ptr noundef %31, i32 noundef 2, ptr noundef nonnull %5) #6
  %33 = load i32, ptr %18, align 8, !tbaa !14
  %34 = zext i32 %33 to i64
  %35 = load i32, ptr %32, align 4, !tbaa !14
  %36 = zext i32 %35 to i64
  call void @UnityAssertEqualNumber(i64 noundef %34, i64 noundef %36, ptr noundef null, i64 noundef 58, i32 noundef 148) #6
  %37 = load i64, ptr %5, align 8, !tbaa !15
  call void @UnityAssertEqualNumber(i64 noundef 4, i64 noundef %37, ptr noundef null, i64 noundef 59, i32 noundef 148) #6
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %4, i64 12
  %40 = call i32 @disk_store_append(ptr noundef %38, ptr noundef nonnull %39, i64 noundef 4) #6
  %41 = zext i32 %40 to i64
  call void @UnityAssertEqualNumber(i64 noundef 3, i64 noundef %41, ptr noundef null, i64 noundef 62, i32 noundef 148) #6
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %4, i64 16
  %44 = call i32 @disk_store_append(ptr noundef %42, ptr noundef nonnull %43, i64 noundef 4) #6
  %45 = zext i32 %44 to i64
  call void @UnityAssertEqualNumber(i64 noundef 4, i64 noundef %45, ptr noundef null, i64 noundef 65, i32 noundef 148) #6
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %4, i64 20
  %48 = call i32 @disk_store_append(ptr noundef %46, ptr noundef nonnull %47, i64 noundef 4) #6
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %4, i64 24
  %51 = call i32 @disk_store_append(ptr noundef %49, ptr noundef nonnull %50, i64 noundef 4) #6
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %4, i64 28
  %54 = call i32 @disk_store_append(ptr noundef %52, ptr noundef nonnull %53, i64 noundef 4) #6
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %4, i64 32
  %57 = call i32 @disk_store_append(ptr noundef %55, ptr noundef nonnull %56, i64 noundef 4) #6
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %4, i64 36
  %60 = call i32 @disk_store_append(ptr noundef %58, ptr noundef nonnull %59, i64 noundef 4) #6
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %4, i64 40
  %63 = call i32 @disk_store_append(ptr noundef %61, ptr noundef nonnull %62, i64 noundef 4) #6
  call void @disk_store_destroy(ptr noundef nonnull %3) #6
  store ptr null, ptr %1, align 8, !tbaa !5
  store ptr null, ptr %2, align 8, !tbaa !5
  %64 = call ptr @disk_store_load(ptr noundef nonnull %1, ptr noundef nonnull @.str, ptr noundef nonnull %2, ptr noundef nonnull @.str.1) #6
  store ptr %64, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 36
  %66 = load i32, ptr %65, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  call void @UnityAssertEqualNumber(i64 noundef 11, i64 noundef %67, ptr noundef null, i64 noundef 85, i32 noundef 148) #6
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %68, i64 32
  %70 = load i32, ptr %69, align 8, !tbaa !13
  %71 = zext i32 %70 to i64
  call void @UnityAssertEqualNumber(i64 noundef 20, i64 noundef %71, ptr noundef null, i64 noundef 86, i32 noundef 148) #6
  call void @free(ptr noundef %32) #6
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = call ptr @disk_store_get(ptr noundef %72, i32 noundef 3, ptr noundef nonnull %5) #6
  %74 = load i32, ptr %39, align 4, !tbaa !14
  %75 = zext i32 %74 to i64
  %76 = load i32, ptr %73, align 4, !tbaa !14
  %77 = zext i32 %76 to i64
  call void @UnityAssertEqualNumber(i64 noundef %75, i64 noundef %77, ptr noundef null, i64 noundef 91, i32 noundef 148) #6
  %78 = load i64, ptr %5, align 8, !tbaa !15
  call void @UnityAssertEqualNumber(i64 noundef 4, i64 noundef %78, ptr noundef null, i64 noundef 92, i32 noundef 148) #6
  call void @free(ptr noundef %73) #6
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = call ptr @disk_store_get(ptr noundef %79, i32 noundef 1, ptr noundef nonnull %5) #6
  %81 = load i32, ptr %15, align 4, !tbaa !14
  %82 = zext i32 %81 to i64
  %83 = load i32, ptr %80, align 4, !tbaa !14
  %84 = zext i32 %83 to i64
  call void @UnityAssertEqualNumber(i64 noundef %82, i64 noundef %84, ptr noundef null, i64 noundef 97, i32 noundef 148) #6
  %85 = load i64, ptr %5, align 8, !tbaa !15
  call void @UnityAssertEqualNumber(i64 noundef 4, i64 noundef %85, ptr noundef null, i64 noundef 98, i32 noundef 148) #6
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = call ptr @disk_store_get(ptr noundef %86, i32 noundef 10, ptr noundef nonnull %5) #6
  %88 = load i32, ptr %62, align 8, !tbaa !14
  %89 = zext i32 %88 to i64
  %90 = load i32, ptr %87, align 4, !tbaa !14
  %91 = zext i32 %90 to i64
  call void @UnityAssertEqualNumber(i64 noundef %89, i64 noundef %91, ptr noundef null, i64 noundef 101, i32 noundef 148) #6
  %92 = load i64, ptr %5, align 8, !tbaa !15
  call void @UnityAssertEqualNumber(i64 noundef 4, i64 noundef %92, ptr noundef null, i64 noundef 102, i32 noundef 148) #6
  call void @disk_store_destroy(ptr noundef nonnull %3) #6
  call void @free(ptr noundef %87) #6
  %93 = call i32 @remove(ptr noundef nonnull @.str) #6
  %94 = call i32 @remove(ptr noundef nonnull @.str.1) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret void
}

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

declare ptr @disk_store_init(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare i32 @disk_store_append(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare void @disk_store_destroy(ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @remove(ptr nocapture noundef readonly) local_unnamed_addr #5

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

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

!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, !11, i64 36}
!10 = !{!"disk_store", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !12, i64 40, !12, i64 48, !6, i64 56, !6, i64 64, !7, i64 72, !6, i64 80}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !11, i64 32}
!14 = !{!11, !11, i64 0}
!15 = !{!12, !12, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass