; LLVM IR from Siskin-framework/Rebol-SQLite :: src (sqlite-command-eval)

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

%union.rxi_arg_val = type { %struct.anon.3 }
%struct.anon.3 = type { %union.anon, i32, i32 }
%union.anon = type { ptr }
%struct.rebol_ext_api = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.anon.1 = type <{ ptr, i32 }>
%struct.Reb_Series = type { ptr, i32, i32, i32, i32, %union.anon.5 }
%union.anon.5 = type { ptr }
%struct.anon = type { i32, i32 }

@__const.bind_parameters.arg = external hidden unnamed_addr constant { ptr, [8 x i8] }, align 4
@RL = external global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @bind_parameters(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %union.rxi_arg_val, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 @__const.bind_parameters.arg, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %16, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  store i8 0, ptr %14, align 1, !tbaa !11
  store i32 0, ptr %9, align 4, !tbaa !9
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %111

19:                                               ; preds = %3
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %111

22:                                               ; preds = %19
  %23 = load ptr, ptr @RL, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.rebol_ext_api, ptr %23, i32 0, i32 30
  %25 = load ptr, ptr %24, align 8, !tbaa !12
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = load i32, ptr %13, align 4, !tbaa !9
  %28 = call i32 %25(ptr noundef %26, i32 noundef %27, ptr noundef %11)
  store i32 %28, ptr %10, align 4, !tbaa !9
  %29 = load i32, ptr %10, align 4, !tbaa !9
  %30 = icmp eq i32 %29, 32
  br i1 %30, label %31, label %36

31:                                               ; preds = %22
  %32 = getelementptr inbounds %struct.anon.1, ptr %11, i32 0, i32 0
  %33 = load ptr, ptr %32, align 4, !tbaa !11
  store ptr %33, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.anon.1, ptr %11, i32 0, i32 1
  %35 = load i32, ptr %34, align 4, !tbaa !11
  store i32 %35, ptr %13, align 4, !tbaa !9
  store i8 1, ptr %14, align 1, !tbaa !11
  br label %36

36:                                               ; preds = %31, %22
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = call i32 @sqlite3_bind_parameter_count(ptr noundef %37)
  store i32 %38, ptr %7, align 4, !tbaa !9
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %44

41:                                               ; preds = %36
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = call i32 @sqlite3_clear_bindings(ptr noundef %42)
  br label %44

44:                                               ; preds = %41, %36
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %107, %44
  %46 = load i32, ptr %8, align 4, !tbaa !9
  %47 = load i32, ptr %7, align 4, !tbaa !9
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %49, label %110

49:                                               ; preds = %45
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %8, align 4, !tbaa !9
  %52 = load ptr, ptr @RL, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.rebol_ext_api, ptr %52, i32 0, i32 30
  %54 = load ptr, ptr %53, align 8, !tbaa !12
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = call i32 %54(ptr noundef %55, i32 noundef %56, ptr noundef %11)
  store i32 %57, ptr %10, align 4, !tbaa !9
  store i32 21, ptr %9, align 4, !tbaa !9
  %58 = load i32, ptr %10, align 4, !tbaa !9
  switch i32 %58, label %106 [
    i32 5, label %59
    i32 6, label %64
    i32 24, label %69
    i32 2, label %95
    i32 4, label %99
    i32 0, label %105
  ]

59:                                               ; preds = %49
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = load i32, ptr %8, align 4, !tbaa !9
  %62 = load i64, ptr %11, align 4, !tbaa !11
  %63 = call i32 @sqlite3_bind_int64(ptr noundef %60, i32 noundef %61, i64 noundef %62)
  store i32 %63, ptr %9, align 4, !tbaa !9
  br label %106

64:                                               ; preds = %49
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = load i32, ptr %8, align 4, !tbaa !9
  %67 = load double, ptr %11, align 4, !tbaa !11
  %68 = call i32 @sqlite3_bind_double(ptr noundef %65, i32 noundef %66, double noundef %67)
  store i32 %68, ptr %9, align 4, !tbaa !9
  br label %106

69:                                               ; preds = %49
  %70 = getelementptr inbounds %struct.anon.1, ptr %11, i32 0, i32 0
  %71 = load ptr, ptr %70, align 4, !tbaa !11
  store ptr %71, ptr %12, align 8, !tbaa !5
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.Reb_Series, ptr %72, i32 0, i32 3
  %74 = load i32, ptr %73, align 4, !tbaa !14
  %75 = and i32 %74, 255
  %76 = icmp sgt i32 %75, 1
  br i1 %76, label %77, label %88

77:                                               ; preds = %69
  %78 = load ptr, ptr @RL, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.rebol_ext_api, ptr %78, i32 0, i32 38
  %80 = load ptr, ptr %79, align 8, !tbaa !16
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.Reb_Series, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 4, !tbaa !17
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.Reb_Series, ptr %84, i32 0, i32 1
  %86 = load i32, ptr %85, align 4, !tbaa !18
  %87 = call ptr %80(ptr noundef %83, i32 noundef %86, i32 noundef 1, i32 noundef 0)
  store ptr %87, ptr %12, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %77, %69
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load i32, ptr %8, align 4, !tbaa !9
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.Reb_Series, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 4, !tbaa !17
  %94 = call i32 @sqlite3_bind_text(ptr noundef %89, i32 noundef %90, ptr noundef %93, i32 noundef -1, ptr noundef inttoptr (i64 -1 to ptr))
  store i32 %94, ptr %9, align 4, !tbaa !9
  br label %106

95:                                               ; preds = %49
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = load i32, ptr %8, align 4, !tbaa !9
  %98 = call i32 @sqlite3_bind_null(ptr noundef %96, i32 noundef %97)
  store i32 %98, ptr %9, align 4, !tbaa !9
  br label %106

99:                                               ; preds = %49
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = load i32, ptr %8, align 4, !tbaa !9
  %102 = getelementptr inbounds %struct.anon, ptr %11, i32 0, i32 0
  %103 = load i32, ptr %102, align 4, !tbaa !11
  %104 = call i32 @sqlite3_bind_int(ptr noundef %100, i32 noundef %101, i32 noundef %103)
  store i32 %104, ptr %9, align 4, !tbaa !9
  br label %106

105:                                              ; preds = %49
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %105, %99, %95, %88, %64, %59, %49
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %13, align 4, !tbaa !9
  %109 = add i32 %108, 1
  store i32 %109, ptr %13, align 4, !tbaa !9
  br label %45, !llvm.loop !19

110:                                              ; preds = %45
  br label %111

111:                                              ; preds = %110, %19, %3
  %112 = load i8, ptr %14, align 1, !tbaa !11
  %113 = sext i8 %112 to i32
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %119

115:                                              ; preds = %111
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = load i32, ptr %116, align 4, !tbaa !9
  %118 = add i32 %117, 1
  br label %121

119:                                              ; preds = %111
  %120 = load i32, ptr %13, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %119, %115
  %122 = phi i32 [ %118, %115 ], [ %120, %119 ]
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 %122, ptr %123, align 4, !tbaa !9
  %124 = load i32, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret i32 %124
}

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

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

declare i32 @sqlite3_bind_parameter_count(ptr noundef) #3

declare i32 @sqlite3_clear_bindings(ptr noundef) #3

declare i32 @sqlite3_bind_int64(ptr noundef, i32 noundef, i64 noundef) #3

declare i32 @sqlite3_bind_double(ptr noundef, i32 noundef, double noundef) #3

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

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

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

; 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 240}
!13 = !{!"rebol_ext_api", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336}
!14 = !{!15, !10, i64 16}
!15 = !{!"Reb_Series", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24}
!16 = !{!13, !6, i64 304}
!17 = !{!15, !6, i64 0}
!18 = !{!15, !10, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"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"

%union.rxi_arg_val = type { %struct.anon.3 }
%struct.anon.3 = type { %union.anon, i32, i32 }
%union.anon = type { ptr }

@__const.bind_parameters.arg = external hidden unnamed_addr constant { ptr, [8 x i8] }, align 4
@RL = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @bind_parameters(ptr noundef %0, ptr noundef %1, ptr nocapture noundef %2) local_unnamed_addr #0 {
  %4 = alloca %union.rxi_arg_val, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(16) @__const.bind_parameters.arg, i64 16, i1 false)
  %5 = load i32, ptr %2, align 4, !tbaa !5
  %6 = icmp ne ptr %1, null
  %7 = icmp ne ptr %0, null
  %or.cond = and i1 %7, %6
  br i1 %or.cond, label %8, label %.thread

8:                                                ; preds = %3
  %9 = load ptr, ptr @RL, align 8, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %9, i64 240
  %11 = load ptr, ptr %10, align 8, !tbaa !11
  %12 = call i32 %11(ptr noundef nonnull %1, i32 noundef %5, ptr noundef nonnull %4) #4
  %.not52 = icmp eq i32 %12, 32
  %13 = load ptr, ptr %4, align 8
  %14 = getelementptr inbounds i8, ptr %4, i64 8
  %15 = load i32, ptr %14, align 8
  %.042 = select i1 %.not52, ptr %13, ptr %1
  %.035 = select i1 %.not52, i32 %15, i32 %5
  %16 = call i32 @sqlite3_bind_parameter_count(ptr noundef nonnull %0) #4
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %._crit_edge, label %17

17:                                               ; preds = %8
  %18 = call i32 @sqlite3_clear_bindings(ptr noundef nonnull %0) #4
  %19 = icmp sgt i32 %16, 0
  br i1 %19, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %17, %53
  %.13654 = phi i32 [ %54, %53 ], [ %.035, %17 ]
  %.04153 = phi i32 [ %20, %53 ], [ 0, %17 ]
  %20 = add nuw nsw i32 %.04153, 1
  %21 = load ptr, ptr @RL, align 8, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %21, i64 240
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = call i32 %23(ptr noundef %.042, i32 noundef %.13654, ptr noundef nonnull %4) #4
  switch i32 %24, label %53 [
    i32 5, label %25
    i32 6, label %28
    i32 24, label %31
    i32 2, label %47
    i32 4, label %49
    i32 0, label %52
  ]

25:                                               ; preds = %.lr.ph
  %26 = load i64, ptr %4, align 8, !tbaa !13
  %27 = call i32 @sqlite3_bind_int64(ptr noundef nonnull %0, i32 noundef %20, i64 noundef %26) #4
  br label %53

28:                                               ; preds = %.lr.ph
  %29 = load double, ptr %4, align 8, !tbaa !13
  %30 = call i32 @sqlite3_bind_double(ptr noundef nonnull %0, i32 noundef %20, double noundef %29) #4
  br label %53

31:                                               ; preds = %.lr.ph
  %32 = load ptr, ptr %4, align 8, !tbaa !13
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %34 = load i32, ptr %33, align 4, !tbaa !14
  %35 = and i32 %34, 254
  %.not46 = icmp eq i32 %35, 0
  br i1 %.not46, label %44, label %36

36:                                               ; preds = %31
  %37 = load ptr, ptr @RL, align 8, !tbaa !9
  %38 = getelementptr inbounds i8, ptr %37, i64 304
  %39 = load ptr, ptr %38, align 8, !tbaa !16
  %40 = load ptr, ptr %32, align 4, !tbaa !17
  %41 = getelementptr inbounds i8, ptr %32, i64 8
  %42 = load i32, ptr %41, align 4, !tbaa !18
  %43 = call ptr %39(ptr noundef %40, i32 noundef %42, i32 noundef 1, i32 noundef 0) #4
  br label %44

44:                                               ; preds = %36, %31
  %.037 = phi ptr [ %43, %36 ], [ %32, %31 ]
  %45 = load ptr, ptr %.037, align 4, !tbaa !17
  %46 = call i32 @sqlite3_bind_text(ptr noundef nonnull %0, i32 noundef %20, ptr noundef %45, i32 noundef -1, ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  br label %53

47:                                               ; preds = %.lr.ph
  %48 = call i32 @sqlite3_bind_null(ptr noundef nonnull %0, i32 noundef %20) #4
  br label %53

49:                                               ; preds = %.lr.ph
  %50 = load i32, ptr %4, align 8, !tbaa !13
  %51 = call i32 @sqlite3_bind_int(ptr noundef nonnull %0, i32 noundef %20, i32 noundef %50) #4
  br label %53

52:                                               ; preds = %.lr.ph
  br label %53

53:                                               ; preds = %.lr.ph, %25, %28, %44, %47, %49, %52
  %.139 = phi i32 [ 21, %.lr.ph ], [ 0, %52 ], [ %51, %49 ], [ %48, %47 ], [ %46, %44 ], [ %30, %28 ], [ %27, %25 ]
  %54 = add i32 %.13654, 1
  %exitcond.not = icmp eq i32 %20, %16
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !19

._crit_edge:                                      ; preds = %53, %8, %17
  %.038.lcssa = phi i32 [ 0, %17 ], [ 0, %8 ], [ %.139, %53 ]
  %.136.lcssa = phi i32 [ %.035, %17 ], [ %.035, %8 ], [ %54, %53 ]
  br i1 %.not52, label %55, label %.thread

55:                                               ; preds = %._crit_edge
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = add i32 %56, 1
  br label %.thread

.thread:                                          ; preds = %3, %._crit_edge, %55
  %.24051 = phi i32 [ %.038.lcssa, %55 ], [ %.038.lcssa, %._crit_edge ], [ 0, %3 ]
  %58 = phi i32 [ %57, %55 ], [ %.136.lcssa, %._crit_edge ], [ %5, %3 ]
  store i32 %58, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  ret i32 %.24051
}

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

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

declare i32 @sqlite3_bind_parameter_count(ptr noundef) local_unnamed_addr #3

declare i32 @sqlite3_clear_bindings(ptr noundef) local_unnamed_addr #3

declare i32 @sqlite3_bind_int64(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #3

declare i32 @sqlite3_bind_double(ptr noundef, i32 noundef, double noundef) local_unnamed_addr #3

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

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

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

; 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 240}
!12 = !{!"rebol_ext_api", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 16}
!15 = !{!"Reb_Series", !10, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !7, i64 24}
!16 = !{!12, !10, i64 304}
!17 = !{!15, !10, i64 0}
!18 = !{!15, !6, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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