; LLVM IR from nbosb/simdal :: deps/sqlite/src (shell)

; 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.sqlite3expert = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, i32, %struct.IdxHash, ptr }
%struct.IdxHash = type { ptr, [1023 x ptr] }
%struct.IdxStatement = type { i32, ptr, ptr, ptr, ptr }

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden ptr @idxMalloc(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @sqlite3_expert_sql(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.sqlite3expert, ptr %17, i32 0, i32 5
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  store ptr %19, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.sqlite3expert, ptr %20, i32 0, i32 7
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  store ptr %22, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %23, ptr %11, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.sqlite3expert, ptr %24, i32 0, i32 8
  %26 = load i32, ptr %25, align 8, !tbaa !15
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %3
  store i32 21, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %133

29:                                               ; preds = %3
  br label %30

30:                                               ; preds = %112, %29
  %31 = load i32, ptr %10, align 4, !tbaa !14
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %42

33:                                               ; preds = %30
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %42

36:                                               ; preds = %33
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 0
  %39 = load i8, ptr %38, align 1, !tbaa !16
  %40 = sext i8 %39 to i32
  %41 = icmp ne i32 %40, 0
  br label %42

42:                                               ; preds = %36, %33, %30
  %43 = phi i1 [ false, %33 ], [ false, %30 ], [ %41, %36 ]
  br i1 %43, label %44, label %113

44:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store ptr null, ptr %13, align 8, !tbaa !5
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.sqlite3expert, ptr %45, i32 0, i32 3
  %47 = load ptr, ptr %46, align 8, !tbaa !17
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = call i32 @sqlite3_prepare_v2(ptr noundef %47, ptr noundef %48, i32 noundef -1, ptr noundef %13, ptr noundef %11)
  store i32 %49, ptr %10, align 4, !tbaa !14
  %50 = load i32, ptr %10, align 4, !tbaa !14
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %107

52:                                               ; preds = %44
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %106

55:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = call ptr @sqlite3_sql(ptr noundef %56)
  store ptr %57, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %58 = load ptr, ptr %15, align 8, !tbaa !5
  %59 = call i64 @strlen(ptr noundef %58) #6
  %60 = trunc i64 %59 to i32
  store i32 %60, ptr %16, align 4, !tbaa !14
  %61 = load i32, ptr %16, align 4, !tbaa !14
  %62 = sext i32 %61 to i64
  %63 = add i64 40, %62
  %64 = add i64 %63, 1
  %65 = trunc i64 %64 to i32
  %66 = call ptr @idxMalloc(ptr noundef %10, i32 noundef %65)
  store ptr %66, ptr %14, align 8, !tbaa !5
  %67 = load i32, ptr %10, align 4, !tbaa !14
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %103

69:                                               ; preds = %55
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.IdxStatement, ptr %70, i64 1
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.IdxStatement, ptr %72, i32 0, i32 1
  store ptr %71, ptr %73, align 8, !tbaa !18
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.IdxStatement, ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !18
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = load i32, ptr %16, align 4, !tbaa !14
  %79 = add nsw i32 %78, 1
  %80 = sext i32 %79 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %76, ptr align 1 %77, i64 %80, i1 false)
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.sqlite3expert, ptr %81, i32 0, i32 7
  %83 = load ptr, ptr %82, align 8, !tbaa !13
  %84 = load ptr, ptr %14, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.IdxStatement, ptr %84, i32 0, i32 4
  store ptr %83, ptr %85, align 8, !tbaa !20
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.sqlite3expert, ptr %86, i32 0, i32 7
  %88 = load ptr, ptr %87, align 8, !tbaa !13
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %99

90:                                               ; preds = %69
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.sqlite3expert, ptr %91, i32 0, i32 7
  %93 = load ptr, ptr %92, align 8, !tbaa !13
  %94 = getelementptr inbounds %struct.IdxStatement, ptr %93, i32 0, i32 0
  %95 = load i32, ptr %94, align 8, !tbaa !21
  %96 = add nsw i32 %95, 1
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.IdxStatement, ptr %97, i32 0, i32 0
  store i32 %96, ptr %98, align 8, !tbaa !21
  br label %99

99:                                               ; preds = %90, %69
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.sqlite3expert, ptr %101, i32 0, i32 7
  store ptr %100, ptr %102, align 8, !tbaa !13
  br label %103

103:                                              ; preds = %99, %55
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = call i32 @sqlite3_finalize(ptr noundef %104)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %106

106:                                              ; preds = %103, %52
  br label %112

107:                                              ; preds = %44
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.sqlite3expert, ptr %108, i32 0, i32 3
  %110 = load ptr, ptr %109, align 8, !tbaa !17
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  call void @idxDatabaseError(ptr noundef %110, ptr noundef %111)
  br label %112

112:                                              ; preds = %107, %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %30, !llvm.loop !22

113:                                              ; preds = %42
  %114 = load i32, ptr %10, align 4, !tbaa !14
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %131

116:                                              ; preds = %113
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.sqlite3expert, ptr %117, i32 0, i32 5
  %119 = load ptr, ptr %118, align 8, !tbaa !9
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  call void @idxScanFree(ptr noundef %119, ptr noundef %120)
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.sqlite3expert, ptr %121, i32 0, i32 7
  %123 = load ptr, ptr %122, align 8, !tbaa !13
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  call void @idxStatementFree(ptr noundef %123, ptr noundef %124)
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.sqlite3expert, ptr %126, i32 0, i32 5
  store ptr %125, ptr %127, align 8, !tbaa !9
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.sqlite3expert, ptr %129, i32 0, i32 7
  store ptr %128, ptr %130, align 8, !tbaa !13
  br label %131

131:                                              ; preds = %116, %113
  %132 = load i32, ptr %10, align 4, !tbaa !14
  store i32 %132, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %133

133:                                              ; preds = %131, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %134 = load i32, ptr %4, align 4
  ret i32 %134
}

declare i32 @sqlite3_prepare_v2(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3

declare ptr @sqlite3_sql(ptr noundef) #3

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

declare i32 @sqlite3_finalize(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @idxDatabaseError(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @idxScanFree(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @idxStatementFree(ptr noundef, ptr noundef) #2

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

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

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


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

; 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 memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden ptr @idxMalloc(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @sqlite3_expert_sql(ptr nocapture noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 56
  %10 = load ptr, ptr %9, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 0, ptr %4, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store ptr %1, ptr %5, align 8, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %0, i64 64
  %12 = load i32, ptr %11, align 8, !tbaa !15
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %.preheader, label %.critedge.thread

.preheader:                                       ; preds = %3
  %.not40 = icmp eq ptr %1, null
  br i1 %.not40, label %.critedge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  br label %14

14:                                               ; preds = %.lr.ph, %47
  %15 = phi ptr [ %1, %.lr.ph ], [ %50, %47 ]
  %16 = load i8, ptr %15, align 1, !tbaa !16
  %.not33 = icmp eq i8 %16, 0
  br i1 %.not33, label %.critedge.thread, label %17

17:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  store ptr null, ptr %6, align 8, !tbaa !14
  %18 = load ptr, ptr %13, align 8, !tbaa !17
  %19 = call i32 @sqlite3_prepare_v2(ptr noundef %18, ptr noundef nonnull %15, i32 noundef -1, ptr noundef nonnull %6, ptr noundef nonnull %5) #5
  store i32 %19, ptr %4, align 4, !tbaa !13
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %45

21:                                               ; preds = %17
  %22 = load ptr, ptr %6, align 8, !tbaa !14
  %.not35 = icmp eq ptr %22, null
  br i1 %.not35, label %47, label %23

23:                                               ; preds = %21
  %24 = call ptr @sqlite3_sql(ptr noundef nonnull %22) #5
  %25 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %24) #6
  %26 = trunc i64 %25 to i32
  %27 = add i32 %26, 41
  %28 = call ptr @idxMalloc(ptr noundef nonnull %4, i32 noundef %27)
  %29 = load i32, ptr %4, align 4, !tbaa !13
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %42

31:                                               ; preds = %23
  %32 = getelementptr inbounds i8, ptr %28, i64 40
  %33 = getelementptr inbounds i8, ptr %28, i64 8
  store ptr %32, ptr %33, align 8, !tbaa !18
  %34 = shl i64 %25, 32
  %sext = add i64 %34, 4294967296
  %35 = ashr exact i64 %sext, 32
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %32, ptr align 1 %24, i64 %35, i1 false)
  %36 = load ptr, ptr %9, align 8, !tbaa !12
  %37 = getelementptr inbounds i8, ptr %28, i64 32
  store ptr %36, ptr %37, align 8, !tbaa !20
  %.not36 = icmp eq ptr %36, null
  br i1 %.not36, label %41, label %38

38:                                               ; preds = %31
  %39 = load i32, ptr %36, align 8, !tbaa !21
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %28, align 8, !tbaa !21
  br label %41

41:                                               ; preds = %38, %31
  store ptr %28, ptr %9, align 8, !tbaa !12
  br label %42

42:                                               ; preds = %41, %23
  %43 = load ptr, ptr %6, align 8, !tbaa !14
  %44 = call i32 @sqlite3_finalize(ptr noundef %43) #5
  br label %47

45:                                               ; preds = %17
  %46 = load ptr, ptr %13, align 8, !tbaa !17
  call void @idxDatabaseError(ptr noundef %46, ptr noundef %2)
  br label %47

47:                                               ; preds = %21, %42, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %48 = load i32, ptr %4, align 4, !tbaa !13
  %49 = icmp eq i32 %48, 0
  %50 = load ptr, ptr %5, align 8
  %51 = icmp ne ptr %50, null
  %or.cond = select i1 %49, i1 %51, i1 false
  br i1 %or.cond, label %14, label %.critedge, !llvm.loop !22

.critedge:                                        ; preds = %47
  br i1 %49, label %.critedge.thread, label %52

52:                                               ; preds = %.critedge
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  call void @idxScanFree(ptr noundef %53, ptr noundef %8)
  %54 = load ptr, ptr %9, align 8, !tbaa !12
  call void @idxStatementFree(ptr noundef %54, ptr noundef %10)
  store ptr %8, ptr %7, align 8, !tbaa !5
  store ptr %10, ptr %9, align 8, !tbaa !12
  %.pre = load i32, ptr %4, align 4, !tbaa !13
  br label %.critedge.thread

.critedge.thread:                                 ; preds = %14, %.preheader, %.critedge, %52, %3
  %.0 = phi i32 [ 21, %3 ], [ %.pre, %52 ], [ %48, %.critedge ], [ 0, %.preheader ], [ 0, %14 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  ret i32 %.0
}

declare i32 @sqlite3_prepare_v2(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare ptr @sqlite3_sql(ptr noundef) local_unnamed_addr #3

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

declare i32 @sqlite3_finalize(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @idxDatabaseError(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @idxScanFree(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @idxStatementFree(ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 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 #3 = { "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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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, !10, i64 40}
!6 = !{!"sqlite3expert", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !7, i64 64, !10, i64 72, !7, i64 80, !11, i64 88, !10, i64 8280}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"IdxHash", !10, i64 0, !8, i64 8}
!12 = !{!6, !10, i64 56}
!13 = !{!7, !7, i64 0}
!14 = !{!10, !10, i64 0}
!15 = !{!6, !7, i64 64}
!16 = !{!8, !8, i64 0}
!17 = !{!6, !10, i64 24}
!18 = !{!19, !10, i64 8}
!19 = !{!"IdxStatement", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!20 = !{!19, !10, i64 32}
!21 = !{!19, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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