; LLVM IR from tensorflow/tflite-micro :: tensorflow/lite/micro/memory_planner (greedy_memory_planner)

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

%"class.tflite::GreedyMemoryPlanner" = type <{ %"class.tflite::MicroMemoryPlanner", i32, i32, ptr, ptr, ptr, ptr, i32, i32, ptr, i8, [7 x i8] }>
%"class.tflite::MicroMemoryPlanner" = type { ptr }
%"struct.tflite::GreedyMemoryPlanner::BufferRequirements" = type { i32, i32, i32, i32 }

@.str.4 = external hidden unnamed_addr constant [52 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

declare void @_Z11MicroPrintfPKcz(ptr noundef, ...) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite19GreedyMemoryPlanner24CalculateOffsetsIfNeededEv(ptr noundef nonnull align 8 dereferenceable(65)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6tflite19GreedyMemoryPlanner19DoAnyBuffersOverlapEv(ptr noundef nonnull align 8 dereferenceable(65) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i8, align 1
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %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
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8
  call void @_ZN6tflite19GreedyMemoryPlanner24CalculateOffsetsIfNeededEv(ptr noundef nonnull align 8 dereferenceable(65) %17)
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #4
  store i8 0, ptr %3, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !11
  br label %18

18:                                               ; preds = %116, %1
  %19 = load i32, ptr %4, align 4, !tbaa !11
  %20 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %17, i32 0, i32 2
  %21 = load i32, ptr %20, align 4, !tbaa !13
  %22 = icmp slt i32 %19, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %18
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %119

24:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %25 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %17, i32 0, i32 3
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  %27 = load i32, ptr %4, align 4, !tbaa !11
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %26, i64 %28
  store ptr %29, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %30 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %17, i32 0, i32 9
  %31 = load ptr, ptr %30, align 8, !tbaa !17
  %32 = load i32, ptr %4, align 4, !tbaa !11
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds i32, ptr %31, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !11
  store i32 %35, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %36, i32 0, i32 2
  %38 = load i32, ptr %37, align 4, !tbaa !18
  store i32 %38, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %39, i32 0, i32 3
  %41 = load i32, ptr %40, align 4, !tbaa !20
  store i32 %41, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %42 = load i32, ptr %7, align 4, !tbaa !11
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 4, !tbaa !21
  %46 = add nsw i32 %42, %45
  store i32 %46, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %47

47:                                               ; preds = %112, %24
  %48 = load i32, ptr %11, align 4, !tbaa !11
  %49 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %17, i32 0, i32 2
  %50 = load i32, ptr %49, align 4, !tbaa !13
  %51 = icmp slt i32 %48, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %47
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %115

53:                                               ; preds = %47
  %54 = load i32, ptr %4, align 4, !tbaa !11
  %55 = load i32, ptr %11, align 4, !tbaa !11
  %56 = icmp eq i32 %54, %55
  br i1 %56, label %57, label %58

57:                                               ; preds = %53
  br label %112

58:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %59 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %17, i32 0, i32 3
  %60 = load ptr, ptr %59, align 8, !tbaa !16
  %61 = load i32, ptr %11, align 4, !tbaa !11
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %60, i64 %62
  store ptr %63, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %64 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %17, i32 0, i32 9
  %65 = load ptr, ptr %64, align 8, !tbaa !17
  %66 = load i32, ptr %11, align 4, !tbaa !11
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds i32, ptr %65, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !11
  store i32 %69, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %70, i32 0, i32 2
  %72 = load i32, ptr %71, align 4, !tbaa !18
  store i32 %72, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %73, i32 0, i32 3
  %75 = load i32, ptr %74, align 4, !tbaa !20
  store i32 %75, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %76 = load i32, ptr %13, align 4, !tbaa !11
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %77, i32 0, i32 0
  %79 = load i32, ptr %78, align 4, !tbaa !21
  %80 = add nsw i32 %76, %79
  store i32 %80, ptr %16, align 4, !tbaa !11
  %81 = load i32, ptr %8, align 4, !tbaa !11
  %82 = load i32, ptr %15, align 4, !tbaa !11
  %83 = icmp sgt i32 %81, %82
  br i1 %83, label %88, label %84

84:                                               ; preds = %58
  %85 = load i32, ptr %14, align 4, !tbaa !11
  %86 = load i32, ptr %9, align 4, !tbaa !11
  %87 = icmp sgt i32 %85, %86
  br i1 %87, label %88, label %89

88:                                               ; preds = %84, %58
  store i32 7, ptr %5, align 4
  br label %109

89:                                               ; preds = %84
  %90 = load i32, ptr %7, align 4, !tbaa !11
  %91 = load i32, ptr %16, align 4, !tbaa !11
  %92 = icmp sge i32 %90, %91
  br i1 %92, label %97, label %93

93:                                               ; preds = %89
  %94 = load i32, ptr %13, align 4, !tbaa !11
  %95 = load i32, ptr %10, align 4, !tbaa !11
  %96 = icmp sge i32 %94, %95
  br i1 %96, label %97, label %98

97:                                               ; preds = %93, %89
  store i32 7, ptr %5, align 4
  br label %109

98:                                               ; preds = %93
  store i8 1, ptr %3, align 1, !tbaa !9
  %99 = load i32, ptr %4, align 4, !tbaa !11
  %100 = load i32, ptr %8, align 4, !tbaa !11
  %101 = load i32, ptr %9, align 4, !tbaa !11
  %102 = load i32, ptr %7, align 4, !tbaa !11
  %103 = load i32, ptr %10, align 4, !tbaa !11
  %104 = load i32, ptr %11, align 4, !tbaa !11
  %105 = load i32, ptr %14, align 4, !tbaa !11
  %106 = load i32, ptr %15, align 4, !tbaa !11
  %107 = load i32, ptr %13, align 4, !tbaa !11
  %108 = load i32, ptr %16, align 4, !tbaa !11
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.4, i32 noundef %99, i32 noundef %100, i32 noundef %101, i32 noundef %102, i32 noundef %103, i32 noundef %104, i32 noundef %105, i32 noundef %106, i32 noundef %107, i32 noundef %108)
  store i32 0, ptr %5, align 4
  br label %109

109:                                              ; preds = %98, %97, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %110 = load i32, ptr %5, align 4
  switch i32 %110, label %122 [
    i32 0, label %111
    i32 7, label %112
  ]

111:                                              ; preds = %109
  br label %112

112:                                              ; preds = %111, %109, %57
  %113 = load i32, ptr %11, align 4, !tbaa !11
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %11, align 4, !tbaa !11
  br label %47, !llvm.loop !22

115:                                              ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %4, align 4, !tbaa !11
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %4, align 4, !tbaa !11
  br label %18, !llvm.loop !24

119:                                              ; preds = %23
  %120 = load i8, ptr %3, align 1, !tbaa !9, !range !25, !noundef !26
  %121 = trunc i8 %120 to i1
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #4
  ret i1 %121

122:                                              ; preds = %109
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 12}
!14 = !{!"_ZTSN6tflite19GreedyMemoryPlannerE", !15, i64 0, !12, i64 8, !12, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !12, i64 52, !6, i64 56, !10, i64 64}
!15 = !{!"_ZTSN6tflite18MicroMemoryPlannerE"}
!16 = !{!14, !6, i64 16}
!17 = !{!14, !6, i64 56}
!18 = !{!19, !12, i64 8}
!19 = !{!"_ZTSN6tflite19GreedyMemoryPlanner18BufferRequirementsE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!20 = !{!19, !12, i64 12}
!21 = !{!19, !12, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{i8 0, i8 2}
!26 = !{}


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

%"struct.tflite::GreedyMemoryPlanner::BufferRequirements" = type { i32, i32, i32, i32 }

@.str.4 = external hidden unnamed_addr constant [52 x i8], align 1

declare void @_Z11MicroPrintfPKcz(ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite19GreedyMemoryPlanner24CalculateOffsetsIfNeededEv(ptr noundef nonnull align 8 dereferenceable(65)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6tflite19GreedyMemoryPlanner19DoAnyBuffersOverlapEv(ptr noundef nonnull align 8 dereferenceable(65) %0) local_unnamed_addr #2 align 2 {
  tail call void @_ZN6tflite19GreedyMemoryPlanner24CalculateOffsetsIfNeededEv(ptr noundef nonnull align 8 dereferenceable(65) %0)
  %2 = getelementptr inbounds i8, ptr %0, i64 12
  %3 = load i32, ptr %2, align 4, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.lr.ph54.split.preheader, label %._crit_edge55

.lr.ph54.split.preheader:                         ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = getelementptr inbounds i8, ptr %0, i64 56
  br label %.lr.ph54.split

._crit_edge55:                                    ; preds = %._crit_edge, %1
  %.0.lcssa = phi i1 [ false, %1 ], [ %.1.lcssa, %._crit_edge ]
  ret i1 %.0.lcssa

.lr.ph54.split:                                   ; preds = %.lr.ph54.split.preheader, %._crit_edge
  %7 = phi i32 [ %3, %.lr.ph54.split.preheader ], [ %21, %._crit_edge ]
  %indvars.iv58 = phi i64 [ 0, %.lr.ph54.split.preheader ], [ %indvars.iv.next59, %._crit_edge ]
  %.052 = phi i1 [ false, %.lr.ph54.split.preheader ], [ %.1.lcssa, %._crit_edge ]
  %8 = load ptr, ptr %5, align 8, !tbaa !13
  %9 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %8, i64 %indvars.iv58
  %10 = load ptr, ptr %6, align 8, !tbaa !14
  %11 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv58
  %12 = load i32, ptr %11, align 4, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %9, i64 8
  %14 = load i32, ptr %13, align 4, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %9, i64 12
  %16 = load i32, ptr %15, align 4, !tbaa !18
  %17 = load i32, ptr %9, align 4, !tbaa !19
  %18 = add nsw i32 %17, %12
  %19 = icmp sgt i32 %7, 0
  br i1 %19, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.lr.ph54.split
  %20 = trunc nuw nsw i64 %indvars.iv58 to i32
  br label %.lr.ph

._crit_edge:                                      ; preds = %44, %.lr.ph54.split
  %21 = phi i32 [ %7, %.lr.ph54.split ], [ %45, %44 ]
  %.1.lcssa = phi i1 [ %.052, %.lr.ph54.split ], [ %.3, %44 ]
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %22 = sext i32 %21 to i64
  %23 = icmp slt i64 %indvars.iv.next59, %22
  br i1 %23, label %.lr.ph54.split, label %._crit_edge55, !llvm.loop !20

.lr.ph:                                           ; preds = %.lr.ph.preheader, %44
  %24 = phi i32 [ %7, %.lr.ph.preheader ], [ %45, %44 ]
  %25 = phi i32 [ %7, %.lr.ph.preheader ], [ %46, %44 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %44 ]
  %.150 = phi i1 [ %.052, %.lr.ph.preheader ], [ %.3, %44 ]
  %26 = icmp eq i64 %indvars.iv58, %indvars.iv
  br i1 %26, label %44, label %27

27:                                               ; preds = %.lr.ph
  %28 = load ptr, ptr %5, align 8, !tbaa !13
  %29 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %28, i64 %indvars.iv
  %30 = load ptr, ptr %6, align 8, !tbaa !14
  %31 = getelementptr inbounds i32, ptr %30, i64 %indvars.iv
  %32 = load i32, ptr %31, align 4, !tbaa !15
  %33 = getelementptr inbounds i8, ptr %29, i64 8
  %34 = load i32, ptr %33, align 4, !tbaa !16
  %35 = getelementptr inbounds i8, ptr %29, i64 12
  %36 = load i32, ptr %35, align 4, !tbaa !18
  %37 = load i32, ptr %29, align 4, !tbaa !19
  %38 = add nsw i32 %37, %32
  %39 = icmp sgt i32 %14, %36
  %40 = icmp sgt i32 %34, %16
  %or.cond = select i1 %39, i1 true, i1 %40
  br i1 %or.cond, label %44, label %41

41:                                               ; preds = %27
  %.not = icmp slt i32 %12, %38
  %.not47 = icmp slt i32 %32, %18
  %or.cond48 = select i1 %.not, i1 %.not47, i1 false
  br i1 %or.cond48, label %42, label %44

42:                                               ; preds = %41
  %43 = trunc nuw nsw i64 %indvars.iv to i32
  tail call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.4, i32 noundef %20, i32 noundef %14, i32 noundef %16, i32 noundef %12, i32 noundef %18, i32 noundef %43, i32 noundef %34, i32 noundef %36, i32 noundef %32, i32 noundef %38)
  %.pre = load i32, ptr %2, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %42, %27, %41, %.lr.ph
  %45 = phi i32 [ %24, %.lr.ph ], [ %.pre, %42 ], [ %24, %27 ], [ %24, %41 ]
  %46 = phi i32 [ %25, %.lr.ph ], [ %.pre, %42 ], [ %25, %27 ], [ %25, %41 ]
  %.3 = phi i1 [ %.150, %.lr.ph ], [ true, %42 ], [ %.150, %27 ], [ %.150, %41 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %47 = sext i32 %46 to i64
  %48 = icmp slt i64 %indvars.iv.next, %47
  br i1 %48, label %.lr.ph, label %._crit_edge, !llvm.loop !23
}

attributes #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 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" }

!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, !8, i64 12}
!6 = !{!"_ZTSN6tflite19GreedyMemoryPlannerE", !7, i64 0, !8, i64 8, !8, i64 12, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !8, i64 48, !8, i64 52, !11, i64 56, !12, i64 64}
!7 = !{!"_ZTSN6tflite18MicroMemoryPlannerE"}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"bool", !9, i64 0}
!13 = !{!6, !11, i64 16}
!14 = !{!6, !11, i64 56}
!15 = !{!8, !8, i64 0}
!16 = !{!17, !8, i64 8}
!17 = !{!"_ZTSN6tflite19GreedyMemoryPlanner18BufferRequirementsE", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12}
!18 = !{!17, !8, i64 12}
!19 = !{!17, !8, i64 0}
!20 = distinct !{!20, !21, !22}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!"llvm.loop.unswitch.partial.disable"}
!23 = distinct !{!23, !21}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass