; LLVM IR from LiuYuguang/supersimplefiledatabase :: filedb (db_create)

; 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.db_s = type { i32, i32, i64, i64, i64, i64, i64, i64, i64, i64, ptr }
%struct.btree_node = type { i64, i64, i64, i32 }

; Function Attrs: nounwind uwtable
define dso_local i32 @db_create(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i64 %2, ptr %7, align 8, !tbaa !11
  %15 = load i32, ptr %6, align 4, !tbaa !9
  switch i32 %15, label %37 [
    i32 0, label %16
    i32 1, label %16
    i32 2, label %25
    i32 3, label %31
  ]

16:                                               ; preds = %3, %3
  %17 = load i64, ptr %7, align 8, !tbaa !11
  %18 = icmp ult i64 %17, 4
  br i1 %18, label %22, label %19

19:                                               ; preds = %16
  %20 = load i64, ptr %7, align 8, !tbaa !11
  %21 = icmp ugt i64 %20, 128
  br i1 %21, label %22, label %24

22:                                               ; preds = %19, %16
  %23 = call ptr @__errno_location() #7
  store i32 22, ptr %23, align 4, !tbaa !9
  store i32 -1, ptr %4, align 4
  br label %143

24:                                               ; preds = %19
  br label %39

25:                                               ; preds = %3
  %26 = load i64, ptr %7, align 8, !tbaa !11
  %27 = icmp ne i64 %26, 4
  br i1 %27, label %28, label %30

28:                                               ; preds = %25
  %29 = call ptr @__errno_location() #7
  store i32 22, ptr %29, align 4, !tbaa !9
  store i32 -1, ptr %4, align 4
  br label %143

30:                                               ; preds = %25
  br label %39

31:                                               ; preds = %3
  %32 = load i64, ptr %7, align 8, !tbaa !11
  %33 = icmp ne i64 %32, 8
  br i1 %33, label %34, label %36

34:                                               ; preds = %31
  %35 = call ptr @__errno_location() #7
  store i32 22, ptr %35, align 4, !tbaa !9
  store i32 -1, ptr %4, align 4
  br label %143

36:                                               ; preds = %31
  br label %39

37:                                               ; preds = %3
  %38 = call ptr @__errno_location() #7
  store i32 22, ptr %38, align 4, !tbaa !9
  store i32 -1, ptr %4, align 4
  br label %143

39:                                               ; preds = %36, %30, %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %40 = load i64, ptr %7, align 8, !tbaa !11
  %41 = add i64 16, %40
  %42 = add i64 %41, 15
  %43 = and i64 %42, -16
  store i64 %43, ptr %8, align 8, !tbaa !11
  %44 = load i64, ptr %8, align 8, !tbaa !11
  %45 = add i64 32, %44
  %46 = icmp ult i64 8192, %45
  br i1 %46, label %47, label %49

47:                                               ; preds = %39
  %48 = call ptr @__errno_location() #7
  store i32 22, ptr %48, align 4, !tbaa !9
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %142

49:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %50 = load i64, ptr %8, align 8, !tbaa !11
  %51 = udiv i64 8160, %50
  %52 = sub i64 %51, 1
  store i64 %52, ptr %10, align 8, !tbaa !11
  %53 = load i64, ptr %10, align 8, !tbaa !11
  %54 = icmp ult i64 %53, 3
  br i1 %54, label %55, label %57

55:                                               ; preds = %49
  %56 = call ptr @__errno_location() #7
  store i32 22, ptr %56, align 4, !tbaa !9
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %141

57:                                               ; preds = %49
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = call i32 @access(ptr noundef %58, i32 noundef 0) #8
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %61, label %63

61:                                               ; preds = %57
  %62 = call ptr @__errno_location() #7
  store i32 17, ptr %62, align 4, !tbaa !9
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %141

63:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = call i32 (ptr, i32, ...) @open(ptr noundef %64, i32 noundef 578, i32 noundef 436)
  store i32 %65, ptr %11, align 4, !tbaa !9
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = icmp eq i32 %66, -1
  br i1 %67, label %68, label %69

68:                                               ; preds = %63
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %140

69:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %70 = call noalias ptr @calloc(i64 noundef 12288, i64 noundef 1) #9
  store ptr %70, ptr %12, align 8, !tbaa !5
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = icmp eq ptr %71, null
  br i1 %72, label %73, label %76

73:                                               ; preds = %69
  %74 = load i32, ptr %11, align 4, !tbaa !9
  %75 = call i32 @close(i32 noundef %74)
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %139

76:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %77, ptr %13, align 8, !tbaa !5
  %78 = load i32, ptr %11, align 4, !tbaa !9
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.db_s, ptr %79, i32 0, i32 0
  store i32 %78, ptr %80, align 8, !tbaa !13
  %81 = load i32, ptr %6, align 4, !tbaa !9
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.db_s, ptr %82, i32 0, i32 1
  store i32 %81, ptr %83, align 4, !tbaa !15
  %84 = load i64, ptr %7, align 8, !tbaa !11
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.db_s, ptr %85, i32 0, i32 2
  store i64 %84, ptr %86, align 8, !tbaa !16
  %87 = load i64, ptr %8, align 8, !tbaa !11
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.db_s, ptr %88, i32 0, i32 3
  store i64 %87, ptr %89, align 8, !tbaa !17
  %90 = load i64, ptr %10, align 8, !tbaa !11
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.db_s, ptr %91, i32 0, i32 4
  store i64 %90, ptr %92, align 8, !tbaa !18
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.db_s, ptr %93, i32 0, i32 5
  store i64 0, ptr %94, align 8, !tbaa !19
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.db_s, ptr %95, i32 0, i32 6
  store i64 1, ptr %96, align 8, !tbaa !20
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.db_s, ptr %97, i32 0, i32 7
  store i64 0, ptr %98, align 8, !tbaa !21
  %99 = load ptr, ptr %13, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.db_s, ptr %99, i32 0, i32 8
  store i64 0, ptr %100, align 8, !tbaa !22
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.db_s, ptr %101, i32 0, i32 9
  store i64 0, ptr %102, align 8, !tbaa !23
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = call i64 @head_flush(ptr noundef %103)
  %105 = icmp ne i64 %104, 4096
  br i1 %105, label %106, label %110

106:                                              ; preds = %76
  %107 = load i32, ptr %11, align 4, !tbaa !9
  %108 = call i32 @close(i32 noundef %107)
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %109) #8
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %138

