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

; 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::QuantizationParams" = type { i32, double }
%"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::quantize::OpData" = type { i32, i32 }

@.str.13 = 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 @_ZN6tflite3ops5micro8quantize4EvalEP13TfLiteContextP10TfLiteNode(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::QuantizationParams", 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 i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %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
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %24

23:                                               ; preds = %2
  br label %26

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

25:                                               ; No predecessors!
  br label %26

26:                                               ; preds = %25, %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.TfLiteNode, ptr %27, i32 0, i32 4
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  store ptr %29, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %30, ptr noundef %31, i32 noundef 0)
  store ptr %32, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call noundef ptr @_ZN6tflite9GetOutputEP13TfLiteContextPK10TfLiteNodei(ptr noundef %33, ptr noundef %34, i32 noundef 0)
  store ptr %35, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  call void @_ZN6tflite18QuantizationParamsC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.TfLiteTensor, ptr %36, i32 0, i32 3
  %38 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %37, i32 0, i32 1
  %39 = load i32, ptr %38, align 4, !tbaa !12
  %40 = getelementptr inbounds %"struct.tflite::QuantizationParams", ptr %9, i32 0, i32 0
  store i32 %39, ptr %40, align 8, !tbaa !22
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.TfLiteTensor, ptr %41, i32 0, i32 3
  %43 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %42, i32 0, i32 0
  %44 = load float, ptr %43, align 8, !tbaa !25
  %45 = fpext float %44 to double
  %46 = getelementptr inbounds %"struct.tflite::QuantizationParams", ptr %9, i32 0, i32 1
  store double %45, ptr %46, align 8, !tbaa !26
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.TfLiteTensor, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 8, !tbaa !27
  %50 = icmp eq i32 %49, 1
  br i1 %50, label %51, label %122

51:                                               ; preds = %26
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.TfLiteTensor, ptr %52, i32 0, i32 0
  %54 = load i32, ptr %53, align 8, !tbaa !27
  switch i32 %54, label %105 [
    i32 9, label %55
    i32 3, label %80
  ]

55:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #8
  %56 = 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 %56)
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = invoke noundef ptr @_ZN6tflite13GetTensorDataIfEEPKT_PK12TfLiteTensor(ptr noundef %57)
          to label %59 unwind label %66

59:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #8
  %60 = 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 %60)
          to label %61 unwind label %70

61:                                               ; preds = %59
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = invoke noundef ptr @_ZN6tflite13GetTensorDataIaEEPT_P12TfLiteTensor(ptr noundef %62)
          to label %64 unwind label %74

64:                                               ; preds = %61
  invoke void @_ZN6tflite13reference_ops14AffineQuantizeIfaEEvRKNS_18QuantizationParamsERKNS_12RuntimeShapeEPKT_S7_PT0_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef %58, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef %63)
          to label %65 unwind label %74

65:                                               ; preds = %64
  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 %121

66:                                               ; preds = %55
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %11, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %12, align 4
  br label %79

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

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

78:                                               ; preds = %74, %70
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #8
  br label %79

79:                                               ; preds = %78, %66
  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 %253

80:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  %81 = 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 %81)
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = invoke noundef ptr @_ZN6tflite13GetTensorDataIfEEPKT_PK12TfLiteTensor(ptr noundef %82)
          to label %84 unwind label %91

84:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #8
  %85 = 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 %85)
          to label %86 unwind label %95

86:                                               ; preds = %84
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = invoke noundef ptr @_ZN6tflite13GetTensorDataIhEEPT_P12TfLiteTensor(ptr noundef %87)
          to label %89 unwind label %99

89:                                               ; preds = %86
  invoke void @_ZN6tflite13reference_ops14AffineQuantizeIfhEEvRKNS_18QuantizationParamsERKNS_12RuntimeShapeEPKT_S7_PT0_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef %83, ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef %88)
          to label %90 unwind label %99

90:                                               ; preds = %89
  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 %121

91:                                               ; preds = %80
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %11, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %12, align 4
  br label %104

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

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

103:                                              ; preds = %99, %95
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  br label %104

104:                                              ; preds = %103, %91
  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 %253

105:                                              ; preds = %51
  br label %106

106:                                              ; preds = %105
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.TfLiteContext, ptr %107, i32 0, i32 5
  %109 = load ptr, ptr %108, align 8, !tbaa !28
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.TfLiteTensor, ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 8, !tbaa !27
  %114 = call ptr @TfLiteTypeGetName(i32 noundef %113)
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.TfLiteTensor, ptr %115, i32 0, i32 0
  %117 = load i32, ptr %116, align 8, !tbaa !27
  %118 = call ptr @TfLiteTypeGetName(i32 noundef %117)
  call void (ptr, ptr, ...) %109(ptr noundef %110, ptr noundef @.str.13, ptr noundef %114, ptr noundef %118)
  br label %119

119:                                              ; preds = %106
  br label %120

120:                                              ; preds = %119
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %251

121:                                              ; preds = %90, %65
  br label %250

122:                                              ; preds = %26
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.TfLiteTensor, ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 8, !tbaa !27
  %126 = icmp eq i32 %125, 7
  br i1 %126, label %127, label %177

127:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.TfLiteTensor, ptr %128, i32 0, i32 2
  %130 = load ptr, ptr %129, align 8, !tbaa !30
  %131 = call noundef i32 @_ZN6tflite12ElementCountERK14TfLiteIntArray(ptr noundef nonnull align 4 dereferenceable(4) %130)
  %132 = sext i32 %131 to i64
  store i64 %132, ptr %17, align 8, !tbaa !31
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.TfLiteTensor, ptr %133, i32 0, i32 0
  %135 = load i32, ptr %134, align 8, !tbaa !27
  switch i32 %135, label %157 [
    i32 9, label %136
  ]

136:                                              ; preds = %127
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = call noundef ptr @_ZN6tflite13GetTensorDataIsEEPKT_PK12TfLiteTensor(ptr noundef %137)
  %139 = load i64, ptr %17, align 8, !tbaa !31
  %140 = trunc i64 %139 to i32
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.tflite::ops::micro::quantize::OpData", ptr %141, i32 0, i32 0
  %143 = load i32, ptr %142, align 4, !tbaa !32
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.tflite::ops::micro::quantize::OpData", ptr %144, i32 0, i32 1
  %146 = load i32, ptr %145, align 4, !tbaa !34
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.TfLiteTensor, ptr %147, i32 0, i32 3
  %149 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %148, i32 0, i32 1
  %150 = load i32, ptr %149, align 4, !tbaa !12
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.TfLiteTensor, ptr %151, i32 0, i32 3
  %153 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %152, i32 0, i32 1
  %154 = load i32, ptr %153, align 4, !tbaa !12
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = call noundef ptr @_ZN6tflite13GetTensorDataIaEEPT_P12TfLiteTensor(ptr noundef %155)
  call void @_ZN6tflite13reference_ops10RequantizeIsaEEvPKT_iiiiiPT0_(ptr noundef %138, i32 noundef %140, i32 noundef %143, i32 noundef %146, i32 noundef %150, i32 noundef %154, ptr noundef %156)
  br label %173

157:                                              ; preds = %127
  br label %158

158:                                              ; preds = %157
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.TfLiteContext, ptr %159, i32 0, i32 5
  %161 = load ptr, ptr %160, align 8, !tbaa !28
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.TfLiteTensor, ptr %163, i32 0, i32 0
  %165 = load i32, ptr %164, align 8, !tbaa !27
  %166 = call ptr @TfLiteTypeGetName(i32 noundef %165)
  %167 = load ptr, ptr %8, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.TfLiteTensor, ptr %167, i32 0, i32 0
  %169 = load i32, ptr %168, align 8, !tbaa !27
  %170 = call ptr @TfLiteTypeGetName(i32 noundef %169)
  call void (ptr, ptr, ...) %161(ptr noundef %162, ptr noundef @.str.13, ptr noundef %166, ptr noundef %170)
  br label %171

171:                                              ; preds = %158
  br label %172

172:                                              ; preds = %171
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %174

173:                                              ; preds = %136
  store i32 0, ptr %16, align 4
  br label %174

174:                                              ; preds = %173, %172
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  %175 = load i32, ptr %16, align 4
  switch i32 %175, label %251 [
    i32 0, label %176
  ]

176:                                              ; preds = %174
  br label %249

177:                                              ; preds = %122
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.TfLiteTensor, ptr %178, i32 0, i32 0
  %180 = load i32, ptr %179, align 8, !tbaa !27
  %181 = icmp eq i32 %180, 9
  br i1 %181, label %182, label %232

182:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.TfLiteTensor, ptr %183, i32 0, i32 2
  %185 = load ptr, ptr %184, align 8, !tbaa !30
  %186 = call noundef i32 @_ZN6tflite12ElementCountERK14TfLiteIntArray(ptr noundef nonnull align 4 dereferenceable(4) %185)
  %187 = sext i32 %186 to i64
  store i64 %187, ptr %18, align 8, !tbaa !31
  %188 = load ptr, ptr %8, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.TfLiteTensor, ptr %188, i32 0, i32 0
  %190 = load i32, ptr %189, align 8, !tbaa !27
  switch i32 %190, label %212 [
    i32 9, label %191
  ]

191:                                              ; preds = %182
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = call noundef ptr @_ZN6tflite13GetTensorDataIaEEPKT_PK12TfLiteTensor(ptr noundef %192)
  %194 = load i64, ptr %18, align 8, !tbaa !31
  %195 = trunc i64 %194 to i32
  %196 = load ptr, ptr %6, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.tflite::ops::micro::quantize::OpData", ptr %196, i32 0, i32 0
  %198 = load i32, ptr %197, align 4, !tbaa !32
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.tflite::ops::micro::quantize::OpData", ptr %199, i32 0, i32 1
  %201 = load i32, ptr %200, align 4, !tbaa !34
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.TfLiteTensor, ptr %202, i32 0, i32 3
  %204 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %203, i32 0, i32 1
  %205 = load i32, ptr %204, align 4, !tbaa !12
  %206 = load ptr, ptr %8, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.TfLiteTensor, ptr %206, i32 0, i32 3
  %208 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %207, i32 0, i32 1
  %209 = load i32, ptr %208, align 4, !tbaa !12
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = call noundef ptr @_ZN6tflite13GetTensorDataIaEEPT_P12TfLiteTensor(ptr noundef %210)
  call void @_ZN6tflite13reference_ops10RequantizeIaaEEvPKT_iiiiiPT0_(ptr noundef %193, i32 noundef %195, i32 noundef %198, i32 noundef %201, i32 noundef %205, i32 noundef %209, ptr noundef %211)
  br label %228

212:                                              ; preds = %182
  br label %213

213:                                              ; preds = %212
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.TfLiteContext, ptr %214, i32 0, i32 5
  %216 = load ptr, ptr %215, align 8, !tbaa !28
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = load ptr, ptr %7, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.TfLiteTensor, ptr %218, i32 0, i32 0
  %220 = load i32, ptr %219, align 8, !tbaa !27
  %221 = call ptr @TfLiteTypeGetName(i32 noundef %220)
  %222 = load ptr, ptr %8, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.TfLiteTensor, ptr %222, i32 0, i32 0
  %224 = load i32, ptr %223, align 8, !tbaa !27
  %225 = call ptr @TfLiteTypeGetName(i32 noundef %224)
  call void (ptr, ptr, ...) %216(ptr noundef %217, ptr noundef @.str.13, ptr noundef %221, ptr noundef %225)
  br label %226

226:                                              ; preds = %213
  br label %227

227:                                              ; preds = %226
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %229

228:                                              ; preds = %191
  store i32 0, ptr %16, align 4
  br label %229

229:                                              ; preds = %228, %227
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  %230 = load i32, ptr %16, align 4
  switch i32 %230, label %251 [
    i32 0, label %231
  ]

231:                                              ; preds = %229
  br label %248

232:                                              ; preds = %177
  br label %233

233:                                              ; preds = %232
  %234 = load ptr, ptr %4, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.TfLiteContext, ptr %234, i32 0, i32 5
  %236 = load ptr, ptr %235, align 8, !tbaa !28
  %237 = load ptr, ptr %4, align 8, !tbaa !5
  %238 = load ptr, ptr %7, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.TfLiteTensor, ptr %238, i32 0, i32 0
  %240 = load i32, ptr %239, align 8, !tbaa !27
  %241 = call ptr @TfLiteTypeGetName(i32 noundef %240)
  %242 = load ptr, ptr %8, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.TfLiteTensor, ptr %242, i32 0, i32 0
  %244 = load i32, ptr %243, align 8, !tbaa !27
  %245 = call ptr @TfLiteTypeGetName(i32 noundef %244)
  call void (ptr, ptr, ...) %236(ptr noundef %237, ptr noundef @.str.13, ptr noundef %241, ptr noundef %245)
  br label %246

246:                                              ; preds = %233
  br label %247

247:                                              ; preds = %246
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %251

248:                                              ; preds = %231
  br label %249

249:                                              ; preds = %248, %176
  br label %250

250:                                              ; preds = %249, %121
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %251

251:                                              ; preds = %250, %247, %229, %174, %120
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  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
  %252 = load i32, ptr %3, align 4
  ret i32 %252

253:                                              ; preds = %104, %79
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  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 %254

254:                                              ; preds = %253
  %255 = load ptr, ptr %11, align 8
  %256 = load i32, ptr %12, align 4
  %257 = insertvalue { ptr, i32 } poison, ptr %255, 0
  %258 = insertvalue { ptr, i32 } %257, i32 %256, 1
  resume { ptr, i32 } %258
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite18QuantizationParamsC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops14AffineQuantizeIfaEEvRKNS_18QuantizationParamsERKNS_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 @_ZN6tflite13GetTensorDataIfEEPKT_PK12TfLiteTensor(ptr noundef) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6tflite13GetTensorDataIaEEPT_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_ops14AffineQuantizeIfhEEvRKNS_18QuantizationParamsERKNS_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 @_ZN6tflite13GetTensorDataIhEEPT_P12TfLiteTensor(ptr noundef) #2

declare ptr @TfLiteTypeGetName(i32 noundef) #6

declare noundef i32 @_ZN6tflite12ElementCountERK14TfLiteIntArray(ptr noundef nonnull align 4 dereferenceable(4)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops10RequantizeIsaEEvPKT_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 @_ZN6tflite13GetTensorDataIsEEPKT_PK12TfLiteTensor(ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops10RequantizeIaaEEvPKT_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 @_ZN6tflite13GetTensorDataIaEEPKT_PK12TfLiteTensor(ptr noundef) #2

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, !11, i64 28}
!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 = !{!23, !11, i64 0}
!23 = !{!"_ZTSN6tflite18QuantizationParamsE", !11, i64 0, !24, i64 8}
!24 = !{!"double", !7, i64 0}
!25 = !{!13, !16, i64 24}
!26 = !{!23, !24, i64 8}
!27 = !{!13, !14, 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 = !{!13, !6, i64 16}
!31 = !{!18, !18, i64 0}
!32 = !{!33, !11, i64 0}
!33 = !{!"_ZTSN6tflite3ops5micro8quantize6OpDataE", !11, i64 0, !11, i64 4}
!34 = !{!33, !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::QuantizationParams" = type { i32, double }
%"class.tflite::RuntimeShape" = type { i32, %union.anon }
%union.anon = type { ptr, [16 x i8] }

@.str.13 = 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 @_ZN6tflite3ops5micro8quantize4EvalEP13TfLiteContextP10TfLiteNode(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.tflite::QuantizationParams", 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 = getelementptr inbounds i8, ptr %1, i64 32
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %10, label %11

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

11:                                               ; preds = %2
  %12 = tail call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef nonnull %1, i32 noundef 0)
  %13 = tail call noundef ptr @_ZN6tflite9GetOutputEP13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef nonnull %1, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  call void @_ZN6tflite18QuantizationParamsC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #8
  %14 = getelementptr inbounds i8, ptr %13, i64 24
  %15 = getelementptr inbounds i8, ptr %13, i64 28
  %16 = load i32, ptr %15, align 4, !tbaa !11
  store i32 %16, ptr %3, align 8, !tbaa !21
  %17 = load float, ptr %14, align 8, !tbaa !24
  %18 = fpext float %17 to double
  %19 = getelementptr inbounds i8, ptr %3, i64 8
  store double %18, ptr %19, align 8, !tbaa !25
  %20 = load i32, ptr %12, align 8, !tbaa !26
  switch i32 %20, label %89 [
    i32 1, label %21
    i32 7, label %49
    i32 9, label %69
  ]

21:                                               ; preds = %11
  %22 = load i32, ptr %13, align 8, !tbaa !26
  switch i32 %22, label %43 [
    i32 9, label %23
    i32 3, label %33
  ]

23:                                               ; preds = %21
  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 %12)
  %24 = call noundef ptr @_ZN6tflite13GetTensorDataIfEEPKT_PK12TfLiteTensor(ptr noundef nonnull %12)
  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 %13)
          to label %25 unwind label %28

25:                                               ; preds = %23
  %26 = call noundef ptr @_ZN6tflite13GetTensorDataIaEEPT_P12TfLiteTensor(ptr noundef nonnull %13)
  invoke void @_ZN6tflite13reference_ops14AffineQuantizeIfaEEvRKNS_18QuantizationParamsERKNS_12RuntimeShapeEPKT_S7_PT0_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef %24, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef %26)
          to label %27 unwind label %30

27:                                               ; preds = %25
  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 %95

28:                                               ; preds = %23
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %32

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

32:                                               ; preds = %30, %28
  %.pn71 = phi { ptr, i32 } [ %31, %30 ], [ %29, %28 ]
  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 %96

33:                                               ; preds = %21
  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 %12)
  %34 = call noundef ptr @_ZN6tflite13GetTensorDataIfEEPKT_PK12TfLiteTensor(ptr noundef nonnull %12)
  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 %13)
          to label %35 unwind label %38

35:                                               ; preds = %33
  %36 = call noundef ptr @_ZN6tflite13GetTensorDataIhEEPT_P12TfLiteTensor(ptr noundef nonnull %13)
  invoke void @_ZN6tflite13reference_ops14AffineQuantizeIfhEEvRKNS_18QuantizationParamsERKNS_12RuntimeShapeEPKT_S7_PT0_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef %34, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef %36)
          to label %37 unwind label %40

37:                                               ; preds = %35
  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 %95

38:                                               ; preds = %33
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %42

40:                                               ; preds = %35
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  br label %42

42:                                               ; preds = %40, %38
  %.pn = phi { ptr, i32 } [ %41, %40 ], [ %39, %38 ]
  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 %96

43:                                               ; preds = %21
  %44 = getelementptr inbounds i8, ptr %0, i64 40
  %45 = load ptr, ptr %44, align 8, !tbaa !27
  %46 = call ptr @TfLiteTypeGetName(i32 noundef 1)
  %47 = load i32, ptr %13, align 8, !tbaa !26
  %48 = call ptr @TfLiteTypeGetName(i32 noundef %47)
  call void (ptr, ptr, ...) %45(ptr noundef %0, ptr noundef nonnull @.str.13, ptr noundef %46, ptr noundef %48)
  br label %95

49:                                               ; preds = %11
  %50 = getelementptr inbounds i8, ptr %12, i64 16
  %51 = load ptr, ptr %50, align 8, !tbaa !29
  %52 = call noundef i32 @_ZN6tflite12ElementCountERK14TfLiteIntArray(ptr noundef nonnull align 4 dereferenceable(4) %51)
  %53 = load i32, ptr %13, align 8, !tbaa !26
  %cond2 = icmp eq i32 %53, 9
  br i1 %cond2, label %.thread, label %62

.thread:                                          ; preds = %49
  %54 = call noundef ptr @_ZN6tflite13GetTensorDataIsEEPKT_PK12TfLiteTensor(ptr noundef nonnull %12)
  %55 = load i32, ptr %9, align 4, !tbaa !30
  %56 = getelementptr inbounds i8, ptr %9, i64 4
  %57 = load i32, ptr %56, align 4, !tbaa !32
  %58 = getelementptr inbounds i8, ptr %12, i64 28
  %59 = load i32, ptr %58, align 4, !tbaa !11
  %60 = load i32, ptr %15, align 4, !tbaa !11
  %61 = call noundef ptr @_ZN6tflite13GetTensorDataIaEEPT_P12TfLiteTensor(ptr noundef nonnull %13)
  call void @_ZN6tflite13reference_ops10RequantizeIsaEEvPKT_iiiiiPT0_(ptr noundef %54, i32 noundef %52, i32 noundef %55, i32 noundef %57, i32 noundef %59, i32 noundef %60, ptr noundef %61)
  br label %95

62:                                               ; preds = %49
  %63 = getelementptr inbounds i8, ptr %0, i64 40
  %64 = load ptr, ptr %63, align 8, !tbaa !27
  %65 = load i32, ptr %12, align 8, !tbaa !26
  %66 = call ptr @TfLiteTypeGetName(i32 noundef %65)
  %67 = load i32, ptr %13, align 8, !tbaa !26
  %68 = call ptr @TfLiteTypeGetName(i32 noundef %67)
  call void (ptr, ptr, ...) %64(ptr noundef %0, ptr noundef nonnull @.str.13, ptr noundef %66, ptr noundef %68)
  br label %95

69:                                               ; preds = %11
  %70 = getelementptr inbounds i8, ptr %12, i64 16
  %71 = load ptr, ptr %70, align 8, !tbaa !29
  %72 = call noundef i32 @_ZN6tflite12ElementCountERK14TfLiteIntArray(ptr noundef nonnull align 4 dereferenceable(4) %71)
  %73 = load i32, ptr %13, align 8, !tbaa !26
  %cond = icmp eq i32 %73, 9
  br i1 %cond, label %.thread74, label %82

.thread74:                                        ; preds = %69
  %74 = call noundef ptr @_ZN6tflite13GetTensorDataIaEEPKT_PK12TfLiteTensor(ptr noundef nonnull %12)
  %75 = load i32, ptr %9, align 4, !tbaa !30
  %76 = getelementptr inbounds i8, ptr %9, i64 4
  %77 = load i32, ptr %76, align 4, !tbaa !32
  %78 = getelementptr inbounds i8, ptr %12, i64 28
  %79 = load i32, ptr %78, align 4, !tbaa !11
  %80 = load i32, ptr %15, align 4, !tbaa !11
  %81 = call noundef ptr @_ZN6tflite13GetTensorDataIaEEPT_P12TfLiteTensor(ptr noundef nonnull %13)
  call void @_ZN6tflite13reference_ops10RequantizeIaaEEvPKT_iiiiiPT0_(ptr noundef %74, i32 noundef %72, i32 noundef %75, i32 noundef %77, i32 noundef %79, i32 noundef %80, ptr noundef %81)
  br label %95

82:                                               ; preds = %69
  %83 = getelementptr inbounds i8, ptr %0, i64 40
  %84 = load ptr, ptr %83, align 8, !tbaa !27
  %85 = load i32, ptr %12, align 8, !tbaa !26
  %86 = call ptr @TfLiteTypeGetName(i32 noundef %85)
  %87 = load i32, ptr %13, align 8, !tbaa !26
  %88 = call ptr @TfLiteTypeGetName(i32 noundef %87)
  call void (ptr, ptr, ...) %84(ptr noundef %0, ptr noundef nonnull @.str.13, ptr noundef %86, ptr noundef %88)
  br label %95

89:                                               ; preds = %11
  %90 = getelementptr inbounds i8, ptr %0, i64 40
  %91 = load ptr, ptr %90, align 8, !tbaa !27
  %92 = call ptr @TfLiteTypeGetName(i32 noundef %20)
  %93 = load i32, ptr %13, align 8, !tbaa !26
  %94 = call ptr @TfLiteTypeGetName(i32 noundef %93)
  call void (ptr, ptr, ...) %91(ptr noundef %0, ptr noundef nonnull @.str.13, ptr noundef %92, ptr noundef %94)
  br label %95

95:                                               ; preds = %37, %27, %.thread, %.thread74, %82, %62, %89, %43
  %.2 = phi i32 [ 1, %43 ], [ 1, %62 ], [ 1, %82 ], [ 1, %89 ], [ 0, %.thread74 ], [ 0, %.thread ], [ 0, %27 ], [ 0, %37 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  ret i32 %.2

96:                                               ; preds = %42, %32
  %.pn.pn = phi { ptr, i32 } [ %.pn, %42 ], [ %.pn71, %32 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite18QuantizationParamsC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops14AffineQuantizeIfaEEvRKNS_18QuantizationParamsERKNS_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 @_ZN6tflite13GetTensorDataIfEEPKT_PK12TfLiteTensor(ptr noundef) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6tflite13GetTensorDataIaEEPT_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_ops14AffineQuantizeIfhEEvRKNS_18QuantizationParamsERKNS_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 @_ZN6tflite13GetTensorDataIhEEPT_P12TfLiteTensor(ptr noundef) local_unnamed_addr #2

declare ptr @TfLiteTypeGetName(i32 noundef) local_unnamed_addr #6

declare noundef i32 @_ZN6tflite12ElementCountERK14TfLiteIntArray(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops10RequantizeIsaEEvPKT_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 @_ZN6tflite13GetTensorDataIsEEPKT_PK12TfLiteTensor(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite13reference_ops10RequantizeIaaEEvPKT_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 @_ZN6tflite13GetTensorDataIaEEPKT_PK12TfLiteTensor(ptr noundef) local_unnamed_addr #2

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, !10, i64 28}
!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 = !{!22, !10, i64 0}
!22 = !{!"_ZTSN6tflite18QuantizationParamsE", !10, i64 0, !23, i64 8}
!23 = !{!"double", !8, i64 0}
!24 = !{!12, !15, i64 24}
!25 = !{!22, !23, i64 8}
!26 = !{!12, !13, 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 = !{!12, !7, i64 16}
!30 = !{!31, !10, i64 0}
!31 = !{!"_ZTSN6tflite3ops5micro8quantize6OpDataE", !10, i64 0, !10, i64 4}
!32 = !{!31, !10, i64 4}


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