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

; 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.tflite::ops::micro::sub::OpData" = type { i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, 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 }
%struct.TfLiteSubParams = type { i32 }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops5micro3sub15CalculateOpDataEP13TfLiteContextP15TfLiteSubParamsPK12TfLiteTensorS9_PS7_PNS2_6OpDataE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca float, align 4
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %20 = load ptr, ptr %10, align 8, !tbaa !5
  %21 = load ptr, ptr %11, align 8, !tbaa !5
  %22 = call noundef zeroext i1 @_ZN6tflite14HaveSameShapesEPK12TfLiteTensorS2_(ptr noundef %20, ptr noundef %21)
  %23 = xor i1 %22, true
  %24 = load ptr, ptr %13, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.tflite::ops::micro::sub::OpData", ptr %24, i32 0, i32 0
  %26 = zext i1 %23 to i8
  store i8 %26, ptr %25, align 4, !tbaa !9
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.TfLiteTensor, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %28, align 8, !tbaa !13
  %30 = icmp eq i32 %29, 3
  br i1 %30, label %36, label %31

31:                                               ; preds = %6
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.TfLiteTensor, ptr %32, i32 0, i32 0
  %34 = load i32, ptr %33, align 8, !tbaa !13
  %35 = icmp eq i32 %34, 9
  br i1 %35, label %36, label %134

36:                                               ; preds = %31, %6
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.TfLiteTensor, ptr %37, i32 0, i32 3
  %39 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 4, !tbaa !22
  %41 = sub nsw i32 0, %40
  %42 = load ptr, ptr %13, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.tflite::ops::micro::sub::OpData", ptr %42, i32 0, i32 10
  store i32 %41, ptr %43, align 4, !tbaa !23
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.TfLiteTensor, ptr %44, i32 0, i32 3
  %46 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 4, !tbaa !22
  %48 = sub nsw i32 0, %47
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.tflite::ops::micro::sub::OpData", ptr %49, i32 0, i32 11
  store i32 %48, ptr %50, align 4, !tbaa !24
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.TfLiteTensor, ptr %51, i32 0, i32 3
  %53 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %52, i32 0, i32 1
  %54 = load i32, ptr %53, align 4, !tbaa !22
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.tflite::ops::micro::sub::OpData", ptr %55, i32 0, i32 12
  store i32 %54, ptr %56, align 4, !tbaa !25
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.tflite::ops::micro::sub::OpData", ptr %57, i32 0, i32 9
  store i32 20, ptr %58, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.TfLiteTensor, ptr %59, i32 0, i32 3
  %61 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.TfLiteTensor, ptr %62, i32 0, i32 3
  %64 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %63, i32 0, i32 0
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %61, ptr noundef nonnull align 4 dereferenceable(4) %64)
  %66 = load float, ptr %65, align 4, !tbaa !27
  %67 = fmul float 2.000000e+00, %66
  store float %67, ptr %14, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.TfLiteTensor, ptr %68, i32 0, i32 3
  %70 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %69, i32 0, i32 0
  %71 = load float, ptr %70, align 8, !tbaa !28
  %72 = load float, ptr %14, align 4, !tbaa !27
  %73 = fdiv float %71, %72
  %74 = fpext float %73 to double
  store double %74, ptr %15, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.TfLiteTensor, ptr %75, i32 0, i32 3
  %77 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %76, i32 0, i32 0
  %78 = load float, ptr %77, align 8, !tbaa !28
  %79 = load float, ptr %14, align 4, !tbaa !27
  %80 = fdiv float %78, %79
  %81 = fpext float %80 to double
  store double %81, ptr %16, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %82 = load float, ptr %14, align 4, !tbaa !27
  %83 = load ptr, ptr %13, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.tflite::ops::micro::sub::OpData", ptr %83, i32 0, i32 9
  %85 = load i32, ptr %84, align 4, !tbaa !26
  %86 = shl i32 1, %85
  %87 = sitofp i32 %86 to float
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.TfLiteTensor, ptr %88, i32 0, i32 3
  %90 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %89, i32 0, i32 0
  %91 = load float, ptr %90, align 8, !tbaa !28
  %92 = fmul float %87, %91
  %93 = fdiv float %82, %92
  %94 = fpext float %93 to double
  store double %94, ptr %17, align 8, !tbaa !29
  %95 = load double, ptr %15, align 8, !tbaa !29
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.tflite::ops::micro::sub::OpData", ptr %96, i32 0, i32 5
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.tflite::ops::micro::sub::OpData", ptr %98, i32 0, i32 1
  call void @_ZN6tflite35QuantizeMultiplierSmallerThanOneExpEdPiS0_(double noundef %95, ptr noundef %97, ptr noundef %99)
  %100 = load double, ptr %16, align 8, !tbaa !29
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.tflite::ops::micro::sub::OpData", ptr %101, i32 0, i32 6
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.tflite::ops::micro::sub::OpData", ptr %103, i32 0, i32 2
  call void @_ZN6tflite35QuantizeMultiplierSmallerThanOneExpEdPiS0_(double noundef %100, ptr noundef %102, ptr noundef %104)
  %105 = load double, ptr %17, align 8, !tbaa !29
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.tflite::ops::micro::sub::OpData", ptr %106, i32 0, i32 7
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.tflite::ops::micro::sub::OpData", ptr %108, i32 0, i32 8
  call void @_ZN6tflite35QuantizeMultiplierSmallerThanOneExpEdPiS0_(double noundef %105, ptr noundef %107, ptr noundef %109)
  br label %110

110:                                              ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.TfLiteSubParams, ptr %112, i32 0, i32 0
  %114 = load i32, ptr %113, align 4, !tbaa !31
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = load ptr, ptr %13, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.tflite::ops::micro::sub::OpData", ptr %116, i32 0, i32 3
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.tflite::ops::micro::sub::OpData", ptr %118, i32 0, i32 4
  %120 = call noundef i32 @_ZN6tflite33CalculateActivationRangeQuantizedEP13TfLiteContext21TfLiteFusedActivationP12TfLiteTensorPiS5_(ptr noundef %111, i32 noundef %114, ptr noundef %115, ptr noundef %117, ptr noundef %119)
  store i32 %120, ptr %18, align 4, !tbaa !34
  %121 = load i32, ptr %18, align 4, !tbaa !34
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %125

123:                                              ; preds = %110
  %124 = load i32, ptr %18, align 4, !tbaa !34
  store i32 %124, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %126

125:                                              ; preds = %110
  store i32 0, ptr %19, align 4
  br label %126

126:                                              ; preds = %125, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  %127 = load i32, ptr %19, align 4
  switch i32 %127, label %131 [
    i32 0, label %128
  ]

128:                                              ; preds = %126
  br label %129

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129
  store i32 0, ptr %19, align 4
  br label %131

131:                                              ; preds = %130, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %132 = load i32, ptr %19, align 4
  switch i32 %132, label %137 [
    i32 0, label %133
    i32 1, label %135
  ]

133:                                              ; preds = %131
  br label %134

134:                                              ; preds = %133, %31
  store i32 0, ptr %7, align 4
  br label %135

135:                                              ; preds = %134, %131
  %136 = load i32, ptr %7, align 4
  ret i32 %136

137:                                              ; preds = %131
  unreachable
}

declare noundef zeroext i1 @_ZN6tflite14HaveSameShapesEPK12TfLiteTensorS2_(ptr noundef, ptr noundef) #1

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

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

declare void @_ZN6tflite35QuantizeMultiplierSmallerThanOneExpEdPiS0_(double noundef, ptr noundef, ptr noundef) #1

declare noundef i32 @_ZN6tflite33CalculateActivationRangeQuantizedEP13TfLiteContext21TfLiteFusedActivationP12TfLiteTensorPiS5_(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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, !11, i64 0}
!10 = !{!"_ZTSN6tflite3ops5micro3sub6OpDataE", !11, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS12TfLiteTensor", !15, i64 0, !7, i64 8, !6, i64 16, !16, i64 24, !18, i64 32, !19, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !12, i64 72, !11, i64 76, !11, i64 77, !20, i64 80, !6, i64 96, !6, i64 104}
!15 = !{!"_ZTS10TfLiteType", !7, i64 0}
!16 = !{!"_ZTS24TfLiteQuantizationParams", !17, i64 0, !12, i64 4}
!17 = !{!"float", !7, i64 0}
!18 = !{!"_ZTS20TfLiteAllocationType", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTS18TfLiteQuantization", !21, i64 0, !6, i64 8}
!21 = !{!"_ZTS22TfLiteQuantizationType", !7, i64 0}
!22 = !{!14, !12, i64 28}
!23 = !{!10, !12, i64 40}
!24 = !{!10, !12, i64 44}
!25 = !{!10, !12, i64 48}
!26 = !{!10, !12, i64 36}
!27 = !{!17, !17, i64 0}
!28 = !{!14, !17, i64 24}
!29 = !{!30, !30, i64 0}
!30 = !{!"double", !7, i64 0}
!31 = !{!32, !33, i64 0}
!32 = !{!"_ZTS15TfLiteSubParams", !33, i64 0}
!33 = !{!"_ZTS21TfLiteFusedActivation", !7, i64 0}
!34 = !{!35, !35, i64 0}
!35 = !{!"_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"

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops5micro3sub15CalculateOpDataEP13TfLiteContextP15TfLiteSubParamsPK12TfLiteTensorS9_PS7_PNS2_6OpDataE(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
  %7 = tail call noundef zeroext i1 @_ZN6tflite14HaveSameShapesEPK12TfLiteTensorS2_(ptr noundef %2, ptr noundef %3)
  %8 = xor i1 %7, true
  %9 = zext i1 %8 to i8
  store i8 %9, ptr %5, align 4, !tbaa !5
  %10 = load i32, ptr %4, align 8, !tbaa !11
  switch i32 %10, label %53 [
    i32 3, label %11
    i32 9, label %11
  ]

11:                                               ; preds = %6, %6
  %12 = getelementptr inbounds i8, ptr %2, i64 24
  %13 = getelementptr inbounds i8, ptr %2, i64 28
  %14 = load i32, ptr %13, align 4, !tbaa !21
  %15 = sub nsw i32 0, %14
  %16 = getelementptr inbounds i8, ptr %5, i64 40
  store i32 %15, ptr %16, align 4, !tbaa !22
  %17 = getelementptr inbounds i8, ptr %3, i64 24
  %18 = getelementptr inbounds i8, ptr %3, i64 28
  %19 = load i32, ptr %18, align 4, !tbaa !21
  %20 = sub nsw i32 0, %19
  %21 = getelementptr inbounds i8, ptr %5, i64 44
  store i32 %20, ptr %21, align 4, !tbaa !23
  %22 = getelementptr inbounds i8, ptr %4, i64 24
  %23 = getelementptr inbounds i8, ptr %4, i64 28
  %24 = load i32, ptr %23, align 4, !tbaa !21
  %25 = getelementptr inbounds i8, ptr %5, i64 48
  store i32 %24, ptr %25, align 4, !tbaa !24
  %26 = getelementptr inbounds i8, ptr %5, i64 36
  store i32 20, ptr %26, align 4, !tbaa !25
  %27 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %28 = load float, ptr %27, align 4, !tbaa !26
  %29 = fmul float %28, 2.000000e+00
  %30 = load float, ptr %12, align 8, !tbaa !27
  %31 = fdiv float %30, %29
  %32 = fpext float %31 to double
  %33 = load float, ptr %17, align 8, !tbaa !27
  %34 = fdiv float %33, %29
  %35 = fpext float %34 to double
  %36 = load i32, ptr %26, align 4, !tbaa !25
  %37 = shl nuw i32 1, %36
  %38 = sitofp i32 %37 to float
  %39 = load float, ptr %22, align 8, !tbaa !27
  %40 = fmul float %39, %38
  %41 = fdiv float %29, %40
  %42 = fpext float %41 to double
  %43 = getelementptr inbounds i8, ptr %5, i64 20
  %44 = getelementptr inbounds i8, ptr %5, i64 4
  tail call void @_ZN6tflite35QuantizeMultiplierSmallerThanOneExpEdPiS0_(double noundef %32, ptr noundef nonnull %43, ptr noundef nonnull %44)
  %45 = getelementptr inbounds i8, ptr %5, i64 24
  %46 = getelementptr inbounds i8, ptr %5, i64 8
  tail call void @_ZN6tflite35QuantizeMultiplierSmallerThanOneExpEdPiS0_(double noundef %35, ptr noundef nonnull %45, ptr noundef nonnull %46)
  %47 = getelementptr inbounds i8, ptr %5, i64 28
  %48 = getelementptr inbounds i8, ptr %5, i64 32
  tail call void @_ZN6tflite35QuantizeMultiplierSmallerThanOneExpEdPiS0_(double noundef %42, ptr noundef nonnull %47, ptr noundef nonnull %48)
  %49 = load i32, ptr %1, align 4, !tbaa !28
  %50 = getelementptr inbounds i8, ptr %5, i64 12
  %51 = getelementptr inbounds i8, ptr %5, i64 16
  %52 = tail call noundef i32 @_ZN6tflite33CalculateActivationRangeQuantizedEP13TfLiteContext21TfLiteFusedActivationP12TfLiteTensorPiS5_(ptr noundef %0, i32 noundef %49, ptr noundef nonnull %4, ptr noundef nonnull %50, ptr noundef nonnull %51)
  %.not.not = icmp eq i32 %52, 0
  br i1 %.not.not, label %53, label %54

53:                                               ; preds = %11, %6
  br label %54

54:                                               ; preds = %11, %53
  %.1 = phi i32 [ %52, %11 ], [ 0, %53 ]
  ret i32 %.1
}

declare noundef zeroext i1 @_ZN6tflite14HaveSameShapesEPK12TfLiteTensorS2_(ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @_ZN6tflite35QuantizeMultiplierSmallerThanOneExpEdPiS0_(double noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef i32 @_ZN6tflite33CalculateActivationRangeQuantizedEP13TfLiteContext21TfLiteFusedActivationP12TfLiteTensorPiS5_(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

!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 0}
!6 = !{!"_ZTSN6tflite3ops5micro3sub6OpDataE", !7, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS12TfLiteTensor", !13, i64 0, !8, i64 8, !14, i64 16, !15, i64 24, !17, i64 32, !18, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !10, i64 72, !7, i64 76, !7, i64 77, !19, i64 80, !14, i64 96, !14, i64 104}
!13 = !{!"_ZTS10TfLiteType", !8, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTS24TfLiteQuantizationParams", !16, i64 0, !10, i64 4}
!16 = !{!"float", !8, i64 0}
!17 = !{!"_ZTS20TfLiteAllocationType", !8, i64 0}
!18 = !{!"long", !8, i64 0}
!19 = !{!"_ZTS18TfLiteQuantization", !20, i64 0, !14, i64 8}
!20 = !{!"_ZTS22TfLiteQuantizationType", !8, i64 0}
!21 = !{!12, !10, i64 28}
!22 = !{!6, !10, i64 40}
!23 = !{!6, !10, i64 44}
!24 = !{!6, !10, i64 48}
!25 = !{!6, !10, i64 36}
!26 = !{!16, !16, i64 0}
!27 = !{!12, !16, i64 24}
!28 = !{!29, !30, i64 0}
!29 = !{!"_ZTS15TfLiteSubParams", !30, i64 0}
!30 = !{!"_ZTS21TfLiteFusedActivation", !8, i64 0}


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