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

; 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.TfLiteNode = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr }
%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.tflite::ops::micro::dequantize::OpData" = type { i32, i32 }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [138 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 [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [63 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @abort() #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops5micro10dequantize7PrepareEP13TfLiteContextP10TfLiteNode(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.TfLiteNode, ptr %11, i32 0, i32 4
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %2
  br label %18

16:                                               ; preds = %2
  call void @abort() #5
  unreachable

17:                                               ; No predecessors!
  br label %18

18:                                               ; preds = %17, %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.TfLiteNode, ptr %19, i32 0, i32 4
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  store ptr %21, ptr %6, align 8, !tbaa !5
  br label %22

22:                                               ; preds = %18
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = call noundef i32 @_ZN6tflite9NumInputsEPK10TfLiteNode(ptr noundef %23)
  %25 = icmp ne i32 %24, 1
  br i1 %25, label %26, label %36

26:                                               ; preds = %22
  br label %27

27:                                               ; preds = %26
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.TfLiteContext, ptr %28, i32 0, i32 5
  %30 = load ptr, ptr %29, align 8, !tbaa !12
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = call noundef i32 @_ZN6tflite9NumInputsEPK10TfLiteNode(ptr noundef %32)
  call void (ptr, ptr, ...) %30(ptr noundef %31, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 52, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef %33, i32 noundef 1)
  br label %34

34:                                               ; preds = %27
  br label %35

35:                                               ; preds = %34
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %132

36:                                               ; preds = %22
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  br label %39

39:                                               ; preds = %38
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = call noundef i32 @_ZN6tflite10NumOutputsEPK10TfLiteNode(ptr noundef %40)
  %42 = icmp ne i32 %41, 1
  br i1 %42, label %43, label %53

43:                                               ; preds = %39
  br label %44

44:                                               ; preds = %43
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.TfLiteContext, ptr %45, i32 0, i32 5
  %47 = load ptr, ptr %46, align 8, !tbaa !12
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = call noundef i32 @_ZN6tflite10NumOutputsEPK10TfLiteNode(ptr noundef %49)
  call void (ptr, ptr, ...) %47(ptr noundef %48, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 53, ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef %50, i32 noundef 1)
  br label %51

51:                                               ; preds = %44
  br label %52

52:                                               ; preds = %51
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %132

53:                                               ; preds = %39
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %56, ptr noundef %57, i32 noundef 0)
  store ptr %58, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = call noundef ptr @_ZN6tflite9GetOutputEP13TfLiteContextPK10TfLiteNodei(ptr noundef %59, ptr noundef %60, i32 noundef 0)
  store ptr %61, ptr %9, align 8, !tbaa !5
  br label %62

62:                                               ; preds = %55
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.TfLiteTensor, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 8, !tbaa !16
  %66 = icmp eq i32 %65, 3
  br i1 %66, label %85, label %67

67:                                               ; preds = %62
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.TfLiteTensor, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 8, !tbaa !16
  %71 = icmp eq i32 %70, 9
  br i1 %71, label %85, label %72

72:                                               ; preds = %67
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.TfLiteTensor, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !16
  %76 = icmp eq i32 %75, 7
  br i1 %76, label %85, label %77

77:                                               ; preds = %72
  br label %78

78:                                               ; preds = %77
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.TfLiteContext, ptr %79, i32 0, i32 5
  %81 = load ptr, ptr %80, align 8, !tbaa !12
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, ptr, ...) %81(ptr noundef %82, ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 61, ptr noundef @.str.6)
  br label %83

83:                                               ; preds = %78
  br label %84

84:                                               ; preds = %83
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %131

85:                                               ; preds = %72, %67, %62
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %87
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.TfLiteTensor, ptr %89, i32 0, i32 0
  %91 = load i32, ptr %90, align 8, !tbaa !16
  %92 = icmp eq i32 %91, 1
  br i1 %92, label %106, label %93

93:                                               ; preds = %88
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.TfLiteTensor, ptr %94, i32 0, i32 0
  %96 = load i32, ptr %95, align 8, !tbaa !16
  %97 = icmp eq i32 %96, 2
  br i1 %97, label %106, label %98

98:                                               ; preds = %93
  br label %99

99:                                               ; preds = %98
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.TfLiteContext, ptr %100, i32 0, i32 5
  %102 = load ptr, ptr %101, align 8, !tbaa !12
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, ptr, ...) %102(ptr noundef %103, ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 63, ptr noundef @.str.7)
  br label %104

104:                                              ; preds = %99
  br label %105

105:                                              ; preds = %104
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %131

106:                                              ; preds = %93, %88
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %107
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.TfLiteTensor, ptr %109, i32 0, i32 0
  %111 = load i32, ptr %110, align 8, !tbaa !16
  %112 = icmp eq i32 %111, 2
  br i1 %112, label %113, label %130

113:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.TfLiteTensor, ptr %114, i32 0, i32 3
  %116 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %115, i32 0, i32 0
  %117 = load float, ptr %116, align 8, !tbaa !24
  %118 = fpext float %117 to double
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.TfLiteTensor, ptr %119, i32 0, i32 3
  %121 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %120, i32 0, i32 0
  %122 = load float, ptr %121, align 8, !tbaa !24
  %123 = fpext float %122 to double
  %124 = fdiv double %118, %123
  store double %124, ptr %10, align 8, !tbaa !25
  %125 = load double, ptr %10, align 8, !tbaa !25
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.tflite::ops::micro::dequantize::OpData", ptr %126, i32 0, i32 0
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.tflite::ops::micro::dequantize::OpData", ptr %128, i32 0, i32 1
  call void @_ZN6tflite18QuantizeMultiplierEdPiS0_(double noundef %125, ptr noundef %127, ptr noundef %129)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %130

130:                                              ; preds = %113, %108
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %131

131:                                              ; preds = %130, %105, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %132

132:                                              ; preds = %131, %52, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %133 = load i32, ptr %3, align 4
  ret i32 %133
}

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

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

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

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

declare void @_ZN6tflite18QuantizeMultiplierEdPiS0_(double noundef, ptr noundef, ptr noundef) #4

attributes #0 = { noreturn nounwind "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 = { 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 = { 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 = { "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 = { noreturn nounwind }
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, !6, i64 32}
!10 = !{!"_ZTS10TfLiteNode", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !6, i64 64}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 40}
!13 = !{!"_ZTS13TfLiteContext", !14, 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, !11, i64 72, !6, i64 80, !6, i64 88, !15, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152}
!14 = !{!"long", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTS12TfLiteTensor", !18, i64 0, !7, i64 8, !6, i64 16, !19, i64 24, !21, i64 32, !14, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !15, i64 76, !15, i64 77, !22, i64 80, !6, i64 96, !6, i64 104}
!18 = !{!"_ZTS10TfLiteType", !7, i64 0}
!19 = !{!"_ZTS24TfLiteQuantizationParams", !20, i64 0, !11, i64 4}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTS20TfLiteAllocationType", !7, i64 0}
!22 = !{!"_ZTS18TfLiteQuantization", !23, i64 0, !6, i64 8}
!23 = !{!"_ZTS22TfLiteQuantizationType", !7, i64 0}
!24 = !{!17, !20, i64 24}
!25 = !{!26, !26, i64 0}
!26 = !{!"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 [138 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 [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [63 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN6tflite3ops5micro10dequantize7PrepareEP13TfLiteContextP10TfLiteNode(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %1, i64 32
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %5, label %6

5:                                                ; preds = %2
  tail call void @abort() #4
  unreachable

6:                                                ; preds = %2
  %7 = tail call noundef i32 @_ZN6tflite9NumInputsEPK10TfLiteNode(ptr noundef nonnull %1)
  %.not32 = icmp eq i32 %7, 1
  br i1 %.not32, label %12, label %8

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

12:                                               ; preds = %6
  %13 = tail call noundef i32 @_ZN6tflite10NumOutputsEPK10TfLiteNode(ptr noundef nonnull %1)
  %.not33 = icmp eq i32 %13, 1
  br i1 %.not33, label %18, label %14

14:                                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = tail call noundef i32 @_ZN6tflite10NumOutputsEPK10TfLiteNode(ptr noundef nonnull %1)
  tail call void (ptr, ptr, ...) %16(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 53, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef %17, i32 noundef 1)
  br label %41

18:                                               ; preds = %12
  %19 = tail call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef nonnull %1, i32 noundef 0)
  %20 = tail call noundef ptr @_ZN6tflite9GetOutputEP13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef nonnull %1, i32 noundef 0)
  %21 = load i32, ptr %19, align 8, !tbaa !15
  switch i32 %21, label %22 [
    i32 3, label %25
    i32 9, label %25
    i32 7, label %25
  ]

22:                                               ; preds = %18
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  tail call void (ptr, ptr, ...) %24(ptr noundef %0, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 61, ptr noundef nonnull @.str.6)
  br label %41

25:                                               ; preds = %18, %18, %18
  %26 = load i32, ptr %20, align 8, !tbaa !15
  %.off = add i32 %26, -1
  %switch = icmp ult i32 %.off, 2
  br i1 %switch, label %30, label %27

27:                                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %0, i64 40
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  tail call void (ptr, ptr, ...) %29(ptr noundef %0, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 63, ptr noundef nonnull @.str.7)
  br label %41

30:                                               ; preds = %25
  %31 = icmp eq i32 %26, 2
  br i1 %31, label %32, label %41

32:                                               ; preds = %30
  %33 = getelementptr inbounds i8, ptr %19, i64 24
  %34 = load float, ptr %33, align 8, !tbaa !23
  %35 = fpext float %34 to double
  %36 = getelementptr inbounds i8, ptr %20, i64 24
  %37 = load float, ptr %36, align 8, !tbaa !23
  %38 = fpext float %37 to double
  %39 = fdiv double %35, %38
  %40 = getelementptr inbounds i8, ptr %4, i64 4
  tail call void @_ZN6tflite18QuantizeMultiplierEdPiS0_(double noundef %39, ptr noundef nonnull %4, ptr noundef nonnull %40)
  br label %41

41:                                               ; preds = %22, %27, %32, %30, %14, %8
  %.1 = phi i32 [ 1, %8 ], [ 1, %14 ], [ 1, %27 ], [ 1, %22 ], [ 0, %32 ], [ 0, %30 ]
  ret i32 %.1
}

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

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

; 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 @_ZN6tflite9GetOutputEP13TfLiteContextPK10TfLiteNodei(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @_ZN6tflite18QuantizeMultiplierEdPiS0_(double noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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


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