; LLVM IR from Seeed-Studio/Seeed_Arduino_edgeimpulse :: src/edge-impulse-sdk/tensorflow/lite/micro/kernels (conv)

; 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.tflite::RuntimeShape" = type { i32, %union.anon }
%union.anon = type { ptr, [16 x i8] }
%"struct.tflite::ConvParams" = type { i8, %"struct.tflite::PaddingValues", i16, i16, i16, i16, i32, i32, i32, i32, i32, i32, i32, float, float }
%"struct.tflite::PaddingValues" = type { i16, i16, i16, i16 }
%struct.TfLiteConvParams = type { i32, i32, i32, i32, i32, i32 }
%"struct.tflite::ops::micro::conv::OpData" = type { %struct.TfLitePaddingValues, i32, i32, ptr, ptr, i32, i32 }
%struct.TfLitePaddingValues = type { i32, i32, i32, i32 }

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZN6tflite3ops5micro4conv18RuntimePaddingTypeE13TfLitePadding(i32 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind noalias writable sret(%"class.tflite::RuntimeShape") align 8, ptr noundef) #2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6tflite3ops5micro4conv9EvalFloatEP13TfLiteContextP10TfLiteNodeP16TfLiteConvParamsRKNS2_6OpDataEPK12TfLiteTensorSE_SE_PSC_SF_SF_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #4 personality ptr @__gxx_personality_v0 {
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca %"struct.tflite::ConvParams", align 4
  %24 = alloca %"class.tflite::RuntimeShape", align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.tflite::RuntimeShape", align 8
  %28 = alloca %"class.tflite::RuntimeShape", align 8
  %29 = alloca %"class.tflite::RuntimeShape", align 8
  %30 = alloca %"class.tflite::RuntimeShape", align 8
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  store ptr %9, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.TfLiteConvParams, ptr %31, i32 0, i32 3
  %33 = load i32, ptr %32, align 4, !tbaa !9
  call void @_ZN6tflite24CalculateActivationRangeIfEEv21TfLiteFusedActivationPT_S3_(i32 noundef %33, ptr noundef %21, ptr noundef %22)
  call void @llvm.lifetime.start.p0(i64 56, ptr %23) #5
  %34 = load ptr, ptr %13, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.TfLiteConvParams, ptr %34, i32 0, i32 0
  %36 = load i32, ptr %35, align 4, !tbaa !14
  %37 = call noundef zeroext i8 @_ZN6tflite3ops5micro4conv18RuntimePaddingTypeE13TfLitePadding(i32 noundef %36)
  %38 = getelementptr inbounds %"struct.tflite::ConvParams", ptr %23, i32 0, i32 0
  store i8 %37, ptr %38, align 4, !tbaa !15
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.tflite::ops::micro::conv::OpData", ptr %39, i32 0, i32 0
  %41 = getelementptr inbounds %struct.TfLitePaddingValues, ptr %40, i32 0, i32 0
  %42 = load i32, ptr %41, align 8, !tbaa !21
  %43 = trunc i32 %42 to i16
  %44 = getelementptr inbounds %"struct.tflite::ConvParams", ptr %23, i32 0, i32 1
  %45 = getelementptr inbounds %"struct.tflite::PaddingValues", ptr %44, i32 0, i32 0
  store i16 %43, ptr %45, align 2, !tbaa !24
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.tflite::ops::micro::conv::OpData", ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds %struct.TfLitePaddingValues, ptr %47, i32 0, i32 1
  %49 = load i32, ptr %48, align 4, !tbaa !25
  %50 = trunc i32 %49 to i16
  %51 = getelementptr inbounds %"struct.tflite::ConvParams", ptr %23, i32 0, i32 1
  %52 = getelementptr inbounds %"struct.tflite::PaddingValues", ptr %51, i32 0, i32 1
  store i16 %50, ptr %52, align 2, !tbaa !26
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.TfLiteConvParams, ptr %53, i32 0, i32 1
  %55 = load i32, ptr %54, align 4, !tbaa !27
  %56 = trunc i32 %55 to i16
  %57 = getelementptr inbounds %"struct.tflite::ConvParams", ptr %23, i32 0, i32 2
  store i16 %56, ptr %57, align 2, !tbaa !28
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.TfLiteConvParams, ptr %58, i32 0, i32 2
  %60 = load i32, ptr %59, align 4, !tbaa !29
  %61 = trunc i32 %60 to i16
  %62 = getelementptr inbounds %"struct.tflite::ConvParams", ptr %23, i32 0, i32 3
  store i16 %61, ptr %62, align 4, !tbaa !30
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.TfLiteConvParams, ptr %63, i32 0, i32 4
  %65 = load i32, ptr %64, align 4, !tbaa !31
  %66 = trunc i32 %65 to i16
  %67 = getelementptr inbounds %"struct.tflite::ConvParams", ptr %23, i32 0, i32 4
  store i16 %66, ptr %67, align 2, !tbaa !32
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.TfLiteConvParams, ptr %68, i32 0, i32 5
  %70 = load i32, ptr %69, align 4, !tbaa !33
  %71 = trunc i32 %70 to i16
  %72 = getelementptr inbounds %"struct.tflite::ConvParams", ptr %23, i32 0, i32 5
  store i16 %71, ptr %72, align 4, !tbaa !34
  %73 = load float, ptr %21, align 4, !tbaa !35
  %74 = getelementptr inbounds %"struct.tflite::ConvParams", ptr %23, i32 0, i32 13
  store float %73, ptr %74, align 4, !tbaa !36
  %75 = load float, ptr %22, align 4, !tbaa !35
  %76 = getelementptr inbounds %"struct.tflite::ConvParams", ptr %23, i32 0, i32 14
  store float %75, ptr %76, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #5
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind writable sret(%"class.tflite::RuntimeShape") align 8 %24, ptr noundef %77)
  %78 = load ptr, ptr %15, align 8, !tbaa !5
  %79 = invoke noundef ptr @_ZN6tflite13GetTensorDataIfEEPKT_PK12TfLiteTensor(ptr noundef %78)
          to label %80 unwind label %102

80:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #5
  %81 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind writable sret(%"class.tflite::RuntimeShape") align 8 %27, ptr noundef %81)
          to label %82 unwind label %106

82:                                               ; preds = %80
  %83 = load ptr, ptr %16, align 8, !tbaa !5
  %84 = invoke noundef ptr @_ZN6tflite13GetTensorDataIfEEPKT_PK12TfLiteTensor(ptr noundef %83)
          to label %85 unwind label %110

85:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #5
  %86 = load ptr, ptr %17, align 8, !tbaa !5
  invoke void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind writable sret(%"class.tflite::RuntimeShape") align 8 %28, ptr noundef %86)
          to label %87 unwind label %114

87:                                               ; preds = %85
  %88 = load ptr, ptr %17, align 8, !tbaa !5
  %89 = invoke noundef ptr @_ZN6tflite13GetTensorDataIfEEPKT_PK12TfLiteTensor(ptr noundef %88)
          to label %90 unwind label %118

90:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #5
  %91 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind writable sret(%"class.tflite::RuntimeShape") align 8 %29, ptr noundef %91)
          to label %92 unwind label %122

92:                                               ; preds = %90
  %93 = load ptr, ptr %20, align 8, !tbaa !5
  %94 = invoke noundef ptr @_ZN6tflite13GetTensorDataIfEEPT_P12TfLiteTensor(ptr noundef %93)
          to label %95 unwind label %126

95:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #5
  %96 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind writable sret(%"class.tflite::RuntimeShape") align 8 %30, ptr noundef %96)
          to label %97 unwind label %130

97:                                               ; preds = %95
  %98 = load ptr, ptr %18, align 8, !tbaa !5
  %99 = invoke noundef ptr @_ZN6tflite13GetTensorDataIfEEPT_P12TfLiteTensor(ptr noundef %98)
          to label %100 unwind label %134

100:                                              ; preds = %97
  invoke void @_ZN6tflite13reference_ops4ConvERKNS_10ConvParamsERKNS_12RuntimeShapeEPKfS6_S8_S6_S8_S6_PfS6_S9_(ptr noundef nonnull align 4 dereferenceable(56) %23, ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef %79, ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef %84, ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef %89, ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef %94, ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef %99)
          to label %101 unwind label %134

101:                                              ; preds = %100
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #5
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #5
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #5
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  ret void

102:                                              ; preds = %10
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %25, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %26, align 4
  br label %145

106:                                              ; preds = %80
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %25, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %26, align 4
  br label %144

110:                                              ; preds = %82
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %25, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %26, align 4
  br label %143

114:                                              ; preds = %85
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %25, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %26, align 4
  br label %142

118:                                              ; preds = %87
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %25, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %26, align 4
  br label %141

122:                                              ; preds = %90
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %25, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %26, align 4
  br label %140

126:                                              ; preds = %92
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %25, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %26, align 4
  br label %139

130:                                              ; preds = %95
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %25, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %26, align 4
  br label %138

134:                                              ; preds = %100, %97
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %25, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %26, align 4
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #5
  br label %138

138:                                              ; preds = %134, %130
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #5
  br label %139

139:                                              ; preds = %138, %126
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #5
  br label %140

140:                                              ; preds = %139, %122
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #5
  br label %141

141:                                              ; preds = %140, %118
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  br label %142

142:                                              ; preds = %141, %114
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  br label %143

143:                                              ; preds = %142, %110
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #5
  br label %144

144:                                              ; preds = %143, %106
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #5
  br label %145

145:                                              ; preds = %144, %102
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %146

146:                                              ; preds = %145
  %147 = load ptr, ptr %25, align 8
  %148 = load i32, ptr %26, align 4
  %149 = insertvalue { ptr, i32 } poison, ptr %147, 0
  %150 = insertvalue { ptr, i32 } %149, i32 %148, 1
  resume { ptr, i32 } %150
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops4ConvERKNS_10ConvParamsERKNS_12RuntimeShapeEPKfS6_S8_S6_S8_S6_PfS6_S9_(ptr noundef nonnull align 4 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #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 }

!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, !13, i64 12}
!10 = !{!"_ZTS16TfLiteConvParams", !11, i64 0, !12, i64 4, !12, i64 8, !13, i64 12, !12, i64 16, !12, i64 20}
!11 = !{!"_ZTS13TfLitePadding", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS21TfLiteFusedActivation", !7, i64 0}
!14 = !{!10, !11, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTSN6tflite10ConvParamsE", !17, i64 0, !18, i64 2, !19, i64 10, !19, i64 12, !19, i64 14, !19, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !20, i64 48, !20, i64 52}
!17 = !{!"_ZTSN6tflite11PaddingTypeE", !7, i64 0}
!18 = !{!"_ZTSN6tflite13PaddingValuesE", !19, i64 0, !19, i64 2, !19, i64 4, !19, i64 6}
!19 = !{!"short", !7, i64 0}
!20 = !{!"float", !7, i64 0}
!21 = !{!22, !12, i64 0}
!22 = !{!"_ZTSN6tflite3ops5micro4conv6OpDataE", !23, i64 0, !12, i64 16, !12, i64 20, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 44}
!23 = !{!"_ZTS19TfLitePaddingValues", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!24 = !{!16, !19, i64 2}
!25 = !{!22, !12, i64 4}
!26 = !{!16, !19, i64 4}
!27 = !{!10, !12, i64 4}
!28 = !{!16, !19, i64 10}
!29 = !{!10, !12, i64 8}
!30 = !{!16, !19, i64 12}
!31 = !{!10, !12, i64 16}
!32 = !{!16, !19, i64 14}
!33 = !{!10, !12, i64 20}
!34 = !{!16, !19, i64 16}
!35 = !{!20, !20, i64 0}
!36 = !{!16, !20, i64 48}
!37 = !{!16, !20, i64 52}


; 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.tflite::RuntimeShape" = type { i32, %union.anon }
%union.anon = type { ptr, [16 x i8] }
%"struct.tflite::ConvParams" = type { i8, %"struct.tflite::PaddingValues", i16, i16, i16, i16, i32, i32, i32, i32, i32, i32, i32, float, float }
%"struct.tflite::PaddingValues" = type { i16, i16, i16, i16 }

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZN6tflite3ops5micro4conv18RuntimePaddingTypeE13TfLitePadding(i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind noalias writable sret(%"class.tflite::RuntimeShape") align 8, ptr noundef) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6tflite3ops5micro4conv9EvalFloatEP13TfLiteContextP10TfLiteNodeP16TfLiteConvParamsRKNS2_6OpDataEPK12TfLiteTensorSE_SE_PSC_SF_SF_(ptr nocapture noundef readnone %0, ptr nocapture noundef readnone %1, ptr nocapture noundef readonly %2, ptr nocapture noundef nonnull readonly align 8 dereferenceable(48) %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr nocapture noundef readnone %8, ptr noundef %9) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca %"struct.tflite::ConvParams", align 4
  %14 = alloca %"class.tflite::RuntimeShape", align 8
  %15 = alloca %"class.tflite::RuntimeShape", align 8
  %16 = alloca %"class.tflite::RuntimeShape", align 8
  %17 = alloca %"class.tflite::RuntimeShape", align 8
  %18 = alloca %"class.tflite::RuntimeShape", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %19 = getelementptr inbounds i8, ptr %2, i64 12
  %20 = load i32, ptr %19, align 4, !tbaa !5
  call void @_ZN6tflite24CalculateActivationRangeIfEEv21TfLiteFusedActivationPT_S3_(i32 noundef %20, ptr noundef nonnull %11, ptr noundef nonnull %12)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %13) #5
  %21 = load i32, ptr %2, align 4, !tbaa !12
  %22 = call noundef zeroext i8 @_ZN6tflite3ops5micro4conv18RuntimePaddingTypeE13TfLitePadding(i32 noundef %21)
  store i8 %22, ptr %13, align 4, !tbaa !13
  %23 = getelementptr inbounds i8, ptr %13, i64 2
  %24 = load <2 x i32>, ptr %3, align 8, !tbaa !19
  %25 = trunc <2 x i32> %24 to <2 x i16>
  store <2 x i16> %25, ptr %23, align 2, !tbaa !20
  %26 = getelementptr inbounds i8, ptr %2, i64 4
  %27 = getelementptr inbounds i8, ptr %13, i64 10
  %28 = load <2 x i32>, ptr %26, align 4, !tbaa !19
  %29 = trunc <2 x i32> %28 to <2 x i16>
  store <2 x i16> %29, ptr %27, align 2, !tbaa !20
  %30 = getelementptr inbounds i8, ptr %2, i64 16
  %31 = getelementptr inbounds i8, ptr %13, i64 14
  %32 = load <2 x i32>, ptr %30, align 4, !tbaa !19
  %33 = trunc <2 x i32> %32 to <2 x i16>
  store <2 x i16> %33, ptr %31, align 2, !tbaa !20
  %34 = load float, ptr %11, align 4, !tbaa !21
  %35 = getelementptr inbounds i8, ptr %13, i64 48
  store float %34, ptr %35, align 4, !tbaa !22
  %36 = load float, ptr %12, align 4, !tbaa !21
  %37 = getelementptr inbounds i8, ptr %13, i64 52
  store float %36, ptr %37, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #5
  call void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind nonnull writable sret(%"class.tflite::RuntimeShape") align 8 %14, ptr noundef %4)
  %38 = call noundef ptr @_ZN6tflite13GetTensorDataIfEEPKT_PK12TfLiteTensor(ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #5
  invoke void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind nonnull writable sret(%"class.tflite::RuntimeShape") align 8 %15, ptr noundef %5)
          to label %39 unwind label %48

39:                                               ; preds = %10
  %40 = call noundef ptr @_ZN6tflite13GetTensorDataIfEEPKT_PK12TfLiteTensor(ptr noundef %5)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #5
  invoke void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind nonnull writable sret(%"class.tflite::RuntimeShape") align 8 %16, ptr noundef %6)
          to label %41 unwind label %50

41:                                               ; preds = %39
  %42 = call noundef ptr @_ZN6tflite13GetTensorDataIfEEPKT_PK12TfLiteTensor(ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #5
  invoke void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind nonnull writable sret(%"class.tflite::RuntimeShape") align 8 %17, ptr noundef %9)
          to label %43 unwind label %52

43:                                               ; preds = %41
  %44 = call noundef ptr @_ZN6tflite13GetTensorDataIfEEPT_P12TfLiteTensor(ptr noundef %9)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #5
  invoke void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind nonnull writable sret(%"class.tflite::RuntimeShape") align 8 %18, ptr noundef %7)
          to label %45 unwind label %54

45:                                               ; preds = %43
  %46 = call noundef ptr @_ZN6tflite13GetTensorDataIfEEPT_P12TfLiteTensor(ptr noundef %7)
  invoke void @_ZN6tflite13reference_ops4ConvERKNS_10ConvParamsERKNS_12RuntimeShapeEPKfS6_S8_S6_S8_S6_PfS6_S9_(ptr noundef nonnull align 4 dereferenceable(56) %13, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef %38, ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef %40, ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef %42, ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef %44, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef %46)
          to label %47 unwind label %56

47:                                               ; preds = %45
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #5
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #5
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #5
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  ret void

48:                                               ; preds = %10
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %61

50:                                               ; preds = %39
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %60

52:                                               ; preds = %41
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %59

54:                                               ; preds = %43
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %58

56:                                               ; preds = %45
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  br label %58

58:                                               ; preds = %56, %54
  %.pn = phi { ptr, i32 } [ %57, %56 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #5
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  br label %59

59:                                               ; preds = %58, %52
  %.pn.pn = phi { ptr, i32 } [ %.pn, %58 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  br label %60

60:                                               ; preds = %59, %50
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %59 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #5
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br label %61

61:                                               ; preds = %60, %48
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %60 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #5
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops4ConvERKNS_10ConvParamsERKNS_12RuntimeShapeEPKfS6_S8_S6_S8_S6_PfS6_S9_(ptr noundef nonnull align 4 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #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 }

!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, !11, i64 12}
!6 = !{!"_ZTS16TfLiteConvParams", !7, i64 0, !10, i64 4, !10, i64 8, !11, i64 12, !10, i64 16, !10, i64 20}
!7 = !{!"_ZTS13TfLitePadding", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS21TfLiteFusedActivation", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN6tflite10ConvParamsE", !15, i64 0, !16, i64 2, !17, i64 10, !17, i64 12, !17, i64 14, !17, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !18, i64 48, !18, i64 52}
!15 = !{!"_ZTSN6tflite11PaddingTypeE", !8, i64 0}
!16 = !{!"_ZTSN6tflite13PaddingValuesE", !17, i64 0, !17, i64 2, !17, i64 4, !17, i64 6}
!17 = !{!"short", !8, i64 0}
!18 = !{!"float", !8, i64 0}
!19 = !{!10, !10, i64 0}
!20 = !{!17, !17, i64 0}
!21 = !{!18, !18, i64 0}
!22 = !{!14, !18, i64 48}
!23 = !{!14, !18, i64 52}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass