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

%struct.TfLitePaddingValues = type { i32, i32, i32, i32 }
%struct.TfLiteNode = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr }
%struct.TfLiteIntArray = type { i32, [0 x i32] }
%struct.TfLiteContext = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%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.TfLiteTensor = type { i32, %union.TfLitePtrUnion, ptr, %struct.TfLiteQuantizationParams, i32, i64, ptr, ptr, ptr, i32, i8, i8, %struct.TfLiteQuantization, ptr, ptr }
%union.TfLitePtrUnion = type { ptr }
%struct.TfLiteQuantizationParams = type { float, i32 }
%struct.TfLiteQuantization = type { i32, ptr }

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [132 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops5micro4conv15CalculateOpDataEP13TfLiteContextP10TfLiteNodePK16TfLiteConvParamsiiiiii10TfLiteTypePNS2_6OpDataE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, ptr noundef %10) #0 {
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i8, align 1
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %struct.TfLitePaddingValues, align 4
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !5
  store i32 %3, ptr %16, align 4, !tbaa !9
  store i32 %4, ptr %17, align 4, !tbaa !9
  store i32 %5, ptr %18, align 4, !tbaa !9
  store i32 %6, ptr %19, align 4, !tbaa !9
  store i32 %7, ptr %20, align 4, !tbaa !9
  store i32 %8, ptr %21, align 4, !tbaa !9
  store i32 %9, ptr %22, align 4, !tbaa !11
  store ptr %10, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  %34 = load ptr, ptr %14, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.TfLiteNode, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !13
  %37 = getelementptr inbounds %struct.TfLiteIntArray, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = icmp eq i32 %38, 3
  %40 = zext i1 %39 to i8
  store i8 %40, ptr %24, align 1, !tbaa !15
  br label %41

41:                                               ; preds = %11
  %42 = load i8, ptr %24, align 1, !tbaa !15, !range !17, !noundef !18
  %43 = trunc i8 %42 to i1
  br i1 %43, label %59, label %44

44:                                               ; preds = %41
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.TfLiteNode, ptr %45, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !13
  %48 = getelementptr inbounds %struct.TfLiteIntArray, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 4, !tbaa !9
  %50 = icmp eq i32 %49, 2
  br i1 %50, label %59, label %51

51:                                               ; preds = %44
  br label %52

52:                                               ; preds = %51
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.TfLiteContext, ptr %53, i32 0, i32 5
  %55 = load ptr, ptr %54, align 8, !tbaa !19
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  call void (ptr, ptr, ...) %55(ptr noundef %56, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 536, ptr noundef @.str.2)
  br label %57

57:                                               ; preds = %52
  br label %58

58:                                               ; preds = %57
  store i32 1, ptr %12, align 4
  store i32 1, ptr %25, align 4
  br label %172

59:                                               ; preds = %44, %41
  br label %60

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.TfLiteNode, ptr %63, i32 0, i32 1
  %65 = load ptr, ptr %64, align 8, !tbaa !22
  %66 = getelementptr inbounds %struct.TfLiteIntArray, ptr %65, i32 0, i32 0
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = icmp ne i32 %67, 1
  br i1 %68, label %69, label %82

69:                                               ; preds = %62
  br label %70

70:                                               ; preds = %69
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.TfLiteContext, ptr %71, i32 0, i32 5
  %73 = load ptr, ptr %72, align 8, !tbaa !19
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.TfLiteNode, ptr %75, i32 0, i32 1
  %77 = load ptr, ptr %76, align 8, !tbaa !22
  %78 = getelementptr inbounds %struct.TfLiteIntArray, ptr %77, i32 0, i32 0
  %79 = load i32, ptr %78, align 4, !tbaa !9
  call void (ptr, ptr, ...) %73(ptr noundef %74, ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 537, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef %79, i32 noundef 1)
  br label %80

80:                                               ; preds = %70
  br label %81

81:                                               ; preds = %80
  store i32 1, ptr %12, align 4
  store i32 1, ptr %25, align 4
  br label %172

82:                                               ; preds = %62
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %85 = load ptr, ptr %15, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.TfLiteConvParams, ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 4, !tbaa !23
  store i32 %87, ptr %26, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.TfLiteConvParams, ptr %88, i32 0, i32 2
  %90 = load i32, ptr %89, align 4, !tbaa !28
  %91 = load ptr, ptr %15, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.TfLiteConvParams, ptr %91, i32 0, i32 1
  %93 = load i32, ptr %92, align 4, !tbaa !29
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.TfLiteConvParams, ptr %94, i32 0, i32 5
  %96 = load i32, ptr %95, align 4, !tbaa !30
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.TfLiteConvParams, ptr %97, i32 0, i32 4
  %99 = load i32, ptr %98, align 4, !tbaa !31
  %100 = load i32, ptr %17, align 4, !tbaa !9
  %101 = load i32, ptr %16, align 4, !tbaa !9
  %102 = load i32, ptr %19, align 4, !tbaa !9
  %103 = load i32, ptr %18, align 4, !tbaa !9
  %104 = load i32, ptr %26, align 4, !tbaa !27
  %105 = call { i64, i64 } @_ZN6tflite25ComputePaddingHeightWidthEiiiiiiii13TfLitePaddingPiS1_(i32 noundef %90, i32 noundef %93, i32 noundef %96, i32 noundef %99, i32 noundef %100, i32 noundef %101, i32 noundef %102, i32 noundef %103, i32 noundef %104, ptr noundef %21, ptr noundef %20)
  %106 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 0
  %107 = extractvalue { i64, i64 } %105, 0
  store i64 %107, ptr %106, align 4
  %108 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 1
  %109 = extractvalue { i64, i64 } %105, 1
  store i64 %109, ptr %108, align 4
  %110 = load ptr, ptr %23, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.tflite::ops::micro::conv::OpData", ptr %110, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %111, ptr align 4 %27, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  %112 = load i32, ptr %22, align 4, !tbaa !11
  %113 = icmp ne i32 %112, 1
  br i1 %113, label %114, label %170

114:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %115, ptr noundef %116, i32 noundef 0)
  store ptr %117, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %118, ptr noundef %119, i32 noundef 1)
  store ptr %120, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = call noundef ptr @_ZN6tflite22GetOptionalInputTensorEP13TfLiteContextPK10TfLiteNodei(ptr noundef %121, ptr noundef %122, i32 noundef 2)
  store ptr %123, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %124 = load ptr, ptr %13, align 8, !tbaa !5
  %125 = load ptr, ptr %14, align 8, !tbaa !5
  %126 = call noundef ptr @_ZN6tflite9GetOutputEP13TfLiteContextPK10TfLiteNodei(ptr noundef %124, ptr noundef %125, i32 noundef 0)
  store ptr %126, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %127 = load ptr, ptr %29, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.TfLiteTensor, ptr %127, i32 0, i32 2
  %129 = load ptr, ptr %128, align 8, !tbaa !33
  %130 = getelementptr inbounds %struct.TfLiteIntArray, ptr %129, i32 0, i32 1
  %131 = getelementptr inbounds [0 x i32], ptr %130, i64 0, i64 0
  %132 = load i32, ptr %131, align 4, !tbaa !9
  store i32 %132, ptr %32, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = load ptr, ptr %28, align 8, !tbaa !5
  %136 = load ptr, ptr %29, align 8, !tbaa !5
  %137 = load ptr, ptr %30, align 8, !tbaa !5
  %138 = load ptr, ptr %31, align 8, !tbaa !5
  %139 = load ptr, ptr %15, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.TfLiteConvParams, ptr %139, i32 0, i32 3
  %141 = load ptr, ptr %23, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.tflite::ops::micro::conv::OpData", ptr %141, i32 0, i32 1
  %143 = load ptr, ptr %23, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.tflite::ops::micro::conv::OpData", ptr %143, i32 0, i32 2
  %145 = load ptr, ptr %23, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.tflite::ops::micro::conv::OpData", ptr %145, i32 0, i32 5
  %147 = load ptr, ptr %23, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.tflite::ops::micro::conv::OpData", ptr %147, i32 0, i32 6
  %149 = load ptr, ptr %23, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.tflite::ops::micro::conv::OpData", ptr %149, i32 0, i32 3
  %151 = load ptr, ptr %150, align 8, !tbaa !40
  %152 = load ptr, ptr %23, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.tflite::ops::micro::conv::OpData", ptr %152, i32 0, i32 4
  %154 = load ptr, ptr %153, align 8, !tbaa !43
  %155 = load i32, ptr %32, align 4, !tbaa !9
  %156 = call noundef i32 @_ZN6tflite37PopulateConvolutionQuantizationParamsEP13TfLiteContextPK12TfLiteTensorS4_S4_PS2_RK21TfLiteFusedActivationPiS9_S9_S9_S9_S9_i(ptr noundef %134, ptr noundef %135, ptr noundef %136, ptr noundef %137, ptr noundef %138, ptr noundef nonnull align 4 dereferenceable(4) %140, ptr noundef %142, ptr noundef %144, ptr noundef %146, ptr noundef %148, ptr noundef %151, ptr noundef %154, i32 noundef %155)
  store i32 %156, ptr %33, align 4, !tbaa !44
  %157 = load i32, ptr %33, align 4, !tbaa !44
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %161

