; LLVM IR from ggml-org/ggml :: examples (common-ggml)

; 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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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::allocator.0" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::__cxx11::basic_regex" = type { i32, %"class.std::locale", %"class.std::shared_ptr" }
%"class.std::locale" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

@stderr = external global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [27 x i8], align 1
@__func__._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_ = external hidden unnamed_addr constant [23 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [39 x i8], align 1
@__const._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_.ne = external hidden unnamed_addr constant [4 x i32], align 16
@.str.14 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [46 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(248) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4) #3 personality ptr @__gxx_personality_v0 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"class.std::vector", align 8
  %17 = alloca %"class.std::vector.9", align 8
  %18 = alloca %"class.std::vector.14", align 8
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca [4 x i32], align 16
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::allocator.0", align 1
  %30 = alloca i8, align 1
  %31 = alloca ptr, align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %34 = alloca ptr, align 8
  %35 = alloca %"class.std::__cxx11::basic_regex", align 8
  %36 = alloca ptr, align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %39 = alloca ptr, align 8
  %40 = alloca %"class.std::__cxx11::basic_regex", align 8
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !11
  %45 = load i32, ptr %9, align 4, !tbaa !9
  switch i32 %45, label %60 [
    i32 2, label %46
    i32 3, label %47
    i32 8, label %48
    i32 9, label %49
    i32 7, label %50
    i32 10, label %51
    i32 11, label %52
    i32 12, label %53
    i32 13, label %54
    i32 14, label %55
    i32 -1, label %56
    i32 0, label %56
    i32 1, label %56
    i32 4, label %56
    i32 15, label %56
    i32 16, label %56
    i32 21, label %56
    i32 17, label %56
    i32 20, label %56
    i32 18, label %56
    i32 19, label %56
    i32 22, label %56
    i32 23, label %56
    i32 24, label %56
  ]

46:                                               ; preds = %5
  store i32 2, ptr %12, align 4, !tbaa !11
  br label %60

47:                                               ; preds = %5
  store i32 3, ptr %12, align 4, !tbaa !11
  br label %60

48:                                               ; preds = %5
  store i32 6, ptr %12, align 4, !tbaa !11
  br label %60

49:                                               ; preds = %5
  store i32 7, ptr %12, align 4, !tbaa !11
  br label %60

50:                                               ; preds = %5
  store i32 8, ptr %12, align 4, !tbaa !11
  br label %60

51:                                               ; preds = %5
  store i32 10, ptr %12, align 4, !tbaa !11
  br label %60

52:                                               ; preds = %5
  store i32 11, ptr %12, align 4, !tbaa !11
  br label %60

53:                                               ; preds = %5
  store i32 12, ptr %12, align 4, !tbaa !11
  br label %60

54:                                               ; preds = %5
  store i32 13, ptr %12, align 4, !tbaa !11
  br label %60

55:                                               ; preds = %5
  store i32 14, ptr %12, align 4, !tbaa !11
  br label %60

56:                                               ; preds = %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5
  %57 = load ptr, ptr @stderr, align 8, !tbaa !5
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.12, ptr noundef @__func__._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_, i32 noundef %58) #8
  store i1 false, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %468

60:                                               ; preds = %55, %54, %53, %52, %51, %50, %49, %48, %47, %46, %5
  %61 = load i32, ptr %12, align 4, !tbaa !11
  %62 = call zeroext i1 @ggml_is_quantized(i32 noundef %61)
  br i1 %62, label %69, label %63

63:                                               ; preds = %60
  %64 = load ptr, ptr @stderr, align 8, !tbaa !5
  %65 = load i32, ptr %12, align 4, !tbaa !11
  %66 = load i32, ptr %12, align 4, !tbaa !11
  %67 = call ptr @ggml_type_name(i32 noundef %66)
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.13, ptr noundef @__func__._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_, i32 noundef %65, ptr noundef %67) #8
  store i1 false, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %468

69:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store i64 0, ptr %14, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  store i64 0, ptr %15, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #8
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #8
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  call void @_ZNSt6vectorItSaItEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #8
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  br label %70

70:                                               ; preds = %439, %69
  br label %71

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %72, ptr noundef %20, i64 noundef 4)
          to label %74 unwind label %89

74:                                               ; preds = %71
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef %21, i64 noundef 4)
          to label %77 unwind label %89

77:                                               ; preds = %74
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %78, ptr noundef %22, i64 noundef 4)
          to label %80 unwind label %89

80:                                               ; preds = %77
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = load ptr, ptr %81, align 8, !tbaa !15
  %83 = getelementptr i8, ptr %82, i64 -24
  %84 = load i64, ptr %83, align 8
  %85 = getelementptr inbounds i8, ptr %81, i64 %84
  %86 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %85)
          to label %87 unwind label %89

87:                                               ; preds = %80
  br i1 %86, label %88, label %93

88:                                               ; preds = %87
  store i32 4, ptr %13, align 4
  br label %437

89:                                               ; preds = %80, %77, %74, %71
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %23, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %24, align 4
  br label %444

93:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 1, ptr %25, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 @__const._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_.ne, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 0, ptr %27, align 4, !tbaa !17
  br label %94

94:                                               ; preds = %112, %93
  %95 = load i32, ptr %27, align 4, !tbaa !17
  %96 = load i32, ptr %20, align 4, !tbaa !17
  %97 = icmp slt i32 %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %119

99:                                               ; preds = %94
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = load i32, ptr %27, align 4, !tbaa !17
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [4 x i32], ptr %26, i64 0, i64 %102
  %104 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %100, ptr noundef %103, i64 noundef 4)
          to label %105 unwind label %115

105:                                              ; preds = %99
  %106 = load i32, ptr %27, align 4, !tbaa !17
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [4 x i32], ptr %26, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !17
  %110 = load i32, ptr %25, align 4, !tbaa !17
  %111 = mul nsw i32 %110, %109
  store i32 %111, ptr %25, align 4, !tbaa !17
  br label %112

112:                                              ; preds = %105
  %113 = load i32, ptr %27, align 4, !tbaa !17
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %27, align 4, !tbaa !17
  br label %94, !llvm.loop !19

115:                                              ; preds = %99
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %23, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %443

119:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #8
  %120 = load i32, ptr %21, align 4, !tbaa !17
  %121 = sext i32 %120 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEmcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %28, i64 noundef %121, i8 noundef signext 0, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %122 unwind label %152

122:                                              ; preds = %119
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #8
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %28, i64 noundef 0)
          to label %125 unwind label %156

125:                                              ; preds = %122
  %126 = load i32, ptr %21, align 4, !tbaa !17
  %127 = sext i32 %126 to i64
  %128 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %123, ptr noundef %124, i64 noundef %127)
          to label %129 unwind label %156

129:                                              ; preds = %125
  %130 = call noundef ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  %131 = getelementptr inbounds [4 x i32], ptr %26, i64 0, i64 0
  %132 = load i32, ptr %131, align 16, !tbaa !17
  %133 = getelementptr inbounds [4 x i32], ptr %26, i64 0, i64 1
  %134 = load i32, ptr %133, align 4, !tbaa !17
  %135 = getelementptr inbounds [4 x i32], ptr %26, i64 0, i64 2
  %136 = load i32, ptr %135, align 8, !tbaa !17
  %137 = load i32, ptr %22, align 4, !tbaa !17
  %138 = invoke ptr @ggml_type_name(i32 noundef %137)
          to label %139 unwind label %156

139:                                              ; preds = %129
  %140 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %130, i32 noundef %132, i32 noundef %134, i32 noundef %136, ptr noundef %138)
          to label %141 unwind label %156

141:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #8
  store i8 0, ptr %30, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %142, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %143 = load ptr, ptr %31, align 8, !tbaa !5
  %144 = call ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %143) #8
  %145 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  store ptr %144, ptr %145, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %146 = load ptr, ptr %31, align 8, !tbaa !5
  %147 = call ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %146) #8
  %148 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %33, i32 0, i32 0
  store ptr %147, ptr %148, align 8
  br label %149

149:                                              ; preds = %180, %141
  %150 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  br i1 %150, label %160, label %151

151:                                              ; preds = %149
  store i32 8, ptr %13, align 4
  br label %182

152:                                              ; preds = %119
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %23, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %24, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #8
  br label %442

156:                                              ; preds = %139, %129, %125, %122
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %23, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %24, align 4
  br label %441

160:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %161 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  store ptr %161, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #8
  %162 = load ptr, ptr %34, align 8, !tbaa !5
  invoke void @_ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2ISt11char_traitsIcESaIcEEERKNS_12basic_stringIcT_T0_EENSt15regex_constants18syntax_option_typeE(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %162, i32 noundef 16)
          to label %163 unwind label %167

163:                                              ; preds = %160
  %164 = invoke noundef zeroext i1 @_ZSt11regex_matchISt11char_traitsIcESaIcEcNSt7__cxx1112regex_traitsIcEEEbRKNS3_12basic_stringIT1_T_T0_EERKNS3_11basic_regexIS7_T2_EENSt15regex_constants15match_flag_typeE(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %35, i32 noundef 0)
          to label %165 unwind label %171

165:                                              ; preds = %163
  call void @_ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #8
  br i1 %164, label %166, label %176

166:                                              ; preds = %165
  store i8 1, ptr %30, align 1, !tbaa !21
  store i32 8, ptr %13, align 4
  br label %177

167:                                              ; preds = %160
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %23, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %24, align 4
  br label %175

171:                                              ; preds = %163
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %23, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %24, align 4
  call void @_ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #8
  br label %175

175:                                              ; preds = %171, %167
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %440

176:                                              ; preds = %165
  store i32 0, ptr %13, align 4
  br label %177

177:                                              ; preds = %176, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  %178 = load i32, ptr %13, align 4
  switch i32 %178, label %182 [
    i32 0, label %179
  ]

179:                                              ; preds = %177
  br label %180

180:                                              ; preds = %179
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  br label %149

182:                                              ; preds = %177, %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %183

183:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %184, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %185 = load ptr, ptr %36, align 8, !tbaa !5
  %186 = call ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %185) #8
  %187 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %186, ptr %187, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %188 = load ptr, ptr %36, align 8, !tbaa !5
  %189 = call ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %188) #8
  %190 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %38, i32 0, i32 0
  store ptr %189, ptr %190, align 8
  br label %191

191:                                              ; preds = %214, %183
  %192 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  br i1 %192, label %194, label %193

193:                                              ; preds = %191
  store i32 10, ptr %13, align 4
  br label %216

194:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %195 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  store ptr %195, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %40) #8
  %196 = load ptr, ptr %39, align 8, !tbaa !5
  invoke void @_ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2ISt11char_traitsIcESaIcEEERKNS_12basic_stringIcT_T0_EENSt15regex_constants18syntax_option_typeE(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull align 8 dereferenceable(32) %196, i32 noundef 16)
          to label %197 unwind label %201

197:                                              ; preds = %194
  %198 = invoke noundef zeroext i1 @_ZSt11regex_matchISt11char_traitsIcESaIcEcNSt7__cxx1112regex_traitsIcEEEbRKNS3_12basic_stringIT1_T_T0_EERKNS3_11basic_regexIS7_T2_EENSt15regex_constants15match_flag_typeE(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %40, i32 noundef 0)
          to label %199 unwind label %205

199:                                              ; preds = %197
  call void @_ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #8
  br i1 %198, label %200, label %210

200:                                              ; preds = %199
  store i8 0, ptr %30, align 1, !tbaa !21
  store i32 10, ptr %13, align 4
  br label %211

201:                                              ; preds = %194
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %23, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %24, align 4
  br label %209

205:                                              ; preds = %197
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %23, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %24, align 4
  call void @_ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #8
  br label %209

209:                                              ; preds = %205, %201
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br label %440

210:                                              ; preds = %199
  store i32 0, ptr %13, align 4
  br label %211

211:                                              ; preds = %210, %200
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  %212 = load i32, ptr %13, align 4
  switch i32 %212, label %216 [
    i32 0, label %213
  ]

213:                                              ; preds = %211
  br label %214

214:                                              ; preds = %213
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  br label %191

216:                                              ; preds = %211, %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br label %217

217:                                              ; preds = %216
  %218 = load i32, ptr %20, align 4, !tbaa !17
  %219 = icmp eq i32 %218, 2
  %220 = zext i1 %219 to i32
  %221 = load i8, ptr %30, align 1, !tbaa !21, !range !23, !noundef !24
  %222 = trunc i8 %221 to i1
  %223 = zext i1 %222 to i32
  %224 = and i32 %223, %220
  %225 = icmp ne i32 %224, 0
  %226 = zext i1 %225 to i8
  store i8 %226, ptr %30, align 1, !tbaa !21
  %227 = load i8, ptr %30, align 1, !tbaa !21, !range !23, !noundef !24
  %228 = trunc i8 %227 to i1
  br i1 %228, label %229, label %299

229:                                              ; preds = %217
  %230 = load i32, ptr %22, align 4, !tbaa !17
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %232, label %246

232:                                              ; preds = %229
  %233 = load i32, ptr %22, align 4, !tbaa !17
  %234 = icmp ne i32 %233, 1
  br i1 %234, label %235, label %246

235:                                              ; preds = %232
  %236 = load ptr, ptr @stderr, align 8, !tbaa !5
  %237 = load i32, ptr %22, align 4, !tbaa !17
  %238 = load i32, ptr %22, align 4, !tbaa !17
  %239 = invoke ptr @ggml_type_name(i32 noundef %238)
          to label %240 unwind label %242

240:                                              ; preds = %235
  %241 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %236, ptr noundef @.str.15, ptr noundef @__func__._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_, i32 noundef %237, ptr noundef %239) #8
  store i1 false, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %436

242:                                              ; preds = %421, %415, %361, %354, %351, %328, %325, %322, %289, %286, %259, %252, %249, %235
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %23, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %24, align 4
  br label %440

246:                                              ; preds = %232, %229
  %247 = load i32, ptr %22, align 4, !tbaa !17
  %248 = icmp eq i32 %247, 1
  br i1 %248, label %249, label %286

249:                                              ; preds = %246
  %250 = load i32, ptr %25, align 4, !tbaa !17
  %251 = sext i32 %250 to i64
  invoke void @_ZNSt6vectorItSaItEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %251)
          to label %252 unwind label %242

252:                                              ; preds = %249
  %253 = load ptr, ptr %7, align 8, !tbaa !5
  %254 = call noundef ptr @_ZNSt6vectorItSaItEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %255 = load i32, ptr %25, align 4, !tbaa !17
  %256 = sext i32 %255 to i64
  %257 = mul i64 %256, 2
  %258 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %253, ptr noundef %254, i64 noundef %257)
          to label %259 unwind label %242

259:                                              ; preds = %252
  %260 = load i32, ptr %25, align 4, !tbaa !17
  %261 = sext i32 %260 to i64
  invoke void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %261)
          to label %262 unwind label %242

262:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  store i32 0, ptr %41, align 4, !tbaa !17
  br label %263

263:                                              ; preds = %278, %262
  %264 = load i32, ptr %41, align 4, !tbaa !17
  %265 = load i32, ptr %25, align 4, !tbaa !17
  %266 = icmp slt i32 %264, %265
  br i1 %266, label %268, label %267

267:                                              ; preds = %263
  store i32 12, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %285

268:                                              ; preds = %263
  %269 = load i32, ptr %41, align 4, !tbaa !17
  %270 = sext i32 %269 to i64
  %271 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %270) #8
  %272 = load i16, ptr %271, align 2, !tbaa !25
  %273 = invoke float @ggml_fp16_to_fp32(i16 noundef zeroext %272)
          to label %274 unwind label %281

274:                                              ; preds = %268
  %275 = load i32, ptr %41, align 4, !tbaa !17
  %276 = sext i32 %275 to i64
  %277 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %276) #8
  store float %273, ptr %277, align 4, !tbaa !27
  br label %278

278:                                              ; preds = %274
  %279 = load i32, ptr %41, align 4, !tbaa !17
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %41, align 4, !tbaa !17
  br label %263, !llvm.loop !29

281:                                              ; preds = %268
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %23, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %440

285:                                              ; preds = %267
  br label %297

286:                                              ; preds = %246
  %287 = load i32, ptr %25, align 4, !tbaa !17
  %288 = sext i32 %287 to i64
  invoke void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %288)
          to label %289 unwind label %242

289:                                              ; preds = %286
  %290 = load ptr, ptr %7, align 8, !tbaa !5
  %291 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  %292 = load i32, ptr %25, align 4, !tbaa !17
  %293 = sext i32 %292 to i64
  %294 = mul i64 %293, 4
  %295 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %290, ptr noundef %291, i64 noundef %294)
          to label %296 unwind label %242

296:                                              ; preds = %289
  br label %297

297:                                              ; preds = %296, %285
  %298 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %298, ptr %22, align 4, !tbaa !17
  br label %322

299:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  %300 = load i32, ptr %22, align 4, !tbaa !17
  %301 = icmp eq i32 %300, 0
  %302 = zext i1 %301 to i64
  %303 = select i1 %301, i64 4, i64 2
  %304 = trunc i64 %303 to i32
  store i32 %304, ptr %42, align 4, !tbaa !17
  %305 = load i32, ptr %25, align 4, !tbaa !17
  %306 = load i32, ptr %42, align 4, !tbaa !17
  %307 = mul nsw i32 %305, %306
  %308 = sext i32 %307 to i64
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %308)
          to label %309 unwind label %318

309:                                              ; preds = %299
  %310 = load ptr, ptr %7, align 8, !tbaa !5
  %311 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %312 = load i32, ptr %25, align 4, !tbaa !17
  %313 = load i32, ptr %42, align 4, !tbaa !17
  %314 = mul nsw i32 %312, %313
  %315 = sext i32 %314 to i64
  %316 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %310, ptr noundef %311, i64 noundef %315)
          to label %317 unwind label %318

317:                                              ; preds = %309
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %322

318:                                              ; preds = %309, %299
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %23, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %440

322:                                              ; preds = %317, %297
  %323 = load ptr, ptr %8, align 8, !tbaa !5
  %324 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %323, ptr noundef %20, i64 noundef 4)
          to label %325 unwind label %242

325:                                              ; preds = %322
  %326 = load ptr, ptr %8, align 8, !tbaa !5
  %327 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %326, ptr noundef %21, i64 noundef 4)
          to label %328 unwind label %242

328:                                              ; preds = %325
  %329 = load ptr, ptr %8, align 8, !tbaa !5
  %330 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %329, ptr noundef %22, i64 noundef 4)
          to label %331 unwind label %242

331:                                              ; preds = %328
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  store i32 0, ptr %43, align 4, !tbaa !17
  br label %332

332:                                              ; preds = %344, %331
  %333 = load i32, ptr %43, align 4, !tbaa !17
  %334 = load i32, ptr %20, align 4, !tbaa !17
  %335 = icmp slt i32 %333, %334
  br i1 %335, label %337, label %336

336:                                              ; preds = %332
  store i32 15, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  br label %351

337:                                              ; preds = %332
  %338 = load ptr, ptr %8, align 8, !tbaa !5
  %339 = load i32, ptr %43, align 4, !tbaa !17
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [4 x i32], ptr %26, i64 0, i64 %340
  %342 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %338, ptr noundef %341, i64 noundef 4)
          to label %343 unwind label %347

343:                                              ; preds = %337
  br label %344

344:                                              ; preds = %343
  %345 = load i32, ptr %43, align 4, !tbaa !17
  %346 = add nsw i32 %345, 1
  store i32 %346, ptr %43, align 4, !tbaa !17
  br label %332, !llvm.loop !30

347:                                              ; preds = %337
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %23, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  br label %440

351:                                              ; preds = %336
  %352 = load ptr, ptr %8, align 8, !tbaa !5
  %353 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %28, i64 noundef 0)
          to label %354 unwind label %242

354:                                              ; preds = %351
  %355 = load i32, ptr %21, align 4, !tbaa !17
  %356 = sext i32 %355 to i64
  %357 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %352, ptr noundef %353, i64 noundef %356)
          to label %358 unwind label %242

358:                                              ; preds = %354
  %359 = load i8, ptr %30, align 1, !tbaa !21, !range !23, !noundef !24
  %360 = trunc i8 %359 to i1
  br i1 %360, label %361, label %415

361:                                              ; preds = %358
  %362 = load i32, ptr %25, align 4, !tbaa !17
  %363 = sext i32 %362 to i64
  invoke void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %363)
          to label %364 unwind label %242

364:                                              ; preds = %361
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  store i64 0, ptr %44, align 8, !tbaa !13
  %365 = load i32, ptr %22, align 4, !tbaa !17
  switch i32 %365, label %391 [
    i32 2, label %366
    i32 3, label %366
    i32 6, label %366
    i32 7, label %366
    i32 8, label %366
    i32 10, label %366
    i32 11, label %366
    i32 12, label %366
    i32 13, label %366
    i32 14, label %366
    i32 0, label %384
    i32 1, label %384
    i32 24, label %384
    i32 25, label %384
    i32 26, label %384
    i32 27, label %384
    i32 28, label %384
    i32 9, label %384
    i32 15, label %384
    i32 16, label %384
    i32 17, label %384
    i32 22, label %384
    i32 18, label %384
    i32 21, label %384
    i32 19, label %384
    i32 20, label %384
    i32 23, label %384
    i32 29, label %384
    i32 30, label %384
    i32 34, label %384
    i32 35, label %384
    i32 39, label %384
  ]

366:                                              ; preds = %364, %364, %364, %364, %364, %364, %364, %364, %364, %364
  %367 = load i32, ptr %22, align 4, !tbaa !17
  %368 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  %369 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %370 = load i32, ptr %25, align 4, !tbaa !17
  %371 = getelementptr inbounds [4 x i32], ptr %26, i64 0, i64 0
  %372 = load i32, ptr %371, align 16, !tbaa !17
  %373 = sdiv i32 %370, %372
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds [4 x i32], ptr %26, i64 0, i64 0
  %376 = load i32, ptr %375, align 16, !tbaa !17
  %377 = sext i32 %376 to i64
  %378 = invoke i64 @ggml_quantize_chunk(i32 noundef %367, ptr noundef %368, ptr noundef %369, i64 noundef 0, i64 noundef %374, i64 noundef %377, ptr noundef null)
          to label %379 unwind label %380

379:                                              ; preds = %366
  store i64 %378, ptr %44, align 8, !tbaa !13
  br label %391

380:                                              ; preds = %396, %391, %384, %366
  %381 = landingpad { ptr, i32 }
          cleanup
  %382 = extractvalue { ptr, i32 } %381, 0
  store ptr %382, ptr %23, align 8
  %383 = extractvalue { ptr, i32 } %381, 1
  store i32 %383, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  br label %440

384:                                              ; preds = %364, %364, %364, %364, %364, %364, %364, %364, %364, %364, %364, %364, %364, %364, %364, %364, %364, %364, %364, %364, %364, %364
  %385 = load ptr, ptr @stderr, align 8, !tbaa !5
  %386 = load i32, ptr %22, align 4, !tbaa !17
  %387 = load i32, ptr %22, align 4, !tbaa !17
  %388 = invoke ptr @ggml_type_name(i32 noundef %387)
          to label %389 unwind label %380

389:                                              ; preds = %384
  %390 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %385, ptr noundef @.str.16, ptr noundef @__func__._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_, i32 noundef %386, ptr noundef %388) #8
  store i1 false, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %412

391:                                              ; preds = %379, %364
  %392 = load ptr, ptr %8, align 8, !tbaa !5
  %393 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %394 = load i64, ptr %44, align 8, !tbaa !13
  %395 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %392, ptr noundef %393, i64 noundef %394)
          to label %396 unwind label %380

396:                                              ; preds = %391
  %397 = load i64, ptr %44, align 8, !tbaa !13
  %398 = load i64, ptr %15, align 8, !tbaa !13
  %399 = add i64 %398, %397
  store i64 %399, ptr %15, align 8, !tbaa !13
  %400 = load i32, ptr %25, align 4, !tbaa !17
  %401 = sext i32 %400 to i64
  %402 = mul i64 %401, 4
  %403 = uitofp i64 %402 to double
  %404 = fdiv double %403, 1.024000e+03
  %405 = fdiv double %404, 1.024000e+03
  %406 = load i64, ptr %44, align 8, !tbaa !13
  %407 = uitofp i64 %406 to double
  %408 = fdiv double %407, 1.024000e+03
  %409 = fdiv double %408, 1.024000e+03
  %410 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.17, double noundef %405, double noundef %409)
          to label %411 unwind label %380

411:                                              ; preds = %396
  store i32 0, ptr %13, align 4
  br label %412

412:                                              ; preds = %411, %389
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  %413 = load i32, ptr %13, align 4
  switch i32 %413, label %436 [
    i32 0, label %414
  ]

414:                                              ; preds = %412
  br label %430

415:                                              ; preds = %358
  %416 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %417 = uitofp i64 %416 to double
  %418 = fdiv double %417, 1.024000e+03
  %419 = fdiv double %418, 1.024000e+03
  %420 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef %419)
          to label %421 unwind label %242

421:                                              ; preds = %415
  %422 = load ptr, ptr %8, align 8, !tbaa !5
  %423 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %424 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %425 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %422, ptr noundef %423, i64 noundef %424)
          to label %426 unwind label %242

426:                                              ; preds = %421
  %427 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %428 = load i64, ptr %15, align 8, !tbaa !13
  %429 = add i64 %428, %427
  store i64 %429, ptr %15, align 8, !tbaa !13
  br label %430

430:                                              ; preds = %426, %414
  %431 = load i32, ptr %25, align 4, !tbaa !17
  %432 = sext i32 %431 to i64
  %433 = mul i64 %432, 4
  %434 = load i64, ptr %14, align 8, !tbaa !13
  %435 = add i64 %434, %433
  store i64 %435, ptr %14, align 8, !tbaa !13
  store i32 0, ptr %13, align 4
  br label %436

436:                                              ; preds = %430, %412, %240
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %437

437:                                              ; preds = %436, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  %438 = load i32, ptr %13, align 4
  switch i32 %438, label %466 [
    i32 0, label %439
    i32 4, label %445
  ]

439:                                              ; preds = %437
  br label %70, !llvm.loop !31

440:                                              ; preds = %380, %347, %318, %281, %242, %209, %175
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #8
  br label %441

441:                                              ; preds = %440, %156
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  br label %442

442:                                              ; preds = %441, %152
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #8
  br label %443

443:                                              ; preds = %442, %115
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %444

444:                                              ; preds = %443, %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %467

445:                                              ; preds = %437
  %446 = load i64, ptr %14, align 8, !tbaa !13
  %447 = uitofp i64 %446 to double
  %448 = fdiv double %447, 1.024000e+03
  %449 = fdiv double %448, 1.024000e+03
  %450 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.19, ptr noundef @__func__._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_, double noundef %449)
          to label %451 unwind label %462

451:                                              ; preds = %445
  %452 = load i64, ptr %15, align 8, !tbaa !13
  %453 = uitofp i64 %452 to double
  %454 = fdiv double %453, 1.024000e+03
  %455 = fdiv double %454, 1.024000e+03
  %456 = load i32, ptr %9, align 4, !tbaa !9
  %457 = load i32, ptr %12, align 4, !tbaa !11
  %458 = invoke ptr @ggml_type_name(i32 noundef %457)
          to label %459 unwind label %462

459:                                              ; preds = %451
  %460 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.20, ptr noundef @__func__._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_, double noundef %455, i32 noundef %456, ptr noundef %458)
          to label %461 unwind label %462

461:                                              ; preds = %459
  store i1 true, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %466

462:                                              ; preds = %459, %451, %445
  %463 = landingpad { ptr, i32 }
          cleanup
  %464 = extractvalue { ptr, i32 } %463, 0
  store ptr %464, ptr %23, align 8
  %465 = extractvalue { ptr, i32 } %463, 1
  store i32 %465, ptr %24, align 4
  br label %467

466:                                              ; preds = %461, %437
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #8
  call void @_ZNSt6vectorItSaItEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %468

467:                                              ; preds = %462, %444
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #8
  call void @_ZNSt6vectorItSaItEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %470

468:                                              ; preds = %466, %63, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %469 = load i1, ptr %6, align 1
  ret i1 %469

470:                                              ; preds = %467
  %471 = load ptr, ptr %23, align 8
  %472 = load i32, ptr %24, align 4
  %473 = insertvalue { ptr, i32 } poison, ptr %471, 0
  %474 = insertvalue { ptr, i32 } %473, i32 %472, 1
  resume { ptr, i32 } %474
}

declare zeroext i1 @ggml_is_quantized(i32 noundef) #4

declare ptr @ggml_type_name(i32 noundef) #4

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264)) #3 align 2

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSt11regex_matchISt11char_traitsIcESaIcEcNSt7__cxx1112regex_traitsIcEEEbRKNS3_12basic_stringIT1_T_T0_EERKNS3_11basic_regexIS7_T2_EENSt15regex_constants15match_flag_typeE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2ISt11char_traitsIcESaIcEEERKNS_12basic_stringIcT_T0_EENSt15regex_constants18syntax_option_typeE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #3 align 2

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

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

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

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

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

declare float @ggml_fp16_to_fp32(i16 noundef zeroext) #4

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) #4

declare i64 @ggml_quantize_chunk(i32 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) #4

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint 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 #7 = { inlinehint 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 #8 = { 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, !10, i64 0}
!10 = !{!"_ZTS10ggml_ftype", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS9ggml_type", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !22, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!26, !26, i64 0}
!26 = !{!"short", !7, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"float", !7, i64 0}
!29 = distinct !{!29, !20}
!30 = distinct !{!30, !20}
!31 = distinct !{!31, !20}


; 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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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::allocator.0" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::__cxx11::basic_regex" = type { i32, %"class.std::locale", %"class.std::shared_ptr" }
%"class.std::locale" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [27 x i8], align 1
@__func__._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_ = external hidden unnamed_addr constant [23 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [39 x i8], align 1
@__const._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_.ne = external hidden unnamed_addr constant [4 x i32], align 16
@.str.14 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [46 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_(ptr noundef nonnull align 8 dereferenceable(256) %0, ptr noundef nonnull align 8 dereferenceable(248) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::vector.9", align 8
  %8 = alloca %"class.std::vector.14", align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [4 x i32], align 16
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator.0", align 1
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.std::__cxx11::basic_regex", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.std::__cxx11::basic_regex", align 8
  switch i32 %2, label %35 [
    i32 2, label %22
    i32 3, label %23
    i32 8, label %24
    i32 9, label %25
    i32 7, label %26
    i32 10, label %27
    i32 11, label %28
    i32 12, label %29
    i32 13, label %30
    i32 14, label %31
    i32 -1, label %32
    i32 0, label %32
    i32 1, label %32
    i32 4, label %32
    i32 15, label %32
    i32 16, label %32
    i32 21, label %32
    i32 17, label %32
    i32 20, label %32
    i32 18, label %32
    i32 19, label %32
    i32 22, label %32
    i32 23, label %32
    i32 24, label %32
  ]

22:                                               ; preds = %5
  br label %35

23:                                               ; preds = %5
  br label %35

24:                                               ; preds = %5
  br label %35

25:                                               ; preds = %5
  br label %35

26:                                               ; preds = %5
  br label %35

27:                                               ; preds = %5
  br label %35

28:                                               ; preds = %5
  br label %35

29:                                               ; preds = %5
  br label %35

30:                                               ; preds = %5
  br label %35

31:                                               ; preds = %5
  br label %35

32:                                               ; preds = %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5, %5
  %33 = load ptr, ptr @stderr, align 8, !tbaa !5
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str.12, ptr noundef nonnull @__func__._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_, i32 noundef %2) #8
  br label %245

35:                                               ; preds = %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %5
  %.081 = phi i32 [ 0, %5 ], [ %2, %31 ], [ %2, %30 ], [ %2, %29 ], [ %2, %28 ], [ %2, %27 ], [ 8, %26 ], [ 7, %25 ], [ 6, %24 ], [ %2, %23 ], [ %2, %22 ]
  %36 = tail call zeroext i1 @ggml_is_quantized(i32 noundef %.081)
  br i1 %36, label %41, label %37

37:                                               ; preds = %35
  %38 = load ptr, ptr @stderr, align 8, !tbaa !5
  %39 = tail call ptr @ggml_type_name(i32 noundef %.081)
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.13, ptr noundef nonnull @__func__._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_, i32 noundef %.081, ptr noundef %39) #8
  br label %245

41:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #9
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #9
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #9
  call void @_ZNSt6vectorItSaItEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #9
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %42 = getelementptr inbounds i8, ptr %13, i64 4
  %43 = getelementptr inbounds i8, ptr %13, i64 8
  br label %44

44:                                               ; preds = %224, %41
  %.090 = phi i64 [ 0, %41 ], [ %.292, %224 ]
  %.087 = phi i64 [ 0, %41 ], [ %225, %224 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #9
  %45 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %10, i64 noundef 4)
          to label %46 unwind label %57

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %11, i64 noundef 4)
          to label %48 unwind label %57

48:                                               ; preds = %46
  %49 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %12, i64 noundef 4)
          to label %50 unwind label %57

50:                                               ; preds = %48
  %51 = load ptr, ptr %0, align 8, !tbaa !9
  %52 = getelementptr i8, ptr %51, i64 -24
  %53 = load i64, ptr %52, align 8
  %54 = getelementptr inbounds i8, ptr %0, i64 %53
  %55 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264) %54)
          to label %56 unwind label %57

56:                                               ; preds = %50
  br i1 %55, label %230, label %59

57:                                               ; preds = %50, %48, %46, %44
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %229

59:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %13, ptr noundef nonnull align 16 dereferenceable(16) @__const._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_.ne, i64 16, i1 false)
  %60 = load i32, ptr %10, align 4, !tbaa !11
  %61 = icmp sgt i32 %60, 0
  br i1 %61, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %66, %59
  %.0102.lcssa = phi i32 [ 1, %59 ], [ %68, %66 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #9
  %62 = load i32, ptr %11, align 4, !tbaa !11
  %63 = sext i32 %62 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEmcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, i64 noundef %63, i8 noundef signext 0, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %74 unwind label %91

.lr.ph:                                           ; preds = %59, %66
  %indvars.iv = phi i64 [ %indvars.iv.next, %66 ], [ 0, %59 ]
  %.0102203 = phi i32 [ %68, %66 ], [ 1, %59 ]
  %64 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 %indvars.iv
  %65 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %64, i64 noundef 4)
          to label %66 unwind label %72

66:                                               ; preds = %.lr.ph
  %67 = load i32, ptr %64, align 4, !tbaa !11
  %68 = mul nsw i32 %67, %.0102203
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %69 = load i32, ptr %10, align 4, !tbaa !11
  %70 = sext i32 %69 to i64
  %71 = icmp slt i64 %indvars.iv.next, %70
  br i1 %71, label %.lr.ph, label %._crit_edge, !llvm.loop !13

72:                                               ; preds = %.lr.ph
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %228

74:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #9
  %75 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %14, i64 noundef 0)
  %76 = load i32, ptr %11, align 4, !tbaa !11
  %77 = sext i32 %76 to i64
  %78 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %75, i64 noundef %77)
          to label %79 unwind label %93

79:                                               ; preds = %74
  %80 = call noundef ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  %81 = load i32, ptr %13, align 16, !tbaa !11
  %82 = load i32, ptr %42, align 4, !tbaa !11
  %83 = load i32, ptr %43, align 8, !tbaa !11
  %84 = load i32, ptr %12, align 4, !tbaa !11
  %85 = invoke ptr @ggml_type_name(i32 noundef %84)
          to label %86 unwind label %93

86:                                               ; preds = %79
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, ptr noundef %80, i32 noundef %81, i32 noundef %82, i32 noundef %83, ptr noundef %85)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %88 = call ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  store ptr %88, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  %89 = call ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  store ptr %89, ptr %17, align 8
  %90 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  br i1 %90, label %.lr.ph206, label %._crit_edge207

91:                                               ; preds = %._crit_edge
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #9
  br label %227

93:                                               ; preds = %79, %74
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %226

.lr.ph206:                                        ; preds = %86, %104
  %95 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #9
  invoke void @_ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2ISt11char_traitsIcESaIcEEERKNS_12basic_stringIcT_T0_EENSt15regex_constants18syntax_option_typeE(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %95, i32 noundef 16)
          to label %96 unwind label %99

96:                                               ; preds = %.lr.ph206
  %97 = invoke noundef zeroext i1 @_ZSt11regex_matchISt11char_traitsIcESaIcEcNSt7__cxx1112regex_traitsIcEEEbRKNS3_12basic_stringIT1_T_T0_EERKNS3_11basic_regexIS7_T2_EENSt15regex_constants15match_flag_typeE(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %18, i32 noundef 0)
          to label %98 unwind label %101

98:                                               ; preds = %96
  call void @_ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #9
  br i1 %97, label %._crit_edge207.loopexit, label %104

99:                                               ; preds = %.lr.ph206
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %96
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #9
  br label %103

103:                                              ; preds = %101, %99
  %.pn = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  br label %226

104:                                              ; preds = %98
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  %106 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  br i1 %106, label %.lr.ph206, label %._crit_edge207.loopexit

._crit_edge207.loopexit:                          ; preds = %104, %98
  %.not122.ph = xor i1 %97, true
  br label %._crit_edge207

._crit_edge207:                                   ; preds = %._crit_edge207.loopexit, %86
  %.not122 = phi i1 [ true, %86 ], [ %.not122.ph, %._crit_edge207.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #9
  %107 = call ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  store ptr %107, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  %108 = call ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  store ptr %108, ptr %20, align 8
  %109 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  br i1 %109, label %.lr.ph212, label %._crit_edge213

.lr.ph212:                                        ; preds = %._crit_edge207, %119
  %110 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #9
  invoke void @_ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2ISt11char_traitsIcESaIcEEERKNS_12basic_stringIcT_T0_EENSt15regex_constants18syntax_option_typeE(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %110, i32 noundef 16)
          to label %111 unwind label %114

111:                                              ; preds = %.lr.ph212
  %112 = invoke noundef zeroext i1 @_ZSt11regex_matchISt11char_traitsIcESaIcEcNSt7__cxx1112regex_traitsIcEEEbRKNS3_12basic_stringIT1_T_T0_EERKNS3_11basic_regexIS7_T2_EENSt15regex_constants15match_flag_typeE(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %21, i32 noundef 0)
          to label %113 unwind label %116

113:                                              ; preds = %111
  call void @_ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #9
  br i1 %112, label %._crit_edge213.thread, label %119

._crit_edge213.thread:                            ; preds = %113
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  br label %153

114:                                              ; preds = %.lr.ph212
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %118

116:                                              ; preds = %111
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #9
  br label %118

118:                                              ; preds = %116, %114
  %.pn120 = phi { ptr, i32 } [ %117, %116 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  br label %226

119:                                              ; preds = %113
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  %121 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESH_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  br i1 %121, label %.lr.ph212, label %._crit_edge213

._crit_edge213:                                   ; preds = %119, %._crit_edge207
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #9
  %122 = load i32, ptr %10, align 4, !tbaa !11
  %123 = icmp ne i32 %122, 2
  %.not = or i1 %.not122, %123
  br i1 %.not, label %153, label %124

124:                                              ; preds = %._crit_edge213
  %125 = load i32, ptr %12, align 4
  %or.cond = icmp ugt i32 %125, 1
  br i1 %or.cond, label %126, label %131

126:                                              ; preds = %124
  %127 = load ptr, ptr @stderr, align 8, !tbaa !5
  %128 = invoke ptr @ggml_type_name(i32 noundef %125)
          to label %129 unwind label %.loopexit.split-lp

129:                                              ; preds = %126
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef nonnull @.str.15, ptr noundef nonnull @__func__._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_, i32 noundef %125, ptr noundef %128) #8
  br label %.thread140

.loopexit146:                                     ; preds = %134, %135, %139, %148, %149, %164, %166, %168, %._crit_edge221, %185, %213
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %226

.loopexit.split-lp:                               ; preds = %126
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %226

131:                                              ; preds = %124
  %132 = icmp eq i32 %125, 1
  %133 = sext i32 %.0102.lcssa to i64
  br i1 %132, label %134, label %148

134:                                              ; preds = %131
  invoke void @_ZNSt6vectorItSaItEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %133)
          to label %135 unwind label %.loopexit146

135:                                              ; preds = %134
  %136 = call noundef ptr @_ZNSt6vectorItSaItEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  %137 = shl nsw i64 %133, 1
  %138 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %136, i64 noundef %137)
          to label %139 unwind label %.loopexit146

139:                                              ; preds = %135
  invoke void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %133)
          to label %.preheader145 unwind label %.loopexit146

.preheader145:                                    ; preds = %139
  %140 = icmp sgt i32 %.0102.lcssa, 0
  br i1 %140, label %.lr.ph218.preheader, label %.loopexit

.lr.ph218.preheader:                              ; preds = %.preheader145
  %wide.trip.count = zext nneg i32 %.0102.lcssa to i64
  br label %.lr.ph218

.lr.ph218:                                        ; preds = %.lr.ph218.preheader, %144
  %indvars.iv272 = phi i64 [ 0, %.lr.ph218.preheader ], [ %indvars.iv.next273, %144 ]
  %141 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv272) #9
  %142 = load i16, ptr %141, align 2, !tbaa !15
  %143 = invoke float @ggml_fp16_to_fp32(i16 noundef zeroext %142)
          to label %144 unwind label %146

144:                                              ; preds = %.lr.ph218
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv272) #9
  store float %143, ptr %145, align 4, !tbaa !17
  %indvars.iv.next273 = add nuw nsw i64 %indvars.iv272, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next273, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph218, !llvm.loop !19

146:                                              ; preds = %.lr.ph218
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %226

148:                                              ; preds = %131
  invoke void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %133)
          to label %149 unwind label %.loopexit146

149:                                              ; preds = %148
  %150 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %151 = shl nsw i64 %133, 2
  %152 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %150, i64 noundef %151)
          to label %.loopexit unwind label %.loopexit146

.loopexit:                                        ; preds = %144, %.preheader145, %149
  store i32 %.081, ptr %12, align 4, !tbaa !11
  br label %164

153:                                              ; preds = %._crit_edge213.thread, %._crit_edge213
  %154 = load i32, ptr %12, align 4, !tbaa !11
  %155 = icmp eq i32 %154, 0
  %156 = select i1 %155, i32 2, i32 1
  %157 = shl i32 %.0102.lcssa, %156
  %158 = sext i32 %157 to i64
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %158)
          to label %159 unwind label %162

159:                                              ; preds = %153
  %160 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %161 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %160, i64 noundef %158)
          to label %164 unwind label %162

162:                                              ; preds = %159, %153
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %226

164:                                              ; preds = %159, %.loopexit
  %.not283 = phi i1 [ true, %159 ], [ %.not, %.loopexit ]
  %165 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %10, i64 noundef 4)
          to label %166 unwind label %.loopexit146

166:                                              ; preds = %164
  %167 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %11, i64 noundef 4)
          to label %168 unwind label %.loopexit146

168:                                              ; preds = %166
  %169 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %12, i64 noundef 4)
          to label %.preheader unwind label %.loopexit146

.preheader:                                       ; preds = %168
  %170 = load i32, ptr %10, align 4, !tbaa !11
  %171 = icmp sgt i32 %170, 0
  br i1 %171, label %.lr.ph220, label %._crit_edge221

._crit_edge221:                                   ; preds = %178, %.preheader
  %172 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %14, i64 noundef 0)
  %173 = load i32, ptr %11, align 4, !tbaa !11
  %174 = sext i32 %173 to i64
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %172, i64 noundef %174)
          to label %184 unwind label %.loopexit146

.lr.ph220:                                        ; preds = %.preheader, %178
  %indvars.iv275 = phi i64 [ %indvars.iv.next276, %178 ], [ 0, %.preheader ]
  %176 = getelementptr inbounds [4 x i32], ptr %13, i64 0, i64 %indvars.iv275
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %176, i64 noundef 4)
          to label %178 unwind label %182

178:                                              ; preds = %.lr.ph220
  %indvars.iv.next276 = add nuw nsw i64 %indvars.iv275, 1
  %179 = load i32, ptr %10, align 4, !tbaa !11
  %180 = sext i32 %179 to i64
  %181 = icmp slt i64 %indvars.iv.next276, %180
  br i1 %181, label %.lr.ph220, label %._crit_edge221, !llvm.loop !20

182:                                              ; preds = %.lr.ph220
  %183 = landingpad { ptr, i32 }
          cleanup
  br label %226

184:                                              ; preds = %._crit_edge221
  br i1 %.not283, label %213, label %185

185:                                              ; preds = %184
  %186 = sext i32 %.0102.lcssa to i64
  invoke void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %186)
          to label %187 unwind label %.loopexit146

187:                                              ; preds = %185
  %188 = load i32, ptr %12, align 4, !tbaa !11
  switch i32 %188, label %200 [
    i32 2, label %189
    i32 3, label %189
    i32 6, label %189
    i32 7, label %189
    i32 8, label %189
    i32 10, label %189
    i32 11, label %189
    i32 12, label %189
    i32 13, label %189
    i32 14, label %189
    i32 0, label %197
    i32 1, label %197
    i32 24, label %197
    i32 25, label %197
    i32 26, label %197
    i32 27, label %197
    i32 28, label %197
    i32 9, label %197
    i32 15, label %197
    i32 16, label %197
    i32 17, label %197
    i32 22, label %197
    i32 18, label %197
    i32 21, label %197
    i32 19, label %197
    i32 20, label %197
    i32 23, label %197
    i32 29, label %197
    i32 30, label %197
    i32 34, label %197
    i32 35, label %197
    i32 39, label %197
  ]

189:                                              ; preds = %187, %187, %187, %187, %187, %187, %187, %187, %187, %187
  %190 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %191 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  %192 = load i32, ptr %13, align 16, !tbaa !11
  %193 = sdiv i32 %.0102.lcssa, %192
  %194 = sext i32 %193 to i64
  %195 = sext i32 %192 to i64
  %196 = invoke i64 @ggml_quantize_chunk(i32 noundef %188, ptr noundef %190, ptr noundef %191, i64 noundef 0, i64 noundef %194, i64 noundef %195, ptr noundef null)
          to label %200 unwind label %.loopexit147

.loopexit147:                                     ; preds = %189, %200
  %lpad.loopexit149 = landingpad { ptr, i32 }
          cleanup
  br label %226

.loopexit.split-lp148:                            ; preds = %197
  %lpad.loopexit.split-lp150 = landingpad { ptr, i32 }
          cleanup
  br label %226

197:                                              ; preds = %187, %187, %187, %187, %187, %187, %187, %187, %187, %187, %187, %187, %187, %187, %187, %187, %187, %187, %187, %187, %187, %187
  %198 = load ptr, ptr @stderr, align 8, !tbaa !5
  %199 = invoke ptr @ggml_type_name(i32 noundef %188)
          to label %211 unwind label %.loopexit.split-lp148

200:                                              ; preds = %189, %187
  %.0 = phi i64 [ 0, %187 ], [ %196, %189 ]
  %201 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef %201, i64 noundef %.0)
          to label %.thread unwind label %.loopexit147

.thread:                                          ; preds = %200
  %203 = shl nsw i64 %186, 2
  %204 = uitofp i64 %203 to double
  %205 = fmul double %204, 0x3F50000000000000
  %206 = fmul double %205, 0x3F50000000000000
  %207 = uitofp i64 %.0 to double
  %208 = fmul double %207, 0x3F50000000000000
  %209 = fmul double %208, 0x3F50000000000000
  %210 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, double noundef %206, double noundef %209)
  br label %224

211:                                              ; preds = %197
  %212 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %198, ptr noundef nonnull @.str.16, ptr noundef nonnull @__func__._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_, i32 noundef %188, ptr noundef %199) #8
  br label %.thread140

213:                                              ; preds = %184
  %214 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %215 = uitofp i64 %214 to double
  %216 = fmul double %215, 0x3F50000000000000
  %217 = fmul double %216, 0x3F50000000000000
  %218 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef %217)
  %219 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %220 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %221 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef %219, i64 noundef %220)
          to label %222 unwind label %.loopexit146

222:                                              ; preds = %213
  %223 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  %.pre = sext i32 %.0102.lcssa to i64
  %.pre278 = shl nsw i64 %.pre, 2
  br label %224

.thread140:                                       ; preds = %129, %211
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  br label %243

224:                                              ; preds = %222, %.thread
  %.pre-phi279 = phi i64 [ %.pre278, %222 ], [ %203, %.thread ]
  %.pn144 = phi i64 [ %223, %222 ], [ %.0, %.thread ]
  %.292 = add i64 %.pn144, %.090
  %225 = add i64 %.pre-phi279, %.087
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  br label %44

226:                                              ; preds = %.loopexit147, %.loopexit.split-lp148, %.loopexit146, %.loopexit.split-lp, %103, %118, %146, %162, %182, %93
  %.pn123.pn = phi { ptr, i32 } [ %94, %93 ], [ %147, %146 ], [ %183, %182 ], [ %163, %162 ], [ %.pn120, %118 ], [ %.pn, %103 ], [ %lpad.loopexit, %.loopexit146 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit149, %.loopexit147 ], [ %lpad.loopexit.split-lp150, %.loopexit.split-lp148 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  br label %227

227:                                              ; preds = %226, %91
  %.pn123.pn.pn = phi { ptr, i32 } [ %.pn123.pn, %226 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  br label %228

228:                                              ; preds = %227, %72
  %.pn127 = phi { ptr, i32 } [ %73, %72 ], [ %.pn123.pn.pn, %227 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  br label %229

229:                                              ; preds = %228, %57
  %.pn127.pn = phi { ptr, i32 } [ %.pn127, %228 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  br label %244

230:                                              ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  %231 = uitofp i64 %.087 to double
  %232 = fmul double %231, 0x3F50000000000000
  %233 = fmul double %232, 0x3F50000000000000
  %234 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, ptr noundef nonnull @__func__._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_, double noundef %233)
  %235 = invoke ptr @ggml_type_name(i32 noundef %.081)
          to label %236 unwind label %241

236:                                              ; preds = %230
  %237 = uitofp i64 %.090 to double
  %238 = fmul double %237, 0x3F50000000000000
  %239 = fmul double %238, 0x3F50000000000000
  %240 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, ptr noundef nonnull @__func__._Z22ggml_common_quantize_0RSt14basic_ifstreamIcSt11char_traitsIcEERSt14basic_ofstreamIcS1_E10ggml_ftypeRKSt6vectorINSt7__cxx1112basic_stringIcS1_SaIcEEESaISC_EESG_, double noundef %239, i32 noundef %2, ptr noundef %235)
  br label %243

241:                                              ; preds = %230
  %242 = landingpad { ptr, i32 }
          cleanup
  br label %244

243:                                              ; preds = %.thread140, %236
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  call void @_ZNSt6vectorItSaItEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #9
  br label %245

244:                                              ; preds = %241, %229
  %.pn130 = phi { ptr, i32 } [ %242, %241 ], [ %.pn127.pn, %229 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  call void @_ZNSt6vectorItSaItEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #9
  resume { ptr, i32 } %.pn130

245:                                              ; preds = %243, %37, %32
  %.6 = phi i1 [ %55, %243 ], [ false, %37 ], [ false, %32 ]
  ret i1 %.6
}

declare zeroext i1 @ggml_is_quantized(i32 noundef) local_unnamed_addr #4

declare ptr @ggml_type_name(i32 noundef) local_unnamed_addr #4

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE3eofEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSt11regex_matchISt11char_traitsIcESaIcEcNSt7__cxx1112regex_traitsIcEEEbRKNS3_12basic_stringIT1_T_T0_EERKNS3_11basic_regexIS7_T2_EENSt15regex_constants15match_flag_typeE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2ISt11char_traitsIcESaIcEEERKNS_12basic_stringIcT_T0_EENSt15regex_constants18syntax_option_typeE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #3 align 2

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

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

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

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

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

declare float @ggml_fp16_to_fp32(i16 noundef zeroext) local_unnamed_addr #4

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) local_unnamed_addr #4

declare i64 @ggml_quantize_chunk(i32 noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint 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 #7 = { inlinehint 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 #8 = { cold nounwind }
attributes #9 = { 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, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}


; Effective O3 passes: ADCEPass,BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass