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

; 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_passed = external dso_local global i32, align 4
@tests_failed = external dso_local global i32, align 4
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [59 x i8], align 1
@__const.test_max_count_new.ac_patterns = external hidden unnamed_addr constant [2 x ptr], align 16
@__const.test_max_count_new.ac_pattern_lens = external hidden unnamed_addr constant [2 x i64], align 16
@.str.115 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [49 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @create_literal_params(ptr dead_on_unwind noalias writable sret(%struct.search_params) align 8, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #0

; Function Attrs: nounwind uwtable
declare dso_local void @create_regex_params(ptr dead_on_unwind noalias writable sret(%struct.search_params) align 8, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #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: nounwind uwtable
declare dso_local void @cleanup_params(ptr noundef) #0

declare void @ac_trie_free(ptr noundef) #2

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

declare ptr @match_result_init(i64 noundef) #2

declare i64 @boyer_moore_search(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

declare void @match_result_free(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) #4

; Function Attrs: nounwind uwtable
define dso_local void @test_max_count_new() #0 {
  %1 = alloca ptr, align 8
  %2 = alloca i64, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %struct.search_params, align 8
  %5 = alloca %struct.search_params, align 8
  %6 = alloca %struct.search_params, align 8
  %7 = alloca %struct.search_params, align 8
  %8 = alloca %struct.search_params, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca [2 x ptr], align 16
  %12 = alloca [2 x i64], align 16
  %13 = alloca %struct.search_params, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = call i32 (ptr, ...) @printf(ptr noundef @.str.77)
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  store ptr @.str.78, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  %17 = load ptr, ptr %1, align 8, !tbaa !5
  %18 = call i64 @strlen(ptr noundef %17) #6
  store i64 %18, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  store ptr null, ptr %3, align 8, !tbaa !5
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str.79)
  call void @llvm.lifetime.start.p0(i64 72, ptr %4) #5
  call void @create_literal_params(ptr dead_on_unwind writable sret(%struct.search_params) align 8 %4, ptr noundef @.str.80, i1 noundef zeroext true, i1 noundef zeroext false, i1 noundef zeroext false)
  %20 = getelementptr inbounds %struct.search_params, ptr %4, i32 0, i32 13
  store i64 2, ptr %20, align 8, !tbaa !11
  %21 = call ptr @match_result_init(i64 noundef 10)
  store ptr %21, ptr %3, align 8, !tbaa !5
  br label %22

22:                                               ; preds = %0
  %23 = load ptr, ptr %1, align 8, !tbaa !5
  %24 = load i64, ptr %2, align 8, !tbaa !9
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = call i64 @boyer_moore_search(ptr noundef %4, ptr noundef %23, i64 noundef %24, ptr noundef %25)
  %27 = icmp eq i64 %26, 2
  br i1 %27, label %28, label %32

28:                                               ; preds = %22
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.81)
  %30 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr @tests_passed, align 4, !tbaa !14
  br label %36

32:                                               ; preds = %22
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.81)
  %34 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr @tests_failed, align 4, !tbaa !14
  br label %36

36:                                               ; preds = %32, %28
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  br label %39

39:                                               ; preds = %38
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.match_result_t, ptr %40, i32 0, i32 1
  %42 = load i64, ptr %41, align 8, !tbaa !16
  %43 = icmp eq i64 %42, 2
  br i1 %43, label %44, label %48

44:                                               ; preds = %39
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.82)
  %46 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr @tests_passed, align 4, !tbaa !14
  br label %52

48:                                               ; preds = %39
  %49 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.82)
  %50 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr @tests_failed, align 4, !tbaa !14
  br label %52

52:                                               ; preds = %48, %44
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  call void @match_result_free(ptr noundef %55)
  store ptr null, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.search_params, ptr %4, i32 0, i32 13
  store i64 4, ptr %56, align 8, !tbaa !11
  %57 = call ptr @match_result_init(i64 noundef 10)
  store ptr %57, ptr %3, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %54
  %59 = load ptr, ptr %1, align 8, !tbaa !5
  %60 = load i64, ptr %2, align 8, !tbaa !9
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = call i64 @boyer_moore_search(ptr noundef %4, ptr noundef %59, i64 noundef %60, ptr noundef %61)
  %63 = icmp eq i64 %62, 4
  br i1 %63, label %64, label %68

64:                                               ; preds = %58
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.83)
  %66 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr @tests_passed, align 4, !tbaa !14
  br label %72

68:                                               ; preds = %58
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.83)
  %70 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr @tests_failed, align 4, !tbaa !14
  br label %72

72:                                               ; preds = %68, %64
  br label %73

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %73
  br label %75

75:                                               ; preds = %74
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.match_result_t, ptr %76, i32 0, i32 1
  %78 = load i64, ptr %77, align 8, !tbaa !16
  %79 = icmp eq i64 %78, 4
  br i1 %79, label %80, label %84

80:                                               ; preds = %75
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.84)
  %82 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr @tests_passed, align 4, !tbaa !14
  br label %88

84:                                               ; preds = %75
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.84)
  %86 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr @tests_failed, align 4, !tbaa !14
  br label %88

88:                                               ; preds = %84, %80
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  call void @match_result_free(ptr noundef %91)
  store ptr null, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.search_params, ptr %4, i32 0, i32 13
  store i64 5, ptr %92, align 8, !tbaa !11
  %93 = call ptr @match_result_init(i64 noundef 10)
  store ptr %93, ptr %3, align 8, !tbaa !5
  br label %94

94:                                               ; preds = %90
  %95 = load ptr, ptr %1, align 8, !tbaa !5
  %96 = load i64, ptr %2, align 8, !tbaa !9
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = call i64 @boyer_moore_search(ptr noundef %4, ptr noundef %95, i64 noundef %96, ptr noundef %97)
  %99 = icmp eq i64 %98, 4
  br i1 %99, label %100, label %104

100:                                              ; preds = %94
  %101 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.85)
  %102 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr @tests_passed, align 4, !tbaa !14
  br label %108

104:                                              ; preds = %94
  %105 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.85)
  %106 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr @tests_failed, align 4, !tbaa !14
  br label %108

108:                                              ; preds = %104, %100
  br label %109

109:                                              ; preds = %108
  br label %110

110:                                              ; preds = %109
  br label %111

111:                                              ; preds = %110
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.match_result_t, ptr %112, i32 0, i32 1
  %114 = load i64, ptr %113, align 8, !tbaa !16
  %115 = icmp eq i64 %114, 4
  br i1 %115, label %116, label %120

116:                                              ; preds = %111
  %117 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.86)
  %118 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr @tests_passed, align 4, !tbaa !14
  br label %124

120:                                              ; preds = %111
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.86)
  %122 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr @tests_failed, align 4, !tbaa !14
  br label %124

124:                                              ; preds = %120, %116
  br label %125

125:                                              ; preds = %124
  br label %126

126:                                              ; preds = %125
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  call void @match_result_free(ptr noundef %127)
  store ptr null, ptr %3, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.search_params, ptr %4, i32 0, i32 13
  store i64 1, ptr %128, align 8, !tbaa !11
  %129 = call ptr @match_result_init(i64 noundef 10)
  store ptr %129, ptr %3, align 8, !tbaa !5
  br label %130

130:                                              ; preds = %126
  %131 = load ptr, ptr %1, align 8, !tbaa !5
  %132 = load i64, ptr %2, align 8, !tbaa !9
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = call i64 @boyer_moore_search(ptr noundef %4, ptr noundef %131, i64 noundef %132, ptr noundef %133)
  %135 = icmp eq i64 %134, 1
  br i1 %135, label %136, label %140

136:                                              ; preds = %130
  %137 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.87)
  %138 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr @tests_passed, align 4, !tbaa !14
  br label %144

140:                                              ; preds = %130
  %141 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.87)
  %142 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr @tests_failed, align 4, !tbaa !14
  br label %144

144:                                              ; preds = %140, %136
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.match_result_t, ptr %148, i32 0, i32 1
  %150 = load i64, ptr %149, align 8, !tbaa !16
  %151 = icmp eq i64 %150, 1
  br i1 %151, label %152, label %156

152:                                              ; preds = %147
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.88)
  %154 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr @tests_passed, align 4, !tbaa !14
  br label %160

156:                                              ; preds = %147
  %157 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.88)
  %158 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr @tests_failed, align 4, !tbaa !14
  br label %160

160:                                              ; preds = %156, %152
  br label %161

161:                                              ; preds = %160
  br label %162

162:                                              ; preds = %161
  %163 = load ptr, ptr %3, align 8, !tbaa !5
  call void @match_result_free(ptr noundef %163)
  store ptr null, ptr %3, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.search_params, ptr %4, i32 0, i32 13
  store i64 0, ptr %164, align 8, !tbaa !11
  %165 = call ptr @match_result_init(i64 noundef 10)
  store ptr %165, ptr %3, align 8, !tbaa !5
  br label %166

166:                                              ; preds = %162
  %167 = load ptr, ptr %1, align 8, !tbaa !5
  %168 = load i64, ptr %2, align 8, !tbaa !9
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = call i64 @boyer_moore_search(ptr noundef %4, ptr noundef %167, i64 noundef %168, ptr noundef %169)
  %171 = icmp eq i64 %170, 0
  br i1 %171, label %172, label %176

172:                                              ; preds = %166
  %173 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.89)
  %174 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr @tests_passed, align 4, !tbaa !14
  br label %180

176:                                              ; preds = %166
  %177 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.89)
  %178 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr @tests_failed, align 4, !tbaa !14
  br label %180

180:                                              ; preds = %176, %172
  br label %181

181:                                              ; preds = %180
  br label %182

182:                                              ; preds = %181
  br label %183

183:                                              ; preds = %182
  %184 = load ptr, ptr %3, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.match_result_t, ptr %184, i32 0, i32 1
  %186 = load i64, ptr %185, align 8, !tbaa !16
  %187 = icmp eq i64 %186, 0
  br i1 %187, label %188, label %192

188:                                              ; preds = %183
  %189 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.90)
  %190 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr @tests_passed, align 4, !tbaa !14
  br label %196

192:                                              ; preds = %183
  %193 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.90)
  %194 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr @tests_failed, align 4, !tbaa !14
  br label %196

196:                                              ; preds = %192, %188
  br label %197

197:                                              ; preds = %196
  br label %198

198:                                              ; preds = %197
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  call void @match_result_free(ptr noundef %199)
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @cleanup_params(ptr noundef %4)
  %200 = call i32 (ptr, ...) @printf(ptr noundef @.str.91)
  call void @llvm.lifetime.start.p0(i64 72, ptr %5) #5
  call void @create_literal_params(ptr dead_on_unwind writable sret(%struct.search_params) align 8 %5, ptr noundef @.str.80, i1 noundef zeroext true, i1 noundef zeroext true, i1 noundef zeroext false)
  %201 = getelementptr inbounds %struct.search_params, ptr %5, i32 0, i32 13
  store i64 2, ptr %201, align 8, !tbaa !11
  br label %202

202:                                              ; preds = %198
  %203 = load ptr, ptr %1, align 8, !tbaa !5
  %204 = load i64, ptr %2, align 8, !tbaa !9
  %205 = call i64 @boyer_moore_search(ptr noundef %5, ptr noundef %203, i64 noundef %204, ptr noundef null)
  %206 = icmp eq i64 %205, 2
  br i1 %206, label %207, label %211

207:                                              ; preds = %202
  %208 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.92)
  %209 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr @tests_passed, align 4, !tbaa !14
  br label %215

211:                                              ; preds = %202
  %212 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.92)
  %213 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr @tests_failed, align 4, !tbaa !14
  br label %215

215:                                              ; preds = %211, %207
  br label %216

216:                                              ; preds = %215
  br label %217

217:                                              ; preds = %216
  %218 = getelementptr inbounds %struct.search_params, ptr %5, i32 0, i32 13
  store i64 4, ptr %218, align 8, !tbaa !11
  br label %219

219:                                              ; preds = %217
  %220 = load ptr, ptr %1, align 8, !tbaa !5
  %221 = load i64, ptr %2, align 8, !tbaa !9
  %222 = call i64 @boyer_moore_search(ptr noundef %5, ptr noundef %220, i64 noundef %221, ptr noundef null)
  %223 = icmp eq i64 %222, 4
  br i1 %223, label %224, label %228

224:                                              ; preds = %219
  %225 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.93)
  %226 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr @tests_passed, align 4, !tbaa !14
  br label %232

228:                                              ; preds = %219
  %229 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.93)
  %230 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr @tests_failed, align 4, !tbaa !14
  br label %232

232:                                              ; preds = %228, %224
  br label %233

233:                                              ; preds = %232
  br label %234

234:                                              ; preds = %233
  %235 = getelementptr inbounds %struct.search_params, ptr %5, i32 0, i32 13
  store i64 5, ptr %235, align 8, !tbaa !11
  br label %236

236:                                              ; preds = %234
  %237 = load ptr, ptr %1, align 8, !tbaa !5
  %238 = load i64, ptr %2, align 8, !tbaa !9
  %239 = call i64 @boyer_moore_search(ptr noundef %5, ptr noundef %237, i64 noundef %238, ptr noundef null)
  %240 = icmp eq i64 %239, 4
  br i1 %240, label %241, label %245

241:                                              ; preds = %236
  %242 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.94)
  %243 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr @tests_passed, align 4, !tbaa !14
  br label %249

245:                                              ; preds = %236
  %246 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.94)
  %247 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr @tests_failed, align 4, !tbaa !14
  br label %249

249:                                              ; preds = %245, %241
  br label %250

250:                                              ; preds = %249
  br label %251

251:                                              ; preds = %250
  %252 = getelementptr inbounds %struct.search_params, ptr %5, i32 0, i32 13
  store i64 1, ptr %252, align 8, !tbaa !11
  br label %253

253:                                              ; preds = %251
  %254 = load ptr, ptr %1, align 8, !tbaa !5
  %255 = load i64, ptr %2, align 8, !tbaa !9
  %256 = call i64 @boyer_moore_search(ptr noundef %5, ptr noundef %254, i64 noundef %255, ptr noundef null)
  %257 = icmp eq i64 %256, 1
  br i1 %257, label %258, label %262

258:                                              ; preds = %253
  %259 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.95)
  %260 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr @tests_passed, align 4, !tbaa !14
  br label %266

262:                                              ; preds = %253
  %263 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.95)
  %264 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr @tests_failed, align 4, !tbaa !14
  br label %266

266:                                              ; preds = %262, %258
  br label %267

267:                                              ; preds = %266
  br label %268

268:                                              ; preds = %267
  %269 = getelementptr inbounds %struct.search_params, ptr %5, i32 0, i32 13
  store i64 0, ptr %269, align 8, !tbaa !11
  br label %270

270:                                              ; preds = %268
  %271 = load ptr, ptr %1, align 8, !tbaa !5
  %272 = load i64, ptr %2, align 8, !tbaa !9
  %273 = call i64 @boyer_moore_search(ptr noundef %5, ptr noundef %271, i64 noundef %272, ptr noundef null)
  %274 = icmp eq i64 %273, 0
  br i1 %274, label %275, label %279

275:                                              ; preds = %270
  %276 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.96)
  %277 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr @tests_passed, align 4, !tbaa !14
  br label %283

279:                                              ; preds = %270
  %280 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.96)
  %281 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %282 = add nsw i32 %281, 1
  store i32 %282, ptr @tests_failed, align 4, !tbaa !14
  br label %283

283:                                              ; preds = %279, %275
  br label %284

284:                                              ; preds = %283
  br label %285

285:                                              ; preds = %284
  call void @cleanup_params(ptr noundef %5)
  %286 = call i32 (ptr, ...) @printf(ptr noundef @.str.97)
  call void @llvm.lifetime.start.p0(i64 72, ptr %6) #5
  call void @create_literal_params(ptr dead_on_unwind writable sret(%struct.search_params) align 8 %6, ptr noundef @.str.80, i1 noundef zeroext true, i1 noundef zeroext false, i1 noundef zeroext true)
  %287 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 13
  store i64 2, ptr %287, align 8, !tbaa !11
  %288 = call ptr @match_result_init(i64 noundef 10)
  store ptr %288, ptr %3, align 8, !tbaa !5
  br label %289

289:                                              ; preds = %285
  %290 = load ptr, ptr %1, align 8, !tbaa !5
  %291 = load i64, ptr %2, align 8, !tbaa !9
  %292 = load ptr, ptr %3, align 8, !tbaa !5
  %293 = call i64 @boyer_moore_search(ptr noundef %6, ptr noundef %290, i64 noundef %291, ptr noundef %292)
  %294 = icmp eq i64 %293, 2
  br i1 %294, label %295, label %299

295:                                              ; preds = %289
  %296 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.98)
  %297 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %298 = add nsw i32 %297, 1
  store i32 %298, ptr @tests_passed, align 4, !tbaa !14
  br label %303

299:                                              ; preds = %289
  %300 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.98)
  %301 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr @tests_failed, align 4, !tbaa !14
  br label %303

303:                                              ; preds = %299, %295
  br label %304

304:                                              ; preds = %303
  br label %305

305:                                              ; preds = %304
  br label %306

306:                                              ; preds = %305
  %307 = load ptr, ptr %3, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.match_result_t, ptr %307, i32 0, i32 1
  %309 = load i64, ptr %308, align 8, !tbaa !16
  %310 = icmp eq i64 %309, 2
  br i1 %310, label %311, label %315

311:                                              ; preds = %306
  %312 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.99)
  %313 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %314 = add nsw i32 %313, 1
  store i32 %314, ptr @tests_passed, align 4, !tbaa !14
  br label %319

315:                                              ; preds = %306
  %316 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.99)
  %317 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %318 = add nsw i32 %317, 1
  store i32 %318, ptr @tests_failed, align 4, !tbaa !14
  br label %319

319:                                              ; preds = %315, %311
  br label %320

320:                                              ; preds = %319
  br label %321

321:                                              ; preds = %320
  %322 = load ptr, ptr %3, align 8, !tbaa !5
  call void @match_result_free(ptr noundef %322)
  store ptr null, ptr %3, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.search_params, ptr %6, i32 0, i32 13
  store i64 4, ptr %323, align 8, !tbaa !11
  %324 = call ptr @match_result_init(i64 noundef 10)
  store ptr %324, ptr %3, align 8, !tbaa !5
  br label %325

325:                                              ; preds = %321
  %326 = load ptr, ptr %1, align 8, !tbaa !5
  %327 = load i64, ptr %2, align 8, !tbaa !9
  %328 = load ptr, ptr %3, align 8, !tbaa !5
  %329 = call i64 @boyer_moore_search(ptr noundef %6, ptr noundef %326, i64 noundef %327, ptr noundef %328)
  %330 = icmp eq i64 %329, 4
  br i1 %330, label %331, label %335

331:                                              ; preds = %325
  %332 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.100)
  %333 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %334 = add nsw i32 %333, 1
  store i32 %334, ptr @tests_passed, align 4, !tbaa !14
  br label %339

335:                                              ; preds = %325
  %336 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.100)
  %337 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %338 = add nsw i32 %337, 1
  store i32 %338, ptr @tests_failed, align 4, !tbaa !14
  br label %339

339:                                              ; preds = %335, %331
  br label %340

340:                                              ; preds = %339
  br label %341

341:                                              ; preds = %340
  br label %342

342:                                              ; preds = %341
  %343 = load ptr, ptr %3, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.match_result_t, ptr %343, i32 0, i32 1
  %345 = load i64, ptr %344, align 8, !tbaa !16
  %346 = icmp eq i64 %345, 4
  br i1 %346, label %347, label %351

347:                                              ; preds = %342
  %348 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.101)
  %349 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %350 = add nsw i32 %349, 1
  store i32 %350, ptr @tests_passed, align 4, !tbaa !14
  br label %355

351:                                              ; preds = %342
  %352 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.101)
  %353 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %354 = add nsw i32 %353, 1
  store i32 %354, ptr @tests_failed, align 4, !tbaa !14
  br label %355

355:                                              ; preds = %351, %347
  br label %356

356:                                              ; preds = %355
  br label %357

357:                                              ; preds = %356
  %358 = load ptr, ptr %3, align 8, !tbaa !5
  call void @match_result_free(ptr noundef %358)
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @cleanup_params(ptr noundef %6)
  %359 = call i32 (ptr, ...) @printf(ptr noundef @.str.102)
  call void @llvm.lifetime.start.p0(i64 72, ptr %7) #5
  call void @create_regex_params(ptr dead_on_unwind writable sret(%struct.search_params) align 8 %7, ptr noundef @.str.103, i1 noundef zeroext true, i1 noundef zeroext false, i1 noundef zeroext false)
  %360 = getelementptr inbounds %struct.search_params, ptr %7, i32 0, i32 13
  store i64 2, ptr %360, align 8, !tbaa !11
  %361 = call ptr @match_result_init(i64 noundef 10)
  store ptr %361, ptr %3, align 8, !tbaa !5
  br label %362

362:                                              ; preds = %357
  %363 = load ptr, ptr %1, align 8, !tbaa !5
  %364 = load i64, ptr %2, align 8, !tbaa !9
  %365 = load ptr, ptr %3, align 8, !tbaa !5
  %366 = call i64 @regex_search(ptr noundef %7, ptr noundef %363, i64 noundef %364, ptr noundef %365)
  %367 = icmp eq i64 %366, 2
  br i1 %367, label %368, label %372

368:                                              ; preds = %362
  %369 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.104)
  %370 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %371 = add nsw i32 %370, 1
  store i32 %371, ptr @tests_passed, align 4, !tbaa !14
  br label %376

372:                                              ; preds = %362
  %373 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.104)
  %374 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %375 = add nsw i32 %374, 1
  store i32 %375, ptr @tests_failed, align 4, !tbaa !14
  br label %376

376:                                              ; preds = %372, %368
  br label %377

377:                                              ; preds = %376
  br label %378

378:                                              ; preds = %377
  br label %379

379:                                              ; preds = %378
  %380 = load ptr, ptr %3, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.match_result_t, ptr %380, i32 0, i32 1
  %382 = load i64, ptr %381, align 8, !tbaa !16
  %383 = icmp eq i64 %382, 2
  br i1 %383, label %384, label %388

384:                                              ; preds = %379
  %385 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.105)
  %386 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %387 = add nsw i32 %386, 1
  store i32 %387, ptr @tests_passed, align 4, !tbaa !14
  br label %392

388:                                              ; preds = %379
  %389 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.105)
  %390 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %391 = add nsw i32 %390, 1
  store i32 %391, ptr @tests_failed, align 4, !tbaa !14
  br label %392

392:                                              ; preds = %388, %384
  br label %393

393:                                              ; preds = %392
  br label %394

394:                                              ; preds = %393
  %395 = load ptr, ptr %3, align 8, !tbaa !5
  call void @match_result_free(ptr noundef %395)
  store ptr null, ptr %3, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.search_params, ptr %7, i32 0, i32 13
  store i64 4, ptr %396, align 8, !tbaa !11
  %397 = call ptr @match_result_init(i64 noundef 10)
  store ptr %397, ptr %3, align 8, !tbaa !5
  br label %398

398:                                              ; preds = %394
  %399 = load ptr, ptr %1, align 8, !tbaa !5
  %400 = load i64, ptr %2, align 8, !tbaa !9
  %401 = load ptr, ptr %3, align 8, !tbaa !5
  %402 = call i64 @regex_search(ptr noundef %7, ptr noundef %399, i64 noundef %400, ptr noundef %401)
  %403 = icmp eq i64 %402, 4
  br i1 %403, label %404, label %408

404:                                              ; preds = %398
  %405 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.106)
  %406 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %407 = add nsw i32 %406, 1
  store i32 %407, ptr @tests_passed, align 4, !tbaa !14
  br label %412

408:                                              ; preds = %398
  %409 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.106)
  %410 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %411 = add nsw i32 %410, 1
  store i32 %411, ptr @tests_failed, align 4, !tbaa !14
  br label %412

412:                                              ; preds = %408, %404
  br label %413

413:                                              ; preds = %412
  br label %414

414:                                              ; preds = %413
  br label %415

415:                                              ; preds = %414
  %416 = load ptr, ptr %3, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.match_result_t, ptr %416, i32 0, i32 1
  %418 = load i64, ptr %417, align 8, !tbaa !16
  %419 = icmp eq i64 %418, 4
  br i1 %419, label %420, label %424

420:                                              ; preds = %415
  %421 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.107)
  %422 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %423 = add nsw i32 %422, 1
  store i32 %423, ptr @tests_passed, align 4, !tbaa !14
  br label %428

424:                                              ; preds = %415
  %425 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.107)
  %426 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %427 = add nsw i32 %426, 1
  store i32 %427, ptr @tests_failed, align 4, !tbaa !14
  br label %428

428:                                              ; preds = %424, %420
  br label %429

429:                                              ; preds = %428
  br label %430

430:                                              ; preds = %429
  %431 = load ptr, ptr %3, align 8, !tbaa !5
  call void @match_result_free(ptr noundef %431)
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @cleanup_params(ptr noundef %7)
  %432 = call i32 (ptr, ...) @printf(ptr noundef @.str.108)
  call void @llvm.lifetime.start.p0(i64 72, ptr %8) #5
  call void @create_regex_params(ptr dead_on_unwind writable sret(%struct.search_params) align 8 %8, ptr noundef @.str.103, i1 noundef zeroext true, i1 noundef zeroext true, i1 noundef zeroext false)
  %433 = getelementptr inbounds %struct.search_params, ptr %8, i32 0, i32 13
  store i64 2, ptr %433, align 8, !tbaa !11
  br label %434

434:                                              ; preds = %430
  %435 = load ptr, ptr %1, align 8, !tbaa !5
  %436 = load i64, ptr %2, align 8, !tbaa !9
  %437 = call i64 @regex_search(ptr noundef %8, ptr noundef %435, i64 noundef %436, ptr noundef null)
  %438 = icmp eq i64 %437, 2
  br i1 %438, label %439, label %443

439:                                              ; preds = %434
  %440 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.109)
  %441 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %442 = add nsw i32 %441, 1
  store i32 %442, ptr @tests_passed, align 4, !tbaa !14
  br label %447

443:                                              ; preds = %434
  %444 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.109)
  %445 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %446 = add nsw i32 %445, 1
  store i32 %446, ptr @tests_failed, align 4, !tbaa !14
  br label %447

447:                                              ; preds = %443, %439
  br label %448

448:                                              ; preds = %447
  br label %449

449:                                              ; preds = %448
  %450 = getelementptr inbounds %struct.search_params, ptr %8, i32 0, i32 13
  store i64 4, ptr %450, align 8, !tbaa !11
  br label %451

451:                                              ; preds = %449
  %452 = load ptr, ptr %1, align 8, !tbaa !5
  %453 = load i64, ptr %2, align 8, !tbaa !9
  %454 = call i64 @regex_search(ptr noundef %8, ptr noundef %452, i64 noundef %453, ptr noundef null)
  %455 = icmp eq i64 %454, 4
  br i1 %455, label %456, label %460

456:                                              ; preds = %451
  %457 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.110)
  %458 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %459 = add nsw i32 %458, 1
  store i32 %459, ptr @tests_passed, align 4, !tbaa !14
  br label %464

460:                                              ; preds = %451
  %461 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.110)
  %462 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %463 = add nsw i32 %462, 1
  store i32 %463, ptr @tests_failed, align 4, !tbaa !14
  br label %464

464:                                              ; preds = %460, %456
  br label %465

465:                                              ; preds = %464
  br label %466

466:                                              ; preds = %465
  call void @cleanup_params(ptr noundef %8)
  %467 = call i32 (ptr, ...) @printf(ptr noundef @.str.111)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store ptr @.str.112, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %468 = load ptr, ptr %9, align 8, !tbaa !5
  %469 = call i64 @strlen(ptr noundef %468) #6
  store i64 %469, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.test_max_count_new.ac_patterns, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.test_max_count_new.ac_pattern_lens, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr %13) #5
  %470 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 0
  store ptr null, ptr %470, align 8, !tbaa !18
  %471 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 1
  store i64 0, ptr %471, align 8, !tbaa !19
  %472 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 2
  %473 = getelementptr inbounds [2 x ptr], ptr %11, i64 0, i64 0
  store ptr %473, ptr %472, align 8, !tbaa !20
  %474 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 3
  %475 = getelementptr inbounds [2 x i64], ptr %12, i64 0, i64 0
  store ptr %475, ptr %474, align 8, !tbaa !21
  %476 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 4
  store i64 2, ptr %476, align 8, !tbaa !22
  %477 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 5
  store i8 1, ptr %477, align 8, !tbaa !23
  %478 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 6
  store i8 0, ptr %478, align 1, !tbaa !24
  %479 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 7
  store i8 0, ptr %479, align 2, !tbaa !25
  %480 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 8
  store i8 0, ptr %480, align 1, !tbaa !26
  %481 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 9
  store i8 1, ptr %481, align 4, !tbaa !27
  %482 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 10
  store i8 0, ptr %482, align 1, !tbaa !28
  %483 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 11
  store ptr null, ptr %483, align 8, !tbaa !29
  %484 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 12
  store ptr null, ptr %484, align 8, !tbaa !30
  %485 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 13
  store i64 -1, ptr %485, align 8, !tbaa !11
  %486 = call ptr @ac_trie_build(ptr noundef %13)
  %487 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 12
  store ptr %486, ptr %487, align 8, !tbaa !30
  %488 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 12
  %489 = load ptr, ptr %488, align 8, !tbaa !30
  %490 = icmp ne ptr %489, null
  br i1 %490, label %495, label %491

491:                                              ; preds = %466
  %492 = call i32 (ptr, ...) @printf(ptr noundef @.str.115)
  %493 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %494 = add nsw i32 %493, 1
  store i32 %494, ptr @tests_failed, align 4, !tbaa !14
  store i32 1, ptr %14, align 4
  br label %607

495:                                              ; preds = %466
  %496 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 13
  store i64 3, ptr %496, align 8, !tbaa !11
  %497 = call ptr @match_result_init(i64 noundef 10)
  store ptr %497, ptr %3, align 8, !tbaa !5
  br label %498

498:                                              ; preds = %495
  %499 = load ptr, ptr %9, align 8, !tbaa !5
  %500 = load i64, ptr %10, align 8, !tbaa !9
  %501 = load ptr, ptr %3, align 8, !tbaa !5
  %502 = call i64 @aho_corasick_search(ptr noundef %13, ptr noundef %499, i64 noundef %500, ptr noundef %501)
  %503 = icmp eq i64 %502, 3
  br i1 %503, label %504, label %508

504:                                              ; preds = %498
  %505 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.116)
  %506 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %507 = add nsw i32 %506, 1
  store i32 %507, ptr @tests_passed, align 4, !tbaa !14
  br label %512

508:                                              ; preds = %498
  %509 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.116)
  %510 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %511 = add nsw i32 %510, 1
  store i32 %511, ptr @tests_failed, align 4, !tbaa !14
  br label %512

512:                                              ; preds = %508, %504
  br label %513

513:                                              ; preds = %512
  br label %514

514:                                              ; preds = %513
  br label %515

515:                                              ; preds = %514
  %516 = load ptr, ptr %3, align 8, !tbaa !5
  %517 = getelementptr inbounds %struct.match_result_t, ptr %516, i32 0, i32 1
  %518 = load i64, ptr %517, align 8, !tbaa !16
  %519 = icmp eq i64 %518, 3
  br i1 %519, label %520, label %524

520:                                              ; preds = %515
  %521 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.117)
  %522 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %523 = add nsw i32 %522, 1
  store i32 %523, ptr @tests_passed, align 4, !tbaa !14
  br label %528

524:                                              ; preds = %515
  %525 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.117)
  %526 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %527 = add nsw i32 %526, 1
  store i32 %527, ptr @tests_failed, align 4, !tbaa !14
  br label %528

528:                                              ; preds = %524, %520
  br label %529

529:                                              ; preds = %528
  br label %530

530:                                              ; preds = %529
  %531 = load ptr, ptr %3, align 8, !tbaa !5
  call void @match_result_free(ptr noundef %531)
  store ptr null, ptr %3, align 8, !tbaa !5
  %532 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 13
  store i64 5, ptr %532, align 8, !tbaa !11
  %533 = call ptr @match_result_init(i64 noundef 10)
  store ptr %533, ptr %3, align 8, !tbaa !5
  br label %534

534:                                              ; preds = %530
  %535 = load ptr, ptr %9, align 8, !tbaa !5
  %536 = load i64, ptr %10, align 8, !tbaa !9
  %537 = load ptr, ptr %3, align 8, !tbaa !5
  %538 = call i64 @aho_corasick_search(ptr noundef %13, ptr noundef %535, i64 noundef %536, ptr noundef %537)
  %539 = icmp eq i64 %538, 5
  br i1 %539, label %540, label %544

540:                                              ; preds = %534
  %541 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.118)
  %542 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %543 = add nsw i32 %542, 1
  store i32 %543, ptr @tests_passed, align 4, !tbaa !14
  br label %548

544:                                              ; preds = %534
  %545 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.118)
  %546 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %547 = add nsw i32 %546, 1
  store i32 %547, ptr @tests_failed, align 4, !tbaa !14
  br label %548

548:                                              ; preds = %544, %540
  br label %549

549:                                              ; preds = %548
  br label %550

550:                                              ; preds = %549
  br label %551

551:                                              ; preds = %550
  %552 = load ptr, ptr %3, align 8, !tbaa !5
  %553 = getelementptr inbounds %struct.match_result_t, ptr %552, i32 0, i32 1
  %554 = load i64, ptr %553, align 8, !tbaa !16
  %555 = icmp eq i64 %554, 5
  br i1 %555, label %556, label %560

556:                                              ; preds = %551
  %557 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.119)
  %558 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %559 = add nsw i32 %558, 1
  store i32 %559, ptr @tests_passed, align 4, !tbaa !14
  br label %564

560:                                              ; preds = %551
  %561 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.119)
  %562 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %563 = add nsw i32 %562, 1
  store i32 %563, ptr @tests_failed, align 4, !tbaa !14
  br label %564

564:                                              ; preds = %560, %556
  br label %565

565:                                              ; preds = %564
  br label %566

566:                                              ; preds = %565
  %567 = load ptr, ptr %3, align 8, !tbaa !5
  call void @match_result_free(ptr noundef %567)
  store ptr null, ptr %3, align 8, !tbaa !5
  %568 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 13
  store i64 6, ptr %568, align 8, !tbaa !11
  %569 = call ptr @match_result_init(i64 noundef 10)
  store ptr %569, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %570 = load ptr, ptr %9, align 8, !tbaa !5
  %571 = load i64, ptr %10, align 8, !tbaa !9
  %572 = load ptr, ptr %3, align 8, !tbaa !5
  %573 = call i64 @aho_corasick_search(ptr noundef %13, ptr noundef %570, i64 noundef %571, ptr noundef %572)
  store i64 %573, ptr %15, align 8, !tbaa !9
  br label %574

574:                                              ; preds = %566
  %575 = load i64, ptr %15, align 8, !tbaa !9
  %576 = icmp eq i64 %575, 6
  br i1 %576, label %577, label %581

577:                                              ; preds = %574
  %578 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.120)
  %579 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %580 = add nsw i32 %579, 1
  store i32 %580, ptr @tests_passed, align 4, !tbaa !14
  br label %585

581:                                              ; preds = %574
  %582 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.120)
  %583 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %584 = add nsw i32 %583, 1
  store i32 %584, ptr @tests_failed, align 4, !tbaa !14
  br label %585

585:                                              ; preds = %581, %577
  br label %586

586:                                              ; preds = %585
  br label %587

587:                                              ; preds = %586
  br label %588

588:                                              ; preds = %587
  %589 = load ptr, ptr %3, align 8, !tbaa !5
  %590 = getelementptr inbounds %struct.match_result_t, ptr %589, i32 0, i32 1
  %591 = load i64, ptr %590, align 8, !tbaa !16
  %592 = icmp eq i64 %591, 6
  br i1 %592, label %593, label %597

593:                                              ; preds = %588
  %594 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef @.str.121)
  %595 = load i32, ptr @tests_passed, align 4, !tbaa !14
  %596 = add nsw i32 %595, 1
  store i32 %596, ptr @tests_passed, align 4, !tbaa !14
  br label %601

597:                                              ; preds = %588
  %598 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @.str.121)
  %599 = load i32, ptr @tests_failed, align 4, !tbaa !14
  %600 = add nsw i32 %599, 1
  store i32 %600, ptr @tests_failed, align 4, !tbaa !14
  br label %601

601:                                              ; preds = %597, %593
  br label %602

602:                                              ; preds = %601
  br label %603

603:                                              ; preds = %602
  %604 = load ptr, ptr %3, align 8, !tbaa !5
  call void @match_result_free(ptr noundef %604)
  store ptr null, ptr %3, align 8, !tbaa !5
  %605 = getelementptr inbounds %struct.search_params, ptr %13, i32 0, i32 12
  %606 = load ptr, ptr %605, align 8, !tbaa !30
  call void @ac_trie_free(ptr noundef %606)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  store i32 0, ptr %14, align 4
  br label %607

607:                                              ; preds = %603, %491
  call void @llvm.lifetime.end.p0(i64 72, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  %608 = load i32, ptr %14, align 4
  switch i32 %608, label %610 [
    i32 0, label %609
    i32 1, label %609
  ]

609:                                              ; preds = %607, %607
  ret void

610:                                              ; preds = %607
  unreachable
}

declare i64 @regex_search(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

declare ptr @ac_trie_build(ptr noundef) #2

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

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 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { 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, !10, i64 64}
!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 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !10, i64 8}
!17 = !{!"match_result_t", !6, i64 0, !10, i64 8, !10, i64 16}
!18 = !{!12, !6, i64 0}
!19 = !{!12, !10, i64 8}
!20 = !{!12, !6, i64 16}
!21 = !{!12, !6, i64 24}
!22 = !{!12, !10, i64 32}
!23 = !{!12, !13, i64 40}
!24 = !{!12, !13, i64 41}
!25 = !{!12, !13, i64 42}
!26 = !{!12, !13, i64 43}
!27 = !{!12, !13, i64 44}
!28 = !{!12, !13, i64 45}
!29 = !{!12, !6, i64 48}
!30 = !{!12, !6, i64 56}


; 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_passed = external dso_local local_unnamed_addr global i32, align 4
@tests_failed = external dso_local local_unnamed_addr global i32, align 4
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [59 x i8], align 1
@__const.test_max_count_new.ac_patterns = external hidden unnamed_addr constant [2 x ptr], align 16
@__const.test_max_count_new.ac_pattern_lens = external hidden unnamed_addr constant [2 x i64], align 16
@.str.115 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [49 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @create_literal_params(ptr dead_on_unwind noalias writable sret(%struct.search_params) align 8, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @create_regex_params(ptr dead_on_unwind noalias writable sret(%struct.search_params) align 8, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

declare void @ac_trie_free(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 nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

declare ptr @match_result_init(i64 noundef) local_unnamed_addr #2

declare i64 @boyer_moore_search(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @match_result_free(ptr 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) #5

; Function Attrs: nounwind uwtable
define dso_local void @test_max_count_new() local_unnamed_addr #0 {
  %1 = alloca %struct.search_params, align 8
  %2 = alloca %struct.search_params, align 8
  %3 = alloca %struct.search_params, align 8
  %4 = alloca %struct.search_params, align 8
  %5 = alloca %struct.search_params, align 8
  %6 = alloca [2 x ptr], align 16
  %7 = alloca [2 x i64], align 16
  %8 = alloca %struct.search_params, align 8
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.77)
  %10 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.78) #7
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.79)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %1) #8
  call void @create_literal_params(ptr dead_on_unwind nonnull writable sret(%struct.search_params) align 8 %1, ptr noundef nonnull @.str.80, i1 noundef zeroext true, i1 noundef zeroext false, i1 noundef zeroext false)
  %12 = getelementptr inbounds i8, ptr %1, i64 64
  store i64 2, ptr %12, align 8, !tbaa !5
  %13 = call ptr @match_result_init(i64 noundef 10) #8
  %14 = call i64 @boyer_moore_search(ptr noundef nonnull %1, ptr noundef nonnull @.str.78, i64 noundef %10, ptr noundef %13) #8
  %15 = icmp eq i64 %14, 2
  %.str.5..str.7 = select i1 %15, ptr @.str.5, ptr @.str.7
  %tests_passed.tests_failed = select i1 %15, ptr @tests_passed, ptr @tests_failed
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.5..str.7, ptr noundef nonnull @.str.81)
  %17 = load i32, ptr %tests_passed.tests_failed, align 4, !tbaa !12
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr %tests_passed.tests_failed, align 4, !tbaa !12
  %19 = getelementptr inbounds i8, ptr %13, i64 8
  %20 = load i64, ptr %19, align 8, !tbaa !14
  %21 = icmp eq i64 %20, 2
  %.str.7.sink = select i1 %21, ptr @.str.5, ptr @.str.7
  %tests_failed.sink79 = select i1 %21, ptr @tests_passed, ptr @tests_failed
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink, ptr noundef nonnull @.str.82)
  %23 = load i32, ptr %tests_failed.sink79, align 4, !tbaa !12
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %tests_failed.sink79, align 4, !tbaa !12
  call void @match_result_free(ptr noundef nonnull %13) #8
  store i64 4, ptr %12, align 8, !tbaa !5
  %25 = call ptr @match_result_init(i64 noundef 10) #8
  %26 = call i64 @boyer_moore_search(ptr noundef nonnull %1, ptr noundef nonnull @.str.78, i64 noundef %10, ptr noundef %25) #8
  %27 = icmp eq i64 %26, 4
  %.str.5.sink83 = select i1 %27, ptr @.str.5, ptr @.str.7
  %tests_passed.sink82 = select i1 %27, ptr @tests_passed, ptr @tests_failed
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.5.sink83, ptr noundef nonnull @.str.83)
  %29 = load i32, ptr %tests_passed.sink82, align 4, !tbaa !12
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %tests_passed.sink82, align 4, !tbaa !12
  %31 = getelementptr inbounds i8, ptr %25, i64 8
  %32 = load i64, ptr %31, align 8, !tbaa !14
  %33 = icmp eq i64 %32, 4
  %.str.7.sink87 = select i1 %33, ptr @.str.5, ptr @.str.7
  %tests_failed.sink86 = select i1 %33, ptr @tests_passed, ptr @tests_failed
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink87, ptr noundef nonnull @.str.84)
  %35 = load i32, ptr %tests_failed.sink86, align 4, !tbaa !12
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %tests_failed.sink86, align 4, !tbaa !12
  call void @match_result_free(ptr noundef nonnull %25) #8
  store i64 5, ptr %12, align 8, !tbaa !5
  %37 = call ptr @match_result_init(i64 noundef 10) #8
  %38 = call i64 @boyer_moore_search(ptr noundef nonnull %1, ptr noundef nonnull @.str.78, i64 noundef %10, ptr noundef %37) #8
  %39 = icmp eq i64 %38, 4
  %.str.5.sink91 = select i1 %39, ptr @.str.5, ptr @.str.7
  %tests_passed.sink90 = select i1 %39, ptr @tests_passed, ptr @tests_failed
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.5.sink91, ptr noundef nonnull @.str.85)
  %41 = load i32, ptr %tests_passed.sink90, align 4, !tbaa !12
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %tests_passed.sink90, align 4, !tbaa !12
  %43 = getelementptr inbounds i8, ptr %37, i64 8
  %44 = load i64, ptr %43, align 8, !tbaa !14
  %45 = icmp eq i64 %44, 4
  %.str.7.sink95 = select i1 %45, ptr @.str.5, ptr @.str.7
  %tests_failed.sink94 = select i1 %45, ptr @tests_passed, ptr @tests_failed
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink95, ptr noundef nonnull @.str.86)
  %47 = load i32, ptr %tests_failed.sink94, align 4, !tbaa !12
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %tests_failed.sink94, align 4, !tbaa !12
  call void @match_result_free(ptr noundef nonnull %37) #8
  store i64 1, ptr %12, align 8, !tbaa !5
  %49 = call ptr @match_result_init(i64 noundef 10) #8
  %50 = call i64 @boyer_moore_search(ptr noundef nonnull %1, ptr noundef nonnull @.str.78, i64 noundef %10, ptr noundef %49) #8
  %51 = icmp eq i64 %50, 1
  %.str.5.sink99 = select i1 %51, ptr @.str.5, ptr @.str.7
  %tests_passed.sink98 = select i1 %51, ptr @tests_passed, ptr @tests_failed
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.5.sink99, ptr noundef nonnull @.str.87)
  %53 = load i32, ptr %tests_passed.sink98, align 4, !tbaa !12
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %tests_passed.sink98, align 4, !tbaa !12
  %55 = getelementptr inbounds i8, ptr %49, i64 8
  %56 = load i64, ptr %55, align 8, !tbaa !14
  %57 = icmp eq i64 %56, 1
  %.str.7.sink103 = select i1 %57, ptr @.str.5, ptr @.str.7
  %tests_failed.sink102 = select i1 %57, ptr @tests_passed, ptr @tests_failed
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink103, ptr noundef nonnull @.str.88)
  %59 = load i32, ptr %tests_failed.sink102, align 4, !tbaa !12
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %tests_failed.sink102, align 4, !tbaa !12
  call void @match_result_free(ptr noundef nonnull %49) #8
  store i64 0, ptr %12, align 8, !tbaa !5
  %61 = call ptr @match_result_init(i64 noundef 10) #8
  %62 = call i64 @boyer_moore_search(ptr noundef nonnull %1, ptr noundef nonnull @.str.78, i64 noundef %10, ptr noundef %61) #8
  %63 = icmp eq i64 %62, 0
  %.str.5.sink107 = select i1 %63, ptr @.str.5, ptr @.str.7
  %tests_passed.sink106 = select i1 %63, ptr @tests_passed, ptr @tests_failed
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.5.sink107, ptr noundef nonnull @.str.89)
  %65 = load i32, ptr %tests_passed.sink106, align 4, !tbaa !12
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %tests_passed.sink106, align 4, !tbaa !12
  %67 = getelementptr inbounds i8, ptr %61, i64 8
  %68 = load i64, ptr %67, align 8, !tbaa !14
  %69 = icmp eq i64 %68, 0
  %.str.7.sink111 = select i1 %69, ptr @.str.5, ptr @.str.7
  %tests_failed.sink110 = select i1 %69, ptr @tests_passed, ptr @tests_failed
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink111, ptr noundef nonnull @.str.90)
  %71 = load i32, ptr %tests_failed.sink110, align 4, !tbaa !12
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %tests_failed.sink110, align 4, !tbaa !12
  call void @match_result_free(ptr noundef nonnull %61) #8
  call void @cleanup_params(ptr noundef nonnull %1)
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.91)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %2) #8
  call void @create_literal_params(ptr dead_on_unwind nonnull writable sret(%struct.search_params) align 8 %2, ptr noundef nonnull @.str.80, i1 noundef zeroext true, i1 noundef zeroext true, i1 noundef zeroext false)
  %74 = getelementptr inbounds i8, ptr %2, i64 64
  store i64 2, ptr %74, align 8, !tbaa !5
  %75 = call i64 @boyer_moore_search(ptr noundef nonnull %2, ptr noundef nonnull @.str.78, i64 noundef %10, ptr noundef null) #8
  %76 = icmp eq i64 %75, 2
  %.str.7.sink115 = select i1 %76, ptr @.str.5, ptr @.str.7
  %tests_failed.sink114 = select i1 %76, ptr @tests_passed, ptr @tests_failed
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink115, ptr noundef nonnull @.str.92)
  %78 = load i32, ptr %tests_failed.sink114, align 4, !tbaa !12
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %tests_failed.sink114, align 4, !tbaa !12
  store i64 4, ptr %74, align 8, !tbaa !5
  %80 = call i64 @boyer_moore_search(ptr noundef nonnull %2, ptr noundef nonnull @.str.78, i64 noundef %10, ptr noundef null) #8
  %81 = icmp eq i64 %80, 4
  %.str.7.sink119 = select i1 %81, ptr @.str.5, ptr @.str.7
  %tests_failed.sink118 = select i1 %81, ptr @tests_passed, ptr @tests_failed
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink119, ptr noundef nonnull @.str.93)
  %83 = load i32, ptr %tests_failed.sink118, align 4, !tbaa !12
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %tests_failed.sink118, align 4, !tbaa !12
  store i64 5, ptr %74, align 8, !tbaa !5
  %85 = call i64 @boyer_moore_search(ptr noundef nonnull %2, ptr noundef nonnull @.str.78, i64 noundef %10, ptr noundef null) #8
  %86 = icmp eq i64 %85, 4
  %.str.7.sink123 = select i1 %86, ptr @.str.5, ptr @.str.7
  %tests_failed.sink122 = select i1 %86, ptr @tests_passed, ptr @tests_failed
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink123, ptr noundef nonnull @.str.94)
  %88 = load i32, ptr %tests_failed.sink122, align 4, !tbaa !12
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %tests_failed.sink122, align 4, !tbaa !12
  store i64 1, ptr %74, align 8, !tbaa !5
  %90 = call i64 @boyer_moore_search(ptr noundef nonnull %2, ptr noundef nonnull @.str.78, i64 noundef %10, ptr noundef null) #8
  %91 = icmp eq i64 %90, 1
  %.str.7.sink127 = select i1 %91, ptr @.str.5, ptr @.str.7
  %tests_failed.sink126 = select i1 %91, ptr @tests_passed, ptr @tests_failed
  %92 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink127, ptr noundef nonnull @.str.95)
  %93 = load i32, ptr %tests_failed.sink126, align 4, !tbaa !12
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %tests_failed.sink126, align 4, !tbaa !12
  store i64 0, ptr %74, align 8, !tbaa !5
  %95 = call i64 @boyer_moore_search(ptr noundef nonnull %2, ptr noundef nonnull @.str.78, i64 noundef %10, ptr noundef null) #8
  %96 = icmp eq i64 %95, 0
  %.str.7.sink131 = select i1 %96, ptr @.str.5, ptr @.str.7
  %tests_failed.sink130 = select i1 %96, ptr @tests_passed, ptr @tests_failed
  %97 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink131, ptr noundef nonnull @.str.96)
  %98 = load i32, ptr %tests_failed.sink130, align 4, !tbaa !12
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %tests_failed.sink130, align 4, !tbaa !12
  call void @cleanup_params(ptr noundef nonnull %2)
  %100 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.97)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %3) #8
  call void @create_literal_params(ptr dead_on_unwind nonnull writable sret(%struct.search_params) align 8 %3, ptr noundef nonnull @.str.80, i1 noundef zeroext true, i1 noundef zeroext false, i1 noundef zeroext true)
  %101 = getelementptr inbounds i8, ptr %3, i64 64
  store i64 2, ptr %101, align 8, !tbaa !5
  %102 = call ptr @match_result_init(i64 noundef 10) #8
  %103 = call i64 @boyer_moore_search(ptr noundef nonnull %3, ptr noundef nonnull @.str.78, i64 noundef %10, ptr noundef %102) #8
  %104 = icmp eq i64 %103, 2
  %.str.5.sink135 = select i1 %104, ptr @.str.5, ptr @.str.7
  %tests_passed.sink134 = select i1 %104, ptr @tests_passed, ptr @tests_failed
  %105 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.5.sink135, ptr noundef nonnull @.str.98)
  %106 = load i32, ptr %tests_passed.sink134, align 4, !tbaa !12
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %tests_passed.sink134, align 4, !tbaa !12
  %108 = getelementptr inbounds i8, ptr %102, i64 8
  %109 = load i64, ptr %108, align 8, !tbaa !14
  %110 = icmp eq i64 %109, 2
  %.str.7.sink139 = select i1 %110, ptr @.str.5, ptr @.str.7
  %tests_failed.sink138 = select i1 %110, ptr @tests_passed, ptr @tests_failed
  %111 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink139, ptr noundef nonnull @.str.99)
  %112 = load i32, ptr %tests_failed.sink138, align 4, !tbaa !12
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %tests_failed.sink138, align 4, !tbaa !12
  call void @match_result_free(ptr noundef nonnull %102) #8
  store i64 4, ptr %101, align 8, !tbaa !5
  %114 = call ptr @match_result_init(i64 noundef 10) #8
  %115 = call i64 @boyer_moore_search(ptr noundef nonnull %3, ptr noundef nonnull @.str.78, i64 noundef %10, ptr noundef %114) #8
  %116 = icmp eq i64 %115, 4
  %.str.5.sink143 = select i1 %116, ptr @.str.5, ptr @.str.7
  %tests_passed.sink142 = select i1 %116, ptr @tests_passed, ptr @tests_failed
  %117 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.5.sink143, ptr noundef nonnull @.str.100)
  %118 = load i32, ptr %tests_passed.sink142, align 4, !tbaa !12
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %tests_passed.sink142, align 4, !tbaa !12
  %120 = getelementptr inbounds i8, ptr %114, i64 8
  %121 = load i64, ptr %120, align 8, !tbaa !14
  %122 = icmp eq i64 %121, 4
  %.str.7.sink147 = select i1 %122, ptr @.str.5, ptr @.str.7
  %tests_failed.sink146 = select i1 %122, ptr @tests_passed, ptr @tests_failed
  %123 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink147, ptr noundef nonnull @.str.101)
  %124 = load i32, ptr %tests_failed.sink146, align 4, !tbaa !12
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %tests_failed.sink146, align 4, !tbaa !12
  call void @match_result_free(ptr noundef nonnull %114) #8
  call void @cleanup_params(ptr noundef nonnull %3)
  %126 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.102)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #8
  call void @create_regex_params(ptr dead_on_unwind nonnull writable sret(%struct.search_params) align 8 %4, ptr noundef nonnull @.str.103, i1 noundef zeroext true, i1 noundef zeroext false, i1 noundef zeroext false)
  %127 = getelementptr inbounds i8, ptr %4, i64 64
  store i64 2, ptr %127, align 8, !tbaa !5
  %128 = call ptr @match_result_init(i64 noundef 10) #8
  %129 = call i64 @regex_search(ptr noundef nonnull %4, ptr noundef nonnull @.str.78, i64 noundef %10, ptr noundef %128) #8
  %130 = icmp eq i64 %129, 2
  %.str.5.sink151 = select i1 %130, ptr @.str.5, ptr @.str.7
  %tests_passed.sink150 = select i1 %130, ptr @tests_passed, ptr @tests_failed
  %131 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.5.sink151, ptr noundef nonnull @.str.104)
  %132 = load i32, ptr %tests_passed.sink150, align 4, !tbaa !12
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %tests_passed.sink150, align 4, !tbaa !12
  %134 = getelementptr inbounds i8, ptr %128, i64 8
  %135 = load i64, ptr %134, align 8, !tbaa !14
  %136 = icmp eq i64 %135, 2
  %.str.7.sink155 = select i1 %136, ptr @.str.5, ptr @.str.7
  %tests_failed.sink154 = select i1 %136, ptr @tests_passed, ptr @tests_failed
  %137 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink155, ptr noundef nonnull @.str.105)
  %138 = load i32, ptr %tests_failed.sink154, align 4, !tbaa !12
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %tests_failed.sink154, align 4, !tbaa !12
  call void @match_result_free(ptr noundef nonnull %128) #8
  store i64 4, ptr %127, align 8, !tbaa !5
  %140 = call ptr @match_result_init(i64 noundef 10) #8
  %141 = call i64 @regex_search(ptr noundef nonnull %4, ptr noundef nonnull @.str.78, i64 noundef %10, ptr noundef %140) #8
  %142 = icmp eq i64 %141, 4
  %.str.5.sink159 = select i1 %142, ptr @.str.5, ptr @.str.7
  %tests_passed.sink158 = select i1 %142, ptr @tests_passed, ptr @tests_failed
  %143 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.5.sink159, ptr noundef nonnull @.str.106)
  %144 = load i32, ptr %tests_passed.sink158, align 4, !tbaa !12
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %tests_passed.sink158, align 4, !tbaa !12
  %146 = getelementptr inbounds i8, ptr %140, i64 8
  %147 = load i64, ptr %146, align 8, !tbaa !14
  %148 = icmp eq i64 %147, 4
  %.str.7.sink163 = select i1 %148, ptr @.str.5, ptr @.str.7
  %tests_failed.sink162 = select i1 %148, ptr @tests_passed, ptr @tests_failed
  %149 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink163, ptr noundef nonnull @.str.107)
  %150 = load i32, ptr %tests_failed.sink162, align 4, !tbaa !12
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %tests_failed.sink162, align 4, !tbaa !12
  call void @match_result_free(ptr noundef nonnull %140) #8
  call void @cleanup_params(ptr noundef nonnull %4)
  %152 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.108)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #8
  call void @create_regex_params(ptr dead_on_unwind nonnull writable sret(%struct.search_params) align 8 %5, ptr noundef nonnull @.str.103, i1 noundef zeroext true, i1 noundef zeroext true, i1 noundef zeroext false)
  %153 = getelementptr inbounds i8, ptr %5, i64 64
  store i64 2, ptr %153, align 8, !tbaa !5
  %154 = call i64 @regex_search(ptr noundef nonnull %5, ptr noundef nonnull @.str.78, i64 noundef %10, ptr noundef null) #8
  %155 = icmp eq i64 %154, 2
  %.str.7.sink167 = select i1 %155, ptr @.str.5, ptr @.str.7
  %tests_failed.sink166 = select i1 %155, ptr @tests_passed, ptr @tests_failed
  %156 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink167, ptr noundef nonnull @.str.109)
  %157 = load i32, ptr %tests_failed.sink166, align 4, !tbaa !12
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %tests_failed.sink166, align 4, !tbaa !12
  store i64 4, ptr %153, align 8, !tbaa !5
  %159 = call i64 @regex_search(ptr noundef nonnull %5, ptr noundef nonnull @.str.78, i64 noundef %10, ptr noundef null) #8
  %160 = icmp eq i64 %159, 4
  %.str.7.sink171 = select i1 %160, ptr @.str.5, ptr @.str.7
  %tests_failed.sink170 = select i1 %160, ptr @tests_passed, ptr @tests_failed
  %161 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink171, ptr noundef nonnull @.str.110)
  %162 = load i32, ptr %tests_failed.sink170, align 4, !tbaa !12
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %tests_failed.sink170, align 4, !tbaa !12
  call void @cleanup_params(ptr noundef nonnull %5)
  %164 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.111)
  %165 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.112) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) @__const.test_max_count_new.ac_patterns, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %7, ptr noundef nonnull align 16 dereferenceable(16) @__const.test_max_count_new.ac_pattern_lens, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %8) #8
  %166 = getelementptr inbounds i8, ptr %8, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %8, i8 0, i64 16, i1 false)
  store ptr %6, ptr %166, align 8, !tbaa !16
  %167 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr %7, ptr %167, align 8, !tbaa !17
  %168 = getelementptr inbounds i8, ptr %8, i64 32
  store i64 2, ptr %168, align 8, !tbaa !18
  %169 = getelementptr inbounds i8, ptr %8, i64 40
  store <4 x i8> <i8 1, i8 0, i8 0, i8 0>, ptr %169, align 8, !tbaa !19
  %170 = getelementptr inbounds i8, ptr %8, i64 44
  store i8 1, ptr %170, align 4, !tbaa !20
  %171 = getelementptr inbounds i8, ptr %8, i64 45
  store i8 0, ptr %171, align 1, !tbaa !21
  %172 = getelementptr inbounds i8, ptr %8, i64 48
  %173 = getelementptr inbounds i8, ptr %8, i64 56
  %174 = getelementptr inbounds i8, ptr %8, i64 64
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %172, i8 0, i64 16, i1 false)
  store i64 -1, ptr %174, align 8, !tbaa !5
  %175 = call ptr @ac_trie_build(ptr noundef nonnull %8) #8
  store ptr %175, ptr %173, align 8, !tbaa !22
  %.not = icmp eq ptr %175, null
  br i1 %.not, label %176, label %180

176:                                              ; preds = %0
  %177 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.115)
  %178 = load i32, ptr @tests_failed, align 4, !tbaa !12
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr @tests_failed, align 4, !tbaa !12
  br label %218

180:                                              ; preds = %0
  store i64 3, ptr %174, align 8, !tbaa !5
  %181 = call ptr @match_result_init(i64 noundef 10) #8
  %182 = call i64 @aho_corasick_search(ptr noundef nonnull %8, ptr noundef nonnull @.str.112, i64 noundef %165, ptr noundef %181) #8
  %183 = icmp eq i64 %182, 3
  %.str.5..str.7196 = select i1 %183, ptr @.str.5, ptr @.str.7
  %tests_passed.tests_failed197 = select i1 %183, ptr @tests_passed, ptr @tests_failed
  %184 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.5..str.7196, ptr noundef nonnull @.str.116)
  %185 = load i32, ptr %tests_passed.tests_failed197, align 4, !tbaa !12
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %tests_passed.tests_failed197, align 4, !tbaa !12
  %187 = getelementptr inbounds i8, ptr %181, i64 8
  %188 = load i64, ptr %187, align 8, !tbaa !14
  %189 = icmp eq i64 %188, 3
  %.str.7.sink179 = select i1 %189, ptr @.str.5, ptr @.str.7
  %tests_failed.sink178 = select i1 %189, ptr @tests_passed, ptr @tests_failed
  %190 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink179, ptr noundef nonnull @.str.117)
  %191 = load i32, ptr %tests_failed.sink178, align 4, !tbaa !12
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %tests_failed.sink178, align 4, !tbaa !12
  call void @match_result_free(ptr noundef nonnull %181) #8
  store i64 5, ptr %174, align 8, !tbaa !5
  %193 = call ptr @match_result_init(i64 noundef 10) #8
  %194 = call i64 @aho_corasick_search(ptr noundef nonnull %8, ptr noundef nonnull @.str.112, i64 noundef %165, ptr noundef %193) #8
  %195 = icmp eq i64 %194, 5
  %.str.5.sink183 = select i1 %195, ptr @.str.5, ptr @.str.7
  %tests_passed.sink182 = select i1 %195, ptr @tests_passed, ptr @tests_failed
  %196 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.5.sink183, ptr noundef nonnull @.str.118)
  %197 = load i32, ptr %tests_passed.sink182, align 4, !tbaa !12
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %tests_passed.sink182, align 4, !tbaa !12
  %199 = getelementptr inbounds i8, ptr %193, i64 8
  %200 = load i64, ptr %199, align 8, !tbaa !14
  %201 = icmp eq i64 %200, 5
  %.str.7.sink187 = select i1 %201, ptr @.str.5, ptr @.str.7
  %tests_failed.sink186 = select i1 %201, ptr @tests_passed, ptr @tests_failed
  %202 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink187, ptr noundef nonnull @.str.119)
  %203 = load i32, ptr %tests_failed.sink186, align 4, !tbaa !12
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %tests_failed.sink186, align 4, !tbaa !12
  call void @match_result_free(ptr noundef nonnull %193) #8
  store i64 6, ptr %174, align 8, !tbaa !5
  %205 = call ptr @match_result_init(i64 noundef 10) #8
  %206 = call i64 @aho_corasick_search(ptr noundef nonnull %8, ptr noundef nonnull @.str.112, i64 noundef %165, ptr noundef %205) #8
  %207 = icmp eq i64 %206, 6
  %.str.5.sink191 = select i1 %207, ptr @.str.5, ptr @.str.7
  %tests_passed.sink190 = select i1 %207, ptr @tests_passed, ptr @tests_failed
  %208 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.5.sink191, ptr noundef nonnull @.str.120)
  %209 = load i32, ptr %tests_passed.sink190, align 4, !tbaa !12
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %tests_passed.sink190, align 4, !tbaa !12
  %211 = getelementptr inbounds i8, ptr %205, i64 8
  %212 = load i64, ptr %211, align 8, !tbaa !14
  %213 = icmp eq i64 %212, 6
  %.str.7.sink195 = select i1 %213, ptr @.str.5, ptr @.str.7
  %tests_failed.sink194 = select i1 %213, ptr @tests_passed, ptr @tests_failed
  %214 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink195, ptr noundef nonnull @.str.121)
  %215 = load i32, ptr %tests_failed.sink194, align 4, !tbaa !12
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %tests_failed.sink194, align 4, !tbaa !12
  call void @match_result_free(ptr noundef nonnull %205) #8
  %217 = load ptr, ptr %173, align 8, !tbaa !22
  call void @ac_trie_free(ptr noundef %217) #8
  br label %218

218:                                              ; preds = %180, %176
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %1) #8
  ret void
}

declare i64 @regex_search(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare ptr @ac_trie_build(ptr noundef) local_unnamed_addr #2

declare i64 @aho_corasick_search(ptr noundef, ptr noundef, i64 noundef, ptr 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) #6

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 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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, !10, i64 64}
!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 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!15, !10, i64 8}
!15 = !{!"match_result_t", !7, i64 0, !10, i64 8, !10, i64 16}
!16 = !{!6, !7, i64 16}
!17 = !{!6, !7, i64 24}
!18 = !{!6, !10, i64 32}
!19 = !{!11, !11, i64 0}
!20 = !{!6, !11, i64 44}
!21 = !{!6, !11, i64 45}
!22 = !{!6, !7, i64 56}


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