; LLVM IR from xirc/cp-algorithm :: atcoder/abc039/D/main.ll (Z5solvev)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@H = external dso_local global i32, align 4
@W = external dso_local global i32, align 4
@_Z1GB5cxx11 = external dso_local global %"class.std::vector", align 8
@_Z1DB5cxx11 = external dso_local global %"class.std::vector", align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z5solvev() #0 {
  %1 = alloca i1, align 1
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %112, %0
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = load i32, ptr @H, align 4, !tbaa !5
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  br label %115

22:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %108, %22
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = load i32, ptr @W, align 4, !tbaa !5
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %111

28:                                               ; preds = %23
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %30) #3
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %31, i64 noundef %33)
  %35 = load i8, ptr %34, align 1, !tbaa !9
  %36 = sext i8 %35 to i32
  %37 = icmp ne i32 %36, 35
  br i1 %37, label %38, label %39

38:                                               ; preds = %28
  br label %108

39:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #3
  store i8 1, ptr %5, align 1, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 -1, ptr %6, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %94, %39
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = icmp sle i32 %41, 1
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %97

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = add nsw i32 %45, %46
  store i32 %47, ptr %7, align 4, !tbaa !5
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = icmp slt i32 %48, 0
  br i1 %49, label %54, label %50

50:                                               ; preds = %44
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = load i32, ptr @W, align 4, !tbaa !5
  %53 = icmp sge i32 %51, %52
  br i1 %53, label %54, label %55

54:                                               ; preds = %50, %44
  store i32 10, ptr %3, align 4
  br label %91

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 -1, ptr %8, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %86, %55
  %57 = load i32, ptr %8, align 4, !tbaa !5
  %58 = icmp sle i32 %57, 1
  br i1 %58, label %60, label %59

59:                                               ; preds = %56
  store i32 11, ptr %3, align 4
  br label %89

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = load i32, ptr %8, align 4, !tbaa !5
  %63 = add nsw i32 %61, %62
  store i32 %63, ptr %9, align 4, !tbaa !5
  %64 = load i32, ptr %9, align 4, !tbaa !5
  %65 = icmp slt i32 %64, 0
  br i1 %65, label %70, label %66

66:                                               ; preds = %60
  %67 = load i32, ptr %9, align 4, !tbaa !5
  %68 = load i32, ptr @H, align 4, !tbaa !5
  %69 = icmp sge i32 %67, %68
  br i1 %69, label %70, label %71

70:                                               ; preds = %66, %60
  store i32 13, ptr %3, align 4
  br label %83

71:                                               ; preds = %66
  %72 = load i32, ptr %9, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %73) #3
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %74, i64 noundef %76)
  %78 = load i8, ptr %77, align 1, !tbaa !9
  %79 = sext i8 %78 to i32
  %80 = icmp ne i32 %79, 35
  br i1 %80, label %81, label %82

81:                                               ; preds = %71
  store i8 0, ptr %5, align 1, !tbaa !10
  store i32 11, ptr %3, align 4
  br label %83

82:                                               ; preds = %71
  store i32 0, ptr %3, align 4
  br label %83

83:                                               ; preds = %82, %81, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  %84 = load i32, ptr %3, align 4
  switch i32 %84, label %89 [
    i32 0, label %85
    i32 13, label %86
  ]

85:                                               ; preds = %83
  br label %86

86:                                               ; preds = %85, %83
  %87 = load i32, ptr %8, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %8, align 4, !tbaa !5
  br label %56, !llvm.loop !12

89:                                               ; preds = %83, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %90

90:                                               ; preds = %89
  store i32 0, ptr %3, align 4
  br label %91

91:                                               ; preds = %90, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  %92 = load i32, ptr %3, align 4
  switch i32 %92, label %218 [
    i32 0, label %93
    i32 10, label %94
  ]

93:                                               ; preds = %91
  br label %94

94:                                               ; preds = %93, %91
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %6, align 4, !tbaa !5
  br label %40, !llvm.loop !14

97:                                               ; preds = %43
  %98 = load i8, ptr %5, align 1, !tbaa !10, !range !15, !noundef !16
  %99 = trunc i8 %98 to i1
  br i1 %99, label %100, label %107

100:                                              ; preds = %97
  %101 = load i32, ptr %2, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1DB5cxx11, i64 noundef %102) #3
  %104 = load i32, ptr %4, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %103, i64 noundef %105)
  store i8 35, ptr %106, align 1, !tbaa !9
  br label %107

107:                                              ; preds = %100, %97
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #3
  br label %108

108:                                              ; preds = %107, %38
  %109 = load i32, ptr %4, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %4, align 4, !tbaa !5
  br label %23, !llvm.loop !17

111:                                              ; preds = %27
  br label %112

112:                                              ; preds = %111
  %113 = load i32, ptr %2, align 4, !tbaa !5
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %2, align 4, !tbaa !5
  br label %17, !llvm.loop !18

115:                                              ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %210, %115
  %117 = load i32, ptr %10, align 4, !tbaa !5
  %118 = load i32, ptr @H, align 4, !tbaa !5
  %119 = icmp slt i32 %117, %118
  br i1 %119, label %121, label %120

120:                                              ; preds = %116
  store i32 14, ptr %3, align 4
  br label %213

121:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %204, %121
  %123 = load i32, ptr %11, align 4, !tbaa !5
  %124 = load i32, ptr @W, align 4, !tbaa !5
  %125 = icmp slt i32 %123, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %122
  store i32 17, ptr %3, align 4
  br label %207

127:                                              ; preds = %122
  %128 = load i32, ptr %10, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %129) #3
  %131 = load i32, ptr %11, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %130, i64 noundef %132)
  %134 = load i8, ptr %133, align 1, !tbaa !9
  %135 = sext i8 %134 to i32
  %136 = icmp ne i32 %135, 35
  br i1 %136, label %137, label %138

137:                                              ; preds = %127
  br label %204

138:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #3
  store i8 0, ptr %12, align 1, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 -1, ptr %13, align 4, !tbaa !5
  br label %139

139:                                              ; preds = %193, %138
  %140 = load i32, ptr %13, align 4, !tbaa !5
  %141 = icmp sle i32 %140, 1
  br i1 %141, label %143, label %142

142:                                              ; preds = %139
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %196

143:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %144 = load i32, ptr %11, align 4, !tbaa !5
  %145 = load i32, ptr %13, align 4, !tbaa !5
  %146 = add nsw i32 %144, %145
  store i32 %146, ptr %14, align 4, !tbaa !5
  %147 = load i32, ptr %14, align 4, !tbaa !5
  %148 = icmp slt i32 %147, 0
  br i1 %148, label %153, label %149

149:                                              ; preds = %143
  %150 = load i32, ptr %14, align 4, !tbaa !5
  %151 = load i32, ptr @W, align 4, !tbaa !5
  %152 = icmp sge i32 %150, %151
  br i1 %152, label %153, label %154

153:                                              ; preds = %149, %143
  store i32 22, ptr %3, align 4
  br label %190

154:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 -1, ptr %15, align 4, !tbaa !5
  br label %155

155:                                              ; preds = %185, %154
  %156 = load i32, ptr %15, align 4, !tbaa !5
  %157 = icmp sle i32 %156, 1
  br i1 %157, label %159, label %158

158:                                              ; preds = %155
  store i32 23, ptr %3, align 4
  br label %188

159:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %160 = load i32, ptr %10, align 4, !tbaa !5
  %161 = load i32, ptr %15, align 4, !tbaa !5
  %162 = add nsw i32 %160, %161
  store i32 %162, ptr %16, align 4, !tbaa !5
  %163 = load i32, ptr %16, align 4, !tbaa !5
  %164 = icmp slt i32 %163, 0
  br i1 %164, label %169, label %165

165:                                              ; preds = %159
  %166 = load i32, ptr %16, align 4, !tbaa !5
  %167 = load i32, ptr @H, align 4, !tbaa !5
  %168 = icmp sge i32 %166, %167
  br i1 %168, label %169, label %170

169:                                              ; preds = %165, %159
  store i32 25, ptr %3, align 4
  br label %182

170:                                              ; preds = %165
  %171 = load i32, ptr %16, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1DB5cxx11, i64 noundef %172) #3
  %174 = load i32, ptr %14, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %173, i64 noundef %175)
  %177 = load i8, ptr %176, align 1, !tbaa !9
  %178 = sext i8 %177 to i32
  %179 = icmp eq i32 %178, 35
  br i1 %179, label %180, label %181

180:                                              ; preds = %170
  store i8 1, ptr %12, align 1, !tbaa !10
  store i32 23, ptr %3, align 4
  br label %182

181:                                              ; preds = %170
  store i32 0, ptr %3, align 4
  br label %182

182:                                              ; preds = %181, %180, %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  %183 = load i32, ptr %3, align 4
  switch i32 %183, label %188 [
    i32 0, label %184
    i32 25, label %185
  ]

184:                                              ; preds = %182
  br label %185

185:                                              ; preds = %184, %182
  %186 = load i32, ptr %15, align 4, !tbaa !5
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %15, align 4, !tbaa !5
  br label %155, !llvm.loop !19

188:                                              ; preds = %182, %158
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %189

189:                                              ; preds = %188
  store i32 0, ptr %3, align 4
  br label %190

190:                                              ; preds = %189, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  %191 = load i32, ptr %3, align 4
  switch i32 %191, label %218 [
    i32 0, label %192
    i32 22, label %193
  ]

192:                                              ; preds = %190
  br label %193

193:                                              ; preds = %192, %190
  %194 = load i32, ptr %13, align 4, !tbaa !5
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %13, align 4, !tbaa !5
  br label %139, !llvm.loop !20

196:                                              ; preds = %142
  %197 = load i8, ptr %12, align 1, !tbaa !10, !range !15, !noundef !16
  %198 = trunc i8 %197 to i1
  br i1 %198, label %200, label %199

199:                                              ; preds = %196
  store i1 false, ptr %1, align 1
  store i32 1, ptr %3, align 4
  br label %201

200:                                              ; preds = %196
  store i32 0, ptr %3, align 4
  br label %201

201:                                              ; preds = %200, %199
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
  %202 = load i32, ptr %3, align 4
  switch i32 %202, label %207 [
    i32 0, label %203
  ]

203:                                              ; preds = %201
  br label %204

204:                                              ; preds = %203, %137
  %205 = load i32, ptr %11, align 4, !tbaa !5
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %11, align 4, !tbaa !5
  br label %122, !llvm.loop !21

207:                                              ; preds = %201, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  %208 = load i32, ptr %3, align 4
  switch i32 %208, label %213 [
    i32 17, label %209
  ]

209:                                              ; preds = %207
  br label %210

210:                                              ; preds = %209
  %211 = load i32, ptr %10, align 4, !tbaa !5
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %10, align 4, !tbaa !5
  br label %116, !llvm.loop !22

213:                                              ; preds = %207, %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %214 = load i32, ptr %3, align 4
  switch i32 %214, label %218 [
    i32 14, label %215
    i32 1, label %216
  ]

215:                                              ; preds = %213
  store i1 true, ptr %1, align 1
  br label %216

216:                                              ; preds = %215, %213
  %217 = load i1, ptr %1, align 1
  ret i1 %217

218:                                              ; preds = %213, %190, %91
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2 align 2

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"bool", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@H = external dso_local local_unnamed_addr global i32, align 4
@W = external dso_local local_unnamed_addr global i32, align 4
@_Z1GB5cxx11 = external dso_local global %"class.std::vector", align 8
@_Z1DB5cxx11 = external dso_local global %"class.std::vector", align 8

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_Z5solvev() local_unnamed_addr #0 {
  %1 = load i32, ptr @H, align 4, !tbaa !5
  %2 = icmp sgt i32 %1, 0
  %3 = load i32, ptr @W, align 4
  %4 = icmp sgt i32 %3, 0
  %or.cond227 = select i1 %2, i1 %4, i1 false
  br i1 %or.cond227, label %.preheader105, label %._crit_edge119

.preheader105:                                    ; preds = %0, %._crit_edge
  %5 = phi i32 [ %19, %._crit_edge ], [ %1, %0 ]
  %6 = phi i32 [ %20, %._crit_edge ], [ %3, %0 ]
  %indvars.iv138 = phi i64 [ %indvars.iv.next139, %._crit_edge ], [ 0, %0 ]
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader105
  %8 = icmp ne i64 %indvars.iv138, 0
  %9 = add nsw i64 %indvars.iv138, -1
  %10 = add nuw nsw i64 %indvars.iv138, 1
  %11 = icmp ne i64 %indvars.iv138, 0
  %12 = add nsw i64 %indvars.iv138, -1
  %13 = add nuw nsw i64 %indvars.iv138, 1
  %14 = icmp ne i64 %indvars.iv138, 0
  %15 = add nsw i64 %indvars.iv138, -1
  %16 = add nuw nsw i64 %indvars.iv138, 1
  br label %23

.preheader101:                                    ; preds = %._crit_edge
  %17 = icmp sgt i32 %19, 0
  %.pr = load i32, ptr @W, align 4
  %18 = icmp sgt i32 %.pr, 0
  %or.cond228 = select i1 %17, i1 %18, i1 false
  br i1 %or.cond228, label %.preheader100, label %._crit_edge119

._crit_edge.loopexit:                             ; preds = %.loopexit103.2.thread
  %.pre159 = load i32, ptr @H, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader105
  %19 = phi i32 [ %.pre159, %._crit_edge.loopexit ], [ %5, %.preheader105 ]
  %20 = phi i32 [ %77, %._crit_edge.loopexit ], [ %6, %.preheader105 ]
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %21 = sext i32 %19 to i64
  %22 = icmp slt i64 %indvars.iv.next139, %21
  br i1 %22, label %.preheader105, label %.preheader101, !llvm.loop !9

23:                                               ; preds = %.lr.ph, %.loopexit103.2.thread
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.pre-phi, %.loopexit103.2.thread ]
  %24 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %indvars.iv138) #1
  %25 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %24, i64 noundef %indvars.iv)
  %26 = load i8, ptr %25, align 1, !tbaa !12
  %.not80 = icmp eq i8 %26, 35
  br i1 %.not80, label %.preheader104.preheader, label %._crit_edge209

._crit_edge209:                                   ; preds = %23
  %.pre210 = add nuw nsw i64 %indvars.iv, 1
  br label %.loopexit103.2.thread

.preheader104.preheader:                          ; preds = %23
  %27 = add nsw i64 %indvars.iv, -1
  %28 = icmp sgt i64 %indvars.iv, 0
  %29 = load i32, ptr @W, align 4
  %30 = sext i32 %29 to i64
  %.not81 = icmp sle i64 %indvars.iv, %30
  %or.cond = select i1 %28, i1 %.not81, i1 false
  br i1 %or.cond, label %.preheader102, label %.loopexit103

.preheader102:                                    ; preds = %.preheader104.preheader
  %31 = load i32, ptr @H, align 4
  %32 = sext i32 %31 to i64
  %.not82 = icmp sle i64 %indvars.iv138, %32
  %or.cond84 = select i1 %8, i1 %.not82, i1 false
  br i1 %or.cond84, label %33, label %select.unfold

33:                                               ; preds = %.preheader102
  %34 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %9) #1
  %35 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %34, i64 noundef %27)
  %36 = load i8, ptr %35, align 1, !tbaa !12
  %.not83 = icmp eq i8 %36, 35
  br i1 %.not83, label %.select.unfold_crit_edge, label %.loopexit103.loopexit

.select.unfold_crit_edge:                         ; preds = %33
  %.pre = load i32, ptr @H, align 4
  %.pre177 = sext i32 %.pre to i64
  br label %select.unfold

select.unfold:                                    ; preds = %.select.unfold_crit_edge, %.preheader102
  %.pre-phi = phi i64 [ %.pre177, %.select.unfold_crit_edge ], [ %32, %.preheader102 ]
  %.not82.1 = icmp slt i64 %indvars.iv138, %.pre-phi
  br i1 %.not82.1, label %37, label %select.unfold.1

37:                                               ; preds = %select.unfold
  %38 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %indvars.iv138) #1
  %39 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %38, i64 noundef %27)
  %40 = load i8, ptr %39, align 1, !tbaa !12
  %.not83.1 = icmp eq i8 %40, 35
  br i1 %.not83.1, label %.select.unfold.1_crit_edge, label %.loopexit103.loopexit

.select.unfold.1_crit_edge:                       ; preds = %37
  %.pre152 = load i32, ptr @H, align 4
  %.pre178 = sext i32 %.pre152 to i64
  br label %select.unfold.1

select.unfold.1:                                  ; preds = %.select.unfold.1_crit_edge, %select.unfold
  %.pre-phi179 = phi i64 [ %.pre178, %.select.unfold.1_crit_edge ], [ %.pre-phi, %select.unfold ]
  %.not82.2 = icmp slt i64 %10, %.pre-phi179
  br i1 %.not82.2, label %41, label %select.unfold.2

41:                                               ; preds = %select.unfold.1
  %42 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %10) #1
  %43 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %42, i64 noundef %27)
  %44 = load i8, ptr %43, align 1, !tbaa !12
  %.not83.2 = icmp eq i8 %44, 35
  br i1 %.not83.2, label %select.unfold.2, label %.loopexit103.loopexit

select.unfold.2:                                  ; preds = %41, %select.unfold.1
  br label %.loopexit103.loopexit

.loopexit103.loopexit:                            ; preds = %select.unfold.2, %41, %37, %33
  %.472.ph = phi i1 [ false, %33 ], [ false, %37 ], [ false, %41 ], [ true, %select.unfold.2 ]
  %.pre153 = load i32, ptr @W, align 4
  %.pre180 = sext i32 %.pre153 to i64
  br label %.loopexit103

.loopexit103:                                     ; preds = %.loopexit103.loopexit, %.preheader104.preheader
  %.pre-phi181 = phi i64 [ %.pre180, %.loopexit103.loopexit ], [ %30, %.preheader104.preheader ]
  %.472 = phi i1 [ %.472.ph, %.loopexit103.loopexit ], [ true, %.preheader104.preheader ]
  %.not81.1 = icmp slt i64 %indvars.iv, %.pre-phi181
  br i1 %.not81.1, label %.preheader102.1, label %.loopexit103.1

.preheader102.1:                                  ; preds = %.loopexit103
  %45 = load i32, ptr @H, align 4
  %46 = sext i32 %45 to i64
  %.not82.1129 = icmp sle i64 %indvars.iv138, %46
  %or.cond84.1130 = select i1 %11, i1 %.not82.1129, i1 false
  br i1 %or.cond84.1130, label %47, label %select.unfold.1132

47:                                               ; preds = %.preheader102.1
  %48 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %12) #1
  %49 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %48, i64 noundef %indvars.iv)
  %50 = load i8, ptr %49, align 1, !tbaa !12
  %.not83.1131 = icmp eq i8 %50, 35
  br i1 %.not83.1131, label %.select.unfold.1132_crit_edge, label %.loopexit103.loopexit.1

.select.unfold.1132_crit_edge:                    ; preds = %47
  %.pre154 = load i32, ptr @H, align 4
  %.pre182 = sext i32 %.pre154 to i64
  br label %select.unfold.1132

select.unfold.1132:                               ; preds = %.select.unfold.1132_crit_edge, %.preheader102.1
  %.pre-phi183 = phi i64 [ %.pre182, %.select.unfold.1132_crit_edge ], [ %46, %.preheader102.1 ]
  %.not82.1.1 = icmp slt i64 %indvars.iv138, %.pre-phi183
  br i1 %.not82.1.1, label %51, label %select.unfold.1.1

51:                                               ; preds = %select.unfold.1132
  %52 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %indvars.iv138) #1
  %53 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %52, i64 noundef %indvars.iv)
  %54 = load i8, ptr %53, align 1, !tbaa !12
  %.not83.1.1 = icmp eq i8 %54, 35
  br i1 %.not83.1.1, label %.select.unfold.1.1_crit_edge, label %.loopexit103.loopexit.1

.select.unfold.1.1_crit_edge:                     ; preds = %51
  %.pre155 = load i32, ptr @H, align 4
  %.pre184 = sext i32 %.pre155 to i64
  br label %select.unfold.1.1

select.unfold.1.1:                                ; preds = %.select.unfold.1.1_crit_edge, %select.unfold.1132
  %.pre-phi185 = phi i64 [ %.pre184, %.select.unfold.1.1_crit_edge ], [ %.pre-phi183, %select.unfold.1132 ]
  %.not82.2.1 = icmp slt i64 %13, %.pre-phi185
  br i1 %.not82.2.1, label %55, label %select.unfold.2.1

55:                                               ; preds = %select.unfold.1.1
  %56 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %13) #1
  %57 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %56, i64 noundef %indvars.iv)
  %58 = load i8, ptr %57, align 1, !tbaa !12
  %.not83.2.1 = icmp eq i8 %58, 35
  br i1 %.not83.2.1, label %select.unfold.2.1, label %.loopexit103.loopexit.1

select.unfold.2.1:                                ; preds = %55, %select.unfold.1.1
  br label %.loopexit103.loopexit.1

.loopexit103.loopexit.1:                          ; preds = %select.unfold.2.1, %55, %51, %47
  %.472.ph.1 = phi i1 [ false, %47 ], [ false, %51 ], [ false, %55 ], [ %.472, %select.unfold.2.1 ]
  %.pre156 = load i32, ptr @W, align 4
  %.pre186 = sext i32 %.pre156 to i64
  br label %.loopexit103.1

.loopexit103.1:                                   ; preds = %.loopexit103.loopexit.1, %.loopexit103
  %.pre-phi187 = phi i64 [ %.pre186, %.loopexit103.loopexit.1 ], [ %.pre-phi181, %.loopexit103 ]
  %.472.1 = phi i1 [ %.472.ph.1, %.loopexit103.loopexit.1 ], [ %.472, %.loopexit103 ]
  %59 = add nuw nsw i64 %indvars.iv, 1
  %.not81.2 = icmp slt i64 %59, %.pre-phi187
  br i1 %.not81.2, label %.preheader102.2, label %.loopexit103.2

.preheader102.2:                                  ; preds = %.loopexit103.1
  %60 = load i32, ptr @H, align 4
  %61 = sext i32 %60 to i64
  %.not82.2133 = icmp sle i64 %indvars.iv138, %61
  %or.cond84.2134 = select i1 %14, i1 %.not82.2133, i1 false
  br i1 %or.cond84.2134, label %62, label %select.unfold.2136

62:                                               ; preds = %.preheader102.2
  %63 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %15) #1
  %64 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %63, i64 noundef %59)
  %65 = load i8, ptr %64, align 1, !tbaa !12
  %.not83.2135 = icmp eq i8 %65, 35
  br i1 %.not83.2135, label %.select.unfold.2136_crit_edge, label %.loopexit103.2.thread

.select.unfold.2136_crit_edge:                    ; preds = %62
  %.pre157 = load i32, ptr @H, align 4
  %.pre188 = sext i32 %.pre157 to i64
  br label %select.unfold.2136

select.unfold.2136:                               ; preds = %.select.unfold.2136_crit_edge, %.preheader102.2
  %.pre-phi189 = phi i64 [ %.pre188, %.select.unfold.2136_crit_edge ], [ %61, %.preheader102.2 ]
  %.not82.1.2 = icmp slt i64 %indvars.iv138, %.pre-phi189
  br i1 %.not82.1.2, label %66, label %select.unfold.1.2

66:                                               ; preds = %select.unfold.2136
  %67 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %indvars.iv138) #1
  %68 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %67, i64 noundef %59)
  %69 = load i8, ptr %68, align 1, !tbaa !12
  %.not83.1.2 = icmp eq i8 %69, 35
  br i1 %.not83.1.2, label %.select.unfold.1.2_crit_edge, label %.loopexit103.2.thread

.select.unfold.1.2_crit_edge:                     ; preds = %66
  %.pre158 = load i32, ptr @H, align 4
  %.pre190 = sext i32 %.pre158 to i64
  br label %select.unfold.1.2

select.unfold.1.2:                                ; preds = %.select.unfold.1.2_crit_edge, %select.unfold.2136
  %.pre-phi191 = phi i64 [ %.pre190, %.select.unfold.1.2_crit_edge ], [ %.pre-phi189, %select.unfold.2136 ]
  %.not82.2.2 = icmp slt i64 %16, %.pre-phi191
  br i1 %.not82.2.2, label %70, label %select.unfold.2.2

70:                                               ; preds = %select.unfold.1.2
  %71 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %16) #1
  %72 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %71, i64 noundef %59)
  %73 = load i8, ptr %72, align 1, !tbaa !12
  %.not83.2.2 = icmp eq i8 %73, 35
  %brmerge.not = and i1 %.not83.2.2, %.472.1
  br i1 %brmerge.not, label %74, label %.loopexit103.2.thread

select.unfold.2.2:                                ; preds = %select.unfold.1.2
  br i1 %.472.1, label %74, label %.loopexit103.2.thread

.loopexit103.2:                                   ; preds = %.loopexit103.1
  br i1 %.472.1, label %74, label %.loopexit103.2.thread

74:                                               ; preds = %70, %select.unfold.2.2, %.loopexit103.2
  %75 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1DB5cxx11, i64 noundef %indvars.iv138) #1
  %76 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %75, i64 noundef %indvars.iv)
  store i8 35, ptr %76, align 1, !tbaa !12
  br label %.loopexit103.2.thread

.loopexit103.2.thread:                            ; preds = %70, %66, %62, %select.unfold.2.2, %._crit_edge209, %.loopexit103.2, %74
  %indvars.iv.next.pre-phi = phi i64 [ %.pre210, %._crit_edge209 ], [ %59, %.loopexit103.2 ], [ %59, %74 ], [ %59, %select.unfold.2.2 ], [ %59, %62 ], [ %59, %66 ], [ %59, %70 ]
  %77 = load i32, ptr @W, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = icmp slt i64 %indvars.iv.next.pre-phi, %78
  br i1 %79, label %23, label %._crit_edge.loopexit, !llvm.loop !13

.preheader100:                                    ; preds = %.preheader101, %.thread97
  %80 = phi i32 [ %162, %.thread97 ], [ %19, %.preheader101 ]
  %81 = phi i32 [ %163, %.thread97 ], [ %.pr, %.preheader101 ]
  %indvars.iv150 = phi i64 [ %indvars.iv.next151, %.thread97 ], [ 0, %.preheader101 ]
  %.not77114 = icmp sgt i32 %81, 0
  br i1 %.not77114, label %.lr.ph116, label %.thread97

.lr.ph116:                                        ; preds = %.preheader100
  %82 = icmp ne i64 %indvars.iv150, 0
  %83 = add nsw i64 %indvars.iv150, -1
  %84 = add nuw nsw i64 %indvars.iv150, 1
  %85 = icmp ne i64 %indvars.iv150, 0
  %86 = add nsw i64 %indvars.iv150, -1
  %87 = add nuw nsw i64 %indvars.iv150, 1
  %88 = icmp ne i64 %indvars.iv150, 0
  %89 = add nsw i64 %indvars.iv150, -1
  %90 = add nuw nsw i64 %indvars.iv150, 1
  br label %91

91:                                               ; preds = %.lr.ph116, %159
  %indvars.iv147 = phi i64 [ 0, %.lr.ph116 ], [ %indvars.iv.next148.pre-phi, %159 ]
  %92 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1GB5cxx11, i64 noundef %indvars.iv150) #1
  %93 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %92, i64 noundef %indvars.iv147)
  %94 = load i8, ptr %93, align 1, !tbaa !12
  %.not = icmp eq i8 %94, 35
  %.pre175 = load i32, ptr @W, align 4
  br i1 %.not, label %.preheader99.preheader, label %._crit_edge208

._crit_edge208:                                   ; preds = %91
  %.pre211 = add nuw nsw i64 %indvars.iv147, 1
  br label %159

.preheader99.preheader:                           ; preds = %91
  %95 = add nsw i64 %indvars.iv147, -1
  %96 = icmp sgt i64 %indvars.iv147, 0
  %97 = sext i32 %.pre175 to i64
  %.not78 = icmp sle i64 %indvars.iv147, %97
  %or.cond85 = select i1 %96, i1 %.not78, i1 false
  br i1 %or.cond85, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %.preheader99.preheader
  %98 = load i32, ptr @H, align 4
  %99 = sext i32 %98 to i64
  %.not79 = icmp sle i64 %indvars.iv150, %99
  %or.cond86 = select i1 %82, i1 %.not79, i1 false
  br i1 %or.cond86, label %100, label %105

100:                                              ; preds = %.preheader
  %101 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1DB5cxx11, i64 noundef %83) #1
  %102 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %101, i64 noundef %95)
  %103 = load i8, ptr %102, align 1, !tbaa !12
  %104 = icmp eq i8 %103, 35
  br i1 %104, label %.loopexit.loopexit, label %._crit_edge160

._crit_edge160:                                   ; preds = %100
  %.pre161 = load i32, ptr @H, align 4
  %.pre204 = sext i32 %.pre161 to i64
  br label %105

105:                                              ; preds = %._crit_edge160, %.preheader
  %.pre-phi205 = phi i64 [ %.pre204, %._crit_edge160 ], [ %99, %.preheader ]
  %.not79.1 = icmp slt i64 %indvars.iv150, %.pre-phi205
  br i1 %.not79.1, label %106, label %111

106:                                              ; preds = %105
  %107 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1DB5cxx11, i64 noundef %indvars.iv150) #1
  %108 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %107, i64 noundef %95)
  %109 = load i8, ptr %108, align 1, !tbaa !12
  %110 = icmp eq i8 %109, 35
  br i1 %110, label %.loopexit.loopexit, label %._crit_edge162

._crit_edge162:                                   ; preds = %106
  %.pre163 = load i32, ptr @H, align 4
  %.pre206 = sext i32 %.pre163 to i64
  br label %111

111:                                              ; preds = %._crit_edge162, %105
  %.pre-phi207 = phi i64 [ %.pre206, %._crit_edge162 ], [ %.pre-phi205, %105 ]
  %.not79.2 = icmp slt i64 %84, %.pre-phi207
  br i1 %.not79.2, label %112, label %117

112:                                              ; preds = %111
  %113 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1DB5cxx11, i64 noundef %84) #1
  %114 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %113, i64 noundef %95)
  %115 = load i8, ptr %114, align 1, !tbaa !12
  %116 = icmp eq i8 %115, 35
  br i1 %116, label %.loopexit.loopexit, label %117

117:                                              ; preds = %112, %111
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %117, %112, %106, %100
  %.457.ph = phi i1 [ true, %100 ], [ true, %106 ], [ true, %112 ], [ false, %117 ]
  %.pre164 = load i32, ptr @W, align 4
  %.pre192 = sext i32 %.pre164 to i64
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.preheader99.preheader
  %.pre-phi193 = phi i64 [ %.pre192, %.loopexit.loopexit ], [ %97, %.preheader99.preheader ]
  %.457 = phi i1 [ %.457.ph, %.loopexit.loopexit ], [ false, %.preheader99.preheader ]
  %.not78.1 = icmp slt i64 %indvars.iv147, %.pre-phi193
  br i1 %.not78.1, label %.preheader.1, label %.loopexit.1

.preheader.1:                                     ; preds = %.loopexit
  %118 = load i32, ptr @H, align 4
  %119 = sext i32 %118 to i64
  %.not79.1143 = icmp sle i64 %indvars.iv150, %119
  %or.cond86.1144 = select i1 %85, i1 %.not79.1143, i1 false
  br i1 %or.cond86.1144, label %120, label %125

120:                                              ; preds = %.preheader.1
  %121 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1DB5cxx11, i64 noundef %86) #1
  %122 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %121, i64 noundef %indvars.iv147)
  %123 = load i8, ptr %122, align 1, !tbaa !12
  %124 = icmp eq i8 %123, 35
  br i1 %124, label %.loopexit.loopexit.1, label %._crit_edge165

._crit_edge165:                                   ; preds = %120
  %.pre166 = load i32, ptr @H, align 4
  %.pre200 = sext i32 %.pre166 to i64
  br label %125

125:                                              ; preds = %._crit_edge165, %.preheader.1
  %.pre-phi201 = phi i64 [ %.pre200, %._crit_edge165 ], [ %119, %.preheader.1 ]
  %.not79.1.1 = icmp slt i64 %indvars.iv150, %.pre-phi201
  br i1 %.not79.1.1, label %126, label %131

126:                                              ; preds = %125
  %127 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1DB5cxx11, i64 noundef %indvars.iv150) #1
  %128 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %127, i64 noundef %indvars.iv147)
  %129 = load i8, ptr %128, align 1, !tbaa !12
  %130 = icmp eq i8 %129, 35
  br i1 %130, label %.loopexit.loopexit.1, label %._crit_edge167

._crit_edge167:                                   ; preds = %126
  %.pre168 = load i32, ptr @H, align 4
  %.pre202 = sext i32 %.pre168 to i64
  br label %131

131:                                              ; preds = %._crit_edge167, %125
  %.pre-phi203 = phi i64 [ %.pre202, %._crit_edge167 ], [ %.pre-phi201, %125 ]
  %.not79.2.1 = icmp slt i64 %87, %.pre-phi203
  br i1 %.not79.2.1, label %132, label %137

132:                                              ; preds = %131
  %133 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1DB5cxx11, i64 noundef %87) #1
  %134 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %133, i64 noundef %indvars.iv147)
  %135 = load i8, ptr %134, align 1, !tbaa !12
  %136 = icmp eq i8 %135, 35
  br i1 %136, label %.loopexit.loopexit.1, label %137

137:                                              ; preds = %132, %131
  br label %.loopexit.loopexit.1

.loopexit.loopexit.1:                             ; preds = %137, %132, %126, %120
  %.457.ph.1 = phi i1 [ true, %120 ], [ true, %126 ], [ true, %132 ], [ %.457, %137 ]
  %.pre169 = load i32, ptr @W, align 4
  %.pre194 = sext i32 %.pre169 to i64
  br label %.loopexit.1

.loopexit.1:                                      ; preds = %.loopexit.loopexit.1, %.loopexit
  %.pre-phi195 = phi i64 [ %.pre194, %.loopexit.loopexit.1 ], [ %.pre-phi193, %.loopexit ]
  %.457.1 = phi i1 [ %.457.ph.1, %.loopexit.loopexit.1 ], [ %.457, %.loopexit ]
  %138 = add nuw nsw i64 %indvars.iv147, 1
  %.not78.2 = icmp slt i64 %138, %.pre-phi195
  br i1 %.not78.2, label %.preheader.2, label %.loopexit.2

.preheader.2:                                     ; preds = %.loopexit.1
  %139 = load i32, ptr @H, align 4
  %140 = sext i32 %139 to i64
  %.not79.2145 = icmp sle i64 %indvars.iv150, %140
  %or.cond86.2146 = select i1 %88, i1 %.not79.2145, i1 false
  br i1 %or.cond86.2146, label %141, label %146

141:                                              ; preds = %.preheader.2
  %142 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1DB5cxx11, i64 noundef %89) #1
  %143 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %142, i64 noundef %138)
  %144 = load i8, ptr %143, align 1, !tbaa !12
  %145 = icmp eq i8 %144, 35
  br i1 %145, label %.loopexit.2._crit_edge, label %._crit_edge170

._crit_edge170:                                   ; preds = %141
  %.pre171 = load i32, ptr @H, align 4
  %.pre196 = sext i32 %.pre171 to i64
  br label %146

146:                                              ; preds = %._crit_edge170, %.preheader.2
  %.pre-phi197 = phi i64 [ %.pre196, %._crit_edge170 ], [ %140, %.preheader.2 ]
  %.not79.1.2 = icmp slt i64 %indvars.iv150, %.pre-phi197
  br i1 %.not79.1.2, label %147, label %152

147:                                              ; preds = %146
  %148 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1DB5cxx11, i64 noundef %indvars.iv150) #1
  %149 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %148, i64 noundef %138)
  %150 = load i8, ptr %149, align 1, !tbaa !12
  %151 = icmp eq i8 %150, 35
  br i1 %151, label %.loopexit.2._crit_edge, label %._crit_edge172

._crit_edge172:                                   ; preds = %147
  %.pre173 = load i32, ptr @H, align 4
  %.pre198 = sext i32 %.pre173 to i64
  br label %152

152:                                              ; preds = %._crit_edge172, %146
  %.pre-phi199 = phi i64 [ %.pre198, %._crit_edge172 ], [ %.pre-phi197, %146 ]
  %.not79.2.2 = icmp slt i64 %90, %.pre-phi199
  br i1 %.not79.2.2, label %153, label %158

153:                                              ; preds = %152
  %154 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1DB5cxx11, i64 noundef %90) #1
  %155 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %154, i64 noundef %138)
  %156 = load i8, ptr %155, align 1, !tbaa !12
  %157 = icmp eq i8 %156, 35
  %brmerge221 = or i1 %157, %.457.1
  br i1 %brmerge221, label %.loopexit.2._crit_edge, label %._crit_edge119

158:                                              ; preds = %152
  br i1 %.457.1, label %.loopexit.2._crit_edge, label %._crit_edge119

.loopexit.2:                                      ; preds = %.loopexit.1
  br i1 %.457.1, label %.loopexit.2._crit_edge, label %._crit_edge119

.loopexit.2._crit_edge:                           ; preds = %153, %147, %141, %158, %.loopexit.2
  %.pre174 = load i32, ptr @W, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %._crit_edge208, %.loopexit.2._crit_edge
  %indvars.iv.next148.pre-phi = phi i64 [ %.pre211, %._crit_edge208 ], [ %138, %.loopexit.2._crit_edge ]
  %160 = phi i32 [ %.pre175, %._crit_edge208 ], [ %.pre174, %.loopexit.2._crit_edge ]
  %161 = sext i32 %160 to i64
  %.not77 = icmp slt i64 %indvars.iv.next148.pre-phi, %161
  br i1 %.not77, label %91, label %.thread97.loopexit, !llvm.loop !14

.thread97.loopexit:                               ; preds = %159
  %.pre176 = load i32, ptr @H, align 4, !tbaa !5
  br label %.thread97

.thread97:                                        ; preds = %.thread97.loopexit, %.preheader100
  %162 = phi i32 [ %.pre176, %.thread97.loopexit ], [ %80, %.preheader100 ]
  %163 = phi i32 [ %160, %.thread97.loopexit ], [ %81, %.preheader100 ]
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %164 = sext i32 %162 to i64
  %.not212 = icmp slt i64 %indvars.iv.next151, %164
  br i1 %.not212, label %.preheader100, label %._crit_edge119, !llvm.loop !15

._crit_edge119:                                   ; preds = %.thread97, %.loopexit.2, %158, %153, %0, %.preheader101
  %.lcssa = phi i1 [ true, %.preheader101 ], [ true, %0 ], [ false, %153 ], [ false, %158 ], [ false, %.loopexit.2 ], [ true, %.thread97 ]
  ret i1 %.lcssa
}

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.unswitch.partial.disable"}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10, !11}


; Effective O3 passes: AggressiveInstCombinePass,BDCEPass,ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass