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

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

; Function Attrs: nounwind uwtable
define dso_local void @string_array_find_(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
  store i32 0, ptr %25, align 4, !tbaa !9
  %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 %170

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 = %165, %50
  %60 = load ptr, ptr %23, align 8, !tbaa !5
  %61 = icmp ne ptr %60, null
  br i1 %61, label %62, label %169

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 %145

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 = %141, %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 %144

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 = load ptr, ptr %24, align 8, !tbaa !5
  %93 = load i32, ptr %13, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i8, ptr %92, i64 %94
  %96 = load i8, ptr %95, align 1, !tbaa !18
  %97 = sext i8 %96 to i32
  %98 = icmp ne i32 %91, %97
  br i1 %98, label %99, label %140

99:                                               ; preds = %85
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = load i32, ptr %13, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i8, ptr %100, i64 %102
  %104 = load i8, ptr %103, align 1, !tbaa !18
  %105 = sext i8 %104 to i32
  %106 = icmp sge i32 %105, 97
  br i1 %106, label %107, label %123

107:                                              ; preds = %99
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = load i32, ptr %13, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds i8, ptr %108, i64 %110
  %112 = load i8, ptr %111, align 1, !tbaa !18
  %113 = sext i8 %112 to i32
  %114 = icmp sle i32 %113, 122
  br i1 %114, label %115, label %123

115:                                              ; preds = %107
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = load i32, ptr %13, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds i8, ptr %116, i64 %118
  %120 = load i8, ptr %119, align 1, !tbaa !18
  %121 = sext i8 %120 to i32
  %122 = and i32 %121, 223
  br label %130

123:                                              ; preds = %107, %99
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = load i32, ptr %13, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds i8, ptr %124, i64 %126
  %128 = load i8, ptr %127, align 1, !tbaa !18
  %129 = sext i8 %128 to i32
  br label %130

130:                                              ; preds = %123, %115
  %131 = phi i32 [ %122, %115 ], [ %129, %123 ]
  %132 = load ptr, ptr %24, align 8, !tbaa !5
  %133 = load i32, ptr %13, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds i8, ptr %132, i64 %134
  %136 = load i8, ptr %135, align 1, !tbaa !18
  %137 = sext i8 %136 to i32
  %138 = icmp ne i32 %131, %137
  br i1 %138, label %139, label %140

139:                                              ; preds = %130
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %144

140:                                              ; preds = %130, %85
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %13, align 4, !tbaa !9
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %13, align 4, !tbaa !9
  br label %81, !llvm.loop !19

144:                                              ; preds = %139, %81
  br label %145

145:                                              ; preds = %144, %62
  %146 = load i32, ptr %25, align 4, !tbaa !9
  %147 = icmp eq i32 %146, 1
  br i1 %147, label %148, label %164

148:                                              ; preds = %145
  %149 = load i32, ptr %14, align 4, !tbaa !9
  %150 = load i32, ptr %20, align 4, !tbaa !9
  %151 = icmp slt i32 %149, %150
  br i1 %151, label %152, label %162

152:                                              ; preds = %148
  %153 = load ptr, ptr %23, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.List_Node, ptr %153, i32 0, i32 0
  %155 = load i32, ptr %154, align 8, !tbaa !16
  %156 = load ptr, ptr %10, align 8, !tbaa !5
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds i32, ptr %156, i64 %158
  store i32 %155, ptr %159, align 4, !tbaa !9
  %160 = load i32, ptr %14, align 4, !tbaa !9
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %14, align 4, !tbaa !9
  br label %163

162:                                              ; preds = %148
  br label %169

163:                                              ; preds = %152
  br label %164

164:                                              ; preds = %163, %145
  br label %165

165:                                              ; preds = %164
  %166 = load ptr, ptr %23, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.List_Node, ptr %166, i32 0, i32 2
  %168 = load ptr, ptr %167, align 8, !tbaa !21
  store ptr %168, ptr %23, align 8, !tbaa !5
  br label %59, !llvm.loop !22

169:                                              ; preds = %162, %59
  br label %172

170:                                              ; preds = %6
  %171 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  br label %172

172:                                              ; preds = %170, %169
  %173 = load i32, ptr %14, align 4, !tbaa !9
  %174 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 %173, ptr %174, 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 [56 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @string_array_find_(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 %58, 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
  %.046 = 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
  %.04454 = load ptr, ptr %26, align 8, !tbaa !5
  %.not4955 = icmp eq ptr %.04454, null
  br i1 %.not4955, label %.loopexit52, label %.lr.ph58

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

28:                                               ; preds = %.lr.ph58, %.loopexit
  %.04457 = phi ptr [ %.04454, %.lr.ph58 ], [ %.044, %.loopexit ]
  %.04556 = phi i32 [ 0, %.lr.ph58 ], [ %.1, %.loopexit ]
  %29 = load ptr, ptr %27, align 8, !tbaa !15
  %30 = load i32, ptr %.04457, 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 %.04457, 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

.lr.ph:                                           ; preds = %.lr.ph.preheader, %50
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %50 ]
  %39 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv
  %40 = load i8, ptr %39, align 1, !tbaa !18
  %41 = getelementptr inbounds i8, ptr %34, i64 %indvars.iv
  %42 = load i8, ptr %41, align 1, !tbaa !18
  %.not50 = icmp eq i8 %40, %42
  br i1 %.not50, label %50, label %43

43:                                               ; preds = %.lr.ph
  %44 = add i8 %40, -97
  %or.cond = icmp ult i8 %44, 26
  %45 = and i8 %40, 95
  %46 = zext nneg i8 %45 to i32
  %47 = sext i8 %40 to i32
  %48 = select i1 %or.cond, i32 %46, i32 %47
  %49 = sext i8 %42 to i32
  %.not51 = icmp eq i32 %48, %49
  br i1 %.not51, label %50, label %.loopexit

50:                                               ; preds = %.lr.ph, %43
  %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 !19

.critedge:                                        ; preds = %50, %.preheader
  %51 = icmp slt i32 %.04556, %.046
  br i1 %51, label %52, label %.loopexit52

52:                                               ; preds = %.critedge
  %53 = load i32, ptr %.04457, align 8, !tbaa !16
  %54 = sext i32 %.04556 to i64
  %55 = getelementptr inbounds i32, ptr %3, i64 %54
  store i32 %53, ptr %55, align 4, !tbaa !13
  %56 = add nsw i32 %.04556, 1
  br label %.loopexit

.loopexit:                                        ; preds = %43, %28, %52
  %.1 = phi i32 [ %56, %52 ], [ %.04556, %28 ], [ %.04556, %43 ]
  %57 = getelementptr inbounds i8, ptr %.04457, i64 16
  %.044 = load ptr, ptr %57, align 8, !tbaa !5
  %.not49 = icmp eq ptr %.044, null
  br i1 %.not49, label %.loopexit52, label %28, !llvm.loop !21

58:                                               ; preds = %6
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %.loopexit52

.loopexit52:                                      ; preds = %.critedge, %.loopexit, %22, %58
  %.2 = phi i32 [ 0, %58 ], [ 0, %22 ], [ %.04556, %.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 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


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