; LLVM IR from NVIDIA/tensorflow :: tensorflow/lite/models/smartreply/ops (predict)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.TfLiteNode = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr }
%struct.TfLiteIntArray = type { i32, [0 x i32] }
%struct.TfLiteContext = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i8, ptr }
%struct.TfLiteTensor = type { i32, %union.TfLitePtrUnion, ptr, %struct.TfLiteQuantizationParams, i32, i64, ptr, ptr, ptr, i32, i8, i8, %struct.TfLiteQuantization }
%union.TfLitePtrUnion = type { ptr }
%struct.TfLiteQuantizationParams = type { float, i32 }
%struct.TfLiteQuantization = type { i32, ptr }
%"struct.tflite::ops::custom::predict::PredictOption" = type { i32, float }

@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6tflite3ops6custom7predict13PredictOption4CastEPv(ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops6custom7predict7PrepareEP13TfLiteContextP10TfLiteNode(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  br label %17

17:                                               ; preds = %2
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.TfLiteNode, ptr %18, i32 0, i32 0
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds %struct.TfLiteIntArray, ptr %20, i32 0, i32 0
  %22 = load i32, ptr %21, align 4, !tbaa !12
  %23 = icmp ne i32 %22, 4
  br i1 %23, label %24, label %34

24:                                               ; preds = %17
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.TfLiteContext, ptr %25, i32 0, i32 5
  %27 = load ptr, ptr %26, align 8, !tbaa !13
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.TfLiteNode, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = getelementptr inbounds %struct.TfLiteIntArray, ptr %31, i32 0, i32 0
  %33 = load i32, ptr %32, align 4, !tbaa !12
  call void (ptr, ptr, ...) %27(ptr noundef %28, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 78, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef %33, i32 noundef 4)
  store i32 1, ptr %3, align 4
  br label %439

34:                                               ; preds = %17
  br label %35

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.TfLiteNode, ptr %37, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  %40 = getelementptr inbounds %struct.TfLiteIntArray, ptr %39, i32 0, i32 0
  %41 = load i32, ptr %40, align 4, !tbaa !12
  %42 = icmp ne i32 %41, 2
  br i1 %42, label %43, label %53

43:                                               ; preds = %36
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.TfLiteContext, ptr %44, i32 0, i32 5
  %46 = load ptr, ptr %45, align 8, !tbaa !13
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.TfLiteNode, ptr %48, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !17
  %51 = getelementptr inbounds %struct.TfLiteIntArray, ptr %50, i32 0, i32 0
  %52 = load i32, ptr %51, align 4, !tbaa !12
  call void (ptr, ptr, ...) %46(ptr noundef %47, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 79, ptr noundef @.str.5, ptr noundef @.str.6, i32 noundef %52, i32 noundef 2)
  store i32 1, ptr %3, align 4
  br label %439

53:                                               ; preds = %36
  br label %54

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.TfLiteContext, ptr %55, i32 0, i32 2
  %57 = load ptr, ptr %56, align 8, !tbaa !18
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.TfLiteNode, ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.TfLiteIntArray, ptr %60, i32 0, i32 1
  %62 = getelementptr inbounds [0 x i32], ptr %61, i64 0, i64 0
  %63 = load i32, ptr %62, align 4, !tbaa !12
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds %struct.TfLiteTensor, ptr %57, i64 %64
  store ptr %65, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.TfLiteContext, ptr %66, i32 0, i32 2
  %68 = load ptr, ptr %67, align 8, !tbaa !18
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.TfLiteNode, ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.TfLiteIntArray, ptr %71, i32 0, i32 1
  %73 = getelementptr inbounds [0 x i32], ptr %72, i64 0, i64 1
  %74 = load i32, ptr %73, align 4, !tbaa !12
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds %struct.TfLiteTensor, ptr %68, i64 %75
  store ptr %76, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.TfLiteContext, ptr %77, i32 0, i32 2
  %79 = load ptr, ptr %78, align 8, !tbaa !18
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.TfLiteNode, ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct.TfLiteIntArray, ptr %82, i32 0, i32 1
  %84 = getelementptr inbounds [0 x i32], ptr %83, i64 0, i64 2
  %85 = load i32, ptr %84, align 4, !tbaa !12
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds %struct.TfLiteTensor, ptr %79, i64 %86
  store ptr %87, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.TfLiteContext, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !18
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.TfLiteNode, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = getelementptr inbounds %struct.TfLiteIntArray, ptr %93, i32 0, i32 1
  %95 = getelementptr inbounds [0 x i32], ptr %94, i64 0, i64 3
  %96 = load i32, ptr %95, align 4, !tbaa !12
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds %struct.TfLiteTensor, ptr %90, i64 %97
  store ptr %98, ptr %9, align 8, !tbaa !5
  br label %99

99:                                               ; preds = %54
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.TfLiteTensor, ptr %100, i32 0, i32 0
  %102 = load i32, ptr %101, align 8, !tbaa !19
  %103 = icmp ne i32 %102, 2
  br i1 %103, label %104, label %112

104:                                              ; preds = %99
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.TfLiteContext, ptr %105, i32 0, i32 5
  %107 = load ptr, ptr %106, align 8, !tbaa !13
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.TfLiteTensor, ptr %109, i32 0, i32 0
  %111 = load i32, ptr %110, align 8, !tbaa !19
  call void (ptr, ptr, ...) %107(ptr noundef %108, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 85, ptr noundef @.str.7, ptr noundef @.str.8, i32 noundef %111, i32 noundef 2)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %438

112:                                              ; preds = %99
  br label %113

113:                                              ; preds = %112
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.TfLiteTensor, ptr %116, i32 0, i32 0
  %118 = load i32, ptr %117, align 8, !tbaa !19
  %119 = icmp ne i32 %118, 2
  br i1 %119, label %120, label %128

120:                                              ; preds = %115
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.TfLiteContext, ptr %121, i32 0, i32 5
  %123 = load ptr, ptr %122, align 8, !tbaa !13
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.TfLiteTensor, ptr %125, i32 0, i32 0
  %127 = load i32, ptr %126, align 8, !tbaa !19
  call void (ptr, ptr, ...) %123(ptr noundef %124, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 86, ptr noundef @.str.9, ptr noundef @.str.8, i32 noundef %127, i32 noundef 2)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %438

128:                                              ; preds = %115
  br label %129

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129
  br label %131

131:                                              ; preds = %130
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.TfLiteTensor, ptr %132, i32 0, i32 0
  %134 = load i32, ptr %133, align 8, !tbaa !19
  %135 = icmp ne i32 %134, 2
  br i1 %135, label %136, label %144

136:                                              ; preds = %131
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.TfLiteContext, ptr %137, i32 0, i32 5
  %139 = load ptr, ptr %138, align 8, !tbaa !13
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.TfLiteTensor, ptr %141, i32 0, i32 0
  %143 = load i32, ptr %142, align 8, !tbaa !19
  call void (ptr, ptr, ...) %139(ptr noundef %140, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 87, ptr noundef @.str.10, ptr noundef @.str.8, i32 noundef %143, i32 noundef 2)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %438

144:                                              ; preds = %131
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.TfLiteTensor, ptr %148, i32 0, i32 0
  %150 = load i32, ptr %149, align 8, !tbaa !19
  %151 = icmp ne i32 %150, 1
  br i1 %151, label %152, label %160

152:                                              ; preds = %147
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.TfLiteContext, ptr %153, i32 0, i32 5
  %155 = load ptr, ptr %154, align 8, !tbaa !13
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.TfLiteTensor, ptr %157, i32 0, i32 0
  %159 = load i32, ptr %158, align 8, !tbaa !19
  call void (ptr, ptr, ...) %155(ptr noundef %156, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 88, ptr noundef @.str.11, ptr noundef @.str.12, i32 noundef %159, i32 noundef 1)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %438

160:                                              ; preds = %147
  br label %161

161:                                              ; preds = %160
  br label %162

162:                                              ; preds = %161
  br label %163

163:                                              ; preds = %162
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.TfLiteTensor, ptr %164, i32 0, i32 2
  %166 = load ptr, ptr %165, align 8, !tbaa !27
  %167 = getelementptr inbounds %struct.TfLiteIntArray, ptr %166, i32 0, i32 0
  %168 = load i32, ptr %167, align 4, !tbaa !12
  %169 = icmp ne i32 %168, 1
  br i1 %169, label %170, label %180

170:                                              ; preds = %163
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.TfLiteContext, ptr %171, i32 0, i32 5
  %173 = load ptr, ptr %172, align 8, !tbaa !13
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.TfLiteTensor, ptr %175, i32 0, i32 2
  %177 = load ptr, ptr %176, align 8, !tbaa !27
  %178 = getelementptr inbounds %struct.TfLiteIntArray, ptr %177, i32 0, i32 0
  %179 = load i32, ptr %178, align 4, !tbaa !12
  call void (ptr, ptr, ...) %173(ptr noundef %174, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 89, ptr noundef @.str.13, ptr noundef @.str.14, i32 noundef %179, i32 noundef 1)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %438

180:                                              ; preds = %163
  br label %181

181:                                              ; preds = %180
  br label %182

182:                                              ; preds = %181
  br label %183

183:                                              ; preds = %182
  %184 = load ptr, ptr %7, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.TfLiteTensor, ptr %184, i32 0, i32 2
  %186 = load ptr, ptr %185, align 8, !tbaa !27
  %187 = getelementptr inbounds %struct.TfLiteIntArray, ptr %186, i32 0, i32 0
  %188 = load i32, ptr %187, align 4, !tbaa !12
  %189 = icmp ne i32 %188, 1
  br i1 %189, label %190, label %200

190:                                              ; preds = %183
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.TfLiteContext, ptr %191, i32 0, i32 5
  %193 = load ptr, ptr %192, align 8, !tbaa !13
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.TfLiteTensor, ptr %195, i32 0, i32 2
  %197 = load ptr, ptr %196, align 8, !tbaa !27
  %198 = getelementptr inbounds %struct.TfLiteIntArray, ptr %197, i32 0, i32 0
  %199 = load i32, ptr %198, align 4, !tbaa !12
  call void (ptr, ptr, ...) %193(ptr noundef %194, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 90, ptr noundef @.str.15, ptr noundef @.str.14, i32 noundef %199, i32 noundef 1)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %438

200:                                              ; preds = %183
  br label %201

201:                                              ; preds = %200
  br label %202

202:                                              ; preds = %201
  br label %203

203:                                              ; preds = %202
  %204 = load ptr, ptr %8, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.TfLiteTensor, ptr %204, i32 0, i32 2
  %206 = load ptr, ptr %205, align 8, !tbaa !27
  %207 = getelementptr inbounds %struct.TfLiteIntArray, ptr %206, i32 0, i32 0
  %208 = load i32, ptr %207, align 4, !tbaa !12
  %209 = icmp ne i32 %208, 2
  br i1 %209, label %210, label %220

210:                                              ; preds = %203
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.TfLiteContext, ptr %211, i32 0, i32 5
  %213 = load ptr, ptr %212, align 8, !tbaa !13
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.TfLiteTensor, ptr %215, i32 0, i32 2
  %217 = load ptr, ptr %216, align 8, !tbaa !27
  %218 = getelementptr inbounds %struct.TfLiteIntArray, ptr %217, i32 0, i32 0
  %219 = load i32, ptr %218, align 4, !tbaa !12
  call void (ptr, ptr, ...) %213(ptr noundef %214, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 91, ptr noundef @.str.16, ptr noundef @.str.6, i32 noundef %219, i32 noundef 2)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %438

220:                                              ; preds = %203
  br label %221

221:                                              ; preds = %220
  br label %222

222:                                              ; preds = %221
  br label %223

223:                                              ; preds = %222
  %224 = load ptr, ptr %9, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.TfLiteTensor, ptr %224, i32 0, i32 2
  %226 = load ptr, ptr %225, align 8, !tbaa !27
  %227 = getelementptr inbounds %struct.TfLiteIntArray, ptr %226, i32 0, i32 0
  %228 = load i32, ptr %227, align 4, !tbaa !12
  %229 = icmp ne i32 %228, 2
  br i1 %229, label %230, label %240

230:                                              ; preds = %223
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.TfLiteContext, ptr %231, i32 0, i32 5
  %233 = load ptr, ptr %232, align 8, !tbaa !13
  %234 = load ptr, ptr %4, align 8, !tbaa !5
  %235 = load ptr, ptr %9, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.TfLiteTensor, ptr %235, i32 0, i32 2
  %237 = load ptr, ptr %236, align 8, !tbaa !27
  %238 = getelementptr inbounds %struct.TfLiteIntArray, ptr %237, i32 0, i32 0
  %239 = load i32, ptr %238, align 4, !tbaa !12
  call void (ptr, ptr, ...) %233(ptr noundef %234, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 92, ptr noundef @.str.17, ptr noundef @.str.6, i32 noundef %239, i32 noundef 2)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %438

240:                                              ; preds = %223
  br label %241

241:                                              ; preds = %240
  br label %242

242:                                              ; preds = %241
  br label %243

243:                                              ; preds = %242
  %244 = load ptr, ptr %7, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.TfLiteTensor, ptr %244, i32 0, i32 2
  %246 = load ptr, ptr %245, align 8, !tbaa !27
  %247 = getelementptr inbounds %struct.TfLiteIntArray, ptr %246, i32 0, i32 1
  %248 = getelementptr inbounds [0 x i32], ptr %247, i64 0, i64 0
  %249 = load i32, ptr %248, align 4, !tbaa !12
  %250 = load ptr, ptr %8, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.TfLiteTensor, ptr %250, i32 0, i32 2
  %252 = load ptr, ptr %251, align 8, !tbaa !27
  %253 = getelementptr inbounds %struct.TfLiteIntArray, ptr %252, i32 0, i32 1
  %254 = getelementptr inbounds [0 x i32], ptr %253, i64 0, i64 0
  %255 = load i32, ptr %254, align 4, !tbaa !12
  %256 = icmp ne i32 %249, %255
  br i1 %256, label %257, label %274

257:                                              ; preds = %243
  %258 = load ptr, ptr %4, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.TfLiteContext, ptr %258, i32 0, i32 5
  %260 = load ptr, ptr %259, align 8, !tbaa !13
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = load ptr, ptr %7, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.TfLiteTensor, ptr %262, i32 0, i32 2
  %264 = load ptr, ptr %263, align 8, !tbaa !27
  %265 = getelementptr inbounds %struct.TfLiteIntArray, ptr %264, i32 0, i32 1
  %266 = getelementptr inbounds [0 x i32], ptr %265, i64 0, i64 0
  %267 = load i32, ptr %266, align 4, !tbaa !12
  %268 = load ptr, ptr %8, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.TfLiteTensor, ptr %268, i32 0, i32 2
  %270 = load ptr, ptr %269, align 8, !tbaa !27
  %271 = getelementptr inbounds %struct.TfLiteIntArray, ptr %270, i32 0, i32 1
  %272 = getelementptr inbounds [0 x i32], ptr %271, i64 0, i64 0
  %273 = load i32, ptr %272, align 4, !tbaa !12
  call void (ptr, ptr, ...) %260(ptr noundef %261, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 94, ptr noundef @.str.18, ptr noundef @.str.19, i32 noundef %267, i32 noundef %273)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %438

274:                                              ; preds = %243
  br label %275

275:                                              ; preds = %274
  br label %276

276:                                              ; preds = %275
  br label %277

277:                                              ; preds = %276
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.TfLiteTensor, ptr %278, i32 0, i32 2
  %280 = load ptr, ptr %279, align 8, !tbaa !27
  %281 = getelementptr inbounds %struct.TfLiteIntArray, ptr %280, i32 0, i32 1
  %282 = getelementptr inbounds [0 x i32], ptr %281, i64 0, i64 0
  %283 = load i32, ptr %282, align 4, !tbaa !12
  %284 = load ptr, ptr %9, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.TfLiteTensor, ptr %284, i32 0, i32 2
  %286 = load ptr, ptr %285, align 8, !tbaa !27
  %287 = getelementptr inbounds %struct.TfLiteIntArray, ptr %286, i32 0, i32 1
  %288 = getelementptr inbounds [0 x i32], ptr %287, i64 0, i64 0
  %289 = load i32, ptr %288, align 4, !tbaa !12
  %290 = icmp ne i32 %283, %289
  br i1 %290, label %291, label %308

291:                                              ; preds = %277
  %292 = load ptr, ptr %4, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.TfLiteContext, ptr %292, i32 0, i32 5
  %294 = load ptr, ptr %293, align 8, !tbaa !13
  %295 = load ptr, ptr %4, align 8, !tbaa !5
  %296 = load ptr, ptr %7, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.TfLiteTensor, ptr %296, i32 0, i32 2
  %298 = load ptr, ptr %297, align 8, !tbaa !27
  %299 = getelementptr inbounds %struct.TfLiteIntArray, ptr %298, i32 0, i32 1
  %300 = getelementptr inbounds [0 x i32], ptr %299, i64 0, i64 0
  %301 = load i32, ptr %300, align 4, !tbaa !12
  %302 = load ptr, ptr %9, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.TfLiteTensor, ptr %302, i32 0, i32 2
  %304 = load ptr, ptr %303, align 8, !tbaa !27
  %305 = getelementptr inbounds %struct.TfLiteIntArray, ptr %304, i32 0, i32 1
  %306 = getelementptr inbounds [0 x i32], ptr %305, i64 0, i64 0
  %307 = load i32, ptr %306, align 4, !tbaa !12
  call void (ptr, ptr, ...) %294(ptr noundef %295, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 96, ptr noundef @.str.18, ptr noundef @.str.20, i32 noundef %301, i32 noundef %307)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %438

308:                                              ; preds = %277
  br label %309

309:                                              ; preds = %308
  br label %310

310:                                              ; preds = %309
  br label %311

311:                                              ; preds = %310
  %312 = load ptr, ptr %8, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.TfLiteTensor, ptr %312, i32 0, i32 2
  %314 = load ptr, ptr %313, align 8, !tbaa !27
  %315 = getelementptr inbounds %struct.TfLiteIntArray, ptr %314, i32 0, i32 1
  %316 = getelementptr inbounds [0 x i32], ptr %315, i64 0, i64 1
  %317 = load i32, ptr %316, align 4, !tbaa !12
  %318 = load ptr, ptr %9, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.TfLiteTensor, ptr %318, i32 0, i32 2
  %320 = load ptr, ptr %319, align 8, !tbaa !27
  %321 = getelementptr inbounds %struct.TfLiteIntArray, ptr %320, i32 0, i32 1
  %322 = getelementptr inbounds [0 x i32], ptr %321, i64 0, i64 1
  %323 = load i32, ptr %322, align 4, !tbaa !12
  %324 = icmp ne i32 %317, %323
  br i1 %324, label %325, label %342

325:                                              ; preds = %311
  %326 = load ptr, ptr %4, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.TfLiteContext, ptr %326, i32 0, i32 5
  %328 = load ptr, ptr %327, align 8, !tbaa !13
  %329 = load ptr, ptr %4, align 8, !tbaa !5
  %330 = load ptr, ptr %8, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.TfLiteTensor, ptr %330, i32 0, i32 2
  %332 = load ptr, ptr %331, align 8, !tbaa !27
  %333 = getelementptr inbounds %struct.TfLiteIntArray, ptr %332, i32 0, i32 1
  %334 = getelementptr inbounds [0 x i32], ptr %333, i64 0, i64 1
  %335 = load i32, ptr %334, align 4, !tbaa !12
  %336 = load ptr, ptr %9, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.TfLiteTensor, ptr %336, i32 0, i32 2
  %338 = load ptr, ptr %337, align 8, !tbaa !27
  %339 = getelementptr inbounds %struct.TfLiteIntArray, ptr %338, i32 0, i32 1
  %340 = getelementptr inbounds [0 x i32], ptr %339, i64 0, i64 1
  %341 = load i32, ptr %340, align 4, !tbaa !12
  call void (ptr, ptr, ...) %328(ptr noundef %329, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 98, ptr noundef @.str.21, ptr noundef @.str.22, i32 noundef %335, i32 noundef %341)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %438

342:                                              ; preds = %311
  br label %343

343:                                              ; preds = %342
  br label %344

344:                                              ; preds = %343
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %345 = load ptr, ptr %5, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.TfLiteNode, ptr %345, i32 0, i32 4
  %347 = load ptr, ptr %346, align 8, !tbaa !28
  %348 = call noundef ptr @_ZN6tflite3ops6custom7predict13PredictOption4CastEPv(ptr noundef %347)
  store ptr %348, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %349 = load ptr, ptr %4, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.TfLiteContext, ptr %349, i32 0, i32 2
  %351 = load ptr, ptr %350, align 8, !tbaa !18
  %352 = load ptr, ptr %5, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.TfLiteNode, ptr %352, i32 0, i32 1
  %354 = load ptr, ptr %353, align 8, !tbaa !17
  %355 = getelementptr inbounds %struct.TfLiteIntArray, ptr %354, i32 0, i32 1
  %356 = getelementptr inbounds [0 x i32], ptr %355, i64 0, i64 0
  %357 = load i32, ptr %356, align 4, !tbaa !12
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds %struct.TfLiteTensor, ptr %351, i64 %358
  store ptr %359, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %360 = load ptr, ptr %4, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.TfLiteContext, ptr %360, i32 0, i32 2
  %362 = load ptr, ptr %361, align 8, !tbaa !18
  %363 = load ptr, ptr %5, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.TfLiteNode, ptr %363, i32 0, i32 1
  %365 = load ptr, ptr %364, align 8, !tbaa !17
  %366 = getelementptr inbounds %struct.TfLiteIntArray, ptr %365, i32 0, i32 1
  %367 = getelementptr inbounds [0 x i32], ptr %366, i64 0, i64 1
  %368 = load i32, ptr %367, align 4, !tbaa !12
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds %struct.TfLiteTensor, ptr %362, i64 %369
  store ptr %370, ptr %13, align 8, !tbaa !5
  br label %371

371:                                              ; preds = %344
  %372 = load ptr, ptr %12, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.TfLiteTensor, ptr %372, i32 0, i32 0
  %374 = load i32, ptr %373, align 8, !tbaa !19
  %375 = icmp ne i32 %374, 2
  br i1 %375, label %376, label %384

376:                                              ; preds = %371
  %377 = load ptr, ptr %4, align 8, !tbaa !5
  %378 = getelementptr inbounds %struct.TfLiteContext, ptr %377, i32 0, i32 5
  %379 = load ptr, ptr %378, align 8, !tbaa !13
  %380 = load ptr, ptr %4, align 8, !tbaa !5
  %381 = load ptr, ptr %12, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.TfLiteTensor, ptr %381, i32 0, i32 0
  %383 = load i32, ptr %382, align 8, !tbaa !19
  call void (ptr, ptr, ...) %379(ptr noundef %380, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 103, ptr noundef @.str.23, ptr noundef @.str.8, i32 noundef %383, i32 noundef 2)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %437

384:                                              ; preds = %371
  br label %385

385:                                              ; preds = %384
  br label %386

386:                                              ; preds = %385
  br label %387

387:                                              ; preds = %386
  %388 = load ptr, ptr %13, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.TfLiteTensor, ptr %388, i32 0, i32 0
  %390 = load i32, ptr %389, align 8, !tbaa !19
  %391 = icmp ne i32 %390, 1
  br i1 %391, label %392, label %400

392:                                              ; preds = %387
  %393 = load ptr, ptr %4, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.TfLiteContext, ptr %393, i32 0, i32 5
  %395 = load ptr, ptr %394, align 8, !tbaa !13
  %396 = load ptr, ptr %4, align 8, !tbaa !5
  %397 = load ptr, ptr %13, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct.TfLiteTensor, ptr %397, i32 0, i32 0
  %399 = load i32, ptr %398, align 8, !tbaa !19
  call void (ptr, ptr, ...) %395(ptr noundef %396, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 104, ptr noundef @.str.24, ptr noundef @.str.12, i32 noundef %399, i32 noundef 1)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %437

400:                                              ; preds = %387
  br label %401

401:                                              ; preds = %400
  br label %402

402:                                              ; preds = %401
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %403 = call ptr @TfLiteIntArrayCreate(i32 noundef 1)
  store ptr %403, ptr %14, align 8, !tbaa !5
  %404 = load ptr, ptr %11, align 8, !tbaa !5
  %405 = getelementptr inbounds %"struct.tflite::ops::custom::predict::PredictOption", ptr %404, i32 0, i32 0
  %406 = load i32, ptr %405, align 4, !tbaa !29
  %407 = load ptr, ptr %14, align 8, !tbaa !5
  %408 = getelementptr inbounds %struct.TfLiteIntArray, ptr %407, i32 0, i32 1
  %409 = getelementptr inbounds [0 x i32], ptr %408, i64 0, i64 0
  store i32 %406, ptr %409, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %410 = call ptr @TfLiteIntArrayCreate(i32 noundef 1)
  store ptr %410, ptr %15, align 8, !tbaa !5
  %411 = load ptr, ptr %11, align 8, !tbaa !5
  %412 = getelementptr inbounds %"struct.tflite::ops::custom::predict::PredictOption", ptr %411, i32 0, i32 0
  %413 = load i32, ptr %412, align 4, !tbaa !29
  %414 = load ptr, ptr %15, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.TfLiteIntArray, ptr %414, i32 0, i32 1
  %416 = getelementptr inbounds [0 x i32], ptr %415, i64 0, i64 0
  store i32 %413, ptr %416, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %417 = load ptr, ptr %4, align 8, !tbaa !5
  %418 = getelementptr inbounds %struct.TfLiteContext, ptr %417, i32 0, i32 4
  %419 = load ptr, ptr %418, align 8, !tbaa !31
  %420 = load ptr, ptr %4, align 8, !tbaa !5
  %421 = load ptr, ptr %12, align 8, !tbaa !5
  %422 = load ptr, ptr %14, align 8, !tbaa !5
  %423 = call noundef i32 %419(ptr noundef %420, ptr noundef %421, ptr noundef %422)
  store i32 %423, ptr %16, align 4, !tbaa !32
  %424 = load i32, ptr %16, align 4, !tbaa !32
  %425 = icmp ne i32 %424, 0
  br i1 %425, label %426, label %428

426:                                              ; preds = %402
  %427 = load i32, ptr %16, align 4, !tbaa !32
  store i32 %427, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %436

428:                                              ; preds = %402
  %429 = load ptr, ptr %4, align 8, !tbaa !5
  %430 = getelementptr inbounds %struct.TfLiteContext, ptr %429, i32 0, i32 4
  %431 = load ptr, ptr %430, align 8, !tbaa !31
  %432 = load ptr, ptr %4, align 8, !tbaa !5
  %433 = load ptr, ptr %13, align 8, !tbaa !5
  %434 = load ptr, ptr %15, align 8, !tbaa !5
  %435 = call noundef i32 %431(ptr noundef %432, ptr noundef %433, ptr noundef %434)
  store i32 %435, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %436

436:                                              ; preds = %428, %426
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %437

437:                                              ; preds = %436, %392, %376
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %438

438:                                              ; preds = %437, %325, %291, %257, %230, %210, %190, %170, %152, %136, %120, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %439

439:                                              ; preds = %438, %43, %24
  %440 = load i32, ptr %3, align 4
  ret i32 %440
}

declare ptr @TfLiteIntArrayCreate(i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!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 = !{!11, !11, i64 0}
!13 = !{!14, !6, i64 40}
!14 = !{!"_ZTS13TfLiteContext", !15, 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, !16, i64 96, !6, i64 104}
!15 = !{!"long", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!10, !6, i64 8}
!18 = !{!14, !6, i64 16}
!19 = !{!20, !21, i64 0}
!20 = !{!"_ZTS12TfLiteTensor", !21, i64 0, !7, i64 8, !6, i64 16, !22, i64 24, !24, i64 32, !15, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !16, i64 76, !16, i64 77, !25, i64 80}
!21 = !{!"_ZTS10TfLiteType", !7, i64 0}
!22 = !{!"_ZTS24TfLiteQuantizationParams", !23, i64 0, !11, i64 4}
!23 = !{!"float", !7, i64 0}
!24 = !{!"_ZTS20TfLiteAllocationType", !7, i64 0}
!25 = !{!"_ZTS18TfLiteQuantization", !26, i64 0, !6, i64 8}
!26 = !{!"_ZTS22TfLiteQuantizationType", !7, i64 0}
!27 = !{!20, !6, i64 16}
!28 = !{!10, !6, i64 32}
!29 = !{!30, !11, i64 0}
!30 = !{!"_ZTSN6tflite3ops6custom7predict13PredictOptionE", !11, i64 0, !23, i64 4}
!31 = !{!14, !6, i64 32}
!32 = !{!33, !33, i64 0}
!33 = !{!"_ZTS12TfLiteStatus", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.TfLiteTensor = type { i32, %union.TfLitePtrUnion, ptr, %struct.TfLiteQuantizationParams, i32, i64, ptr, ptr, ptr, i32, i8, i8, %struct.TfLiteQuantization }
%union.TfLitePtrUnion = type { ptr }
%struct.TfLiteQuantizationParams = type { float, i32 }
%struct.TfLiteQuantization = type { i32, ptr }

@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6tflite3ops6custom7predict13PredictOption4CastEPv(ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops6custom7predict7PrepareEP13TfLiteContextP10TfLiteNode(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 {
  %3 = load ptr, ptr %1, align 8, !tbaa !5
  %4 = load i32, ptr %3, align 4, !tbaa !11
  %.not = icmp eq i32 %4, 4
  br i1 %.not, label %8, label %5

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = load ptr, ptr %6, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %7(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 78, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef %4, i32 noundef 4)
  br label %139

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !16
  %11 = load i32, ptr %10, align 4, !tbaa !11
  %.not112 = icmp eq i32 %11, 2
  br i1 %.not112, label %15, label %12

12:                                               ; preds = %8
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = load ptr, ptr %13, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %14(ptr noundef %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 79, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, i32 noundef %11, i32 noundef 2)
  br label %139

15:                                               ; preds = %8
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = load ptr, ptr %16, align 8, !tbaa !17
  %18 = getelementptr inbounds i8, ptr %3, i64 4
  %19 = load i32, ptr %18, align 4, !tbaa !11
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds %struct.TfLiteTensor, ptr %17, i64 %20
  %22 = getelementptr inbounds i8, ptr %3, i64 8
  %23 = load i32, ptr %22, align 4, !tbaa !11
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds %struct.TfLiteTensor, ptr %17, i64 %24
  %26 = getelementptr inbounds i8, ptr %3, i64 12
  %27 = load i32, ptr %26, align 4, !tbaa !11
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds %struct.TfLiteTensor, ptr %17, i64 %28
  %30 = getelementptr inbounds i8, ptr %3, i64 16
  %31 = load i32, ptr %30, align 4, !tbaa !11
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds %struct.TfLiteTensor, ptr %17, i64 %32
  %34 = load i32, ptr %21, align 8, !tbaa !18
  %.not113 = icmp eq i32 %34, 2
  br i1 %.not113, label %38, label %35

35:                                               ; preds = %15
  %36 = getelementptr inbounds i8, ptr %0, i64 40
  %37 = load ptr, ptr %36, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %37(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 85, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8, i32 noundef %34, i32 noundef 2)
  br label %139

38:                                               ; preds = %15
  %39 = load i32, ptr %25, align 8, !tbaa !18
  %.not114 = icmp eq i32 %39, 2
  br i1 %.not114, label %43, label %40

40:                                               ; preds = %38
  %41 = getelementptr inbounds i8, ptr %0, i64 40
  %42 = load ptr, ptr %41, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %42(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 86, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.8, i32 noundef %39, i32 noundef 2)
  br label %139

43:                                               ; preds = %38
  %44 = load i32, ptr %29, align 8, !tbaa !18
  %.not115 = icmp eq i32 %44, 2
  br i1 %.not115, label %48, label %45

45:                                               ; preds = %43
  %46 = getelementptr inbounds i8, ptr %0, i64 40
  %47 = load ptr, ptr %46, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %47(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 87, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.8, i32 noundef %44, i32 noundef 2)
  br label %139

48:                                               ; preds = %43
  %49 = load i32, ptr %33, align 8, !tbaa !18
  %.not116 = icmp eq i32 %49, 1
  br i1 %.not116, label %53, label %50

50:                                               ; preds = %48
  %51 = getelementptr inbounds i8, ptr %0, i64 40
  %52 = load ptr, ptr %51, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %52(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 88, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.12, i32 noundef %49, i32 noundef 1)
  br label %139

53:                                               ; preds = %48
  %54 = getelementptr inbounds i8, ptr %21, i64 16
  %55 = load ptr, ptr %54, align 8, !tbaa !26
  %56 = load i32, ptr %55, align 4, !tbaa !11
  %.not117 = icmp eq i32 %56, 1
  br i1 %.not117, label %60, label %57

57:                                               ; preds = %53
  %58 = getelementptr inbounds i8, ptr %0, i64 40
  %59 = load ptr, ptr %58, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %59(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 89, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.14, i32 noundef %56, i32 noundef 1)
  br label %139

60:                                               ; preds = %53
  %61 = getelementptr inbounds i8, ptr %25, i64 16
  %62 = load ptr, ptr %61, align 8, !tbaa !26
  %63 = load i32, ptr %62, align 4, !tbaa !11
  %.not118 = icmp eq i32 %63, 1
  br i1 %.not118, label %67, label %64

64:                                               ; preds = %60
  %65 = getelementptr inbounds i8, ptr %0, i64 40
  %66 = load ptr, ptr %65, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %66(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 90, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.14, i32 noundef %63, i32 noundef 1)
  br label %139

67:                                               ; preds = %60
  %68 = getelementptr inbounds i8, ptr %29, i64 16
  %69 = load ptr, ptr %68, align 8, !tbaa !26
  %70 = load i32, ptr %69, align 4, !tbaa !11
  %.not119 = icmp eq i32 %70, 2
  br i1 %.not119, label %74, label %71

71:                                               ; preds = %67
  %72 = getelementptr inbounds i8, ptr %0, i64 40
  %73 = load ptr, ptr %72, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %73(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 91, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.6, i32 noundef %70, i32 noundef 2)
  br label %139

74:                                               ; preds = %67
  %75 = getelementptr inbounds i8, ptr %33, i64 16
  %76 = load ptr, ptr %75, align 8, !tbaa !26
  %77 = load i32, ptr %76, align 4, !tbaa !11
  %.not120 = icmp eq i32 %77, 2
  br i1 %.not120, label %81, label %78

78:                                               ; preds = %74
  %79 = getelementptr inbounds i8, ptr %0, i64 40
  %80 = load ptr, ptr %79, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %80(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 92, ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.6, i32 noundef %77, i32 noundef 2)
  br label %139

81:                                               ; preds = %74
  %82 = getelementptr inbounds i8, ptr %62, i64 4
  %83 = load i32, ptr %82, align 4, !tbaa !11
  %84 = getelementptr inbounds i8, ptr %69, i64 4
  %85 = load i32, ptr %84, align 4, !tbaa !11
  %.not121 = icmp eq i32 %83, %85
  br i1 %.not121, label %89, label %86

86:                                               ; preds = %81
  %87 = getelementptr inbounds i8, ptr %0, i64 40
  %88 = load ptr, ptr %87, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %88(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 94, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.19, i32 noundef %83, i32 noundef %85)
  br label %139

89:                                               ; preds = %81
  %90 = getelementptr inbounds i8, ptr %76, i64 4
  %91 = load i32, ptr %90, align 4, !tbaa !11
  %.not122 = icmp eq i32 %83, %91
  br i1 %.not122, label %95, label %92

92:                                               ; preds = %89
  %93 = getelementptr inbounds i8, ptr %0, i64 40
  %94 = load ptr, ptr %93, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %94(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 96, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.20, i32 noundef %83, i32 noundef %91)
  br label %139

95:                                               ; preds = %89
  %96 = getelementptr inbounds i8, ptr %69, i64 8
  %97 = load i32, ptr %96, align 4, !tbaa !11
  %98 = getelementptr inbounds i8, ptr %76, i64 8
  %99 = load i32, ptr %98, align 4, !tbaa !11
  %.not123 = icmp eq i32 %97, %99
  br i1 %.not123, label %103, label %100

100:                                              ; preds = %95
  %101 = getelementptr inbounds i8, ptr %0, i64 40
  %102 = load ptr, ptr %101, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %102(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 98, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.22, i32 noundef %97, i32 noundef %99)
  br label %139

103:                                              ; preds = %95
  %104 = getelementptr inbounds i8, ptr %1, i64 32
  %105 = load ptr, ptr %104, align 8, !tbaa !27
  %106 = tail call noundef ptr @_ZN6tflite3ops6custom7predict13PredictOption4CastEPv(ptr noundef %105)
  %107 = load ptr, ptr %16, align 8, !tbaa !17
  %108 = load ptr, ptr %9, align 8, !tbaa !16
  %109 = getelementptr inbounds i8, ptr %108, i64 4
  %110 = load i32, ptr %109, align 4, !tbaa !11
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds %struct.TfLiteTensor, ptr %107, i64 %111
  %113 = getelementptr inbounds i8, ptr %108, i64 8
  %114 = load i32, ptr %113, align 4, !tbaa !11
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds %struct.TfLiteTensor, ptr %107, i64 %115
  %117 = load i32, ptr %112, align 8, !tbaa !18
  %.not124 = icmp eq i32 %117, 2
  br i1 %.not124, label %121, label %118

118:                                              ; preds = %103
  %119 = getelementptr inbounds i8, ptr %0, i64 40
  %120 = load ptr, ptr %119, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %120(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 103, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.8, i32 noundef %117, i32 noundef 2)
  br label %139

121:                                              ; preds = %103
  %122 = load i32, ptr %116, align 8, !tbaa !18
  %.not125 = icmp eq i32 %122, 1
  br i1 %.not125, label %126, label %123

123:                                              ; preds = %121
  %124 = getelementptr inbounds i8, ptr %0, i64 40
  %125 = load ptr, ptr %124, align 8, !tbaa !12
  tail call void (ptr, ptr, ...) %125(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 104, ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.12, i32 noundef %122, i32 noundef 1)
  br label %139

126:                                              ; preds = %121
  %127 = tail call ptr @TfLiteIntArrayCreate(i32 noundef 1)
  %128 = load i32, ptr %106, align 4, !tbaa !28
  %129 = getelementptr inbounds i8, ptr %127, i64 4
  store i32 %128, ptr %129, align 4, !tbaa !11
  %130 = tail call ptr @TfLiteIntArrayCreate(i32 noundef 1)
  %131 = load i32, ptr %106, align 4, !tbaa !28
  %132 = getelementptr inbounds i8, ptr %130, i64 4
  store i32 %131, ptr %132, align 4, !tbaa !11
  %133 = getelementptr inbounds i8, ptr %0, i64 32
  %134 = load ptr, ptr %133, align 8, !tbaa !30
  %135 = tail call noundef i32 %134(ptr noundef nonnull %0, ptr noundef nonnull %112, ptr noundef %127)
  %.not126 = icmp eq i32 %135, 0
  br i1 %.not126, label %136, label %139

136:                                              ; preds = %126
  %137 = load ptr, ptr %133, align 8, !tbaa !30
  %138 = tail call noundef i32 %137(ptr noundef nonnull %0, ptr noundef nonnull %116, ptr noundef nonnull %130)
  br label %139

139:                                              ; preds = %35, %40, %45, %50, %57, %64, %71, %78, %86, %92, %100, %136, %126, %123, %118, %12, %5
  %.3 = phi i32 [ 1, %5 ], [ 1, %12 ], [ 1, %35 ], [ 1, %40 ], [ 1, %45 ], [ 1, %50 ], [ 1, %57 ], [ 1, %64 ], [ 1, %71 ], [ 1, %78 ], [ 1, %86 ], [ 1, %92 ], [ 1, %100 ], [ 1, %118 ], [ 1, %123 ], [ %138, %136 ], [ %135, %126 ]
  ret i32 %.3
}

declare ptr @TfLiteIntArrayCreate(i32 noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_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 = !{!10, !10, i64 0}
!12 = !{!13, !7, i64 40}
!13 = !{!"_ZTS13TfLiteContext", !14, 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, !15, i64 96, !7, i64 104}
!14 = !{!"long", !8, i64 0}
!15 = !{!"bool", !8, i64 0}
!16 = !{!6, !7, i64 8}
!17 = !{!13, !7, i64 16}
!18 = !{!19, !20, i64 0}
!19 = !{!"_ZTS12TfLiteTensor", !20, i64 0, !8, i64 8, !7, i64 16, !21, i64 24, !23, i64 32, !14, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !10, i64 72, !15, i64 76, !15, i64 77, !24, i64 80}
!20 = !{!"_ZTS10TfLiteType", !8, i64 0}
!21 = !{!"_ZTS24TfLiteQuantizationParams", !22, i64 0, !10, i64 4}
!22 = !{!"float", !8, i64 0}
!23 = !{!"_ZTS20TfLiteAllocationType", !8, i64 0}
!24 = !{!"_ZTS18TfLiteQuantization", !25, i64 0, !7, i64 8}
!25 = !{!"_ZTS22TfLiteQuantizationType", !8, i64 0}
!26 = !{!19, !7, i64 16}
!27 = !{!6, !7, i64 32}
!28 = !{!29, !10, i64 0}
!29 = !{!"_ZTSN6tflite3ops6custom7predict13PredictOptionE", !10, i64 0, !22, i64 4}
!30 = !{!13, !7, i64 32}


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