; LLVM IR from eyangch/competitive-programming :: CALICO/2022_fall/9 (9)

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

@T = external dso_local global i64, align 8
@H = external dso_local global i64, align 8
@W = external dso_local global i64, align 8
@D = external dso_local global i64, align 8
@_Z1SB5cxx11 = external dso_local global [3050 x %"class.std::__cxx11::basic_string"], align 16
@_Z2OSB5cxx11 = external dso_local global [3050 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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %12 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %13 = getelementptr i8, ptr %12, i64 -24
  %14 = load i64, ptr %13, align 8
  %15 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %14
  %16 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %15, ptr noundef null)
  %17 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  br label %19

19:                                               ; preds = %204, %0
  %20 = load i64, ptr @T, align 8, !tbaa !8
  %21 = add nsw i64 %20, -1
  store i64 %21, ptr @T, align 8, !tbaa !8
  %22 = icmp ne i64 %20, 0
  br i1 %22, label %23, label %205

23:                                               ; preds = %19
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @H)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) @W)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) @D)
  %27 = call noundef i64 @_ZNSt14numeric_limitsIlE3maxEv() #6
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi6ignoreEli(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, i64 noundef %27, i32 noundef 10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %29

29:                                               ; preds = %40, %23
  %30 = load i64, ptr %2, align 8, !tbaa !8
  %31 = load i64, ptr @H, align 8, !tbaa !8
  %32 = load i64, ptr @D, align 8, !tbaa !8
  %33 = add nsw i64 %31, %32
  %34 = add nsw i64 %33, 1
  %35 = icmp slt i64 %30, %34
  br i1 %35, label %37, label %36

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

37:                                               ; preds = %29
  %38 = load i64, ptr %2, align 8, !tbaa !8
  %39 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %38
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32) %39) #6
  br label %40

40:                                               ; preds = %37
  %41 = load i64, ptr %2, align 8, !tbaa !8
  %42 = add nsw i64 %41, 1
  store i64 %42, ptr %2, align 8, !tbaa !8
  br label %29, !llvm.loop !11

43:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store i64 0, ptr %3, align 8, !tbaa !8
  br label %44

44:                                               ; preds = %53, %43
  %45 = load i64, ptr %3, align 8, !tbaa !8
  %46 = load i64, ptr @H, align 8, !tbaa !8
  %47 = icmp slt i64 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %56

49:                                               ; preds = %44
  %50 = load i64, ptr %3, align 8, !tbaa !8
  %51 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %50
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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) %51)
  br label %53

53:                                               ; preds = %49
  %54 = load i64, ptr %3, align 8, !tbaa !8
  %55 = add nsw i64 %54, 1
  store i64 %55, ptr %3, align 8, !tbaa !8
  br label %44, !llvm.loop !13

56:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 0, ptr %4, align 8, !tbaa !8
  br label %57

57:                                               ; preds = %77, %56
  %58 = load i64, ptr %4, align 8, !tbaa !8
  %59 = load i64, ptr @H, align 8, !tbaa !8
  %60 = load i64, ptr @D, align 8, !tbaa !8
  %61 = add nsw i64 %59, %60
  %62 = add nsw i64 %61, 1
  %63 = icmp slt i64 %58, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %80

65:                                               ; preds = %57
  %66 = load i64, ptr %4, align 8, !tbaa !8
  %67 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %66
  %68 = load i64, ptr @W, align 8, !tbaa !8
  %69 = load i64, ptr @D, align 8, !tbaa !8
  %70 = add nsw i64 %68, %69
  %71 = add nsw i64 %70, 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc(ptr noundef nonnull align 8 dereferenceable(32) %67, i64 noundef %71, i8 noundef signext 32)
  %72 = load i64, ptr %4, align 8, !tbaa !8
  %73 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %72
  %74 = load i64, ptr %4, align 8, !tbaa !8
  %75 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z2OSB5cxx11, i64 0, i64 %74
  %76 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %75, ptr noundef nonnull align 8 dereferenceable(32) %73)
  br label %77

77:                                               ; preds = %65
  %78 = load i64, ptr %4, align 8, !tbaa !8
  %79 = add nsw i64 %78, 1
  store i64 %79, ptr %4, align 8, !tbaa !8
  br label %57, !llvm.loop !14

80:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %81 = load i64, ptr @H, align 8, !tbaa !8
  %82 = sub nsw i64 %81, 1
  store i64 %82, ptr %5, align 8, !tbaa !8
  br label %83

83:                                               ; preds = %140, %80
  %84 = load i64, ptr %5, align 8, !tbaa !8
  %85 = icmp sge i64 %84, 0
  br i1 %85, label %87, label %86

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

87:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %88 = load i64, ptr @W, align 8, !tbaa !8
  %89 = sub nsw i64 %88, 1
  store i64 %89, ptr %7, align 8, !tbaa !8
  br label %90

90:                                               ; preds = %136, %87
  %91 = load i64, ptr %7, align 8, !tbaa !8
  %92 = icmp sge i64 %91, 0
  br i1 %92, label %94, label %93

93:                                               ; preds = %90
  store i32 16, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %139

94:                                               ; preds = %90
  %95 = load i64, ptr %5, align 8, !tbaa !8
  %96 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %95
  %97 = load i64, ptr %7, align 8, !tbaa !8
  %98 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %96, i64 noundef %97)
  %99 = load i8, ptr %98, align 1, !tbaa !15
  %100 = sext i8 %99 to i32
  %101 = icmp eq i32 %100, 43
  br i1 %101, label %102, label %135

102:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 1, ptr %8, align 8, !tbaa !8
  br label %103

103:                                              ; preds = %130, %102
  %104 = load i64, ptr %8, align 8, !tbaa !8
  %105 = load i64, ptr @D, align 8, !tbaa !8
  %106 = icmp sle i64 %104, %105
  br i1 %106, label %108, label %107

107:                                              ; preds = %103
  store i32 19, ptr %6, align 4
  br label %133

108:                                              ; preds = %103
  %109 = load i64, ptr %5, align 8, !tbaa !8
  %110 = load i64, ptr %8, align 8, !tbaa !8
  %111 = add nsw i64 %109, %110
  %112 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %111
  %113 = load i64, ptr %7, align 8, !tbaa !8
  %114 = load i64, ptr %8, align 8, !tbaa !8
  %115 = add nsw i64 %113, %114
  %116 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %112, i64 noundef %115)
  %117 = load i8, ptr %116, align 1, !tbaa !15
  %118 = sext i8 %117 to i32
  %119 = icmp eq i32 %118, 92
  br i1 %119, label %120, label %121

120:                                              ; preds = %108
  store i32 19, ptr %6, align 4
  br label %133

121:                                              ; preds = %108
  %122 = load i64, ptr %5, align 8, !tbaa !8
  %123 = load i64, ptr %8, align 8, !tbaa !8
  %124 = add nsw i64 %122, %123
  %125 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %124
  %126 = load i64, ptr %7, align 8, !tbaa !8
  %127 = load i64, ptr %8, align 8, !tbaa !8
  %128 = add nsw i64 %126, %127
  %129 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %125, i64 noundef %128)
  store i8 92, ptr %129, align 1, !tbaa !15
  br label %130

130:                                              ; preds = %121
  %131 = load i64, ptr %8, align 8, !tbaa !8
  %132 = add nsw i64 %131, 1
  store i64 %132, ptr %8, align 8, !tbaa !8
  br label %103, !llvm.loop !16

133:                                              ; preds = %120, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %134

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134, %94
  br label %136

136:                                              ; preds = %135
  %137 = load i64, ptr %7, align 8, !tbaa !8
  %138 = add nsw i64 %137, -1
  store i64 %138, ptr %7, align 8, !tbaa !8
  br label %90, !llvm.loop !17

139:                                              ; preds = %93
  br label %140

140:                                              ; preds = %139
  %141 = load i64, ptr %5, align 8, !tbaa !8
  %142 = add nsw i64 %141, -1
  store i64 %142, ptr %5, align 8, !tbaa !8
  br label %83, !llvm.loop !18

143:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !8
  br label %144

144:                                              ; preds = %184, %143
  %145 = load i64, ptr %9, align 8, !tbaa !8
  %146 = load i64, ptr @H, align 8, !tbaa !8
  %147 = icmp slt i64 %145, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %144
  store i32 22, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %187

149:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !8
  br label %150

150:                                              ; preds = %180, %149
  %151 = load i64, ptr %10, align 8, !tbaa !8
  %152 = load i64, ptr @W, align 8, !tbaa !8
  %153 = icmp slt i64 %151, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %150
  store i32 25, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %183

155:                                              ; preds = %150
  %156 = load i64, ptr %9, align 8, !tbaa !8
  %157 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z2OSB5cxx11, i64 0, i64 %156
  %158 = load i64, ptr %10, align 8, !tbaa !8
  %159 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %157, i64 noundef %158)
  %160 = load i8, ptr %159, align 1, !tbaa !15
  %161 = sext i8 %160 to i32
  %162 = icmp ne i32 %161, 32
  br i1 %162, label %163, label %179

163:                                              ; preds = %155
  %164 = load i64, ptr %9, align 8, !tbaa !8
  %165 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z2OSB5cxx11, i64 0, i64 %164
  %166 = load i64, ptr %10, align 8, !tbaa !8
  %167 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %165, i64 noundef %166)
  %168 = load i8, ptr %167, align 1, !tbaa !15
  %169 = load i64, ptr %9, align 8, !tbaa !8
  %170 = load i64, ptr @D, align 8, !tbaa !8
  %171 = add nsw i64 %169, %170
  %172 = add nsw i64 %171, 1
  %173 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %172
  %174 = load i64, ptr %10, align 8, !tbaa !8
  %175 = load i64, ptr @D, align 8, !tbaa !8
  %176 = add nsw i64 %174, %175
  %177 = add nsw i64 %176, 1
  %178 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %173, i64 noundef %177)
  store i8 %168, ptr %178, align 1, !tbaa !15
  br label %179

179:                                              ; preds = %163, %155
  br label %180

180:                                              ; preds = %179
  %181 = load i64, ptr %10, align 8, !tbaa !8
  %182 = add nsw i64 %181, 1
  store i64 %182, ptr %10, align 8, !tbaa !8
  br label %150, !llvm.loop !19

183:                                              ; preds = %154
  br label %184

184:                                              ; preds = %183
  %185 = load i64, ptr %9, align 8, !tbaa !8
  %186 = add nsw i64 %185, 1
  store i64 %186, ptr %9, align 8, !tbaa !8
  br label %144, !llvm.loop !20

187:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !8
  br label %188

188:                                              ; preds = %201, %187
  %189 = load i64, ptr %11, align 8, !tbaa !8
  %190 = load i64, ptr @H, align 8, !tbaa !8
  %191 = load i64, ptr @D, align 8, !tbaa !8
  %192 = add nsw i64 %190, %191
  %193 = add nsw i64 %192, 1
  %194 = icmp slt i64 %189, %193
  br i1 %194, label %196, label %195

195:                                              ; preds = %188
  store i32 28, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %204

196:                                              ; preds = %188
  %197 = load i64, ptr %11, align 8, !tbaa !8
  %198 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %197
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %198)
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %199, i8 noundef signext 10)
  br label %201

201:                                              ; preds = %196
  %202 = load i64, ptr %11, align 8, !tbaa !8
  %203 = add nsw i64 %202, 1
  store i64 %203, ptr %11, align 8, !tbaa !8
  br label %188, !llvm.loop !21

204:                                              ; preds = %195
  br label %19, !llvm.loop !22

205:                                              ; preds = %19
  %206 = load i32, ptr %1, align 4
  ret i32 %206
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi6ignoreEli(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNSt14numeric_limitsIlE3maxEv() #1 align 2

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

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

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

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

declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i8 noundef signext) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #3 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) #1 align 2

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

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

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


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

@T = external dso_local global i64, align 8
@H = external dso_local global i64, align 8
@W = external dso_local global i64, align 8
@D = external dso_local global i64, align 8
@_Z1SB5cxx11 = external dso_local global [3050 x %"class.std::__cxx11::basic_string"], align 16
@_Z2OSB5cxx11 = external dso_local global [3050 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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %2 = getelementptr i8, ptr %1, i64 -24
  %3 = load i64, ptr %2, align 8
  %4 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %3
  %5 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %4, ptr noundef null)
  %6 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %7 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  %8 = load i64, ptr @T, align 8, !tbaa !8
  %9 = add nsw i64 %8, -1
  store i64 %9, ptr @T, align 8, !tbaa !8
  %.not85 = icmp eq i64 %8, 0
  br i1 %.not85, label %._crit_edge88, label %.lr.ph87

.loopexit57:                                      ; preds = %.lr.ph84, %.preheader56
  %10 = load i64, ptr @T, align 8, !tbaa !8
  %11 = add nsw i64 %10, -1
  store i64 %11, ptr @T, align 8, !tbaa !8
  %.not = icmp eq i64 %10, 0
  br i1 %.not, label %._crit_edge88, label %.lr.ph87, !llvm.loop !11

.lr.ph87:                                         ; preds = %0, %.loopexit57
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @H)
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) @W)
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) @D)
  %15 = tail call noundef i64 @_ZNSt14numeric_limitsIlE3maxEv() #5
  %16 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi6ignoreEli(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, i64 noundef %15, i32 noundef 10)
  %17 = load i64, ptr @H, align 8, !tbaa !8
  %18 = load i64, ptr @D, align 8, !tbaa !8
  %19 = add nsw i64 %18, %17
  %.not4962 = icmp slt i64 %19, 0
  br i1 %.not4962, label %.preheader61, label %.lr.ph

.preheader61:                                     ; preds = %.lr.ph, %.lr.ph87
  %20 = phi i64 [ %18, %.lr.ph87 ], [ %26, %.lr.ph ]
  %21 = phi i64 [ %17, %.lr.ph87 ], [ %25, %.lr.ph ]
  %22 = icmp sgt i64 %21, 0
  br i1 %22, label %.lr.ph65, label %.preheader60

.lr.ph:                                           ; preds = %.lr.ph87, %.lr.ph
  %.04863 = phi i64 [ %24, %.lr.ph ], [ 0, %.lr.ph87 ]
  %23 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %.04863
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  %24 = add nuw nsw i64 %.04863, 1
  %25 = load i64, ptr @H, align 8, !tbaa !8
  %26 = load i64, ptr @D, align 8, !tbaa !8
  %27 = add nsw i64 %26, %25
  %.not49.not = icmp slt i64 %.04863, %27
  br i1 %.not49.not, label %.lr.ph, label %.preheader61, !llvm.loop !13

.preheader60.loopexit:                            ; preds = %.lr.ph65
  %.pre = load i64, ptr @D, align 8, !tbaa !8
  br label %.preheader60

.preheader60:                                     ; preds = %.preheader60.loopexit, %.preheader61
  %28 = phi i64 [ %.pre, %.preheader60.loopexit ], [ %20, %.preheader61 ]
  %29 = phi i64 [ %34, %.preheader60.loopexit ], [ %21, %.preheader61 ]
  %30 = add nsw i64 %28, %29
  %.not5066 = icmp slt i64 %30, 0
  br i1 %.not5066, label %.preheader59, label %.lr.ph68

.lr.ph65:                                         ; preds = %.preheader61, %.lr.ph65
  %.04764 = phi i64 [ %33, %.lr.ph65 ], [ 0, %.preheader61 ]
  %31 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %.04764
  %32 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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) %31)
  %33 = add nuw nsw i64 %.04764, 1
  %34 = load i64, ptr @H, align 8, !tbaa !8
  %35 = icmp slt i64 %33, %34
  br i1 %35, label %.lr.ph65, label %.preheader60.loopexit, !llvm.loop !14

.preheader59:                                     ; preds = %.lr.ph68, %.preheader60
  %.lcssa = phi i64 [ %29, %.preheader60 ], [ %47, %.lr.ph68 ]
  %36 = icmp sgt i64 %.lcssa, 0
  %37 = load i64, ptr @W, align 8
  %38 = icmp sgt i64 %37, 0
  %or.cond107 = select i1 %36, i1 %38, i1 false
  br i1 %or.cond107, label %.lr.ph78.split, label %.preheader56

.lr.ph68:                                         ; preds = %.preheader60, %.lr.ph68
  %39 = phi i64 [ %48, %.lr.ph68 ], [ %28, %.preheader60 ]
  %.04667 = phi i64 [ %46, %.lr.ph68 ], [ 0, %.preheader60 ]
  %40 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %.04667
  %41 = load i64, ptr @W, align 8, !tbaa !8
  %42 = add i64 %39, 1
  %43 = add i64 %42, %41
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc(ptr noundef nonnull align 8 dereferenceable(32) %40, i64 noundef %43, i8 noundef signext 32)
  %44 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z2OSB5cxx11, i64 0, i64 %.04667
  %45 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull align 8 dereferenceable(32) %40)
  %46 = add nuw nsw i64 %.04667, 1
  %47 = load i64, ptr @H, align 8, !tbaa !8
  %48 = load i64, ptr @D, align 8, !tbaa !8
  %49 = add nsw i64 %48, %47
  %.not50.not = icmp slt i64 %.04667, %49
  br i1 %.not50.not, label %.lr.ph68, label %.preheader59, !llvm.loop !15

.loopexit55:                                      ; preds = %.loopexit, %.lr.ph78.split
  %50 = icmp sgt i64 %.04577.in, 1
  br i1 %50, label %.lr.ph78.splitthread-pre-split, label %.preheader58, !llvm.loop !16

.preheader58:                                     ; preds = %.loopexit55
  %.pre92 = load i64, ptr @H, align 8, !tbaa !8
  %51 = icmp sgt i64 %.pre92, 0
  %.pr = load i64, ptr @W, align 8
  %52 = icmp sgt i64 %.pr, 0
  %or.cond108 = select i1 %51, i1 %52, i1 false
  br i1 %or.cond108, label %.preheader54, label %.preheader56

.lr.ph78.splitthread-pre-split:                   ; preds = %.loopexit55
  %.pr99 = load i64, ptr @W, align 8, !tbaa !8
  br label %.lr.ph78.split

.lr.ph78.split:                                   ; preds = %.preheader59, %.lr.ph78.splitthread-pre-split
  %53 = phi i64 [ %.pr99, %.lr.ph78.splitthread-pre-split ], [ %37, %.preheader59 ]
  %.04577.in = phi i64 [ %.04577, %.lr.ph78.splitthread-pre-split ], [ %.lcssa, %.preheader59 ]
  %.04577 = add nsw i64 %.04577.in, -1
  %54 = icmp sgt i64 %53, 0
  br i1 %54, label %.lr.ph75, label %.loopexit55

.lr.ph75:                                         ; preds = %.lr.ph78.split
  %55 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %.04577
  br label %56

56:                                               ; preds = %.lr.ph75, %.loopexit
  %.04474.in = phi i64 [ %53, %.lr.ph75 ], [ %.04474, %.loopexit ]
  %.04474 = add nsw i64 %.04474.in, -1
  %57 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %55, i64 noundef %.04474)
  %58 = load i8, ptr %57, align 1, !tbaa !18
  %59 = icmp ne i8 %58, 43
  %60 = load i64, ptr @D, align 8
  %.not5369 = icmp slt i64 %60, 1
  %or.cond = select i1 %59, i1 true, i1 %.not5369
  br i1 %or.cond, label %.loopexit, label %.lr.ph71

.lr.ph71:                                         ; preds = %56, %67
  %.04370 = phi i64 [ %69, %67 ], [ 1, %56 ]
  %61 = add nsw i64 %.04370, %.04577
  %62 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %61
  %63 = add nsw i64 %.04370, %.04474
  %64 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %62, i64 noundef %63)
  %65 = load i8, ptr %64, align 1, !tbaa !18
  %66 = icmp eq i8 %65, 92
  br i1 %66, label %.loopexit, label %67

67:                                               ; preds = %.lr.ph71
  %68 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %62, i64 noundef %63)
  store i8 92, ptr %68, align 1, !tbaa !18
  %69 = add nuw nsw i64 %.04370, 1
  %70 = load i64, ptr @D, align 8, !tbaa !8
  %.not53.not = icmp slt i64 %.04370, %70
  br i1 %.not53.not, label %.lr.ph71, label %.loopexit, !llvm.loop !19

.loopexit:                                        ; preds = %.lr.ph71, %67, %56
  %71 = icmp sgt i64 %.04474.in, 1
  br i1 %71, label %56, label %.loopexit55, !llvm.loop !20

.preheader56:                                     ; preds = %._crit_edge, %.preheader59, %.preheader58
  %72 = phi i64 [ %.pre92, %.preheader58 ], [ %.lcssa, %.preheader59 ], [ %80, %._crit_edge ]
  %73 = load i64, ptr @D, align 8, !tbaa !8
  %74 = add nsw i64 %73, %72
  %.not5182 = icmp slt i64 %74, 0
  br i1 %.not5182, label %.loopexit57, label %.lr.ph84

.preheader54:                                     ; preds = %.preheader58, %._crit_edge
  %75 = phi i64 [ %80, %._crit_edge ], [ %.pre92, %.preheader58 ]
  %76 = phi i64 [ %81, %._crit_edge ], [ %.pr, %.preheader58 ]
  %.04281 = phi i64 [ %.pre-phi97, %._crit_edge ], [ 0, %.preheader58 ]
  %77 = icmp sgt i64 %76, 0
  br i1 %77, label %.lr.ph80, label %.preheader54.._crit_edge_crit_edge

.preheader54.._crit_edge_crit_edge:               ; preds = %.preheader54
  %.pre96 = add nuw nsw i64 %.04281, 1
  br label %._crit_edge

.lr.ph80:                                         ; preds = %.preheader54
  %78 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z2OSB5cxx11, i64 0, i64 %.04281
  %79 = add nuw nsw i64 %.04281, 1
  br label %83

._crit_edge.loopexit:                             ; preds = %95
  %.pre93 = load i64, ptr @H, align 8, !tbaa !8
  br label %._crit_edge

._crit_edge:                                      ; preds = %.preheader54.._crit_edge_crit_edge, %._crit_edge.loopexit
  %.pre-phi97 = phi i64 [ %.pre96, %.preheader54.._crit_edge_crit_edge ], [ %79, %._crit_edge.loopexit ]
  %80 = phi i64 [ %75, %.preheader54.._crit_edge_crit_edge ], [ %.pre93, %._crit_edge.loopexit ]
  %81 = phi i64 [ %76, %.preheader54.._crit_edge_crit_edge ], [ %96, %._crit_edge.loopexit ]
  %82 = icmp slt i64 %.pre-phi97, %80
  br i1 %82, label %.preheader54, label %.preheader56, !llvm.loop !21

83:                                               ; preds = %.lr.ph80, %95
  %.04179 = phi i64 [ 0, %.lr.ph80 ], [ %.pre-phi, %95 ]
  %84 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %78, i64 noundef %.04179)
  %85 = load i8, ptr %84, align 1, !tbaa !18
  %.not52 = icmp eq i8 %85, 32
  br i1 %.not52, label %._crit_edge94, label %86

._crit_edge94:                                    ; preds = %83
  %.pre95 = add nuw nsw i64 %.04179, 1
  br label %95

86:                                               ; preds = %83
  %87 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %78, i64 noundef %.04179)
  %88 = load i8, ptr %87, align 1, !tbaa !18
  %89 = load i64, ptr @D, align 8, !tbaa !8
  %90 = add i64 %79, %89
  %91 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %90
  %92 = add nuw nsw i64 %.04179, 1
  %93 = add i64 %92, %89
  %94 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %91, i64 noundef %93)
  store i8 %88, ptr %94, align 1, !tbaa !18
  br label %95

95:                                               ; preds = %._crit_edge94, %86
  %.pre-phi = phi i64 [ %.pre95, %._crit_edge94 ], [ %92, %86 ]
  %96 = load i64, ptr @W, align 8, !tbaa !8
  %97 = icmp slt i64 %.pre-phi, %96
  br i1 %97, label %83, label %._crit_edge.loopexit, !llvm.loop !22

.lr.ph84:                                         ; preds = %.preheader56, %.lr.ph84
  %.083 = phi i64 [ %101, %.lr.ph84 ], [ 0, %.preheader56 ]
  %98 = getelementptr inbounds [3050 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %.083
  %99 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %98)
  %100 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %99, i8 noundef signext 10)
  %101 = add nuw nsw i64 %.083, 1
  %102 = load i64, ptr @H, align 8, !tbaa !8
  %103 = load i64, ptr @D, align 8, !tbaa !8
  %104 = add nsw i64 %103, %102
  %.not51.not = icmp slt i64 %.083, %104
  br i1 %.not51.not, label %.lr.ph84, label %.loopexit57, !llvm.loop !23

._crit_edge88:                                    ; preds = %.loopexit57, %0
  ret i32 0
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi6ignoreEli(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNSt14numeric_limitsIlE3maxEv() local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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

declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i8 noundef signext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 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 #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #4

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

attributes #0 = { 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 #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 #5 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12, !17}
!17 = !{!"llvm.loop.unswitch.partial.disable"}
!18 = !{!10, !10, i64 0}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12, !17}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}


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