; LLVM IR from ShahjalalShohag/code-library :: Strings (String Hashing With Updates and Reverse)

; 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] }
%struct.Hashing = type { i32, %"class.std::__cxx11::basic_string", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::array<std::array<int, 2>, 2>, std::allocator<std::array<std::array<int, 2>, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<std::array<int, 2>, 2>, std::allocator<std::array<std::array<int, 2>, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<std::array<int, 2>, 2>, std::allocator<std::array<std::array<int, 2>, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<std::array<int, 2>, 2>, std::allocator<std::array<std::array<int, 2>, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4precv() #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %struct.Hashing, align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %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 i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %29 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %30 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %31 = getelementptr i8, ptr %30, i64 -24
  %32 = load i64, ptr %31, align 8
  %33 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %32
  %34 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %33, ptr noundef null)
  call void @_Z4precv()
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  %35 = 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) %2)
          to label %36 unwind label %60

36:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %37 unwind label %64

37:                                               ; preds = %36
  invoke void @_ZN7HashingC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(64) %5, ptr noundef %6)
          to label %38 unwind label %68

38:                                               ; preds = %37
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %39 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  %40 = trunc i64 %39 to i32
  store i32 %40, ptr %7, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %41 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %42 unwind label %72

42:                                               ; preds = %38
  br label %43

43:                                               ; preds = %222, %42
  %44 = load i32, ptr %8, align 4, !tbaa !8
  %45 = add nsw i32 %44, -1
  store i32 %45, ptr %8, align 4, !tbaa !8
  %46 = icmp ne i32 %44, 0
  br i1 %46, label %47, label %224

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %48 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %49 unwind label %76

49:                                               ; preds = %47
  %50 = load i32, ptr %9, align 4, !tbaa !8
  %51 = icmp eq i32 %50, 1
  br i1 %51, label %52, label %84

52:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  %53 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %54 unwind label %80

54:                                               ; preds = %52
  %55 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %56 unwind label %80

56:                                               ; preds = %54
  %57 = load i32, ptr %10, align 4, !tbaa !8
  %58 = load i8, ptr %11, align 1, !tbaa !11
  invoke void @_ZN7Hashing3updEic(ptr noundef nonnull align 8 dereferenceable(64) %5, i32 noundef %57, i8 noundef signext %58)
          to label %59 unwind label %80

59:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %222

60:                                               ; preds = %0
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %3, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %4, align 4
  br label %228

64:                                               ; preds = %36
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %3, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %4, align 4
  br label %227

68:                                               ; preds = %37
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %3, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %4, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br label %227

72:                                               ; preds = %38
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %3, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %4, align 4
  br label %226

76:                                               ; preds = %47
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %3, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %4, align 4
  br label %223

80:                                               ; preds = %56, %54, %52
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %3, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %223

84:                                               ; preds = %49
  %85 = load i32, ptr %9, align 4, !tbaa !8
  %86 = icmp eq i32 %85, 2
  br i1 %86, label %87, label %152

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %88 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %89 unwind label %121

89:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 1, ptr %13, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %90 = load i32, ptr %12, align 4, !tbaa !8
  %91 = sub nsw i32 %90, 1
  store i32 %91, ptr %15, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %92 = load i32, ptr %7, align 4, !tbaa !8
  %93 = load i32, ptr %12, align 4, !tbaa !8
  %94 = sub nsw i32 %92, %93
  store i32 %94, ptr %16, align 4, !tbaa !8
  %95 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %96 unwind label %125

96:                                               ; preds = %89
  %97 = load i32, ptr %95, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  store i32 %97, ptr %14, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !8
  br label %98

98:                                               ; preds = %136, %96
  %99 = load i32, ptr %13, align 4, !tbaa !8
  %100 = load i32, ptr %14, align 4, !tbaa !8
  %101 = icmp sle i32 %99, %100
  br i1 %101, label %102, label %137

102:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %103 = load i32, ptr %13, align 4, !tbaa !8
  %104 = load i32, ptr %14, align 4, !tbaa !8
  %105 = add nsw i32 %103, %104
  %106 = sdiv i32 %105, 2
  store i32 %106, ptr %18, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %107 = load i32, ptr %12, align 4, !tbaa !8
  %108 = load i32, ptr %18, align 4, !tbaa !8
  %109 = sub nsw i32 %107, %108
  store i32 %109, ptr %19, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %110 = load i32, ptr %12, align 4, !tbaa !8
  %111 = load i32, ptr %18, align 4, !tbaa !8
  %112 = add nsw i32 %110, %111
  store i32 %112, ptr %20, align 4, !tbaa !8
  %113 = load i32, ptr %19, align 4, !tbaa !8
  %114 = load i32, ptr %20, align 4, !tbaa !8
  %115 = invoke noundef zeroext i1 @_ZN7Hashing13is_palindromeEii(ptr noundef nonnull align 8 dereferenceable(64) %5, i32 noundef %113, i32 noundef %114)
          to label %116 unwind label %129

116:                                              ; preds = %102
  br i1 %115, label %117, label %133

117:                                              ; preds = %116
  %118 = load i32, ptr %18, align 4, !tbaa !8
  store i32 %118, ptr %17, align 4, !tbaa !8
  %119 = load i32, ptr %18, align 4, !tbaa !8
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %13, align 4, !tbaa !8
  br label %136

121:                                              ; preds = %87
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %3, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %4, align 4
  br label %151

125:                                              ; preds = %89
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %3, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %150

129:                                              ; preds = %102
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %3, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %149

133:                                              ; preds = %116
  %134 = load i32, ptr %18, align 4, !tbaa !8
  %135 = sub nsw i32 %134, 1
  store i32 %135, ptr %14, align 4, !tbaa !8
  br label %136

136:                                              ; preds = %133, %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %98, !llvm.loop !12

137:                                              ; preds = %98
  %138 = load i32, ptr %17, align 4, !tbaa !8
  %139 = mul nsw i32 %138, 2
  %140 = add nsw i32 %139, 1
  %141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %140)
          to label %142 unwind label %145

142:                                              ; preds = %137
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %141, i8 noundef signext 10)
          to label %144 unwind label %145

144:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %221

145:                                              ; preds = %142, %137
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %3, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %4, align 4
  br label %149

149:                                              ; preds = %145, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %150

150:                                              ; preds = %149, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %151

151:                                              ; preds = %150, %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %223

152:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %153 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %154 unwind label %185

154:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 1, ptr %22, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %155 = load i32, ptr %7, align 4, !tbaa !8
  %156 = load i32, ptr %21, align 4, !tbaa !8
  %157 = sub nsw i32 %155, %156
  store i32 %157, ptr %24, align 4, !tbaa !8
  %158 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %159 unwind label %189

159:                                              ; preds = %154
  %160 = load i32, ptr %158, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  store i32 %160, ptr %23, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 -1, ptr %25, align 4, !tbaa !8
  br label %161

161:                                              ; preds = %200, %159
  %162 = load i32, ptr %22, align 4, !tbaa !8
  %163 = load i32, ptr %23, align 4, !tbaa !8
  %164 = icmp sle i32 %162, %163
  br i1 %164, label %165, label %201

165:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %166 = load i32, ptr %22, align 4, !tbaa !8
  %167 = load i32, ptr %23, align 4, !tbaa !8
  %168 = add nsw i32 %166, %167
  %169 = sdiv i32 %168, 2
  store i32 %169, ptr %26, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %170 = load i32, ptr %21, align 4, !tbaa !8
  %171 = load i32, ptr %26, align 4, !tbaa !8
  %172 = sub nsw i32 %170, %171
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %27, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %174 = load i32, ptr %21, align 4, !tbaa !8
  %175 = load i32, ptr %26, align 4, !tbaa !8
  %176 = add nsw i32 %174, %175
  store i32 %176, ptr %28, align 4, !tbaa !8
  %177 = load i32, ptr %27, align 4, !tbaa !8
  %178 = load i32, ptr %28, align 4, !tbaa !8
  %179 = invoke noundef zeroext i1 @_ZN7Hashing13is_palindromeEii(ptr noundef nonnull align 8 dereferenceable(64) %5, i32 noundef %177, i32 noundef %178)
          to label %180 unwind label %193

180:                                              ; preds = %165
  br i1 %179, label %181, label %197

181:                                              ; preds = %180
  %182 = load i32, ptr %26, align 4, !tbaa !8
  store i32 %182, ptr %25, align 4, !tbaa !8
  %183 = load i32, ptr %26, align 4, !tbaa !8
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %22, align 4, !tbaa !8
  br label %200

185:                                              ; preds = %152
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %3, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %4, align 4
  br label %220

189:                                              ; preds = %154
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %3, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %219

193:                                              ; preds = %165
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %3, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %218

197:                                              ; preds = %180
  %198 = load i32, ptr %26, align 4, !tbaa !8
  %199 = sub nsw i32 %198, 1
  store i32 %199, ptr %23, align 4, !tbaa !8
  br label %200

200:                                              ; preds = %197, %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %161, !llvm.loop !14

201:                                              ; preds = %161
  %202 = load i32, ptr %25, align 4, !tbaa !8
  %203 = icmp eq i32 %202, -1
  br i1 %203, label %204, label %205

204:                                              ; preds = %201
  br label %208

205:                                              ; preds = %201
  %206 = load i32, ptr %25, align 4, !tbaa !8
  %207 = mul nsw i32 %206, 2
  br label %208

208:                                              ; preds = %205, %204
  %209 = phi i32 [ -1, %204 ], [ %207, %205 ]
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %209)
          to label %211 unwind label %214

211:                                              ; preds = %208
  %212 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %210, i8 noundef signext 10)
          to label %213 unwind label %214

213:                                              ; preds = %211
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %221

214:                                              ; preds = %211, %208
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %3, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %4, align 4
  br label %218

218:                                              ; preds = %214, %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %219

219:                                              ; preds = %218, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %220

220:                                              ; preds = %219, %185
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %223

221:                                              ; preds = %213, %144
  br label %222

222:                                              ; preds = %221, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %43, !llvm.loop !15

223:                                              ; preds = %220, %151, %80, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %226

224:                                              ; preds = %43
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @_ZN7HashingD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %5) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #7
  %225 = load i32, ptr %1, align 4
  ret i32 %225

226:                                              ; preds = %223, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @_ZN7HashingD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %5) #7
  br label %227

227:                                              ; preds = %226, %68, %64
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #7
  br label %228

228:                                              ; preds = %227, %60
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #7
  br label %229

229:                                              ; preds = %228
  %230 = load ptr, ptr %3, align 8
  %231 = load i32, ptr %4, align 4
  %232 = insertvalue { ptr, i32 } poison, ptr %230, 0
  %233 = insertvalue { ptr, i32 } %232, i32 %231, 1
  resume { ptr, i32 } %233
}

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

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

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

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)) #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7HashingC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) unnamed_addr #4 align 2

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Hashing3updEic(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i8 noundef signext) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7Hashing13is_palindromeEii(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7HashingD2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint 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 #6 = { 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 #7 = { nounwind }

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

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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4precv() local_unnamed_addr #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %struct.Hashing, align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %14 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %15 = getelementptr i8, ptr %14, i64 -24
  %16 = load i64, ptr %15, align 8
  %17 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %16
  %18 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %17, ptr noundef null)
  tail call void @_Z4precv()
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %19 = 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 %20 unwind label %39

20:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %21 unwind label %41

21:                                               ; preds = %20
  invoke void @_ZN7HashingC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef nonnull %3)
          to label %22 unwind label %43

22:                                               ; preds = %21
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  %23 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %24 = trunc i64 %23 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %.preheader unwind label %45

.preheader:                                       ; preds = %22
  %26 = load i32, ptr %4, align 4, !tbaa !8
  %27 = add nsw i32 %26, -1
  store i32 %27, ptr %4, align 4, !tbaa !8
  %.not76 = icmp eq i32 %26, 0
  br i1 %.not76, label %._crit_edge78, label %.lr.ph77

.lr.ph77:                                         ; preds = %.preheader, %112
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %28 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %29 unwind label %47

29:                                               ; preds = %.lr.ph77
  %30 = load i32, ptr %5, align 4, !tbaa !8
  switch i32 %30, label %81 [
    i32 1, label %31
    i32 2, label %51
  ]

31:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  %32 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %33 unwind label %49

33:                                               ; preds = %31
  %34 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %35 unwind label %49

35:                                               ; preds = %33
  %36 = load i32, ptr %6, align 4, !tbaa !8
  %37 = load i8, ptr %7, align 1, !tbaa !11
  invoke void @_ZN7Hashing3updEic(ptr noundef nonnull align 8 dereferenceable(64) %2, i32 noundef %36, i8 noundef signext %37)
          to label %38 unwind label %49

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

39:                                               ; preds = %0
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %118

41:                                               ; preds = %20
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %117

43:                                               ; preds = %21
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  br label %117

45:                                               ; preds = %22
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %116

47:                                               ; preds = %.lr.ph77
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %115

49:                                               ; preds = %35, %33, %31
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  br label %115

51:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %52 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %53 unwind label %68

53:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %54 = load i32, ptr %8, align 4, !tbaa !8
  %55 = add nsw i32 %54, -1
  store i32 %55, ptr %9, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %56 = sub nsw i32 %24, %54
  store i32 %56, ptr %10, align 4, !tbaa !8
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %58 = load i32, ptr %57, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  %.not5364 = icmp slt i32 %58, 1
  br i1 %.not5364, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %53, %65
  %.04367 = phi i32 [ %.144, %65 ], [ 1, %53 ]
  %.04566 = phi i32 [ %.146, %65 ], [ %58, %53 ]
  %.04765 = phi i32 [ %.148, %65 ], [ 0, %53 ]
  %59 = add nuw nsw i32 %.04367, %.04566
  %60 = lshr i32 %59, 1
  %61 = load i32, ptr %8, align 4, !tbaa !8
  %62 = sub nsw i32 %61, %60
  %63 = add nsw i32 %61, %60
  %64 = invoke noundef zeroext i1 @_ZN7Hashing13is_palindromeEii(ptr noundef nonnull align 8 dereferenceable(64) %2, i32 noundef %62, i32 noundef %63)
          to label %65 unwind label %70

65:                                               ; preds = %.lr.ph
  %66 = add nuw nsw i32 %60, 1
  %67 = add nsw i32 %60, -1
  %.148 = select i1 %64, i32 %60, i32 %.04765
  %.146 = select i1 %64, i32 %.04566, i32 %67
  %.144 = select i1 %64, i32 %66, i32 %.04367
  %.not53 = icmp sgt i32 %.144, %.146
  br i1 %.not53, label %._crit_edge, label %.lr.ph, !llvm.loop !12

68:                                               ; preds = %51
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %80

70:                                               ; preds = %.lr.ph
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %80

._crit_edge:                                      ; preds = %65, %53
  %.047.lcssa = phi i32 [ 0, %53 ], [ %.148, %65 ]
  %72 = shl nuw nsw i32 %.047.lcssa, 1
  %73 = or disjoint i32 %72, 1
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %73)
          to label %75 unwind label %78

75:                                               ; preds = %._crit_edge
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %74, i8 noundef signext 10)
          to label %77 unwind label %78

77:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  br label %112

78:                                               ; preds = %75, %._crit_edge
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %80

80:                                               ; preds = %70, %78, %68
  %.pn54.pn = phi { ptr, i32 } [ %69, %68 ], [ %71, %70 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  br label %115

81:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %82 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %83 unwind label %97

83:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %84 = load i32, ptr %11, align 4, !tbaa !8
  %85 = sub nsw i32 %24, %84
  store i32 %85, ptr %12, align 4, !tbaa !8
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %87 = load i32, ptr %86, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  %.not5068 = icmp slt i32 %87, 1
  br i1 %.not5068, label %._crit_edge74.thread, label %.lr.ph73

.lr.ph73:                                         ; preds = %83, %94
  %.03771 = phi i32 [ %.138, %94 ], [ -1, %83 ]
  %.03970 = phi i32 [ %.140, %94 ], [ %87, %83 ]
  %.04169 = phi i32 [ %.142, %94 ], [ 1, %83 ]
  %88 = add nuw nsw i32 %.03970, %.04169
  %.fr81 = freeze i32 %88
  %89 = lshr i32 %.fr81, 1
  %90 = load i32, ptr %11, align 4, !tbaa !8
  %reass.sub = sub i32 %90, %89
  %91 = add i32 %reass.sub, 1
  %92 = add nsw i32 %90, %89
  %93 = invoke noundef zeroext i1 @_ZN7Hashing13is_palindromeEii(ptr noundef nonnull align 8 dereferenceable(64) %2, i32 noundef %91, i32 noundef %92)
          to label %94 unwind label %99

94:                                               ; preds = %.lr.ph73
  %95 = add nuw nsw i32 %89, 1
  %96 = add nsw i32 %89, -1
  %.142 = select i1 %93, i32 %95, i32 %.04169
  %.140 = select i1 %93, i32 %.03970, i32 %96
  %.138 = select i1 %93, i32 %89, i32 %.03771
  %.not50 = icmp sgt i32 %.142, %.140
  br i1 %.not50, label %._crit_edge74, label %.lr.ph73, !llvm.loop !14

97:                                               ; preds = %81
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %111

99:                                               ; preds = %.lr.ph73
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %111

._crit_edge74:                                    ; preds = %94
  %101 = icmp eq i32 %.138, -1
  %102 = shl nsw i32 %.138, 1
  br i1 %101, label %._crit_edge74.thread, label %103

._crit_edge74.thread:                             ; preds = %83, %._crit_edge74
  br label %103

103:                                              ; preds = %._crit_edge74, %._crit_edge74.thread
  %104 = phi i32 [ -1, %._crit_edge74.thread ], [ %102, %._crit_edge74 ]
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %104)
          to label %106 unwind label %109

106:                                              ; preds = %103
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %105, i8 noundef signext 10)
          to label %108 unwind label %109

108:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  br label %112

109:                                              ; preds = %106, %103
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %111

111:                                              ; preds = %99, %109, %97
  %.pn.pn = phi { ptr, i32 } [ %98, %97 ], [ %100, %99 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  br label %115

112:                                              ; preds = %77, %108, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %113 = load i32, ptr %4, align 4, !tbaa !8
  %114 = add nsw i32 %113, -1
  store i32 %114, ptr %4, align 4, !tbaa !8
  %.not = icmp eq i32 %113, 0
  br i1 %.not, label %._crit_edge78, label %.lr.ph77, !llvm.loop !15

115:                                              ; preds = %111, %80, %49, %47
  %.pn57 = phi { ptr, i32 } [ %50, %49 ], [ %.pn54.pn, %80 ], [ %.pn.pn, %111 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %116

._crit_edge78:                                    ; preds = %112, %.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @_ZN7HashingD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %2) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  ret i32 0

116:                                              ; preds = %115, %45
  %.pn57.pn = phi { ptr, i32 } [ %.pn57, %115 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @_ZN7HashingD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %2) #7
  br label %117

117:                                              ; preds = %116, %43, %41
  %.pn57.pn.pn = phi { ptr, i32 } [ %.pn57.pn, %116 ], [ %44, %43 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #7
  br label %118

118:                                              ; preds = %117, %39
  %.pn57.pn.pn.pn = phi { ptr, i32 } [ %.pn57.pn.pn, %117 ], [ %40, %39 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn57.pn.pn.pn
}

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

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

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

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 #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7HashingC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) unnamed_addr #4 align 2

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

; 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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Hashing3updEic(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i8 noundef signext) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7Hashing13is_palindromeEii(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7HashingD2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint 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 #6 = { 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 #7 = { nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass