; LLVM IR from NOAA-PMEL/Ferret :: fmt/src (string_array_find_caseblind)

; 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.String_Array_Header = type { i32, i32, i32, ptr, ptr, ptr, ptr }
%struct.List_Node = type { i32, ptr, ptr }

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

; Function Attrs: nounwind uwtable
define dso_local void @string_array_find_caseblind_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %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
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  store ptr %27, ptr %21, align 8, !tbaa !5
  %28 = load ptr, ptr %21, align 8, !tbaa !5
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %182

30:                                               ; preds = %6
  %31 = load ptr, ptr %21, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.String_Array_Header, ptr %31, i32 0, i32 1
  %33 = load i32, ptr %32, align 4, !tbaa !11
  store i32 %33, ptr %17, align 4, !tbaa !9
  %34 = load ptr, ptr %21, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.String_Array_Header, ptr %34, i32 0, i32 2
  %36 = load i32, ptr %35, align 8, !tbaa !13
  store i32 %36, ptr %18, align 4, !tbaa !9
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  call void @tm_get_strlen_(ptr noundef %15, ptr noundef %37, ptr noundef %38)
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = load i32, ptr %15, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = load i32, ptr %17, align 4, !tbaa !9
  %43 = call i32 @string_array_hash(ptr noundef %39, i64 noundef %41, i64 noundef 0, i32 noundef %42)
  store i32 %43, ptr %19, align 4, !tbaa !9
  %44 = load i32, ptr %15, align 4, !tbaa !9
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %30
  store i32 5, ptr %20, align 4, !tbaa !9
  br label %50

47:                                               ; preds = %30
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = load i32, ptr %48, align 4, !tbaa !9
  store i32 %49, ptr %20, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %47, %46
  %51 = load ptr, ptr %21, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.String_Array_Header, ptr %51, i32 0, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !14
  %54 = load i32, ptr %19, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds ptr, ptr %53, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  store ptr %57, ptr %22, align 8, !tbaa !5
  %58 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %58, ptr %23, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %177, %50
  %60 = load ptr, ptr %23, align 8, !tbaa !5
  %61 = icmp ne ptr %60, null
  br i1 %61, label %62, label %181

62:                                               ; preds = %59
  %63 = load ptr, ptr %21, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.String_Array_Header, ptr %63, i32 0, i32 5
  %65 = load ptr, ptr %64, align 8, !tbaa !15
  %66 = load ptr, ptr %23, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.List_Node, ptr %66, i32 0, i32 0
  %68 = load i32, ptr %67, align 8, !tbaa !16
  %69 = sub nsw i32 %68, 1
  %70 = load i32, ptr %18, align 4, !tbaa !9
  %71 = mul nsw i32 %69, %70
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds i8, ptr %65, i64 %72
  store ptr %73, ptr %24, align 8, !tbaa !5
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = load ptr, ptr %23, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.List_Node, ptr %75, i32 0, i32 0
  call void @string_array_get_strlen_(ptr noundef %74, ptr noundef %76, ptr noundef %16)
  store i32 0, ptr %25, align 4, !tbaa !9
  %77 = load i32, ptr %16, align 4, !tbaa !9
  %78 = load i32, ptr %15, align 4, !tbaa !9
  %79 = icmp eq i32 %77, %78
  br i1 %79, label %80, label %157

80:                                               ; preds = %62
  store i32 1, ptr %25, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %153, %80
  %82 = load i32, ptr %13, align 4, !tbaa !9
  %83 = load i32, ptr %16, align 4, !tbaa !9
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %85, label %156

85:                                               ; preds = %81
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = load i32, ptr %13, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds i8, ptr %86, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !18
  %91 = sext i8 %90 to i32
  %92 = icmp sge i32 %91, 97
  br i1 %92, label %93, label %109

93:                                               ; preds = %85
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = load i32, ptr %13, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds i8, ptr %94, i64 %96
  %98 = load i8, ptr %97, align 1, !tbaa !18
  %99 = sext i8 %98 to i32
  %100 = icmp sle i32 %99, 122
  br i1 %100, label %101, label %109

101:                                              ; preds = %93
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = load i32, ptr %13, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i8, ptr %102, i64 %104
  %106 = load i8, ptr %105, align 1, !tbaa !18
  %107 = sext i8 %106 to i32
  %108 = and i32 %107, 223
  br label %116

109:                                              ; preds = %93, %85
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds i8, ptr %110, i64 %112
  %114 = load i8, ptr %113, align 1, !tbaa !18
  %115 = sext i8 %114 to i32
  br label %116

116:                                              ; preds = %109, %101
  %117 = phi i32 [ %108, %101 ], [ %115, %109 ]
  %118 = load ptr, ptr %24, align 8, !tbaa !5
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i8, ptr %118, i64 %120
  %122 = load i8, ptr %121, align 1, !tbaa !18
  %123 = sext i8 %122 to i32
  %124 = icmp sge i32 %123, 97
  br i1 %124, label %125, label %141

125:                                              ; preds = %116
  %126 = load ptr, ptr %24, align 8, !tbaa !5
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds i8, ptr %126, i64 %128
  %130 = load i8, ptr %129, align 1, !tbaa !18
  %131 = sext i8 %130 to i32
  %132 = icmp sle i32 %131, 122
  br i1 %132, label %133, label %141

133:                                              ; preds = %125
  %134 = load ptr, ptr %24, align 8, !tbaa !5
  %135 = load i32, ptr %13, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds i8, ptr %134, i64 %136
  %138 = load i8, ptr %137, align 1, !tbaa !18
  %139 = sext i8 %138 to i32
  %140 = and i32 %139, 223
  br label %148

141:                                              ; preds = %125, %116
  %142 = load ptr, ptr %24, align 8, !tbaa !5
  %143 = load i32, ptr %13, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds i8, ptr %142, i64 %144
  %146 = load i8, ptr %145, align 1, !tbaa !18
  %147 = sext i8 %146 to i32
  br label %148

148:                                              ; preds = %141, %133
  %149 = phi i32 [ %140, %133 ], [ %147, %141 ]
  %150 = icmp ne i32 %117, %149
  br i1 %150, label %151, label %152

151:                                              ; preds = %148
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %156

152:                                              ; preds = %148
  br label %153

153:                                              ; preds = %152
  %154 = load i32, ptr %13, align 4, !tbaa !9
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %13, align 4, !tbaa !9
  br label %81, !llvm.loop !19

156:                                              ; preds = %151, %81
  br label %157

157:                                              ; preds = %156, %62
  %158 = load i32, ptr %25, align 4, !tbaa !9
  %159 = icmp eq i32 %158, 1
  br i1 %159, label %160, label %176

160:                                              ; preds = %157
  %161 = load i32, ptr %14, align 4, !tbaa !9
  %162 = load i32, ptr %20, align 4, !tbaa !9
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %164, label %174

164:                                              ; preds = %160
  %165 = load ptr, ptr %23, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.List_Node, ptr %165, i32 0, i32 0
  %167 = load i32, ptr %166, align 8, !tbaa !16
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = load i32, ptr %14, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds i32, ptr %168, i64 %170
  store i32 %167, ptr %171, align 4, !tbaa !9
  %172 = load i32, ptr %14, align 4, !tbaa !9
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %14, align 4, !tbaa !9
  br label %175

174:                                              ; preds = %160
  br label %181

175:                                              ; preds = %164
  br label %176

176:                                              ; preds = %175, %157
  br label %177

177:                                              ; preds = %176
  %178 = load ptr, ptr %23, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.List_Node, ptr %178, i32 0, i32 2
  %180 = load ptr, ptr %179, align 8, !tbaa !21
  store ptr %180, ptr %23, align 8, !tbaa !5
  br label %59, !llvm.loop !22

181:                                              ; preds = %174, %59
  br label %184

182:                                              ; preds = %6
  %183 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  br label %184

184:                                              ; preds = %182, %181
  %185 = load i32, ptr %14, align 4, !tbaa !9
  %186 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 %185, ptr %186, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  ret void
}

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

declare void @tm_get_strlen_(ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @string_array_hash(ptr noundef, i64 noundef, i64 noundef, i32 noundef) #2

declare void @string_array_get_strlen_(ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @printf(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 = { 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 = { "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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"String_Array_Header", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !6, i64 24}
!15 = !{!12, !6, i64 32}
!16 = !{!17, !10, i64 0}
!17 = !{!"List_Node", !10, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!17, !6, i64 16}
!22 = distinct !{!22, !20}


; 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 [66 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @string_array_find_caseblind_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef readonly %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #0 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  %9 = load ptr, ptr %0, align 8, !tbaa !5
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %61, label %10

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %9, i64 4
  %12 = load i32, ptr %11, align 4, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %9, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !12
  call void @tm_get_strlen_(ptr noundef nonnull %7, ptr noundef %2, ptr noundef %1) #4
  %15 = load i32, ptr %7, align 4, !tbaa !13
  %16 = sext i32 %15 to i64
  %17 = call i32 @string_array_hash(ptr noundef %1, i64 noundef %16, i64 noundef 0, i32 noundef %12) #4
  %18 = load i32, ptr %7, align 4, !tbaa !13
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %22, label %20

20:                                               ; preds = %10
  %21 = load i32, ptr %4, align 4, !tbaa !13
  br label %22

22:                                               ; preds = %10, %20
  %.048 = phi i32 [ %21, %20 ], [ 5, %10 ]
  %23 = getelementptr inbounds i8, ptr %9, i64 24
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = sext i32 %17 to i64
  %26 = getelementptr inbounds ptr, ptr %24, i64 %25
  %.04657 = load ptr, ptr %26, align 8, !tbaa !5
  %.not5258 = icmp eq ptr %.04657, null
  br i1 %.not5258, label %.loopexit55, label %.lr.ph61

.lr.ph61:                                         ; preds = %22
  %27 = getelementptr inbounds i8, ptr %9, i64 32
  br label %28

28:                                               ; preds = %.lr.ph61, %.loopexit
  %.04660 = phi ptr [ %.04657, %.lr.ph61 ], [ %.046, %.loopexit ]
  %.04759 = phi i32 [ 0, %.lr.ph61 ], [ %.1, %.loopexit ]
  %29 = load ptr, ptr %27, align 8, !tbaa !15
  %30 = load i32, ptr %.04660, align 8, !tbaa !16
  %31 = add nsw i32 %30, -1
  %32 = mul nsw i32 %31, %14
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds i8, ptr %29, i64 %33
  call void @string_array_get_strlen_(ptr noundef nonnull %0, ptr noundef nonnull %.04660, ptr noundef nonnull %8) #4
  %35 = load i32, ptr %8, align 4, !tbaa !13
  %36 = load i32, ptr %7, align 4, !tbaa !13
  %37 = icmp eq i32 %35, %36
  br i1 %37, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %28
  %38 = icmp sgt i32 %35, 0
  br i1 %38, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %35 to i64
  br label %.lr.ph

39:                                               ; preds = %.lr.ph
  %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 %.critedge, label %.lr.ph, !llvm.loop !18

.lr.ph:                                           ; preds = %.lr.ph.preheader, %39
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %39 ]
  %40 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv
  %41 = load i8, ptr %40, align 1, !tbaa !20
  %42 = add i8 %41, -97
  %or.cond = icmp ult i8 %42, 26
  %43 = and i8 %41, 95
  %44 = zext nneg i8 %43 to i32
  %45 = sext i8 %41 to i32
  %46 = select i1 %or.cond, i32 %44, i32 %45
  %47 = getelementptr inbounds i8, ptr %34, i64 %indvars.iv
  %48 = load i8, ptr %47, align 1, !tbaa !20
  %49 = add i8 %48, -97
  %or.cond54 = icmp ult i8 %49, 26
  %50 = and i8 %48, 95
  %51 = zext nneg i8 %50 to i32
  %52 = sext i8 %48 to i32
  %53 = select i1 %or.cond54, i32 %51, i32 %52
  %.not53 = icmp eq i32 %46, %53
  br i1 %.not53, label %39, label %.loopexit

.critedge:                                        ; preds = %39, %.preheader
  %54 = icmp slt i32 %.04759, %.048
  br i1 %54, label %55, label %.loopexit55

55:                                               ; preds = %.critedge
  %56 = load i32, ptr %.04660, align 8, !tbaa !16
  %57 = sext i32 %.04759 to i64
  %58 = getelementptr inbounds i32, ptr %3, i64 %57
  store i32 %56, ptr %58, align 4, !tbaa !13
  %59 = add nsw i32 %.04759, 1
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %28, %55
  %.1 = phi i32 [ %59, %55 ], [ %.04759, %28 ], [ %.04759, %.lr.ph ]
  %60 = getelementptr inbounds i8, ptr %.04660, i64 16
  %.046 = load ptr, ptr %60, align 8, !tbaa !5
  %.not52 = icmp eq ptr %.046, null
  br i1 %.not52, label %.loopexit55, label %28, !llvm.loop !21

61:                                               ; preds = %6
  %62 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %.loopexit55

.loopexit55:                                      ; preds = %.critedge, %.loopexit, %22, %61
  %.2 = phi i32 [ 0, %61 ], [ 0, %22 ], [ %.04759, %.critedge ], [ %.1, %.loopexit ]
  store i32 %.2, ptr %5, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  ret void
}

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

declare void @tm_get_strlen_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @string_array_hash(ptr noundef, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

declare void @string_array_get_strlen_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nofree 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 }

!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, !11, i64 4}
!10 = !{!"String_Array_Header", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !6, i64 24}
!15 = !{!10, !6, i64 32}
!16 = !{!17, !11, i64 0}
!17 = !{!"List_Node", !11, i64 0, !6, i64 8, !6, i64 16}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !19}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass