; LLVM IR from ggml-org/ggml :: tests (test-conv1d)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.test_model = type { ptr, ptr, ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@__func__.main = external hidden unnamed_addr constant [5 x i8], align 1
@__const.main.expected_conv1d = external hidden unnamed_addr constant [80 x float], align 16
@__const.main.expected_im2col = external hidden unnamed_addr constant [80 x i16], align 16
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10load_modelR10test_modelb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) #0

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

; 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 #0 align 2

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) #1

; 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 void @_ZNSaItEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

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

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

declare i64 @ggml_nbytes(ptr noundef) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z11build_graphRK10test_model(ptr noundef nonnull align 8 dereferenceable(40)) #0

declare void @ggml_free(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z13compute_graphRK10test_modelP12ggml_gallocr(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #5 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.test_model, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector.0", align 8
  %11 = alloca %"class.std::allocator.2", align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca [80 x float], align 16
  %19 = alloca [80 x i16], align 16
  %20 = alloca i8, align 1
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @ggml_time_init()
  call void @llvm.lifetime.start.p0(i64 40, ptr %2) #9
  call void @_ZN10test_modelC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #9
  call void @_Z10load_modelR10test_modelb(ptr noundef nonnull align 8 dereferenceable(40) %2, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  store ptr null, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.test_model, ptr %2, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = call ptr @ggml_backend_get_default_buffer_type(ptr noundef %25)
  %27 = call ptr @ggml_gallocr_new(ptr noundef %26)
  store ptr %27, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  %28 = call noundef ptr @_Z11build_graphRK10test_model(ptr noundef nonnull align 8 dereferenceable(40) %2)
  store ptr %28, ptr %4, align 8, !tbaa !5
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = call zeroext i1 @ggml_gallocr_reserve(ptr noundef %29, ptr noundef %30)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = call i64 @ggml_gallocr_get_buffer_size(ptr noundef %32, i32 noundef 0)
  store i64 %33, ptr %5, align 8, !tbaa !11
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = load i64, ptr %5, align 8, !tbaa !11
  %36 = uitofp i64 %35 to float
  %37 = fdiv float %36, 1.024000e+03
  %38 = fdiv float %37, 1.024000e+03
  %39 = fpext float %38 to double
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.4, ptr noundef @__func__.main, double noundef %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = call noundef ptr @_Z13compute_graphRK10test_modelP12ggml_gallocr(ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef %41)
  store ptr %42, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store i32 0, ptr %9, align 4, !tbaa !13
  br label %43

43:                                               ; preds = %73, %0
  %44 = load i32, ptr %9, align 4, !tbaa !13
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = call i32 @ggml_graph_n_nodes(ptr noundef %45)
  %47 = icmp slt i32 %44, %46
  br i1 %47, label %49, label %48

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

49:                                               ; preds = %43
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load i32, ptr %9, align 4, !tbaa !13
  %52 = call ptr @ggml_graph_node(ptr noundef %50, i32 noundef %51)
  %53 = call ptr @ggml_get_name(ptr noundef %52)
  %54 = call i32 @strcmp(ptr noundef %53, ptr noundef @.str.2) #10
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %60

56:                                               ; preds = %49
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load i32, ptr %9, align 4, !tbaa !13
  %59 = call ptr @ggml_graph_node(ptr noundef %57, i32 noundef %58)
  store ptr %59, ptr %7, align 8, !tbaa !5
  br label %72

60:                                               ; preds = %49
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = load i32, ptr %9, align 4, !tbaa !13
  %63 = call ptr @ggml_graph_node(ptr noundef %61, i32 noundef %62)
  %64 = call ptr @ggml_get_name(ptr noundef %63)
  %65 = call i32 @strcmp(ptr noundef %64, ptr noundef @.str.3) #10
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %67, label %71

67:                                               ; preds = %60
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = load i32, ptr %9, align 4, !tbaa !13
  %70 = call ptr @ggml_graph_node(ptr noundef %68, i32 noundef %69)
  store ptr %70, ptr %8, align 8, !tbaa !5
  br label %71

71:                                               ; preds = %67, %60
  br label %72

72:                                               ; preds = %71, %56
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %9, align 4, !tbaa !13
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %9, align 4, !tbaa !13
  br label %43, !llvm.loop !15

76:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #9
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = call i64 @ggml_nelements(ptr noundef %77)
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #9
  call void @_ZNSaItEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  invoke void @_ZNSt6vectorItSaItEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %78, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %79 unwind label %102

79:                                               ; preds = %76
  call void @_ZNSt15__new_allocatorItED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #9
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = invoke i64 @ggml_nelements(ptr noundef %80)
          to label %82 unwind label %106

82:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #9
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #9
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %81, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %83 unwind label %110

83:                                               ; preds = %82
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #9
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = call noundef ptr @_ZNSt6vectorItSaItEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = invoke i64 @ggml_nbytes(ptr noundef %86)
          to label %88 unwind label %114

88:                                               ; preds = %83
  invoke void @ggml_backend_tensor_get(ptr noundef %84, ptr noundef %85, i64 noundef 0, i64 noundef %87)
          to label %89 unwind label %114

89:                                               ; preds = %88
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = invoke i64 @ggml_nbytes(ptr noundef %92)
          to label %94 unwind label %114

94:                                               ; preds = %89
  invoke void @ggml_backend_tensor_get(ptr noundef %90, ptr noundef %91, i64 noundef 0, i64 noundef %93)
          to label %95 unwind label %114

95:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 80, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 240, ptr %17, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 320, ptr %18) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 @__const.main.expected_conv1d, i64 320, i1 false)
  call void @llvm.lifetime.start.p0(i64 160, ptr %19) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 @__const.main.expected_im2col, i64 160, i1 false)
  %96 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.5)
          to label %97 unwind label %118

97:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #9
  store i8 1, ptr %20, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  store i32 0, ptr %21, align 4, !tbaa !13
  br label %98

98:                                               ; preds = %136, %97
  %99 = load i32, ptr %21, align 4, !tbaa !13
  %100 = icmp slt i32 %99, 80
  br i1 %100, label %122, label %101

101:                                              ; preds = %98
  store i32 5, ptr %22, align 4
  br label %139

102:                                              ; preds = %76
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %12, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %13, align 4
  call void @_ZNSt15__new_allocatorItED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #9
  br label %217

106:                                              ; preds = %79
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %12, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %13, align 4
  br label %216

110:                                              ; preds = %82
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %12, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #9
  br label %216

114:                                              ; preds = %94, %89, %88, %83
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %12, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %13, align 4
  br label %215

118:                                              ; preds = %95
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %12, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %13, align 4
  br label %214

122:                                              ; preds = %98
  %123 = load i32, ptr %21, align 4, !tbaa !13
  %124 = sext i32 %123 to i64
  %125 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %124) #9
  %126 = load i16, ptr %125, align 2, !tbaa !19
  %127 = zext i16 %126 to i32
  %128 = load i32, ptr %21, align 4, !tbaa !13
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [80 x i16], ptr %19, i64 0, i64 %129
  %131 = load i16, ptr %130, align 2, !tbaa !19
  %132 = zext i16 %131 to i32
  %133 = icmp ne i32 %127, %132
  br i1 %133, label %134, label %135

134:                                              ; preds = %122
  store i8 0, ptr %20, align 1, !tbaa !17
  store i32 5, ptr %22, align 4
  br label %139

135:                                              ; preds = %122
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %21, align 4, !tbaa !13
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %21, align 4, !tbaa !13
  br label %98, !llvm.loop !21

139:                                              ; preds = %134, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %140

140:                                              ; preds = %139
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = invoke i64 @ggml_nelements(ptr noundef %141)
          to label %143 unwind label %163

143:                                              ; preds = %140
  %144 = trunc i64 %142 to i32
  %145 = load i8, ptr %20, align 1, !tbaa !17, !range !22, !noundef !23
  %146 = trunc i8 %145 to i1
  br i1 %146, label %147, label %153

147:                                              ; preds = %143
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = invoke i64 @ggml_nelements(ptr noundef %148)
          to label %150 unwind label %163

150:                                              ; preds = %147
  %151 = icmp eq i64 %149, 240
  br i1 %151, label %152, label %153

152:                                              ; preds = %150
  br label %154

153:                                              ; preds = %150, %143
  br label %154

154:                                              ; preds = %153, %152
  %155 = phi ptr [ @.str.7, %152 ], [ @.str.8, %153 ]
  %156 = getelementptr inbounds [16 x i8], ptr %155, i64 0, i64 0
  %157 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %144, ptr noundef %156)
          to label %158 unwind label %163

158:                                              ; preds = %154
  store i8 1, ptr %20, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  store i32 0, ptr %23, align 4, !tbaa !13
  br label %159

159:                                              ; preds = %179, %158
  %160 = load i32, ptr %23, align 4, !tbaa !13
  %161 = icmp slt i32 %160, 80
  br i1 %161, label %167, label %162

162:                                              ; preds = %159
  store i32 8, ptr %22, align 4
  br label %182

163:                                              ; preds = %210, %207, %204, %201, %197, %190, %183, %154, %147, %140
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %12, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #9
  br label %214

167:                                              ; preds = %159
  %168 = load i32, ptr %23, align 4, !tbaa !13
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %169) #9
  %171 = load float, ptr %170, align 4, !tbaa !24
  %172 = load i32, ptr %23, align 4, !tbaa !13
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [80 x float], ptr %18, i64 0, i64 %173
  %175 = load float, ptr %174, align 4, !tbaa !24
  %176 = fcmp une float %171, %175
  br i1 %176, label %177, label %178

177:                                              ; preds = %167
  store i8 0, ptr %20, align 1, !tbaa !17
  store i32 8, ptr %22, align 4
  br label %182

178:                                              ; preds = %167
  br label %179

179:                                              ; preds = %178
  %180 = load i32, ptr %23, align 4, !tbaa !13
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %23, align 4, !tbaa !13
  br label %159, !llvm.loop !26

182:                                              ; preds = %177, %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %183

183:                                              ; preds = %182
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = invoke i64 @ggml_nelements(ptr noundef %184)
          to label %186 unwind label %163

186:                                              ; preds = %183
  %187 = trunc i64 %185 to i32
  %188 = load i8, ptr %20, align 1, !tbaa !17, !range !22, !noundef !23
  %189 = trunc i8 %188 to i1
  br i1 %189, label %190, label %196

190:                                              ; preds = %186
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  %192 = invoke i64 @ggml_nelements(ptr noundef %191)
          to label %193 unwind label %163

193:                                              ; preds = %190
  %194 = icmp eq i64 %192, 80
  br i1 %194, label %195, label %196

195:                                              ; preds = %193
  br label %197

196:                                              ; preds = %193, %186
  br label %197

197:                                              ; preds = %196, %195
  %198 = phi ptr [ @.str.7, %195 ], [ @.str.8, %196 ]
  %199 = getelementptr inbounds [16 x i8], ptr %198, i64 0, i64 0
  %200 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %187, ptr noundef %199)
          to label %201 unwind label %163

201:                                              ; preds = %197
  %202 = getelementptr inbounds %struct.test_model, ptr %2, i32 0, i32 4
  %203 = load ptr, ptr %202, align 8, !tbaa !27
  invoke void @ggml_free(ptr noundef %203)
          to label %204 unwind label %163

204:                                              ; preds = %201
  %205 = getelementptr inbounds %struct.test_model, ptr %2, i32 0, i32 3
  %206 = load ptr, ptr %205, align 8, !tbaa !28
  invoke void @ggml_backend_buffer_free(ptr noundef %206)
          to label %207 unwind label %163

207:                                              ; preds = %204
  %208 = getelementptr inbounds %struct.test_model, ptr %2, i32 0, i32 2
  %209 = load ptr, ptr %208, align 8, !tbaa !9
  invoke void @ggml_backend_free(ptr noundef %209)
          to label %210 unwind label %163

210:                                              ; preds = %207
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @ggml_gallocr_free(ptr noundef %211)
          to label %212 unwind label %163

212:                                              ; preds = %210
  store i32 0, ptr %1, align 4
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 160, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 320, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  call void @_ZNSt6vectorItSaItEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %2) #9
  %213 = load i32, ptr %1, align 4
  ret i32 %213

214:                                              ; preds = %163, %118
  call void @llvm.lifetime.end.p0(i64 160, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 320, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %215

215:                                              ; preds = %214, %114
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #9
  br label %216

216:                                              ; preds = %215, %110, %106
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  call void @_ZNSt6vectorItSaItEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  br label %217

217:                                              ; preds = %216, %102
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %2) #9
  br label %218

218:                                              ; preds = %217
  %219 = load ptr, ptr %12, align 8
  %220 = load i32, ptr %13, align 4
  %221 = insertvalue { ptr, i32 } poison, ptr %219, 0
  %222 = insertvalue { ptr, i32 } %221, i32 %220, 1
  resume { ptr, i32 } %222
}

declare void @ggml_time_init() #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10test_modelC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6 align 2

declare ptr @ggml_gallocr_new(ptr noundef) #3

declare ptr @ggml_backend_get_default_buffer_type(ptr noundef) #3

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

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

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

declare i32 @ggml_graph_n_nodes(ptr noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #8

declare ptr @ggml_get_name(ptr noundef) #3

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

declare i64 @ggml_nelements(ptr noundef) #3

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

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

declare void @ggml_backend_buffer_free(ptr noundef) #3

declare void @ggml_backend_free(ptr noundef) #3

declare void @ggml_gallocr_free(ptr noundef) #3

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress norecurse 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 #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 = { 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 #8 = { nounwind willreturn memory(read) "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 #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"_ZTS10test_model", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = distinct !{!21, !16}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!25, !25, i64 0}
!25 = !{!"float", !7, i64 0}
!26 = distinct !{!26, !16}
!27 = !{!10, !6, i64 32}
!28 = !{!10, !6, i64 24}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.test_model = type { ptr, ptr, ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@__func__.main = external hidden unnamed_addr constant [5 x i8], align 1
@__const.main.expected_conv1d = external hidden unnamed_addr constant [80 x float], align 16
@__const.main.expected_im2col = external hidden unnamed_addr constant [80 x i16], align 16
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10load_modelR10test_modelb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) local_unnamed_addr #0

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

; Function Attrs: mustprogress 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 #0 align 2

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) #1

; 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 void @_ZNSaItEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

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

declare i64 @ggml_nbytes(ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z11build_graphRK10test_model(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0

declare void @ggml_free(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z13compute_graphRK10test_modelP12ggml_gallocr(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %1 = alloca %struct.test_model, align 8
  %2 = alloca %"class.std::vector.0", align 8
  %3 = alloca %"class.std::allocator.2", align 1
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator", align 1
  tail call void @ggml_time_init()
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #8
  call void @_ZN10test_modelC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %1) #8
  call void @_Z10load_modelR10test_modelb(ptr noundef nonnull align 8 dereferenceable(40) %1, i1 noundef zeroext true)
  %6 = getelementptr inbounds i8, ptr %1, i64 16
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = call ptr @ggml_backend_get_default_buffer_type(ptr noundef %7)
  %9 = call ptr @ggml_gallocr_new(ptr noundef %8)
  %10 = call noundef ptr @_Z11build_graphRK10test_model(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %11 = call zeroext i1 @ggml_gallocr_reserve(ptr noundef %9, ptr noundef %10)
  %12 = call i64 @ggml_gallocr_get_buffer_size(ptr noundef %9, i32 noundef 0)
  %13 = load ptr, ptr @stderr, align 8, !tbaa !10
  %14 = uitofp i64 %12 to float
  %15 = fmul float %14, 0x3F50000000000000
  %16 = fmul float %15, 0x3F50000000000000
  %17 = fpext float %16 to double
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.main, double noundef %17) #9
  %19 = call noundef ptr @_Z13compute_graphRK10test_modelP12ggml_gallocr(ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef %9)
  %20 = call i32 @ggml_graph_n_nodes(ptr noundef %19)
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %34, %0
  %.049.lcssa = phi ptr [ null, %0 ], [ %.150, %34 ]
  %.047.lcssa = phi ptr [ null, %0 ], [ %.148, %34 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #8
  %22 = call i64 @ggml_nelements(ptr noundef %.049.lcssa)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #8
  call void @_ZNSaItEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  invoke void @_ZNSt6vectorItSaItEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %22, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %38 unwind label %54

.lr.ph:                                           ; preds = %0, %34
  %.04657 = phi i32 [ %35, %34 ], [ 0, %0 ]
  %.04756 = phi ptr [ %.148, %34 ], [ null, %0 ]
  %.04955 = phi ptr [ %.150, %34 ], [ null, %0 ]
  %23 = call ptr @ggml_graph_node(ptr noundef %19, i32 noundef %.04657)
  %24 = call ptr @ggml_get_name(ptr noundef %23)
  %25 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) @.str.2) #10
  %26 = icmp eq i32 %25, 0
  %27 = call ptr @ggml_graph_node(ptr noundef %19, i32 noundef %.04657)
  br i1 %26, label %34, label %28

28:                                               ; preds = %.lr.ph
  %29 = call ptr @ggml_get_name(ptr noundef %27)
  %30 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %29, ptr noundef nonnull dereferenceable(1) @.str.3) #10
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %34

32:                                               ; preds = %28
  %33 = call ptr @ggml_graph_node(ptr noundef %19, i32 noundef %.04657)
  br label %34

34:                                               ; preds = %.lr.ph, %32, %28
  %.150 = phi ptr [ %.04955, %32 ], [ %.04955, %28 ], [ %27, %.lr.ph ]
  %.148 = phi ptr [ %33, %32 ], [ %.04756, %28 ], [ %.04756, %.lr.ph ]
  %35 = add nuw nsw i32 %.04657, 1
  %36 = call i32 @ggml_graph_n_nodes(ptr noundef %19)
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %.lr.ph, label %._crit_edge, !llvm.loop !11

38:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorItED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  %39 = invoke i64 @ggml_nelements(ptr noundef %.047.lcssa)
          to label %40 unwind label %56

40:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %39, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %41 unwind label %58

41:                                               ; preds = %40
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  %42 = call noundef ptr @_ZNSt6vectorItSaItEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %43 = invoke i64 @ggml_nbytes(ptr noundef %.049.lcssa)
          to label %44 unwind label %60

44:                                               ; preds = %41
  invoke void @ggml_backend_tensor_get(ptr noundef %.049.lcssa, ptr noundef %42, i64 noundef 0, i64 noundef %43)
          to label %45 unwind label %60

45:                                               ; preds = %44
  %46 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %47 = invoke i64 @ggml_nbytes(ptr noundef %.047.lcssa)
          to label %48 unwind label %60

48:                                               ; preds = %45
  invoke void @ggml_backend_tensor_get(ptr noundef %.047.lcssa, ptr noundef %46, i64 noundef 0, i64 noundef %47)
          to label %49 unwind label %60

49:                                               ; preds = %48
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %51 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #8
  %52 = load i16, ptr %51, align 2, !tbaa !13
  %53 = load i16, ptr @__const.main.expected_im2col, align 16, !tbaa !13
  %.not64 = icmp eq i16 %52, %53
  br i1 %.not64, label %.lr.ph67, label %._crit_edge68

.lr.ph67:                                         ; preds = %49, %62
  %indvars.iv65 = phi i64 [ %indvars.iv.next, %62 ], [ 0, %49 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv65, 1
  %exitcond = icmp eq i64 %indvars.iv.next, 80
  br i1 %exitcond, label %._crit_edge68.loopexit, label %62, !llvm.loop !15

54:                                               ; preds = %._crit_edge
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorItED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #8
  br label %114

56:                                               ; preds = %38
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %113

58:                                               ; preds = %40
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  br label %113

60:                                               ; preds = %48, %45, %44, %41
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %112

62:                                               ; preds = %.lr.ph67
  %63 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv.next) #8
  %64 = load i16, ptr %63, align 2, !tbaa !13
  %65 = getelementptr inbounds [80 x i16], ptr @__const.main.expected_im2col, i64 0, i64 %indvars.iv.next
  %66 = load i16, ptr %65, align 2, !tbaa !13
  %.not = icmp eq i16 %64, %66
  br i1 %.not, label %.lr.ph67, label %._crit_edge68.loopexit, !llvm.loop !15

._crit_edge68.loopexit:                           ; preds = %62, %.lr.ph67
  %67 = icmp ugt i64 %indvars.iv65, 78
  br label %._crit_edge68

._crit_edge68:                                    ; preds = %._crit_edge68.loopexit, %49
  %.lcssa54 = phi i1 [ false, %49 ], [ %67, %._crit_edge68.loopexit ]
  %68 = invoke i64 @ggml_nelements(ptr noundef %.049.lcssa)
          to label %69 unwind label %83

69:                                               ; preds = %._crit_edge68
  %70 = trunc i64 %68 to i32
  br i1 %.lcssa54, label %71, label %75

71:                                               ; preds = %69
  %72 = invoke i64 @ggml_nelements(ptr noundef %.049.lcssa)
          to label %73 unwind label %83

73:                                               ; preds = %71
  %74 = icmp eq i64 %72, 240
  br i1 %74, label %76, label %75

75:                                               ; preds = %73, %69
  br label %76

76:                                               ; preds = %73, %75
  %77 = phi ptr [ @.str.8, %75 ], [ @.str.7, %73 ]
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %70, ptr noundef nonnull %77)
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #8
  %80 = load float, ptr %79, align 4, !tbaa !16
  %81 = load float, ptr @__const.main.expected_conv1d, align 16, !tbaa !16
  %82 = fcmp une float %80, %81
  br i1 %82, label %._crit_edge74, label %.lr.ph73

.lr.ph73:                                         ; preds = %76, %85
  %indvars.iv6171 = phi i64 [ %indvars.iv.next62, %85 ], [ 0, %76 ]
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv6171, 1
  %exitcond63 = icmp eq i64 %indvars.iv.next62, 80
  br i1 %exitcond63, label %._crit_edge74.loopexit, label %85, !llvm.loop !18

83:                                               ; preds = %110, %108, %105, %100, %95, %._crit_edge74, %71, %._crit_edge68
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %112

85:                                               ; preds = %.lr.ph73
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.next62) #8
  %87 = load float, ptr %86, align 4, !tbaa !16
  %88 = getelementptr inbounds [80 x float], ptr @__const.main.expected_conv1d, i64 0, i64 %indvars.iv.next62
  %89 = load float, ptr %88, align 4, !tbaa !16
  %90 = fcmp une float %87, %89
  br i1 %90, label %._crit_edge74.loopexit, label %.lr.ph73, !llvm.loop !18

._crit_edge74.loopexit:                           ; preds = %85, %.lr.ph73
  %91 = icmp ugt i64 %indvars.iv6171, 78
  br label %._crit_edge74

._crit_edge74:                                    ; preds = %._crit_edge74.loopexit, %76
  %.lcssa = phi i1 [ false, %76 ], [ %91, %._crit_edge74.loopexit ]
  %92 = invoke i64 @ggml_nelements(ptr noundef %.047.lcssa)
          to label %93 unwind label %83

93:                                               ; preds = %._crit_edge74
  %94 = trunc i64 %92 to i32
  br i1 %.lcssa, label %95, label %99

95:                                               ; preds = %93
  %96 = invoke i64 @ggml_nelements(ptr noundef %.047.lcssa)
          to label %97 unwind label %83

97:                                               ; preds = %95
  %98 = icmp eq i64 %96, 80
  br i1 %98, label %100, label %99

99:                                               ; preds = %97, %93
  br label %100

100:                                              ; preds = %97, %99
  %101 = phi ptr [ @.str.8, %99 ], [ @.str.7, %97 ]
  %102 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %94, ptr noundef nonnull %101)
  %103 = getelementptr inbounds i8, ptr %1, i64 32
  %104 = load ptr, ptr %103, align 8, !tbaa !19
  invoke void @ggml_free(ptr noundef %104)
          to label %105 unwind label %83

105:                                              ; preds = %100
  %106 = getelementptr inbounds i8, ptr %1, i64 24
  %107 = load ptr, ptr %106, align 8, !tbaa !20
  invoke void @ggml_backend_buffer_free(ptr noundef %107)
          to label %108 unwind label %83

108:                                              ; preds = %105
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @ggml_backend_free(ptr noundef %109)
          to label %110 unwind label %83

110:                                              ; preds = %108
  invoke void @ggml_gallocr_free(ptr noundef %9)
          to label %111 unwind label %83

111:                                              ; preds = %110
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNSt6vectorItSaItEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #8
  ret i32 0

112:                                              ; preds = %83, %60
  %.pn = phi { ptr, i32 } [ %84, %83 ], [ %61, %60 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  br label %113

113:                                              ; preds = %112, %58, %56
  %.pn.pn = phi { ptr, i32 } [ %.pn, %112 ], [ %59, %58 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNSt6vectorItSaItEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  br label %114

114:                                              ; preds = %113, %54
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %113 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn.pn.pn
}

declare void @ggml_time_init() local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10test_modelC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6 align 2

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

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

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

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

declare i32 @ggml_graph_n_nodes(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #7

declare ptr @ggml_get_name(ptr noundef) local_unnamed_addr #4

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

declare i64 @ggml_nelements(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 nounwind uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

declare void @ggml_backend_buffer_free(ptr noundef) local_unnamed_addr #4

declare void @ggml_backend_free(ptr noundef) local_unnamed_addr #4

declare void @ggml_gallocr_free(ptr noundef) local_unnamed_addr #4

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress norecurse 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 #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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 }
attributes #10 = { nounwind willreturn memory(read) }

!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, !7, i64 16}
!6 = !{!"_ZTS10test_model", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !8, i64 0}
!15 = distinct !{!15, !12}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !8, i64 0}
!18 = distinct !{!18, !12}
!19 = !{!6, !7, i64 32}
!20 = !{!6, !7, i64 24}


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