; LLVM IR from nbosb/simdal :: src/simdal/db/db_sqlite.ll (ZN6simdal9db_sqlite11store_entryEPNS_16entry_call_stackE)

; 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.std::_List_iterator" = type { ptr }
%"class.std::shared_ptr.27" = type { %"class.std::__shared_ptr.28" }
%"class.std::__shared_ptr.28" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.simdal::db_sqlite" = type { %"class.simdal::db", ptr, i32, i32, i8, i8, 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 }
%"class.simdal::db" = type { ptr, %"class.std::__cxx11::basic_string", i32, i32, %"class.std::unique_ptr", %"class.std::unique_ptr.2", i8, i8, %"class.std::deque", %"class.std::mutex", %"class.std::condition_variable", %"class.std::condition_variable", i32, i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::unique_ptr.2" = type { %"struct.std::__uniq_ptr_data.3" }
%"struct.std::__uniq_ptr_data.3" = type { %"class.std::__uniq_ptr_impl.4" }
%"class.std::__uniq_ptr_impl.4" = type { %"class.std::tuple.5" }
%"class.std::tuple.5" = type { %"struct.std::_Tuple_impl.6" }
%"struct.std::_Tuple_impl.6" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<simdal::entry_base *, std::allocator<simdal::entry_base *>>::_Deque_impl" }
%"struct.std::_Deque_base<simdal::entry_base *, std::allocator<simdal::entry_base *>>::_Deque_impl" = type { %"struct.std::_Deque_base<simdal::entry_base *, std::allocator<simdal::entry_base *>>::_Deque_impl_data" }
%"struct.std::_Deque_base<simdal::entry_base *, std::allocator<simdal::entry_base *>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::condition_variable" = type { %"class.std::__condvar" }
%"class.std::__condvar" = type { %union.pthread_cond_t }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%"class.simdal::entry_call_stack" = type { %"class.simdal::entry.23", %"class.std::__cxx11::basic_string", i64, i64, %"class.std::__cxx11::list" }
%"class.simdal::entry.23" = type { %"class.simdal::entry_base", ptr }
%"class.simdal::entry_base" = type { ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<std::shared_ptr<simdal::entry_call_stack::function>, std::allocator<std::shared_ptr<simdal::entry_call_stack::function>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<std::shared_ptr<simdal::entry_call_stack::function>, std::allocator<std::shared_ptr<simdal::entry_call_stack::function>>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"struct.simdal::entry_call_stack::function" = type <{ i64, i64, %"class.std::__cxx11::basic_string", i64, i64, i8, [7 x i8] }>

@.str.102 = external hidden unnamed_addr constant [1 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6simdal9db_sqlite17exec_and_rst_stmtEP12sqlite3_stmt(ptr noundef nonnull align 8 dereferenceable(544), ptr noundef) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6simdal9db_sqlite11store_entryEPNS_16entry_call_stackE(ptr noundef nonnull align 8 dereferenceable(544) %0, ptr noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.std::_List_iterator", align 8
  %9 = alloca %"struct.std::_List_iterator", align 8
  %10 = alloca %"class.std::shared_ptr.27", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8
  %14 = getelementptr inbounds %"class.simdal::db_sqlite", ptr %13, i32 0, i32 7
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %"class.simdal::entry_call_stack", ptr %16, i32 0, i32 2
  %18 = load i64, ptr %17, align 8, !tbaa !38
  %19 = call i32 @sqlite3_bind_int64(ptr noundef %15, i32 noundef 1, i64 noundef %18)
  %20 = getelementptr inbounds %"class.simdal::db_sqlite", ptr %13, i32 0, i32 7
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %"class.simdal::entry_call_stack", ptr %22, i32 0, i32 3
  %24 = load i64, ptr %23, align 8, !tbaa !47
  %25 = call i32 @sqlite3_bind_int64(ptr noundef %21, i32 noundef 2, i64 noundef %24)
  %26 = getelementptr inbounds %"class.simdal::db_sqlite", ptr %13, i32 0, i32 7
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %"class.simdal::entry_call_stack", ptr %28, i32 0, i32 1
  %30 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %29) #4
  %31 = call i32 @sqlite3_bind_text(ptr noundef %27, i32 noundef 3, ptr noundef %30, i32 noundef -1, ptr noundef inttoptr (i64 -1 to ptr))
  %32 = getelementptr inbounds %"class.simdal::db_sqlite", ptr %13, i32 0, i32 7
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = call noundef zeroext i1 @_ZN6simdal9db_sqlite17exec_and_rst_stmtEP12sqlite3_stmt(ptr noundef nonnull align 8 dereferenceable(544) %13, ptr noundef %33)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %35 = getelementptr inbounds %"class.simdal::db_sqlite", ptr %13, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !48
  %37 = call i64 @sqlite3_last_insert_rowid(ptr noundef %36)
  store i64 %37, ptr %5, align 8, !tbaa !49
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %"class.simdal::entry_call_stack", ptr %38, i32 0, i32 4
  store ptr %39, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = call ptr @_ZNSt7__cxx114listISt10shared_ptrIN6simdal16entry_call_stack8functionEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #4
  %42 = getelementptr inbounds %"struct.std::_List_iterator", ptr %8, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = call ptr @_ZNSt7__cxx114listISt10shared_ptrIN6simdal16entry_call_stack8functionEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #4
  %45 = getelementptr inbounds %"struct.std::_List_iterator", ptr %9, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  br label %46

46:                                               ; preds = %131, %2
  %47 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorISt10shared_ptrIN6simdal16entry_call_stack8functionEEES7_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  br i1 %47, label %49, label %48

48:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %133

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #4
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorISt10shared_ptrIN6simdal16entry_call_stack8functionEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @_ZNSt10shared_ptrIN6simdal16entry_call_stack8functionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %50) #4
  %51 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  %52 = getelementptr inbounds %"struct.simdal::entry_call_stack::function", ptr %51, i32 0, i32 5
  %53 = load i8, ptr %52, align 8, !tbaa !51, !range !53, !noundef !54
  %54 = trunc i8 %53 to i1
  br i1 %54, label %55, label %85

55:                                               ; preds = %49
  %56 = getelementptr inbounds %"class.simdal::db_sqlite", ptr %13, i32 0, i32 21
  %57 = load ptr, ptr %56, align 8, !tbaa !55
  %58 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  %59 = getelementptr inbounds %"struct.simdal::entry_call_stack::function", ptr %58, i32 0, i32 2
  %60 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %59) #4
  %61 = invoke i32 @sqlite3_bind_text(ptr noundef %57, i32 noundef 1, ptr noundef %60, i32 noundef -1, ptr noundef inttoptr (i64 -1 to ptr))
          to label %62 unwind label %81

62:                                               ; preds = %55
  %63 = getelementptr inbounds %"class.simdal::db_sqlite", ptr %13, i32 0, i32 21
  %64 = load ptr, ptr %63, align 8, !tbaa !55
  %65 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  %66 = getelementptr inbounds %"struct.simdal::entry_call_stack::function", ptr %65, i32 0, i32 3
  %67 = load i64, ptr %66, align 8, !tbaa !56
  %68 = invoke i32 @sqlite3_bind_int64(ptr noundef %64, i32 noundef 2, i64 noundef %67)
          to label %69 unwind label %81

69:                                               ; preds = %62
  %70 = getelementptr inbounds %"class.simdal::db_sqlite", ptr %13, i32 0, i32 21
  %71 = load ptr, ptr %70, align 8, !tbaa !55
  %72 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  %73 = getelementptr inbounds %"struct.simdal::entry_call_stack::function", ptr %72, i32 0, i32 4
  %74 = load i64, ptr %73, align 8, !tbaa !57
  %75 = invoke i32 @sqlite3_bind_int64(ptr noundef %71, i32 noundef 3, i64 noundef %74)
          to label %76 unwind label %81

76:                                               ; preds = %69
  %77 = getelementptr inbounds %"class.simdal::db_sqlite", ptr %13, i32 0, i32 21
  %78 = load ptr, ptr %77, align 8, !tbaa !55
  %79 = invoke noundef zeroext i1 @_ZN6simdal9db_sqlite17exec_and_rst_stmtEP12sqlite3_stmt(ptr noundef nonnull align 8 dereferenceable(544) %13, ptr noundef %78)
          to label %80 unwind label %81

80:                                               ; preds = %76
  br label %85

81:                                               ; preds = %126, %123, %104, %97, %90, %85, %76, %69, %62, %55
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %11, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %12, align 4
  call void @_ZNSt12__shared_ptrIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %134

85:                                               ; preds = %80, %49
  %86 = getelementptr inbounds %"class.simdal::db_sqlite", ptr %13, i32 0, i32 8
  %87 = load ptr, ptr %86, align 8, !tbaa !58
  %88 = load i64, ptr %5, align 8, !tbaa !49
  %89 = invoke i32 @sqlite3_bind_int64(ptr noundef %87, i32 noundef 1, i64 noundef %88)
          to label %90 unwind label %81

90:                                               ; preds = %85
  %91 = getelementptr inbounds %"class.simdal::db_sqlite", ptr %13, i32 0, i32 8
  %92 = load ptr, ptr %91, align 8, !tbaa !58
  %93 = load i32, ptr %6, align 4, !tbaa !50
  %94 = add i32 %93, 1
  store i32 %94, ptr %6, align 4, !tbaa !50
  %95 = zext i32 %93 to i64
  %96 = invoke i32 @sqlite3_bind_int64(ptr noundef %92, i32 noundef 2, i64 noundef %95)
          to label %97 unwind label %81

97:                                               ; preds = %90
  %98 = getelementptr inbounds %"class.simdal::db_sqlite", ptr %13, i32 0, i32 8
  %99 = load ptr, ptr %98, align 8, !tbaa !58
  %100 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  %101 = getelementptr inbounds %"struct.simdal::entry_call_stack::function", ptr %100, i32 0, i32 1
  %102 = load i64, ptr %101, align 8, !tbaa !59
  %103 = invoke i32 @sqlite3_bind_int64(ptr noundef %99, i32 noundef 3, i64 noundef %102)
          to label %104 unwind label %81

104:                                              ; preds = %97
  %105 = getelementptr inbounds %"class.simdal::db_sqlite", ptr %13, i32 0, i32 8
  %106 = load ptr, ptr %105, align 8, !tbaa !58
  %107 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  %108 = getelementptr inbounds %"struct.simdal::entry_call_stack::function", ptr %107, i32 0, i32 0
  %109 = load i64, ptr %108, align 8, !tbaa !60
  %110 = invoke i32 @sqlite3_bind_int64(ptr noundef %106, i32 noundef 4, i64 noundef %109)
          to label %111 unwind label %81

111:                                              ; preds = %104
  %112 = getelementptr inbounds %"class.simdal::db_sqlite", ptr %13, i32 0, i32 8
  %113 = load ptr, ptr %112, align 8, !tbaa !58
  %114 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  %115 = getelementptr inbounds %"struct.simdal::entry_call_stack::function", ptr %114, i32 0, i32 5
  %116 = load i8, ptr %115, align 8, !tbaa !51, !range !53, !noundef !54
  %117 = trunc i8 %116 to i1
  br i1 %117, label %118, label %122

118:                                              ; preds = %111
  %119 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  %120 = getelementptr inbounds %"struct.simdal::entry_call_stack::function", ptr %119, i32 0, i32 2
  %121 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %120) #4
  br label %123

122:                                              ; preds = %111
  br label %123

123:                                              ; preds = %122, %118
  %124 = phi ptr [ %121, %118 ], [ @.str.102, %122 ]
  %125 = invoke i32 @sqlite3_bind_text(ptr noundef %113, i32 noundef 5, ptr noundef %124, i32 noundef -1, ptr noundef inttoptr (i64 -1 to ptr))
          to label %126 unwind label %81

126:                                              ; preds = %123
  %127 = getelementptr inbounds %"class.simdal::db_sqlite", ptr %13, i32 0, i32 8
  %128 = load ptr, ptr %127, align 8, !tbaa !58
  %129 = invoke noundef zeroext i1 @_ZN6simdal9db_sqlite17exec_and_rst_stmtEP12sqlite3_stmt(ptr noundef nonnull align 8 dereferenceable(544) %13, ptr noundef %128)
          to label %130 unwind label %81

130:                                              ; preds = %126
  call void @_ZNSt12__shared_ptrIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  br label %131

131:                                              ; preds = %130
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorISt10shared_ptrIN6simdal16entry_call_stack8functionEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br label %46

133:                                              ; preds = %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret i1 true

134:                                              ; preds = %81
  %135 = load ptr, ptr %11, align 8
  %136 = load i32, ptr %12, align 4
  %137 = insertvalue { ptr, i32 } poison, ptr %135, 0
  %138 = insertvalue { ptr, i32 } %137, i32 %136, 1
  resume { ptr, i32 } %138
}

declare i64 @sqlite3_last_insert_rowid(ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listISt10shared_ptrIN6simdal16entry_call_stack8functionEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listISt10shared_ptrIN6simdal16entry_call_stack8functionEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt14_List_iteratorISt10shared_ptrIN6simdal16entry_call_stack8functionEEES7_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorISt10shared_ptrIN6simdal16entry_call_stack8functionEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN6simdal16entry_call_stack8functionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorISt10shared_ptrIN6simdal16entry_call_stack8functionEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress 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 = { 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++ TBAA"}
!9 = !{!10, !6, i64 328}
!10 = !{!"_ZTSN6simdal9db_sqliteE", !11, i64 0, !6, i64 296, !15, i64 304, !15, i64 308, !28, i64 312, !28, i64 313, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !6, i64 536}
!11 = !{!"_ZTSN6simdal2dbE", !12, i64 8, !15, i64 40, !15, i64 44, !16, i64 48, !22, i64 56, !28, i64 64, !28, i64 65, !29, i64 72, !34, i64 152, !36, i64 192, !36, i64 240, !15, i64 288, !15, i64 292}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !14, i64 8, !7, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSSt10unique_ptrIN6simdal8csv_fileESt14default_deleteIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_dataIN6simdal8csv_fileESt14default_deleteIS1_ELb1ELb1EE", !18, i64 0}
!18 = !{!"_ZTSSt15__uniq_ptr_implIN6simdal8csv_fileESt14default_deleteIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt5tupleIJPN6simdal8csv_fileESt14default_deleteIS1_EEE", !20, i64 0}
!20 = !{!"_ZTSSt11_Tuple_implILm0EJPN6simdal8csv_fileESt14default_deleteIS1_EEE", !21, i64 0}
!21 = !{!"_ZTSSt10_Head_baseILm0EPN6simdal8csv_fileELb0EE", !6, i64 0}
!22 = !{!"_ZTSSt10unique_ptrISt6threadSt14default_deleteIS0_EE", !23, i64 0}
!23 = !{!"_ZTSSt15__uniq_ptr_dataISt6threadSt14default_deleteIS0_ELb1ELb1EE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_implISt6threadSt14default_deleteIS0_EE", !25, i64 0}
!25 = !{!"_ZTSSt5tupleIJPSt6threadSt14default_deleteIS0_EEE", !26, i64 0}
!26 = !{!"_ZTSSt11_Tuple_implILm0EJPSt6threadSt14default_deleteIS0_EEE", !27, i64 0}
!27 = !{!"_ZTSSt10_Head_baseILm0EPSt6threadLb0EE", !6, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTSSt5dequeIPN6simdal10entry_baseESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSSt11_Deque_baseIPN6simdal10entry_baseESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSNSt11_Deque_baseIPN6simdal10entry_baseESaIS2_EE11_Deque_implE", !32, i64 0}
!32 = !{!"_ZTSNSt11_Deque_baseIPN6simdal10entry_baseESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !14, i64 8, !33, i64 16, !33, i64 48}
!33 = !{!"_ZTSSt15_Deque_iteratorIPN6simdal10entry_baseERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!34 = !{!"_ZTSSt5mutex", !35, i64 0}
!35 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!36 = !{!"_ZTSSt18condition_variable", !37, i64 0}
!37 = !{!"_ZTSSt9__condvar", !7, i64 0}
!38 = !{!39, !14, i64 48}
!39 = !{!"_ZTSN6simdal16entry_call_stackE", !40, i64 0, !12, i64 16, !14, i64 48, !14, i64 56, !42, i64 64}
!40 = !{!"_ZTSN6simdal5entryINS_16entry_call_stackEEE", !41, i64 0, !6, i64 8}
!41 = !{!"_ZTSN6simdal10entry_baseE"}
!42 = !{!"_ZTSNSt7__cxx114listISt10shared_ptrIN6simdal16entry_call_stack8functionEESaIS5_EEE", !43, i64 0}
!43 = !{!"_ZTSNSt7__cxx1110_List_baseISt10shared_ptrIN6simdal16entry_call_stack8functionEESaIS5_EEE", !44, i64 0}
!44 = !{!"_ZTSNSt7__cxx1110_List_baseISt10shared_ptrIN6simdal16entry_call_stack8functionEESaIS5_EE10_List_implE", !45, i64 0}
!45 = !{!"_ZTSNSt8__detail17_List_node_headerE", !46, i64 0, !14, i64 16}
!46 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!47 = !{!39, !14, i64 56}
!48 = !{!10, !6, i64 296}
!49 = !{!14, !14, i64 0}
!50 = !{!15, !15, i64 0}
!51 = !{!52, !28, i64 64}
!52 = !{!"_ZTSN6simdal16entry_call_stack8functionE", !14, i64 0, !14, i64 8, !12, i64 16, !14, i64 48, !14, i64 56, !28, i64 64}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = !{!10, !6, i64 440}
!56 = !{!52, !14, i64 48}
!57 = !{!52, !14, i64 56}
!58 = !{!10, !6, i64 336}
!59 = !{!52, !14, i64 8}
!60 = !{!52, !14, 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"

%"struct.std::_List_iterator" = type { ptr }
%"class.std::shared_ptr.27" = type { %"class.std::__shared_ptr.28" }
%"class.std::__shared_ptr.28" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

@.str.102 = external hidden unnamed_addr constant [1 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; 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 nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6simdal9db_sqlite17exec_and_rst_stmtEP12sqlite3_stmt(ptr noundef nonnull align 8 dereferenceable(544), ptr noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6simdal9db_sqlite11store_entryEPNS_16entry_call_stackE(ptr noundef nonnull align 8 dereferenceable(544) %0, ptr noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.std::_List_iterator", align 8
  %4 = alloca %"struct.std::_List_iterator", align 8
  %5 = alloca %"class.std::shared_ptr.27", align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 328
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %1, i64 48
  %9 = load i64, ptr %8, align 8, !tbaa !37
  %10 = tail call i32 @sqlite3_bind_int64(ptr noundef %7, i32 noundef 1, i64 noundef %9)
  %11 = load ptr, ptr %6, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %1, i64 56
  %13 = load i64, ptr %12, align 8, !tbaa !46
  %14 = tail call i32 @sqlite3_bind_int64(ptr noundef %11, i32 noundef 2, i64 noundef %13)
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %1, i64 16
  %17 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %16) #4
  %18 = tail call i32 @sqlite3_bind_text(ptr noundef %15, i32 noundef 3, ptr noundef %17, i32 noundef -1, ptr noundef nonnull inttoptr (i64 -1 to ptr))
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = tail call noundef zeroext i1 @_ZN6simdal9db_sqlite17exec_and_rst_stmtEP12sqlite3_stmt(ptr noundef nonnull align 8 dereferenceable(544) %0, ptr noundef %19)
  %21 = getelementptr inbounds i8, ptr %0, i64 296
  %22 = load ptr, ptr %21, align 8, !tbaa !47
  %23 = tail call i64 @sqlite3_last_insert_rowid(ptr noundef %22)
  %24 = getelementptr inbounds i8, ptr %1, i64 64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %25 = tail call ptr @_ZNSt7__cxx114listISt10shared_ptrIN6simdal16entry_call_stack8functionEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #4
  store ptr %25, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %26 = tail call ptr @_ZNSt7__cxx114listISt10shared_ptrIN6simdal16entry_call_stack8functionEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #4
  store ptr %26, ptr %4, align 8
  %27 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorISt10shared_ptrIN6simdal16entry_call_stack8functionEEES7_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %27, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %28 = getelementptr inbounds i8, ptr %0, i64 440
  %29 = getelementptr inbounds i8, ptr %0, i64 336
  br label %30

._crit_edge:                                      ; preds = %94, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret i1 true

30:                                               ; preds = %.lr.ph, %94
  %.010 = phi i32 [ 0, %.lr.ph ], [ %64, %94 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorISt10shared_ptrIN6simdal16entry_call_stack8functionEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  call void @_ZNSt10shared_ptrIN6simdal16entry_call_stack8functionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %31) #4
  %32 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  %33 = getelementptr inbounds i8, ptr %32, i64 64
  %34 = load i8, ptr %33, align 8, !tbaa !48, !range !50, !noundef !51
  %35 = trunc nuw i8 %34 to i1
  br i1 %35, label %36, label %59

36:                                               ; preds = %30
  %37 = load ptr, ptr %28, align 8, !tbaa !52
  %38 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %40 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %39) #4
  %41 = invoke i32 @sqlite3_bind_text(ptr noundef %37, i32 noundef 1, ptr noundef %40, i32 noundef -1, ptr noundef nonnull inttoptr (i64 -1 to ptr))
          to label %42 unwind label %57

42:                                               ; preds = %36
  %43 = load ptr, ptr %28, align 8, !tbaa !52
  %44 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  %45 = getelementptr inbounds i8, ptr %44, i64 48
  %46 = load i64, ptr %45, align 8, !tbaa !53
  %47 = invoke i32 @sqlite3_bind_int64(ptr noundef %43, i32 noundef 2, i64 noundef %46)
          to label %48 unwind label %57

48:                                               ; preds = %42
  %49 = load ptr, ptr %28, align 8, !tbaa !52
  %50 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  %51 = getelementptr inbounds i8, ptr %50, i64 56
  %52 = load i64, ptr %51, align 8, !tbaa !54
  %53 = invoke i32 @sqlite3_bind_int64(ptr noundef %49, i32 noundef 3, i64 noundef %52)
          to label %54 unwind label %57

54:                                               ; preds = %48
  %55 = load ptr, ptr %28, align 8, !tbaa !52
  %56 = invoke noundef zeroext i1 @_ZN6simdal9db_sqlite17exec_and_rst_stmtEP12sqlite3_stmt(ptr noundef nonnull align 8 dereferenceable(544) %0, ptr noundef %55)
          to label %59 unwind label %57

57:                                               ; preds = %91, %88, %73, %67, %62, %59, %54, %48, %42, %36
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  resume { ptr, i32 } %58

59:                                               ; preds = %54, %30
  %60 = load ptr, ptr %29, align 8, !tbaa !55
  %61 = invoke i32 @sqlite3_bind_int64(ptr noundef %60, i32 noundef 1, i64 noundef %23)
          to label %62 unwind label %57

62:                                               ; preds = %59
  %63 = load ptr, ptr %29, align 8, !tbaa !55
  %64 = add i32 %.010, 1
  %65 = zext i32 %.010 to i64
  %66 = invoke i32 @sqlite3_bind_int64(ptr noundef %63, i32 noundef 2, i64 noundef %65)
          to label %67 unwind label %57

67:                                               ; preds = %62
  %68 = load ptr, ptr %29, align 8, !tbaa !55
  %69 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = load i64, ptr %70, align 8, !tbaa !56
  %72 = invoke i32 @sqlite3_bind_int64(ptr noundef %68, i32 noundef 3, i64 noundef %71)
          to label %73 unwind label %57

73:                                               ; preds = %67
  %74 = load ptr, ptr %29, align 8, !tbaa !55
  %75 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  %76 = load i64, ptr %75, align 8, !tbaa !57
  %77 = invoke i32 @sqlite3_bind_int64(ptr noundef %74, i32 noundef 4, i64 noundef %76)
          to label %78 unwind label %57

78:                                               ; preds = %73
  %79 = load ptr, ptr %29, align 8, !tbaa !55
  %80 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  %81 = getelementptr inbounds i8, ptr %80, i64 64
  %82 = load i8, ptr %81, align 8, !tbaa !48, !range !50, !noundef !51
  %83 = trunc nuw i8 %82 to i1
  br i1 %83, label %84, label %88

84:                                               ; preds = %78
  %85 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  %86 = getelementptr inbounds i8, ptr %85, i64 16
  %87 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %86) #4
  br label %88

88:                                               ; preds = %78, %84
  %89 = phi ptr [ %87, %84 ], [ @.str.102, %78 ]
  %90 = invoke i32 @sqlite3_bind_text(ptr noundef %79, i32 noundef 5, ptr noundef %89, i32 noundef -1, ptr noundef nonnull inttoptr (i64 -1 to ptr))
          to label %91 unwind label %57

91:                                               ; preds = %88
  %92 = load ptr, ptr %29, align 8, !tbaa !55
  %93 = invoke noundef zeroext i1 @_ZN6simdal9db_sqlite17exec_and_rst_stmtEP12sqlite3_stmt(ptr noundef nonnull align 8 dereferenceable(544) %0, ptr noundef %92)
          to label %94 unwind label %57

94:                                               ; preds = %91
  call void @_ZNSt12__shared_ptrIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorISt10shared_ptrIN6simdal16entry_call_stack8functionEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %96 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorISt10shared_ptrIN6simdal16entry_call_stack8functionEEES7_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %96, label %30, label %._crit_edge
}

declare i64 @sqlite3_last_insert_rowid(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listISt10shared_ptrIN6simdal16entry_call_stack8functionEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listISt10shared_ptrIN6simdal16entry_call_stack8functionEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt14_List_iteratorISt10shared_ptrIN6simdal16entry_call_stack8functionEEES7_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt14_List_iteratorISt10shared_ptrIN6simdal16entry_call_stack8functionEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN6simdal16entry_call_stack8functionEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN6simdal16entry_call_stack8functionELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorISt10shared_ptrIN6simdal16entry_call_stack8functionEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { mustprogress 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 = { 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, !10, i64 328}
!6 = !{!"_ZTSN6simdal9db_sqliteE", !7, i64 0, !10, i64 296, !14, i64 304, !14, i64 308, !27, i64 312, !27, i64 313, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !10, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !10, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !10, i64 496, !10, i64 504, !10, i64 512, !10, i64 520, !10, i64 528, !10, i64 536}
!7 = !{!"_ZTSN6simdal2dbE", !8, i64 8, !14, i64 40, !14, i64 44, !15, i64 48, !21, i64 56, !27, i64 64, !27, i64 65, !28, i64 72, !33, i64 152, !35, i64 192, !35, i64 240, !14, i64 288, !14, i64 292}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !9, i64 0, !13, i64 8, !11, i64 16}
!9 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"long", !11, i64 0}
!14 = !{!"int", !11, i64 0}
!15 = !{!"_ZTSSt10unique_ptrIN6simdal8csv_fileESt14default_deleteIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_dataIN6simdal8csv_fileESt14default_deleteIS1_ELb1ELb1EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_implIN6simdal8csv_fileESt14default_deleteIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt5tupleIJPN6simdal8csv_fileESt14default_deleteIS1_EEE", !19, i64 0}
!19 = !{!"_ZTSSt11_Tuple_implILm0EJPN6simdal8csv_fileESt14default_deleteIS1_EEE", !20, i64 0}
!20 = !{!"_ZTSSt10_Head_baseILm0EPN6simdal8csv_fileELb0EE", !10, i64 0}
!21 = !{!"_ZTSSt10unique_ptrISt6threadSt14default_deleteIS0_EE", !22, i64 0}
!22 = !{!"_ZTSSt15__uniq_ptr_dataISt6threadSt14default_deleteIS0_ELb1ELb1EE", !23, i64 0}
!23 = !{!"_ZTSSt15__uniq_ptr_implISt6threadSt14default_deleteIS0_EE", !24, i64 0}
!24 = !{!"_ZTSSt5tupleIJPSt6threadSt14default_deleteIS0_EEE", !25, i64 0}
!25 = !{!"_ZTSSt11_Tuple_implILm0EJPSt6threadSt14default_deleteIS0_EEE", !26, i64 0}
!26 = !{!"_ZTSSt10_Head_baseILm0EPSt6threadLb0EE", !10, i64 0}
!27 = !{!"bool", !11, i64 0}
!28 = !{!"_ZTSSt5dequeIPN6simdal10entry_baseESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSSt11_Deque_baseIPN6simdal10entry_baseESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSNSt11_Deque_baseIPN6simdal10entry_baseESaIS2_EE11_Deque_implE", !31, i64 0}
!31 = !{!"_ZTSNSt11_Deque_baseIPN6simdal10entry_baseESaIS2_EE16_Deque_impl_dataE", !10, i64 0, !13, i64 8, !32, i64 16, !32, i64 48}
!32 = !{!"_ZTSSt15_Deque_iteratorIPN6simdal10entry_baseERS2_PS2_E", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!33 = !{!"_ZTSSt5mutex", !34, i64 0}
!34 = !{!"_ZTSSt12__mutex_base", !11, i64 0}
!35 = !{!"_ZTSSt18condition_variable", !36, i64 0}
!36 = !{!"_ZTSSt9__condvar", !11, i64 0}
!37 = !{!38, !13, i64 48}
!38 = !{!"_ZTSN6simdal16entry_call_stackE", !39, i64 0, !8, i64 16, !13, i64 48, !13, i64 56, !41, i64 64}
!39 = !{!"_ZTSN6simdal5entryINS_16entry_call_stackEEE", !40, i64 0, !10, i64 8}
!40 = !{!"_ZTSN6simdal10entry_baseE"}
!41 = !{!"_ZTSNSt7__cxx114listISt10shared_ptrIN6simdal16entry_call_stack8functionEESaIS5_EEE", !42, i64 0}
!42 = !{!"_ZTSNSt7__cxx1110_List_baseISt10shared_ptrIN6simdal16entry_call_stack8functionEESaIS5_EEE", !43, i64 0}
!43 = !{!"_ZTSNSt7__cxx1110_List_baseISt10shared_ptrIN6simdal16entry_call_stack8functionEESaIS5_EE10_List_implE", !44, i64 0}
!44 = !{!"_ZTSNSt8__detail17_List_node_headerE", !45, i64 0, !13, i64 16}
!45 = !{!"_ZTSNSt8__detail15_List_node_baseE", !10, i64 0, !10, i64 8}
!46 = !{!38, !13, i64 56}
!47 = !{!6, !10, i64 296}
!48 = !{!49, !27, i64 64}
!49 = !{!"_ZTSN6simdal16entry_call_stack8functionE", !13, i64 0, !13, i64 8, !8, i64 16, !13, i64 48, !13, i64 56, !27, i64 64}
!50 = !{i8 0, i8 2}
!51 = !{}
!52 = !{!6, !10, i64 440}
!53 = !{!49, !13, i64 48}
!54 = !{!49, !13, i64 56}
!55 = !{!6, !10, i64 336}
!56 = !{!49, !13, i64 8}
!57 = !{!49, !13, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass