; 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.tflite::DequantizationParams" = type { double, i32 }
%"class.tflite::RuntimeShape" = type { i32, %union.anon }
%union.anon = type { ptr, [16 x i8] }
%struct.TfLiteNode = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, 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.TfLiteContext = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.tflite::ops::micro::dequantize::OpData" = type { i32, i32 }

@.str.8 = external hidden unnamed_addr constant [35 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: 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: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops5micro10dequantize4EvalEP13TfLiteContextP10TfLiteNode(ptr noundef %0, ptr noundef %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.tflite::DequantizationParams", align 8
  %10 = alloca %"class.tflite::RuntimeShape", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.tflite::RuntimeShape", align 8
  %14 = alloca %"class.tflite::RuntimeShape", align 8
  %15 = alloca %"class.tflite::RuntimeShape", align 8
  %16 = alloca %"class.tflite::RuntimeShape", align 8
  %17 = alloca %"class.tflite::RuntimeShape", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.tflite::RuntimeShape", align 8
  %21 = alloca %"class.tflite::RuntimeShape", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.TfLiteNode, ptr %22, i32 0, i32 4
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %27

26:                                               ; preds = %2
  br label %29

27:                                               ; preds = %2
  call void @abort() #7
  unreachable

28:                                               ; No predecessors!
  br label %29

29:                                               ; preds = %28, %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.TfLiteNode, ptr %30, i32 0, i32 4
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  store ptr %32, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %33, ptr noundef %34, i32 noundef 0)
  store ptr %35, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = call noundef ptr @_ZN6tflite9GetOutputEP13TfLiteContextPK10TfLiteNodei(ptr noundef %36, ptr noundef %37, i32 noundef 0)
  store ptr %38, ptr %8, align 8, !tbaa !5
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.TfLiteTensor, ptr %39, i32 0, i32 0
  %41 = load i32, ptr %40, align 8, !tbaa !12
  %42 = icmp eq i32 %41, 1
  br i1 %42, label %43, label %154

43:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  %44 = load ptr, ptr %7, 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 = getelementptr inbounds %"struct.tflite::DequantizationParams", ptr %9, i32 0, i32 1
  store i32 %47, ptr %48, align 8, !tbaa !23
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.TfLiteTensor, ptr %49, i32 0, i32 3
  %51 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %50, i32 0, i32 0
  %52 = load float, ptr %51, align 8, !tbaa !26
  %53 = fpext float %52 to double
  %54 = getelementptr inbounds %"struct.tflite::DequantizationParams", ptr %9, i32 0, i32 0
  store double %53, ptr %54, align 8, !tbaa !27
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.TfLiteTensor, ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 8, !tbaa !12
  switch i32 %57, label %133 [
    i32 3, label %58
    i32 9, label %83
    i32 7, label %108
  ]

58:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #8
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind writable sret(%"class.tflite::RuntimeShape") align 8 %10, ptr noundef %59)
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = invoke noundef ptr @_ZN6tflite13GetTensorDataIhEEPKT_PK12TfLiteTensor(ptr noundef %60)
          to label %62 unwind label %69

62:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #8
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind writable sret(%"class.tflite::RuntimeShape") align 8 %13, ptr noundef %63)
          to label %64 unwind label %73

64:                                               ; preds = %62
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = invoke noundef ptr @_ZN6tflite13GetTensorDataIfEEPT_P12TfLiteTensor(ptr noundef %65)
          to label %67 unwind label %77

67:                                               ; preds = %64
  invoke void @_ZN6tflite13reference_ops10DequantizeIhfEEvRKNS_20DequantizationParamsERKNS_12RuntimeShapeEPKT_S7_PT0_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef %61, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef %66)
          to label %68 unwind label %77

68:                                               ; preds = %67
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #8
  br label %149

69:                                               ; preds = %58
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %11, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %12, align 4
  br label %82

73:                                               ; preds = %62
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %11, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %12, align 4
  br label %81

77:                                               ; preds = %67, %64
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %11, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %12, align 4
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  br label %81

81:                                               ; preds = %77, %73
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  br label %82

82:                                               ; preds = %81, %69
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #8
  br label %153

83:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind writable sret(%"class.tflite::RuntimeShape") align 8 %14, ptr noundef %84)
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = invoke noundef ptr @_ZN6tflite13GetTensorDataIaEEPKT_PK12TfLiteTensor(ptr noundef %85)
          to label %87 unwind label %94

87:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #8
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind writable sret(%"class.tflite::RuntimeShape") align 8 %15, ptr noundef %88)
          to label %89 unwind label %98

89:                                               ; preds = %87
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = invoke noundef ptr @_ZN6tflite13GetTensorDataIfEEPT_P12TfLiteTensor(ptr noundef %90)
          to label %92 unwind label %102

92:                                               ; preds = %89
  invoke void @_ZN6tflite13reference_ops10DequantizeIafEEvRKNS_20DequantizationParamsERKNS_12RuntimeShapeEPKT_S7_PT0_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef %86, ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef %91)
          to label %93 unwind label %102

93:                                               ; preds = %92
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  br label %149

94:                                               ; preds = %83
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %11, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %12, align 4
  br label %107

98:                                               ; preds = %87
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %11, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %12, align 4
  br label %106

102:                                              ; preds = %92, %89
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %11, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %12, align 4
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  br label %106

106:                                              ; preds = %102, %98
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  br label %107

107:                                              ; preds = %106, %94
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  br label %153

108:                                              ; preds = %43
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #8
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind writable sret(%"class.tflite::RuntimeShape") align 8 %16, ptr noundef %109)
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = invoke noundef ptr @_ZN6tflite13GetTensorDataIsEEPKT_PK12TfLiteTensor(ptr noundef %110)
          to label %112 unwind label %119

112:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #8
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind writable sret(%"class.tflite::RuntimeShape") align 8 %17, ptr noundef %113)
          to label %114 unwind label %123

114:                                              ; preds = %112
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = invoke noundef ptr @_ZN6tflite13GetTensorDataIfEEPT_P12TfLiteTensor(ptr noundef %115)
          to label %117 unwind label %127

117:                                              ; preds = %114
  invoke void @_ZN6tflite13reference_ops10DequantizeIsfEEvRKNS_20DequantizationParamsERKNS_12RuntimeShapeEPKT_S7_PT0_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef %111, ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef %116)
          to label %118 unwind label %127

118:                                              ; preds = %117
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #8
  br label %149

119:                                              ; preds = %108
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %11, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %12, align 4
  br label %132

123:                                              ; preds = %112
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %11, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %12, align 4
  br label %131

127:                                              ; preds = %117, %114
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %11, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %12, align 4
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  br label %131

131:                                              ; preds = %127, %123
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  br label %132

132:                                              ; preds = %131, %119
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #8
  br label %153

133:                                              ; preds = %43
  br label %134

134:                                              ; preds = %133
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.TfLiteContext, ptr %135, i32 0, i32 5
  %137 = load ptr, ptr %136, align 8, !tbaa !28
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.TfLiteTensor, ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 8, !tbaa !12
  %142 = call ptr @TfLiteTypeGetName(i32 noundef %141)
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.TfLiteTensor, ptr %143, i32 0, i32 0
  %145 = load i32, ptr %144, align 8, !tbaa !12
  %146 = call ptr @TfLiteTypeGetName(i32 noundef %145)
  call void (ptr, ptr, ...) %137(ptr noundef %138, ptr noundef @.str.8, ptr noundef %142, ptr noundef %146)
  br label %147

147:                                              ; preds = %134
  br label %148

148:                                              ; preds = %147
  store i32 1, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %150

149:                                              ; preds = %118, %93, %68
  store i32 0, ptr %18, align 4
  br label %150

150:                                              ; preds = %149, %148
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  %151 = load i32, ptr %18, align 4
  switch i32 %151, label %255 [
    i32 0, label %152
  ]

152:                                              ; preds = %150
  br label %254

153:                                              ; preds = %132, %107, %82
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  br label %257

154:                                              ; preds = %29
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.TfLiteTensor, ptr %155, i32 0, i32 0
  %157 = load i32, ptr %156, align 8, !tbaa !12
  %158 = icmp eq i32 %157, 2
  br i1 %158, label %159, label %237

159:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #8
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind writable sret(%"class.tflite::RuntimeShape") align 8 %20, ptr noundef %160)
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #8
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind writable sret(%"class.tflite::RuntimeShape") align 8 %21, ptr noundef %161)
          to label %162 unwind label %168

162:                                              ; preds = %159
  %163 = invoke noundef i32 @_ZN6tflite16MatchingFlatSizeERKNS_12RuntimeShapeES2_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %164 unwind label %172

164:                                              ; preds = %162
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #8
  store i32 %163, ptr %19, align 4, !tbaa !30
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.TfLiteTensor, ptr %165, i32 0, i32 0
  %167 = load i32, ptr %166, align 8, !tbaa !12
  switch i32 %167, label %217 [
    i32 7, label %177
    i32 9, label %197
  ]

168:                                              ; preds = %159
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %11, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %12, align 4
  br label %176

172:                                              ; preds = %162
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %11, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %12, align 4
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  br label %176

176:                                              ; preds = %172, %168
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %257

177:                                              ; preds = %164
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  %179 = call noundef ptr @_ZN6tflite13GetTensorDataIsEEPKT_PK12TfLiteTensor(ptr noundef %178)
  %180 = load i32, ptr %19, align 4, !tbaa !30
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.tflite::ops::micro::dequantize::OpData", ptr %181, i32 0, i32 0
  %183 = load i32, ptr %182, align 4, !tbaa !31
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.tflite::ops::micro::dequantize::OpData", ptr %184, i32 0, i32 1
  %186 = load i32, ptr %185, align 4, !tbaa !33
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.TfLiteTensor, ptr %187, i32 0, i32 3
  %189 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %188, i32 0, i32 1
  %190 = load i32, ptr %189, align 4, !tbaa !22
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.TfLiteTensor, ptr %191, i32 0, i32 3
  %193 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %192, i32 0, i32 1
  %194 = load i32, ptr %193, align 4, !tbaa !22
  %195 = load ptr, ptr %8, align 8, !tbaa !5
  %196 = call noundef ptr @_ZN6tflite13GetTensorDataIiEEPT_P12TfLiteTensor(ptr noundef %195)
  call void @_ZN6tflite13reference_ops10RequantizeIsiEEvPKT_iiiiiPT0_(ptr noundef %179, i32 noundef %180, i32 noundef %183, i32 noundef %186, i32 noundef %190, i32 noundef %194, ptr noundef %196)
  br label %233

197:                                              ; preds = %164
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = call noundef ptr @_ZN6tflite13GetTensorDataIaEEPKT_PK12TfLiteTensor(ptr noundef %198)
  %200 = load i32, ptr %19, align 4, !tbaa !30
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = getelementptr inbounds %"struct.tflite::ops::micro::dequantize::OpData", ptr %201, i32 0, i32 0
  %203 = load i32, ptr %202, align 4, !tbaa !31
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.tflite::ops::micro::dequantize::OpData", ptr %204, i32 0, i32 1
  %206 = load i32, ptr %205, align 4, !tbaa !33
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.TfLiteTensor, ptr %207, i32 0, i32 3
  %209 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %208, i32 0, i32 1
  %210 = load i32, ptr %209, align 4, !tbaa !22
  %211 = load ptr, ptr %8, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.TfLiteTensor, ptr %211, i32 0, i32 3
  %213 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %212, i32 0, i32 1
  %214 = load i32, ptr %213, align 4, !tbaa !22
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = call noundef ptr @_ZN6tflite13GetTensorDataIiEEPT_P12TfLiteTensor(ptr noundef %215)
  call void @_ZN6tflite13reference_ops10RequantizeIaiEEvPKT_iiiiiPT0_(ptr noundef %199, i32 noundef %200, i32 noundef %203, i32 noundef %206, i32 noundef %210, i32 noundef %214, ptr noundef %216)
  br label %233

217:                                              ; preds = %164
  br label %218

218:                                              ; preds = %217
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.TfLiteContext, ptr %219, i32 0, i32 5
  %221 = load ptr, ptr %220, align 8, !tbaa !28
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = load ptr, ptr %7, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.TfLiteTensor, ptr %223, i32 0, i32 0
  %225 = load i32, ptr %224, align 8, !tbaa !12
  %226 = call ptr @TfLiteTypeGetName(i32 noundef %225)
  %227 = load ptr, ptr %8, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.TfLiteTensor, ptr %227, i32 0, i32 0
  %229 = load i32, ptr %228, align 8, !tbaa !12
  %230 = call ptr @TfLiteTypeGetName(i32 noundef %229)
  call void (ptr, ptr, ...) %221(ptr noundef %222, ptr noundef @.str.8, ptr noundef %226, ptr noundef %230)
  br label %231

231:                                              ; preds = %218
  br label %232

232:                                              ; preds = %231
  store i32 1, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %234

233:                                              ; preds = %197, %177
  store i32 0, ptr %18, align 4
  br label %234

234:                                              ; preds = %233, %232
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  %235 = load i32, ptr %18, align 4
  switch i32 %235, label %255 [
    i32 0, label %236
  ]

236:                                              ; preds = %234
  br label %253

237:                                              ; preds = %154
  br label %238

238:                                              ; preds = %237
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.TfLiteContext, ptr %239, i32 0, i32 5
  %241 = load ptr, ptr %240, align 8, !tbaa !28
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = load ptr, ptr %7, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.TfLiteTensor, ptr %243, i32 0, i32 0
  %245 = load i32, ptr %244, align 8, !tbaa !12
  %246 = call ptr @TfLiteTypeGetName(i32 noundef %245)
  %247 = load ptr, ptr %8, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.TfLiteTensor, ptr %247, i32 0, i32 0
  %249 = load i32, ptr %248, align 8, !tbaa !12
  %250 = call ptr @TfLiteTypeGetName(i32 noundef %249)
  call void (ptr, ptr, ...) %241(ptr noundef %242, ptr noundef @.str.8, ptr noundef %246, ptr noundef %250)
  br label %251

251:                                              ; preds = %238
  br label %252

252:                                              ; preds = %251
  store i32 1, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %255

253:                                              ; preds = %236
  br label %254

254:                                              ; preds = %253, %152
  store i32 0, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %255

255:                                              ; preds = %254, %252, %234, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %256 = load i32, ptr %3, align 4
  ret i32 %256

257:                                              ; preds = %176, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %258

258:                                              ; preds = %257
  %259 = load ptr, ptr %11, align 8
  %260 = load i32, ptr %12, align 4
  %261 = insertvalue { ptr, i32 } poison, ptr %259, 0
  %262 = insertvalue { ptr, i32 } %261, i32 %260, 1
  resume { ptr, i32 } %262
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops10DequantizeIhfEEvRKNS_20DequantizationParamsERKNS_12RuntimeShapeEPKT_S7_PT0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind noalias writable sret(%"class.tflite::RuntimeShape") align 8, ptr noundef) #4

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops10DequantizeIafEEvRKNS_20DequantizationParamsERKNS_12RuntimeShapeEPKT_S7_PT0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops10DequantizeIsfEEvRKNS_20DequantizationParamsERKNS_12RuntimeShapeEPKT_S7_PT0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #4

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

declare ptr @TfLiteTypeGetName(i32 noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN6tflite16MatchingFlatSizeERKNS_12RuntimeShapeES2_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #4

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops10RequantizeIaiEEvPKT_iiiiiPT0_(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 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 = { 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 = { 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 #4 = { 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 #5 = { 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 #6 = { "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 #7 = { noreturn nounwind }
attributes #8 = { 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, !14, i64 0}
!13 = !{!"_ZTS12TfLiteTensor", !14, i64 0, !7, i64 8, !6, i64 16, !15, i64 24, !17, i64 32, !18, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !19, i64 76, !19, i64 77, !20, i64 80, !6, i64 96, !6, i64 104}
!14 = !{!"_ZTS10TfLiteType", !7, i64 0}
!15 = !{!"_ZTS24TfLiteQuantizationParams", !16, i64 0, !11, i64 4}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTS20TfLiteAllocationType", !7, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTS18TfLiteQuantization", !21, i64 0, !6, i64 8}
!21 = !{!"_ZTS22TfLiteQuantizationType", !7, i64 0}
!22 = !{!13, !11, i64 28}
!23 = !{!24, !11, i64 8}
!24 = !{!"_ZTSN6tflite20DequantizationParamsE", !25, i64 0, !11, i64 8}
!25 = !{!"double", !7, i64 0}
!26 = !{!13, !16, i64 24}
!27 = !{!24, !25, i64 0}
!28 = !{!29, !6, i64 40}
!29 = !{!"_ZTS13TfLiteContext", !18, 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, !19, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152}
!30 = !{!11, !11, i64 0}
!31 = !{!32, !11, i64 0}
!32 = !{!"_ZTSN6tflite3ops5micro10dequantize6OpDataE", !11, i64 0, !11, i64 4}
!33 = !{!32, !11, i64 4}


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

%"struct.tflite::DequantizationParams" = type { double, i32 }
%"class.tflite::RuntimeShape" = type { i32, %union.anon }
%union.anon = type { ptr, [16 x i8] }

@.str.8 = external hidden unnamed_addr constant [35 x i8], align 1

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

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

; Function Attrs: mustprogress 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) 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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN6tflite3ops5micro10dequantize4EvalEP13TfLiteContextP10TfLiteNode(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.tflite::DequantizationParams", align 8
  %4 = alloca %"class.tflite::RuntimeShape", align 8
  %5 = alloca %"class.tflite::RuntimeShape", align 8
  %6 = alloca %"class.tflite::RuntimeShape", align 8
  %7 = alloca %"class.tflite::RuntimeShape", align 8
  %8 = alloca %"class.tflite::RuntimeShape", align 8
  %9 = alloca %"class.tflite::RuntimeShape", align 8
  %10 = alloca %"class.tflite::RuntimeShape", align 8
  %11 = alloca %"class.tflite::RuntimeShape", align 8
  %12 = getelementptr inbounds i8, ptr %1, i64 32
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %.not = icmp eq ptr %13, null
  br i1 %.not, label %14, label %15

14:                                               ; preds = %2
  tail call void @abort() #7
  unreachable

15:                                               ; preds = %2
  %16 = tail call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef nonnull %1, i32 noundef 0)
  %17 = tail call noundef ptr @_ZN6tflite9GetOutputEP13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef nonnull %1, i32 noundef 0)
  %18 = load i32, ptr %17, align 8, !tbaa !11
  switch i32 %18, label %99 [
    i32 1, label %19
    i32 2, label %64
  ]

19:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  %20 = getelementptr inbounds i8, ptr %16, i64 24
  %21 = getelementptr inbounds i8, ptr %16, i64 28
  %22 = load i32, ptr %21, align 4, !tbaa !21
  %23 = getelementptr inbounds i8, ptr %3, i64 8
  store i32 %22, ptr %23, align 8, !tbaa !22
  %24 = load float, ptr %20, align 8, !tbaa !25
  %25 = fpext float %24 to double
  store double %25, ptr %3, align 8, !tbaa !26
  %26 = load i32, ptr %16, align 8, !tbaa !11
  switch i32 %26, label %.critedge [
    i32 3, label %27
    i32 9, label %37
    i32 7, label %47
  ]

27:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  call void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind nonnull writable sret(%"class.tflite::RuntimeShape") align 8 %4, ptr noundef nonnull %16)
  %28 = call noundef ptr @_ZN6tflite13GetTensorDataIhEEPKT_PK12TfLiteTensor(ptr noundef nonnull %16)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  invoke void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind nonnull writable sret(%"class.tflite::RuntimeShape") align 8 %5, ptr noundef nonnull %17)
          to label %29 unwind label %32

29:                                               ; preds = %27
  %30 = call noundef ptr @_ZN6tflite13GetTensorDataIfEEPT_P12TfLiteTensor(ptr noundef nonnull %17)
  invoke void @_ZN6tflite13reference_ops10DequantizeIhfEEvRKNS_20DequantizationParamsERKNS_12RuntimeShapeEPKT_S7_PT0_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef %28, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef %30)
          to label %31 unwind label %34

31:                                               ; preds = %29
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  br label %62

32:                                               ; preds = %27
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %36

34:                                               ; preds = %29
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  br label %36

36:                                               ; preds = %34, %32
  %.pn74 = phi { ptr, i32 } [ %35, %34 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  br label %63

37:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  call void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind nonnull writable sret(%"class.tflite::RuntimeShape") align 8 %6, ptr noundef nonnull %16)
  %38 = call noundef ptr @_ZN6tflite13GetTensorDataIaEEPKT_PK12TfLiteTensor(ptr noundef nonnull %16)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  invoke void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind nonnull writable sret(%"class.tflite::RuntimeShape") align 8 %7, ptr noundef nonnull %17)
          to label %39 unwind label %42

39:                                               ; preds = %37
  %40 = call noundef ptr @_ZN6tflite13GetTensorDataIfEEPT_P12TfLiteTensor(ptr noundef nonnull %17)
  invoke void @_ZN6tflite13reference_ops10DequantizeIafEEvRKNS_20DequantizationParamsERKNS_12RuntimeShapeEPKT_S7_PT0_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef %38, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef %40)
          to label %41 unwind label %44

41:                                               ; preds = %39
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br label %62

42:                                               ; preds = %37
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %46

44:                                               ; preds = %39
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  br label %46

46:                                               ; preds = %44, %42
  %.pn72 = phi { ptr, i32 } [ %45, %44 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br label %63

47:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  call void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind nonnull writable sret(%"class.tflite::RuntimeShape") align 8 %8, ptr noundef nonnull %16)
  %48 = call noundef ptr @_ZN6tflite13GetTensorDataIsEEPKT_PK12TfLiteTensor(ptr noundef nonnull %16)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #8
  invoke void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind nonnull writable sret(%"class.tflite::RuntimeShape") align 8 %9, ptr noundef nonnull %17)
          to label %49 unwind label %52

49:                                               ; preds = %47
  %50 = call noundef ptr @_ZN6tflite13GetTensorDataIfEEPT_P12TfLiteTensor(ptr noundef nonnull %17)
  invoke void @_ZN6tflite13reference_ops10DequantizeIsfEEvRKNS_20DequantizationParamsERKNS_12RuntimeShapeEPKT_S7_PT0_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef %48, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %50)
          to label %51 unwind label %54

51:                                               ; preds = %49
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %62

52:                                               ; preds = %47
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %56

54:                                               ; preds = %49
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  br label %56

56:                                               ; preds = %54, %52
  %.pn70 = phi { ptr, i32 } [ %55, %54 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %63

.critedge:                                        ; preds = %19
  %57 = getelementptr inbounds i8, ptr %0, i64 40
  %58 = load ptr, ptr %57, align 8, !tbaa !27
  %59 = tail call ptr @TfLiteTypeGetName(i32 noundef %26)
  %60 = load i32, ptr %17, align 8, !tbaa !11
  %61 = tail call ptr @TfLiteTypeGetName(i32 noundef %60)
  tail call void (ptr, ptr, ...) %58(ptr noundef %0, ptr noundef nonnull @.str.8, ptr noundef %59, ptr noundef %61)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  br label %106

62:                                               ; preds = %31, %41, %51
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  br label %106

63:                                               ; preds = %56, %46, %36
  %.pn70.pn = phi { ptr, i32 } [ %.pn70, %56 ], [ %.pn72, %46 ], [ %.pn74, %36 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  br label %107

64:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #8
  call void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind nonnull writable sret(%"class.tflite::RuntimeShape") align 8 %10, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #8
  invoke void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind nonnull writable sret(%"class.tflite::RuntimeShape") align 8 %11, ptr noundef nonnull %17)
          to label %65 unwind label %69

65:                                               ; preds = %64
  %66 = invoke noundef i32 @_ZN6tflite16MatchingFlatSizeERKNS_12RuntimeShapeES2_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %67 unwind label %71

67:                                               ; preds = %65
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  %68 = load i32, ptr %16, align 8, !tbaa !11
  switch i32 %68, label %.critedge79 [
    i32 7, label %74
    i32 9, label %84
  ]

69:                                               ; preds = %64
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %73

71:                                               ; preds = %65
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #8
  br label %73

73:                                               ; preds = %71, %69
  %.pn = phi { ptr, i32 } [ %72, %71 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  br label %107

74:                                               ; preds = %67
  %75 = call noundef ptr @_ZN6tflite13GetTensorDataIsEEPKT_PK12TfLiteTensor(ptr noundef nonnull %16)
  %76 = load i32, ptr %13, align 4, !tbaa !29
  %77 = getelementptr inbounds i8, ptr %13, i64 4
  %78 = load i32, ptr %77, align 4, !tbaa !31
  %79 = getelementptr inbounds i8, ptr %16, i64 28
  %80 = load i32, ptr %79, align 4, !tbaa !21
  %81 = getelementptr inbounds i8, ptr %17, i64 28
  %82 = load i32, ptr %81, align 4, !tbaa !21
  %83 = call noundef ptr @_ZN6tflite13GetTensorDataIiEEPT_P12TfLiteTensor(ptr noundef nonnull %17)
  call void @_ZN6tflite13reference_ops10RequantizeIsiEEvPKT_iiiiiPT0_(ptr noundef %75, i32 noundef %66, i32 noundef %76, i32 noundef %78, i32 noundef %80, i32 noundef %82, ptr noundef %83)
  br label %106

84:                                               ; preds = %67
  %85 = call noundef ptr @_ZN6tflite13GetTensorDataIaEEPKT_PK12TfLiteTensor(ptr noundef nonnull %16)
  %86 = load i32, ptr %13, align 4, !tbaa !29
  %87 = getelementptr inbounds i8, ptr %13, i64 4
  %88 = load i32, ptr %87, align 4, !tbaa !31
  %89 = getelementptr inbounds i8, ptr %16, i64 28
  %90 = load i32, ptr %89, align 4, !tbaa !21
  %91 = getelementptr inbounds i8, ptr %17, i64 28
  %92 = load i32, ptr %91, align 4, !tbaa !21
  %93 = call noundef ptr @_ZN6tflite13GetTensorDataIiEEPT_P12TfLiteTensor(ptr noundef nonnull %17)
  call void @_ZN6tflite13reference_ops10RequantizeIaiEEvPKT_iiiiiPT0_(ptr noundef %85, i32 noundef %66, i32 noundef %86, i32 noundef %88, i32 noundef %90, i32 noundef %92, ptr noundef %93)
  br label %106

.critedge79:                                      ; preds = %67
  %94 = getelementptr inbounds i8, ptr %0, i64 40
  %95 = load ptr, ptr %94, align 8, !tbaa !27
  %96 = call ptr @TfLiteTypeGetName(i32 noundef %68)
  %97 = load i32, ptr %17, align 8, !tbaa !11
  %98 = call ptr @TfLiteTypeGetName(i32 noundef %97)
  call void (ptr, ptr, ...) %95(ptr noundef %0, ptr noundef nonnull @.str.8, ptr noundef %96, ptr noundef %98)
  br label %106

99:                                               ; preds = %15
  %100 = getelementptr inbounds i8, ptr %0, i64 40
  %101 = load ptr, ptr %100, align 8, !tbaa !27
  %102 = load i32, ptr %16, align 8, !tbaa !11
  %103 = tail call ptr @TfLiteTypeGetName(i32 noundef %102)
  %104 = load i32, ptr %17, align 8, !tbaa !11
  %105 = tail call ptr @TfLiteTypeGetName(i32 noundef %104)
  tail call void (ptr, ptr, ...) %101(ptr noundef %0, ptr noundef nonnull @.str.8, ptr noundef %103, ptr noundef %105)
  br label %106

106:                                              ; preds = %62, %74, %84, %.critedge79, %.critedge, %99
  %.2 = phi i32 [ 1, %99 ], [ 1, %.critedge ], [ 1, %.critedge79 ], [ 0, %84 ], [ 0, %74 ], [ 0, %62 ]
  ret i32 %.2

107:                                              ; preds = %73, %63
  %.pn70.pn.pn = phi { ptr, i32 } [ %.pn70.pn, %63 ], [ %.pn, %73 ]
  resume { ptr, i32 } %.pn70.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops10DequantizeIhfEEvRKNS_20DequantizationParamsERKNS_12RuntimeShapeEPKT_S7_PT0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind noalias writable sret(%"class.tflite::RuntimeShape") align 8, ptr noundef) local_unnamed_addr #4

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops10DequantizeIafEEvRKNS_20DequantizationParamsERKNS_12RuntimeShapeEPKT_S7_PT0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops10DequantizeIsfEEvRKNS_20DequantizationParamsERKNS_12RuntimeShapeEPKT_S7_PT0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #4

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

declare ptr @TfLiteTypeGetName(i32 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN6tflite16MatchingFlatSizeERKNS_12RuntimeShapeES2_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops10RequantizeIsiEEvPKT_iiiiiPT0_(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops10RequantizeIaiEEvPKT_iiiiiPT0_(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #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 = { mustprogress 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 = { 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 #4 = { 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 #5 = { 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 #6 = { "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 #7 = { noreturn nounwind }
attributes #8 = { 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, !13, i64 0}
!12 = !{!"_ZTS12TfLiteTensor", !13, i64 0, !8, i64 8, !7, i64 16, !14, i64 24, !16, i64 32, !17, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !10, i64 72, !18, i64 76, !18, i64 77, !19, i64 80, !7, i64 96, !7, i64 104}
!13 = !{!"_ZTS10TfLiteType", !8, i64 0}
!14 = !{!"_ZTS24TfLiteQuantizationParams", !15, i64 0, !10, i64 4}
!15 = !{!"float", !8, i64 0}
!16 = !{!"_ZTS20TfLiteAllocationType", !8, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!"bool", !8, i64 0}
!19 = !{!"_ZTS18TfLiteQuantization", !20, i64 0, !7, i64 8}
!20 = !{!"_ZTS22TfLiteQuantizationType", !8, i64 0}
!21 = !{!12, !10, i64 28}
!22 = !{!23, !10, i64 8}
!23 = !{!"_ZTSN6tflite20DequantizationParamsE", !24, i64 0, !10, i64 8}
!24 = !{!"double", !8, i64 0}
!25 = !{!12, !15, i64 24}
!26 = !{!23, !24, i64 0}
!27 = !{!28, !7, i64 40}
!28 = !{!"_ZTS13TfLiteContext", !17, 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, !18, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152}
!29 = !{!30, !10, i64 0}
!30 = !{!"_ZTSN6tflite3ops5micro10dequantize6OpDataE", !10, i64 0, !10, i64 4}
!31 = !{!30, !10, i64 4}


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