; LLVM IR from haytham-hammioui/CS50x-2024 :: Week 5 Data Structures/Problem set 5/speller (dictionary)

; 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.node = type { [46 x i8], ptr }

@table = external dso_local global [26 x ptr], align 16

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

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

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @unload() #1 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #3
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %4

4:                                                ; preds = %25, %0
  %5 = load i32, ptr %1, align 4, !tbaa !5
  %6 = icmp ult i32 %5, 26
  br i1 %6, label %7, label %28

7:                                                ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
  %8 = load i32, ptr %1, align 4, !tbaa !5
  %9 = sext i32 %8 to i64
  %10 = getelementptr inbounds [26 x ptr], ptr @table, i64 0, i64 %9
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %11, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %12 = load i32, ptr %1, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds [26 x ptr], ptr @table, i64 0, i64 %13
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  store ptr %15, ptr %3, align 8, !tbaa !9
  br label %16

16:                                               ; preds = %19, %7
  %17 = load ptr, ptr %3, align 8, !tbaa !9
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %25

19:                                               ; preds = %16
  %20 = load ptr, ptr %3, align 8, !tbaa !9
  %21 = getelementptr inbounds %struct.node, ptr %20, i32 0, i32 1
  %22 = load ptr, ptr %21, align 8, !tbaa !11
  store ptr %22, ptr %3, align 8, !tbaa !9
  %23 = load ptr, ptr %2, align 8, !tbaa !9
  call void @free(ptr noundef %23) #3
  %24 = load ptr, ptr %3, align 8, !tbaa !9
  store ptr %24, ptr %2, align 8, !tbaa !9
  br label %16, !llvm.loop !13

25:                                               ; preds = %16
  %26 = load i32, ptr %1, align 4, !tbaa !5
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  br label %4, !llvm.loop !15

28:                                               ; preds = %4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #3
  ret i1 true
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 48}
!12 = !{!"node", !7, i64 0, !10, i64 48}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !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"

@table = external dso_local local_unnamed_addr global [26 x ptr], align 16

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @unload() local_unnamed_addr #0 {
  %1 = load ptr, ptr @table, align 16, !tbaa !5
  %.not9 = icmp eq ptr %1, null
  br i1 %.not9, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.010 = phi ptr [ %3, %.lr.ph ], [ %1, %0 ]
  %2 = getelementptr inbounds i8, ptr %.010, i64 48
  %3 = load ptr, ptr %2, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010) #2
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %0
  %4 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 8), align 8, !tbaa !5
  %.not9.1 = icmp eq ptr %4, null
  br i1 %.not9.1, label %._crit_edge.1, label %.lr.ph.1

.lr.ph.1:                                         ; preds = %._crit_edge, %.lr.ph.1
  %.010.1 = phi ptr [ %6, %.lr.ph.1 ], [ %4, %._crit_edge ]
  %5 = getelementptr inbounds i8, ptr %.010.1, i64 48
  %6 = load ptr, ptr %5, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.1) #2
  %.not.1 = icmp eq ptr %6, null
  br i1 %.not.1, label %._crit_edge.1, label %.lr.ph.1, !llvm.loop !11

._crit_edge.1:                                    ; preds = %.lr.ph.1, %._crit_edge
  %7 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 16), align 16, !tbaa !5
  %.not9.2 = icmp eq ptr %7, null
  br i1 %.not9.2, label %._crit_edge.2, label %.lr.ph.2

.lr.ph.2:                                         ; preds = %._crit_edge.1, %.lr.ph.2
  %.010.2 = phi ptr [ %9, %.lr.ph.2 ], [ %7, %._crit_edge.1 ]
  %8 = getelementptr inbounds i8, ptr %.010.2, i64 48
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.2) #2
  %.not.2 = icmp eq ptr %9, null
  br i1 %.not.2, label %._crit_edge.2, label %.lr.ph.2, !llvm.loop !11

._crit_edge.2:                                    ; preds = %.lr.ph.2, %._crit_edge.1
  %10 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 24), align 8, !tbaa !5
  %.not9.3 = icmp eq ptr %10, null
  br i1 %.not9.3, label %._crit_edge.3, label %.lr.ph.3

.lr.ph.3:                                         ; preds = %._crit_edge.2, %.lr.ph.3
  %.010.3 = phi ptr [ %12, %.lr.ph.3 ], [ %10, %._crit_edge.2 ]
  %11 = getelementptr inbounds i8, ptr %.010.3, i64 48
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.3) #2
  %.not.3 = icmp eq ptr %12, null
  br i1 %.not.3, label %._crit_edge.3, label %.lr.ph.3, !llvm.loop !11

._crit_edge.3:                                    ; preds = %.lr.ph.3, %._crit_edge.2
  %13 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 32), align 16, !tbaa !5
  %.not9.4 = icmp eq ptr %13, null
  br i1 %.not9.4, label %._crit_edge.4, label %.lr.ph.4

.lr.ph.4:                                         ; preds = %._crit_edge.3, %.lr.ph.4
  %.010.4 = phi ptr [ %15, %.lr.ph.4 ], [ %13, %._crit_edge.3 ]
  %14 = getelementptr inbounds i8, ptr %.010.4, i64 48
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.4) #2
  %.not.4 = icmp eq ptr %15, null
  br i1 %.not.4, label %._crit_edge.4, label %.lr.ph.4, !llvm.loop !11

._crit_edge.4:                                    ; preds = %.lr.ph.4, %._crit_edge.3
  %16 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 40), align 8, !tbaa !5
  %.not9.5 = icmp eq ptr %16, null
  br i1 %.not9.5, label %._crit_edge.5, label %.lr.ph.5

.lr.ph.5:                                         ; preds = %._crit_edge.4, %.lr.ph.5
  %.010.5 = phi ptr [ %18, %.lr.ph.5 ], [ %16, %._crit_edge.4 ]
  %17 = getelementptr inbounds i8, ptr %.010.5, i64 48
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.5) #2
  %.not.5 = icmp eq ptr %18, null
  br i1 %.not.5, label %._crit_edge.5, label %.lr.ph.5, !llvm.loop !11

._crit_edge.5:                                    ; preds = %.lr.ph.5, %._crit_edge.4
  %19 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 48), align 16, !tbaa !5
  %.not9.6 = icmp eq ptr %19, null
  br i1 %.not9.6, label %._crit_edge.6, label %.lr.ph.6

.lr.ph.6:                                         ; preds = %._crit_edge.5, %.lr.ph.6
  %.010.6 = phi ptr [ %21, %.lr.ph.6 ], [ %19, %._crit_edge.5 ]
  %20 = getelementptr inbounds i8, ptr %.010.6, i64 48
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.6) #2
  %.not.6 = icmp eq ptr %21, null
  br i1 %.not.6, label %._crit_edge.6, label %.lr.ph.6, !llvm.loop !11

._crit_edge.6:                                    ; preds = %.lr.ph.6, %._crit_edge.5
  %22 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 56), align 8, !tbaa !5
  %.not9.7 = icmp eq ptr %22, null
  br i1 %.not9.7, label %._crit_edge.7, label %.lr.ph.7

.lr.ph.7:                                         ; preds = %._crit_edge.6, %.lr.ph.7
  %.010.7 = phi ptr [ %24, %.lr.ph.7 ], [ %22, %._crit_edge.6 ]
  %23 = getelementptr inbounds i8, ptr %.010.7, i64 48
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.7) #2
  %.not.7 = icmp eq ptr %24, null
  br i1 %.not.7, label %._crit_edge.7, label %.lr.ph.7, !llvm.loop !11

._crit_edge.7:                                    ; preds = %.lr.ph.7, %._crit_edge.6
  %25 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 64), align 16, !tbaa !5
  %.not9.8 = icmp eq ptr %25, null
  br i1 %.not9.8, label %._crit_edge.8, label %.lr.ph.8

.lr.ph.8:                                         ; preds = %._crit_edge.7, %.lr.ph.8
  %.010.8 = phi ptr [ %27, %.lr.ph.8 ], [ %25, %._crit_edge.7 ]
  %26 = getelementptr inbounds i8, ptr %.010.8, i64 48
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.8) #2
  %.not.8 = icmp eq ptr %27, null
  br i1 %.not.8, label %._crit_edge.8, label %.lr.ph.8, !llvm.loop !11

._crit_edge.8:                                    ; preds = %.lr.ph.8, %._crit_edge.7
  %28 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 72), align 8, !tbaa !5
  %.not9.9 = icmp eq ptr %28, null
  br i1 %.not9.9, label %._crit_edge.9, label %.lr.ph.9

.lr.ph.9:                                         ; preds = %._crit_edge.8, %.lr.ph.9
  %.010.9 = phi ptr [ %30, %.lr.ph.9 ], [ %28, %._crit_edge.8 ]
  %29 = getelementptr inbounds i8, ptr %.010.9, i64 48
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.9) #2
  %.not.9 = icmp eq ptr %30, null
  br i1 %.not.9, label %._crit_edge.9, label %.lr.ph.9, !llvm.loop !11

._crit_edge.9:                                    ; preds = %.lr.ph.9, %._crit_edge.8
  %31 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 80), align 16, !tbaa !5
  %.not9.10 = icmp eq ptr %31, null
  br i1 %.not9.10, label %._crit_edge.10, label %.lr.ph.10

.lr.ph.10:                                        ; preds = %._crit_edge.9, %.lr.ph.10
  %.010.10 = phi ptr [ %33, %.lr.ph.10 ], [ %31, %._crit_edge.9 ]
  %32 = getelementptr inbounds i8, ptr %.010.10, i64 48
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.10) #2
  %.not.10 = icmp eq ptr %33, null
  br i1 %.not.10, label %._crit_edge.10, label %.lr.ph.10, !llvm.loop !11

._crit_edge.10:                                   ; preds = %.lr.ph.10, %._crit_edge.9
  %34 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 88), align 8, !tbaa !5
  %.not9.11 = icmp eq ptr %34, null
  br i1 %.not9.11, label %._crit_edge.11, label %.lr.ph.11

.lr.ph.11:                                        ; preds = %._crit_edge.10, %.lr.ph.11
  %.010.11 = phi ptr [ %36, %.lr.ph.11 ], [ %34, %._crit_edge.10 ]
  %35 = getelementptr inbounds i8, ptr %.010.11, i64 48
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.11) #2
  %.not.11 = icmp eq ptr %36, null
  br i1 %.not.11, label %._crit_edge.11, label %.lr.ph.11, !llvm.loop !11

._crit_edge.11:                                   ; preds = %.lr.ph.11, %._crit_edge.10
  %37 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 96), align 16, !tbaa !5
  %.not9.12 = icmp eq ptr %37, null
  br i1 %.not9.12, label %._crit_edge.12, label %.lr.ph.12

.lr.ph.12:                                        ; preds = %._crit_edge.11, %.lr.ph.12
  %.010.12 = phi ptr [ %39, %.lr.ph.12 ], [ %37, %._crit_edge.11 ]
  %38 = getelementptr inbounds i8, ptr %.010.12, i64 48
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.12) #2
  %.not.12 = icmp eq ptr %39, null
  br i1 %.not.12, label %._crit_edge.12, label %.lr.ph.12, !llvm.loop !11

._crit_edge.12:                                   ; preds = %.lr.ph.12, %._crit_edge.11
  %40 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 104), align 8, !tbaa !5
  %.not9.13 = icmp eq ptr %40, null
  br i1 %.not9.13, label %._crit_edge.13, label %.lr.ph.13

.lr.ph.13:                                        ; preds = %._crit_edge.12, %.lr.ph.13
  %.010.13 = phi ptr [ %42, %.lr.ph.13 ], [ %40, %._crit_edge.12 ]
  %41 = getelementptr inbounds i8, ptr %.010.13, i64 48
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.13) #2
  %.not.13 = icmp eq ptr %42, null
  br i1 %.not.13, label %._crit_edge.13, label %.lr.ph.13, !llvm.loop !11

._crit_edge.13:                                   ; preds = %.lr.ph.13, %._crit_edge.12
  %43 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 112), align 16, !tbaa !5
  %.not9.14 = icmp eq ptr %43, null
  br i1 %.not9.14, label %._crit_edge.14, label %.lr.ph.14

.lr.ph.14:                                        ; preds = %._crit_edge.13, %.lr.ph.14
  %.010.14 = phi ptr [ %45, %.lr.ph.14 ], [ %43, %._crit_edge.13 ]
  %44 = getelementptr inbounds i8, ptr %.010.14, i64 48
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.14) #2
  %.not.14 = icmp eq ptr %45, null
  br i1 %.not.14, label %._crit_edge.14, label %.lr.ph.14, !llvm.loop !11

._crit_edge.14:                                   ; preds = %.lr.ph.14, %._crit_edge.13
  %46 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 120), align 8, !tbaa !5
  %.not9.15 = icmp eq ptr %46, null
  br i1 %.not9.15, label %._crit_edge.15, label %.lr.ph.15

.lr.ph.15:                                        ; preds = %._crit_edge.14, %.lr.ph.15
  %.010.15 = phi ptr [ %48, %.lr.ph.15 ], [ %46, %._crit_edge.14 ]
  %47 = getelementptr inbounds i8, ptr %.010.15, i64 48
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.15) #2
  %.not.15 = icmp eq ptr %48, null
  br i1 %.not.15, label %._crit_edge.15, label %.lr.ph.15, !llvm.loop !11

._crit_edge.15:                                   ; preds = %.lr.ph.15, %._crit_edge.14
  %49 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 128), align 16, !tbaa !5
  %.not9.16 = icmp eq ptr %49, null
  br i1 %.not9.16, label %._crit_edge.16, label %.lr.ph.16

.lr.ph.16:                                        ; preds = %._crit_edge.15, %.lr.ph.16
  %.010.16 = phi ptr [ %51, %.lr.ph.16 ], [ %49, %._crit_edge.15 ]
  %50 = getelementptr inbounds i8, ptr %.010.16, i64 48
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.16) #2
  %.not.16 = icmp eq ptr %51, null
  br i1 %.not.16, label %._crit_edge.16, label %.lr.ph.16, !llvm.loop !11

._crit_edge.16:                                   ; preds = %.lr.ph.16, %._crit_edge.15
  %52 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 136), align 8, !tbaa !5
  %.not9.17 = icmp eq ptr %52, null
  br i1 %.not9.17, label %._crit_edge.17, label %.lr.ph.17

.lr.ph.17:                                        ; preds = %._crit_edge.16, %.lr.ph.17
  %.010.17 = phi ptr [ %54, %.lr.ph.17 ], [ %52, %._crit_edge.16 ]
  %53 = getelementptr inbounds i8, ptr %.010.17, i64 48
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.17) #2
  %.not.17 = icmp eq ptr %54, null
  br i1 %.not.17, label %._crit_edge.17, label %.lr.ph.17, !llvm.loop !11

._crit_edge.17:                                   ; preds = %.lr.ph.17, %._crit_edge.16
  %55 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 144), align 16, !tbaa !5
  %.not9.18 = icmp eq ptr %55, null
  br i1 %.not9.18, label %._crit_edge.18, label %.lr.ph.18

.lr.ph.18:                                        ; preds = %._crit_edge.17, %.lr.ph.18
  %.010.18 = phi ptr [ %57, %.lr.ph.18 ], [ %55, %._crit_edge.17 ]
  %56 = getelementptr inbounds i8, ptr %.010.18, i64 48
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.18) #2
  %.not.18 = icmp eq ptr %57, null
  br i1 %.not.18, label %._crit_edge.18, label %.lr.ph.18, !llvm.loop !11

._crit_edge.18:                                   ; preds = %.lr.ph.18, %._crit_edge.17
  %58 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 152), align 8, !tbaa !5
  %.not9.19 = icmp eq ptr %58, null
  br i1 %.not9.19, label %._crit_edge.19, label %.lr.ph.19

.lr.ph.19:                                        ; preds = %._crit_edge.18, %.lr.ph.19
  %.010.19 = phi ptr [ %60, %.lr.ph.19 ], [ %58, %._crit_edge.18 ]
  %59 = getelementptr inbounds i8, ptr %.010.19, i64 48
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.19) #2
  %.not.19 = icmp eq ptr %60, null
  br i1 %.not.19, label %._crit_edge.19, label %.lr.ph.19, !llvm.loop !11

._crit_edge.19:                                   ; preds = %.lr.ph.19, %._crit_edge.18
  %61 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 160), align 16, !tbaa !5
  %.not9.20 = icmp eq ptr %61, null
  br i1 %.not9.20, label %._crit_edge.20, label %.lr.ph.20

.lr.ph.20:                                        ; preds = %._crit_edge.19, %.lr.ph.20
  %.010.20 = phi ptr [ %63, %.lr.ph.20 ], [ %61, %._crit_edge.19 ]
  %62 = getelementptr inbounds i8, ptr %.010.20, i64 48
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.20) #2
  %.not.20 = icmp eq ptr %63, null
  br i1 %.not.20, label %._crit_edge.20, label %.lr.ph.20, !llvm.loop !11

._crit_edge.20:                                   ; preds = %.lr.ph.20, %._crit_edge.19
  %64 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 168), align 8, !tbaa !5
  %.not9.21 = icmp eq ptr %64, null
  br i1 %.not9.21, label %._crit_edge.21, label %.lr.ph.21

.lr.ph.21:                                        ; preds = %._crit_edge.20, %.lr.ph.21
  %.010.21 = phi ptr [ %66, %.lr.ph.21 ], [ %64, %._crit_edge.20 ]
  %65 = getelementptr inbounds i8, ptr %.010.21, i64 48
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.21) #2
  %.not.21 = icmp eq ptr %66, null
  br i1 %.not.21, label %._crit_edge.21, label %.lr.ph.21, !llvm.loop !11

._crit_edge.21:                                   ; preds = %.lr.ph.21, %._crit_edge.20
  %67 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 176), align 16, !tbaa !5
  %.not9.22 = icmp eq ptr %67, null
  br i1 %.not9.22, label %._crit_edge.22, label %.lr.ph.22

.lr.ph.22:                                        ; preds = %._crit_edge.21, %.lr.ph.22
  %.010.22 = phi ptr [ %69, %.lr.ph.22 ], [ %67, %._crit_edge.21 ]
  %68 = getelementptr inbounds i8, ptr %.010.22, i64 48
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.22) #2
  %.not.22 = icmp eq ptr %69, null
  br i1 %.not.22, label %._crit_edge.22, label %.lr.ph.22, !llvm.loop !11

._crit_edge.22:                                   ; preds = %.lr.ph.22, %._crit_edge.21
  %70 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 184), align 8, !tbaa !5
  %.not9.23 = icmp eq ptr %70, null
  br i1 %.not9.23, label %._crit_edge.23, label %.lr.ph.23

.lr.ph.23:                                        ; preds = %._crit_edge.22, %.lr.ph.23
  %.010.23 = phi ptr [ %72, %.lr.ph.23 ], [ %70, %._crit_edge.22 ]
  %71 = getelementptr inbounds i8, ptr %.010.23, i64 48
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.23) #2
  %.not.23 = icmp eq ptr %72, null
  br i1 %.not.23, label %._crit_edge.23, label %.lr.ph.23, !llvm.loop !11

._crit_edge.23:                                   ; preds = %.lr.ph.23, %._crit_edge.22
  %73 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 192), align 16, !tbaa !5
  %.not9.24 = icmp eq ptr %73, null
  br i1 %.not9.24, label %._crit_edge.24, label %.lr.ph.24

.lr.ph.24:                                        ; preds = %._crit_edge.23, %.lr.ph.24
  %.010.24 = phi ptr [ %75, %.lr.ph.24 ], [ %73, %._crit_edge.23 ]
  %74 = getelementptr inbounds i8, ptr %.010.24, i64 48
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.24) #2
  %.not.24 = icmp eq ptr %75, null
  br i1 %.not.24, label %._crit_edge.24, label %.lr.ph.24, !llvm.loop !11

._crit_edge.24:                                   ; preds = %.lr.ph.24, %._crit_edge.23
  %76 = load ptr, ptr getelementptr inbounds (i8, ptr @table, i64 200), align 8, !tbaa !5
  %.not9.25 = icmp eq ptr %76, null
  br i1 %.not9.25, label %._crit_edge.25, label %.lr.ph.25

.lr.ph.25:                                        ; preds = %._crit_edge.24, %.lr.ph.25
  %.010.25 = phi ptr [ %78, %.lr.ph.25 ], [ %76, %._crit_edge.24 ]
  %77 = getelementptr inbounds i8, ptr %.010.25, i64 48
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  tail call void @free(ptr noundef nonnull %.010.25) #2
  %.not.25 = icmp eq ptr %78, null
  br i1 %.not.25, label %._crit_edge.25, label %.lr.ph.25, !llvm.loop !11

._crit_edge.25:                                   ; preds = %.lr.ph.25, %._crit_edge.24
  ret i1 true
}

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

attributes #0 = { 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 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 #2 = { 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/C++ TBAA"}
!9 = !{!10, !6, i64 48}
!10 = !{!"node", !7, i64 0, !6, i64 48}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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