; LLVM IR from ggml-org/ggml :: src (gguf)

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

%"class.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.41" = type { i8 }
%struct.gguf_context = type { i32, %"class.std::vector", %"class.std::vector.17", i64, i64, i64, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<gguf_kv, std::allocator<gguf_kv>>::_Vector_impl" }
%"struct.std::_Vector_base<gguf_kv, std::allocator<gguf_kv>>::_Vector_impl" = type { %"struct.std::_Vector_base<gguf_kv, std::allocator<gguf_kv>>::_Vector_impl_data" }
%"struct.std::_Vector_base<gguf_kv, std::allocator<gguf_kv>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<gguf_tensor_info, std::allocator<gguf_tensor_info>>::_Vector_impl" }
%"struct.std::_Vector_base<gguf_tensor_info, std::allocator<gguf_tensor_info>>::_Vector_impl" = type { %"struct.std::_Vector_base<gguf_tensor_info, std::allocator<gguf_tensor_info>>::_Vector_impl_data" }
%"struct.std::_Vector_base<gguf_tensor_info, std::allocator<gguf_tensor_info>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.gguf_kv = type { %"class.std::__cxx11::basic_string", i8, i32, %"class.std::vector.27", %"class.std::vector.32" }
%"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::vector.27" = type { %"struct.std::_Vector_base.28" }
%"struct.std::_Vector_base.28" = type { %"struct.std::_Vector_base<signed char, std::allocator<signed char>>::_Vector_impl" }
%"struct.std::_Vector_base<signed char, std::allocator<signed char>>::_Vector_impl" = type { %"struct.std::_Vector_base<signed char, std::allocator<signed char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<signed char, std::allocator<signed char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.28 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [13 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: noreturn
declare void @ggml_abort(ptr noundef, i32 noundef, ptr noundef, ...) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @gguf_get_n_kv(ptr noundef) #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK7gguf_kv6get_neEv(ptr noundef nonnull align 8 dereferenceable(88)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7gguf_kv7get_valIhEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7gguf_kv7get_valIaEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZNK7gguf_kv7get_valItEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZNK7gguf_kv7get_valIsEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv7get_valIjEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv7get_valIiEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv7get_valIfEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7gguf_kv7get_valImEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7gguf_kv7get_valIlEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7gguf_kv7get_valIdEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7gguf_kv7get_valIbEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_valINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_u8(ptr noundef, ptr noundef, i8 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_i8(ptr noundef, ptr noundef, i8 noundef signext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_u16(ptr noundef, ptr noundef, i16 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_i16(ptr noundef, ptr noundef, i16 noundef signext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_u32(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_i32(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_f32(ptr noundef, ptr noundef, float noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_u64(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_i64(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_f64(ptr noundef, ptr noundef, double noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_bool(ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_str(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_arr_data(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_arr_str(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @gguf_set_kv(ptr noundef %0, ptr noundef %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::vector.39", align 8
  %11 = alloca %"class.std::allocator.41", align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = call i64 @gguf_get_n_kv(ptr noundef %15)
  store i64 %16, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !9
  br label %17

17:                                               ; preds = %196, %2
  %18 = load i64, ptr %6, align 8, !tbaa !9
  %19 = load i64, ptr %5, align 8, !tbaa !9
  %20 = icmp slt i64 %18, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %199

22:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.gguf_context, ptr %23, i32 0, i32 1
  %25 = load i64, ptr %6, align 8, !tbaa !9
  %26 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorI7gguf_kvSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %25) #4
  store ptr %26, ptr %8, align 8, !tbaa !5
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.gguf_kv, ptr %27, i32 0, i32 1
  %29 = load i8, ptr %28, align 8, !tbaa !11, !range !25, !noundef !26
  %30 = trunc i8 %29 to i1
  br i1 %30, label %135, label %31

31:                                               ; preds = %22
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv8get_typeEv(ptr noundef nonnull align 8 dereferenceable(88) %32)
  %34 = load i32, ptr %33, align 4, !tbaa !27
  switch i32 %34, label %133 [
    i32 0, label %35
    i32 1, label %43
    i32 2, label %51
    i32 3, label %59
    i32 4, label %67
    i32 5, label %75
    i32 6, label %83
    i32 10, label %91
    i32 11, label %99
    i32 12, label %107
    i32 7, label %115
    i32 8, label %124
    i32 9, label %132
  ]

35:                                               ; preds = %31
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %37)
  %39 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %38) #4
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7gguf_kv7get_valIhEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %40, i64 noundef 0)
  %42 = load i8, ptr %41, align 1, !tbaa !28
  call void @gguf_set_val_u8(ptr noundef %36, ptr noundef %39, i8 noundef zeroext %42)
  br label %134

43:                                               ; preds = %31
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %45)
  %47 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %46) #4
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7gguf_kv7get_valIaEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %48, i64 noundef 0)
  %50 = load i8, ptr %49, align 1, !tbaa !28
  call void @gguf_set_val_i8(ptr noundef %44, ptr noundef %47, i8 noundef signext %50)
  br label %134

51:                                               ; preds = %31
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %53)
  %55 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %54) #4
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNK7gguf_kv7get_valItEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %56, i64 noundef 0)
  %58 = load i16, ptr %57, align 2, !tbaa !29
  call void @gguf_set_val_u16(ptr noundef %52, ptr noundef %55, i16 noundef zeroext %58)
  br label %134

59:                                               ; preds = %31
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %61)
  %63 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %62) #4
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNK7gguf_kv7get_valIsEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %64, i64 noundef 0)
  %66 = load i16, ptr %65, align 2, !tbaa !29
  call void @gguf_set_val_i16(ptr noundef %60, ptr noundef %63, i16 noundef signext %66)
  br label %134

67:                                               ; preds = %31
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %69)
  %71 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %70) #4
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv7get_valIjEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %72, i64 noundef 0)
  %74 = load i32, ptr %73, align 4, !tbaa !31
  call void @gguf_set_val_u32(ptr noundef %68, ptr noundef %71, i32 noundef %74)
  br label %134

75:                                               ; preds = %31
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %77)
  %79 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %78) #4
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv7get_valIiEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %80, i64 noundef 0)
  %82 = load i32, ptr %81, align 4, !tbaa !31
  call void @gguf_set_val_i32(ptr noundef %76, ptr noundef %79, i32 noundef %82)
  br label %134

83:                                               ; preds = %31
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %85)
  %87 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %86) #4
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv7get_valIfEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %88, i64 noundef 0)
  %90 = load float, ptr %89, align 4, !tbaa !33
  call void @gguf_set_val_f32(ptr noundef %84, ptr noundef %87, float noundef %90)
  br label %134

91:                                               ; preds = %31
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %93)
  %95 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %94) #4
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7gguf_kv7get_valImEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %96, i64 noundef 0)
  %98 = load i64, ptr %97, align 8, !tbaa !9
  call void @gguf_set_val_u64(ptr noundef %92, ptr noundef %95, i64 noundef %98)
  br label %134

99:                                               ; preds = %31
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %101)
  %103 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %102) #4
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7gguf_kv7get_valIlEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %104, i64 noundef 0)
  %106 = load i64, ptr %105, align 8, !tbaa !9
  call void @gguf_set_val_i64(ptr noundef %100, ptr noundef %103, i64 noundef %106)
  br label %134

107:                                              ; preds = %31
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %109)
  %111 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %110) #4
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7gguf_kv7get_valIdEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %112, i64 noundef 0)
  %114 = load double, ptr %113, align 8, !tbaa !35
  call void @gguf_set_val_f64(ptr noundef %108, ptr noundef %111, double noundef %114)
  br label %134

115:                                              ; preds = %31
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %117)
  %119 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %118) #4
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7gguf_kv7get_valIbEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %120, i64 noundef 0)
  %122 = load i8, ptr %121, align 1, !tbaa !37, !range !25, !noundef !26
  %123 = trunc i8 %122 to i1
  call void @gguf_set_val_bool(ptr noundef %116, ptr noundef %119, i1 noundef zeroext %123)
  br label %134

124:                                              ; preds = %31
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %126)
  %128 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %127) #4
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_valINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %129, i64 noundef 0)
  %131 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %130) #4
  call void @gguf_set_val_str(ptr noundef %125, ptr noundef %128, ptr noundef %131)
  br label %134

132:                                              ; preds = %31
  br label %133

133:                                              ; preds = %132, %31
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.28, i32 noundef 1058, ptr noundef @.str.60) #5
  unreachable

134:                                              ; preds = %124, %115, %107, %99, %91, %83, %75, %67, %59, %51, %43, %35
  store i32 4, ptr %7, align 4
  br label %193

135:                                              ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = call noundef i64 @_ZNK7gguf_kv6get_neEv(ptr noundef nonnull align 8 dereferenceable(88) %136)
  store i64 %137, ptr %9, align 8, !tbaa !9
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv8get_typeEv(ptr noundef nonnull align 8 dereferenceable(88) %138)
  %140 = load i32, ptr %139, align 4, !tbaa !27
  switch i32 %140, label %191 [
    i32 0, label %141
    i32 1, label %141
    i32 2, label %141
    i32 3, label %141
    i32 4, label %141
    i32 5, label %141
    i32 6, label %141
    i32 10, label %141
    i32 11, label %141
    i32 12, label %141
    i32 7, label %141
    i32 8, label %153
    i32 9, label %190
  ]

141:                                              ; preds = %135, %135, %135, %135, %135, %135, %135, %135, %135, %135, %135
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %143)
  %145 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %144) #4
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv8get_typeEv(ptr noundef nonnull align 8 dereferenceable(88) %146)
  %148 = load i32, ptr %147, align 4, !tbaa !27
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.gguf_kv, ptr %149, i32 0, i32 3
  %151 = call noundef ptr @_ZNKSt6vectorIaSaIaEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %150) #4
  %152 = load i64, ptr %9, align 8, !tbaa !9
  call void @gguf_set_arr_data(ptr noundef %142, ptr noundef %145, i32 noundef %148, ptr noundef %151, i64 noundef %152)
  br label %192

153:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  %154 = load i64, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  call void @_ZNSaIPKcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  invoke void @_ZNSt6vectorIPKcSaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %154, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %155 unwind label %161

155:                                              ; preds = %153
  call void @_ZNSt15__new_allocatorIPKcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %156

156:                                              ; preds = %173, %155
  %157 = load i64, ptr %14, align 8, !tbaa !9
  %158 = load i64, ptr %9, align 8, !tbaa !9
  %159 = icmp ult i64 %157, %158
  br i1 %159, label %165, label %160

160:                                              ; preds = %156
  store i32 7, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %176

161:                                              ; preds = %153
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %12, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIPKcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  br label %189

165:                                              ; preds = %156
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.gguf_kv, ptr %166, i32 0, i32 4
  %168 = load i64, ptr %14, align 8, !tbaa !9
  %169 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %168) #4
  %170 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %169) #4
  %171 = load i64, ptr %14, align 8, !tbaa !9
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %171) #4
  store ptr %170, ptr %172, align 8, !tbaa !5
  br label %173

173:                                              ; preds = %165
  %174 = load i64, ptr %14, align 8, !tbaa !9
  %175 = add i64 %174, 1
  store i64 %175, ptr %14, align 8, !tbaa !9
  br label %156, !llvm.loop !38

176:                                              ; preds = %160
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %178)
          to label %180 unwind label %185

180:                                              ; preds = %176
  %181 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %179) #4
  %182 = call noundef ptr @_ZNSt6vectorIPKcSaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  %183 = load i64, ptr %9, align 8, !tbaa !9
  invoke void @gguf_set_arr_str(ptr noundef %177, ptr noundef %181, ptr noundef %182, i64 noundef %183)
          to label %184 unwind label %185

184:                                              ; preds = %180
  call void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  br label %192

185:                                              ; preds = %180, %176
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %12, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %13, align 4
  call void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  br label %189

189:                                              ; preds = %185, %161
  call void @llvm.lifetime.end.p0(i64 24, 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 %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %200

190:                                              ; preds = %135
  br label %191

191:                                              ; preds = %190, %135
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.28, i32 noundef 1087, ptr noundef @.str.60) #5
  unreachable

192:                                              ; preds = %184, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  store i32 0, ptr %7, align 4
  br label %193

193:                                              ; preds = %192, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %194 = load i32, ptr %7, align 4
  switch i32 %194, label %205 [
    i32 0, label %195
    i32 4, label %196
  ]

195:                                              ; preds = %193
  br label %196

196:                                              ; preds = %195, %193
  %197 = load i64, ptr %6, align 8, !tbaa !9
  %198 = add nsw i64 %197, 1
  store i64 %198, ptr %6, align 8, !tbaa !9
  br label %17, !llvm.loop !40

199:                                              ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void

200:                                              ; preds = %189
  %201 = load ptr, ptr %12, align 8
  %202 = load i32, ptr %13, align 4
  %203 = insertvalue { ptr, i32 } poison, ptr %201, 0
  %204 = insertvalue { ptr, i32 } %203, i32 %202, 1
  resume { ptr, i32 } %204

205:                                              ; preds = %193
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPKcSaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIPKcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #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 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { nounwind }
attributes #5 = { noreturn }

!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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !15, i64 32}
!12 = !{!"_ZTS7gguf_kv", !13, i64 0, !15, i64 32, !16, i64 36, !17, i64 40, !21, i64 64}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !10, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTS9gguf_type", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIaSaIaEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIaSaIaEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIaSaIaEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIaSaIaEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!16, !16, i64 0}
!28 = !{!7, !7, i64 0}
!29 = !{!30, !30, i64 0}
!30 = !{!"short", !7, i64 0}
!31 = !{!32, !32, i64 0}
!32 = !{!"int", !7, i64 0}
!33 = !{!34, !34, i64 0}
!34 = !{!"float", !7, i64 0}
!35 = !{!36, !36, i64 0}
!36 = !{!"double", !7, i64 0}
!37 = !{!15, !15, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}


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

%"class.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.41" = type { i8 }

@.str.28 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [13 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: noreturn
declare void @ggml_abort(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @gguf_get_n_kv(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK7gguf_kv6get_neEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7gguf_kv7get_valIhEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7gguf_kv7get_valIaEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZNK7gguf_kv7get_valItEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZNK7gguf_kv7get_valIsEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv7get_valIjEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv7get_valIiEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv7get_valIfEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7gguf_kv7get_valImEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7gguf_kv7get_valIlEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7gguf_kv7get_valIdEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7gguf_kv7get_valIbEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_valINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKT_m(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_u8(ptr noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_i8(ptr noundef, ptr noundef, i8 noundef signext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_u16(ptr noundef, ptr noundef, i16 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_i16(ptr noundef, ptr noundef, i16 noundef signext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_u32(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_i32(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_f32(ptr noundef, ptr noundef, float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_u64(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_i64(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_f64(ptr noundef, ptr noundef, double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_bool(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_val_str(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_arr_data(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @gguf_set_arr_str(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @gguf_set_kv(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.39", align 8
  %4 = alloca %"class.std::allocator.41", align 1
  %5 = tail call i64 @gguf_get_n_kv(ptr noundef %1)
  %6 = icmp sgt i64 %5, 0
  br i1 %6, label %.lr.ph70, label %._crit_edge71

.lr.ph70:                                         ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  br label %8

._crit_edge71:                                    ; preds = %107, %2
  ret void

8:                                                ; preds = %.lr.ph70, %107
  %.06468 = phi i64 [ 0, %.lr.ph70 ], [ %108, %107 ]
  %9 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZNKSt6vectorI7gguf_kvSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.06468) #4
  %10 = getelementptr inbounds i8, ptr %9, i64 32
  %11 = load i8, ptr %10, align 8, !tbaa !5, !range !23, !noundef !24
  %12 = trunc nuw i8 %11 to i1
  br i1 %12, label %78, label %13

13:                                               ; preds = %8
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv8get_typeEv(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %15 = load i32, ptr %14, align 4, !tbaa !25
  switch i32 %15, label %77 [
    i32 0, label %16
    i32 1, label %21
    i32 2, label %26
    i32 3, label %31
    i32 4, label %36
    i32 5, label %41
    i32 6, label %46
    i32 10, label %51
    i32 11, label %56
    i32 12, label %61
    i32 7, label %66
    i32 8, label %72
  ]

16:                                               ; preds = %13
  %17 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %18 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %17) #4
  %19 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7gguf_kv7get_valIhEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %9, i64 noundef 0)
  %20 = load i8, ptr %19, align 1, !tbaa !26
  call void @gguf_set_val_u8(ptr noundef %0, ptr noundef %18, i8 noundef zeroext %20)
  br label %107

21:                                               ; preds = %13
  %22 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %23 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %22) #4
  %24 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7gguf_kv7get_valIaEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %9, i64 noundef 0)
  %25 = load i8, ptr %24, align 1, !tbaa !26
  call void @gguf_set_val_i8(ptr noundef %0, ptr noundef %23, i8 noundef signext %25)
  br label %107

26:                                               ; preds = %13
  %27 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %28 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %27) #4
  %29 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNK7gguf_kv7get_valItEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %9, i64 noundef 0)
  %30 = load i16, ptr %29, align 2, !tbaa !27
  call void @gguf_set_val_u16(ptr noundef %0, ptr noundef %28, i16 noundef zeroext %30)
  br label %107

31:                                               ; preds = %13
  %32 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %33 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %32) #4
  %34 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNK7gguf_kv7get_valIsEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %9, i64 noundef 0)
  %35 = load i16, ptr %34, align 2, !tbaa !27
  call void @gguf_set_val_i16(ptr noundef %0, ptr noundef %33, i16 noundef signext %35)
  br label %107

36:                                               ; preds = %13
  %37 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %38 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %37) #4
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv7get_valIjEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %9, i64 noundef 0)
  %40 = load i32, ptr %39, align 4, !tbaa !29
  call void @gguf_set_val_u32(ptr noundef %0, ptr noundef %38, i32 noundef %40)
  br label %107

41:                                               ; preds = %13
  %42 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %43 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %42) #4
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv7get_valIiEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %9, i64 noundef 0)
  %45 = load i32, ptr %44, align 4, !tbaa !29
  call void @gguf_set_val_i32(ptr noundef %0, ptr noundef %43, i32 noundef %45)
  br label %107

46:                                               ; preds = %13
  %47 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %48 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %47) #4
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv7get_valIfEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %9, i64 noundef 0)
  %50 = load float, ptr %49, align 4, !tbaa !31
  call void @gguf_set_val_f32(ptr noundef %0, ptr noundef %48, float noundef %50)
  br label %107

51:                                               ; preds = %13
  %52 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %53 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %52) #4
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7gguf_kv7get_valImEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %9, i64 noundef 0)
  %55 = load i64, ptr %54, align 8, !tbaa !33
  call void @gguf_set_val_u64(ptr noundef %0, ptr noundef %53, i64 noundef %55)
  br label %107

56:                                               ; preds = %13
  %57 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %58 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %57) #4
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7gguf_kv7get_valIlEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %9, i64 noundef 0)
  %60 = load i64, ptr %59, align 8, !tbaa !33
  call void @gguf_set_val_i64(ptr noundef %0, ptr noundef %58, i64 noundef %60)
  br label %107

61:                                               ; preds = %13
  %62 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %63 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %62) #4
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7gguf_kv7get_valIdEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %9, i64 noundef 0)
  %65 = load double, ptr %64, align 8, !tbaa !34
  call void @gguf_set_val_f64(ptr noundef %0, ptr noundef %63, double noundef %65)
  br label %107

66:                                               ; preds = %13
  %67 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %68 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %67) #4
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7gguf_kv7get_valIbEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %9, i64 noundef 0)
  %70 = load i8, ptr %69, align 1, !tbaa !36, !range !23, !noundef !24
  %71 = trunc nuw i8 %70 to i1
  call void @gguf_set_val_bool(ptr noundef %0, ptr noundef %68, i1 noundef zeroext %71)
  br label %107

72:                                               ; preds = %13
  %73 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %74 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %73) #4
  %75 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_valINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKT_m(ptr noundef nonnull align 8 dereferenceable(88) %9, i64 noundef 0)
  %76 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %75) #4
  call void @gguf_set_val_str(ptr noundef %0, ptr noundef %74, ptr noundef %76)
  br label %107

77:                                               ; preds = %13
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.28, i32 noundef 1058, ptr noundef nonnull @.str.60) #5
  unreachable

78:                                               ; preds = %8
  %79 = call noundef i64 @_ZNK7gguf_kv6get_neEv(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv8get_typeEv(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %81 = load i32, ptr %80, align 4, !tbaa !25
  switch i32 %81, label %106 [
    i32 0, label %82
    i32 1, label %82
    i32 2, label %82
    i32 3, label %82
    i32 4, label %82
    i32 5, label %82
    i32 6, label %82
    i32 10, label %82
    i32 11, label %82
    i32 12, label %82
    i32 7, label %82
    i32 8, label %89
  ]

82:                                               ; preds = %78, %78, %78, %78, %78, %78, %78, %78, %78, %78, %78
  %83 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %84 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %83) #4
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7gguf_kv8get_typeEv(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %86 = load i32, ptr %85, align 4, !tbaa !25
  %87 = getelementptr inbounds i8, ptr %9, i64 40
  %88 = call noundef ptr @_ZNKSt6vectorIaSaIaEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #4
  call void @gguf_set_arr_data(ptr noundef %0, ptr noundef %84, i32 noundef %86, ptr noundef %88, i64 noundef %79)
  br label %107

89:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
  call void @_ZNSaIPKcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  invoke void @_ZNSt6vectorIPKcSaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %79, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %90 unwind label %95

90:                                               ; preds = %89
  call void @_ZNSt15__new_allocatorIPKcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  %.not = icmp eq i64 %79, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %90
  %91 = getelementptr inbounds i8, ptr %9, i64 64
  br label %97

._crit_edge:                                      ; preds = %97, %90
  %92 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK7gguf_kv7get_keyB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %93 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %92) #4
  %94 = call noundef ptr @_ZNSt6vectorIPKcSaIS1_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  invoke void @gguf_set_arr_str(ptr noundef %0, ptr noundef %93, ptr noundef %94, i64 noundef %79)
          to label %102 unwind label %103

95:                                               ; preds = %89
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIPKcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  br label %105

97:                                               ; preds = %.lr.ph, %97
  %.067 = phi i64 [ 0, %.lr.ph ], [ %101, %97 ]
  %98 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %.067) #4
  %99 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %98) #4
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.067) #4
  store ptr %99, ptr %100, align 8, !tbaa !37
  %101 = add nuw i64 %.067, 1
  %exitcond.not = icmp eq i64 %101, %79
  br i1 %exitcond.not, label %._crit_edge, label %97, !llvm.loop !38

102:                                              ; preds = %._crit_edge
  call void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  br label %107

103:                                              ; preds = %._crit_edge
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br label %105

105:                                              ; preds = %103, %95
  %.pn = phi { ptr, i32 } [ %104, %103 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn

106:                                              ; preds = %78
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.28, i32 noundef 1087, ptr noundef nonnull @.str.60) #5
  unreachable

107:                                              ; preds = %82, %102, %16, %21, %26, %31, %36, %41, %46, %51, %56, %61, %66, %72
  %108 = add nuw nsw i64 %.06468, 1
  %exitcond72.not = icmp eq i64 %108, %5
  br i1 %exitcond72.not, label %._crit_edge71, label %8, !llvm.loop !40
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPKcSaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIPKcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { nounwind }
attributes #5 = { noreturn }

!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, !13, i64 32}
!6 = !{!"_ZTS7gguf_kv", !7, i64 0, !13, i64 32, !14, i64 36, !15, i64 40, !19, i64 64}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"bool", !10, i64 0}
!14 = !{!"_ZTS9gguf_type", !10, i64 0}
!15 = !{!"_ZTSSt6vectorIaSaIaEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIaSaIaEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIaSaIaEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIaSaIaEE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!19 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!14, !14, i64 0}
!26 = !{!10, !10, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"short", !10, i64 0}
!29 = !{!30, !30, i64 0}
!30 = !{!"int", !10, i64 0}
!31 = !{!32, !32, i64 0}
!32 = !{!"float", !10, i64 0}
!33 = !{!12, !12, i64 0}
!34 = !{!35, !35, i64 0}
!35 = !{!"double", !10, i64 0}
!36 = !{!13, !13, i64 0}
!37 = !{!9, !9, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}


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