110:                                              ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %111, i64 4096
  store ptr %112, ptr %14, align 8, !tbaa !5
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.btree_node, ptr %113, i32 0, i32 0
  store i64 4096, ptr %114, align 8, !tbaa !24
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.btree_node, ptr %115, i32 0, i32 3
  %117 = load i32, ptr %116, align 8
  %118 = and i32 %117, -5
  %119 = or i32 %118, 4
  store i32 %119, ptr %116, align 8
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.btree_node, ptr %120, i32 0, i32 3
  %122 = load i32, ptr %121, align 8
  %123 = and i32 %122, -2
  %124 = or i32 %123, 1
  store i32 %124, ptr %121, align 8
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = call i64 @node_flush(ptr noundef %125, ptr noundef %126)
  %128 = icmp ne i64 %127, 8192
  br i1 %128, label %129, label %133

129:                                              ; preds = %110
  %130 = load i32, ptr %11, align 4, !tbaa !9
  %131 = call i32 @close(i32 noundef %130)
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %132) #8
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %137

133:                                              ; preds = %110
  %134 = load i32, ptr %11, align 4, !tbaa !9
  %135 = call i32 @close(i32 noundef %134)
  %136 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %136) #8
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %137

137:                                              ; preds = %133, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %138

138:                                              ; preds = %137, %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %139

139:                                              ; preds = %138, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %140

140:                                              ; preds = %139, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %141

141:                                              ; preds = %140, %61, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %142

142:                                              ; preds = %141, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %143

143:                                              ; preds = %142, %37, %34, %28, %22
  %144 = load i32, ptr %4, align 4
  ret i32 %144
}

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #1

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

; Function Attrs: nounwind
declare i32 @access(ptr noundef, i32 noundef) #3

declare i32 @open(ptr noundef, i32 noundef, ...) #4

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

declare i32 @close(i32 noundef) #4

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

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

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"db_s", !10, i64 0, !10, i64 4, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !6, i64 72}
!15 = !{!14, !10, i64 4}
!16 = !{!14, !12, i64 8}
!17 = !{!14, !12, i64 16}
!18 = !{!14, !12, i64 24}
!19 = !{!14, !12, i64 32}
!20 = !{!14, !12, i64 40}
!21 = !{!14, !12, i64 48}
!22 = !{!14, !12, i64 56}
!23 = !{!14, !12, i64 64}
!24 = !{!25, !12, i64 0}
!25 = !{!"", !12, i64 0, !12, i64 8, !12, i64 16, !10, i64 24, !10, i64 24, !10, i64 24, !10, i64 24}


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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @db_create(ptr nocapture noundef readonly %0, i32 noundef %1, i64 noundef %2) local_unnamed_addr #0 {
  switch i32 %1, label %14 [
    i32 0, label %4
    i32 1, label %4
    i32 2, label %8
    i32 3, label %11
  ]

4:                                                ; preds = %3, %3
  %5 = add i64 %2, -129
  %or.cond = icmp ult i64 %5, -125
  br i1 %or.cond, label %6, label %16

6:                                                ; preds = %4
  %7 = tail call ptr @__errno_location() #8
  store i32 22, ptr %7, align 4, !tbaa !5
  br label %50

8:                                                ; preds = %3
  %.not47 = icmp eq i64 %2, 4
  br i1 %.not47, label %.thread, label %9

9:                                                ; preds = %8
  %10 = tail call ptr @__errno_location() #8
  store i32 22, ptr %10, align 4, !tbaa !5
  br label %50

11:                                               ; preds = %3
  %.not = icmp eq i64 %2, 8
  br i1 %.not, label %.thread, label %12

12:                                               ; preds = %11
  %13 = tail call ptr @__errno_location() #8
  store i32 22, ptr %13, align 4, !tbaa !5
  br label %50

14:                                               ; preds = %3
  %15 = tail call ptr @__errno_location() #8
  store i32 22, ptr %15, align 4, !tbaa !5
  br label %50

16:                                               ; preds = %4
  %17 = add nuw nsw i64 %2, 31
  %18 = and i64 %17, 496
  br label %.thread

.thread:                                          ; preds = %8, %11, %16
  %19 = phi i64 [ %18, %16 ], [ 32, %11 ], [ 32, %8 ]
  %.rhs.trunc = trunc nuw nsw i64 %19 to i16
  %20 = udiv i16 8160, %.rhs.trunc
  %.zext = zext nneg i16 %20 to i64
  %21 = add nsw i64 %.zext, -1
  %22 = tail call i32 @access(ptr noundef %0, i32 noundef 0) #9
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %.thread
  %25 = tail call ptr @__errno_location() #8
  store i32 17, ptr %25, align 4, !tbaa !5
  br label %50

26:                                               ; preds = %.thread
  %27 = tail call i32 (ptr, i32, ...) @open(ptr noundef %0, i32 noundef 578, i32 noundef 436) #9
  %28 = icmp eq i32 %27, -1
  br i1 %28, label %50, label %29

29:                                               ; preds = %26
  %30 = tail call noalias dereferenceable_or_null(12288) ptr @calloc(i64 noundef 12288, i64 noundef 1) #10
  %31 = icmp eq ptr %30, null
  br i1 %31, label %32, label %34

32:                                               ; preds = %29
  %33 = tail call i32 @close(i32 noundef %27) #9
  br label %50

34:                                               ; preds = %29
  store i32 %27, ptr %30, align 8, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %30, i64 4
  store i32 %1, ptr %35, align 4, !tbaa !13
  %36 = getelementptr inbounds i8, ptr %30, i64 8
  store i64 %2, ptr %36, align 8, !tbaa !14
  %37 = getelementptr inbounds i8, ptr %30, i64 16
  store i64 %19, ptr %37, align 8, !tbaa !15
  %38 = getelementptr inbounds i8, ptr %30, i64 24
  store i64 %21, ptr %38, align 8, !tbaa !16
  %39 = getelementptr inbounds i8, ptr %30, i64 40
  store i64 1, ptr %39, align 8, !tbaa !17
  %40 = tail call i64 @head_flush(ptr noundef nonnull %30)
  %.not48 = icmp eq i64 %40, 4096
  br i1 %.not48, label %43, label %41

41:                                               ; preds = %34
  %42 = tail call i32 @close(i32 noundef %27) #9
  tail call void @free(ptr noundef nonnull %30) #9
  br label %50

43:                                               ; preds = %34
  %44 = getelementptr inbounds i8, ptr %30, i64 4096
  store i64 4096, ptr %44, align 8, !tbaa !18
  %45 = getelementptr inbounds i8, ptr %30, i64 4120
  %46 = load i32, ptr %45, align 8
  %47 = or i32 %46, 5
  store i32 %47, ptr %45, align 8
  %48 = tail call i64 @node_flush(ptr noundef nonnull %30, ptr noundef nonnull %44)
  %.not49 = icmp ne i64 %48, 8192
  %49 = tail call i32 @close(i32 noundef %27) #9
  tail call void @free(ptr noundef nonnull %30) #9
  %. = sext i1 %.not49 to i32
  br label %50

50:                                               ; preds = %43, %26, %41, %32, %24, %14, %12, %9, %6
  %.6 = phi i32 [ -1, %14 ], [ -1, %12 ], [ -1, %9 ], [ -1, %6 ], [ -1, %24 ], [ -1, %26 ], [ -1, %32 ], [ -1, %41 ], [ %., %43 ]
  ret i32 %.6
}

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #1

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

; Function Attrs: nofree
declare noundef i32 @open(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #3

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

declare i32 @close(i32 noundef) local_unnamed_addr #5

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

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

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

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 nofree nosync nounwind willreturn memory(none) "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 = { 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 #3 = { nofree "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 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #5 = { "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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { nounwind allocsize(0,1) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"db_s", !6, i64 0, !6, i64 4, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !12, i64 72}
!11 = !{!"long", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !6, i64 4}
!14 = !{!10, !11, i64 8}
!15 = !{!10, !11, i64 16}
!16 = !{!10, !11, i64 24}
!17 = !{!10, !11, i64 40}
!18 = !{!19, !11, i64 0}
!19 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !6, i64 24, !6, i64 24, !6, i64 24}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass