; LLVM IR from DionysiosB/CodeForces :: 0100-0199 (144C-AnagramSearch)

; 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::__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
@.str = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca [26 x i64], align 16
  %8 = alloca i32, align 4
  %9 = alloca [26 x i64], align 16
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 26, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %17 = invoke 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) %3)
          to label %18 unwind label %27

18:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %19 = invoke 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) %6)
          to label %20 unwind label %31

20:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 208, ptr %7) #6
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 208, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %47, %20
  %22 = load i32, ptr %8, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %25 = icmp ult i64 %23, %24
  br i1 %25, label %35, label %26

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

27:                                               ; preds = %0
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %4, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %5, align 4
  br label %212

31:                                               ; preds = %18
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %4, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %5, align 4
  br label %211

35:                                               ; preds = %21
  %36 = load i32, ptr %8, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %37)
          to label %39 unwind label %50

39:                                               ; preds = %35
  %40 = load i8, ptr %38, align 1, !tbaa !9
  %41 = sext i8 %40 to i32
  %42 = sub nsw i32 %41, 97
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [26 x i64], ptr %7, i64 0, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !10
  %46 = add nsw i64 %45, 1
  store i64 %46, ptr %44, align 8, !tbaa !10
  br label %47

47:                                               ; preds = %39
  %48 = load i32, ptr %8, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %8, align 4, !tbaa !5
  br label %21, !llvm.loop !12

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

54:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 208, ptr %9) #6
  call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 208, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %86, %54
  %56 = load i32, ptr %10, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %59 = icmp ult i64 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %89

61:                                               ; preds = %55
  %62 = load i32, ptr %10, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %63)
          to label %65 unwind label %70

65:                                               ; preds = %61
  %66 = load i8, ptr %64, align 1, !tbaa !9
  %67 = sext i8 %66 to i32
  %68 = icmp eq i32 %67, 63
  br i1 %68, label %69, label %74

69:                                               ; preds = %65
  br label %86

70:                                               ; preds = %74, %61
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %4, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %209

74:                                               ; preds = %65
  %75 = load i32, ptr %10, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %76)
          to label %78 unwind label %70

78:                                               ; preds = %74
  %79 = load i8, ptr %77, align 1, !tbaa !9
  %80 = sext i8 %79 to i32
  %81 = sub nsw i32 %80, 97
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [26 x i64], ptr %9, i64 0, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !10
  %85 = add nsw i64 %84, 1
  store i64 %85, ptr %83, align 8, !tbaa !10
  br label %86

86:                                               ; preds = %78, %69
  %87 = load i32, ptr %10, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %10, align 4, !tbaa !5
  br label %55, !llvm.loop !14

89:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  store i8 1, ptr %12, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %106, %89
  %91 = load i32, ptr %13, align 4, !tbaa !5
  %92 = icmp slt i32 %91, 26
  br i1 %92, label %94, label %93

93:                                               ; preds = %90
  store i32 8, ptr %14, align 4
  br label %109

94:                                               ; preds = %90
  %95 = load i32, ptr %13, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [26 x i64], ptr %9, i64 0, i64 %96
  %98 = load i64, ptr %97, align 8, !tbaa !10
  %99 = load i32, ptr %13, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [26 x i64], ptr %7, i64 0, i64 %100
  %102 = load i64, ptr %101, align 8, !tbaa !10
  %103 = icmp sgt i64 %98, %102
  br i1 %103, label %104, label %105

104:                                              ; preds = %94
  store i8 0, ptr %12, align 1, !tbaa !15
  store i32 8, ptr %14, align 4
  br label %109

105:                                              ; preds = %94
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %13, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %13, align 4, !tbaa !5
  br label %90, !llvm.loop !17

109:                                              ; preds = %104, %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %110

110:                                              ; preds = %109
  %111 = load i8, ptr %12, align 1, !tbaa !15, !range !18, !noundef !19
  %112 = trunc i8 %111 to i1
  br i1 %112, label %113, label %116

113:                                              ; preds = %110
  %114 = load i64, ptr %11, align 8, !tbaa !10
  %115 = add nsw i64 %114, 1
  store i64 %115, ptr %11, align 8, !tbaa !10
  br label %116

116:                                              ; preds = %113, %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 0, ptr %15, align 8, !tbaa !10
  br label %117

117:                                              ; preds = %196, %116
  %118 = load i64, ptr %15, align 8, !tbaa !10
  %119 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %120 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %121 = sub i64 %119, %120
  %122 = icmp ult i64 %118, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %117
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %199

124:                                              ; preds = %117
  %125 = load i64, ptr %15, align 8, !tbaa !10
  %126 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %125)
          to label %127 unwind label %142

127:                                              ; preds = %124
  %128 = load i8, ptr %126, align 1, !tbaa !9
  %129 = sext i8 %128 to i32
  %130 = icmp ne i32 %129, 63
  br i1 %130, label %131, label %146

131:                                              ; preds = %127
  %132 = load i64, ptr %15, align 8, !tbaa !10
  %133 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %132)
          to label %134 unwind label %142

134:                                              ; preds = %131
  %135 = load i8, ptr %133, align 1, !tbaa !9
  %136 = sext i8 %135 to i32
  %137 = sub nsw i32 %136, 97
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [26 x i64], ptr %9, i64 0, i64 %138
  %140 = load i64, ptr %139, align 8, !tbaa !10
  %141 = add nsw i64 %140, -1
  store i64 %141, ptr %139, align 8, !tbaa !10
  br label %146

142:                                              ; preds = %155, %146, %131, %124
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %4, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %208

146:                                              ; preds = %134, %127
  %147 = load i64, ptr %15, align 8, !tbaa !10
  %148 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %149 = add i64 %147, %148
  %150 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %149)
          to label %151 unwind label %142

151:                                              ; preds = %146
  %152 = load i8, ptr %150, align 1, !tbaa !9
  %153 = sext i8 %152 to i32
  %154 = icmp ne i32 %153, 63
  br i1 %154, label %155, label %168

155:                                              ; preds = %151
  %156 = load i64, ptr %15, align 8, !tbaa !10
  %157 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  %158 = add i64 %156, %157
  %159 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %158)
          to label %160 unwind label %142

160:                                              ; preds = %155
  %161 = load i8, ptr %159, align 1, !tbaa !9
  %162 = sext i8 %161 to i32
  %163 = sub nsw i32 %162, 97
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [26 x i64], ptr %9, i64 0, i64 %164
  %166 = load i64, ptr %165, align 8, !tbaa !10
  %167 = add nsw i64 %166, 1
  store i64 %167, ptr %165, align 8, !tbaa !10
  br label %168

168:                                              ; preds = %160, %151
  store i8 1, ptr %12, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %169

169:                                              ; preds = %185, %168
  %170 = load i32, ptr %16, align 4, !tbaa !5
  %171 = icmp slt i32 %170, 26
  br i1 %171, label %173, label %172

172:                                              ; preds = %169
  store i32 14, ptr %14, align 4
  br label %188

173:                                              ; preds = %169
  %174 = load i32, ptr %16, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [26 x i64], ptr %9, i64 0, i64 %175
  %177 = load i64, ptr %176, align 8, !tbaa !10
  %178 = load i32, ptr %16, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [26 x i64], ptr %7, i64 0, i64 %179
  %181 = load i64, ptr %180, align 8, !tbaa !10
  %182 = icmp sgt i64 %177, %181
  br i1 %182, label %183, label %184

183:                                              ; preds = %173
  store i8 0, ptr %12, align 1, !tbaa !15
  store i32 14, ptr %14, align 4
  br label %188

184:                                              ; preds = %173
  br label %185

185:                                              ; preds = %184
  %186 = load i32, ptr %16, align 4, !tbaa !5
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %16, align 4, !tbaa !5
  br label %169, !llvm.loop !20

188:                                              ; preds = %183, %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %189

189:                                              ; preds = %188
  %190 = load i8, ptr %12, align 1, !tbaa !15, !range !18, !noundef !19
  %191 = trunc i8 %190 to i1
  br i1 %191, label %192, label %195

192:                                              ; preds = %189
  %193 = load i64, ptr %11, align 8, !tbaa !10
  %194 = add nsw i64 %193, 1
  store i64 %194, ptr %11, align 8, !tbaa !10
  br label %195

195:                                              ; preds = %192, %189
  br label %196

196:                                              ; preds = %195
  %197 = load i64, ptr %15, align 8, !tbaa !10
  %198 = add nsw i64 %197, 1
  store i64 %198, ptr %15, align 8, !tbaa !10
  br label %117, !llvm.loop !21

199:                                              ; preds = %123
  %200 = load i64, ptr %11, align 8, !tbaa !10
  %201 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %200)
          to label %202 unwind label %204

202:                                              ; preds = %199
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 208, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 208, ptr %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %203 = load i32, ptr %1, align 4
  ret i32 %203

204:                                              ; preds = %199
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %4, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %5, align 4
  br label %208

208:                                              ; preds = %204, %142
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %209

209:                                              ; preds = %208, %70
  call void @llvm.lifetime.end.p0(i64 208, ptr %9) #6
  br label %210

210:                                              ; preds = %209, %50
  call void @llvm.lifetime.end.p0(i64 208, ptr %7) #6
  br label %211

211:                                              ; preds = %210, %31
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  br label %212

212:                                              ; preds = %211, %27
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %213

213:                                              ; preds = %212
  %214 = load ptr, ptr %4, align 8
  %215 = load i32, ptr %5, align 4
  %216 = insertvalue { ptr, i32 } poison, ptr %214, 0
  %217 = insertvalue { ptr, i32 } %216, i32 %215, 1
  resume { ptr, i32 } %217
}

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

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

declare i32 @printf(ptr noundef, ...) #5

; 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = distinct !{!17, !13}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::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::__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
@.str = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca [26 x i64], align 16
  %4 = alloca [26 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %5 = invoke 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) %1)
          to label %6 unwind label %11

6:                                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %7 = invoke 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) %2)
          to label %8 unwind label %13

8:                                                ; preds = %6
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %3) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(208) %3, i8 0, i64 208, i1 false)
  %9 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %.not54 = icmp eq i64 %9, 0
  br i1 %.not54, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %8
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %4) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(208) %4, i8 0, i64 208, i1 false)
  %10 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %.not55 = icmp eq i64 %10, 0
  br i1 %.not55, label %.preheader, label %.lr.ph46

11:                                               ; preds = %0
  %12 = landingpad { ptr, i32 }
          cleanup
  br label %380

13:                                               ; preds = %6
  %14 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  br label %380

.lr.ph:                                           ; preds = %8, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %8 ]
  %15 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv)
  %16 = load i8, ptr %15, align 1, !tbaa !5
  %17 = sext i8 %16 to i64
  %18 = add nsw i64 %17, -97
  %19 = getelementptr inbounds [26 x i64], ptr %3, i64 0, i64 %18
  %20 = load i64, ptr %19, align 8, !tbaa !8
  %21 = add nsw i64 %20, 1
  store i64 %21, ptr %19, align 8, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %22 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %23 = icmp ugt i64 %22, %indvars.iv.next
  br i1 %23, label %.lr.ph, label %._crit_edge, !llvm.loop !10

.preheader:                                       ; preds = %38, %._crit_edge
  %24 = load i64, ptr %4, align 16, !tbaa !8
  %25 = load i64, ptr %3, align 16, !tbaa !8
  %26 = icmp sgt i64 %24, %25
  br i1 %26, label %191, label %41

.lr.ph46:                                         ; preds = %._crit_edge, %38
  %indvars.iv58 = phi i64 [ %indvars.iv.next59, %38 ], [ 0, %._crit_edge ]
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv58)
  %28 = load i8, ptr %27, align 1, !tbaa !5
  %29 = icmp eq i8 %28, 63
  br i1 %29, label %38, label %30

30:                                               ; preds = %.lr.ph46
  %31 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv58)
  %32 = load i8, ptr %31, align 1, !tbaa !5
  %33 = sext i8 %32 to i64
  %34 = add nsw i64 %33, -97
  %35 = getelementptr inbounds [26 x i64], ptr %4, i64 0, i64 %34
  %36 = load i64, ptr %35, align 8, !tbaa !8
  %37 = add nsw i64 %36, 1
  store i64 %37, ptr %35, align 8, !tbaa !8
  br label %38

38:                                               ; preds = %.lr.ph46, %30
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %39 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %40 = icmp ugt i64 %39, %indvars.iv.next59
  br i1 %40, label %.lr.ph46, label %.preheader, !llvm.loop !12

41:                                               ; preds = %.preheader
  %42 = getelementptr inbounds i8, ptr %4, i64 8
  %43 = load i64, ptr %42, align 8, !tbaa !8
  %44 = getelementptr inbounds i8, ptr %3, i64 8
  %45 = load i64, ptr %44, align 8, !tbaa !8
  %46 = icmp sgt i64 %43, %45
  br i1 %46, label %191, label %47

47:                                               ; preds = %41
  %48 = getelementptr inbounds i8, ptr %4, i64 16
  %49 = load i64, ptr %48, align 16, !tbaa !8
  %50 = getelementptr inbounds i8, ptr %3, i64 16
  %51 = load i64, ptr %50, align 16, !tbaa !8
  %52 = icmp sgt i64 %49, %51
  br i1 %52, label %191, label %53

53:                                               ; preds = %47
  %54 = getelementptr inbounds i8, ptr %4, i64 24
  %55 = load i64, ptr %54, align 8, !tbaa !8
  %56 = getelementptr inbounds i8, ptr %3, i64 24
  %57 = load i64, ptr %56, align 8, !tbaa !8
  %58 = icmp sgt i64 %55, %57
  br i1 %58, label %191, label %59

59:                                               ; preds = %53
  %60 = getelementptr inbounds i8, ptr %4, i64 32
  %61 = load i64, ptr %60, align 16, !tbaa !8
  %62 = getelementptr inbounds i8, ptr %3, i64 32
  %63 = load i64, ptr %62, align 16, !tbaa !8
  %64 = icmp sgt i64 %61, %63
  br i1 %64, label %191, label %65

65:                                               ; preds = %59
  %66 = getelementptr inbounds i8, ptr %4, i64 40
  %67 = load i64, ptr %66, align 8, !tbaa !8
  %68 = getelementptr inbounds i8, ptr %3, i64 40
  %69 = load i64, ptr %68, align 8, !tbaa !8
  %70 = icmp sgt i64 %67, %69
  br i1 %70, label %191, label %71

71:                                               ; preds = %65
  %72 = getelementptr inbounds i8, ptr %4, i64 48
  %73 = load i64, ptr %72, align 16, !tbaa !8
  %74 = getelementptr inbounds i8, ptr %3, i64 48
  %75 = load i64, ptr %74, align 16, !tbaa !8
  %76 = icmp sgt i64 %73, %75
  br i1 %76, label %191, label %77

77:                                               ; preds = %71
  %78 = getelementptr inbounds i8, ptr %4, i64 56
  %79 = load i64, ptr %78, align 8, !tbaa !8
  %80 = getelementptr inbounds i8, ptr %3, i64 56
  %81 = load i64, ptr %80, align 8, !tbaa !8
  %82 = icmp sgt i64 %79, %81
  br i1 %82, label %191, label %83

83:                                               ; preds = %77
  %84 = getelementptr inbounds i8, ptr %4, i64 64
  %85 = load i64, ptr %84, align 16, !tbaa !8
  %86 = getelementptr inbounds i8, ptr %3, i64 64
  %87 = load i64, ptr %86, align 16, !tbaa !8
  %88 = icmp sgt i64 %85, %87
  br i1 %88, label %191, label %89

89:                                               ; preds = %83
  %90 = getelementptr inbounds i8, ptr %4, i64 72
  %91 = load i64, ptr %90, align 8, !tbaa !8
  %92 = getelementptr inbounds i8, ptr %3, i64 72
  %93 = load i64, ptr %92, align 8, !tbaa !8
  %94 = icmp sgt i64 %91, %93
  br i1 %94, label %191, label %95

95:                                               ; preds = %89
  %96 = getelementptr inbounds i8, ptr %4, i64 80
  %97 = load i64, ptr %96, align 16, !tbaa !8
  %98 = getelementptr inbounds i8, ptr %3, i64 80
  %99 = load i64, ptr %98, align 16, !tbaa !8
  %100 = icmp sgt i64 %97, %99
  br i1 %100, label %191, label %101

101:                                              ; preds = %95
  %102 = getelementptr inbounds i8, ptr %4, i64 88
  %103 = load i64, ptr %102, align 8, !tbaa !8
  %104 = getelementptr inbounds i8, ptr %3, i64 88
  %105 = load i64, ptr %104, align 8, !tbaa !8
  %106 = icmp sgt i64 %103, %105
  br i1 %106, label %191, label %107

107:                                              ; preds = %101
  %108 = getelementptr inbounds i8, ptr %4, i64 96
  %109 = load i64, ptr %108, align 16, !tbaa !8
  %110 = getelementptr inbounds i8, ptr %3, i64 96
  %111 = load i64, ptr %110, align 16, !tbaa !8
  %112 = icmp sgt i64 %109, %111
  br i1 %112, label %191, label %113

113:                                              ; preds = %107
  %114 = getelementptr inbounds i8, ptr %4, i64 104
  %115 = load i64, ptr %114, align 8, !tbaa !8
  %116 = getelementptr inbounds i8, ptr %3, i64 104
  %117 = load i64, ptr %116, align 8, !tbaa !8
  %118 = icmp sgt i64 %115, %117
  br i1 %118, label %191, label %119

119:                                              ; preds = %113
  %120 = getelementptr inbounds i8, ptr %4, i64 112
  %121 = load i64, ptr %120, align 16, !tbaa !8
  %122 = getelementptr inbounds i8, ptr %3, i64 112
  %123 = load i64, ptr %122, align 16, !tbaa !8
  %124 = icmp sgt i64 %121, %123
  br i1 %124, label %191, label %125

125:                                              ; preds = %119
  %126 = getelementptr inbounds i8, ptr %4, i64 120
  %127 = load i64, ptr %126, align 8, !tbaa !8
  %128 = getelementptr inbounds i8, ptr %3, i64 120
  %129 = load i64, ptr %128, align 8, !tbaa !8
  %130 = icmp sgt i64 %127, %129
  br i1 %130, label %191, label %131

131:                                              ; preds = %125
  %132 = getelementptr inbounds i8, ptr %4, i64 128
  %133 = load i64, ptr %132, align 16, !tbaa !8
  %134 = getelementptr inbounds i8, ptr %3, i64 128
  %135 = load i64, ptr %134, align 16, !tbaa !8
  %136 = icmp sgt i64 %133, %135
  br i1 %136, label %191, label %137

137:                                              ; preds = %131
  %138 = getelementptr inbounds i8, ptr %4, i64 136
  %139 = load i64, ptr %138, align 8, !tbaa !8
  %140 = getelementptr inbounds i8, ptr %3, i64 136
  %141 = load i64, ptr %140, align 8, !tbaa !8
  %142 = icmp sgt i64 %139, %141
  br i1 %142, label %191, label %143

143:                                              ; preds = %137
  %144 = getelementptr inbounds i8, ptr %4, i64 144
  %145 = load i64, ptr %144, align 16, !tbaa !8
  %146 = getelementptr inbounds i8, ptr %3, i64 144
  %147 = load i64, ptr %146, align 16, !tbaa !8
  %148 = icmp sgt i64 %145, %147
  br i1 %148, label %191, label %149

149:                                              ; preds = %143
  %150 = getelementptr inbounds i8, ptr %4, i64 152
  %151 = load i64, ptr %150, align 8, !tbaa !8
  %152 = getelementptr inbounds i8, ptr %3, i64 152
  %153 = load i64, ptr %152, align 8, !tbaa !8
  %154 = icmp sgt i64 %151, %153
  br i1 %154, label %191, label %155

155:                                              ; preds = %149
  %156 = getelementptr inbounds i8, ptr %4, i64 160
  %157 = load i64, ptr %156, align 16, !tbaa !8
  %158 = getelementptr inbounds i8, ptr %3, i64 160
  %159 = load i64, ptr %158, align 16, !tbaa !8
  %160 = icmp sgt i64 %157, %159
  br i1 %160, label %191, label %161

161:                                              ; preds = %155
  %162 = getelementptr inbounds i8, ptr %4, i64 168
  %163 = load i64, ptr %162, align 8, !tbaa !8
  %164 = getelementptr inbounds i8, ptr %3, i64 168
  %165 = load i64, ptr %164, align 8, !tbaa !8
  %166 = icmp sgt i64 %163, %165
  br i1 %166, label %191, label %167

167:                                              ; preds = %161
  %168 = getelementptr inbounds i8, ptr %4, i64 176
  %169 = load i64, ptr %168, align 16, !tbaa !8
  %170 = getelementptr inbounds i8, ptr %3, i64 176
  %171 = load i64, ptr %170, align 16, !tbaa !8
  %172 = icmp sgt i64 %169, %171
  br i1 %172, label %191, label %173

173:                                              ; preds = %167
  %174 = getelementptr inbounds i8, ptr %4, i64 184
  %175 = load i64, ptr %174, align 8, !tbaa !8
  %176 = getelementptr inbounds i8, ptr %3, i64 184
  %177 = load i64, ptr %176, align 8, !tbaa !8
  %178 = icmp sgt i64 %175, %177
  br i1 %178, label %191, label %179

179:                                              ; preds = %173
  %180 = getelementptr inbounds i8, ptr %4, i64 192
  %181 = load i64, ptr %180, align 16, !tbaa !8
  %182 = getelementptr inbounds i8, ptr %3, i64 192
  %183 = load i64, ptr %182, align 16, !tbaa !8
  %184 = icmp sgt i64 %181, %183
  br i1 %184, label %191, label %185

185:                                              ; preds = %179
  %186 = getelementptr inbounds i8, ptr %4, i64 200
  %187 = load i64, ptr %186, align 8, !tbaa !8
  %188 = getelementptr inbounds i8, ptr %3, i64 200
  %189 = load i64, ptr %188, align 8, !tbaa !8
  %190 = icmp sle i64 %187, %189
  %spec.select = zext i1 %190 to i64
  br label %191

191:                                              ; preds = %185, %179, %173, %167, %161, %155, %149, %143, %137, %131, %125, %119, %113, %107, %101, %95, %89, %83, %77, %71, %65, %59, %53, %47, %41, %.preheader
  %.lcssa42 = phi i64 [ 0, %.preheader ], [ 0, %41 ], [ 0, %47 ], [ 0, %53 ], [ 0, %59 ], [ 0, %65 ], [ 0, %71 ], [ 0, %77 ], [ 0, %83 ], [ 0, %89 ], [ 0, %95 ], [ 0, %101 ], [ 0, %107 ], [ 0, %113 ], [ 0, %119 ], [ 0, %125 ], [ 0, %131 ], [ 0, %137 ], [ 0, %143 ], [ 0, %149 ], [ 0, %155 ], [ 0, %161 ], [ 0, %167 ], [ 0, %173 ], [ 0, %179 ], [ %spec.select, %185 ]
  %192 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %193 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %.not56 = icmp eq i64 %192, %193
  br i1 %.not56, label %._crit_edge53, label %.lr.ph52.preheader

.lr.ph52.preheader:                               ; preds = %191
  %194 = getelementptr inbounds i8, ptr %4, i64 8
  %195 = getelementptr inbounds i8, ptr %3, i64 8
  %196 = getelementptr inbounds i8, ptr %4, i64 16
  %197 = getelementptr inbounds i8, ptr %3, i64 16
  %198 = getelementptr inbounds i8, ptr %4, i64 24
  %199 = getelementptr inbounds i8, ptr %3, i64 24
  %200 = getelementptr inbounds i8, ptr %4, i64 32
  %201 = getelementptr inbounds i8, ptr %3, i64 32
  %202 = getelementptr inbounds i8, ptr %4, i64 40
  %203 = getelementptr inbounds i8, ptr %3, i64 40
  %204 = getelementptr inbounds i8, ptr %4, i64 48
  %205 = getelementptr inbounds i8, ptr %3, i64 48
  %206 = getelementptr inbounds i8, ptr %4, i64 56
  %207 = getelementptr inbounds i8, ptr %3, i64 56
  %208 = getelementptr inbounds i8, ptr %4, i64 64
  %209 = getelementptr inbounds i8, ptr %3, i64 64
  %210 = getelementptr inbounds i8, ptr %4, i64 72
  %211 = getelementptr inbounds i8, ptr %3, i64 72
  %212 = getelementptr inbounds i8, ptr %4, i64 80
  %213 = getelementptr inbounds i8, ptr %3, i64 80
  %214 = getelementptr inbounds i8, ptr %4, i64 88
  %215 = getelementptr inbounds i8, ptr %3, i64 88
  %216 = getelementptr inbounds i8, ptr %4, i64 96
  %217 = getelementptr inbounds i8, ptr %3, i64 96
  %218 = getelementptr inbounds i8, ptr %4, i64 104
  %219 = getelementptr inbounds i8, ptr %3, i64 104
  %220 = getelementptr inbounds i8, ptr %4, i64 112
  %221 = getelementptr inbounds i8, ptr %3, i64 112
  %222 = getelementptr inbounds i8, ptr %4, i64 120
  %223 = getelementptr inbounds i8, ptr %3, i64 120
  %224 = getelementptr inbounds i8, ptr %4, i64 128
  %225 = getelementptr inbounds i8, ptr %3, i64 128
  %226 = getelementptr inbounds i8, ptr %4, i64 136
  %227 = getelementptr inbounds i8, ptr %3, i64 136
  %228 = getelementptr inbounds i8, ptr %4, i64 144
  %229 = getelementptr inbounds i8, ptr %3, i64 144
  %230 = getelementptr inbounds i8, ptr %4, i64 152
  %231 = getelementptr inbounds i8, ptr %3, i64 152
  %232 = getelementptr inbounds i8, ptr %4, i64 160
  %233 = getelementptr inbounds i8, ptr %3, i64 160
  %234 = getelementptr inbounds i8, ptr %4, i64 168
  %235 = getelementptr inbounds i8, ptr %3, i64 168
  %236 = getelementptr inbounds i8, ptr %4, i64 176
  %237 = getelementptr inbounds i8, ptr %3, i64 176
  %238 = getelementptr inbounds i8, ptr %4, i64 184
  %239 = getelementptr inbounds i8, ptr %3, i64 184
  %240 = getelementptr inbounds i8, ptr %4, i64 192
  %241 = getelementptr inbounds i8, ptr %3, i64 192
  %242 = getelementptr inbounds i8, ptr %4, i64 200
  %243 = getelementptr inbounds i8, ptr %3, i64 200
  br label %.lr.ph52

._crit_edge53:                                    ; preds = %374, %191
  %.132.lcssa = phi i64 [ %.lcssa42, %191 ], [ %spec.select41, %374 ]
  %244 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i64 noundef %.132.lcssa)
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %3) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  ret i32 0

.lr.ph52:                                         ; preds = %.lr.ph52.preheader, %374
  %.02850 = phi i64 [ %375, %374 ], [ 0, %.lr.ph52.preheader ]
  %.13249 = phi i64 [ %spec.select41, %374 ], [ %.lcssa42, %.lr.ph52.preheader ]
  %245 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %.02850)
  %246 = load i8, ptr %245, align 1, !tbaa !5
  %.not = icmp eq i8 %246, 63
  br i1 %.not, label %255, label %247

247:                                              ; preds = %.lr.ph52
  %248 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %.02850)
  %249 = load i8, ptr %248, align 1, !tbaa !5
  %250 = sext i8 %249 to i64
  %251 = add nsw i64 %250, -97
  %252 = getelementptr inbounds [26 x i64], ptr %4, i64 0, i64 %251
  %253 = load i64, ptr %252, align 8, !tbaa !8
  %254 = add nsw i64 %253, -1
  store i64 %254, ptr %252, align 8, !tbaa !8
  br label %255

255:                                              ; preds = %247, %.lr.ph52
  %256 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %257 = add i64 %256, %.02850
  %258 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %257)
  %259 = load i8, ptr %258, align 1, !tbaa !5
  %.not40 = icmp eq i8 %259, 63
  br i1 %.not40, label %270, label %260

260:                                              ; preds = %255
  %261 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %262 = add i64 %261, %.02850
  %263 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %262)
  %264 = load i8, ptr %263, align 1, !tbaa !5
  %265 = sext i8 %264 to i64
  %266 = add nsw i64 %265, -97
  %267 = getelementptr inbounds [26 x i64], ptr %4, i64 0, i64 %266
  %268 = load i64, ptr %267, align 8, !tbaa !8
  %269 = add nsw i64 %268, 1
  store i64 %269, ptr %267, align 8, !tbaa !8
  br label %270

270:                                              ; preds = %260, %255
  %271 = load i64, ptr %4, align 16, !tbaa !8
  %272 = load i64, ptr %3, align 16, !tbaa !8
  %273 = icmp sgt i64 %271, %272
  br i1 %273, label %374, label %274

274:                                              ; preds = %270
  %275 = load i64, ptr %194, align 8, !tbaa !8
  %276 = load i64, ptr %195, align 8, !tbaa !8
  %277 = icmp sgt i64 %275, %276
  br i1 %277, label %374, label %278

278:                                              ; preds = %274
  %279 = load i64, ptr %196, align 16, !tbaa !8
  %280 = load i64, ptr %197, align 16, !tbaa !8
  %281 = icmp sgt i64 %279, %280
  br i1 %281, label %374, label %282

282:                                              ; preds = %278
  %283 = load i64, ptr %198, align 8, !tbaa !8
  %284 = load i64, ptr %199, align 8, !tbaa !8
  %285 = icmp sgt i64 %283, %284
  br i1 %285, label %374, label %286

286:                                              ; preds = %282
  %287 = load i64, ptr %200, align 16, !tbaa !8
  %288 = load i64, ptr %201, align 16, !tbaa !8
  %289 = icmp sgt i64 %287, %288
  br i1 %289, label %374, label %290

290:                                              ; preds = %286
  %291 = load i64, ptr %202, align 8, !tbaa !8
  %292 = load i64, ptr %203, align 8, !tbaa !8
  %293 = icmp sgt i64 %291, %292
  br i1 %293, label %374, label %294

294:                                              ; preds = %290
  %295 = load i64, ptr %204, align 16, !tbaa !8
  %296 = load i64, ptr %205, align 16, !tbaa !8
  %297 = icmp sgt i64 %295, %296
  br i1 %297, label %374, label %298

298:                                              ; preds = %294
  %299 = load i64, ptr %206, align 8, !tbaa !8
  %300 = load i64, ptr %207, align 8, !tbaa !8
  %301 = icmp sgt i64 %299, %300
  br i1 %301, label %374, label %302

302:                                              ; preds = %298
  %303 = load i64, ptr %208, align 16, !tbaa !8
  %304 = load i64, ptr %209, align 16, !tbaa !8
  %305 = icmp sgt i64 %303, %304
  br i1 %305, label %374, label %306

306:                                              ; preds = %302
  %307 = load i64, ptr %210, align 8, !tbaa !8
  %308 = load i64, ptr %211, align 8, !tbaa !8
  %309 = icmp sgt i64 %307, %308
  br i1 %309, label %374, label %310

310:                                              ; preds = %306
  %311 = load i64, ptr %212, align 16, !tbaa !8
  %312 = load i64, ptr %213, align 16, !tbaa !8
  %313 = icmp sgt i64 %311, %312
  br i1 %313, label %374, label %314

314:                                              ; preds = %310
  %315 = load i64, ptr %214, align 8, !tbaa !8
  %316 = load i64, ptr %215, align 8, !tbaa !8
  %317 = icmp sgt i64 %315, %316
  br i1 %317, label %374, label %318

318:                                              ; preds = %314
  %319 = load i64, ptr %216, align 16, !tbaa !8
  %320 = load i64, ptr %217, align 16, !tbaa !8
  %321 = icmp sgt i64 %319, %320
  br i1 %321, label %374, label %322

322:                                              ; preds = %318
  %323 = load i64, ptr %218, align 8, !tbaa !8
  %324 = load i64, ptr %219, align 8, !tbaa !8
  %325 = icmp sgt i64 %323, %324
  br i1 %325, label %374, label %326

326:                                              ; preds = %322
  %327 = load i64, ptr %220, align 16, !tbaa !8
  %328 = load i64, ptr %221, align 16, !tbaa !8
  %329 = icmp sgt i64 %327, %328
  br i1 %329, label %374, label %330

330:                                              ; preds = %326
  %331 = load i64, ptr %222, align 8, !tbaa !8
  %332 = load i64, ptr %223, align 8, !tbaa !8
  %333 = icmp sgt i64 %331, %332
  br i1 %333, label %374, label %334

334:                                              ; preds = %330
  %335 = load i64, ptr %224, align 16, !tbaa !8
  %336 = load i64, ptr %225, align 16, !tbaa !8
  %337 = icmp sgt i64 %335, %336
  br i1 %337, label %374, label %338

338:                                              ; preds = %334
  %339 = load i64, ptr %226, align 8, !tbaa !8
  %340 = load i64, ptr %227, align 8, !tbaa !8
  %341 = icmp sgt i64 %339, %340
  br i1 %341, label %374, label %342

342:                                              ; preds = %338
  %343 = load i64, ptr %228, align 16, !tbaa !8
  %344 = load i64, ptr %229, align 16, !tbaa !8
  %345 = icmp sgt i64 %343, %344
  br i1 %345, label %374, label %346

346:                                              ; preds = %342
  %347 = load i64, ptr %230, align 8, !tbaa !8
  %348 = load i64, ptr %231, align 8, !tbaa !8
  %349 = icmp sgt i64 %347, %348
  br i1 %349, label %374, label %350

350:                                              ; preds = %346
  %351 = load i64, ptr %232, align 16, !tbaa !8
  %352 = load i64, ptr %233, align 16, !tbaa !8
  %353 = icmp sgt i64 %351, %352
  br i1 %353, label %374, label %354

354:                                              ; preds = %350
  %355 = load i64, ptr %234, align 8, !tbaa !8
  %356 = load i64, ptr %235, align 8, !tbaa !8
  %357 = icmp sgt i64 %355, %356
  br i1 %357, label %374, label %358

358:                                              ; preds = %354
  %359 = load i64, ptr %236, align 16, !tbaa !8
  %360 = load i64, ptr %237, align 16, !tbaa !8
  %361 = icmp sgt i64 %359, %360
  br i1 %361, label %374, label %362

362:                                              ; preds = %358
  %363 = load i64, ptr %238, align 8, !tbaa !8
  %364 = load i64, ptr %239, align 8, !tbaa !8
  %365 = icmp sgt i64 %363, %364
  br i1 %365, label %374, label %366

366:                                              ; preds = %362
  %367 = load i64, ptr %240, align 16, !tbaa !8
  %368 = load i64, ptr %241, align 16, !tbaa !8
  %369 = icmp sgt i64 %367, %368
  br i1 %369, label %374, label %370

370:                                              ; preds = %366
  %371 = load i64, ptr %242, align 8, !tbaa !8
  %372 = load i64, ptr %243, align 8, !tbaa !8
  %373 = icmp sle i64 %371, %372
  %spec.select65 = zext i1 %373 to i64
  br label %374

374:                                              ; preds = %370, %366, %362, %358, %354, %350, %346, %342, %338, %334, %330, %326, %322, %318, %314, %310, %306, %302, %298, %294, %290, %286, %282, %278, %274, %270
  %.lcssa = phi i64 [ 0, %270 ], [ 0, %274 ], [ 0, %278 ], [ 0, %282 ], [ 0, %286 ], [ 0, %290 ], [ 0, %294 ], [ 0, %298 ], [ 0, %302 ], [ 0, %306 ], [ 0, %310 ], [ 0, %314 ], [ 0, %318 ], [ 0, %322 ], [ 0, %326 ], [ 0, %330 ], [ 0, %334 ], [ 0, %338 ], [ 0, %342 ], [ 0, %346 ], [ 0, %350 ], [ 0, %354 ], [ 0, %358 ], [ 0, %362 ], [ 0, %366 ], [ %spec.select65, %370 ]
  %spec.select41 = add nuw nsw i64 %.13249, %.lcssa
  %375 = add nuw nsw i64 %.02850, 1
  %376 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %377 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %378 = sub i64 %376, %377
  %379 = icmp ult i64 %375, %378
  br i1 %379, label %.lr.ph52, label %._crit_edge53, !llvm.loop !13

380:                                              ; preds = %13, %11
  %.pn = phi { ptr, i32 } [ %14, %13 ], [ %12, %11 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, 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 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 #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nofree nounwind "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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}


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