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

; 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.TfLiteContext = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%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.TfLiteMulParams = type { i32 }
%"struct.tflite::ops::micro::mul::OpData" = type { i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops5micro3mul15CalculateOpDataEP13TfLiteContextP10TfLiteNodeP15TfLiteMulParamsPNS2_6OpDataE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %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 i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %16, ptr noundef %17, i32 noundef 0)
  store ptr %18, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %19, ptr noundef %20, i32 noundef 1)
  store ptr %21, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = call noundef ptr @_ZN6tflite9GetOutputEP13TfLiteContextPK10TfLiteNodei(ptr noundef %22, ptr noundef %23, i32 noundef 0)
  store ptr %24, ptr %12, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %4
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = call noundef i32 @_ZN6tflite9NumInputsEPK10TfLiteNode(ptr noundef %26)
  %28 = icmp ne i32 %27, 2
  br i1 %28, label %29, label %39

29:                                               ; preds = %25
  br label %30

30:                                               ; preds = %29
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.TfLiteContext, ptr %31, i32 0, i32 5
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = call noundef i32 @_ZN6tflite9NumInputsEPK10TfLiteNode(ptr noundef %35)
  call void (ptr, ptr, ...) %33(ptr noundef %34, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 230, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef %36, i32 noundef 2)
  br label %37

37:                                               ; preds = %30
  br label %38

38:                                               ; preds = %37
  store i32 1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %140

39:                                               ; preds = %25
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = call noundef i32 @_ZN6tflite10NumOutputsEPK10TfLiteNode(ptr noundef %43)
  %45 = icmp ne i32 %44, 1
  br i1 %45, label %46, label %56

46:                                               ; preds = %42
  br label %47

47:                                               ; preds = %46
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.TfLiteContext, ptr %48, i32 0, i32 5
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = call noundef i32 @_ZN6tflite10NumOutputsEPK10TfLiteNode(ptr noundef %52)
  call void (ptr, ptr, ...) %50(ptr noundef %51, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 231, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef %53, i32 noundef 1)
  br label %54

54:                                               ; preds = %47
  br label %55

55:                                               ; preds = %54
  store i32 1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %140

56:                                               ; preds = %42
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.TfLiteTensor, ptr %60, i32 0, i32 0
  %62 = load i32, ptr %61, align 8, !tbaa !14
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.TfLiteTensor, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 8, !tbaa !14
  %66 = icmp ne i32 %62, %65
  br i1 %66, label %67, label %83

67:                                               ; preds = %59
  br label %68

68:                                               ; preds = %67
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.TfLiteContext, ptr %69, i32 0, i32 5
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.TfLiteTensor, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !14
  %76 = call ptr @TfLiteTypeGetName(i32 noundef %75)
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.TfLiteTensor, ptr %77, i32 0, i32 0
  %79 = load i32, ptr %78, align 8, !tbaa !14
  %80 = call ptr @TfLiteTypeGetName(i32 noundef %79)
  call void (ptr, ptr, ...) %71(ptr noundef %72, ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 233, ptr noundef @.str.7, ptr noundef @.str.8, ptr noundef %76, ptr noundef %80)
  br label %81

81:                                               ; preds = %68
  br label %82

82:                                               ; preds = %81
  store i32 1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %140

83:                                               ; preds = %59
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.TfLiteTensor, ptr %86, i32 0, i32 0
  %88 = load i32, ptr %87, align 8, !tbaa !14
  %89 = icmp eq i32 %88, 3
  br i1 %89, label %95, label %90

90:                                               ; preds = %85
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.TfLiteTensor, ptr %91, i32 0, i32 0
  %93 = load i32, ptr %92, align 8, !tbaa !14
  %94 = icmp eq i32 %93, 9
  br i1 %94, label %95, label %139

95:                                               ; preds = %90, %85
  br label %96

96:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.TfLiteMulParams, ptr %98, i32 0, i32 0
  %100 = load i32, ptr %99, align 4, !tbaa !22
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.tflite::ops::micro::mul::OpData", ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.tflite::ops::micro::mul::OpData", ptr %104, i32 0, i32 1
  %106 = call noundef i32 @_ZN6tflite33CalculateActivationRangeQuantizedEP13TfLiteContext21TfLiteFusedActivationP12TfLiteTensorPiS5_(ptr noundef %97, i32 noundef %100, ptr noundef %101, ptr noundef %103, ptr noundef %105)
  store i32 %106, ptr %14, align 4, !tbaa !25
  %107 = load i32, ptr %14, align 4, !tbaa !25
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %111

109:                                              ; preds = %96
  %110 = load i32, ptr %14, align 4, !tbaa !25
  store i32 %110, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %112

111:                                              ; preds = %96
  store i32 0, ptr %13, align 4
  br label %112

112:                                              ; preds = %111, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %113 = load i32, ptr %13, align 4
  switch i32 %113, label %140 [
    i32 0, label %114
  ]

114:                                              ; preds = %112
  br label %115

115:                                              ; preds = %114
  br label %116

116:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.TfLiteTensor, ptr %117, i32 0, i32 3
  %119 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %118, i32 0, i32 0
  %120 = load float, ptr %119, align 8, !tbaa !27
  %121 = fpext float %120 to double
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.TfLiteTensor, ptr %122, i32 0, i32 3
  %124 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %123, i32 0, i32 0
  %125 = load float, ptr %124, align 8, !tbaa !27
  %126 = fpext float %125 to double
  %127 = fmul double %121, %126
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.TfLiteTensor, ptr %128, i32 0, i32 3
  %130 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %129, i32 0, i32 0
  %131 = load float, ptr %130, align 8, !tbaa !27
  %132 = fpext float %131 to double
  %133 = fdiv double %127, %132
  store double %133, ptr %15, align 8, !tbaa !28
  %134 = load double, ptr %15, align 8, !tbaa !28
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.tflite::ops::micro::mul::OpData", ptr %135, i32 0, i32 2
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.tflite::ops::micro::mul::OpData", ptr %137, i32 0, i32 3
  call void @_ZN6tflite18QuantizeMultiplierEdPiS0_(double noundef %134, ptr noundef %136, ptr noundef %138)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %139

139:                                              ; preds = %116, %90
  store i32 0, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %140

140:                                              ; preds = %139, %112, %82, %55, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %141 = load i32, ptr %5, align 4
  ret i32 %141
}

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef, ptr noundef, i32 noundef) #2

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

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

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

declare ptr @TfLiteTypeGetName(i32 noundef) #3

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

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

declare void @_ZN6tflite18QuantizeMultiplierEdPiS0_(double noundef, ptr noundef, ptr noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
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, !6, i64 40}
!10 = !{!"_ZTS13TfLiteContext", !11, 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, !12, i64 72, !6, i64 80, !6, i64 88, !13, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"_ZTS12TfLiteTensor", !16, i64 0, !7, i64 8, !6, i64 16, !17, i64 24, !19, i64 32, !11, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !12, i64 72, !13, i64 76, !13, i64 77, !20, i64 80, !6, i64 96, !6, i64 104}
!16 = !{!"_ZTS10TfLiteType", !7, i64 0}
!17 = !{!"_ZTS24TfLiteQuantizationParams", !18, i64 0, !12, i64 4}
!18 = !{!"float", !7, i64 0}
!19 = !{!"_ZTS20TfLiteAllocationType", !7, i64 0}
!20 = !{!"_ZTS18TfLiteQuantization", !21, i64 0, !6, i64 8}
!21 = !{!"_ZTS22TfLiteQuantizationType", !7, i64 0}
!22 = !{!23, !24, i64 0}
!23 = !{!"_ZTS15TfLiteMulParams", !24, i64 0}
!24 = !{!"_ZTS21TfLiteFusedActivation", !7, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"_ZTS12TfLiteStatus", !7, i64 0}
!27 = !{!15, !18, i64 24}
!28 = !{!29, !29, i64 0}
!29 = !{!"double", !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 [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops5micro3mul15CalculateOpDataEP13TfLiteContextP10TfLiteNodeP15TfLiteMulParamsPNS2_6OpDataE(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = tail call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef %1, i32 noundef 0)
  %6 = tail call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef %1, i32 noundef 1)
  %7 = tail call noundef ptr @_ZN6tflite9GetOutputEP13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef %1, i32 noundef 0)
  %8 = tail call noundef i32 @_ZN6tflite9NumInputsEPK10TfLiteNode(ptr noundef %1)
  %.not = icmp eq i32 %8, 2
  br i1 %.not, label %13, label %9

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = tail call noundef i32 @_ZN6tflite9NumInputsEPK10TfLiteNode(ptr noundef %1)
  tail call void (ptr, ptr, ...) %11(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 230, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef %12, i32 noundef 2)
  br label %48

13:                                               ; preds = %4
  %14 = tail call noundef i32 @_ZN6tflite10NumOutputsEPK10TfLiteNode(ptr noundef %1)
  %.not38 = icmp eq i32 %14, 1
  br i1 %.not38, label %19, label %15

15:                                               ; preds = %13
  %16 = getelementptr inbounds i8, ptr %0, i64 40
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = tail call noundef i32 @_ZN6tflite10NumOutputsEPK10TfLiteNode(ptr noundef %1)
  tail call void (ptr, ptr, ...) %17(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 231, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef %18, i32 noundef 1)
  br label %48

19:                                               ; preds = %13
  %20 = load i32, ptr %5, align 8, !tbaa !13
  %21 = load i32, ptr %6, align 8, !tbaa !13
  %.not39 = icmp eq i32 %20, %21
  br i1 %.not39, label %28, label %22

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = tail call ptr @TfLiteTypeGetName(i32 noundef %20)
  %26 = load i32, ptr %6, align 8, !tbaa !13
  %27 = tail call ptr @TfLiteTypeGetName(i32 noundef %26)
  tail call void (ptr, ptr, ...) %24(ptr noundef %0, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 233, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8, ptr noundef %25, ptr noundef %27)
  br label %48

28:                                               ; preds = %19
  %29 = load i32, ptr %7, align 8, !tbaa !13
  switch i32 %29, label %48 [
    i32 3, label %30
    i32 9, label %30
  ]

30:                                               ; preds = %28, %28
  %31 = load i32, ptr %2, align 4, !tbaa !21
  %32 = getelementptr inbounds i8, ptr %3, i64 4
  %33 = tail call noundef i32 @_ZN6tflite33CalculateActivationRangeQuantizedEP13TfLiteContext21TfLiteFusedActivationP12TfLiteTensorPiS5_(ptr noundef %0, i32 noundef %31, ptr noundef nonnull %7, ptr noundef %3, ptr noundef nonnull %32)
  %.not40 = icmp eq i32 %33, 0
  br i1 %.not40, label %34, label %48

34:                                               ; preds = %30
  %35 = getelementptr inbounds i8, ptr %5, i64 24
  %36 = load float, ptr %35, align 8, !tbaa !24
  %37 = fpext float %36 to double
  %38 = getelementptr inbounds i8, ptr %6, i64 24
  %39 = load float, ptr %38, align 8, !tbaa !24
  %40 = fpext float %39 to double
  %41 = fmul double %37, %40
  %42 = getelementptr inbounds i8, ptr %7, i64 24
  %43 = load float, ptr %42, align 8, !tbaa !24
  %44 = fpext float %43 to double
  %45 = fdiv double %41, %44
  %46 = getelementptr inbounds i8, ptr %3, i64 8
  %47 = getelementptr inbounds i8, ptr %3, i64 12
  tail call void @_ZN6tflite18QuantizeMultiplierEdPiS0_(double noundef %45, ptr noundef nonnull %46, ptr noundef nonnull %47)
  br label %48

48:                                               ; preds = %34, %28, %30, %22, %15, %9
  %.1 = phi i32 [ 1, %9 ], [ 1, %15 ], [ 1, %22 ], [ %33, %30 ], [ 0, %28 ], [ 0, %34 ]
  ret i32 %.1
}

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

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

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

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

declare ptr @TfLiteTypeGetName(i32 noundef) local_unnamed_addr #2

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

declare void @_ZN6tflite18QuantizeMultiplierEdPiS0_(double noundef, ptr noundef, ptr noundef) local_unnamed_addr #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 = { 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 = { "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, !10, i64 40}
!6 = !{!"_ZTS13TfLiteContext", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !11, i64 72, !10, i64 80, !10, i64 88, !12, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"bool", !8, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS12TfLiteTensor", !15, i64 0, !8, i64 8, !10, i64 16, !16, i64 24, !18, i64 32, !7, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !11, i64 72, !12, i64 76, !12, i64 77, !19, i64 80, !10, i64 96, !10, i64 104}
!15 = !{!"_ZTS10TfLiteType", !8, i64 0}
!16 = !{!"_ZTS24TfLiteQuantizationParams", !17, i64 0, !11, i64 4}
!17 = !{!"float", !8, i64 0}
!18 = !{!"_ZTS20TfLiteAllocationType", !8, i64 0}
!19 = !{!"_ZTS18TfLiteQuantization", !20, i64 0, !10, i64 8}
!20 = !{!"_ZTS22TfLiteQuantizationType", !8, i64 0}
!21 = !{!22, !23, i64 0}
!22 = !{!"_ZTS15TfLiteMulParams", !23, i64 0}
!23 = !{!"_ZTS21TfLiteFusedActivation", !8, i64 0}
!24 = !{!14, !17, i64 24}


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