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

; 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.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.TfLiteConcatenationParams = type { i32, i32 }
%struct.TfLiteContext = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [141 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [148 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [88 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops5micro13concatenation7PrepareEP13TfLiteContextP10TfLiteNode(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.TfLiteNode, ptr %14, i32 0, i32 5
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  store ptr %16, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %17, ptr noundef %18, i32 noundef 0)
  %20 = getelementptr inbounds %struct.TfLiteTensor, ptr %19, i32 0, i32 0
  %21 = load i32, ptr %20, align 8, !tbaa !12
  store i32 %21, ptr %7, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = call noundef ptr @_ZN6tflite9GetOutputEP13TfLiteContextPK10TfLiteNodei(ptr noundef %22, ptr noundef %23, i32 noundef 0)
  %25 = getelementptr inbounds %struct.TfLiteTensor, ptr %24, i32 0, i32 0
  %26 = load i32, ptr %25, align 8, !tbaa !12
  store i32 %26, ptr %8, align 4, !tbaa !22
  br label %27

27:                                               ; preds = %2
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.TfLiteConcatenationParams, ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 4, !tbaa !23
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %43

32:                                               ; preds = %27
  br label %33

33:                                               ; preds = %32
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.TfLiteContext, ptr %34, i32 0, i32 5
  %36 = load ptr, ptr %35, align 8, !tbaa !26
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.TfLiteConcatenationParams, ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 4, !tbaa !23
  call void (ptr, ptr, ...) %36(ptr noundef %37, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 44, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef %40, i32 noundef 0)
  br label %41

41:                                               ; preds = %33
  br label %42

42:                                               ; preds = %41
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %139

43:                                               ; preds = %27
  br label %44

44:                                               ; preds = %43
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45
  %47 = load i32, ptr %7, align 4, !tbaa !22
  %48 = icmp eq i32 %47, 1
  br i1 %48, label %69, label %49

49:                                               ; preds = %46
  %50 = load i32, ptr %7, align 4, !tbaa !22
  %51 = icmp eq i32 %50, 3
  br i1 %51, label %69, label %52

52:                                               ; preds = %49
  %53 = load i32, ptr %7, align 4, !tbaa !22
  %54 = icmp eq i32 %53, 9
  br i1 %54, label %69, label %55

55:                                               ; preds = %52
  %56 = load i32, ptr %7, align 4, !tbaa !22
  %57 = icmp eq i32 %56, 2
  br i1 %57, label %69, label %58

58:                                               ; preds = %55
  %59 = load i32, ptr %7, align 4, !tbaa !22
  %60 = icmp eq i32 %59, 4
  br i1 %60, label %69, label %61

61:                                               ; preds = %58
  br label %62

62:                                               ; preds = %61
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.TfLiteContext, ptr %63, i32 0, i32 5
  %65 = load ptr, ptr %64, align 8, !tbaa !26
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, ptr, ...) %65(ptr noundef %66, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 48, ptr noundef @.str.5)
  br label %67

67:                                               ; preds = %62
  br label %68

68:                                               ; preds = %67
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %139

69:                                               ; preds = %58, %55, %52, %49, %46
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %8, align 4, !tbaa !22
  %74 = load i32, ptr %7, align 4, !tbaa !22
  %75 = icmp ne i32 %73, %74
  br i1 %75, label %76, label %86

76:                                               ; preds = %72
  br label %77

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

84:                                               ; preds = %77
  br label %85

85:                                               ; preds = %84
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %139

86:                                               ; preds = %72
  br label %87

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = call noundef i32 @_ZN6tflite9NumInputsEPK10TfLiteNode(ptr noundef %89)
  store i32 %90, ptr %10, align 4, !tbaa !28
  br label %91

91:                                               ; preds = %88
  %92 = load i32, ptr %10, align 4, !tbaa !28
  %93 = icmp sle i32 %92, 10
  br i1 %93, label %102, label %94

94:                                               ; preds = %91
  br label %95

95:                                               ; preds = %94
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.TfLiteContext, ptr %96, i32 0, i32 5
  %98 = load ptr, ptr %97, align 8, !tbaa !26
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, ptr, ...) %98(ptr noundef %99, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 55, ptr noundef @.str.8)
  br label %100

100:                                              ; preds = %95
  br label %101

101:                                              ; preds = %100
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %138

102:                                              ; preds = %91
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !28
  br label %105

105:                                              ; preds = %132, %104
  %106 = load i32, ptr %11, align 4, !tbaa !28
  %107 = load i32, ptr %10, align 4, !tbaa !28
  %108 = icmp slt i32 %106, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %105
  store i32 18, ptr %9, align 4
  br label %135

110:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = load i32, ptr %11, align 4, !tbaa !28
  %114 = call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %111, ptr noundef %112, i32 noundef %113)
  store ptr %114, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = call noundef i32 @_ZN6tflite13NumDimensionsEPK12TfLiteTensor(ptr noundef %115)
  store i32 %116, ptr %13, align 4, !tbaa !28
  %117 = load i32, ptr %13, align 4, !tbaa !28
  %118 = icmp sgt i32 %117, 4
  br i1 %118, label %119, label %128

119:                                              ; preds = %110
  br label %120

120:                                              ; preds = %119
  %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 !26
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = load i32, ptr %13, align 4, !tbaa !28
  call void (ptr, ptr, ...) %123(ptr noundef %124, ptr noundef @.str.9, i32 noundef %125)
  br label %126

126:                                              ; preds = %120
  br label %127

127:                                              ; preds = %126
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %129

128:                                              ; preds = %110
  store i32 0, ptr %9, align 4
  br label %129

129:                                              ; preds = %128, %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  %130 = load i32, ptr %9, align 4
  switch i32 %130, label %135 [
    i32 0, label %131
  ]

131:                                              ; preds = %129
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %11, align 4, !tbaa !28
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %11, align 4, !tbaa !28
  br label %105, !llvm.loop !29

135:                                              ; preds = %129, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  %136 = load i32, ptr %9, align 4
  switch i32 %136, label %138 [
    i32 18, label %137
  ]

137:                                              ; preds = %135
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %138

138:                                              ; preds = %137, %135, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %139

139:                                              ; preds = %138, %85, %68, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %140 = load i32, ptr %3, align 4
  ret i32 %140
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6tflite9NumInputsEPK10TfLiteNode(ptr noundef) #2

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

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

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 = { 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 = { 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 40}
!10 = !{!"_ZTS10TfLiteNode", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !6, i64 64}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTS12TfLiteTensor", !14, i64 0, !7, i64 8, !6, i64 16, !15, i64 24, !17, i64 32, !18, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !19, i64 76, !19, i64 77, !20, i64 80, !6, i64 96, !6, i64 104}
!14 = !{!"_ZTS10TfLiteType", !7, i64 0}
!15 = !{!"_ZTS24TfLiteQuantizationParams", !16, i64 0, !11, i64 4}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTS20TfLiteAllocationType", !7, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTS18TfLiteQuantization", !21, i64 0, !6, i64 8}
!21 = !{!"_ZTS22TfLiteQuantizationType", !7, i64 0}
!22 = !{!14, !14, i64 0}
!23 = !{!24, !25, i64 4}
!24 = !{!"_ZTS25TfLiteConcatenationParams", !11, i64 0, !25, i64 4}
!25 = !{!"_ZTS21TfLiteFusedActivation", !7, i64 0}
!26 = !{!27, !6, i64 40}
!27 = !{!"_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}
!28 = !{!11, !11, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


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

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [141 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [148 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [88 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops5micro13concatenation7PrepareEP13TfLiteContextP10TfLiteNode(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %1, i64 40
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = tail call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef %1, i32 noundef 0)
  %6 = load i32, ptr %5, align 8, !tbaa !11
  %7 = tail call noundef ptr @_ZN6tflite9GetOutputEP13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef %1, i32 noundef 0)
  %8 = load i32, ptr %7, align 8, !tbaa !11
  %9 = getelementptr inbounds i8, ptr %4, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !21
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %14, label %11

11:                                               ; preds = %2
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  %13 = load ptr, ptr %12, align 8, !tbaa !24
  tail call void (ptr, ptr, ...) %13(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 44, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef %10, i32 noundef 0)
  br label %37

14:                                               ; preds = %2
  switch i32 %6, label %15 [
    i32 9, label %18
    i32 4, label %18
    i32 3, label %18
    i32 2, label %18
    i32 1, label %18
  ]

15:                                               ; preds = %14
  %16 = getelementptr inbounds i8, ptr %0, i64 40
  %17 = load ptr, ptr %16, align 8, !tbaa !24
  tail call void (ptr, ptr, ...) %17(ptr noundef %0, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 48, ptr noundef nonnull @.str.5)
  br label %37

18:                                               ; preds = %14, %14, %14, %14, %14
  %.not55 = icmp eq i32 %8, %6
  br i1 %.not55, label %22, label %19

19:                                               ; preds = %18
  %20 = getelementptr inbounds i8, ptr %0, i64 40
  %21 = load ptr, ptr %20, align 8, !tbaa !24
  tail call void (ptr, ptr, ...) %21(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 51, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, i32 noundef %8, i32 noundef %6)
  br label %37

22:                                               ; preds = %18
  %23 = tail call noundef i32 @_ZN6tflite9NumInputsEPK10TfLiteNode(ptr noundef nonnull %1)
  %24 = icmp slt i32 %23, 11
  br i1 %24, label %.preheader, label %28

.preheader:                                       ; preds = %22
  %.not5659 = icmp sgt i32 %23, 0
  br i1 %.not5659, label %.critedge.preheader, label %.loopexit

.critedge.preheader:                              ; preds = %.preheader
  %25 = tail call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef %1, i32 noundef 0)
  %26 = tail call noundef i32 @_ZN6tflite13NumDimensionsEPK12TfLiteTensor(ptr noundef %25)
  %27 = icmp slt i32 %26, 5
  br i1 %27, label %.lr.ph, label %.critedge._crit_edge

28:                                               ; preds = %22
  %29 = getelementptr inbounds i8, ptr %0, i64 40
  %30 = load ptr, ptr %29, align 8, !tbaa !24
  tail call void (ptr, ptr, ...) %30(ptr noundef %0, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 55, ptr noundef nonnull @.str.8)
  br label %37

.lr.ph:                                           ; preds = %.critedge.preheader, %.critedge
  %.0496068 = phi i32 [ %31, %.critedge ], [ 0, %.critedge.preheader ]
  %31 = add nuw nsw i32 %.0496068, 1
  %exitcond.not = icmp eq i32 %31, %23
  br i1 %exitcond.not, label %.loopexit, label %.critedge, !llvm.loop !26

.critedge:                                        ; preds = %.lr.ph
  %32 = tail call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef %1, i32 noundef %31)
  %33 = tail call noundef i32 @_ZN6tflite13NumDimensionsEPK12TfLiteTensor(ptr noundef %32)
  %34 = icmp slt i32 %33, 5
  br i1 %34, label %.lr.ph, label %.critedge._crit_edge.loopexit, !llvm.loop !26

.critedge._crit_edge.loopexit:                    ; preds = %.critedge
  %.not56.le = icmp slt i32 %31, %23
  br label %.critedge._crit_edge

.critedge._crit_edge:                             ; preds = %.critedge._crit_edge.loopexit, %.critedge.preheader
  %.not5661.lcssa = phi i1 [ true, %.critedge.preheader ], [ %.not56.le, %.critedge._crit_edge.loopexit ]
  %.lcssa = phi i32 [ %26, %.critedge.preheader ], [ %33, %.critedge._crit_edge.loopexit ]
  %35 = getelementptr inbounds i8, ptr %0, i64 40
  %36 = load ptr, ptr %35, align 8, !tbaa !24
  tail call void (ptr, ptr, ...) %36(ptr noundef %0, ptr noundef nonnull @.str.9, i32 noundef %.lcssa)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %.preheader, %.critedge._crit_edge
  %.not5658 = phi i1 [ %.not5661.lcssa, %.critedge._crit_edge ], [ false, %.preheader ], [ false, %.lr.ph ]
  %spec.select = zext i1 %.not5658 to i32
  br label %37

37:                                               ; preds = %.loopexit, %28, %19, %15, %11
  %.4 = phi i32 [ 1, %11 ], [ 1, %19 ], [ 1, %15 ], [ 1, %28 ], [ %spec.select, %.loopexit ]
  ret i32 %.4
}

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

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

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

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

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 = { 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" }

!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 40}
!6 = !{!"_ZTS10TfLiteNode", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !7, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS12TfLiteTensor", !13, i64 0, !8, i64 8, !7, i64 16, !14, i64 24, !16, i64 32, !17, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !10, i64 72, !18, i64 76, !18, i64 77, !19, i64 80, !7, i64 96, !7, i64 104}
!13 = !{!"_ZTS10TfLiteType", !8, i64 0}
!14 = !{!"_ZTS24TfLiteQuantizationParams", !15, i64 0, !10, i64 4}
!15 = !{!"float", !8, i64 0}
!16 = !{!"_ZTS20TfLiteAllocationType", !8, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!"bool", !8, i64 0}
!19 = !{!"_ZTS18TfLiteQuantization", !20, i64 0, !7, i64 8}
!20 = !{!"_ZTS22TfLiteQuantizationType", !8, i64 0}
!21 = !{!22, !23, i64 4}
!22 = !{!"_ZTS25TfLiteConcatenationParams", !10, i64 0, !23, i64 4}
!23 = !{!"_ZTS21TfLiteFusedActivation", !8, i64 0}
!24 = !{!25, !7, i64 40}
!25 = !{!"_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}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass