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

; 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::add::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.TfLiteAddParams = type { i32 }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops5micro3add15CalculateOpDataEP13TfLiteContextP15TfLiteAddParamsPK12TfLiteTensorS9_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 double, align 8
  %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::add::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 %135

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::add::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::add::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::add::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::add::OpData", ptr %57, i32 0, i32 9
  store i32 20, ptr %58, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, 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 = fpext float %66 to double
  %68 = fmul double 2.000000e+00, %67
  store double %68, ptr %14, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.TfLiteTensor, ptr %69, i32 0, i32 3
  %71 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %70, i32 0, i32 0
  %72 = load float, ptr %71, align 8, !tbaa !30
  %73 = fpext float %72 to double
  %74 = load double, ptr %14, align 8, !tbaa !28
  %75 = fdiv double %73, %74
  store double %75, ptr %15, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.TfLiteTensor, ptr %76, i32 0, i32 3
  %78 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %77, i32 0, i32 0
  %79 = load float, ptr %78, align 8, !tbaa !30
  %80 = fpext float %79 to double
  %81 = load double, ptr %14, align 8, !tbaa !28
  %82 = fdiv double %80, %81
  store double %82, ptr %16, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %83 = load double, ptr %14, align 8, !tbaa !28
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.tflite::ops::micro::add::OpData", ptr %84, i32 0, i32 9
  %86 = load i32, ptr %85, align 4, !tbaa !26
  %87 = shl i32 1, %86
  %88 = sitofp i32 %87 to double
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.TfLiteTensor, ptr %89, i32 0, i32 3
  %91 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %90, i32 0, i32 0
  %92 = load float, ptr %91, align 8, !tbaa !30
  %93 = fpext float %92 to double
  %94 = fmul double %88, %93
  %95 = fdiv double %83, %94
  store double %95, ptr %17, align 8, !tbaa !28
  %96 = load double, ptr %15, align 8, !tbaa !28
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.tflite::ops::micro::add::OpData", ptr %97, i32 0, i32 5
  %99 = load ptr, ptr %13, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.tflite::ops::micro::add::OpData", ptr %99, i32 0, i32 1
  call void @_ZN6tflite35QuantizeMultiplierSmallerThanOneExpEdPiS0_(double noundef %96, ptr noundef %98, ptr noundef %100)
  %101 = load double, ptr %16, align 8, !tbaa !28
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.tflite::ops::micro::add::OpData", ptr %102, i32 0, i32 6
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.tflite::ops::micro::add::OpData", ptr %104, i32 0, i32 2
  call void @_ZN6tflite35QuantizeMultiplierSmallerThanOneExpEdPiS0_(double noundef %101, ptr noundef %103, ptr noundef %105)
  %106 = load double, ptr %17, align 8, !tbaa !28
  %107 = load ptr, ptr %13, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.tflite::ops::micro::add::OpData", ptr %107, i32 0, i32 7
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.tflite::ops::micro::add::OpData", ptr %109, i32 0, i32 8
  call void @_ZN6tflite35QuantizeMultiplierSmallerThanOneExpEdPiS0_(double noundef %106, ptr noundef %108, ptr noundef %110)
  br label %111

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

124:                                              ; preds = %111
  %125 = load i32, ptr %18, align 4, !tbaa !34
  store i32 %125, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %127

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

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

129:                                              ; preds = %127
  br label %130

130:                                              ; preds = %129
  br label %131

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

132:                                              ; preds = %131, %127
  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 8, ptr %14) #4
  %133 = load i32, ptr %19, align 4
  switch i32 %133, label %138 [
    i32 0, label %134
    i32 1, label %136
  ]

134:                                              ; preds = %132
  br label %135

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

136:                                              ; preds = %135, %132
  %137 = load i32, ptr %7, align 4
  ret i32 %137

138:                                              ; preds = %132
  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 = !{!"_ZTSN6tflite3ops5micro3add6OpDataE", !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 = !{!29, !29, i64 0}
!29 = !{!"double", !7, i64 0}
!30 = !{!14, !17, i64 24}
!31 = !{!32, !33, i64 0}
!32 = !{!"_ZTS15TfLiteAddParams", !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 @_ZN6tflite3ops5micro3add15CalculateOpDataEP13TfLiteContextP15TfLiteAddParamsPK12TfLiteTensorS9_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 %54 [
    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 = fpext float %28 to double
  %30 = fmul double %29, 2.000000e+00
  %31 = load float, ptr %12, align 8, !tbaa !27
  %32 = fpext float %31 to double
  %33 = fdiv double %32, %30
  %34 = load float, ptr %17, align 8, !tbaa !27
  %35 = fpext float %34 to double
  %36 = fdiv double %35, %30
  %37 = load i32, ptr %26, align 4, !tbaa !25
  %38 = shl nuw i32 1, %37
  %39 = sitofp i32 %38 to double
  %40 = load float, ptr %22, align 8, !tbaa !27
  %41 = fpext float %40 to double
  %42 = fmul double %39, %41
  %43 = fdiv double %30, %42
  %44 = getelementptr inbounds i8, ptr %5, i64 20
  %45 = getelementptr inbounds i8, ptr %5, i64 4
  tail call void @_ZN6tflite35QuantizeMultiplierSmallerThanOneExpEdPiS0_(double noundef %33, ptr noundef nonnull %44, ptr noundef nonnull %45)
  %46 = getelementptr inbounds i8, ptr %5, i64 24
  %47 = getelementptr inbounds i8, ptr %5, i64 8
  tail call void @_ZN6tflite35QuantizeMultiplierSmallerThanOneExpEdPiS0_(double noundef %36, ptr noundef nonnull %46, ptr noundef nonnull %47)
  %48 = getelementptr inbounds i8, ptr %5, i64 28
  %49 = getelementptr inbounds i8, ptr %5, i64 32
  tail call void @_ZN6tflite35QuantizeMultiplierSmallerThanOneExpEdPiS0_(double noundef %43, ptr noundef nonnull %48, ptr noundef nonnull %49)
  %50 = load i32, ptr %1, align 4, !tbaa !28
  %51 = getelementptr inbounds i8, ptr %5, i64 12
  %52 = getelementptr inbounds i8, ptr %5, i64 16
  %53 = tail call noundef i32 @_ZN6tflite33CalculateActivationRangeQuantizedEP13TfLiteContext21TfLiteFusedActivationP12TfLiteTensorPiS5_(ptr noundef %0, i32 noundef %50, ptr noundef nonnull %4, ptr noundef nonnull %51, ptr noundef nonnull %52)
  %.not.not = icmp eq i32 %53, 0
  br i1 %.not.not, label %54, label %55

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

55:                                               ; preds = %11, %54
  %.1 = phi i32 [ %53, %11 ], [ 0, %54 ]
  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 = !{!"_ZTSN6tflite3ops5micro3add6OpDataE", !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 = !{!"_ZTS15TfLiteAddParams", !30, i64 0}
!30 = !{!"_ZTS21TfLiteFusedActivation", !8, i64 0}


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