; LLVM IR from eyangch/competitive-programming :: Codeforces/7 (a)

; 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::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" }
%"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] }

@_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 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca [8 x %"class.std::__cxx11::basic_string"], align 16
  %3 = alloca [8 x [8 x i8]], align 16
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %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 i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 256, ptr %2) #6
  %19 = getelementptr inbounds [8 x %"class.std::__cxx11::basic_string"], ptr %2, i32 0, i32 0
  %20 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %19, i64 8
  br label %21

21:                                               ; preds = %21, %0
  %22 = phi ptr [ %19, %0 ], [ %23, %21 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  %23 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %22, i64 1
  %24 = icmp eq ptr %23, %20
  br i1 %24, label %25, label %21

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 64, ptr %3) #6
  %26 = getelementptr inbounds [8 x [8 x i8]], ptr %3, i64 0, i64 0
  %27 = getelementptr inbounds [8 x i8], ptr %26, i64 0, i64 0
  %28 = getelementptr inbounds [8 x [8 x i8]], ptr %3, i64 0, i64 7
  %29 = getelementptr inbounds [8 x i8], ptr %28, i64 0, i64 0
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #6
  store i8 0, ptr %4, align 1, !tbaa !5
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef %27, ptr noundef %30, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %31 unwind label %36

31:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %46, %31
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = icmp slt i32 %33, 8
  br i1 %34, label %40, label %35

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

36:                                               ; preds = %25
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %5, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  br label %196

40:                                               ; preds = %32
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [8 x %"class.std::__cxx11::basic_string"], ptr %2, i64 0, i64 %42
  %44 = invoke 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) %43)
          to label %45 unwind label %49

45:                                               ; preds = %40
  br label %46

46:                                               ; preds = %45
  %47 = load i32, ptr %7, align 4, !tbaa !9
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %7, align 4, !tbaa !9
  br label %32, !llvm.loop !11

49:                                               ; preds = %40
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %5, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %196

53:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %108, %53
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = icmp slt i32 %55, 8
  br i1 %56, label %58, label %57

57:                                               ; preds = %54
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %111

58:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  store i8 1, ptr %11, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %80, %58
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = icmp slt i32 %60, 8
  br i1 %61, label %63, label %62

62:                                               ; preds = %59
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %83

63:                                               ; preds = %59
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [8 x %"class.std::__cxx11::basic_string"], ptr %2, i64 0, i64 %65
  %67 = load i32, ptr %12, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %66, i64 noundef %68)
          to label %70 unwind label %75

70:                                               ; preds = %63
  %71 = load i8, ptr %69, align 1, !tbaa !13
  %72 = sext i8 %71 to i32
  %73 = icmp ne i32 %72, 66
  br i1 %73, label %74, label %79

74:                                               ; preds = %70
  store i8 0, ptr %11, align 1, !tbaa !5
  br label %79

75:                                               ; preds = %63
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %5, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %195

79:                                               ; preds = %74, %70
  br label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %12, align 4, !tbaa !9
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %12, align 4, !tbaa !9
  br label %59, !llvm.loop !14

83:                                               ; preds = %62
  %84 = load i8, ptr %11, align 1, !tbaa !5, !range !15, !noundef !16
  %85 = trunc i8 %84 to i1
  br i1 %85, label %86, label %102

86:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %98, %86
  %88 = load i32, ptr %13, align 4, !tbaa !9
  %89 = icmp slt i32 %88, 8
  br i1 %89, label %91, label %90

90:                                               ; preds = %87
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %101

91:                                               ; preds = %87
  %92 = load i32, ptr %9, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [8 x [8 x i8]], ptr %3, i64 0, i64 %93
  %95 = load i32, ptr %13, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [8 x i8], ptr %94, i64 0, i64 %96
  store i8 1, ptr %97, align 1, !tbaa !5
  br label %98

98:                                               ; preds = %91
  %99 = load i32, ptr %13, align 4, !tbaa !9
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %13, align 4, !tbaa !9
  br label %87, !llvm.loop !17

101:                                              ; preds = %90
  br label %102

102:                                              ; preds = %101, %83
  %103 = load i8, ptr %11, align 1, !tbaa !5, !range !15, !noundef !16
  %104 = trunc i8 %103 to i1
  %105 = zext i1 %104 to i32
  %106 = load i32, ptr %8, align 4, !tbaa !9
  %107 = add nsw i32 %106, %105
  store i32 %107, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  br label %108

108:                                              ; preds = %102
  %109 = load i32, ptr %9, align 4, !tbaa !9
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %9, align 4, !tbaa !9
  br label %54, !llvm.loop !18

111:                                              ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %174, %111
  %113 = load i32, ptr %14, align 4, !tbaa !9
  %114 = icmp slt i32 %113, 8
  br i1 %114, label %116, label %115

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

116:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  store i8 1, ptr %15, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %138, %116
  %118 = load i32, ptr %16, align 4, !tbaa !9
  %119 = icmp slt i32 %118, 8
  br i1 %119, label %121, label %120

120:                                              ; preds = %117
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %141

121:                                              ; preds = %117
  %122 = load i32, ptr %16, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [8 x %"class.std::__cxx11::basic_string"], ptr %2, i64 0, i64 %123
  %125 = load i32, ptr %14, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %124, i64 noundef %126)
          to label %128 unwind label %133

128:                                              ; preds = %121
  %129 = load i8, ptr %127, align 1, !tbaa !13
  %130 = sext i8 %129 to i32
  %131 = icmp ne i32 %130, 66
  br i1 %131, label %132, label %137

132:                                              ; preds = %128
  store i8 0, ptr %15, align 1, !tbaa !5
  br label %137

133:                                              ; preds = %121
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %5, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %195

137:                                              ; preds = %132, %128
  br label %138

138:                                              ; preds = %137
  %139 = load i32, ptr %16, align 4, !tbaa !9
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %16, align 4, !tbaa !9
  br label %117, !llvm.loop !19

141:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  %142 = load i8, ptr %15, align 1, !tbaa !5, !range !15, !noundef !16
  %143 = trunc i8 %142 to i1
  br i1 %143, label %144, label %166

144:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %145

145:                                              ; preds = %162, %144
  %146 = load i32, ptr %18, align 4, !tbaa !9
  %147 = icmp slt i32 %146, 8
  br i1 %147, label %149, label %148

148:                                              ; preds = %145
  store i32 20, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %165

149:                                              ; preds = %145
  %150 = load i32, ptr %18, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [8 x [8 x i8]], ptr %3, i64 0, i64 %151
  %153 = load i32, ptr %14, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [8 x i8], ptr %152, i64 0, i64 %154
  %156 = load i8, ptr %155, align 1, !tbaa !5, !range !15, !noundef !16
  %157 = trunc i8 %156 to i1
  %158 = zext i1 %157 to i32
  %159 = icmp eq i32 %158, 0
  br i1 %159, label %160, label %161

160:                                              ; preds = %149
  store i32 1, ptr %17, align 4, !tbaa !9
  br label %161

161:                                              ; preds = %160, %149
  br label %162

162:                                              ; preds = %161
  %163 = load i32, ptr %18, align 4, !tbaa !9
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %18, align 4, !tbaa !9
  br label %145, !llvm.loop !20

165:                                              ; preds = %148
  br label %166

166:                                              ; preds = %165, %141
  %167 = load i8, ptr %15, align 1, !tbaa !5, !range !15, !noundef !16
  %168 = trunc i8 %167 to i1
  %169 = zext i1 %168 to i32
  %170 = load i32, ptr %17, align 4, !tbaa !9
  %171 = mul nsw i32 %169, %170
  %172 = load i32, ptr %8, align 4, !tbaa !9
  %173 = add nsw i32 %172, %171
  store i32 %173, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  br label %174

174:                                              ; preds = %166
  %175 = load i32, ptr %14, align 4, !tbaa !9
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %14, align 4, !tbaa !9
  br label %112, !llvm.loop !21

177:                                              ; preds = %115
  %178 = load i32, ptr %8, align 4, !tbaa !9
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %178)
          to label %180 unwind label %191

180:                                              ; preds = %177
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %179, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %182 unwind label %191

182:                                              ; preds = %180
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #6
  %183 = getelementptr inbounds [8 x %"class.std::__cxx11::basic_string"], ptr %2, i32 0, i32 0
  %184 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %183, i64 8
  br label %185

185:                                              ; preds = %185, %182
  %186 = phi ptr [ %184, %182 ], [ %187, %185 ]
  %187 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %186, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %187) #6
  %188 = icmp eq ptr %187, %183
  br i1 %188, label %189, label %185

189:                                              ; preds = %185
  call void @llvm.lifetime.end.p0(i64 256, ptr %2) #6
  %190 = load i32, ptr %1, align 4
  ret i32 %190

191:                                              ; preds = %180, %177
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %5, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %6, align 4
  br label %195

195:                                              ; preds = %191, %133, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %196

196:                                              ; preds = %195, %49, %36
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #6
  %197 = getelementptr inbounds [8 x %"class.std::__cxx11::basic_string"], ptr %2, i32 0, i32 0
  %198 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %197, i64 8
  br label %199

199:                                              ; preds = %199, %196
  %200 = phi ptr [ %198, %196 ], [ %201, %199 ]
  %201 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %200, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %201) #6
  %202 = icmp eq ptr %201, %197
  br i1 %202, label %203, label %199

203:                                              ; preds = %199
  call void @llvm.lifetime.end.p0(i64 256, ptr %2) #6
  br label %204

204:                                              ; preds = %203
  %205 = load ptr, ptr %5, align 8
  %206 = load i32, ptr %6, align 4
  %207 = insertvalue { ptr, i32 } poison, ptr %205, 0
  %208 = insertvalue { ptr, i32 } %207, i32 %206, 1
  resume { ptr, i32 } %208
}

; 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

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

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

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 = { 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 = { 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 #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 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !12}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !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::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" }
%"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] }

@_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 personality ptr @__gxx_personality_v0 {
  %1 = alloca [8 x %"class.std::__cxx11::basic_string"], align 16
  %2 = alloca [8 x [8 x i8]], align 16
  %3 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %1) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %.ptr.1 = getelementptr inbounds i8, ptr %1, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.ptr.1) #6
  %.ptr.2 = getelementptr inbounds i8, ptr %1, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.ptr.2) #6
  %.ptr.3 = getelementptr inbounds i8, ptr %1, i64 96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.ptr.3) #6
  %.ptr.4 = getelementptr inbounds i8, ptr %1, i64 128
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.ptr.4) #6
  %.ptr.5 = getelementptr inbounds i8, ptr %1, i64 160
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.ptr.5) #6
  %.ptr.6 = getelementptr inbounds i8, ptr %1, i64 192
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.ptr.6) #6
  %.ptr.7 = getelementptr inbounds i8, ptr %1, i64 224
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.ptr.7) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #6
  %4 = getelementptr inbounds i8, ptr %2, i64 64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  store i8 0, ptr %3, align 1, !tbaa !5
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %5 unwind label %7

5:                                                ; preds = %0
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  %6 = invoke 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) %1)
          to label %9 unwind label %23

7:                                                ; preds = %0
  %8 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  br label %120

9:                                                ; preds = %5
  %10 = invoke 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) %.ptr.1)
          to label %11 unwind label %23

11:                                               ; preds = %9
  %12 = invoke 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) %.ptr.2)
          to label %13 unwind label %23

13:                                               ; preds = %11
  %14 = invoke 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) %.ptr.3)
          to label %15 unwind label %23

15:                                               ; preds = %13
  %16 = invoke 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) %.ptr.4)
          to label %17 unwind label %23

17:                                               ; preds = %15
  %18 = invoke 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) %.ptr.5)
          to label %19 unwind label %23

19:                                               ; preds = %17
  %20 = invoke 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) %.ptr.6)
          to label %21 unwind label %23

21:                                               ; preds = %19
  %22 = invoke 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) %.ptr.7)
          to label %.preheader61 unwind label %23

23:                                               ; preds = %21, %19, %17, %15, %13, %11, %9, %5
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %120

.preheader61:                                     ; preds = %21, %.loopexit60
  %indvar = phi i64 [ %indvar.next, %.loopexit60 ], [ 0, %21 ]
  %.04367 = phi i32 [ %50, %.loopexit60 ], [ 0, %21 ]
  %25 = getelementptr inbounds [8 x %"class.std::__cxx11::basic_string"], ptr %1, i64 0, i64 %indvar
  %26 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %25, i64 noundef 0)
  %27 = load i8, ptr %26, align 1, !tbaa !9
  %.not53 = icmp eq i8 %27, 66
  %28 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %25, i64 noundef 1)
  %29 = load i8, ptr %28, align 1, !tbaa !9
  %.not53.1 = icmp eq i8 %29, 66
  %30 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %25, i64 noundef 2)
  %31 = load i8, ptr %30, align 1, !tbaa !9
  %.not53.2 = icmp eq i8 %31, 66
  %32 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %25, i64 noundef 3)
  %33 = load i8, ptr %32, align 1, !tbaa !9
  %.not53.3 = icmp eq i8 %33, 66
  %34 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %25, i64 noundef 4)
  %35 = load i8, ptr %34, align 1, !tbaa !9
  %.not53.4 = icmp eq i8 %35, 66
  %36 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %25, i64 noundef 5)
  %37 = load i8, ptr %36, align 1, !tbaa !9
  %.not53.5 = icmp eq i8 %37, 66
  %38 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %25, i64 noundef 6)
  %39 = load i8, ptr %38, align 1, !tbaa !9
  %.not53.6 = icmp eq i8 %39, 66
  %40 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %25, i64 noundef 7)
  %41 = load i8, ptr %40, align 1, !tbaa !9
  %.not53.7 = icmp eq i8 %41, 66
  %42 = select i1 %.not53.7, i1 %.not53.6, i1 false
  %43 = select i1 %42, i1 %.not53.5, i1 false
  %44 = select i1 %43, i1 %.not53.4, i1 false
  %45 = select i1 %44, i1 %.not53.3, i1 false
  %46 = select i1 %45, i1 %.not53.2, i1 false
  %47 = select i1 %46, i1 %.not53.1, i1 false
  %narrow = select i1 %47, i1 %.not53, i1 false
  br i1 %narrow, label %.preheader59, label %.loopexit60

.preheader59:                                     ; preds = %.preheader61
  %48 = shl nuw nsw i64 %indvar, 3
  %scevgep = getelementptr i8, ptr %2, i64 %48
  store i64 72340172838076673, ptr %scevgep, align 8
  br label %.loopexit60

.loopexit60:                                      ; preds = %.preheader59, %.preheader61
  %49 = zext i1 %narrow to i32
  %50 = add nuw nsw i32 %.04367, %49
  %indvar.next = add nuw nsw i64 %indvar, 1
  %exitcond.not = icmp eq i64 %indvar.next, 8
  br i1 %exitcond.not, label %.preheader57, label %.preheader61, !llvm.loop !10

.preheader57:                                     ; preds = %.loopexit60, %.loopexit
  %indvars.iv = phi i64 [ %indvars.iv.next, %.loopexit ], [ 0, %.loopexit60 ]
  %.14473 = phi i32 [ %107, %.loopexit ], [ %50, %.loopexit60 ]
  %51 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv)
  %52 = load i8, ptr %51, align 1, !tbaa !9
  %.not = icmp eq i8 %52, 66
  %53 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %.ptr.1, i64 noundef %indvars.iv)
  %54 = load i8, ptr %53, align 1, !tbaa !9
  %.not.1 = icmp eq i8 %54, 66
  %55 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %.ptr.2, i64 noundef %indvars.iv)
  %56 = load i8, ptr %55, align 1, !tbaa !9
  %.not.2 = icmp eq i8 %56, 66
  %57 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %.ptr.3, i64 noundef %indvars.iv)
  %58 = load i8, ptr %57, align 1, !tbaa !9
  %.not.3 = icmp eq i8 %58, 66
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %.ptr.4, i64 noundef %indvars.iv)
  %60 = load i8, ptr %59, align 1, !tbaa !9
  %.not.4 = icmp eq i8 %60, 66
  %61 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %.ptr.5, i64 noundef %indvars.iv)
  %62 = load i8, ptr %61, align 1, !tbaa !9
  %.not.5 = icmp eq i8 %62, 66
  %63 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %.ptr.6, i64 noundef %indvars.iv)
  %64 = load i8, ptr %63, align 1, !tbaa !9
  %.not.6 = icmp eq i8 %64, 66
  %65 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %.ptr.7, i64 noundef %indvars.iv)
  %66 = load i8, ptr %65, align 1, !tbaa !9
  %.not.7 = icmp eq i8 %66, 66
  %67 = select i1 %.not.7, i1 %.not.6, i1 false
  %68 = select i1 %67, i1 %.not.5, i1 false
  %69 = select i1 %68, i1 %.not.4, i1 false
  %70 = select i1 %69, i1 %.not.3, i1 false
  %71 = select i1 %70, i1 %.not.2, i1 false
  %72 = select i1 %71, i1 %.not.1, i1 false
  %narrow93 = select i1 %72, i1 %.not, i1 false
  br i1 %narrow93, label %.preheader, label %.loopexit

73:                                               ; preds = %.loopexit
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %107)
          to label %108 unwind label %118

.preheader:                                       ; preds = %.preheader57
  %75 = getelementptr inbounds [8 x [8 x i8]], ptr %2, i64 0, i64 0, i64 %indvars.iv
  %76 = load i8, ptr %75, align 1, !tbaa !5, !range !12, !noundef !13
  %77 = xor i8 %76, 1
  %78 = getelementptr inbounds [8 x [8 x i8]], ptr %2, i64 0, i64 1, i64 %indvars.iv
  %79 = load i8, ptr %78, align 1, !tbaa !5, !range !12, !noundef !13
  %80 = icmp eq i8 %79, 0
  %81 = getelementptr inbounds [8 x [8 x i8]], ptr %2, i64 0, i64 2, i64 %indvars.iv
  %82 = load i8, ptr %81, align 1, !tbaa !5, !range !12, !noundef !13
  %83 = icmp eq i8 %82, 0
  %84 = or i1 %83, %80
  %85 = zext nneg i8 %77 to i32
  %86 = getelementptr inbounds [8 x [8 x i8]], ptr %2, i64 0, i64 3, i64 %indvars.iv
  %87 = load i8, ptr %86, align 1, !tbaa !5, !range !12, !noundef !13
  %88 = icmp eq i8 %87, 0
  %89 = or i1 %88, %84
  %90 = getelementptr inbounds [8 x [8 x i8]], ptr %2, i64 0, i64 4, i64 %indvars.iv
  %91 = load i8, ptr %90, align 1, !tbaa !5, !range !12, !noundef !13
  %92 = icmp eq i8 %91, 0
  %93 = or i1 %92, %89
  %94 = getelementptr inbounds [8 x [8 x i8]], ptr %2, i64 0, i64 5, i64 %indvars.iv
  %95 = load i8, ptr %94, align 1, !tbaa !5, !range !12, !noundef !13
  %96 = icmp eq i8 %95, 0
  %97 = or i1 %96, %93
  %98 = getelementptr inbounds [8 x [8 x i8]], ptr %2, i64 0, i64 6, i64 %indvars.iv
  %99 = load i8, ptr %98, align 1, !tbaa !5, !range !12, !noundef !13
  %100 = icmp eq i8 %99, 0
  %101 = or i1 %100, %97
  %102 = getelementptr inbounds [8 x [8 x i8]], ptr %2, i64 0, i64 7, i64 %indvars.iv
  %103 = load i8, ptr %102, align 1, !tbaa !5, !range !12, !noundef !13
  %104 = icmp eq i8 %103, 0
  %105 = or i1 %104, %101
  %spec.select56.7 = select i1 %105, i32 1, i32 %85
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader, %.preheader57
  %106 = phi i32 [ 0, %.preheader57 ], [ %spec.select56.7, %.preheader ]
  %107 = add nsw i32 %106, %.14473
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond83.not = icmp eq i64 %indvars.iv.next, 8
  br i1 %exitcond83.not, label %73, label %.preheader57, !llvm.loop !14

108:                                              ; preds = %73
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %110 unwind label %118

110:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #6
  %111 = getelementptr inbounds i8, ptr %1, i64 224
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %111) #6
  %112 = getelementptr inbounds i8, ptr %1, i64 192
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %112) #6
  %113 = getelementptr inbounds i8, ptr %1, i64 160
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %113) #6
  %114 = getelementptr inbounds i8, ptr %1, i64 128
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %114) #6
  %115 = getelementptr inbounds i8, ptr %1, i64 96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %115) #6
  %116 = getelementptr inbounds i8, ptr %1, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %116) #6
  %117 = getelementptr inbounds i8, ptr %1, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %117) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %1) #6
  ret i32 0

118:                                              ; preds = %108, %73
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %120

120:                                              ; preds = %118, %23, %7
  %.pn = phi { ptr, i32 } [ %24, %23 ], [ %119, %118 ], [ %8, %7 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #6
  %121 = getelementptr inbounds i8, ptr %1, i64 224
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %121) #6
  %122 = getelementptr inbounds i8, ptr %1, i64 192
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %122) #6
  %123 = getelementptr inbounds i8, ptr %1, i64 160
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %123) #6
  %124 = getelementptr inbounds i8, ptr %1, i64 128
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %124) #6
  %125 = getelementptr inbounds i8, ptr %1, i64 96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %125) #6
  %126 = getelementptr inbounds i8, ptr %1, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %126) #6
  %127 = getelementptr inbounds i8, ptr %1, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %127) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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: 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 #2 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

; 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 #5 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)) #3

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

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 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 = { 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 #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 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = distinct !{!14, !11}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass