; LLVM IR from davidesantangelo/krep :: test (test_multiple_patterns)

; 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.search_params = type { ptr, i64, ptr, ptr, i64, i8, i8, i8, i8, i8, i8, ptr, ptr, i64 }
%struct.match_result_t = type { ptr, i64, i64 }

@tests_failed = external global i32, align 4
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@tests_passed = external global i32, align 4
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [20 x i8], align 1
@__const.test_position_tracking_multipattern.patterns = external hidden unnamed_addr constant [3 x ptr], align 16
@__const.test_position_tracking_multipattern.pattern_lens = external hidden unnamed_addr constant [3 x i64], align 16
@.str.43 = external hidden unnamed_addr constant [71 x i8], align 1
@stderr = external global ptr, align 8
@.str.44 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [28 x i8], align 1

declare i32 @printf(ptr 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: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare ptr @ac_trie_build(ptr noundef) #0

declare i64 @aho_corasick_search(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #0

declare void @ac_trie_free(ptr noundef) #0

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

; Function Attrs: nounwind uwtable
define dso_local void @test_position_tracking_multipattern() #4 {
  %1 = alloca ptr, align 8
  %2 = alloca i64, align 8
  %3 = alloca [3 x ptr], align 16
  %4 = alloca [3 x i64], align 16
  %5 = alloca i64, align 8
  %6 = alloca %struct.search_params, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = call i32 (ptr, ...) @printf(ptr noundef @.str.38)
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  store ptr @.str.39, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %11 = load ptr, ptr %1, align 8, !tbaa !5
  %12 = call i64 @strlen(ptr noundef %11) #7
  store i64 %12, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.test_position_tracking_multipattern.patterns, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.test_position_tracking_multipattern.pattern_lens, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 3, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 72, ptr %6) #6
  %13 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 0
  store ptr null, ptr %13, align 8, !tbaa !11
  %14 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 1
  store i64 0, ptr %14, align 8, !tbaa !14
  %15 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 2
  %16 = getelementptr inbounds [3 x ptr], ptr %3, i64 0, i64 0
  store ptr %16, ptr %15, align 8, !tbaa !15
  %17 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 3
  %18 = getelementptr inbounds [3 x i64], ptr %4, i64 0, i64 0
  store ptr %18, ptr %17, align 8, !tbaa !16
  %19 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 4
  %20 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %20, ptr %19, align 8, !tbaa !17
  %21 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 5
  store i8 1, ptr %21, align 8, !tbaa !18
  %22 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 6
  store i8 0, ptr %22, align 1, !tbaa !19
  %23 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 7
  store i8 0, ptr %23, align 2, !tbaa !20
  %24 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 8
  store i8 0, ptr %24, align 1, !tbaa !21
  %25 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 9
  store i8 1, ptr %25, align 4, !tbaa !22
  %26 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 10
  store i8 0, ptr %26, align 1, !tbaa !23
  %27 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 11
  store ptr null, ptr %27, align 8, !tbaa !24
  %28 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 12
  store ptr null, ptr %28, align 8, !tbaa !25
  %29 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 13
  store i64 -1, ptr %29, align 8, !tbaa !26
  %30 = call ptr @ac_trie_build(ptr noundef %6)
  %31 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 12
  store ptr %30, ptr %31, align 8, !tbaa !25
  %32 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 12
  %33 = load ptr, ptr %32, align 8, !tbaa !25
  %34 = icmp ne ptr %33, null
  br i1 %34, label %39, label %35

35:                                               ; preds = %0
  %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.43)
  %37 = load i32, ptr @tests_failed, align 4, !tbaa !27
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr @tests_failed, align 4, !tbaa !27
  store i32 1, ptr %7, align 4
  br label %87

39:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %40 = call ptr @match_result_init(i64 noundef 10)
  store ptr %40, ptr %8, align 8, !tbaa !5
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %48, label %43

43:                                               ; preds = %39
  %44 = load ptr, ptr @stderr, align 8, !tbaa !5
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef @.str.44) #6
  %46 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 12
  %47 = load ptr, ptr %46, align 8, !tbaa !25
  call void @ac_trie_free(ptr noundef %47)
  store i32 1, ptr %7, align 4
  br label %86

48:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %49 = load ptr, ptr %1, align 8, !tbaa !5
  %50 = load i64, ptr %2, align 8, !tbaa !9
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = call i64 @aho_corasick_search(ptr noundef %6, ptr noundef %49, i64 noundef %50, ptr noundef %51)
  store i64 %52, ptr %9, align 8, !tbaa !9
  br label %53

53:                                               ; preds = %48
  %54 = load i64, ptr %9, align 8, !tbaa !9
  %55 = icmp eq i64 %54, 3
  br i1 %55, label %56, label %60

56:                                               ; preds = %53
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.45)
  %58 = load i32, ptr @tests_passed, align 4, !tbaa !27
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr @tests_passed, align 4, !tbaa !27
  br label %64

60:                                               ; preds = %53
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef @.str.45)
  %62 = load i32, ptr @tests_failed, align 4, !tbaa !27
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr @tests_failed, align 4, !tbaa !27
  br label %64

64:                                               ; preds = %60, %56
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65
  br label %67

67:                                               ; preds = %66
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.match_result_t, ptr %68, i32 0, i32 1
  %70 = load i64, ptr %69, align 8, !tbaa !29
  %71 = icmp eq i64 %70, 3
  br i1 %71, label %72, label %76

72:                                               ; preds = %67
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.46)
  %74 = load i32, ptr @tests_passed, align 4, !tbaa !27
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr @tests_passed, align 4, !tbaa !27
  br label %80

76:                                               ; preds = %67
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef @.str.46)
  %78 = load i32, ptr @tests_failed, align 4, !tbaa !27
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr @tests_failed, align 4, !tbaa !27
  br label %80

80:                                               ; preds = %76, %72
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  call void @match_result_free(ptr noundef %83)
  %84 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 12
  %85 = load ptr, ptr %84, align 8, !tbaa !25
  call void @ac_trie_free(ptr noundef %85)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  store i32 0, ptr %7, align 4
  br label %86

86:                                               ; preds = %82, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %87

87:                                               ; preds = %86, %35
  call void @llvm.lifetime.end.p0(i64 72, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  %88 = load i32, ptr %7, align 4
  switch i32 %88, label %90 [
    i32 0, label %89
    i32 1, label %89
  ]

89:                                               ; preds = %87, %87
  ret void

90:                                               ; preds = %87
  unreachable
}

declare ptr @match_result_init(i64 noundef) #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

declare void @match_result_free(ptr noundef) #0

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"search_params", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !13, i64 40, !13, i64 41, !13, i64 42, !13, i64 43, !13, i64 44, !13, i64 45, !6, i64 48, !6, i64 56, !10, i64 64}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!12, !10, i64 8}
!15 = !{!12, !6, i64 16}
!16 = !{!12, !6, i64 24}
!17 = !{!12, !10, i64 32}
!18 = !{!12, !13, i64 40}
!19 = !{!12, !13, i64 41}
!20 = !{!12, !13, i64 42}
!21 = !{!12, !13, i64 43}
!22 = !{!12, !13, i64 44}
!23 = !{!12, !13, i64 45}
!24 = !{!12, !6, i64 48}
!25 = !{!12, !6, i64 56}
!26 = !{!12, !10, i64 64}
!27 = !{!28, !28, i64 0}
!28 = !{!"int", !7, i64 0}
!29 = !{!30, !10, i64 8}
!30 = !{!"match_result_t", !6, i64 0, !10, i64 8, !10, 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"

%struct.search_params = type { ptr, i64, ptr, ptr, i64, i8, i8, i8, i8, i8, i8, ptr, ptr, i64 }

@tests_failed = external local_unnamed_addr global i32, align 4
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@tests_passed = external local_unnamed_addr global i32, align 4
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [20 x i8], align 1
@__const.test_position_tracking_multipattern.patterns = external hidden unnamed_addr constant [3 x ptr], align 16
@__const.test_position_tracking_multipattern.pattern_lens = external hidden unnamed_addr constant [3 x i64], align 16
@.str.43 = external hidden unnamed_addr constant [71 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.44 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [28 x i8], align 1

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare ptr @ac_trie_build(ptr noundef) local_unnamed_addr #4

declare i64 @aho_corasick_search(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

declare void @ac_trie_free(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
define dso_local void @test_position_tracking_multipattern() local_unnamed_addr #5 {
  %1 = alloca [3 x ptr], align 16
  %2 = alloca [3 x i64], align 16
  %3 = alloca %struct.search_params, align 8
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38)
  %5 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.39) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %1, ptr noundef nonnull align 16 dereferenceable(24) @__const.test_position_tracking_multipattern.patterns, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %2, ptr noundef nonnull align 16 dereferenceable(24) @__const.test_position_tracking_multipattern.pattern_lens, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %3) #8
  %6 = getelementptr inbounds i8, ptr %3, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 0, i64 16, i1 false)
  store ptr %1, ptr %6, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %2, ptr %7, align 8, !tbaa !12
  %8 = getelementptr inbounds i8, ptr %3, i64 32
  store i64 3, ptr %8, align 8, !tbaa !13
  %9 = getelementptr inbounds i8, ptr %3, i64 40
  store <4 x i8> <i8 1, i8 0, i8 0, i8 0>, ptr %9, align 8, !tbaa !14
  %10 = getelementptr inbounds i8, ptr %3, i64 44
  store i8 1, ptr %10, align 4, !tbaa !15
  %11 = getelementptr inbounds i8, ptr %3, i64 45
  store i8 0, ptr %11, align 1, !tbaa !16
  %12 = getelementptr inbounds i8, ptr %3, i64 48
  %13 = getelementptr inbounds i8, ptr %3, i64 56
  %14 = getelementptr inbounds i8, ptr %3, i64 64
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %12, i8 0, i64 16, i1 false)
  store i64 -1, ptr %14, align 8, !tbaa !17
  %15 = call ptr @ac_trie_build(ptr noundef nonnull %3) #8
  store ptr %15, ptr %13, align 8, !tbaa !18
  %.not = icmp eq ptr %15, null
  br i1 %.not, label %16, label %20

16:                                               ; preds = %0
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.43)
  %18 = load i32, ptr @tests_failed, align 4, !tbaa !19
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr @tests_failed, align 4, !tbaa !19
  br label %39

20:                                               ; preds = %0
  %21 = call ptr @match_result_init(i64 noundef 10) #8
  %.not8 = icmp eq ptr %21, null
  br i1 %.not8, label %22, label %26

22:                                               ; preds = %20
  %23 = load ptr, ptr @stderr, align 8, !tbaa !21
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.44) #9
  %25 = load ptr, ptr %13, align 8, !tbaa !18
  call void @ac_trie_free(ptr noundef %25) #8
  br label %39

26:                                               ; preds = %20
  %27 = call i64 @aho_corasick_search(ptr noundef nonnull %3, ptr noundef nonnull @.str.39, i64 noundef %5, ptr noundef nonnull %21) #8
  %28 = icmp eq i64 %27, 3
  %.str.7..str.9 = select i1 %28, ptr @.str.7, ptr @.str.9
  %tests_passed.tests_failed = select i1 %28, ptr @tests_passed, ptr @tests_failed
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.9, ptr noundef nonnull @.str.45)
  %30 = load i32, ptr %tests_passed.tests_failed, align 4, !tbaa !19
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %tests_passed.tests_failed, align 4, !tbaa !19
  %32 = getelementptr inbounds i8, ptr %21, i64 8
  %33 = load i64, ptr %32, align 8, !tbaa !22
  %34 = icmp eq i64 %33, 3
  %.str.9.sink = select i1 %34, ptr @.str.7, ptr @.str.9
  %tests_failed.sink12 = select i1 %34, ptr @tests_passed, ptr @tests_failed
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.9.sink, ptr noundef nonnull @.str.46)
  %36 = load i32, ptr %tests_failed.sink12, align 4, !tbaa !19
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %tests_failed.sink12, align 4, !tbaa !19
  call void @match_result_free(ptr noundef nonnull %21) #8
  %38 = load ptr, ptr %13, align 8, !tbaa !18
  call void @ac_trie_free(ptr noundef %38) #8
  br label %39

39:                                               ; preds = %22, %26, %16
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  ret void
}

declare ptr @match_result_init(i64 noundef) local_unnamed_addr #4

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

declare void @match_result_free(ptr noundef) local_unnamed_addr #4

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { nounwind }
attributes #9 = { cold 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, !7, i64 16}
!6 = !{!"search_params", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !11, i64 41, !11, i64 42, !11, i64 43, !11, i64 44, !11, i64 45, !7, i64 48, !7, i64 56, !10, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{!6, !7, i64 24}
!13 = !{!6, !10, i64 32}
!14 = !{!11, !11, i64 0}
!15 = !{!6, !11, i64 44}
!16 = !{!6, !11, i64 45}
!17 = !{!6, !10, i64 64}
!18 = !{!6, !7, i64 56}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !8, i64 0}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !10, i64 8}
!23 = !{!"match_result_t", !7, i64 0, !10, i64 8, !10, i64 16}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass