; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/307 Division 2/Problem B (B)

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

@cnt1 = external dso_local global [26 x i32], align 16
@cnt2 = external dso_local global [26 x i32], align 16
@cnt3 = external dso_local global [26 x i32], align 16
@ansa = external dso_local global i32, align 4
@ansb = external dso_local global i32, align 4
@_Z1aB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z1bB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z1cB5cxx11 = 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
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; 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
  %16 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %17 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %18 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %19 = getelementptr i8, ptr %18, i64 -24
  %20 = load i64, ptr %19, align 8
  %21 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %20
  %22 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %21, ptr noundef null)
  %23 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %24 = getelementptr i8, ptr %23, i64 -24
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %25
  %27 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %26, ptr noundef null)
  %28 = 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) @_Z1aB5cxx11)
  %29 = 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) %28, ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11)
  %30 = 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) %29, ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !8
  br label %31

31:                                               ; preds = %48, %0
  %32 = load i32, ptr %2, align 4, !tbaa !8
  %33 = sext i32 %32 to i64
  %34 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11) #6
  %35 = icmp ult i64 %33, %34
  br i1 %35, label %37, label %36

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

37:                                               ; preds = %31
  %38 = load i32, ptr %2, align 4, !tbaa !8
  %39 = sext i32 %38 to i64
  %40 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11, i64 noundef %39)
  %41 = load i8, ptr %40, align 1, !tbaa !11
  %42 = sext i8 %41 to i32
  %43 = sub nsw i32 %42, 97
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [26 x i32], ptr @cnt1, i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !8
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %45, align 4, !tbaa !8
  br label %48

48:                                               ; preds = %37
  %49 = load i32, ptr %2, align 4, !tbaa !8
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %2, align 4, !tbaa !8
  br label %31, !llvm.loop !12

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

52:                                               ; preds = %69, %51
  %53 = load i32, ptr %3, align 4, !tbaa !8
  %54 = sext i32 %53 to i64
  %55 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11) #6
  %56 = icmp ult i64 %54, %55
  br i1 %56, label %58, label %57

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

58:                                               ; preds = %52
  %59 = load i32, ptr %3, align 4, !tbaa !8
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11, i64 noundef %60)
  %62 = load i8, ptr %61, align 1, !tbaa !11
  %63 = sext i8 %62 to i32
  %64 = sub nsw i32 %63, 97
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [26 x i32], ptr @cnt2, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !8
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %66, align 4, !tbaa !8
  br label %69

69:                                               ; preds = %58
  %70 = load i32, ptr %3, align 4, !tbaa !8
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %3, align 4, !tbaa !8
  br label %52, !llvm.loop !14

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

73:                                               ; preds = %90, %72
  %74 = load i32, ptr %4, align 4, !tbaa !8
  %75 = sext i32 %74 to i64
  %76 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11) #6
  %77 = icmp ult i64 %75, %76
  br i1 %77, label %79, label %78

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

79:                                               ; preds = %73
  %80 = load i32, ptr %4, align 4, !tbaa !8
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11, i64 noundef %81)
  %83 = load i8, ptr %82, align 1, !tbaa !11
  %84 = sext i8 %83 to i32
  %85 = sub nsw i32 %84, 97
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [26 x i32], ptr @cnt3, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !8
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %87, align 4, !tbaa !8
  br label %90

90:                                               ; preds = %79
  %91 = load i32, ptr %4, align 4, !tbaa !8
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %4, align 4, !tbaa !8
  br label %73, !llvm.loop !15

93:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 1000000, ptr %5, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !8
  br label %94

94:                                               ; preds = %117, %93
  %95 = load i32, ptr %6, align 4, !tbaa !8
  %96 = icmp slt i32 %95, 26
  br i1 %96, label %98, label %97

97:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %120

98:                                               ; preds = %94
  %99 = load i32, ptr %6, align 4, !tbaa !8
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [26 x i32], ptr @cnt2, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !8
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %116

104:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %105 = load i32, ptr %6, align 4, !tbaa !8
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [26 x i32], ptr @cnt1, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !8
  %109 = load i32, ptr %6, align 4, !tbaa !8
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [26 x i32], ptr @cnt2, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !8
  %113 = sdiv i32 %108, %112
  store i32 %113, ptr %7, align 4, !tbaa !8
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %115 = load i32, ptr %114, align 4, !tbaa !8
  store i32 %115, ptr %5, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %116

116:                                              ; preds = %104, %98
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %6, align 4, !tbaa !8
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %6, align 4, !tbaa !8
  br label %94, !llvm.loop !16

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

121:                                              ; preds = %172, %120
  %122 = load i32, ptr %8, align 4, !tbaa !8
  %123 = load i32, ptr %5, align 4, !tbaa !8
  %124 = icmp sle i32 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %121
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %175

126:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 1000000, ptr %10, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !8
  br label %127

127:                                              ; preds = %157, %126
  %128 = load i32, ptr %11, align 4, !tbaa !8
  %129 = icmp slt i32 %128, 26
  br i1 %129, label %131, label %130

130:                                              ; preds = %127
  store i32 17, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %160

131:                                              ; preds = %127
  %132 = load i32, ptr %11, align 4, !tbaa !8
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [26 x i32], ptr @cnt3, i64 0, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !8
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %156

137:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %138 = load i32, ptr %11, align 4, !tbaa !8
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [26 x i32], ptr @cnt1, i64 0, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !8
  %142 = load i32, ptr %11, align 4, !tbaa !8
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [26 x i32], ptr @cnt2, i64 0, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !8
  %146 = load i32, ptr %8, align 4, !tbaa !8
  %147 = mul nsw i32 %145, %146
  %148 = sub nsw i32 %141, %147
  %149 = load i32, ptr %11, align 4, !tbaa !8
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [26 x i32], ptr @cnt3, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !8
  %153 = sdiv i32 %148, %152
  store i32 %153, ptr %12, align 4, !tbaa !8
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %155 = load i32, ptr %154, align 4, !tbaa !8
  store i32 %155, ptr %10, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %156

156:                                              ; preds = %137, %131
  br label %157

157:                                              ; preds = %156
  %158 = load i32, ptr %11, align 4, !tbaa !8
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %11, align 4, !tbaa !8
  br label %127, !llvm.loop !17

160:                                              ; preds = %130
  %161 = load i32, ptr %8, align 4, !tbaa !8
  %162 = load i32, ptr %10, align 4, !tbaa !8
  %163 = add nsw i32 %161, %162
  %164 = load i32, ptr @ansa, align 4, !tbaa !8
  %165 = load i32, ptr @ansb, align 4, !tbaa !8
  %166 = add nsw i32 %164, %165
  %167 = icmp sgt i32 %163, %166
  br i1 %167, label %168, label %171

168:                                              ; preds = %160
  %169 = load i32, ptr %8, align 4, !tbaa !8
  store i32 %169, ptr @ansa, align 4, !tbaa !8
  %170 = load i32, ptr %10, align 4, !tbaa !8
  store i32 %170, ptr @ansb, align 4, !tbaa !8
  br label %171

171:                                              ; preds = %168, %160
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %172

172:                                              ; preds = %171
  %173 = load i32, ptr %8, align 4, !tbaa !8
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %8, align 4, !tbaa !8
  br label %121, !llvm.loop !18

175:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !8
  br label %176

176:                                              ; preds = %183, %175
  %177 = load i32, ptr %13, align 4, !tbaa !8
  %178 = load i32, ptr @ansa, align 4, !tbaa !8
  %179 = icmp slt i32 %177, %178
  br i1 %179, label %181, label %180

180:                                              ; preds = %176
  store i32 20, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %186

181:                                              ; preds = %176
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11)
  br label %183

183:                                              ; preds = %181
  %184 = load i32, ptr %13, align 4, !tbaa !8
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %13, align 4, !tbaa !8
  br label %176, !llvm.loop !19

186:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !8
  br label %187

187:                                              ; preds = %194, %186
  %188 = load i32, ptr %14, align 4, !tbaa !8
  %189 = load i32, ptr @ansb, align 4, !tbaa !8
  %190 = icmp slt i32 %188, %189
  br i1 %190, label %192, label %191

191:                                              ; preds = %187
  store i32 23, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %197

192:                                              ; preds = %187
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11)
  br label %194

194:                                              ; preds = %192
  %195 = load i32, ptr %14, align 4, !tbaa !8
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %14, align 4, !tbaa !8
  br label %187, !llvm.loop !20

197:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !8
  br label %198

198:                                              ; preds = %234, %197
  %199 = load i32, ptr %15, align 4, !tbaa !8
  %200 = icmp slt i32 %199, 26
  br i1 %200, label %202, label %201

201:                                              ; preds = %198
  store i32 26, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %237

202:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !8
  br label %203

203:                                              ; preds = %230, %202
  %204 = load i32, ptr %16, align 4, !tbaa !8
  %205 = load i32, ptr %15, align 4, !tbaa !8
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [26 x i32], ptr @cnt1, i64 0, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !8
  %209 = load i32, ptr %15, align 4, !tbaa !8
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [26 x i32], ptr @cnt2, i64 0, i64 %210
  %212 = load i32, ptr %211, align 4, !tbaa !8
  %213 = load i32, ptr @ansa, align 4, !tbaa !8
  %214 = mul nsw i32 %212, %213
  %215 = sub nsw i32 %208, %214
  %216 = load i32, ptr %15, align 4, !tbaa !8
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [26 x i32], ptr @cnt3, i64 0, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !8
  %220 = load i32, ptr @ansb, align 4, !tbaa !8
  %221 = mul nsw i32 %219, %220
  %222 = sub nsw i32 %215, %221
  %223 = icmp slt i32 %204, %222
  br i1 %223, label %225, label %224

224:                                              ; preds = %203
  store i32 29, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %233

225:                                              ; preds = %203
  %226 = load i32, ptr %15, align 4, !tbaa !8
  %227 = add nsw i32 %226, 97
  %228 = trunc i32 %227 to i8
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %228)
  br label %230

230:                                              ; preds = %225
  %231 = load i32, ptr %16, align 4, !tbaa !8
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %16, align 4, !tbaa !8
  br label %203, !llvm.loop !21

233:                                              ; preds = %224
  br label %234

234:                                              ; preds = %233
  %235 = load i32, ptr %15, align 4, !tbaa !8
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %15, align 4, !tbaa !8
  br label %198, !llvm.loop !22

237:                                              ; preds = %201
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  %239 = load i32, ptr %1, align 4
  ret i32 %239
}

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

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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"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}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !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::__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" }

@cnt1 = external dso_local local_unnamed_addr global [26 x i32], align 16
@cnt2 = external dso_local local_unnamed_addr global [26 x i32], align 16
@cnt3 = external dso_local local_unnamed_addr global [26 x i32], align 16
@ansa = external dso_local local_unnamed_addr global i32, align 4
@ansb = external dso_local local_unnamed_addr global i32, align 4
@_Z1aB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z1bB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z1cB5cxx11 = 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
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; 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 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %6 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %7 = getelementptr i8, ptr %6, i64 -24
  %8 = load i64, ptr %7, align 8
  %9 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %8
  %10 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %9, ptr noundef null)
  %11 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %13
  %15 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %14, ptr noundef null)
  %16 = tail 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) @_Z1aB5cxx11)
  %17 = tail 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) %16, ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11)
  %18 = tail 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) %17, ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11)
  %19 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11) #6
  %.not82 = icmp eq i64 %19, 0
  br i1 %.not82, label %.preheader59, label %.lr.ph

.preheader59:                                     ; preds = %.lr.ph, %0
  %20 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11) #6
  %.not83 = icmp eq i64 %20, 0
  br i1 %.not83, label %.preheader58, label %.lr.ph62

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %21 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11, i64 noundef %indvars.iv)
  %22 = load i8, ptr %21, align 1, !tbaa !8
  %23 = sext i8 %22 to i64
  %24 = add nsw i64 %23, -97
  %25 = getelementptr inbounds [26 x i32], ptr @cnt1, i64 0, i64 %24
  %26 = load i32, ptr %25, align 4, !tbaa !10
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %25, align 4, !tbaa !10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %28 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1aB5cxx11) #6
  %29 = icmp ugt i64 %28, %indvars.iv.next
  br i1 %29, label %.lr.ph, label %.preheader59, !llvm.loop !12

.preheader58:                                     ; preds = %.lr.ph62, %.preheader59
  %30 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11) #6
  %.not84 = icmp eq i64 %30, 0
  br i1 %.not84, label %._crit_edge, label %.lr.ph64

.lr.ph62:                                         ; preds = %.preheader59, %.lr.ph62
  %indvars.iv86 = phi i64 [ %indvars.iv.next87, %.lr.ph62 ], [ 0, %.preheader59 ]
  %31 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11, i64 noundef %indvars.iv86)
  %32 = load i8, ptr %31, align 1, !tbaa !8
  %33 = sext i8 %32 to i64
  %34 = add nsw i64 %33, -97
  %35 = getelementptr inbounds [26 x i32], ptr @cnt2, i64 0, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !10
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %35, align 4, !tbaa !10
  %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
  %38 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11) #6
  %39 = icmp ugt i64 %38, %indvars.iv.next87
  br i1 %39, label %.lr.ph62, label %.preheader58, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph64, %.preheader58
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  store i32 1000000, ptr %1, align 4, !tbaa !10
  br label %49

.lr.ph64:                                         ; preds = %.preheader58, %.lr.ph64
  %indvars.iv89 = phi i64 [ %indvars.iv.next90, %.lr.ph64 ], [ 0, %.preheader58 ]
  %40 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11, i64 noundef %indvars.iv89)
  %41 = load i8, ptr %40, align 1, !tbaa !8
  %42 = sext i8 %41 to i64
  %43 = add nsw i64 %42, -97
  %44 = getelementptr inbounds [26 x i32], ptr @cnt3, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !10
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %44, align 4, !tbaa !10
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %47 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11) #6
  %48 = icmp ugt i64 %47, %indvars.iv.next90
  br i1 %48, label %.lr.ph64, label %._crit_edge, !llvm.loop !15

.preheader57:                                     ; preds = %59
  %.not67 = icmp slt i32 %60, 0
  br i1 %.not67, label %.preheader57..preheader56_crit_edge, label %.lr.ph69

.preheader57..preheader56_crit_edge:              ; preds = %.preheader57
  %.pre = load i32, ptr @ansa, align 4, !tbaa !10
  br label %.preheader56

49:                                               ; preds = %._crit_edge, %59
  %50 = phi i32 [ 1000000, %._crit_edge ], [ %60, %59 ]
  %indvars.iv92 = phi i64 [ 0, %._crit_edge ], [ %indvars.iv.next93, %59 ]
  %51 = getelementptr inbounds [26 x i32], ptr @cnt2, i64 0, i64 %indvars.iv92
  %52 = load i32, ptr %51, align 4, !tbaa !10
  %.not51 = icmp eq i32 %52, 0
  br i1 %.not51, label %59, label %53

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %54 = getelementptr inbounds [26 x i32], ptr @cnt1, i64 0, i64 %indvars.iv92
  %55 = load i32, ptr %54, align 4, !tbaa !10
  %56 = sdiv i32 %55, %52
  store i32 %56, ptr %2, align 4, !tbaa !10
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %58 = load i32, ptr %57, align 4, !tbaa !10
  store i32 %58, ptr %1, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  br label %59

59:                                               ; preds = %49, %53
  %60 = phi i32 [ %50, %49 ], [ %58, %53 ]
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next93, 26
  br i1 %exitcond.not, label %.preheader57, label %49, !llvm.loop !16

.preheader56:                                     ; preds = %86, %.preheader57..preheader56_crit_edge
  %61 = phi i32 [ %.pre, %.preheader57..preheader56_crit_edge ], [ %87, %86 ]
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %.lr.ph71, label %.preheader55

.lr.ph69:                                         ; preds = %.preheader57, %86
  %.04268 = phi i32 [ %88, %86 ], [ 0, %.preheader57 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 1000000, ptr %3, align 4, !tbaa !10
  br label %69

63:                                               ; preds = %83
  %64 = add nsw i32 %84, %.04268
  %65 = load i32, ptr @ansa, align 4, !tbaa !10
  %66 = load i32, ptr @ansb, align 4, !tbaa !10
  %67 = add nsw i32 %66, %65
  %68 = icmp sgt i32 %64, %67
  br i1 %68, label %85, label %86

69:                                               ; preds = %.lr.ph69, %83
  %70 = phi i32 [ 1000000, %.lr.ph69 ], [ %84, %83 ]
  %indvars.iv95 = phi i64 [ 0, %.lr.ph69 ], [ %indvars.iv.next96, %83 ]
  %71 = getelementptr inbounds [26 x i32], ptr @cnt3, i64 0, i64 %indvars.iv95
  %72 = load i32, ptr %71, align 4, !tbaa !10
  %.not50 = icmp eq i32 %72, 0
  br i1 %.not50, label %83, label %73

73:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %74 = getelementptr inbounds [26 x i32], ptr @cnt1, i64 0, i64 %indvars.iv95
  %75 = load i32, ptr %74, align 4, !tbaa !10
  %76 = getelementptr inbounds [26 x i32], ptr @cnt2, i64 0, i64 %indvars.iv95
  %77 = load i32, ptr %76, align 4, !tbaa !10
  %78 = mul nsw i32 %77, %.04268
  %79 = sub nsw i32 %75, %78
  %80 = sdiv i32 %79, %72
  store i32 %80, ptr %4, align 4, !tbaa !10
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %82 = load i32, ptr %81, align 4, !tbaa !10
  store i32 %82, ptr %3, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  br label %83

83:                                               ; preds = %69, %73
  %84 = phi i32 [ %70, %69 ], [ %82, %73 ]
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %exitcond98.not = icmp eq i64 %indvars.iv.next96, 26
  br i1 %exitcond98.not, label %63, label %69, !llvm.loop !17

85:                                               ; preds = %63
  store i32 %.04268, ptr @ansa, align 4, !tbaa !10
  store i32 %84, ptr @ansb, align 4, !tbaa !10
  br label %86

86:                                               ; preds = %85, %63
  %87 = phi i32 [ %.04268, %85 ], [ %65, %63 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  %88 = add nuw nsw i32 %.04268, 1
  %89 = load i32, ptr %1, align 4, !tbaa !10
  %.not.not = icmp slt i32 %.04268, %89
  br i1 %.not.not, label %.lr.ph69, label %.preheader56, !llvm.loop !18

.preheader55:                                     ; preds = %.lr.ph71, %.preheader56
  %.pre103105 = phi i32 [ %61, %.preheader56 ], [ %94, %.lr.ph71 ]
  %90 = load i32, ptr @ansb, align 4, !tbaa !10
  %91 = icmp sgt i32 %90, 0
  br i1 %91, label %.lr.ph73, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader54.loopexit, %.preheader55
  %.ph = phi i32 [ %90, %.preheader55 ], [ %98, %.preheader54.loopexit ]
  %.ph118 = phi i32 [ %.pre103105, %.preheader55 ], [ %.pre103.pre, %.preheader54.loopexit ]
  br label %.preheader

.lr.ph71:                                         ; preds = %.preheader56, %.lr.ph71
  %.04070 = phi i32 [ %93, %.lr.ph71 ], [ 0, %.preheader56 ]
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) @_Z1bB5cxx11)
  %93 = add nuw nsw i32 %.04070, 1
  %94 = load i32, ptr @ansa, align 4, !tbaa !10
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %.lr.ph71, label %.preheader55, !llvm.loop !19

.preheader54.loopexit:                            ; preds = %.lr.ph73
  %.pre103.pre = load i32, ptr @ansa, align 4, !tbaa !10
  br label %.preheader.preheader

.lr.ph73:                                         ; preds = %.preheader55, %.lr.ph73
  %.03972 = phi i32 [ %97, %.lr.ph73 ], [ 0, %.preheader55 ]
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) @_Z1cB5cxx11)
  %97 = add nuw nsw i32 %.03972, 1
  %98 = load i32, ptr @ansb, align 4, !tbaa !10
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %.lr.ph73, label %.preheader54.loopexit, !llvm.loop !20

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge80
  %100 = phi i32 [ %114, %._crit_edge80 ], [ %.ph, %.preheader.preheader ]
  %101 = phi i32 [ %115, %._crit_edge80 ], [ %.ph118, %.preheader.preheader ]
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %._crit_edge80 ], [ 0, %.preheader.preheader ]
  %102 = getelementptr inbounds [26 x i32], ptr @cnt1, i64 0, i64 %indvars.iv99
  %103 = getelementptr inbounds [26 x i32], ptr @cnt2, i64 0, i64 %indvars.iv99
  %104 = getelementptr inbounds [26 x i32], ptr @cnt3, i64 0, i64 %indvars.iv99
  %105 = load i32, ptr %102, align 4, !tbaa !10
  %106 = load i32, ptr %103, align 4, !tbaa !10
  %107 = load i32, ptr %104, align 4, !tbaa !10
  %.neg74 = mul i32 %101, %106
  %.neg5275 = mul i32 %100, %107
  %reass.add76 = add i32 %.neg5275, %.neg74
  %108 = sub i32 %105, %reass.add76
  %109 = icmp sgt i32 %108, 0
  br i1 %109, label %.lr.ph79, label %._crit_edge80

.lr.ph79:                                         ; preds = %.preheader
  %110 = trunc i64 %indvars.iv99 to i8
  %111 = add nuw i8 %110, 97
  br label %116

112:                                              ; preds = %._crit_edge80
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0

._crit_edge80:                                    ; preds = %116, %.preheader
  %114 = phi i32 [ %100, %.preheader ], [ %123, %116 ]
  %115 = phi i32 [ %101, %.preheader ], [ %121, %116 ]
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %exitcond102.not = icmp eq i64 %indvars.iv.next100, 26
  br i1 %exitcond102.not, label %112, label %.preheader, !llvm.loop !21

116:                                              ; preds = %.lr.ph79, %116
  %.078 = phi i32 [ 0, %.lr.ph79 ], [ %118, %116 ]
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %111)
  %118 = add nuw nsw i32 %.078, 1
  %119 = load i32, ptr %102, align 4, !tbaa !10
  %120 = load i32, ptr %103, align 4, !tbaa !10
  %121 = load i32, ptr @ansa, align 4, !tbaa !10
  %122 = load i32, ptr %104, align 4, !tbaa !10
  %123 = load i32, ptr @ansb, align 4, !tbaa !10
  %.neg = mul i32 %121, %120
  %.neg52 = mul i32 %123, %122
  %reass.add = add i32 %.neg52, %.neg
  %124 = sub i32 %119, %reass.add
  %125 = icmp slt i32 %118, %124
  br i1 %125, label %116, label %._crit_edge80, !llvm.loop !22
}

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

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

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

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

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

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

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

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

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

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

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

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


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