159:                                              ; preds = %133
  %160 = load i32, ptr %33, align 4, !tbaa !44
  store i32 %160, ptr %12, align 4
  store i32 1, ptr %25, align 4
  br label %162

161:                                              ; preds = %133
  store i32 0, ptr %25, align 4
  br label %162

162:                                              ; preds = %161, %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  %163 = load i32, ptr %25, align 4
  switch i32 %163, label %167 [
    i32 0, label %164
  ]

164:                                              ; preds = %162
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  store i32 0, ptr %25, align 4
  br label %167

167:                                              ; preds = %166, %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  %168 = load i32, ptr %25, align 4
  switch i32 %168, label %171 [
    i32 0, label %169
  ]

169:                                              ; preds = %167
  br label %170

170:                                              ; preds = %169, %84
  store i32 0, ptr %12, align 4
  store i32 1, ptr %25, align 4
  br label %171

171:                                              ; preds = %170, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %172

172:                                              ; preds = %171, %81, %58
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  %173 = load i32, ptr %12, align 4
  ret i32 %173
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i64 } @_ZN6tflite25ComputePaddingHeightWidthEiiiiiiii13TfLitePaddingPiS1_(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6tflite22GetOptionalInputTensorEP13TfLiteContextPK10TfLiteNodei(ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6tflite9GetOutputEP13TfLiteContextPK10TfLiteNodei(ptr noundef, ptr noundef, i32 noundef) #4

declare noundef i32 @_ZN6tflite37PopulateConvolutionQuantizationParamsEP13TfLiteContextPK12TfLiteTensorS4_S4_PS2_RK21TfLiteFusedActivationPiS9_S9_S9_S9_S9_i(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #5

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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { "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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS10TfLiteType", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS10TfLiteNode", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !10, i64 56, !6, i64 64}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !6, i64 40}
!20 = !{!"_ZTS13TfLiteContext", !21, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !10, i64 72, !6, i64 80, !6, i64 88, !16, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152}
!21 = !{!"long", !7, i64 0}
!22 = !{!14, !6, i64 8}
!23 = !{!24, !25, i64 0}
!24 = !{!"_ZTS16TfLiteConvParams", !25, i64 0, !10, i64 4, !10, i64 8, !26, i64 12, !10, i64 16, !10, i64 20}
!25 = !{!"_ZTS13TfLitePadding", !7, i64 0}
!26 = !{!"_ZTS21TfLiteFusedActivation", !7, i64 0}
!27 = !{!25, !25, i64 0}
!28 = !{!24, !10, i64 8}
!29 = !{!24, !10, i64 4}
!30 = !{!24, !10, i64 20}
!31 = !{!24, !10, i64 16}
!32 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9}
!33 = !{!34, !6, i64 16}
!34 = !{!"_ZTS12TfLiteTensor", !12, i64 0, !7, i64 8, !6, i64 16, !35, i64 24, !37, i64 32, !21, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !10, i64 72, !16, i64 76, !16, i64 77, !38, i64 80, !6, i64 96, !6, i64 104}
!35 = !{!"_ZTS24TfLiteQuantizationParams", !36, i64 0, !10, i64 4}
!36 = !{!"float", !7, i64 0}
!37 = !{!"_ZTS20TfLiteAllocationType", !7, i64 0}
!38 = !{!"_ZTS18TfLiteQuantization", !39, i64 0, !6, i64 8}
!39 = !{!"_ZTS22TfLiteQuantizationType", !7, i64 0}
!40 = !{!41, !6, i64 24}
!41 = !{!"_ZTSN6tflite3ops5micro4conv6OpDataE", !42, i64 0, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 44}
!42 = !{!"_ZTS19TfLitePaddingValues", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!43 = !{!41, !6, i64 32}
!44 = !{!45, !45, i64 0}
!45 = !{!"_ZTS12TfLiteStatus", !7, i64 0}


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

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [132 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops5micro4conv15CalculateOpDataEP13TfLiteContextP10TfLiteNodePK16TfLiteConvParamsiiiiii10TfLiteTypePNS2_6OpDataE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, ptr noundef %10) local_unnamed_addr #0 {
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store i32 %7, ptr %12, align 4, !tbaa !5
  store i32 %8, ptr %13, align 4, !tbaa !5
  %14 = load ptr, ptr %1, align 8, !tbaa !9
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = and i32 %15, -2
  %switch = icmp eq i32 %16, 2
  br i1 %switch, label %20, label %17

17:                                               ; preds = %11
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  %19 = load ptr, ptr %18, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %19(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 536, ptr noundef nonnull @.str.2)
  br label %60

20:                                               ; preds = %11
  %21 = getelementptr inbounds i8, ptr %1, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !16
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %.not = icmp eq i32 %23, 1
  br i1 %.not, label %27, label %24

24:                                               ; preds = %20
  %25 = getelementptr inbounds i8, ptr %0, i64 40
  %26 = load ptr, ptr %25, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %26(ptr noundef %0, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 537, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef %23, i32 noundef 1)
  br label %60

27:                                               ; preds = %20
  %28 = load i32, ptr %2, align 4, !tbaa !17
  %29 = getelementptr inbounds i8, ptr %2, i64 8
  %30 = load i32, ptr %29, align 4, !tbaa !21
  %31 = getelementptr inbounds i8, ptr %2, i64 4
  %32 = load i32, ptr %31, align 4, !tbaa !22
  %33 = getelementptr inbounds i8, ptr %2, i64 20
  %34 = load i32, ptr %33, align 4, !tbaa !23
  %35 = getelementptr inbounds i8, ptr %2, i64 16
  %36 = load i32, ptr %35, align 4, !tbaa !24
  %37 = call { i64, i64 } @_ZN6tflite25ComputePaddingHeightWidthEiiiiiiii13TfLitePaddingPiS1_(i32 noundef %30, i32 noundef %32, i32 noundef %34, i32 noundef %36, i32 noundef %4, i32 noundef %3, i32 noundef %6, i32 noundef %5, i32 noundef %28, ptr noundef nonnull %13, ptr noundef nonnull %12)
  %38 = extractvalue { i64, i64 } %37, 0
  %39 = extractvalue { i64, i64 } %37, 1
  store i64 %38, ptr %10, align 8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  store i64 %39, ptr %.sroa.4.0..sroa_idx, align 8
  %.not50 = icmp eq i32 %9, 1
  br i1 %.not50, label %59, label %40

40:                                               ; preds = %27
  %41 = call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef nonnull %1, i32 noundef 0)
  %42 = call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef nonnull %1, i32 noundef 1)
  %43 = call noundef ptr @_ZN6tflite22GetOptionalInputTensorEP13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef nonnull %1, i32 noundef 2)
  %44 = call noundef ptr @_ZN6tflite9GetOutputEP13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef nonnull %1, i32 noundef 0)
  %45 = getelementptr inbounds i8, ptr %42, i64 16
  %46 = load ptr, ptr %45, align 8, !tbaa !25
  %47 = getelementptr inbounds i8, ptr %46, i64 4
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %2, i64 12
  %50 = getelementptr inbounds i8, ptr %10, i64 16
  %51 = getelementptr inbounds i8, ptr %10, i64 20
  %52 = getelementptr inbounds i8, ptr %10, i64 40
  %53 = getelementptr inbounds i8, ptr %10, i64 44
  %54 = getelementptr inbounds i8, ptr %10, i64 24
  %55 = load ptr, ptr %54, align 8, !tbaa !33
  %56 = getelementptr inbounds i8, ptr %10, i64 32
  %57 = load ptr, ptr %56, align 8, !tbaa !36
  %58 = call noundef i32 @_ZN6tflite37PopulateConvolutionQuantizationParamsEP13TfLiteContextPK12TfLiteTensorS4_S4_PS2_RK21TfLiteFusedActivationPiS9_S9_S9_S9_S9_i(ptr noundef %0, ptr noundef %41, ptr noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef nonnull align 4 dereferenceable(4) %49, ptr noundef nonnull %50, ptr noundef nonnull %51, ptr noundef nonnull %52, ptr noundef nonnull %53, ptr noundef %55, ptr noundef %57, i32 noundef %48)
  %.not51 = icmp eq i32 %58, 0
  br i1 %.not51, label %59, label %60

59:                                               ; preds = %40, %27
  br label %60

60:                                               ; preds = %59, %40, %24, %17
  %.2 = phi i32 [ 1, %24 ], [ 1, %17 ], [ 0, %59 ], [ %58, %40 ]
  ret i32 %.2
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i64 } @_ZN6tflite25ComputePaddingHeightWidthEiiiiiiii13TfLitePaddingPiS1_(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

declare noundef i32 @_ZN6tflite37PopulateConvolutionQuantizationParamsEP13TfLiteContextPK12TfLiteTensorS4_S4_PS2_RK21TfLiteFusedActivationPiS9_S9_S9_S9_S9_i(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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 = { 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 #2 = { 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 #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" }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS10TfLiteNode", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !6, i64 56, !11, i64 64}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !11, i64 40}
!13 = !{!"_ZTS13TfLiteContext", !14, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !6, i64 72, !11, i64 80, !11, i64 88, !15, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152}
!14 = !{!"long", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!10, !11, i64 8}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTS16TfLiteConvParams", !19, i64 0, !6, i64 4, !6, i64 8, !20, i64 12, !6, i64 16, !6, i64 20}
!19 = !{!"_ZTS13TfLitePadding", !7, i64 0}
!20 = !{!"_ZTS21TfLiteFusedActivation", !7, i64 0}
!21 = !{!18, !6, i64 8}
!22 = !{!18, !6, i64 4}
!23 = !{!18, !6, i64 20}
!24 = !{!18, !6, i64 16}
!25 = !{!26, !11, i64 16}
!26 = !{!"_ZTS12TfLiteTensor", !27, i64 0, !7, i64 8, !11, i64 16, !28, i64 24, !30, i64 32, !14, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !6, i64 72, !15, i64 76, !15, i64 77, !31, i64 80, !11, i64 96, !11, i64 104}
!27 = !{!"_ZTS10TfLiteType", !7, i64 0}
!28 = !{!"_ZTS24TfLiteQuantizationParams", !29, i64 0, !6, i64 4}
!29 = !{!"float", !7, i64 0}
!30 = !{!"_ZTS20TfLiteAllocationType", !7, i64 0}
!31 = !{!"_ZTS18TfLiteQuantization", !32, i64 0, !11, i64 8}
!32 = !{!"_ZTS22TfLiteQuantizationType", !7, i64 0}
!33 = !{!34, !11, i64 24}
!34 = !{!"_ZTSN6tflite3ops5micro4conv6OpDataE", !35, i64 0, !6, i64 16, !6, i64 20, !11, i64 24, !11, i64 32, !6, i64 40, !6, i64 44}
!35 = !{!"_ZTS19TfLitePaddingValues", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!36 = !{!34, !11, i64 32}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass