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

; 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.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.11" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::allocator.1" = type { i8 }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = 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::allocator.16" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon = type { ptr }
%struct.magika_model = type { %struct.magika_hparams, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.magika_hparams = type { i32, i32, i32, i32, i32, i32, float, i32 }

@stderr = external global ptr, align 8
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZZ11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE5alloc = external hidden global ptr, align 8
@_ZGVZ11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE5alloc = external hidden global i64, align 8
@.str.23 = external hidden unnamed_addr constant [39 x i8], align 1
@__func__._Z11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE = external hidden unnamed_addr constant [12 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZL13magika_labels = external hidden global [113 x ptr], align 16
@.str.27 = external hidden unnamed_addr constant [2 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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

declare i32 @__gxx_personality_v0(...)

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

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

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

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

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

declare i32 @fclose(ptr noundef) #3

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

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

declare void @ggml_backend_tensor_set(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #3

; 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 uwtable
declare dso_local noundef ptr @_Z12magika_graphRK12magika_modeli(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #4

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #5

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #5

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #5

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca %"class.std::vector.9", align 8
  %16 = alloca %"class.std::allocator.11", align 1
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca %"class.std::allocator.1", align 1
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i64, align 8
  %32 = alloca %"class.std::vector.14", align 8
  %33 = alloca %"class.std::allocator.16", align 1
  %34 = alloca i64, align 8
  %35 = alloca ptr, align 8
  %36 = alloca i64, align 8
  %37 = alloca %"class.std::vector.14", align 8
  %38 = alloca %"class.std::allocator.16", align 1
  %39 = alloca %"class.std::vector.9", align 8
  %40 = alloca %"class.std::allocator.11", align 1
  %41 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %42 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %43 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %44 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %45 = alloca %class.anon, align 8
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.magika_model, ptr %48, i32 0, i32 0
  store ptr %49, ptr %6, align 8, !tbaa !5
  %50 = load atomic i8, ptr @_ZGVZ11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE5alloc acquire, align 8
  %51 = icmp eq i8 %50, 0
  br i1 %51, label %52, label %63, !prof !9

52:                                               ; preds = %2
  %53 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE5alloc) #5
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %63

55:                                               ; preds = %52
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.magika_model, ptr %56, i32 0, i32 13
  %58 = load ptr, ptr %57, align 8, !tbaa !10
  %59 = invoke ptr @ggml_backend_get_default_buffer_type(ptr noundef %58)
          to label %60 unwind label %75

60:                                               ; preds = %55
  %61 = invoke ptr @ggml_gallocr_new(ptr noundef %59)
          to label %62 unwind label %75

62:                                               ; preds = %60
  store ptr %61, ptr @_ZZ11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE5alloc, align 8, !tbaa !5
  call void @__cxa_guard_release(ptr @_ZGVZ11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE5alloc) #5
  br label %63

63:                                               ; preds = %62, %52, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #5
  %67 = trunc i64 %66 to i32
  %68 = call noundef ptr @_Z12magika_graphRK12magika_modeli(ptr noundef nonnull align 8 dereferenceable(152) %64, i32 noundef %67)
  store ptr %68, ptr %9, align 8, !tbaa !5
  %69 = load ptr, ptr @_ZZ11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE5alloc, align 8, !tbaa !5
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = call zeroext i1 @ggml_gallocr_alloc_graph(ptr noundef %69, ptr noundef %70)
  br i1 %71, label %79, label %72

72:                                               ; preds = %63
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.23, ptr noundef @__func__._Z11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE) #5
  store i1 false, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %501

75:                                               ; preds = %60, %55
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %7, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %8, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZ11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE5alloc) #5
  br label %503

79:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = call ptr @ggml_graph_get_tensor(ptr noundef %80, ptr noundef @.str.21)
  store ptr %81, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !15
  br label %82

82:                                               ; preds = %349, %79
  %83 = load i64, ptr %12, align 8, !tbaa !15
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #5
  %86 = icmp ult i64 %83, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %82
  store i32 2, ptr %10, align 4
  br label %363

88:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = load i64, ptr %12, align 8, !tbaa !15
  %91 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %90) #5
  %92 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %91) #5
  %93 = call noalias ptr @fopen(ptr noundef %92, ptr noundef @.str.17)
  store ptr %93, ptr %13, align 8, !tbaa !5
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  %95 = icmp ne ptr %94, null
  br i1 %95, label %99, label %96

96:                                               ; preds = %88
  %97 = load ptr, ptr @stderr, align 8, !tbaa !5
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.18, ptr noundef @__func__._Z11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE) #5
  store i1 false, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %346

99:                                               ; preds = %88
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = call i32 @fseek(ptr noundef %100, i64 noundef 0, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = call i64 @ftell(ptr noundef %102)
  store i64 %103, ptr %14, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.magika_hparams, ptr %104, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 1536, ptr noundef nonnull align 4 dereferenceable(4) %105, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %106 unwind label %137

106:                                              ; preds = %99
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #5
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.magika_hparams, ptr %107, i32 0, i32 1
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.magika_hparams, ptr %109, i32 0, i32 2
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.magika_hparams, ptr %111, i32 0, i32 3
  %113 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %110, ptr noundef nonnull align 4 dereferenceable(4) %112)
          to label %114 unwind label %141

114:                                              ; preds = %106
  %115 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %108, ptr noundef nonnull align 4 dereferenceable(4) %113)
          to label %116 unwind label %141

116:                                              ; preds = %114
  %117 = load i32, ptr %115, align 4, !tbaa !17
  %118 = sext i32 %117 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %118, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %119 unwind label %145

119:                                              ; preds = %116
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = invoke i32 @fseek(ptr noundef %120, i64 noundef 0, i32 noundef 0)
          to label %122 unwind label %149

122:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %123 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.magika_hparams, ptr %124, i32 0, i32 1
  %126 = load i32, ptr %125, align 4, !tbaa !18
  %127 = sext i32 %126 to i64
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = invoke i64 @fread(ptr noundef %123, i64 noundef 1, i64 noundef %127, ptr noundef %128)
          to label %130 unwind label %153

130:                                              ; preds = %122
  %131 = trunc i64 %129 to i32
  store i32 %131, ptr %19, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !17
  br label %132

132:                                              ; preds = %166, %130
  %133 = load i32, ptr %20, align 4, !tbaa !17
  %134 = load i32, ptr %19, align 4, !tbaa !17
  %135 = icmp slt i32 %133, %134
  br i1 %135, label %157, label %136

136:                                              ; preds = %132
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %169

137:                                              ; preds = %99
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %7, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  br label %362

141:                                              ; preds = %114, %106
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %7, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %8, align 4
  br label %361

145:                                              ; preds = %116
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %7, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  br label %361

149:                                              ; preds = %119
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %7, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %8, align 4
  br label %360

153:                                              ; preds = %122
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %7, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %8, align 4
  br label %359

157:                                              ; preds = %132
  %158 = load i32, ptr %20, align 4, !tbaa !17
  %159 = sext i32 %158 to i64
  %160 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %159) #5
  %161 = load i8, ptr %160, align 1, !tbaa !19
  %162 = zext i8 %161 to i32
  %163 = load i32, ptr %20, align 4, !tbaa !17
  %164 = sext i32 %163 to i64
  %165 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %164) #5
  store i32 %162, ptr %165, align 4, !tbaa !17
  br label %166

166:                                              ; preds = %157
  %167 = load i32, ptr %20, align 4, !tbaa !17
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %20, align 4, !tbaa !17
  br label %132, !llvm.loop !20

169:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  store i64 0, ptr %22, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %170 = load i64, ptr %14, align 8, !tbaa !15
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.magika_hparams, ptr %171, i32 0, i32 2
  %173 = load i32, ptr %172, align 4, !tbaa !22
  %174 = sext i32 %173 to i64
  %175 = sub nsw i64 %170, %174
  %176 = sdiv i64 %175, 2
  store i64 %176, ptr %23, align 8, !tbaa !15
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %178 unwind label %198

178:                                              ; preds = %169
  %179 = load i64, ptr %177, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  store i64 %179, ptr %21, align 8, !tbaa !15
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  %181 = load i64, ptr %21, align 8, !tbaa !15
  %182 = invoke i32 @fseek(ptr noundef %180, i64 noundef %181, i32 noundef 0)
          to label %183 unwind label %202

183:                                              ; preds = %178
  %184 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.magika_hparams, ptr %185, i32 0, i32 2
  %187 = load i32, ptr %186, align 4, !tbaa !22
  %188 = sext i32 %187 to i64
  %189 = load ptr, ptr %13, align 8, !tbaa !5
  %190 = invoke i64 @fread(ptr noundef %184, i64 noundef 1, i64 noundef %188, ptr noundef %189)
          to label %191 unwind label %202

191:                                              ; preds = %183
  %192 = trunc i64 %190 to i32
  store i32 %192, ptr %19, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !17
  br label %193

193:                                              ; preds = %228, %191
  %194 = load i32, ptr %24, align 4, !tbaa !17
  %195 = load i32, ptr %19, align 4, !tbaa !17
  %196 = icmp slt i32 %194, %195
  br i1 %196, label %206, label %197

197:                                              ; preds = %193
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %231

198:                                              ; preds = %169
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %7, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %358

202:                                              ; preds = %183, %178
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %7, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %8, align 4
  br label %358

206:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %207 = load ptr, ptr %6, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.magika_hparams, ptr %207, i32 0, i32 1
  %209 = load i32, ptr %208, align 4, !tbaa !18
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.magika_hparams, ptr %210, i32 0, i32 2
  %212 = load i32, ptr %211, align 4, !tbaa !22
  %213 = sdiv i32 %212, 2
  %214 = add nsw i32 %209, %213
  %215 = load i32, ptr %19, align 4, !tbaa !17
  %216 = sdiv i32 %215, 2
  %217 = sub nsw i32 %214, %216
  %218 = load i32, ptr %24, align 4, !tbaa !17
  %219 = add nsw i32 %217, %218
  %220 = sext i32 %219 to i64
  store i64 %220, ptr %25, align 8, !tbaa !15
  %221 = load i32, ptr %24, align 4, !tbaa !17
  %222 = sext i32 %221 to i64
  %223 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %222) #5
  %224 = load i8, ptr %223, align 1, !tbaa !19
  %225 = zext i8 %224 to i32
  %226 = load i64, ptr %25, align 8, !tbaa !15
  %227 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %226) #5
  store i32 %225, ptr %227, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %228

228:                                              ; preds = %206
  %229 = load i32, ptr %24, align 4, !tbaa !17
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %24, align 4, !tbaa !17
  br label %193, !llvm.loop !23

231:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  store i64 0, ptr %27, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %232 = load i64, ptr %14, align 8, !tbaa !15
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.magika_hparams, ptr %233, i32 0, i32 3
  %235 = load i32, ptr %234, align 4, !tbaa !24
  %236 = sext i32 %235 to i64
  %237 = sub nsw i64 %232, %236
  store i64 %237, ptr %28, align 8, !tbaa !15
  %238 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %239 unwind label %259

239:                                              ; preds = %231
  %240 = load i64, ptr %238, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  store i64 %240, ptr %26, align 8, !tbaa !15
  %241 = load ptr, ptr %13, align 8, !tbaa !5
  %242 = load i64, ptr %26, align 8, !tbaa !15
  %243 = invoke i32 @fseek(ptr noundef %241, i64 noundef %242, i32 noundef 0)
          to label %244 unwind label %263

244:                                              ; preds = %239
  %245 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.magika_hparams, ptr %246, i32 0, i32 3
  %248 = load i32, ptr %247, align 4, !tbaa !24
  %249 = sext i32 %248 to i64
  %250 = load ptr, ptr %13, align 8, !tbaa !5
  %251 = invoke i64 @fread(ptr noundef %245, i64 noundef 1, i64 noundef %249, ptr noundef %250)
          to label %252 unwind label %263

252:                                              ; preds = %244
  %253 = trunc i64 %251 to i32
  store i32 %253, ptr %19, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  store i32 0, ptr %29, align 4, !tbaa !17
  br label %254

254:                                              ; preds = %291, %252
  %255 = load i32, ptr %29, align 4, !tbaa !17
  %256 = load i32, ptr %19, align 4, !tbaa !17
  %257 = icmp slt i32 %255, %256
  br i1 %257, label %267, label %258

258:                                              ; preds = %254
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %294

259:                                              ; preds = %231
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %7, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %357

263:                                              ; preds = %294, %244, %239
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %7, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %8, align 4
  br label %357

267:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %268 = load ptr, ptr %6, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.magika_hparams, ptr %268, i32 0, i32 1
  %270 = load i32, ptr %269, align 4, !tbaa !18
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.magika_hparams, ptr %271, i32 0, i32 2
  %273 = load i32, ptr %272, align 4, !tbaa !22
  %274 = add nsw i32 %270, %273
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.magika_hparams, ptr %275, i32 0, i32 3
  %277 = load i32, ptr %276, align 4, !tbaa !24
  %278 = add nsw i32 %274, %277
  %279 = load i32, ptr %19, align 4, !tbaa !17
  %280 = sub nsw i32 %278, %279
  %281 = load i32, ptr %29, align 4, !tbaa !17
  %282 = add nsw i32 %280, %281
  store i32 %282, ptr %30, align 4, !tbaa !17
  %283 = load i32, ptr %29, align 4, !tbaa !17
  %284 = sext i32 %283 to i64
  %285 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %284) #5
  %286 = load i8, ptr %285, align 1, !tbaa !19
  %287 = zext i8 %286 to i32
  %288 = load i32, ptr %30, align 4, !tbaa !17
  %289 = sext i32 %288 to i64
  %290 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %289) #5
  store i32 %287, ptr %290, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %291

291:                                              ; preds = %267
  %292 = load i32, ptr %29, align 4, !tbaa !17
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %29, align 4, !tbaa !17
  br label %254, !llvm.loop !25

294:                                              ; preds = %258
  %295 = load ptr, ptr %13, align 8, !tbaa !5
  %296 = invoke i32 @fclose(ptr noundef %295)
          to label %297 unwind label %263

297:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %298 = load ptr, ptr %6, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.magika_hparams, ptr %298, i32 0, i32 1
  %300 = load i32, ptr %299, align 4, !tbaa !18
  %301 = load ptr, ptr %6, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.magika_hparams, ptr %301, i32 0, i32 2
  %303 = load i32, ptr %302, align 4, !tbaa !22
  %304 = add nsw i32 %300, %303
  %305 = load ptr, ptr %6, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.magika_hparams, ptr %305, i32 0, i32 3
  %307 = load i32, ptr %306, align 4, !tbaa !24
  %308 = add nsw i32 %304, %307
  %309 = sext i32 %308 to i64
  store i64 %309, ptr %31, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #5
  %310 = load i64, ptr %31, align 8, !tbaa !15
  %311 = mul i64 257, %310
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #5
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #5
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %311, ptr noundef nonnull align 1 dereferenceable(1) %33)
          to label %312 unwind label %318

312:                                              ; preds = %297
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  store i64 0, ptr %34, align 8, !tbaa !15
  br label %313

313:                                              ; preds = %331, %312
  %314 = load i64, ptr %34, align 8, !tbaa !15
  %315 = load i64, ptr %31, align 8, !tbaa !15
  %316 = icmp ult i64 %314, %315
  br i1 %316, label %322, label %317

317:                                              ; preds = %313
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  br label %334

318:                                              ; preds = %297
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %7, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #5
  br label %356

322:                                              ; preds = %313
  %323 = load i64, ptr %34, align 8, !tbaa !15
  %324 = mul i64 257, %323
  %325 = load i64, ptr %34, align 8, !tbaa !15
  %326 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %325) #5
  %327 = load i32, ptr %326, align 4, !tbaa !17
  %328 = sext i32 %327 to i64
  %329 = add i64 %324, %328
  %330 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %329) #5
  store float 1.000000e+00, ptr %330, align 4, !tbaa !26
  br label %331

331:                                              ; preds = %322
  %332 = load i64, ptr %34, align 8, !tbaa !15
  %333 = add i64 %332, 1
  store i64 %333, ptr %34, align 8, !tbaa !15
  br label %313, !llvm.loop !27

334:                                              ; preds = %317
  %335 = load ptr, ptr %11, align 8, !tbaa !5
  %336 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  %337 = load i64, ptr %31, align 8, !tbaa !15
  %338 = mul i64 257, %337
  %339 = load i64, ptr %12, align 8, !tbaa !15
  %340 = mul i64 %338, %339
  %341 = mul i64 %340, 4
  %342 = load i64, ptr %31, align 8, !tbaa !15
  %343 = mul i64 257, %342
  %344 = mul i64 %343, 4
  invoke void @ggml_backend_tensor_set(ptr noundef %335, ptr noundef %336, i64 noundef %341, i64 noundef %344)
          to label %345 unwind label %352

345:                                              ; preds = %334
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  store i32 0, ptr %10, align 4
  br label %346

346:                                              ; preds = %345, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %347 = load i32, ptr %10, align 4
  switch i32 %347, label %363 [
    i32 0, label %348
  ]

348:                                              ; preds = %346
  br label %349

349:                                              ; preds = %348
  %350 = load i64, ptr %12, align 8, !tbaa !15
  %351 = add i64 %350, 1
  store i64 %351, ptr %12, align 8, !tbaa !15
  br label %82, !llvm.loop !28

352:                                              ; preds = %334
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %7, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %8, align 4
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  br label %356

356:                                              ; preds = %352, %318
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %357

357:                                              ; preds = %356, %263, %259
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %358

358:                                              ; preds = %357, %202, %198
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %359

359:                                              ; preds = %358, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %360

360:                                              ; preds = %359, %149
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  br label %361

361:                                              ; preds = %360, %145, %141
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  br label %362

362:                                              ; preds = %361, %137
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %500

363:                                              ; preds = %346, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %364 = load i32, ptr %10, align 4
  switch i32 %364, label %499 [
    i32 2, label %365
  ]

365:                                              ; preds = %363
  %366 = load ptr, ptr %4, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.magika_model, ptr %366, i32 0, i32 13
  %368 = load ptr, ptr %367, align 8, !tbaa !10
  %369 = load ptr, ptr %9, align 8, !tbaa !5
  %370 = call i32 @ggml_backend_graph_compute(ptr noundef %368, ptr noundef %369)
  %371 = icmp ne i32 %370, 0
  br i1 %371, label %372, label %375

372:                                              ; preds = %365
  %373 = load ptr, ptr @stderr, align 8, !tbaa !5
  %374 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %373, ptr noundef @.str.24, ptr noundef @__func__._Z11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE) #5
  store i1 false, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %499

375:                                              ; preds = %365
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  %376 = load ptr, ptr %9, align 8, !tbaa !5
  %377 = call ptr @ggml_graph_get_tensor(ptr noundef %376, ptr noundef @.str.22)
  store ptr %377, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  store i64 0, ptr %36, align 8, !tbaa !15
  br label %378

378:                                              ; preds = %490, %375
  %379 = load i64, ptr %36, align 8, !tbaa !15
  %380 = load ptr, ptr %5, align 8, !tbaa !5
  %381 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %380) #5
  %382 = icmp ult i64 %379, %381
  br i1 %382, label %384, label %383

383:                                              ; preds = %378
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  br label %498

384:                                              ; preds = %378
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #5
  %385 = load ptr, ptr %6, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.magika_hparams, ptr %385, i32 0, i32 5
  %387 = load i32, ptr %386, align 4, !tbaa !29
  %388 = sext i32 %387 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #5
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #5
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %388, ptr noundef nonnull align 1 dereferenceable(1) %38)
          to label %389 unwind label %441

389:                                              ; preds = %384
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #5
  %390 = load ptr, ptr %35, align 8, !tbaa !5
  %391 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #5
  %392 = load ptr, ptr %6, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.magika_hparams, ptr %392, i32 0, i32 5
  %394 = load i32, ptr %393, align 4, !tbaa !29
  %395 = sext i32 %394 to i64
  %396 = load i64, ptr %36, align 8, !tbaa !15
  %397 = mul i64 %395, %396
  %398 = mul i64 %397, 4
  %399 = load ptr, ptr %6, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.magika_hparams, ptr %399, i32 0, i32 5
  %401 = load i32, ptr %400, align 4, !tbaa !29
  %402 = sext i32 %401 to i64
  %403 = mul i64 %402, 4
  invoke void @ggml_backend_tensor_get(ptr noundef %390, ptr noundef %391, i64 noundef %398, i64 noundef %403)
          to label %404 unwind label %445

404:                                              ; preds = %389
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #5
  %405 = load ptr, ptr %6, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.magika_hparams, ptr %405, i32 0, i32 5
  %407 = load i32, ptr %406, align 4, !tbaa !29
  %408 = sext i32 %407 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %408, ptr noundef nonnull align 1 dereferenceable(1) %40)
          to label %409 unwind label %449

409:                                              ; preds = %404
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #5
  %410 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #5
  %411 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %41, i32 0, i32 0
  store ptr %410, ptr %411, align 8
  %412 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #5
  %413 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %42, i32 0, i32 0
  store ptr %412, ptr %413, align 8
  %414 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %41, i32 0, i32 0
  %415 = load ptr, ptr %414, align 8
  %416 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %42, i32 0, i32 0
  %417 = load ptr, ptr %416, align 8
  invoke void @_ZSt4iotaIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiEvT_S7_T0_(ptr %415, ptr %417, i32 noundef 0)
          to label %418 unwind label %453

418:                                              ; preds = %409
  %419 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #5
  %420 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %43, i32 0, i32 0
  store ptr %419, ptr %420, align 8
  %421 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #5
  %422 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %44, i32 0, i32 0
  store ptr %421, ptr %422, align 8
  %423 = getelementptr inbounds %class.anon, ptr %45, i32 0, i32 0
  store ptr %37, ptr %423, align 8, !tbaa !5
  %424 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %43, i32 0, i32 0
  %425 = load ptr, ptr %424, align 8
  %426 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %44, i32 0, i32 0
  %427 = load ptr, ptr %426, align 8
  %428 = getelementptr inbounds %class.anon, ptr %45, i32 0, i32 0
  %429 = load ptr, ptr %428, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZ11magika_evalR12magika_modelRKS3_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISE_EEE3$_0EvT_SK_T0_"(ptr %425, ptr %427, ptr %429)
          to label %430 unwind label %453

430:                                              ; preds = %418
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #5
  store i32 5, ptr %46, align 4, !tbaa !17
  %431 = load ptr, ptr %5, align 8, !tbaa !5
  %432 = load i64, ptr %36, align 8, !tbaa !15
  %433 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %431, i64 noundef %432) #5
  %434 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %433) #5
  %435 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.25, ptr noundef %434)
          to label %436 unwind label %457

436:                                              ; preds = %430
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #5
  store i32 0, ptr %47, align 4, !tbaa !17
  br label %437

437:                                              ; preds = %480, %436
  %438 = load i32, ptr %47, align 4, !tbaa !17
  %439 = icmp slt i32 %438, 5
  br i1 %439, label %461, label %440

440:                                              ; preds = %437
  store i32 20, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #5
  br label %487

441:                                              ; preds = %384
  %442 = landingpad { ptr, i32 }
          cleanup
  %443 = extractvalue { ptr, i32 } %442, 0
  store ptr %443, ptr %7, align 8
  %444 = extractvalue { ptr, i32 } %442, 1
  store i32 %444, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #5
  br label %497

445:                                              ; preds = %389
  %446 = landingpad { ptr, i32 }
          cleanup
  %447 = extractvalue { ptr, i32 } %446, 0
  store ptr %447, ptr %7, align 8
  %448 = extractvalue { ptr, i32 } %446, 1
  store i32 %448, ptr %8, align 4
  br label %496

449:                                              ; preds = %404
  %450 = landingpad { ptr, i32 }
          cleanup
  %451 = extractvalue { ptr, i32 } %450, 0
  store ptr %451, ptr %7, align 8
  %452 = extractvalue { ptr, i32 } %450, 1
  store i32 %452, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #5
  br label %495

453:                                              ; preds = %418, %409
  %454 = landingpad { ptr, i32 }
          cleanup
  %455 = extractvalue { ptr, i32 } %454, 0
  store ptr %455, ptr %7, align 8
  %456 = extractvalue { ptr, i32 } %454, 1
  store i32 %456, ptr %8, align 4
  br label %494

457:                                              ; preds = %487, %430
  %458 = landingpad { ptr, i32 }
          cleanup
  %459 = extractvalue { ptr, i32 } %458, 0
  store ptr %459, ptr %7, align 8
  %460 = extractvalue { ptr, i32 } %458, 1
  store i32 %460, ptr %8, align 4
  br label %493

461:                                              ; preds = %437
  %462 = load i32, ptr %47, align 4, !tbaa !17
  %463 = sext i32 %462 to i64
  %464 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %463) #5
  %465 = load i32, ptr %464, align 4, !tbaa !17
  %466 = sext i32 %465 to i64
  %467 = getelementptr inbounds [113 x ptr], ptr @_ZL13magika_labels, i64 0, i64 %466
  %468 = load ptr, ptr %467, align 8, !tbaa !5
  %469 = load i32, ptr %47, align 4, !tbaa !17
  %470 = sext i32 %469 to i64
  %471 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %470) #5
  %472 = load i32, ptr %471, align 4, !tbaa !17
  %473 = sext i32 %472 to i64
  %474 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %473) #5
  %475 = load float, ptr %474, align 4, !tbaa !26
  %476 = fmul float %475, 1.000000e+02
  %477 = fpext float %476 to double
  %478 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.26, ptr noundef %468, double noundef %477)
          to label %479 unwind label %483

479:                                              ; preds = %461
  br label %480

480:                                              ; preds = %479
  %481 = load i32, ptr %47, align 4, !tbaa !17
  %482 = add nsw i32 %481, 1
  store i32 %482, ptr %47, align 4, !tbaa !17
  br label %437, !llvm.loop !30

483:                                              ; preds = %461
  %484 = landingpad { ptr, i32 }
          cleanup
  %485 = extractvalue { ptr, i32 } %484, 0
  store ptr %485, ptr %7, align 8
  %486 = extractvalue { ptr, i32 } %484, 1
  store i32 %486, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #5
  br label %493

487:                                              ; preds = %440
  %488 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.27)
          to label %489 unwind label %457

489:                                              ; preds = %487
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #5
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #5
  br label %490

490:                                              ; preds = %489
  %491 = load i64, ptr %36, align 8, !tbaa !15
  %492 = add i64 %491, 1
  store i64 %492, ptr %36, align 8, !tbaa !15
  br label %378, !llvm.loop !31

493:                                              ; preds = %483, %457
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #5
  br label %494

494:                                              ; preds = %493, %453
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #5
  br label %495

495:                                              ; preds = %494, %449
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #5
  br label %496

496:                                              ; preds = %495, %445
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #5
  br label %497

497:                                              ; preds = %496, %441
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  br label %500

498:                                              ; preds = %383
  store i1 true, ptr %3, align 1
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  br label %499

499:                                              ; preds = %498, %372, %363
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %501

500:                                              ; preds = %497, %362
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %503

501:                                              ; preds = %499, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %502 = load i1, ptr %3, align 1
  ret i1 %502

503:                                              ; preds = %500, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %504

504:                                              ; preds = %503
  %505 = load ptr, ptr %7, align 8
  %506 = load i32, ptr %8, align 4
  %507 = insertvalue { ptr, i32 } poison, ptr %505, 0
  %508 = insertvalue { ptr, i32 } %507, i32 %506, 1
  resume { ptr, i32 } %508
}

declare ptr @ggml_gallocr_new(ptr noundef) #3

declare ptr @ggml_backend_get_default_buffer_type(ptr noundef) #3

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

declare zeroext i1 @ggml_gallocr_alloc_graph(ptr noundef, ptr noundef) #3

declare ptr @ggml_graph_get_tensor(ptr noundef, ptr noundef) #3

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

declare i64 @ftell(ptr noundef) #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(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 @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 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 @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

declare void @ggml_backend_tensor_get(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt4iotaIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiEvT_S7_T0_(ptr, ptr, i32 noundef) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZ11magika_evalR12magika_modelRKS3_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISE_EEE3$_0EvT_SK_T0_"(ptr, ptr, ptr) #7

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

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

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

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

!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 = !{!"branch_weights", i32 1, i32 1048575}
!10 = !{!11, !6, i64 128}
!11 = !{!"_ZTS12magika_model", !12, i64 0, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144}
!12 = !{!"_ZTS14magika_hparams", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !14, i64 24, !13, i64 28}
!13 = !{!"int", !7, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!13, !13, i64 0}
!18 = !{!12, !13, i64 4}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!12, !13, i64 8}
!23 = distinct !{!23, !21}
!24 = !{!12, !13, i64 12}
!25 = distinct !{!25, !21}
!26 = !{!14, !14, i64 0}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !21}
!29 = !{!12, !13, i64 20}
!30 = distinct !{!30, !21}
!31 = distinct !{!31, !21}


; 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.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.11" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::allocator.1" = type { i8 }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = 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::allocator.16" = type { i8 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZZ11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE5alloc = external hidden local_unnamed_addr global ptr, align 8
@_ZGVZ11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE5alloc = external hidden global i64, align 8
@.str.23 = external hidden unnamed_addr constant [39 x i8], align 1
@__func__._Z11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE = external hidden unnamed_addr constant [12 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZL13magika_labels = external hidden local_unnamed_addr global [113 x ptr], align 16
@.str.27 = external hidden unnamed_addr constant [2 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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fseek(ptr nocapture noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #1

; 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 void @ggml_backend_tensor_set(ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #4

; 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 uwtable
declare dso_local noundef ptr @_Z12magika_graphRK12magika_modeli(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare void @__cxa_guard_abort(ptr) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.9", align 8
  %4 = alloca %"class.std::allocator.11", align 1
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::allocator.1", align 1
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"class.std::vector.14", align 8
  %12 = alloca %"class.std::allocator.16", align 1
  %13 = alloca %"class.std::vector.14", align 8
  %14 = alloca %"class.std::allocator.16", align 1
  %15 = alloca %"class.std::vector.9", align 8
  %16 = alloca %"class.std::allocator.11", align 1
  %17 = load atomic i8, ptr @_ZGVZ11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE5alloc acquire, align 8
  %18 = icmp eq i8 %17, 0
  br i1 %18, label %19, label %28, !prof !5

19:                                               ; preds = %2
  %20 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE5alloc) #8
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %28, label %21

21:                                               ; preds = %19
  %22 = getelementptr inbounds i8, ptr %0, i64 128
  %23 = load ptr, ptr %22, align 8, !tbaa !6
  %24 = invoke ptr @ggml_backend_get_default_buffer_type(ptr noundef %23)
          to label %25 unwind label %37

25:                                               ; preds = %21
  %26 = invoke ptr @ggml_gallocr_new(ptr noundef %24)
          to label %27 unwind label %37

27:                                               ; preds = %25
  store ptr %26, ptr @_ZZ11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE5alloc, align 8, !tbaa !14
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZ11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE5alloc) #8
  br label %28

28:                                               ; preds = %27, %19, %2
  %29 = tail call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %30 = trunc i64 %29 to i32
  %31 = tail call noundef ptr @_Z12magika_graphRK12magika_modeli(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %30)
  %32 = load ptr, ptr @_ZZ11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE5alloc, align 8, !tbaa !14
  %33 = tail call zeroext i1 @ggml_gallocr_alloc_graph(ptr noundef %32, ptr noundef %31)
  br i1 %33, label %.split, label %34

34:                                               ; preds = %28
  %35 = load ptr, ptr @stderr, align 8, !tbaa !14
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.23, ptr noundef nonnull @__func__._Z11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE) #9
  br label %.loopexit

37:                                               ; preds = %25, %21
  %38 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_guard_abort(ptr nonnull @_ZGVZ11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE5alloc) #8
  br label %270

.split:                                           ; preds = %28
  %39 = tail call ptr @ggml_graph_get_tensor(ptr noundef %31, ptr noundef nonnull @.str.21)
  %40 = tail call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %.not127150.not = icmp eq i64 %40, 0
  br i1 %.not127150.not, label %.critedge, label %.lr.ph152

.lr.ph152:                                        ; preds = %.split
  %41 = getelementptr inbounds i8, ptr %0, i64 28
  %42 = getelementptr inbounds i8, ptr %0, i64 4
  %43 = getelementptr inbounds i8, ptr %0, i64 8
  %44 = getelementptr inbounds i8, ptr %0, i64 12
  br label %45

45:                                               ; preds = %.lr.ph152, %150
  %.0114151 = phi i64 [ 0, %.lr.ph152 ], [ %151, %150 ]
  %46 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.0114151) #8
  %47 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %46) #8
  %48 = call noalias ptr @fopen(ptr noundef %47, ptr noundef nonnull @.str.17)
  %.not123.not = icmp eq ptr %48, null
  br i1 %.not123.not, label %.thread, label %51

.thread:                                          ; preds = %45
  %49 = load ptr, ptr @stderr, align 8, !tbaa !14
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.18, ptr noundef nonnull @__func__._Z11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE) #9
  br label %.loopexit

51:                                               ; preds = %45
  %52 = call i32 @fseek(ptr noundef nonnull %48, i64 noundef 0, i32 noundef 2)
  %53 = call i64 @ftell(ptr noundef nonnull %48)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1536, ptr noundef nonnull align 4 dereferenceable(4) %41, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %54 unwind label %81

54:                                               ; preds = %51
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %44)
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %42, ptr noundef nonnull align 4 dereferenceable(4) %55)
  %57 = load i32, ptr %56, align 4, !tbaa !15
  %58 = sext i32 %57 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %58, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %59 unwind label %83

59:                                               ; preds = %54
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  %60 = call i32 @fseek(ptr noundef nonnull %48, i64 noundef 0, i32 noundef 0)
  %61 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %62 = load i32, ptr %42, align 4, !tbaa !16
  %63 = sext i32 %62 to i64
  %64 = call i64 @fread(ptr noundef %61, i64 noundef 1, i64 noundef %63, ptr noundef nonnull %48)
  %65 = trunc i64 %64 to i32
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %59
  %wide.trip.count = and i64 %64, 2147483647
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %59
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  store i64 0, ptr %7, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %67 = load i32, ptr %43, align 8, !tbaa !19
  %68 = sext i32 %67 to i64
  %69 = sub nsw i64 %53, %68
  %70 = sdiv i64 %69, 2
  store i64 %70, ptr %8, align 8, !tbaa !17
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %72 = load i64, ptr %71, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %73 = call i32 @fseek(ptr noundef nonnull %48, i64 noundef %72, i32 noundef 0)
  %74 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %75 = load i32, ptr %43, align 8, !tbaa !19
  %76 = sext i32 %75 to i64
  %77 = call i64 @fread(ptr noundef %74, i64 noundef 1, i64 noundef %76, ptr noundef nonnull %48)
  %78 = trunc i64 %77 to i32
  %79 = icmp sgt i32 %78, 0
  br i1 %79, label %.lr.ph140, label %._crit_edge141

.lr.ph140:                                        ; preds = %._crit_edge
  %.neg157 = lshr i64 %77, 1
  %80 = and i64 %.neg157, 1073741823
  %wide.trip.count164 = and i64 %77, 2147483647
  br label %101

81:                                               ; preds = %51
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  br label %157

83:                                               ; preds = %54
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  br label %156

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %85 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv) #8
  %86 = load i8, ptr %85, align 1, !tbaa !20
  %87 = zext i8 %86 to i32
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #8
  store i32 %87, ptr %88, align 4, !tbaa !15
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !21

._crit_edge141:                                   ; preds = %101, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  store i64 0, ptr %9, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %89 = load i32, ptr %44, align 4, !tbaa !23
  %90 = sext i32 %89 to i64
  %91 = sub nsw i64 %53, %90
  store i64 %91, ptr %10, align 8, !tbaa !17
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %93 = load i64, ptr %92, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  %94 = call i32 @fseek(ptr noundef nonnull %48, i64 noundef %93, i32 noundef 0)
  %95 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %96 = load i32, ptr %44, align 4, !tbaa !23
  %97 = sext i32 %96 to i64
  %98 = call i64 @fread(ptr noundef %95, i64 noundef 1, i64 noundef %97, ptr noundef nonnull %48)
  %99 = trunc i64 %98 to i32
  %100 = icmp sgt i32 %99, 0
  br i1 %100, label %.lr.ph144, label %._crit_edge145

.lr.ph144:                                        ; preds = %._crit_edge141
  %wide.trip.count169 = and i64 %98, 2147483647
  br label %122

101:                                              ; preds = %.lr.ph140, %101
  %indvars.iv161 = phi i64 [ 0, %.lr.ph140 ], [ %indvars.iv.next162, %101 ]
  %102 = load i32, ptr %42, align 4, !tbaa !16
  %103 = load i32, ptr %43, align 8, !tbaa !19
  %104 = sdiv i32 %103, 2
  %105 = sub nsw i64 %indvars.iv161, %80
  %106 = trunc nsw i64 %105 to i32
  %107 = add i32 %102, %106
  %108 = add i32 %107, %104
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv161) #8
  %111 = load i8, ptr %110, align 1, !tbaa !20
  %112 = zext i8 %111 to i32
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %109) #8
  store i32 %112, ptr %113, align 4, !tbaa !15
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %exitcond165.not = icmp eq i64 %indvars.iv.next162, %wide.trip.count164
  br i1 %exitcond165.not, label %._crit_edge141, label %101, !llvm.loop !24

._crit_edge145:                                   ; preds = %122, %._crit_edge141
  %114 = call i32 @fclose(ptr noundef nonnull %48)
  %115 = load i32, ptr %42, align 4, !tbaa !16
  %116 = load i32, ptr %43, align 8, !tbaa !19
  %117 = add i32 %116, %115
  %118 = load i32, ptr %44, align 4, !tbaa !23
  %119 = add i32 %117, %118
  %120 = sext i32 %119 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  %121 = mul nsw i64 %120, 257
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #8
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %121, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %136 unwind label %141

122:                                              ; preds = %.lr.ph144, %122
  %indvars.iv166 = phi i64 [ 0, %.lr.ph144 ], [ %indvars.iv.next167, %122 ]
  %123 = load i32, ptr %42, align 4, !tbaa !16
  %124 = load i32, ptr %43, align 8, !tbaa !19
  %125 = load i32, ptr %44, align 4, !tbaa !23
  %126 = sub i64 %indvars.iv166, %98
  %127 = trunc i64 %126 to i32
  %128 = add i32 %123, %127
  %129 = add i32 %128, %124
  %130 = add i32 %129, %125
  %131 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv166) #8
  %132 = load i8, ptr %131, align 1, !tbaa !20
  %133 = zext i8 %132 to i32
  %134 = sext i32 %130 to i64
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %134) #8
  store i32 %133, ptr %135, align 4, !tbaa !15
  %indvars.iv.next167 = add nuw nsw i64 %indvars.iv166, 1
  %exitcond170.not = icmp eq i64 %indvars.iv.next167, %wide.trip.count169
  br i1 %exitcond170.not, label %._crit_edge145, label %122, !llvm.loop !25

136:                                              ; preds = %._crit_edge145
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  %.not158 = icmp eq i32 %119, 0
  br i1 %.not158, label %._crit_edge149, label %.lr.ph148

._crit_edge149:                                   ; preds = %.lr.ph148, %136
  %137 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %138 = shl i64 %.0114151, 2
  %139 = mul i64 %138, %121
  %140 = mul nsw i64 %120, 1028
  invoke void @ggml_backend_tensor_set(ptr noundef %39, ptr noundef %137, i64 noundef %139, i64 noundef %140)
          to label %150 unwind label %153

141:                                              ; preds = %._crit_edge145
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  br label %155

.lr.ph148:                                        ; preds = %136, %.lr.ph148
  %.0117146 = phi i64 [ %149, %.lr.ph148 ], [ 0, %136 ]
  %143 = mul i64 %.0117146, 257
  %144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.0117146) #8
  %145 = load i32, ptr %144, align 4, !tbaa !15
  %146 = sext i32 %145 to i64
  %147 = add i64 %143, %146
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %147) #8
  store float 1.000000e+00, ptr %148, align 4, !tbaa !26
  %149 = add nuw i64 %.0117146, 1
  %exitcond171.not = icmp eq i64 %149, %120
  br i1 %exitcond171.not, label %._crit_edge149, label %.lr.ph148, !llvm.loop !27

150:                                              ; preds = %._crit_edge149
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  %151 = add nuw i64 %.0114151, 1
  %152 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %.not127 = icmp ult i64 %151, %152
  br i1 %.not127, label %45, label %.critedge, !llvm.loop !28

153:                                              ; preds = %._crit_edge149
  %154 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  br label %155

155:                                              ; preds = %153, %141
  %.pn = phi { ptr, i32 } [ %154, %153 ], [ %142, %141 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  br label %156

156:                                              ; preds = %155, %83
  %.pn.pn = phi { ptr, i32 } [ %.pn, %155 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  br label %157

157:                                              ; preds = %156, %81
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %156 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  br label %270

.critedge:                                        ; preds = %150, %.split
  %158 = getelementptr inbounds i8, ptr %0, i64 128
  %159 = load ptr, ptr %158, align 8, !tbaa !6
  %160 = call i32 @ggml_backend_graph_compute(ptr noundef %159, ptr noundef %31)
  %.not128 = icmp eq i32 %160, 0
  br i1 %.not128, label %164, label %161

161:                                              ; preds = %.critedge
  %162 = load ptr, ptr @stderr, align 8, !tbaa !14
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef nonnull @.str.24, ptr noundef nonnull @__func__._Z11magika_evalR12magika_modelRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE) #9
  br label %.loopexit

164:                                              ; preds = %.critedge
  %165 = call ptr @ggml_graph_get_tensor(ptr noundef %31, ptr noundef nonnull @.str.22)
  %166 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %.not159 = icmp eq i64 %166, 0
  br i1 %.not159, label %.loopexit, label %.lr.ph156

.lr.ph156:                                        ; preds = %164
  %167 = getelementptr inbounds i8, ptr %0, i64 20
  br label %168

168:                                              ; preds = %.lr.ph156, %186
  %.0115154 = phi i64 [ 0, %.lr.ph156 ], [ %256, %186 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #8
  %169 = load i32, ptr %167, align 4, !tbaa !29
  %170 = sext i32 %169 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #8
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #8
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %170, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %171 unwind label %259

171:                                              ; preds = %168
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #8
  %172 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %173 = load i32, ptr %167, align 4, !tbaa !29
  %174 = sext i32 %173 to i64
  %175 = shl i64 %.0115154, 2
  %176 = mul i64 %175, %174
  %177 = shl nsw i64 %174, 2
  invoke void @ggml_backend_tensor_get(ptr noundef %165, ptr noundef %172, i64 noundef %176, i64 noundef %177)
          to label %178 unwind label %261

178:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #8
  %179 = load i32, ptr %167, align 4, !tbaa !29
  %180 = sext i32 %179 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %180, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %181 unwind label %263

181:                                              ; preds = %178
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #8
  %182 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  %183 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @_ZSt4iotaIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiEvT_S7_T0_(ptr %182, ptr %183, i32 noundef 0)
  %184 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  %185 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZ11magika_evalR12magika_modelRKS3_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISE_EEE3$_0EvT_SK_T0_"(ptr %184, ptr %185, ptr nonnull %13)
          to label %186 unwind label %265

186:                                              ; preds = %181
  %187 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.0115154) #8
  %188 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %187) #8
  %189 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25, ptr noundef %188)
  %190 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 0) #8
  %191 = load i32, ptr %190, align 4, !tbaa !15
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [113 x ptr], ptr @_ZL13magika_labels, i64 0, i64 %192
  %194 = load ptr, ptr %193, align 8, !tbaa !14
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 0) #8
  %196 = load i32, ptr %195, align 4, !tbaa !15
  %197 = sext i32 %196 to i64
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %197) #8
  %199 = load float, ptr %198, align 4, !tbaa !26
  %200 = fmul float %199, 1.000000e+02
  %201 = fpext float %200 to double
  %202 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, ptr noundef %194, double noundef %201)
  %203 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 1) #8
  %204 = load i32, ptr %203, align 4, !tbaa !15
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [113 x ptr], ptr @_ZL13magika_labels, i64 0, i64 %205
  %207 = load ptr, ptr %206, align 8, !tbaa !14
  %208 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 1) #8
  %209 = load i32, ptr %208, align 4, !tbaa !15
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %210) #8
  %212 = load float, ptr %211, align 4, !tbaa !26
  %213 = fmul float %212, 1.000000e+02
  %214 = fpext float %213 to double
  %215 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, ptr noundef %207, double noundef %214)
  %216 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 2) #8
  %217 = load i32, ptr %216, align 4, !tbaa !15
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [113 x ptr], ptr @_ZL13magika_labels, i64 0, i64 %218
  %220 = load ptr, ptr %219, align 8, !tbaa !14
  %221 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 2) #8
  %222 = load i32, ptr %221, align 4, !tbaa !15
  %223 = sext i32 %222 to i64
  %224 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %223) #8
  %225 = load float, ptr %224, align 4, !tbaa !26
  %226 = fmul float %225, 1.000000e+02
  %227 = fpext float %226 to double
  %228 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, ptr noundef %220, double noundef %227)
  %229 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 3) #8
  %230 = load i32, ptr %229, align 4, !tbaa !15
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [113 x ptr], ptr @_ZL13magika_labels, i64 0, i64 %231
  %233 = load ptr, ptr %232, align 8, !tbaa !14
  %234 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 3) #8
  %235 = load i32, ptr %234, align 4, !tbaa !15
  %236 = sext i32 %235 to i64
  %237 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %236) #8
  %238 = load float, ptr %237, align 4, !tbaa !26
  %239 = fmul float %238, 1.000000e+02
  %240 = fpext float %239 to double
  %241 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, ptr noundef %233, double noundef %240)
  %242 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 4) #8
  %243 = load i32, ptr %242, align 4, !tbaa !15
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [113 x ptr], ptr @_ZL13magika_labels, i64 0, i64 %244
  %246 = load ptr, ptr %245, align 8, !tbaa !14
  %247 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 4) #8
  %248 = load i32, ptr %247, align 4, !tbaa !15
  %249 = sext i32 %248 to i64
  %250 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %249) #8
  %251 = load float, ptr %250, align 4, !tbaa !26
  %252 = fmul float %251, 1.000000e+02
  %253 = fpext float %252 to double
  %254 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, ptr noundef %246, double noundef %253)
  %255 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #8
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  %256 = add nuw i64 %.0115154, 1
  %257 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %258 = icmp ult i64 %256, %257
  br i1 %258, label %168, label %.loopexit, !llvm.loop !30

259:                                              ; preds = %168
  %260 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #8
  br label %269

261:                                              ; preds = %171
  %262 = landingpad { ptr, i32 }
          cleanup
  br label %268

263:                                              ; preds = %178
  %264 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #8
  br label %267

265:                                              ; preds = %181
  %266 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  br label %267

267:                                              ; preds = %265, %263
  %.pn129 = phi { ptr, i32 } [ %266, %265 ], [ %264, %263 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #8
  br label %268

268:                                              ; preds = %267, %261
  %.pn129.pn = phi { ptr, i32 } [ %.pn129, %267 ], [ %262, %261 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  br label %269

269:                                              ; preds = %268, %259
  %.pn129.pn.pn = phi { ptr, i32 } [ %.pn129.pn, %268 ], [ %260, %259 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  br label %270

.loopexit:                                        ; preds = %186, %164, %.thread, %161, %34
  %.4 = phi i1 [ false, %34 ], [ false, %161 ], [ false, %.thread ], [ true, %164 ], [ true, %186 ]
  ret i1 %.4

270:                                              ; preds = %157, %269, %37
  %.pn129.pn.pn.pn.pn = phi { ptr, i32 } [ %38, %37 ], [ %.pn129.pn.pn, %269 ], [ %.pn.pn.pn, %157 ]
  resume { ptr, i32 } %.pn129.pn.pn.pn.pn
}

declare ptr @ggml_gallocr_new(ptr noundef) local_unnamed_addr #4

declare ptr @ggml_backend_get_default_buffer_type(ptr noundef) local_unnamed_addr #4

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

declare zeroext i1 @ggml_gallocr_alloc_graph(ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @ggml_graph_get_tensor(ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nofree nounwind
declare noundef i64 @ftell(ptr nocapture noundef) local_unnamed_addr #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(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 @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(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 void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 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 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 @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

declare i32 @ggml_backend_graph_compute(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @ggml_backend_tensor_get(ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt4iotaIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiEvT_S7_T0_(ptr, ptr, i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEZ11magika_evalR12magika_modelRKS3_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISE_EEE3$_0EvT_SK_T0_"(ptr, ptr, ptr) local_unnamed_addr #7

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIfED2Ev(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 = { nofree nounwind }
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 }
attributes #9 = { cold 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 = !{!"branch_weights", i32 1, i32 1048575}
!6 = !{!7, !13, i64 128}
!7 = !{!"_ZTS12magika_model", !8, i64 0, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144}
!8 = !{!"_ZTS14magika_hparams", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !9, i64 16, !9, i64 20, !12, i64 24, !9, i64 28}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"float", !10, i64 0}
!13 = !{!"any pointer", !10, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!9, !9, i64 0}
!16 = !{!8, !9, i64 4}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !10, i64 0}
!19 = !{!8, !9, i64 8}
!20 = !{!10, !10, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!8, !9, i64 12}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}
!26 = !{!12, !12, i64 0}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !22}
!29 = !{!8, !9, i64 20}
!30 = distinct !{!30, !22}


; Effective O3 passes: BDCEPass,ConstraintEliminationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass