; LLVM IR from NVIDIA/tensorflow :: tensorflow/lite/kernels/internal (kernel_utils)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6tflite12kernel_utils12RnnBatchStepEPKfS2_S2_S2_S2_S2_iiiii21TfLiteFusedActivationPfS4_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef %11, ptr noundef %12, ptr noundef %13) #0 {
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  store ptr %0, ptr %15, align 8, !tbaa !5
  store ptr %1, ptr %16, align 8, !tbaa !5
  store ptr %2, ptr %17, align 8, !tbaa !5
  store ptr %3, ptr %18, align 8, !tbaa !5
  store ptr %4, ptr %19, align 8, !tbaa !5
  store ptr %5, ptr %20, align 8, !tbaa !5
  store i32 %6, ptr %21, align 4, !tbaa !9
  store i32 %7, ptr %22, align 4, !tbaa !9
  store i32 %8, ptr %23, align 4, !tbaa !9
  store i32 %9, ptr %24, align 4, !tbaa !9
  store i32 %10, ptr %25, align 4, !tbaa !9
  store i32 %11, ptr %26, align 4, !tbaa !11
  store ptr %12, ptr %27, align 8, !tbaa !5
  store ptr %13, ptr %28, align 8, !tbaa !5
  %34 = load i32, ptr %25, align 4, !tbaa !9
  %35 = load i32, ptr %23, align 4, !tbaa !9
  %36 = icmp eq i32 %34, %35
  br i1 %36, label %37, label %76

37:                                               ; preds = %14
  %38 = load ptr, ptr %20, align 8, !tbaa !5
  %39 = load i32, ptr %23, align 4, !tbaa !9
  %40 = load i32, ptr %24, align 4, !tbaa !9
  %41 = load ptr, ptr %28, align 8, !tbaa !5
  call void @_ZN6tflite12tensor_utils23VectorBatchVectorAssignIfEEvPKT_iiPS2_(ptr noundef %38, i32 noundef %39, i32 noundef %40, ptr noundef %41)
  %42 = load ptr, ptr %16, align 8, !tbaa !5
  %43 = load i32, ptr %23, align 4, !tbaa !9
  %44 = load i32, ptr %21, align 4, !tbaa !9
  %45 = load ptr, ptr %15, align 8, !tbaa !5
  %46 = load i32, ptr %24, align 4, !tbaa !9
  %47 = load ptr, ptr %28, align 8, !tbaa !5
  call void @_ZN6tflite12tensor_utils35MatrixBatchVectorMultiplyAccumulateEPKfiiS2_iPfi(ptr noundef %42, i32 noundef %43, i32 noundef %44, ptr noundef %45, i32 noundef %46, ptr noundef %47, i32 noundef 1)
  %48 = load i32, ptr %22, align 4, !tbaa !9
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %50, label %57

50:                                               ; preds = %37
  %51 = load ptr, ptr %18, align 8, !tbaa !5
  %52 = load i32, ptr %23, align 4, !tbaa !9
  %53 = load i32, ptr %22, align 4, !tbaa !9
  %54 = load ptr, ptr %17, align 8, !tbaa !5
  %55 = load i32, ptr %24, align 4, !tbaa !9
  %56 = load ptr, ptr %28, align 8, !tbaa !5
  call void @_ZN6tflite12tensor_utils35MatrixBatchVectorMultiplyAccumulateEPKfiiS2_iPfi(ptr noundef %51, i32 noundef %52, i32 noundef %53, ptr noundef %54, i32 noundef %55, ptr noundef %56, i32 noundef 1)
  br label %57

57:                                               ; preds = %50, %37
  %58 = load ptr, ptr %19, align 8, !tbaa !5
  %59 = load i32, ptr %23, align 4, !tbaa !9
  %60 = load i32, ptr %23, align 4, !tbaa !9
  %61 = load ptr, ptr %27, align 8, !tbaa !5
  %62 = load i32, ptr %24, align 4, !tbaa !9
  %63 = load ptr, ptr %28, align 8, !tbaa !5
  call void @_ZN6tflite12tensor_utils35MatrixBatchVectorMultiplyAccumulateEPKfiiS2_iPfi(ptr noundef %58, i32 noundef %59, i32 noundef %60, ptr noundef %61, i32 noundef %62, ptr noundef %63, i32 noundef 1)
  %64 = load ptr, ptr %28, align 8, !tbaa !5
  %65 = load i32, ptr %23, align 4, !tbaa !9
  %66 = load i32, ptr %24, align 4, !tbaa !9
  %67 = mul nsw i32 %65, %66
  %68 = load i32, ptr %26, align 4, !tbaa !11
  %69 = load ptr, ptr %28, align 8, !tbaa !5
  call void @_ZN6tflite12tensor_utils23ApplyActivationToVectorEPKfi21TfLiteFusedActivationPf(ptr noundef %64, i32 noundef %67, i32 noundef %68, ptr noundef %69)
  %70 = load ptr, ptr %28, align 8, !tbaa !5
  %71 = load i32, ptr %23, align 4, !tbaa !9
  %72 = load i32, ptr %24, align 4, !tbaa !9
  %73 = mul nsw i32 %71, %72
  %74 = load ptr, ptr %27, align 8, !tbaa !5
  %75 = call noundef ptr @_ZSt6copy_nIPfiS0_ET1_T_T0_S1_(ptr noundef %70, i32 noundef %73, ptr noundef %74)
  br label %213

76:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %92, %76
  %78 = load i32, ptr %29, align 4, !tbaa !9
  %79 = load i32, ptr %24, align 4, !tbaa !9
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %95

82:                                               ; preds = %77
  %83 = load ptr, ptr %20, align 8, !tbaa !5
  %84 = load i32, ptr %23, align 4, !tbaa !9
  %85 = load ptr, ptr %28, align 8, !tbaa !5
  %86 = load i32, ptr %29, align 4, !tbaa !9
  %87 = load i32, ptr %25, align 4, !tbaa !9
  %88 = mul nsw i32 %86, %87
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %85, i64 %89
  %91 = call noundef ptr @_ZSt6copy_nIPKfiPfET1_T_T0_S3_(ptr noundef %83, i32 noundef %84, ptr noundef %90)
  br label %92

92:                                               ; preds = %82
  %93 = load i32, ptr %29, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %29, align 4, !tbaa !9
  br label %77, !llvm.loop !13

95:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %117, %95
  %97 = load i32, ptr %30, align 4, !tbaa !9
  %98 = load i32, ptr %24, align 4, !tbaa !9
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %101, label %100

100:                                              ; preds = %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  br label %120

101:                                              ; preds = %96
  %102 = load ptr, ptr %16, align 8, !tbaa !5
  %103 = load i32, ptr %23, align 4, !tbaa !9
  %104 = load i32, ptr %21, align 4, !tbaa !9
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = load i32, ptr %30, align 4, !tbaa !9
  %107 = load i32, ptr %21, align 4, !tbaa !9
  %108 = mul nsw i32 %106, %107
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds float, ptr %105, i64 %109
  %111 = load ptr, ptr %28, align 8, !tbaa !5
  %112 = load i32, ptr %30, align 4, !tbaa !9
  %113 = load i32, ptr %25, align 4, !tbaa !9
  %114 = mul nsw i32 %112, %113
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds float, ptr %111, i64 %115
  call void @_ZN6tflite12tensor_utils35MatrixBatchVectorMultiplyAccumulateEPKfiiS2_iPfi(ptr noundef %102, i32 noundef %103, i32 noundef %104, ptr noundef %110, i32 noundef 1, ptr noundef %116, i32 noundef 1)
  br label %117

117:                                              ; preds = %101
  %118 = load i32, ptr %30, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %30, align 4, !tbaa !9
  br label %96, !llvm.loop !15

120:                                              ; preds = %100
  %121 = load i32, ptr %22, align 4, !tbaa !9
  %122 = icmp sgt i32 %121, 0
  br i1 %122, label %123, label %149

123:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %145, %123
  %125 = load i32, ptr %31, align 4, !tbaa !9
  %126 = load i32, ptr %24, align 4, !tbaa !9
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %129, label %128

128:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  br label %148

129:                                              ; preds = %124
  %130 = load ptr, ptr %18, align 8, !tbaa !5
  %131 = load i32, ptr %23, align 4, !tbaa !9
  %132 = load i32, ptr %22, align 4, !tbaa !9
  %133 = load ptr, ptr %17, align 8, !tbaa !5
  %134 = load i32, ptr %31, align 4, !tbaa !9
  %135 = load i32, ptr %22, align 4, !tbaa !9
  %136 = mul nsw i32 %134, %135
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds float, ptr %133, i64 %137
  %139 = load ptr, ptr %28, align 8, !tbaa !5
  %140 = load i32, ptr %31, align 4, !tbaa !9
  %141 = load i32, ptr %25, align 4, !tbaa !9
  %142 = mul nsw i32 %140, %141
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds float, ptr %139, i64 %143
  call void @_ZN6tflite12tensor_utils35MatrixBatchVectorMultiplyAccumulateEPKfiiS2_iPfi(ptr noundef %130, i32 noundef %131, i32 noundef %132, ptr noundef %138, i32 noundef 1, ptr noundef %144, i32 noundef 1)
  br label %145

145:                                              ; preds = %129
  %146 = load i32, ptr %31, align 4, !tbaa !9
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %31, align 4, !tbaa !9
  br label %124, !llvm.loop !16

148:                                              ; preds = %128
  br label %149

149:                                              ; preds = %148, %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %150

150:                                              ; preds = %171, %149
  %151 = load i32, ptr %32, align 4, !tbaa !9
  %152 = load i32, ptr %24, align 4, !tbaa !9
  %153 = icmp slt i32 %151, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  br label %174

155:                                              ; preds = %150
  %156 = load ptr, ptr %19, align 8, !tbaa !5
  %157 = load i32, ptr %23, align 4, !tbaa !9
  %158 = load i32, ptr %23, align 4, !tbaa !9
  %159 = load ptr, ptr %27, align 8, !tbaa !5
  %160 = load i32, ptr %32, align 4, !tbaa !9
  %161 = load i32, ptr %23, align 4, !tbaa !9
  %162 = mul nsw i32 %160, %161
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds float, ptr %159, i64 %163
  %165 = load ptr, ptr %28, align 8, !tbaa !5
  %166 = load i32, ptr %32, align 4, !tbaa !9
  %167 = load i32, ptr %25, align 4, !tbaa !9
  %168 = mul nsw i32 %166, %167
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds float, ptr %165, i64 %169
  call void @_ZN6tflite12tensor_utils35MatrixBatchVectorMultiplyAccumulateEPKfiiS2_iPfi(ptr noundef %156, i32 noundef %157, i32 noundef %158, ptr noundef %164, i32 noundef 1, ptr noundef %170, i32 noundef 1)
  br label %171

171:                                              ; preds = %155
  %172 = load i32, ptr %32, align 4, !tbaa !9
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %32, align 4, !tbaa !9
  br label %150, !llvm.loop !17

174:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %209, %174
  %176 = load i32, ptr %33, align 4, !tbaa !9
  %177 = load i32, ptr %24, align 4, !tbaa !9
  %178 = icmp slt i32 %176, %177
  br i1 %178, label %180, label %179

179:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  br label %212

180:                                              ; preds = %175
  %181 = load ptr, ptr %28, align 8, !tbaa !5
  %182 = load i32, ptr %33, align 4, !tbaa !9
  %183 = load i32, ptr %25, align 4, !tbaa !9
  %184 = mul nsw i32 %182, %183
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds float, ptr %181, i64 %185
  %187 = load i32, ptr %23, align 4, !tbaa !9
  %188 = load i32, ptr %26, align 4, !tbaa !11
  %189 = load ptr, ptr %28, align 8, !tbaa !5
  %190 = load i32, ptr %33, align 4, !tbaa !9
  %191 = load i32, ptr %25, align 4, !tbaa !9
  %192 = mul nsw i32 %190, %191
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds float, ptr %189, i64 %193
  call void @_ZN6tflite12tensor_utils23ApplyActivationToVectorEPKfi21TfLiteFusedActivationPf(ptr noundef %186, i32 noundef %187, i32 noundef %188, ptr noundef %194)
  %195 = load ptr, ptr %28, align 8, !tbaa !5
  %196 = load i32, ptr %33, align 4, !tbaa !9
  %197 = load i32, ptr %25, align 4, !tbaa !9
  %198 = mul nsw i32 %196, %197
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds float, ptr %195, i64 %199
  %201 = load i32, ptr %23, align 4, !tbaa !9
  %202 = load ptr, ptr %27, align 8, !tbaa !5
  %203 = load i32, ptr %33, align 4, !tbaa !9
  %204 = load i32, ptr %23, align 4, !tbaa !9
  %205 = mul nsw i32 %203, %204
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds float, ptr %202, i64 %206
  %208 = call noundef ptr @_ZSt6copy_nIPfiS0_ET1_T_T0_S1_(ptr noundef %200, i32 noundef %201, ptr noundef %207)
  br label %209

209:                                              ; preds = %180
  %210 = load i32, ptr %33, align 4, !tbaa !9
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %33, align 4, !tbaa !9
  br label %175, !llvm.loop !18

212:                                              ; preds = %179
  br label %213

213:                                              ; preds = %212, %57
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6tflite12tensor_utils23VectorBatchVectorAssignIfEEvPKT_iiPS2_(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #0

declare void @_ZN6tflite12tensor_utils35MatrixBatchVectorMultiplyAccumulateEPKfiiS2_iPfi(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1

declare void @_ZN6tflite12tensor_utils23ApplyActivationToVectorEPKfi21TfLiteFusedActivationPf(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS21TfLiteFusedActivation", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6tflite12kernel_utils12RnnBatchStepEPKfS2_S2_S2_S2_S2_iiiii21TfLiteFusedActivationPfS4_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef %11, ptr noundef %12, ptr noundef %13) local_unnamed_addr #0 {
  %15 = icmp eq i32 %10, %8
  br i1 %15, label %18, label %.preheader108

.preheader108:                                    ; preds = %14
  %16 = icmp sgt i32 %9, 0
  br i1 %16, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %.preheader108
  %17 = sext i32 %10 to i64
  %wide.trip.count = zext nneg i32 %9 to i64
  br label %.lr.ph

18:                                               ; preds = %14
  tail call void @_ZN6tflite12tensor_utils23VectorBatchVectorAssignIfEEvPKT_iiPS2_(ptr noundef %5, i32 noundef %10, i32 noundef %9, ptr noundef %13)
  tail call void @_ZN6tflite12tensor_utils35MatrixBatchVectorMultiplyAccumulateEPKfiiS2_iPfi(ptr noundef %1, i32 noundef %10, i32 noundef %6, ptr noundef %0, i32 noundef %9, ptr noundef %13, i32 noundef 1)
  %19 = icmp sgt i32 %7, 0
  br i1 %19, label %20, label %21

20:                                               ; preds = %18
  tail call void @_ZN6tflite12tensor_utils35MatrixBatchVectorMultiplyAccumulateEPKfiiS2_iPfi(ptr noundef %3, i32 noundef %10, i32 noundef %7, ptr noundef %2, i32 noundef %9, ptr noundef %13, i32 noundef 1)
  br label %21

21:                                               ; preds = %20, %18
  tail call void @_ZN6tflite12tensor_utils35MatrixBatchVectorMultiplyAccumulateEPKfiiS2_iPfi(ptr noundef %4, i32 noundef %10, i32 noundef %10, ptr noundef %12, i32 noundef %9, ptr noundef %13, i32 noundef 1)
  %22 = mul nsw i32 %9, %10
  tail call void @_ZN6tflite12tensor_utils23ApplyActivationToVectorEPKfi21TfLiteFusedActivationPf(ptr noundef %13, i32 noundef %22, i32 noundef %11, ptr noundef %13)
  %23 = tail call noundef ptr @_ZSt6copy_nIPfiS0_ET1_T_T0_S1_(ptr noundef %13, i32 noundef %22, ptr noundef %12)
  br label %.loopexit

.preheader107:                                    ; preds = %.lr.ph
  br i1 %16, label %.lr.ph111.preheader, label %.loopexit

.lr.ph111.preheader:                              ; preds = %.preheader107
  %24 = sext i32 %6 to i64
  %25 = sext i32 %10 to i64
  %wide.trip.count123 = zext nneg i32 %9 to i64
  br label %.lr.ph111

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %26 = mul nsw i64 %indvars.iv, %17
  %27 = getelementptr inbounds float, ptr %13, i64 %26
  %28 = tail call noundef ptr @_ZSt6copy_nIPKfiPfET1_T_T0_S3_(ptr noundef %5, i32 noundef %8, ptr noundef %27)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader107, label %.lr.ph, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph111
  %29 = icmp sgt i32 %7, 0
  %or.cond = and i1 %29, %16
  br i1 %or.cond, label %.lr.ph113.preheader, label %.loopexit106

.lr.ph113.preheader:                              ; preds = %._crit_edge
  %30 = zext nneg i32 %7 to i64
  %31 = sext i32 %10 to i64
  %wide.trip.count128 = zext nneg i32 %9 to i64
  br label %.lr.ph113

.lr.ph111:                                        ; preds = %.lr.ph111.preheader, %.lr.ph111
  %indvars.iv120 = phi i64 [ 0, %.lr.ph111.preheader ], [ %indvars.iv.next121, %.lr.ph111 ]
  %32 = mul nsw i64 %indvars.iv120, %24
  %33 = getelementptr inbounds float, ptr %0, i64 %32
  %34 = mul nsw i64 %indvars.iv120, %25
  %35 = getelementptr inbounds float, ptr %13, i64 %34
  tail call void @_ZN6tflite12tensor_utils35MatrixBatchVectorMultiplyAccumulateEPKfiiS2_iPfi(ptr noundef %1, i32 noundef %8, i32 noundef %6, ptr noundef %33, i32 noundef 1, ptr noundef %35, i32 noundef 1)
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %exitcond124.not = icmp eq i64 %indvars.iv.next121, %wide.trip.count123
  br i1 %exitcond124.not, label %._crit_edge, label %.lr.ph111, !llvm.loop !7

.lr.ph113:                                        ; preds = %.lr.ph113.preheader, %.lr.ph113
  %indvars.iv125 = phi i64 [ 0, %.lr.ph113.preheader ], [ %indvars.iv.next126, %.lr.ph113 ]
  %36 = mul nuw nsw i64 %indvars.iv125, %30
  %37 = getelementptr inbounds float, ptr %2, i64 %36
  %38 = mul nsw i64 %indvars.iv125, %31
  %39 = getelementptr inbounds float, ptr %13, i64 %38
  tail call void @_ZN6tflite12tensor_utils35MatrixBatchVectorMultiplyAccumulateEPKfiiS2_iPfi(ptr noundef %3, i32 noundef %8, i32 noundef %7, ptr noundef %37, i32 noundef 1, ptr noundef %39, i32 noundef 1)
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %exitcond129.not = icmp eq i64 %indvars.iv.next126, %wide.trip.count128
  br i1 %exitcond129.not, label %.loopexit106, label %.lr.ph113, !llvm.loop !8

.loopexit106:                                     ; preds = %.lr.ph113, %._crit_edge
  br i1 %16, label %.lr.ph116.preheader, label %.loopexit

.lr.ph116.preheader:                              ; preds = %.loopexit106
  %40 = sext i32 %8 to i64
  %41 = sext i32 %10 to i64
  %wide.trip.count133 = zext nneg i32 %9 to i64
  br label %.lr.ph116

.preheader:                                       ; preds = %.lr.ph116
  br i1 %16, label %.lr.ph118.preheader, label %.loopexit

.lr.ph118.preheader:                              ; preds = %.preheader
  %42 = sext i32 %10 to i64
  %43 = sext i32 %8 to i64
  %wide.trip.count138 = zext nneg i32 %9 to i64
  br label %.lr.ph118

.lr.ph116:                                        ; preds = %.lr.ph116.preheader, %.lr.ph116
  %indvars.iv130 = phi i64 [ 0, %.lr.ph116.preheader ], [ %indvars.iv.next131, %.lr.ph116 ]
  %44 = mul nsw i64 %indvars.iv130, %40
  %45 = getelementptr inbounds float, ptr %12, i64 %44
  %46 = mul nsw i64 %indvars.iv130, %41
  %47 = getelementptr inbounds float, ptr %13, i64 %46
  tail call void @_ZN6tflite12tensor_utils35MatrixBatchVectorMultiplyAccumulateEPKfiiS2_iPfi(ptr noundef %4, i32 noundef %8, i32 noundef %8, ptr noundef %45, i32 noundef 1, ptr noundef %47, i32 noundef 1)
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %exitcond134.not = icmp eq i64 %indvars.iv.next131, %wide.trip.count133
  br i1 %exitcond134.not, label %.preheader, label %.lr.ph116, !llvm.loop !9

.lr.ph118:                                        ; preds = %.lr.ph118.preheader, %.lr.ph118
  %indvars.iv135 = phi i64 [ 0, %.lr.ph118.preheader ], [ %indvars.iv.next136, %.lr.ph118 ]
  %48 = mul nsw i64 %indvars.iv135, %42
  %49 = getelementptr inbounds float, ptr %13, i64 %48
  tail call void @_ZN6tflite12tensor_utils23ApplyActivationToVectorEPKfi21TfLiteFusedActivationPf(ptr noundef %49, i32 noundef %8, i32 noundef %11, ptr noundef %49)
  %50 = mul nsw i64 %indvars.iv135, %43
  %51 = getelementptr inbounds float, ptr %12, i64 %50
  %52 = tail call noundef ptr @_ZSt6copy_nIPfiS0_ET1_T_T0_S1_(ptr noundef %49, i32 noundef %8, ptr noundef %51)
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %exitcond139.not = icmp eq i64 %indvars.iv.next136, %wide.trip.count138
  br i1 %exitcond139.not, label %.loopexit, label %.lr.ph118, !llvm.loop !10

.loopexit:                                        ; preds = %.lr.ph118, %.preheader107, %.preheader108, %.loopexit106, %.preheader, %21
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6tflite12tensor_utils23VectorBatchVectorAssignIfEEvPKT_iiPS2_(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN6tflite12tensor_utils35MatrixBatchVectorMultiplyAccumulateEPKfiiS2_iPfi(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @_ZN6tflite12tensor_utils23ApplyActivationToVectorEPKfi21TfLiteFusedActivationPf(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

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

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}
!10 = distinct !{!10, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass