; LLVM IR from JessonYue/LeetCodeLearning :: Array/zhangjunwei/7.26-8.1/lru_cache.ll (Z11lRUCachePutP8LRUCacheii)

; 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.LRUCache = type { i32, i32, ptr, ptr, ptr }
%struct.node = type { i32, i32, ptr, ptr }
%struct.hash = type { ptr, ptr }

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

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

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

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z11lRUCachePutP8LRUCacheii(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.LRUCache, ptr %13, i32 0, i32 2
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.LRUCache, ptr %17, i32 0, i32 1
  %19 = load i32, ptr %18, align 4, !tbaa !13
  %20 = call noundef ptr @_Z7HashMapP4hashii(ptr noundef %15, i32 noundef %16, i32 noundef %19)
  store ptr %20, ptr %7, align 8, !tbaa !5
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = load i32, ptr %5, align 4, !tbaa !9
  %23 = call noundef i32 @_Z11lRUCacheGetP8LRUCachei(ptr noundef %21, i32 noundef %22)
  %24 = icmp eq i32 %23, -1
  br i1 %24, label %25, label %143

25:                                               ; preds = %3
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.LRUCache, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !14
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.LRUCache, ptr %29, i32 0, i32 1
  %31 = load i32, ptr %30, align 4, !tbaa !13
  %32 = icmp sge i32 %28, %31
  br i1 %32, label %33, label %101

33:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.LRUCache, ptr %34, i32 0, i32 4
  %36 = load ptr, ptr %35, align 8, !tbaa !15
  %37 = getelementptr inbounds %struct.node, ptr %36, i32 0, i32 2
  %38 = load ptr, ptr %37, align 8, !tbaa !16
  store ptr %38, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.LRUCache, ptr %39, i32 0, i32 2
  %41 = load ptr, ptr %40, align 8, !tbaa !11
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.node, ptr %42, i32 0, i32 0
  %44 = load i32, ptr %43, align 8, !tbaa !18
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.LRUCache, ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 4, !tbaa !13
  %48 = call noundef ptr @_Z7HashMapP4hashii(ptr noundef %41, i32 noundef %44, i32 noundef %47)
  store ptr %48, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %49, ptr %10, align 8, !tbaa !5
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.hash, ptr %50, i32 0, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !19
  store ptr %52, ptr %9, align 8, !tbaa !5
  br label %53

53:                                               ; preds = %63, %33
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.hash, ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !21
  %57 = getelementptr inbounds %struct.node, ptr %56, i32 0, i32 0
  %58 = load i32, ptr %57, align 8, !tbaa !18
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.node, ptr %59, i32 0, i32 0
  %61 = load i32, ptr %60, align 8, !tbaa !18
  %62 = icmp ne i32 %58, %61
  br i1 %62, label %63, label %68

63:                                               ; preds = %53
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %64, ptr %10, align 8, !tbaa !5
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.hash, ptr %65, i32 0, i32 1
  %67 = load ptr, ptr %66, align 8, !tbaa !19
  store ptr %67, ptr %9, align 8, !tbaa !5
  br label %53, !llvm.loop !22

68:                                               ; preds = %53
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.hash, ptr %69, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !19
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.hash, ptr %72, i32 0, i32 1
  store ptr %71, ptr %73, align 8, !tbaa !19
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.hash, ptr %74, i32 0, i32 1
  store ptr null, ptr %75, align 8, !tbaa !19
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.hash, ptr %76, i32 0, i32 0
  store ptr null, ptr %77, align 8, !tbaa !21
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %78) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %79 = call noalias ptr @malloc(i64 noundef 16) #5
  store ptr %79, ptr %11, align 8, !tbaa !5
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.hash, ptr %80, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !19
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.hash, ptr %83, i32 0, i32 1
  store ptr %82, ptr %84, align 8, !tbaa !19
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.hash, ptr %86, i32 0, i32 1
  store ptr %85, ptr %87, align 8, !tbaa !19
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.hash, ptr %89, i32 0, i32 0
  store ptr %88, ptr %90, align 8, !tbaa !21
  %91 = load i32, ptr %5, align 4, !tbaa !9
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.node, ptr %92, i32 0, i32 0
  store i32 %91, ptr %93, align 8, !tbaa !18
  %94 = load i32, ptr %6, align 4, !tbaa !9
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.node, ptr %95, i32 0, i32 1
  store i32 %94, ptr %96, align 4, !tbaa !24
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.LRUCache, ptr %97, i32 0, i32 3
  %99 = load ptr, ptr %98, align 8, !tbaa !25
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_Z13HeadInsertionP4nodeS0_(ptr noundef %99, ptr noundef %100)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %142

101:                                              ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %102 = call noalias ptr @malloc(i64 noundef 16) #5
  store ptr %102, ptr %12, align 8, !tbaa !5
  %103 = call noalias ptr @malloc(i64 noundef 24) #5
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.hash, ptr %104, i32 0, i32 0
  store ptr %103, ptr %105, align 8, !tbaa !21
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.hash, ptr %106, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !19
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.hash, ptr %109, i32 0, i32 1
  store ptr %108, ptr %110, align 8, !tbaa !19
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.hash, ptr %112, i32 0, i32 1
  store ptr %111, ptr %113, align 8, !tbaa !19
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.hash, ptr %114, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !21
  %117 = getelementptr inbounds %struct.node, ptr %116, i32 0, i32 2
  store ptr null, ptr %117, align 8, !tbaa !16
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.hash, ptr %118, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !21
  %121 = getelementptr inbounds %struct.node, ptr %120, i32 0, i32 3
  store ptr null, ptr %121, align 8, !tbaa !26
  %122 = load i32, ptr %5, align 4, !tbaa !9
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.hash, ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !21
  %126 = getelementptr inbounds %struct.node, ptr %125, i32 0, i32 0
  store i32 %122, ptr %126, align 8, !tbaa !18
  %127 = load i32, ptr %6, align 4, !tbaa !9
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.hash, ptr %128, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8, !tbaa !21
  %131 = getelementptr inbounds %struct.node, ptr %130, i32 0, i32 1
  store i32 %127, ptr %131, align 4, !tbaa !24
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.LRUCache, ptr %132, i32 0, i32 3
  %134 = load ptr, ptr %133, align 8, !tbaa !25
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.hash, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !21
  call void @_Z13HeadInsertionP4nodeS0_(ptr noundef %134, ptr noundef %137)
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.LRUCache, ptr %138, i32 0, i32 0
  %140 = load i32, ptr %139, align 8, !tbaa !14
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %139, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %142

142:                                              ; preds = %101, %68
  br label %151

143:                                              ; preds = %3
  %144 = load i32, ptr %6, align 4, !tbaa !9
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.LRUCache, ptr %145, i32 0, i32 3
  %147 = load ptr, ptr %146, align 8, !tbaa !25
  %148 = getelementptr inbounds %struct.node, ptr %147, i32 0, i32 3
  %149 = load ptr, ptr %148, align 8, !tbaa !26
  %150 = getelementptr inbounds %struct.node, ptr %149, i32 0, i32 1
  store i32 %144, ptr %150, align 4, !tbaa !24
  br label %151

151:                                              ; preds = %143, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void
}

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(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 "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 }
attributes #5 = { nounwind allocsize(0) }

!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, !6, i64 8}
!12 = !{!"_ZTS8LRUCache", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!12, !10, i64 4}
!14 = !{!12, !10, i64 0}
!15 = !{!12, !6, i64 24}
!16 = !{!17, !6, i64 8}
!17 = !{!"_ZTS4node", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!18 = !{!17, !10, i64 0}
!19 = !{!20, !6, i64 8}
!20 = !{!"_ZTS4hash", !6, i64 0, !6, i64 8}
!21 = !{!20, !6, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!17, !10, i64 4}
!25 = !{!12, !6, i64 16}
!26 = !{!17, !6, i64 16}


; 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 nounwind uwtable
declare dso_local noundef ptr @_Z7HashMapP4hashii(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z11lRUCachePutP8LRUCacheii(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 4
  %7 = load i32, ptr %6, align 4, !tbaa !11
  %8 = tail call noundef ptr @_Z7HashMapP4hashii(ptr noundef %5, i32 noundef %1, i32 noundef %7)
  %9 = tail call noundef i32 @_Z11lRUCacheGetP8LRUCachei(ptr noundef %0, i32 noundef %1)
  %10 = icmp eq i32 %9, -1
  br i1 %10, label %11, label %48

11:                                               ; preds = %3
  %12 = load i32, ptr %0, align 8, !tbaa !12
  %13 = load i32, ptr %6, align 4, !tbaa !11
  %.not = icmp slt i32 %12, %13
  br i1 %.not, label %36, label %14

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  %16 = load ptr, ptr %15, align 8, !tbaa !13
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !14
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = load i32, ptr %18, align 8, !tbaa !16
  %21 = tail call noundef ptr @_Z7HashMapP4hashii(ptr noundef %19, i32 noundef %20, i32 noundef %13)
  %22 = load i32, ptr %18, align 8, !tbaa !16
  br label %23

23:                                               ; preds = %23, %14
  %.049 = phi ptr [ %21, %14 ], [ %.0, %23 ]
  %.0.in = getelementptr inbounds i8, ptr %.049, i64 8
  %.0 = load ptr, ptr %.0.in, align 8, !tbaa !17
  %24 = load ptr, ptr %.0, align 8, !tbaa !19
  %25 = load i32, ptr %24, align 8, !tbaa !16
  %.not51 = icmp eq i32 %25, %22
  br i1 %.not51, label %26, label %23, !llvm.loop !20

26:                                               ; preds = %23
  %.0.in.le = getelementptr inbounds i8, ptr %.049, i64 8
  %27 = getelementptr inbounds i8, ptr %.0, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !17
  store ptr %28, ptr %.0.in.le, align 8, !tbaa !17
  tail call void @free(ptr noundef nonnull %.0) #4
  %29 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #5
  %30 = getelementptr inbounds i8, ptr %8, i64 8
  %31 = load ptr, ptr %30, align 8, !tbaa !17
  %32 = getelementptr inbounds i8, ptr %29, i64 8
  store ptr %31, ptr %32, align 8, !tbaa !17
  store ptr %29, ptr %30, align 8, !tbaa !17
  store ptr %18, ptr %29, align 8, !tbaa !19
  store i32 %1, ptr %18, align 8, !tbaa !16
  %33 = getelementptr inbounds i8, ptr %18, i64 4
  store i32 %2, ptr %33, align 4, !tbaa !22
  %34 = getelementptr inbounds i8, ptr %0, i64 16
  %35 = load ptr, ptr %34, align 8, !tbaa !23
  tail call void @_Z13HeadInsertionP4nodeS0_(ptr noundef %35, ptr noundef nonnull %18)
  br label %54

36:                                               ; preds = %11
  %37 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #5
  %38 = tail call noalias dereferenceable_or_null(24) ptr @malloc(i64 noundef 24) #5
  store ptr %38, ptr %37, align 8, !tbaa !19
  %39 = getelementptr inbounds i8, ptr %8, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !17
  %41 = getelementptr inbounds i8, ptr %37, i64 8
  store ptr %40, ptr %41, align 8, !tbaa !17
  store ptr %37, ptr %39, align 8, !tbaa !17
  %42 = getelementptr inbounds i8, ptr %38, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %42, i8 0, i64 16, i1 false)
  store i32 %1, ptr %38, align 8, !tbaa !16
  %43 = getelementptr inbounds i8, ptr %38, i64 4
  store i32 %2, ptr %43, align 4, !tbaa !22
  %44 = getelementptr inbounds i8, ptr %0, i64 16
  %45 = load ptr, ptr %44, align 8, !tbaa !23
  tail call void @_Z13HeadInsertionP4nodeS0_(ptr noundef %45, ptr noundef nonnull %38)
  %46 = load i32, ptr %0, align 8, !tbaa !12
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %0, align 8, !tbaa !12
  br label %54

48:                                               ; preds = %3
  %49 = getelementptr inbounds i8, ptr %0, i64 16
  %50 = load ptr, ptr %49, align 8, !tbaa !23
  %51 = getelementptr inbounds i8, ptr %50, i64 16
  %52 = load ptr, ptr %51, align 8, !tbaa !24
  %53 = getelementptr inbounds i8, ptr %52, i64 4
  store i32 %2, ptr %53, align 4, !tbaa !22
  br label %54

54:                                               ; preds = %26, %36, %48
  ret void
}

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
attributes #5 = { nounwind allocsize(0) }

!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, !10, i64 8}
!6 = !{!"_ZTS8LRUCache", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !10, i64 24}
!14 = !{!15, !10, i64 8}
!15 = !{!"_ZTS4node", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16}
!16 = !{!15, !7, i64 0}
!17 = !{!18, !10, i64 8}
!18 = !{!"_ZTS4hash", !10, i64 0, !10, i64 8}
!19 = !{!18, !10, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!15, !7, i64 4}
!23 = !{!6, !10, i64 16}
!24 = !{!15, !10, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass