; LLVM IR from kazunetakahashi/atcoder :: 201510_201609/0611_ABC039 (D)

; 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::__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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@H = external dso_local global i32, align 4
@W = external dso_local global i32, align 4
@_Z1SB5cxx11 = external dso_local global [110 x %"class.std::__cxx11::basic_string"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5validii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z4nuriii(i32 noundef, i32 noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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) #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 norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [110 x [110 x i8]], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [110 x [110 x i8]], align 16
  %8 = alloca i8, align 1
  %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 i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @H)
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) @W)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %19

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

23:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %32

24:                                               ; preds = %19
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [110 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %26
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %27)
  br label %29

29:                                               ; preds = %24
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %2, align 4, !tbaa !5
  br label %19, !llvm.loop !9

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

33:                                               ; preds = %59, %32
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = load i32, ptr @H, align 4, !tbaa !5
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %62

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %55, %38
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = load i32, ptr @W, align 4, !tbaa !5
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %44, label %43

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

44:                                               ; preds = %39
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = call noundef zeroext i1 @_Z4nuriii(i32 noundef %45, i32 noundef %46)
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [110 x [110 x i8]], ptr %3, i64 0, i64 %49
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [110 x i8], ptr %50, i64 0, i64 %52
  %54 = zext i1 %47 to i8
  store i8 %54, ptr %53, align 1, !tbaa !11
  br label %55

55:                                               ; preds = %44
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %6, align 4, !tbaa !5
  br label %39, !llvm.loop !13

58:                                               ; preds = %43
  br label %59

59:                                               ; preds = %58
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %4, align 4, !tbaa !5
  br label %33, !llvm.loop !14

62:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 12100, ptr %7) #6
  %63 = getelementptr inbounds [110 x [110 x i8]], ptr %7, i64 0, i64 0
  %64 = getelementptr inbounds [110 x i8], ptr %63, i64 0, i64 0
  %65 = getelementptr inbounds [110 x [110 x i8]], ptr %7, i64 0, i64 0
  %66 = getelementptr inbounds [110 x i8], ptr %65, i64 0, i64 0
  %67 = getelementptr inbounds i8, ptr %66, i64 12100
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  store i8 0, ptr %8, align 1, !tbaa !11
  call void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef %64, ptr noundef %67, ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %131, %62
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = load i32, ptr @H, align 4, !tbaa !5
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %134

73:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %127, %73
  %75 = load i32, ptr %10, align 4, !tbaa !5
  %76 = load i32, ptr @W, align 4, !tbaa !5
  %77 = icmp slt i32 %75, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %130

79:                                               ; preds = %74
  %80 = load i32, ptr %9, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [110 x [110 x i8]], ptr %3, i64 0, i64 %81
  %83 = load i32, ptr %10, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [110 x i8], ptr %82, i64 0, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !11, !range !15, !noundef !16
  %87 = trunc i8 %86 to i1
  br i1 %87, label %88, label %126

88:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 -1, ptr %11, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %122, %88
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = icmp sle i32 %90, 1
  br i1 %91, label %93, label %92

92:                                               ; preds = %89
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %125

93:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 -1, ptr %12, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %118, %93
  %95 = load i32, ptr %12, align 4, !tbaa !5
  %96 = icmp sle i32 %95, 1
  br i1 %96, label %98, label %97

97:                                               ; preds = %94
  store i32 20, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %121

98:                                               ; preds = %94
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = load i32, ptr %11, align 4, !tbaa !5
  %101 = add nsw i32 %99, %100
  %102 = load i32, ptr %10, align 4, !tbaa !5
  %103 = load i32, ptr %12, align 4, !tbaa !5
  %104 = add nsw i32 %102, %103
  %105 = call noundef zeroext i1 @_Z5validii(i32 noundef %101, i32 noundef %104)
  br i1 %105, label %106, label %117

106:                                              ; preds = %98
  %107 = load i32, ptr %9, align 4, !tbaa !5
  %108 = load i32, ptr %11, align 4, !tbaa !5
  %109 = add nsw i32 %107, %108
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [110 x [110 x i8]], ptr %7, i64 0, i64 %110
  %112 = load i32, ptr %10, align 4, !tbaa !5
  %113 = load i32, ptr %12, align 4, !tbaa !5
  %114 = add nsw i32 %112, %113
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [110 x i8], ptr %111, i64 0, i64 %115
  store i8 1, ptr %116, align 1, !tbaa !11
  br label %117

117:                                              ; preds = %106, %98
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %12, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %12, align 4, !tbaa !5
  br label %94, !llvm.loop !17

121:                                              ; preds = %97
  br label %122

122:                                              ; preds = %121
  %123 = load i32, ptr %11, align 4, !tbaa !5
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %11, align 4, !tbaa !5
  br label %89, !llvm.loop !18

125:                                              ; preds = %92
  br label %126

126:                                              ; preds = %125, %79
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %10, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %10, align 4, !tbaa !5
  br label %74, !llvm.loop !19

130:                                              ; preds = %78
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %9, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %9, align 4, !tbaa !5
  br label %68, !llvm.loop !20

134:                                              ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %177, %134
  %136 = load i32, ptr %13, align 4, !tbaa !5
  %137 = load i32, ptr @H, align 4, !tbaa !5
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  store i32 23, ptr %5, align 4
  br label %180

140:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %171, %140
  %142 = load i32, ptr %14, align 4, !tbaa !5
  %143 = load i32, ptr @W, align 4, !tbaa !5
  %144 = icmp slt i32 %142, %143
  br i1 %144, label %146, label %145

145:                                              ; preds = %141
  store i32 26, ptr %5, align 4
  br label %174

146:                                              ; preds = %141
  %147 = load i32, ptr %13, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [110 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %148
  %150 = load i32, ptr %14, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %149, i64 noundef %151)
  %153 = load i8, ptr %152, align 1, !tbaa !21
  %154 = sext i8 %153 to i32
  %155 = icmp eq i32 %154, 35
  %156 = zext i1 %155 to i32
  %157 = load i32, ptr %13, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [110 x [110 x i8]], ptr %7, i64 0, i64 %158
  %160 = load i32, ptr %14, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [110 x i8], ptr %159, i64 0, i64 %161
  %163 = load i8, ptr %162, align 1, !tbaa !11, !range !15, !noundef !16
  %164 = trunc i8 %163 to i1
  %165 = zext i1 %164 to i32
  %166 = icmp ne i32 %156, %165
  br i1 %166, label %167, label %170

167:                                              ; preds = %146
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %174

170:                                              ; preds = %146
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %14, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %14, align 4, !tbaa !5
  br label %141, !llvm.loop !22

174:                                              ; preds = %167, %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  %175 = load i32, ptr %5, align 4
  switch i32 %175, label %180 [
    i32 26, label %176
  ]

176:                                              ; preds = %174
  br label %177

177:                                              ; preds = %176
  %178 = load i32, ptr %13, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %13, align 4, !tbaa !5
  br label %135, !llvm.loop !23

180:                                              ; preds = %174, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  %181 = load i32, ptr %5, align 4
  switch i32 %181, label %219 [
    i32 23, label %182
  ]

182:                                              ; preds = %180
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %183, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %185

185:                                              ; preds = %215, %182
  %186 = load i32, ptr %15, align 4, !tbaa !5
  %187 = load i32, ptr @H, align 4, !tbaa !5
  %188 = icmp slt i32 %186, %187
  br i1 %188, label %190, label %189

189:                                              ; preds = %185
  store i32 29, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %218

190:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %191

191:                                              ; preds = %210, %190
  %192 = load i32, ptr %16, align 4, !tbaa !5
  %193 = load i32, ptr @W, align 4, !tbaa !5
  %194 = icmp slt i32 %192, %193
  br i1 %194, label %196, label %195

195:                                              ; preds = %191
  store i32 32, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %213

196:                                              ; preds = %191
  %197 = load i32, ptr %15, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [110 x [110 x i8]], ptr %3, i64 0, i64 %198
  %200 = load i32, ptr %16, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [110 x i8], ptr %199, i64 0, i64 %201
  %203 = load i8, ptr %202, align 1, !tbaa !11, !range !15, !noundef !16
  %204 = trunc i8 %203 to i1
  br i1 %204, label %205, label %207

205:                                              ; preds = %196
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  br label %209

207:                                              ; preds = %196
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  br label %209

209:                                              ; preds = %207, %205
  br label %210

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

213:                                              ; preds = %195
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %215

215:                                              ; preds = %213
  %216 = load i32, ptr %15, align 4, !tbaa !5
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %15, align 4, !tbaa !5
  br label %185, !llvm.loop !25

218:                                              ; preds = %189
  store i32 0, ptr %5, align 4
  br label %219

219:                                              ; preds = %218, %180
  call void @llvm.lifetime.end.p0(i64 12100, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 12100, ptr %3) #6
  %220 = load i32, ptr %5, align 4
  switch i32 %220, label %223 [
    i32 0, label %221
    i32 1, label %221
  ]

221:                                              ; preds = %219, %219
  %222 = load i32, ptr %1, align 4
  ret i32 %222

223:                                              ; preds = %219
  unreachable
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #4

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress norecurse 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint 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 #6 = { 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}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}


; 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::__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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@H = external dso_local global i32, align 4
@W = external dso_local global i32, align 4
@_Z1SB5cxx11 = external dso_local global [110 x %"class.std::__cxx11::basic_string"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5validii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z4nuriii(i32 noundef, i32 noundef) local_unnamed_addr #1

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

; 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 norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca [110 x [110 x i8]], align 16
  %2 = alloca [110 x [110 x i8]], align 16
  %3 = alloca i8, align 1
  %4 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @H)
  %5 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) @W)
  %6 = load i32, ptr @H, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 12100, ptr nonnull %1) #6
  br label %._crit_edge76

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 12100, ptr nonnull %1) #6
  %8 = icmp sgt i32 %13, 0
  %9 = load i32, ptr @W, align 4
  %10 = icmp sgt i32 %9, 0
  %or.cond = select i1 %8, i1 %10, i1 false
  br i1 %or.cond, label %.preheader70, label %._crit_edge76

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %11 = getelementptr inbounds [110 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %indvars.iv
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %11)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %13 = load i32, ptr @H, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = icmp slt i64 %indvars.iv.next, %14
  br i1 %15, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.preheader70:                                     ; preds = %._crit_edge, %._crit_edge74
  %16 = phi i32 [ %25, %._crit_edge74 ], [ %13, %._crit_edge ]
  %17 = phi i32 [ %26, %._crit_edge74 ], [ %9, %._crit_edge ]
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %._crit_edge74 ], [ 0, %._crit_edge ]
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph73, label %._crit_edge74

.lr.ph73:                                         ; preds = %.preheader70
  %19 = trunc nuw nsw i64 %indvars.iv99 to i32
  br label %29

._crit_edge76:                                    ; preds = %._crit_edge74, %._crit_edge.thread, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 12100, ptr nonnull %2) #6
  %20 = getelementptr inbounds i8, ptr %2, i64 12100
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  store i8 0, ptr %3, align 1, !tbaa !11
  call void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %2, ptr noundef nonnull %20, ptr noundef nonnull align 1 dereferenceable(1) %3)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  %21 = load i32, ptr @H, align 4, !tbaa !5
  %22 = icmp sgt i32 %21, 0
  %23 = load i32, ptr @W, align 4
  %24 = icmp sgt i32 %23, 0
  %or.cond139 = select i1 %22, i1 %24, i1 false
  br i1 %or.cond139, label %.preheader69, label %.critedge63

._crit_edge74.loopexit:                           ; preds = %29
  %.pre = load i32, ptr @H, align 4, !tbaa !5
  br label %._crit_edge74

._crit_edge74:                                    ; preds = %._crit_edge74.loopexit, %.preheader70
  %25 = phi i32 [ %.pre, %._crit_edge74.loopexit ], [ %16, %.preheader70 ]
  %26 = phi i32 [ %34, %._crit_edge74.loopexit ], [ %17, %.preheader70 ]
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %27 = sext i32 %25 to i64
  %28 = icmp slt i64 %indvars.iv.next100, %27
  br i1 %28, label %.preheader70, label %._crit_edge76, !llvm.loop !13

29:                                               ; preds = %.lr.ph73, %29
  %indvars.iv96 = phi i64 [ 0, %.lr.ph73 ], [ %indvars.iv.next97, %29 ]
  %30 = trunc nuw nsw i64 %indvars.iv96 to i32
  %31 = tail call noundef zeroext i1 @_Z4nuriii(i32 noundef %19, i32 noundef %30)
  %32 = getelementptr inbounds [110 x [110 x i8]], ptr %1, i64 0, i64 %indvars.iv99, i64 %indvars.iv96
  %33 = zext i1 %31 to i8
  store i8 %33, ptr %32, align 1, !tbaa !11
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %34 = load i32, ptr @W, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = icmp slt i64 %indvars.iv.next97, %35
  br i1 %36, label %29, label %._crit_edge74.loopexit, !llvm.loop !15

.preheader69:                                     ; preds = %._crit_edge76, %._crit_edge81
  %37 = phi i32 [ %47, %._crit_edge81 ], [ %21, %._crit_edge76 ]
  %38 = phi i32 [ %48, %._crit_edge81 ], [ %23, %._crit_edge76 ]
  %39 = phi i32 [ %49, %._crit_edge81 ], [ %23, %._crit_edge76 ]
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %._crit_edge81 ], [ 0, %._crit_edge76 ]
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.lr.ph80, label %._crit_edge81

.lr.ph80:                                         ; preds = %.preheader69
  %41 = add nsw i64 %indvars.iv111, -1
  %42 = trunc nsw i64 %41 to i32
  %43 = trunc nuw nsw i64 %indvars.iv111 to i32
  %44 = add nuw nsw i64 %indvars.iv111, 1
  %45 = trunc nsw i64 %44 to i32
  br label %52

.preheader65:                                     ; preds = %._crit_edge81
  %.not6186 = icmp sgt i32 %47, 0
  %.pr = load i32, ptr @W, align 4
  %46 = icmp sgt i32 %.pr, 0
  %or.cond140 = select i1 %.not6186, i1 %46, i1 false
  br i1 %or.cond140, label %.preheader64, label %.critedge63

._crit_edge81.loopexit:                           ; preds = %.loopexit68
  %.pre127 = load i32, ptr @H, align 4, !tbaa !5
  br label %._crit_edge81

._crit_edge81:                                    ; preds = %._crit_edge81.loopexit, %.preheader69
  %47 = phi i32 [ %.pre127, %._crit_edge81.loopexit ], [ %37, %.preheader69 ]
  %48 = phi i32 [ %95, %._crit_edge81.loopexit ], [ %38, %.preheader69 ]
  %49 = phi i32 [ %95, %._crit_edge81.loopexit ], [ %39, %.preheader69 ]
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %50 = sext i32 %47 to i64
  %51 = icmp slt i64 %indvars.iv.next112, %50
  br i1 %51, label %.preheader69, label %.preheader65, !llvm.loop !16

52:                                               ; preds = %.lr.ph80, %.loopexit68
  %53 = phi i32 [ %38, %.lr.ph80 ], [ %95, %.loopexit68 ]
  %indvars.iv108 = phi i64 [ 0, %.lr.ph80 ], [ %indvars.iv.next109.pre-phi, %.loopexit68 ]
  %54 = getelementptr inbounds [110 x [110 x i8]], ptr %1, i64 0, i64 %indvars.iv111, i64 %indvars.iv108
  %55 = load i8, ptr %54, align 1, !tbaa !11, !range !17, !noundef !18
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %.preheader66.preheader, label %..loopexit68_crit_edge

..loopexit68_crit_edge:                           ; preds = %52
  %.pre129 = add nuw nsw i64 %indvars.iv108, 1
  br label %.loopexit68

.preheader66.preheader:                           ; preds = %52
  %57 = add nsw i64 %indvars.iv108, -1
  %58 = trunc nsw i64 %57 to i32
  %59 = call noundef zeroext i1 @_Z5validii(i32 noundef %42, i32 noundef %58)
  br i1 %59, label %60, label %62

60:                                               ; preds = %.preheader66.preheader
  %61 = getelementptr inbounds [110 x [110 x i8]], ptr %2, i64 0, i64 %41, i64 %57
  store i8 1, ptr %61, align 1, !tbaa !11
  br label %62

62:                                               ; preds = %.preheader66.preheader, %60
  %63 = trunc nuw nsw i64 %indvars.iv108 to i32
  %64 = call noundef zeroext i1 @_Z5validii(i32 noundef %42, i32 noundef %63)
  br i1 %64, label %65, label %67

65:                                               ; preds = %62
  %66 = getelementptr inbounds [110 x [110 x i8]], ptr %2, i64 0, i64 %41, i64 %indvars.iv108
  store i8 1, ptr %66, align 1, !tbaa !11
  br label %67

67:                                               ; preds = %65, %62
  %68 = add nuw nsw i64 %indvars.iv108, 1
  %69 = trunc nsw i64 %68 to i32
  %70 = call noundef zeroext i1 @_Z5validii(i32 noundef %42, i32 noundef %69)
  br i1 %70, label %71, label %.preheader66.1

71:                                               ; preds = %67
  %72 = getelementptr inbounds [110 x [110 x i8]], ptr %2, i64 0, i64 %41, i64 %68
  store i8 1, ptr %72, align 1, !tbaa !11
  br label %.preheader66.1

.preheader66.1:                                   ; preds = %71, %67
  %73 = call noundef zeroext i1 @_Z5validii(i32 noundef %43, i32 noundef %58)
  br i1 %73, label %74, label %76

74:                                               ; preds = %.preheader66.1
  %75 = getelementptr inbounds [110 x [110 x i8]], ptr %2, i64 0, i64 %indvars.iv111, i64 %57
  store i8 1, ptr %75, align 1, !tbaa !11
  br label %76

76:                                               ; preds = %74, %.preheader66.1
  %77 = call noundef zeroext i1 @_Z5validii(i32 noundef %43, i32 noundef %63)
  br i1 %77, label %78, label %80

78:                                               ; preds = %76
  %79 = getelementptr inbounds [110 x [110 x i8]], ptr %2, i64 0, i64 %indvars.iv111, i64 %indvars.iv108
  store i8 1, ptr %79, align 1, !tbaa !11
  br label %80

80:                                               ; preds = %78, %76
  %81 = call noundef zeroext i1 @_Z5validii(i32 noundef %43, i32 noundef %69)
  br i1 %81, label %82, label %.preheader66.2

82:                                               ; preds = %80
  %83 = getelementptr inbounds [110 x [110 x i8]], ptr %2, i64 0, i64 %indvars.iv111, i64 %68
  store i8 1, ptr %83, align 1, !tbaa !11
  br label %.preheader66.2

.preheader66.2:                                   ; preds = %82, %80
  %84 = call noundef zeroext i1 @_Z5validii(i32 noundef %45, i32 noundef %58)
  br i1 %84, label %85, label %87

85:                                               ; preds = %.preheader66.2
  %86 = getelementptr inbounds [110 x [110 x i8]], ptr %2, i64 0, i64 %44, i64 %57
  store i8 1, ptr %86, align 1, !tbaa !11
  br label %87

87:                                               ; preds = %85, %.preheader66.2
  %88 = call noundef zeroext i1 @_Z5validii(i32 noundef %45, i32 noundef %63)
  br i1 %88, label %89, label %91

89:                                               ; preds = %87
  %90 = getelementptr inbounds [110 x [110 x i8]], ptr %2, i64 0, i64 %44, i64 %indvars.iv108
  store i8 1, ptr %90, align 1, !tbaa !11
  br label %91

91:                                               ; preds = %89, %87
  %92 = call noundef zeroext i1 @_Z5validii(i32 noundef %45, i32 noundef %69)
  br i1 %92, label %93, label %.loopexit68.loopexit

93:                                               ; preds = %91
  %94 = getelementptr inbounds [110 x [110 x i8]], ptr %2, i64 0, i64 %44, i64 %68
  store i8 1, ptr %94, align 1, !tbaa !11
  br label %.loopexit68.loopexit

.loopexit68.loopexit:                             ; preds = %93, %91
  %.pre126 = load i32, ptr @W, align 4, !tbaa !5
  br label %.loopexit68

.loopexit68:                                      ; preds = %..loopexit68_crit_edge, %.loopexit68.loopexit
  %indvars.iv.next109.pre-phi = phi i64 [ %.pre129, %..loopexit68_crit_edge ], [ %68, %.loopexit68.loopexit ]
  %95 = phi i32 [ %53, %..loopexit68_crit_edge ], [ %.pre126, %.loopexit68.loopexit ]
  %96 = sext i32 %95 to i64
  %97 = icmp slt i64 %indvars.iv.next109.pre-phi, %96
  br i1 %97, label %52, label %._crit_edge81.loopexit, !llvm.loop !19

.preheader64:                                     ; preds = %.preheader65, %.critedge
  %98 = phi i32 [ %111, %.critedge ], [ %47, %.preheader65 ]
  %99 = phi i32 [ %112, %.critedge ], [ %.pr, %.preheader65 ]
  %indvars.iv117 = phi i64 [ %indvars.iv.next118, %.critedge ], [ 0, %.preheader65 ]
  %.not6083 = icmp sgt i32 %99, 0
  br i1 %.not6083, label %.lr.ph85, label %.critedge

.lr.ph85:                                         ; preds = %.preheader64
  %100 = getelementptr inbounds [110 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %indvars.iv117
  br label %104

101:                                              ; preds = %104
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %102 = load i32, ptr @W, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %.not60 = icmp slt i64 %indvars.iv.next115, %103
  br i1 %.not60, label %104, label %.critedge.loopexit, !llvm.loop !20

104:                                              ; preds = %.lr.ph85, %101
  %indvars.iv114 = phi i64 [ 0, %.lr.ph85 ], [ %indvars.iv.next115, %101 ]
  %105 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %100, i64 noundef %indvars.iv114)
  %106 = load i8, ptr %105, align 1, !tbaa !21
  %107 = icmp eq i8 %106, 35
  %108 = getelementptr inbounds [110 x [110 x i8]], ptr %2, i64 0, i64 %indvars.iv117, i64 %indvars.iv114
  %109 = load i8, ptr %108, align 1, !tbaa !11, !range !17, !noundef !18
  %110 = zext i1 %107 to i8
  %.not = icmp eq i8 %109, %110
  br i1 %.not, label %101, label %114

.critedge.loopexit:                               ; preds = %101
  %.pre128 = load i32, ptr @H, align 4, !tbaa !5
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %.preheader64
  %111 = phi i32 [ %.pre128, %.critedge.loopexit ], [ %98, %.preheader64 ]
  %112 = phi i32 [ %102, %.critedge.loopexit ], [ %99, %.preheader64 ]
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %113 = sext i32 %111 to i64
  %.not61 = icmp slt i64 %indvars.iv.next118, %113
  br i1 %.not61, label %.preheader64, label %.critedge63, !llvm.loop !22

114:                                              ; preds = %104
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %.loopexit

.critedge63:                                      ; preds = %.critedge, %._crit_edge76, %.preheader65
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %119 = load i32, ptr @H, align 4, !tbaa !5
  %120 = icmp sgt i32 %119, 0
  br i1 %120, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %.critedge63, %._crit_edge90
  %indvars.iv123 = phi i64 [ %indvars.iv.next124, %._crit_edge90 ], [ 0, %.critedge63 ]
  %121 = load i32, ptr @W, align 4, !tbaa !5
  %122 = icmp sgt i32 %121, 0
  br i1 %122, label %.lr.ph89, label %._crit_edge90

._crit_edge90:                                    ; preds = %.lr.ph89, %.preheader
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %124 = load i32, ptr @H, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = icmp slt i64 %indvars.iv.next124, %125
  br i1 %126, label %.preheader, label %.loopexit, !llvm.loop !23

.lr.ph89:                                         ; preds = %.preheader, %.lr.ph89
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %.lr.ph89 ], [ 0, %.preheader ]
  %127 = getelementptr inbounds [110 x [110 x i8]], ptr %1, i64 0, i64 %indvars.iv123, i64 %indvars.iv120
  %128 = load i8, ptr %127, align 1, !tbaa !11, !range !17, !noundef !18
  %129 = trunc nuw i8 %128 to i1
  %.str.3..str.4 = select i1 %129, ptr @.str.3, ptr @.str.4
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str.3..str.4)
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %131 = load i32, ptr @W, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = icmp slt i64 %indvars.iv.next121, %132
  br i1 %133, label %.lr.ph89, label %._crit_edge90, !llvm.loop !24

.loopexit:                                        ; preds = %._crit_edge90, %.critedge63, %114
  call void @llvm.lifetime.end.p0(i64 12100, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 12100, ptr nonnull %1) #6
  ret i32 0
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress norecurse 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint 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 #6 = { 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}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !10, !14}
!14 = !{!"llvm.loop.unswitch.partial.disable"}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !14}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !10, !14}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}


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