; LLVM IR from tangjz/acm-icpc :: uvalive/7223.ll (Z8buildNFARiP3NFAiPc)

; 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"

%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.5" = type { i8 }
%struct.NFA = type { [26 x %"class.std::vector"] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_Z5IndexB5cxx11 = external dso_local global %"class.std::unordered_map", align 8
@sz = external dso_local global [5001 x i32], align 16
@plen = external dso_local global [5001 x [5 x i32]], align 16
@pat = external dso_local global [5001 x [5 x [21 x i8]]], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8buildNFARiP3NFAiPc(ptr noundef nonnull align 4 dereferenceable(4) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator.5", align 1
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca i1, align 1
  %22 = alloca %"class.std::allocator.5", align 1
  %23 = alloca i1, align 1
  %24 = alloca i1, align 1
  %25 = alloca i1, align 1
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %30, align 4, !tbaa !9
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %32, align 4, !tbaa !9
  %35 = sext i32 %33 to i64
  %36 = getelementptr inbounds %struct.NFA, ptr %31, i64 %35
  call void @_ZN3NFA5clearEv(ptr noundef nonnull align 8 dereferenceable(624) %36)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %65, %4
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %68

42:                                               ; preds = %37
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %44, align 4, !tbaa !9
  %47 = sext i32 %45 to i64
  %48 = getelementptr inbounds %struct.NFA, ptr %43, i64 %47
  call void @_ZN3NFA5clearEv(ptr noundef nonnull align 8 dereferenceable(624) %48)
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds %struct.NFA, ptr %49, i64 %51
  %53 = getelementptr inbounds %struct.NFA, ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds i8, ptr %54, i64 %56
  %58 = load i8, ptr %57, align 1, !tbaa !11
  %59 = sext i8 %58 to i32
  %60 = sub nsw i32 %59, 65
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [26 x %"class.std::vector"], ptr %53, i64 0, i64 %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %63 = load i32, ptr %9, align 4, !tbaa !9
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %10, align 4, !tbaa !9
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %65

65:                                               ; preds = %42
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %9, align 4, !tbaa !9
  br label %37, !llvm.loop !12

68:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %279, %68
  %70 = load i32, ptr %11, align 4, !tbaa !9
  %71 = load i32, ptr %7, align 4, !tbaa !9
  %72 = icmp slt i32 %70, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %282

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %75 = load i32, ptr %11, align 4, !tbaa !9
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %13, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %275, %74
  %78 = load i32, ptr %13, align 4, !tbaa !9
  %79 = load i32, ptr %7, align 4, !tbaa !9
  %80 = icmp sle i32 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %278

82:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds i8, ptr %83, i64 %85
  %87 = load i8, ptr %86, align 1, !tbaa !11
  store i8 %87, ptr %14, align 1, !tbaa !11
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = load i32, ptr %13, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds i8, ptr %88, i64 %90
  store i8 0, ptr %91, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #4
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = load i32, ptr %11, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i8, ptr %92, i64 %94
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #4
  store i1 false, ptr %21, align 1
  store i1 false, ptr %23, align 1
  store i1 false, ptr %24, align 1
  store i1 false, ptr %25, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef %95, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %96 unwind label %132

96:                                               ; preds = %82
  %97 = invoke noundef i64 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE5countERSB_(ptr noundef nonnull align 8 dereferenceable(56) @_Z5IndexB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %98 unwind label %136

98:                                               ; preds = %96
  %99 = icmp ne i64 %97, 0
  br i1 %99, label %100, label %109

100:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #4
  store i1 true, ptr %21, align 1
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds i8, ptr %101, i64 %103
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #4
  store i1 true, ptr %23, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #4
  store i1 true, ptr %24, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef %104, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %105 unwind label %140

105:                                              ; preds = %100
  store i1 true, ptr %25, align 1
  %106 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(56) @_Z5IndexB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %107 unwind label %144

107:                                              ; preds = %105
  %108 = load i32, ptr %106, align 4, !tbaa !9
  br label %110

109:                                              ; preds = %98
  br label %110

110:                                              ; preds = %109, %107
  %111 = phi i32 [ %108, %107 ], [ -1, %109 ]
  %112 = load i1, ptr %25, align 1
  br i1 %112, label %113, label %114

113:                                              ; preds = %110
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #4
  br label %114

114:                                              ; preds = %113, %110
  %115 = load i1, ptr %24, align 1
  br i1 %115, label %116, label %117

116:                                              ; preds = %114
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #4
  br label %117

117:                                              ; preds = %116, %114
  %118 = load i1, ptr %23, align 1
  br i1 %118, label %119, label %120

119:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #4
  br label %120

120:                                              ; preds = %119, %117
  %121 = load i1, ptr %21, align 1
  br i1 %121, label %122, label %123

122:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #4
  br label %123

123:                                              ; preds = %122, %120
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #4
  store i32 %111, ptr %15, align 4, !tbaa !9
  %124 = load i32, ptr %15, align 4, !tbaa !9
  %125 = icmp eq i32 %124, -1
  br i1 %125, label %126, label %163

126:                                              ; preds = %123
  %127 = load i8, ptr %14, align 1, !tbaa !11
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = load i32, ptr %13, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds i8, ptr %128, i64 %130
  store i8 %127, ptr %131, align 1, !tbaa !11
  store i32 10, ptr %12, align 4
  br label %272

132:                                              ; preds = %82
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %18, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %19, align 4
  br label %162

136:                                              ; preds = %96
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %18, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %19, align 4
  br label %161

140:                                              ; preds = %100
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %18, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %19, align 4
  br label %151

144:                                              ; preds = %105
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %18, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %19, align 4
  %148 = load i1, ptr %25, align 1
  br i1 %148, label %149, label %150

149:                                              ; preds = %144
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #4
  br label %150

150:                                              ; preds = %149, %144
  br label %151

151:                                              ; preds = %150, %140
  %152 = load i1, ptr %24, align 1
  br i1 %152, label %153, label %154

153:                                              ; preds = %151
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #4
  br label %154

154:                                              ; preds = %153, %151
  %155 = load i1, ptr %23, align 1
  br i1 %155, label %156, label %157

156:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #4
  br label %157

157:                                              ; preds = %156, %154
  %158 = load i1, ptr %21, align 1
  br i1 %158, label %159, label %160

159:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #4
  br label %160

160:                                              ; preds = %159, %157
  br label %161

161:                                              ; preds = %160, %136
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #4
  br label %162

162:                                              ; preds = %161, %132
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %283

163:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %263, %163
  %165 = load i32, ptr %26, align 4, !tbaa !9
  %166 = load i32, ptr %15, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [5001 x i32], ptr @sz, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !9
  %170 = icmp slt i32 %165, %169
  br i1 %170, label %172, label %171

171:                                              ; preds = %164
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %266

172:                                              ; preds = %164
  %173 = load i32, ptr %15, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [5001 x [5 x [21 x i8]]], ptr @pat, i64 0, i64 %174
  %176 = load i32, ptr %26, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [5 x [21 x i8]], ptr %175, i64 0, i64 %177
  %179 = getelementptr inbounds [21 x i8], ptr %178, i64 0, i64 0
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = load i32, ptr %11, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds i8, ptr %180, i64 %182
  %184 = call i32 @strcmp(ptr noundef %179, ptr noundef %183) #5
  %185 = icmp eq i32 %184, 0
  br i1 %185, label %186, label %187

186:                                              ; preds = %172
  br label %263

187:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %188 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %188, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %189

189:                                              ; preds = %233, %187
  %190 = load i32, ptr %28, align 4, !tbaa !9
  %191 = load i32, ptr %15, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [5001 x [5 x i32]], ptr @plen, i64 0, i64 %192
  %194 = load i32, ptr %26, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [5 x i32], ptr %193, i64 0, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !9
  %198 = sub nsw i32 %197, 1
  %199 = icmp slt i32 %190, %198
  br i1 %199, label %201, label %200

200:                                              ; preds = %189
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %236

201:                                              ; preds = %189
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = load i32, ptr %203, align 4, !tbaa !9
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %203, align 4, !tbaa !9
  %206 = sext i32 %204 to i64
  %207 = getelementptr inbounds %struct.NFA, ptr %202, i64 %206
  call void @_ZN3NFA5clearEv(ptr noundef nonnull align 8 dereferenceable(624) %207)
  %208 = load ptr, ptr %6, align 8, !tbaa !5
  %209 = load i32, ptr %27, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds %struct.NFA, ptr %208, i64 %210
  %212 = getelementptr inbounds %struct.NFA, ptr %211, i32 0, i32 0
  %213 = load i32, ptr %15, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [5001 x [5 x [21 x i8]]], ptr @pat, i64 0, i64 %214
  %216 = load i32, ptr %26, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [5 x [21 x i8]], ptr %215, i64 0, i64 %217
  %219 = load i32, ptr %28, align 4, !tbaa !9
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [21 x i8], ptr %218, i64 0, i64 %220
  %222 = load i8, ptr %221, align 1, !tbaa !11
  %223 = sext i8 %222 to i32
  %224 = sub nsw i32 %223, 65
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [26 x %"class.std::vector"], ptr %212, i64 0, i64 %225
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %227 = load ptr, ptr %5, align 8, !tbaa !5
  %228 = load i32, ptr %227, align 4, !tbaa !9
  %229 = sub nsw i32 %228, 1
  store i32 %229, ptr %29, align 4, !tbaa !9
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %226, ptr noundef nonnull align 4 dereferenceable(4) %29)
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = load i32, ptr %230, align 4, !tbaa !9
  %232 = sub nsw i32 %231, 1
  store i32 %232, ptr %27, align 4, !tbaa !9
  br label %233

233:                                              ; preds = %201
  %234 = load i32, ptr %28, align 4, !tbaa !9
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %28, align 4, !tbaa !9
  br label %189, !llvm.loop !14

236:                                              ; preds = %200
  %237 = load ptr, ptr %6, align 8, !tbaa !5
  %238 = load i32, ptr %27, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds %struct.NFA, ptr %237, i64 %239
  %241 = getelementptr inbounds %struct.NFA, ptr %240, i32 0, i32 0
  %242 = load i32, ptr %15, align 4, !tbaa !9
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [5001 x [5 x [21 x i8]]], ptr @pat, i64 0, i64 %243
  %245 = load i32, ptr %26, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [5 x [21 x i8]], ptr %244, i64 0, i64 %246
  %248 = load i32, ptr %15, align 4, !tbaa !9
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [5001 x [5 x i32]], ptr @plen, i64 0, i64 %249
  %251 = load i32, ptr %26, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [5 x i32], ptr %250, i64 0, i64 %252
  %254 = load i32, ptr %253, align 4, !tbaa !9
  %255 = sub nsw i32 %254, 1
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [21 x i8], ptr %247, i64 0, i64 %256
  %258 = load i8, ptr %257, align 1, !tbaa !11
  %259 = sext i8 %258 to i32
  %260 = sub nsw i32 %259, 65
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [26 x %"class.std::vector"], ptr %241, i64 0, i64 %261
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %262, ptr noundef nonnull align 4 dereferenceable(4) %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  br label %263

263:                                              ; preds = %236, %186
  %264 = load i32, ptr %26, align 4, !tbaa !9
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %26, align 4, !tbaa !9
  br label %164, !llvm.loop !15

266:                                              ; preds = %171
  %267 = load i8, ptr %14, align 1, !tbaa !11
  %268 = load ptr, ptr %8, align 8, !tbaa !5
  %269 = load i32, ptr %13, align 4, !tbaa !9
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds i8, ptr %268, i64 %270
  store i8 %267, ptr %271, align 1, !tbaa !11
  store i32 0, ptr %12, align 4
  br label %272

272:                                              ; preds = %266, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  %273 = load i32, ptr %12, align 4
  switch i32 %273, label %288 [
    i32 0, label %274
    i32 10, label %275
  ]

274:                                              ; preds = %272
  br label %275

275:                                              ; preds = %274, %272
  %276 = load i32, ptr %13, align 4, !tbaa !9
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %13, align 4, !tbaa !9
  br label %77, !llvm.loop !16

278:                                              ; preds = %81
  br label %279

279:                                              ; preds = %278
  %280 = load i32, ptr %11, align 4, !tbaa !9
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr %11, align 4, !tbaa !9
  br label %69, !llvm.loop !17

282:                                              ; preds = %73
  ret void

283:                                              ; preds = %162
  %284 = load ptr, ptr %18, align 8
  %285 = load i32, ptr %19, align 4
  %286 = insertvalue { ptr, i32 } poison, ptr %284, 0
  %287 = insertvalue { ptr, i32 } %286, i32 %285, 1
  resume { ptr, i32 } %287

288:                                              ; preds = %272
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3NFA5clearEv(ptr noundef nonnull align 8 dereferenceable(624)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE5countERSB_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }
attributes #5 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}


; 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"

%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.5" = type { i8 }
%struct.NFA = type { [26 x %"class.std::vector"] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_Z5IndexB5cxx11 = external dso_local global %"class.std::unordered_map", align 8
@sz = external dso_local local_unnamed_addr global [5001 x i32], align 16
@plen = external dso_local local_unnamed_addr global [5001 x [5 x i32]], align 16
@pat = external dso_local global [5001 x [5 x [21 x i8]]], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8buildNFARiP3NFAiPc(ptr nocapture noundef nonnull align 4 dereferenceable(4) %0, ptr noundef nonnull %1, i32 noundef %2, ptr noundef %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator.5", align 1
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator.5", align 1
  %11 = alloca i32, align 4
  store i32 1, ptr %0, align 4, !tbaa !5
  tail call void @_ZN3NFA5clearEv(ptr noundef nonnull align 8 dereferenceable(624) %1)
  %12 = icmp sgt i32 %2, 0
  br i1 %12, label %.lr.ph.preheader, label %._crit_edge104

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

.preheader88:                                     ; preds = %.lr.ph
  br i1 %12, label %.lr.ph103.preheader, label %._crit_edge104

.lr.ph103.preheader:                              ; preds = %.preheader88
  %wide.trip.count117 = zext nneg i32 %2 to i64
  br label %.lr.ph100

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %13 = load i32, ptr %0, align 4, !tbaa !5
  %14 = add nsw i32 %13, 1
  store i32 %14, ptr %0, align 4, !tbaa !5
  %15 = sext i32 %13 to i64
  %16 = getelementptr inbounds %struct.NFA, ptr %1, i64 %15
  call void @_ZN3NFA5clearEv(ptr noundef nonnull align 8 dereferenceable(624) %16)
  %17 = getelementptr inbounds %struct.NFA, ptr %1, i64 %indvars.iv
  %18 = getelementptr inbounds i8, ptr %3, i64 %indvars.iv
  %19 = load i8, ptr %18, align 1, !tbaa !9
  %20 = sext i8 %19 to i64
  %21 = add nsw i64 %20, -65
  %22 = getelementptr inbounds [26 x %"class.std::vector"], ptr %17, i64 0, i64 %21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %23 = trunc nuw nsw i64 %indvars.iv.next to i32
  store i32 %23, ptr %5, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader88, label %.lr.ph, !llvm.loop !10

._crit_edge104:                                   ; preds = %._crit_edge101, %4, %.preheader88
  ret void

.lr.ph100:                                        ; preds = %._crit_edge101, %.lr.ph103.preheader
  %indvars.iv114 = phi i64 [ 0, %.lr.ph103.preheader ], [ %indvars.iv.next115, %._crit_edge101 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %24 = trunc nuw nsw i64 %indvars.iv.next115 to i32
  store i32 %24, ptr %6, align 4, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %3, i64 %indvars.iv114
  %26 = trunc nuw nsw i64 %indvars.iv114 to i32
  br label %27

._crit_edge101:                                   ; preds = %._crit_edge96
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  %exitcond118.not = icmp eq i64 %indvars.iv.next115, %wide.trip.count117
  br i1 %exitcond118.not, label %._crit_edge104, label %.lr.ph100, !llvm.loop !12

27:                                               ; preds = %.lr.ph100, %._crit_edge96
  %storemerge98 = phi i32 [ %24, %.lr.ph100 ], [ %95, %._crit_edge96 ]
  %28 = sext i32 %storemerge98 to i64
  %29 = getelementptr inbounds i8, ptr %3, i64 %28
  %30 = load i8, ptr %29, align 1, !tbaa !9
  store i8 0, ptr %29, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull %25, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %31 unwind label %44

31:                                               ; preds = %27
  %32 = invoke noundef i64 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE5countERSB_(ptr noundef nonnull align 8 dereferenceable(56) @_Z5IndexB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %33 unwind label %46

33:                                               ; preds = %31
  %.not81.not = icmp eq i64 %32, 0
  br i1 %.not81.not, label %.critedge86, label %34

34:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull %25, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %35 unwind label %48

35:                                               ; preds = %34
  %36 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(56) @_Z5IndexB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %.critedge unwind label %50

.critedge:                                        ; preds = %35
  %37 = load i32, ptr %36, align 4, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #4
  br label %.critedge86

.critedge86:                                      ; preds = %33, %.critedge
  %38 = phi i32 [ %37, %.critedge ], [ -1, %33 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  %39 = icmp eq i32 %38, -1
  br i1 %39, label %._crit_edge96, label %.preheader87

.preheader87:                                     ; preds = %.critedge86
  %40 = sext i32 %38 to i64
  %41 = getelementptr inbounds [5001 x i32], ptr @sz, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %.lr.ph95, label %._crit_edge96

44:                                               ; preds = %27
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %54

46:                                               ; preds = %31
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %53

48:                                               ; preds = %34
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

50:                                               ; preds = %35
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  br label %52

52:                                               ; preds = %48, %50
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #4
  br label %53

53:                                               ; preds = %52, %46
  %.pn.pn = phi { ptr, i32 } [ %.pn, %52 ], [ %47, %46 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  br label %54

54:                                               ; preds = %53, %44
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %53 ], [ %45, %44 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  resume { ptr, i32 } %.pn.pn.pn

.lr.ph95:                                         ; preds = %.preheader87, %89
  %55 = phi i32 [ %90, %89 ], [ %42, %.preheader87 ]
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %89 ], [ 0, %.preheader87 ]
  %56 = getelementptr inbounds [5001 x [5 x [21 x i8]]], ptr @pat, i64 0, i64 %40, i64 %indvars.iv111
  %57 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %56, ptr noundef nonnull dereferenceable(1) %25) #5
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %89, label %.preheader

.preheader:                                       ; preds = %.lr.ph95
  %59 = getelementptr inbounds [5001 x [5 x i32]], ptr @plen, i64 0, i64 %40, i64 %indvars.iv111
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = icmp sgt i32 %60, 1
  br i1 %61, label %.lr.ph92.preheader, label %.preheader.._crit_edge_crit_edge

.preheader.._crit_edge_crit_edge:                 ; preds = %.preheader
  %62 = add nsw i32 %60, -1
  %.pre120 = sext i32 %62 to i64
  br label %._crit_edge

.lr.ph92.preheader:                               ; preds = %.preheader
  %.pre = load i32, ptr %0, align 4, !tbaa !5
  br label %.lr.ph92

._crit_edge:                                      ; preds = %.lr.ph92, %.preheader.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre120, %.preheader.._crit_edge_crit_edge ], [ %87, %.lr.ph92 ]
  %.065.lcssa = phi i32 [ %26, %.preheader.._crit_edge_crit_edge ], [ %84, %.lr.ph92 ]
  %63 = sext i32 %.065.lcssa to i64
  %64 = getelementptr inbounds %struct.NFA, ptr %1, i64 %63
  %65 = getelementptr inbounds [5001 x [5 x [21 x i8]]], ptr @pat, i64 0, i64 %40, i64 %indvars.iv111, i64 %.pre-phi
  %66 = load i8, ptr %65, align 1, !tbaa !9
  %67 = sext i8 %66 to i64
  %68 = add nsw i64 %67, -65
  %69 = getelementptr inbounds [26 x %"class.std::vector"], ptr %64, i64 0, i64 %68
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %.pre119 = load i32, ptr %41, align 4, !tbaa !5
  br label %89

.lr.ph92:                                         ; preds = %.lr.ph92.preheader, %.lr.ph92
  %70 = phi i32 [ %.pre, %.lr.ph92.preheader ], [ %83, %.lr.ph92 ]
  %indvars.iv108 = phi i64 [ 0, %.lr.ph92.preheader ], [ %indvars.iv.next109, %.lr.ph92 ]
  %.06590 = phi i32 [ %26, %.lr.ph92.preheader ], [ %84, %.lr.ph92 ]
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %0, align 4, !tbaa !5
  %72 = sext i32 %70 to i64
  %73 = getelementptr inbounds %struct.NFA, ptr %1, i64 %72
  call void @_ZN3NFA5clearEv(ptr noundef nonnull align 8 dereferenceable(624) %73)
  %74 = sext i32 %.06590 to i64
  %75 = getelementptr inbounds %struct.NFA, ptr %1, i64 %74
  %76 = getelementptr inbounds [5001 x [5 x [21 x i8]]], ptr @pat, i64 0, i64 %40, i64 %indvars.iv111, i64 %indvars.iv108
  %77 = load i8, ptr %76, align 1, !tbaa !9
  %78 = sext i8 %77 to i64
  %79 = add nsw i64 %78, -65
  %80 = getelementptr inbounds [26 x %"class.std::vector"], ptr %75, i64 0, i64 %79
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  %81 = load i32, ptr %0, align 4, !tbaa !5
  %82 = add nsw i32 %81, -1
  store i32 %82, ptr %11, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %80, ptr noundef nonnull align 4 dereferenceable(4) %11)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  %83 = load i32, ptr %0, align 4, !tbaa !5
  %84 = add nsw i32 %83, -1
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %85 = load i32, ptr %59, align 4, !tbaa !5
  %86 = add nsw i32 %85, -1
  %87 = sext i32 %86 to i64
  %88 = icmp slt i64 %indvars.iv.next109, %87
  br i1 %88, label %.lr.ph92, label %._crit_edge, !llvm.loop !13

89:                                               ; preds = %.lr.ph95, %._crit_edge
  %90 = phi i32 [ %55, %.lr.ph95 ], [ %.pre119, %._crit_edge ]
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %91 = sext i32 %90 to i64
  %92 = icmp slt i64 %indvars.iv.next112, %91
  br i1 %92, label %.lr.ph95, label %._crit_edge96, !llvm.loop !14

._crit_edge96:                                    ; preds = %89, %.preheader87, %.critedge86
  %.sink = load i32, ptr %6, align 4, !tbaa !5
  %93 = sext i32 %.sink to i64
  %94 = getelementptr inbounds i8, ptr %3, i64 %93
  store i8 %30, ptr %94, align 1, !tbaa !9
  %95 = add nsw i32 %.sink, 1
  store i32 %95, ptr %6, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.sink, %2
  br i1 %.not.not, label %27, label %._crit_edge101, !llvm.loop !15
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3NFA5clearEv(ptr noundef nonnull align 8 dereferenceable(624)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE5countERSB_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nounwind }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass