; LLVM IR from VastoLorde95/Competitive-Programming :: Hackerrank/101 Hacks/101 Hack 2015/101 Hack March/Problem A (A)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@t = external dso_local global i32, align 4
@cnt = external dso_local global i32, align 4
@l = external dso_local global i32, align 4
@r = external dso_local global i32, align 4
@b = external dso_local global i32, align 4
@x = external dso_local global i32, align 4
@y = external dso_local global i32, align 4
@res = external dso_local global i32, align 4
@c = external dso_local global i8, align 1
@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @t)
  br label %17

17:                                               ; preds = %356, %0
  %18 = load i32, ptr @t, align 4, !tbaa !5
  %19 = add nsw i32 %18, -1
  store i32 %19, ptr @t, align 4, !tbaa !5
  %20 = icmp ne i32 %18, 0
  br i1 %20, label %21, label %357

21:                                               ; preds = %17
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  store i32 1, ptr @cnt, align 4, !tbaa !5
  store i32 0, ptr @r, align 4, !tbaa !5
  store i32 0, ptr @b, align 4, !tbaa !5
  store i32 0, ptr @x, align 4, !tbaa !5
  store i32 0, ptr @y, align 4, !tbaa !5
  %23 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11) #7
  %24 = trunc i64 %23 to i32
  store i32 %24, ptr @l, align 4, !tbaa !5
  %25 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %26 = load i8, ptr %25, align 1, !tbaa !9
  store i8 %26, ptr @c, align 1, !tbaa !9
  store i32 100000000, ptr @res, align 4, !tbaa !5
  %27 = load i8, ptr @c, align 1, !tbaa !9
  %28 = sext i8 %27 to i32
  %29 = icmp eq i32 %28, 82
  br i1 %29, label %30, label %33

30:                                               ; preds = %21
  %31 = load i32, ptr @r, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr @r, align 4, !tbaa !5
  br label %36

33:                                               ; preds = %21
  %34 = load i32, ptr @b, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr @b, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %33, %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %72, %36
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = load i32, ptr @l, align 4, !tbaa !5
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %75

42:                                               ; preds = %37
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %44)
  %46 = load i8, ptr %45, align 1, !tbaa !9
  %47 = sext i8 %46 to i32
  %48 = icmp eq i32 %47, 82
  br i1 %48, label %49, label %52

49:                                               ; preds = %42
  %50 = load i32, ptr @r, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr @r, align 4, !tbaa !5
  br label %55

52:                                               ; preds = %42
  %53 = load i32, ptr @b, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr @b, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %52, %49
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %57)
  %59 = load i8, ptr %58, align 1, !tbaa !9
  %60 = sext i8 %59 to i32
  %61 = load i8, ptr @c, align 1, !tbaa !9
  %62 = sext i8 %61 to i32
  %63 = icmp ne i32 %60, %62
  br i1 %63, label %64, label %71

64:                                               ; preds = %55
  %65 = load i32, ptr %2, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %66)
  %68 = load i8, ptr %67, align 1, !tbaa !9
  store i8 %68, ptr @c, align 1, !tbaa !9
  %69 = load i32, ptr @cnt, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr @cnt, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %64, %55
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %2, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %2, align 4, !tbaa !5
  br label %37, !llvm.loop !10

75:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %123, %75
  %77 = load i32, ptr %3, align 4, !tbaa !5
  %78 = load i32, ptr @l, align 4, !tbaa !5
  %79 = sub nsw i32 %78, 1
  %80 = icmp slt i32 %77, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %126

82:                                               ; preds = %76
  %83 = load i32, ptr %3, align 4, !tbaa !5
  %84 = sub nsw i32 %83, 1
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %85)
  %87 = load i8, ptr %86, align 1, !tbaa !9
  %88 = sext i8 %87 to i32
  %89 = load i32, ptr %3, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %90)
  %92 = load i8, ptr %91, align 1, !tbaa !9
  %93 = sext i8 %92 to i32
  %94 = icmp ne i32 %88, %93
  br i1 %94, label %95, label %122

95:                                               ; preds = %82
  %96 = load i32, ptr %3, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %97)
  %99 = load i8, ptr %98, align 1, !tbaa !9
  %100 = sext i8 %99 to i32
  %101 = load i32, ptr %3, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %103)
  %105 = load i8, ptr %104, align 1, !tbaa !9
  %106 = sext i8 %105 to i32
  %107 = icmp ne i32 %100, %106
  br i1 %107, label %108, label %122

108:                                              ; preds = %95
  %109 = load i32, ptr %3, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %110)
  %112 = load i8, ptr %111, align 1, !tbaa !9
  %113 = sext i8 %112 to i32
  %114 = icmp eq i32 %113, 82
  br i1 %114, label %115, label %118

115:                                              ; preds = %108
  %116 = load i32, ptr @x, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr @x, align 4, !tbaa !5
  br label %121

118:                                              ; preds = %108
  %119 = load i32, ptr @y, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr @y, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %118, %115
  br label %122

122:                                              ; preds = %121, %95, %82
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %3, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %3, align 4, !tbaa !5
  br label %76, !llvm.loop !12

126:                                              ; preds = %81
  %127 = load i32, ptr @l, align 4, !tbaa !5
  %128 = icmp sgt i32 %127, 1
  br i1 %128, label %129, label %179

129:                                              ; preds = %126
  %130 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %131 = load i8, ptr %130, align 1, !tbaa !9
  %132 = sext i8 %131 to i32
  %133 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 1)
  %134 = load i8, ptr %133, align 1, !tbaa !9
  %135 = sext i8 %134 to i32
  %136 = icmp ne i32 %132, %135
  br i1 %136, label %137, label %149

137:                                              ; preds = %129
  %138 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %139 = load i8, ptr %138, align 1, !tbaa !9
  %140 = sext i8 %139 to i32
  %141 = icmp eq i32 %140, 82
  br i1 %141, label %142, label %145

142:                                              ; preds = %137
  %143 = load i32, ptr @x, align 4, !tbaa !5
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr @x, align 4, !tbaa !5
  br label %148

145:                                              ; preds = %137
  %146 = load i32, ptr @y, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr @y, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %145, %142
  br label %149

149:                                              ; preds = %148, %129
  %150 = load i32, ptr @l, align 4, !tbaa !5
  %151 = sub nsw i32 %150, 1
  %152 = sext i32 %151 to i64
  %153 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %152)
  %154 = load i8, ptr %153, align 1, !tbaa !9
  %155 = sext i8 %154 to i32
  %156 = load i32, ptr @l, align 4, !tbaa !5
  %157 = sub nsw i32 %156, 2
  %158 = sext i32 %157 to i64
  %159 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %158)
  %160 = load i8, ptr %159, align 1, !tbaa !9
  %161 = sext i8 %160 to i32
  %162 = icmp ne i32 %155, %161
  br i1 %162, label %163, label %178

163:                                              ; preds = %149
  %164 = load i32, ptr @l, align 4, !tbaa !5
  %165 = sub nsw i32 %164, 1
  %166 = sext i32 %165 to i64
  %167 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %166)
  %168 = load i8, ptr %167, align 1, !tbaa !9
  %169 = sext i8 %168 to i32
  %170 = icmp eq i32 %169, 82
  br i1 %170, label %171, label %174

171:                                              ; preds = %163
  %172 = load i32, ptr @x, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr @x, align 4, !tbaa !5
  br label %177

174:                                              ; preds = %163
  %175 = load i32, ptr @y, align 4, !tbaa !5
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr @y, align 4, !tbaa !5
  br label %177

177:                                              ; preds = %174, %171
  br label %178

178:                                              ; preds = %177, %149
  br label %179

179:                                              ; preds = %178, %126
  %180 = load i32, ptr @l, align 4, !tbaa !5
  %181 = icmp eq i32 %180, 1
  br i1 %181, label %182, label %185

182:                                              ; preds = %179
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %183, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %356

185:                                              ; preds = %179
  %186 = load i32, ptr @l, align 4, !tbaa !5
  %187 = icmp eq i32 %186, 2
  br i1 %187, label %188, label %199

188:                                              ; preds = %185
  %189 = load i32, ptr @r, align 4, !tbaa !5
  %190 = load i32, ptr @b, align 4, !tbaa !5
  %191 = icmp eq i32 %189, %190
  br i1 %191, label %192, label %195

192:                                              ; preds = %188
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %193, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %198

195:                                              ; preds = %188
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %196, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %198

198:                                              ; preds = %195, %192
  br label %355

199:                                              ; preds = %185
  %200 = load i32, ptr @x, align 4, !tbaa !5
  %201 = icmp eq i32 %200, 2
  br i1 %201, label %202, label %226

202:                                              ; preds = %199
  %203 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %204 = load i8, ptr %203, align 1, !tbaa !9
  %205 = sext i8 %204 to i32
  %206 = icmp eq i32 %205, 82
  br i1 %206, label %207, label %220

207:                                              ; preds = %202
  %208 = load i32, ptr @l, align 4, !tbaa !5
  %209 = sub nsw i32 %208, 1
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %210)
  %212 = load i8, ptr %211, align 1, !tbaa !9
  %213 = sext i8 %212 to i32
  %214 = icmp eq i32 %213, 82
  br i1 %214, label %215, label %220

215:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %216 = load i32, ptr @cnt, align 4, !tbaa !5
  %217 = sub nsw i32 %216, 1
  store i32 %217, ptr %4, align 4, !tbaa !5
  %218 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %219 = load i32, ptr %218, align 4, !tbaa !5
  store i32 %219, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %225

220:                                              ; preds = %207, %202
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %221 = load i32, ptr @cnt, align 4, !tbaa !5
  %222 = sub nsw i32 %221, 2
  store i32 %222, ptr %5, align 4, !tbaa !5
  %223 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %224 = load i32, ptr %223, align 4, !tbaa !5
  store i32 %224, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %225

225:                                              ; preds = %220, %215
  br label %226

226:                                              ; preds = %225, %199
  %227 = load i32, ptr @x, align 4, !tbaa !5
  %228 = icmp sgt i32 %227, 2
  br i1 %228, label %229, label %234

229:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %230 = load i32, ptr @cnt, align 4, !tbaa !5
  %231 = sub nsw i32 %230, 2
  store i32 %231, ptr %6, align 4, !tbaa !5
  %232 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %233 = load i32, ptr %232, align 4, !tbaa !5
  store i32 %233, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %234

234:                                              ; preds = %229, %226
  %235 = load i32, ptr @x, align 4, !tbaa !5
  %236 = icmp eq i32 %235, 1
  br i1 %236, label %237, label %274

237:                                              ; preds = %234
  %238 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %239 = load i8, ptr %238, align 1, !tbaa !9
  %240 = sext i8 %239 to i32
  %241 = icmp ne i32 %240, 82
  br i1 %241, label %242, label %264

242:                                              ; preds = %237
  %243 = load i32, ptr @l, align 4, !tbaa !5
  %244 = sub nsw i32 %243, 1
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %245)
  %247 = load i8, ptr %246, align 1, !tbaa !9
  %248 = sext i8 %247 to i32
  %249 = icmp ne i32 %248, 82
  br i1 %249, label %250, label %264

250:                                              ; preds = %242
  %251 = load i32, ptr @r, align 4, !tbaa !5
  %252 = icmp sgt i32 %251, 1
  br i1 %252, label %253, label %258

253:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %254 = load i32, ptr @cnt, align 4, !tbaa !5
  %255 = sub nsw i32 %254, 2
  store i32 %255, ptr %7, align 4, !tbaa !5
  %256 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %257 = load i32, ptr %256, align 4, !tbaa !5
  store i32 %257, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %263

258:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %259 = load i32, ptr @cnt, align 4, !tbaa !5
  %260 = sub nsw i32 %259, 1
  store i32 %260, ptr %8, align 4, !tbaa !5
  %261 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %262 = load i32, ptr %261, align 4, !tbaa !5
  store i32 %262, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %263

263:                                              ; preds = %258, %253
  br label %273

264:                                              ; preds = %242, %237
  %265 = load i32, ptr @r, align 4, !tbaa !5
  %266 = icmp sgt i32 %265, 1
  br i1 %266, label %267, label %272

267:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %268 = load i32, ptr @cnt, align 4, !tbaa !5
  %269 = sub nsw i32 %268, 1
  store i32 %269, ptr %9, align 4, !tbaa !5
  %270 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %271 = load i32, ptr %270, align 4, !tbaa !5
  store i32 %271, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %272

272:                                              ; preds = %267, %264
  br label %273

273:                                              ; preds = %272, %263
  br label %274

274:                                              ; preds = %273, %234
  %275 = load i32, ptr @y, align 4, !tbaa !5
  %276 = icmp eq i32 %275, 2
  br i1 %276, label %277, label %301

277:                                              ; preds = %274
  %278 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %279 = load i8, ptr %278, align 1, !tbaa !9
  %280 = sext i8 %279 to i32
  %281 = icmp eq i32 %280, 66
  br i1 %281, label %282, label %295

282:                                              ; preds = %277
  %283 = load i32, ptr @l, align 4, !tbaa !5
  %284 = sub nsw i32 %283, 1
  %285 = sext i32 %284 to i64
  %286 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %285)
  %287 = load i8, ptr %286, align 1, !tbaa !9
  %288 = sext i8 %287 to i32
  %289 = icmp eq i32 %288, 66
  br i1 %289, label %290, label %295

290:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %291 = load i32, ptr @cnt, align 4, !tbaa !5
  %292 = sub nsw i32 %291, 1
  store i32 %292, ptr %10, align 4, !tbaa !5
  %293 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %294 = load i32, ptr %293, align 4, !tbaa !5
  store i32 %294, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %300

295:                                              ; preds = %282, %277
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %296 = load i32, ptr @cnt, align 4, !tbaa !5
  %297 = sub nsw i32 %296, 2
  store i32 %297, ptr %11, align 4, !tbaa !5
  %298 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %299 = load i32, ptr %298, align 4, !tbaa !5
  store i32 %299, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %300

300:                                              ; preds = %295, %290
  br label %301

301:                                              ; preds = %300, %274
  %302 = load i32, ptr @y, align 4, !tbaa !5
  %303 = icmp sgt i32 %302, 2
  br i1 %303, label %304, label %309

304:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %305 = load i32, ptr @cnt, align 4, !tbaa !5
  %306 = sub nsw i32 %305, 2
  store i32 %306, ptr %12, align 4, !tbaa !5
  %307 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %308 = load i32, ptr %307, align 4, !tbaa !5
  store i32 %308, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %309

309:                                              ; preds = %304, %301
  %310 = load i32, ptr @y, align 4, !tbaa !5
  %311 = icmp eq i32 %310, 1
  br i1 %311, label %312, label %349

312:                                              ; preds = %309
  %313 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %314 = load i8, ptr %313, align 1, !tbaa !9
  %315 = sext i8 %314 to i32
  %316 = icmp ne i32 %315, 66
  br i1 %316, label %317, label %339

317:                                              ; preds = %312
  %318 = load i32, ptr @l, align 4, !tbaa !5
  %319 = sub nsw i32 %318, 1
  %320 = sext i32 %319 to i64
  %321 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %320)
  %322 = load i8, ptr %321, align 1, !tbaa !9
  %323 = sext i8 %322 to i32
  %324 = icmp ne i32 %323, 66
  br i1 %324, label %325, label %339

325:                                              ; preds = %317
  %326 = load i32, ptr @b, align 4, !tbaa !5
  %327 = icmp sgt i32 %326, 1
  br i1 %327, label %328, label %333

328:                                              ; preds = %325
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %329 = load i32, ptr @cnt, align 4, !tbaa !5
  %330 = sub nsw i32 %329, 2
  store i32 %330, ptr %13, align 4, !tbaa !5
  %331 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %332 = load i32, ptr %331, align 4, !tbaa !5
  store i32 %332, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %338

333:                                              ; preds = %325
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %334 = load i32, ptr @cnt, align 4, !tbaa !5
  %335 = sub nsw i32 %334, 1
  store i32 %335, ptr %14, align 4, !tbaa !5
  %336 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %337 = load i32, ptr %336, align 4, !tbaa !5
  store i32 %337, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %338

338:                                              ; preds = %333, %328
  br label %348

339:                                              ; preds = %317, %312
  %340 = load i32, ptr @b, align 4, !tbaa !5
  %341 = icmp sgt i32 %340, 1
  br i1 %341, label %342, label %347

342:                                              ; preds = %339
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %343 = load i32, ptr @cnt, align 4, !tbaa !5
  %344 = sub nsw i32 %343, 1
  store i32 %344, ptr %15, align 4, !tbaa !5
  %345 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %346 = load i32, ptr %345, align 4, !tbaa !5
  store i32 %346, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %347

347:                                              ; preds = %342, %339
  br label %348

348:                                              ; preds = %347, %338
  br label %349

349:                                              ; preds = %348, %309
  %350 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) @cnt)
  %351 = load i32, ptr %350, align 4, !tbaa !5
  store i32 %351, ptr @res, align 4, !tbaa !5
  %352 = load i32, ptr @res, align 4, !tbaa !5
  %353 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %352)
  %354 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %353, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %355

355:                                              ; preds = %349, %198
  br label %356

356:                                              ; preds = %355, %182
  br label %17, !llvm.loop !13

357:                                              ; preds = %17
  ret i32 0
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(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.start.p0(i64 immarg, ptr nocapture) #3

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

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

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

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

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

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


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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@t = external dso_local global i32, align 4
@cnt = external dso_local global i32, align 4
@l = external dso_local local_unnamed_addr global i32, align 4
@r = external dso_local local_unnamed_addr global i32, align 4
@b = external dso_local local_unnamed_addr global i32, align 4
@x = external dso_local local_unnamed_addr global i32, align 4
@y = external dso_local local_unnamed_addr global i32, align 4
@res = external dso_local global i32, align 4
@c = external dso_local local_unnamed_addr global i8, align 1
@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @t)
  %14 = load i32, ptr @t, align 4, !tbaa !5
  %15 = add nsw i32 %14, -1
  store i32 %15, ptr @t, align 4, !tbaa !5
  %.not31 = icmp eq i32 %14, 0
  br i1 %.not31, label %._crit_edge34, label %.lr.ph33

.lr.ph33:                                         ; preds = %0, %237
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  store i32 1, ptr @cnt, align 4, !tbaa !5
  store i32 0, ptr @r, align 4, !tbaa !5
  store i32 0, ptr @b, align 4, !tbaa !5
  store i32 0, ptr @x, align 4, !tbaa !5
  store i32 0, ptr @y, align 4, !tbaa !5
  %17 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11) #7
  %18 = trunc i64 %17 to i32
  store i32 %18, ptr @l, align 4, !tbaa !5
  %19 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %20 = load i8, ptr %19, align 1, !tbaa !9
  store i8 %20, ptr @c, align 1, !tbaa !9
  store i32 100000000, ptr @res, align 4, !tbaa !5
  %21 = icmp eq i8 %20, 82
  %r.b = select i1 %21, ptr @r, ptr @b
  %22 = load i32, ptr %r.b, align 4, !tbaa !5
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr %r.b, align 4, !tbaa !5
  %24 = load i32, ptr @l, align 4, !tbaa !5
  %25 = icmp sgt i32 %24, 1
  br i1 %25, label %.lr.ph, label %._crit_edge.thread

.preheader:                                       ; preds = %40
  %26 = icmp sgt i32 %41, 2
  br i1 %26, label %.lr.ph29, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph33, %40
  %indvars.iv = phi i64 [ %indvars.iv.next, %40 ], [ 1, %.lr.ph33 ]
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %indvars.iv)
  %28 = load i8, ptr %27, align 1, !tbaa !9
  %29 = icmp eq i8 %28, 82
  %r.b57 = select i1 %29, ptr @r, ptr @b
  %30 = load i32, ptr %r.b57, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %r.b57, align 4, !tbaa !5
  %32 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %indvars.iv)
  %33 = load i8, ptr %32, align 1, !tbaa !9
  %34 = load i8, ptr @c, align 1, !tbaa !9
  %.not22 = icmp eq i8 %33, %34
  br i1 %.not22, label %40, label %35

35:                                               ; preds = %.lr.ph
  %36 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %indvars.iv)
  %37 = load i8, ptr %36, align 1, !tbaa !9
  store i8 %37, ptr @c, align 1, !tbaa !9
  %38 = load i32, ptr @cnt, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr @cnt, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %.lr.ph, %35
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %41 = load i32, ptr @l, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next, %42
  br i1 %43, label %.lr.ph, label %.preheader, !llvm.loop !10

._crit_edge:                                      ; preds = %66, %.preheader
  %.lcssa26 = phi i32 [ %41, %.preheader ], [ %.pr, %66 ]
  %44 = icmp sgt i32 %.lcssa26, 1
  br i1 %44, label %70, label %thread-pre-split44

.lr.ph29:                                         ; preds = %.preheader, %66
  %indvars.iv37 = phi i64 [ %indvars.iv.next38.pre-phi, %66 ], [ 1, %.preheader ]
  %45 = add nsw i64 %indvars.iv37, -1
  %46 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %45)
  %47 = load i8, ptr %46, align 1, !tbaa !9
  %48 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %indvars.iv37)
  %49 = load i8, ptr %48, align 1, !tbaa !9
  %.not20 = icmp eq i8 %47, %49
  br i1 %.not20, label %.lr.ph29._crit_edge, label %50

.lr.ph29._crit_edge:                              ; preds = %.lr.ph29
  %.pre41 = add nuw nsw i64 %indvars.iv37, 1
  br label %66

50:                                               ; preds = %.lr.ph29
  %51 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %indvars.iv37)
  %52 = load i8, ptr %51, align 1, !tbaa !9
  %53 = add nuw nsw i64 %indvars.iv37, 1
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %53)
  %55 = load i8, ptr %54, align 1, !tbaa !9
  %.not21 = icmp eq i8 %52, %55
  br i1 %.not21, label %66, label %56

56:                                               ; preds = %50
  %57 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %indvars.iv37)
  %58 = load i8, ptr %57, align 1, !tbaa !9
  %59 = icmp eq i8 %58, 82
  br i1 %59, label %60, label %63

60:                                               ; preds = %56
  %61 = load i32, ptr @x, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr @x, align 4, !tbaa !5
  br label %66

63:                                               ; preds = %56
  %64 = load i32, ptr @y, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr @y, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %.lr.ph29._crit_edge, %50, %63, %60
  %indvars.iv.next38.pre-phi = phi i64 [ %.pre41, %.lr.ph29._crit_edge ], [ %53, %50 ], [ %53, %63 ], [ %53, %60 ]
  %.pr = load i32, ptr @l, align 4, !tbaa !5
  %67 = add nsw i32 %.pr, -1
  %68 = sext i32 %67 to i64
  %69 = icmp slt i64 %indvars.iv.next38.pre-phi, %68
  br i1 %69, label %.lr.ph29, label %._crit_edge, !llvm.loop !12

70:                                               ; preds = %._crit_edge
  %71 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %72 = load i8, ptr %71, align 1, !tbaa !9
  %73 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 1)
  %74 = load i8, ptr %73, align 1, !tbaa !9
  %.not14 = icmp eq i8 %72, %74
  br i1 %.not14, label %80, label %.sink.split

.sink.split:                                      ; preds = %70
  %75 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %76 = load i8, ptr %75, align 1, !tbaa !9
  %77 = icmp eq i8 %76, 82
  %x.y = select i1 %77, ptr @x, ptr @y
  %78 = load i32, ptr %x.y, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %x.y, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %.sink.split, %70
  %81 = load i32, ptr @l, align 4, !tbaa !5
  %82 = add nsw i32 %81, -1
  %83 = sext i32 %82 to i64
  %84 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %83)
  %85 = load i8, ptr %84, align 1, !tbaa !9
  %86 = load i32, ptr @l, align 4, !tbaa !5
  %87 = add nsw i32 %86, -2
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %88)
  %90 = load i8, ptr %89, align 1, !tbaa !9
  %.not15 = icmp eq i8 %85, %90
  br i1 %.not15, label %thread-pre-split44, label %thread-pre-split44.sink.split

thread-pre-split44.sink.split:                    ; preds = %80
  %91 = load i32, ptr @l, align 4, !tbaa !5
  %92 = add nsw i32 %91, -1
  %93 = sext i32 %92 to i64
  %94 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %93)
  %95 = load i8, ptr %94, align 1, !tbaa !9
  %96 = icmp eq i8 %95, 82
  %x.y58 = select i1 %96, ptr @x, ptr @y
  %97 = load i32, ptr %x.y58, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %x.y58, align 4, !tbaa !5
  br label %thread-pre-split44

thread-pre-split44:                               ; preds = %thread-pre-split44.sink.split, %._crit_edge, %80
  %.pr45 = load i32, ptr @l, align 4, !tbaa !5
  br label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.lr.ph33, %thread-pre-split44
  %99 = phi i32 [ %.pr45, %thread-pre-split44 ], [ %24, %.lr.ph33 ]
  switch i32 %99, label %104 [
    i32 1, label %237
    i32 2, label %100
  ]

100:                                              ; preds = %._crit_edge.thread
  %101 = load i32, ptr @r, align 4, !tbaa !5
  %102 = load i32, ptr @b, align 4, !tbaa !5
  %103 = icmp eq i32 %101, %102
  %. = select i1 %103, i32 2, i32 1
  br label %237

104:                                              ; preds = %._crit_edge.thread
  %105 = load i32, ptr @x, align 4, !tbaa !5
  %106 = icmp eq i32 %105, 2
  br i1 %106, label %107, label %128

107:                                              ; preds = %104
  %108 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %109 = load i8, ptr %108, align 1, !tbaa !9
  %110 = icmp eq i8 %109, 82
  br i1 %110, label %111, label %123

111:                                              ; preds = %107
  %112 = load i32, ptr @l, align 4, !tbaa !5
  %113 = add nsw i32 %112, -1
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %114)
  %116 = load i8, ptr %115, align 1, !tbaa !9
  %117 = icmp eq i8 %116, 82
  br i1 %117, label %118, label %123

118:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %119 = load i32, ptr @cnt, align 4, !tbaa !5
  %120 = add nsw i32 %119, -1
  store i32 %120, ptr %1, align 4, !tbaa !5
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %122 = load i32, ptr %121, align 4, !tbaa !5
  store i32 %122, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  br label %thread-pre-split

123:                                              ; preds = %111, %107
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %124 = load i32, ptr @cnt, align 4, !tbaa !5
  %125 = add nsw i32 %124, -2
  store i32 %125, ptr %2, align 4, !tbaa !5
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %127 = load i32, ptr %126, align 4, !tbaa !5
  store i32 %127, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  br label %thread-pre-split

thread-pre-split:                                 ; preds = %123, %118
  %.pr23 = load i32, ptr @x, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %thread-pre-split, %104
  %129 = phi i32 [ %.pr23, %thread-pre-split ], [ %105, %104 ]
  %130 = icmp sgt i32 %129, 2
  br i1 %130, label %131, label %136

131:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %132 = load i32, ptr @cnt, align 4, !tbaa !5
  %133 = add nsw i32 %132, -2
  store i32 %133, ptr %3, align 4, !tbaa !5
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %135 = load i32, ptr %134, align 4, !tbaa !5
  store i32 %135, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %.pre = load i32, ptr @x, align 4, !tbaa !5
  br label %136

136:                                              ; preds = %131, %128
  %137 = phi i32 [ %.pre, %131 ], [ %129, %128 ]
  %138 = icmp eq i32 %137, 1
  br i1 %138, label %139, label %169

139:                                              ; preds = %136
  %140 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %141 = load i8, ptr %140, align 1, !tbaa !9
  %.not16 = icmp eq i8 %141, 82
  br i1 %.not16, label %161, label %142

142:                                              ; preds = %139
  %143 = load i32, ptr @l, align 4, !tbaa !5
  %144 = add nsw i32 %143, -1
  %145 = sext i32 %144 to i64
  %146 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %145)
  %147 = load i8, ptr %146, align 1, !tbaa !9
  %.not17 = icmp eq i8 %147, 82
  br i1 %.not17, label %161, label %148

148:                                              ; preds = %142
  %149 = load i32, ptr @r, align 4, !tbaa !5
  %150 = icmp sgt i32 %149, 1
  br i1 %150, label %151, label %156

151:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %152 = load i32, ptr @cnt, align 4, !tbaa !5
  %153 = add nsw i32 %152, -2
  store i32 %153, ptr %4, align 4, !tbaa !5
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %155 = load i32, ptr %154, align 4, !tbaa !5
  store i32 %155, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  br label %169

156:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %157 = load i32, ptr @cnt, align 4, !tbaa !5
  %158 = add nsw i32 %157, -1
  store i32 %158, ptr %5, align 4, !tbaa !5
  %159 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %160 = load i32, ptr %159, align 4, !tbaa !5
  store i32 %160, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %169

161:                                              ; preds = %142, %139
  %162 = load i32, ptr @r, align 4, !tbaa !5
  %163 = icmp sgt i32 %162, 1
  br i1 %163, label %164, label %169

164:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %165 = load i32, ptr @cnt, align 4, !tbaa !5
  %166 = add nsw i32 %165, -1
  store i32 %166, ptr %6, align 4, !tbaa !5
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %168 = load i32, ptr %167, align 4, !tbaa !5
  store i32 %168, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  br label %169

169:                                              ; preds = %156, %151, %164, %161, %136
  %170 = load i32, ptr @y, align 4, !tbaa !5
  %171 = icmp eq i32 %170, 2
  br i1 %171, label %172, label %193

172:                                              ; preds = %169
  %173 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %174 = load i8, ptr %173, align 1, !tbaa !9
  %175 = icmp eq i8 %174, 66
  br i1 %175, label %176, label %188

176:                                              ; preds = %172
  %177 = load i32, ptr @l, align 4, !tbaa !5
  %178 = add nsw i32 %177, -1
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %179)
  %181 = load i8, ptr %180, align 1, !tbaa !9
  %182 = icmp eq i8 %181, 66
  br i1 %182, label %183, label %188

183:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %184 = load i32, ptr @cnt, align 4, !tbaa !5
  %185 = add nsw i32 %184, -1
  store i32 %185, ptr %7, align 4, !tbaa !5
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %187 = load i32, ptr %186, align 4, !tbaa !5
  store i32 %187, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  br label %thread-pre-split24

188:                                              ; preds = %176, %172
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %189 = load i32, ptr @cnt, align 4, !tbaa !5
  %190 = add nsw i32 %189, -2
  store i32 %190, ptr %8, align 4, !tbaa !5
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %192 = load i32, ptr %191, align 4, !tbaa !5
  store i32 %192, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  br label %thread-pre-split24

thread-pre-split24:                               ; preds = %188, %183
  %.pr25 = load i32, ptr @y, align 4, !tbaa !5
  br label %193

193:                                              ; preds = %thread-pre-split24, %169
  %194 = phi i32 [ %.pr25, %thread-pre-split24 ], [ %170, %169 ]
  %195 = icmp sgt i32 %194, 2
  br i1 %195, label %196, label %201

196:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %197 = load i32, ptr @cnt, align 4, !tbaa !5
  %198 = add nsw i32 %197, -2
  store i32 %198, ptr %9, align 4, !tbaa !5
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %200 = load i32, ptr %199, align 4, !tbaa !5
  store i32 %200, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  %.pre40 = load i32, ptr @y, align 4, !tbaa !5
  br label %201

201:                                              ; preds = %196, %193
  %202 = phi i32 [ %.pre40, %196 ], [ %194, %193 ]
  %203 = icmp eq i32 %202, 1
  br i1 %203, label %204, label %234

204:                                              ; preds = %201
  %205 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 0)
  %206 = load i8, ptr %205, align 1, !tbaa !9
  %.not18 = icmp eq i8 %206, 66
  br i1 %.not18, label %226, label %207

207:                                              ; preds = %204
  %208 = load i32, ptr @l, align 4, !tbaa !5
  %209 = add nsw i32 %208, -1
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %210)
  %212 = load i8, ptr %211, align 1, !tbaa !9
  %.not19 = icmp eq i8 %212, 66
  br i1 %.not19, label %226, label %213

213:                                              ; preds = %207
  %214 = load i32, ptr @b, align 4, !tbaa !5
  %215 = icmp sgt i32 %214, 1
  br i1 %215, label %216, label %221

216:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %217 = load i32, ptr @cnt, align 4, !tbaa !5
  %218 = add nsw i32 %217, -2
  store i32 %218, ptr %10, align 4, !tbaa !5
  %219 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %220 = load i32, ptr %219, align 4, !tbaa !5
  store i32 %220, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  br label %234

221:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %222 = load i32, ptr @cnt, align 4, !tbaa !5
  %223 = add nsw i32 %222, -1
  store i32 %223, ptr %11, align 4, !tbaa !5
  %224 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %225 = load i32, ptr %224, align 4, !tbaa !5
  store i32 %225, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  br label %234

226:                                              ; preds = %207, %204
  %227 = load i32, ptr @b, align 4, !tbaa !5
  %228 = icmp sgt i32 %227, 1
  br i1 %228, label %229, label %234

229:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %230 = load i32, ptr @cnt, align 4, !tbaa !5
  %231 = add nsw i32 %230, -1
  store i32 %231, ptr %12, align 4, !tbaa !5
  %232 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %233 = load i32, ptr %232, align 4, !tbaa !5
  store i32 %233, ptr @res, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  br label %234

234:                                              ; preds = %221, %216, %229, %226, %201
  %235 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @res, ptr noundef nonnull align 4 dereferenceable(4) @cnt)
  %236 = load i32, ptr %235, align 4, !tbaa !5
  store i32 %236, ptr @res, align 4, !tbaa !5
  br label %237

237:                                              ; preds = %100, %._crit_edge.thread, %234
  %.sink56 = phi i32 [ %236, %234 ], [ %99, %._crit_edge.thread ], [ %., %100 ]
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sink56)
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %238, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %240 = load i32, ptr @t, align 4, !tbaa !5
  %241 = add nsw i32 %240, -1
  store i32 %241, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %240, 0
  br i1 %.not, label %._crit_edge34, label %.lr.ph33, !llvm.loop !13

._crit_edge34:                                    ; preds = %237, %0
  ret i32 0
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(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.start.p0(i64 immarg, ptr nocapture) #3

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

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 uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2

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

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

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


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