; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/LONG/FEB15/STRQ (str)

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

@dp = external dso_local global [4 x [4 x [1000001 x i64]]], align 16
@cnt = external dso_local global [4 x [1000001 x i64]], align 16
@a = external dso_local global i32, align 4
@b = external dso_local global i32, align 4
@c = external dso_local global i32, align 4
@d = external dso_local global i32, align 4
@l = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@le = external dso_local global i32, align 4
@ri = external dso_local global i32, align 4
@a1 = external dso_local global i32, align 4
@a2 = external dso_local global i32, align 4
@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@x = external dso_local global i8, align 1
@y = external dso_local global i8, align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %6

6:                                                ; preds = %31, %0
  %7 = load i32, ptr %2, align 4, !tbaa !5
  %8 = icmp slt i32 %7, 4
  br i1 %8, label %10, label %9

9:                                                ; preds = %6
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %34

10:                                               ; preds = %6
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [4 x [1000001 x i64]], ptr @cnt, i64 0, i64 %12
  %14 = getelementptr inbounds [1000001 x i64], ptr %13, i64 0, i64 0
  store i64 0, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %27, %10
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = icmp slt i32 %16, 4
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %30

19:                                               ; preds = %15
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 %21
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [4 x [1000001 x i64]], ptr %22, i64 0, i64 %24
  %26 = getelementptr inbounds [1000001 x i64], ptr %25, i64 0, i64 0
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %27

27:                                               ; preds = %19
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %4, align 4, !tbaa !5
  br label %15, !llvm.loop !11

30:                                               ; preds = %18
  br label %31

31:                                               ; preds = %30
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %2, align 4, !tbaa !5
  br label %6, !llvm.loop !13

34:                                               ; preds = %9
  store i32 0, ptr @d, align 4, !tbaa !5
  store i32 0, ptr @c, align 4, !tbaa !5
  store i32 0, ptr @b, align 4, !tbaa !5
  store i32 0, ptr @a, align 4, !tbaa !5
  %35 = 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)
  %36 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11) #4
  %37 = trunc i64 %36 to i32
  store i32 %37, ptr @l, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %522, %34
  %39 = load i32, ptr %5, align 4, !tbaa !5
  %40 = load i32, ptr @l, align 4, !tbaa !5
  %41 = icmp sle i32 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %525

43:                                               ; preds = %38
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = sub nsw i32 %44, 1
  %46 = sext i32 %45 to i64
  %47 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %46)
  %48 = load i8, ptr %47, align 1, !tbaa !14
  %49 = sext i8 %48 to i32
  %50 = icmp eq i32 %49, 99
  br i1 %50, label %51, label %159

51:                                               ; preds = %43
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = sub nsw i32 %52, 1
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 1), i64 0, i64 %54
  %56 = load i64, ptr %55, align 8, !tbaa !9
  %57 = load i32, ptr @b, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = add nsw i64 %56, %58
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 1), i64 0, i64 %61
  store i64 %59, ptr %62, align 8, !tbaa !9
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = sub nsw i32 %63, 1
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 2), i64 0, i64 %65
  %67 = load i64, ptr %66, align 8, !tbaa !9
  %68 = load i32, ptr @c, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = add nsw i64 %67, %69
  %71 = load i32, ptr %5, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 2), i64 0, i64 %72
  store i64 %70, ptr %73, align 8, !tbaa !9
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = sub nsw i32 %74, 1
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 3), i64 0, i64 %76
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = load i32, ptr @d, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = add nsw i64 %78, %80
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 3), i64 0, i64 %83
  store i64 %81, ptr %84, align 8, !tbaa !9
  %85 = load i32, ptr @a, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr @a, align 4, !tbaa !5
  %87 = load i32, ptr %5, align 4, !tbaa !5
  %88 = sub nsw i32 %87, 1
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 %89
  %91 = load i64, ptr %90, align 8, !tbaa !9
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 %93
  store i64 %91, ptr %94, align 8, !tbaa !9
  %95 = load i32, ptr %5, align 4, !tbaa !5
  %96 = sub nsw i32 %95, 1
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 2), i64 0, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !9
  %100 = load i32, ptr %5, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 2), i64 0, i64 %101
  store i64 %99, ptr %102, align 8, !tbaa !9
  %103 = load i32, ptr %5, align 4, !tbaa !5
  %104 = sub nsw i32 %103, 1
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 3), i64 0, i64 %105
  %107 = load i64, ptr %106, align 8, !tbaa !9
  %108 = load i32, ptr %5, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 3), i64 0, i64 %109
  store i64 %107, ptr %110, align 8, !tbaa !9
  %111 = load i32, ptr %5, align 4, !tbaa !5
  %112 = sub nsw i32 %111, 1
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 %113
  %115 = load i64, ptr %114, align 8, !tbaa !9
  %116 = load i32, ptr %5, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 %117
  store i64 %115, ptr %118, align 8, !tbaa !9
  %119 = load i32, ptr %5, align 4, !tbaa !5
  %120 = sub nsw i32 %119, 1
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 1), i64 0, i64 %121
  %123 = load i64, ptr %122, align 8, !tbaa !9
  %124 = load i32, ptr %5, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 1), i64 0, i64 %125
  store i64 %123, ptr %126, align 8, !tbaa !9
  %127 = load i32, ptr %5, align 4, !tbaa !5
  %128 = sub nsw i32 %127, 1
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 3), i64 0, i64 %129
  %131 = load i64, ptr %130, align 8, !tbaa !9
  %132 = load i32, ptr %5, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 3), i64 0, i64 %133
  store i64 %131, ptr %134, align 8, !tbaa !9
  %135 = load i32, ptr %5, align 4, !tbaa !5
  %136 = sub nsw i32 %135, 1
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 %137
  %139 = load i64, ptr %138, align 8, !tbaa !9
  %140 = load i32, ptr %5, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 %141
  store i64 %139, ptr %142, align 8, !tbaa !9
  %143 = load i32, ptr %5, align 4, !tbaa !5
  %144 = sub nsw i32 %143, 1
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 1), i64 0, i64 %145
  %147 = load i64, ptr %146, align 8, !tbaa !9
  %148 = load i32, ptr %5, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 1), i64 0, i64 %149
  store i64 %147, ptr %150, align 8, !tbaa !9
  %151 = load i32, ptr %5, align 4, !tbaa !5
  %152 = sub nsw i32 %151, 1
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 2), i64 0, i64 %153
  %155 = load i64, ptr %154, align 8, !tbaa !9
  %156 = load i32, ptr %5, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 2), i64 0, i64 %157
  store i64 %155, ptr %158, align 8, !tbaa !9
  br label %501

159:                                              ; preds = %43
  %160 = load i32, ptr %5, align 4, !tbaa !5
  %161 = sub nsw i32 %160, 1
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %162)
  %164 = load i8, ptr %163, align 1, !tbaa !14
  %165 = sext i8 %164 to i32
  %166 = icmp eq i32 %165, 104
  br i1 %166, label %167, label %275

167:                                              ; preds = %159
  %168 = load i32, ptr %5, align 4, !tbaa !5
  %169 = sub nsw i32 %168, 1
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 %170
  %172 = load i64, ptr %171, align 8, !tbaa !9
  %173 = load i32, ptr @a, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = add nsw i64 %172, %174
  %176 = load i32, ptr %5, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 %177
  store i64 %175, ptr %178, align 8, !tbaa !9
  %179 = load i32, ptr %5, align 4, !tbaa !5
  %180 = sub nsw i32 %179, 1
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 2), i64 0, i64 %181
  %183 = load i64, ptr %182, align 8, !tbaa !9
  %184 = load i32, ptr @c, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = add nsw i64 %183, %185
  %187 = load i32, ptr %5, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 2), i64 0, i64 %188
  store i64 %186, ptr %189, align 8, !tbaa !9
  %190 = load i32, ptr %5, align 4, !tbaa !5
  %191 = sub nsw i32 %190, 1
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 3), i64 0, i64 %192
  %194 = load i64, ptr %193, align 8, !tbaa !9
  %195 = load i32, ptr @d, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = add nsw i64 %194, %196
  %198 = load i32, ptr %5, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 3), i64 0, i64 %199
  store i64 %197, ptr %200, align 8, !tbaa !9
  %201 = load i32, ptr @b, align 4, !tbaa !5
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr @b, align 4, !tbaa !5
  %203 = load i32, ptr %5, align 4, !tbaa !5
  %204 = sub nsw i32 %203, 1
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 1), i64 0, i64 %205
  %207 = load i64, ptr %206, align 8, !tbaa !9
  %208 = load i32, ptr %5, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 1), i64 0, i64 %209
  store i64 %207, ptr %210, align 8, !tbaa !9
  %211 = load i32, ptr %5, align 4, !tbaa !5
  %212 = sub nsw i32 %211, 1
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 2), i64 0, i64 %213
  %215 = load i64, ptr %214, align 8, !tbaa !9
  %216 = load i32, ptr %5, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 2), i64 0, i64 %217
  store i64 %215, ptr %218, align 8, !tbaa !9
  %219 = load i32, ptr %5, align 4, !tbaa !5
  %220 = sub nsw i32 %219, 1
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 3), i64 0, i64 %221
  %223 = load i64, ptr %222, align 8, !tbaa !9
  %224 = load i32, ptr %5, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 3), i64 0, i64 %225
  store i64 %223, ptr %226, align 8, !tbaa !9
  %227 = load i32, ptr %5, align 4, !tbaa !5
  %228 = sub nsw i32 %227, 1
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 %229
  %231 = load i64, ptr %230, align 8, !tbaa !9
  %232 = load i32, ptr %5, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 %233
  store i64 %231, ptr %234, align 8, !tbaa !9
  %235 = load i32, ptr %5, align 4, !tbaa !5
  %236 = sub nsw i32 %235, 1
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 1), i64 0, i64 %237
  %239 = load i64, ptr %238, align 8, !tbaa !9
  %240 = load i32, ptr %5, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 1), i64 0, i64 %241
  store i64 %239, ptr %242, align 8, !tbaa !9
  %243 = load i32, ptr %5, align 4, !tbaa !5
  %244 = sub nsw i32 %243, 1
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 3), i64 0, i64 %245
  %247 = load i64, ptr %246, align 8, !tbaa !9
  %248 = load i32, ptr %5, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 3), i64 0, i64 %249
  store i64 %247, ptr %250, align 8, !tbaa !9
  %251 = load i32, ptr %5, align 4, !tbaa !5
  %252 = sub nsw i32 %251, 1
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 %253
  %255 = load i64, ptr %254, align 8, !tbaa !9
  %256 = load i32, ptr %5, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 %257
  store i64 %255, ptr %258, align 8, !tbaa !9
  %259 = load i32, ptr %5, align 4, !tbaa !5
  %260 = sub nsw i32 %259, 1
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 1), i64 0, i64 %261
  %263 = load i64, ptr %262, align 8, !tbaa !9
  %264 = load i32, ptr %5, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 1), i64 0, i64 %265
  store i64 %263, ptr %266, align 8, !tbaa !9
  %267 = load i32, ptr %5, align 4, !tbaa !5
  %268 = sub nsw i32 %267, 1
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 2), i64 0, i64 %269
  %271 = load i64, ptr %270, align 8, !tbaa !9
  %272 = load i32, ptr %5, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 2), i64 0, i64 %273
  store i64 %271, ptr %274, align 8, !tbaa !9
  br label %500

275:                                              ; preds = %159
  %276 = load i32, ptr %5, align 4, !tbaa !5
  %277 = sub nsw i32 %276, 1
  %278 = sext i32 %277 to i64
  %279 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %278)
  %280 = load i8, ptr %279, align 1, !tbaa !14
  %281 = sext i8 %280 to i32
  %282 = icmp eq i32 %281, 101
  br i1 %282, label %283, label %391

283:                                              ; preds = %275
  %284 = load i32, ptr %5, align 4, !tbaa !5
  %285 = sub nsw i32 %284, 1
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 %286
  %288 = load i64, ptr %287, align 8, !tbaa !9
  %289 = load i32, ptr @a, align 4, !tbaa !5
  %290 = sext i32 %289 to i64
  %291 = add nsw i64 %288, %290
  %292 = load i32, ptr %5, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 %293
  store i64 %291, ptr %294, align 8, !tbaa !9
  %295 = load i32, ptr %5, align 4, !tbaa !5
  %296 = sub nsw i32 %295, 1
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 1), i64 0, i64 %297
  %299 = load i64, ptr %298, align 8, !tbaa !9
  %300 = load i32, ptr @b, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = add nsw i64 %299, %301
  %303 = load i32, ptr %5, align 4, !tbaa !5
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 1), i64 0, i64 %304
  store i64 %302, ptr %305, align 8, !tbaa !9
  %306 = load i32, ptr %5, align 4, !tbaa !5
  %307 = sub nsw i32 %306, 1
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 3), i64 0, i64 %308
  %310 = load i64, ptr %309, align 8, !tbaa !9
  %311 = load i32, ptr @d, align 4, !tbaa !5
  %312 = sext i32 %311 to i64
  %313 = add nsw i64 %310, %312
  %314 = load i32, ptr %5, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 3), i64 0, i64 %315
  store i64 %313, ptr %316, align 8, !tbaa !9
  %317 = load i32, ptr @c, align 4, !tbaa !5
  %318 = add nsw i32 %317, 1
  store i32 %318, ptr @c, align 4, !tbaa !5
  %319 = load i32, ptr %5, align 4, !tbaa !5
  %320 = sub nsw i32 %319, 1
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 1), i64 0, i64 %321
  %323 = load i64, ptr %322, align 8, !tbaa !9
  %324 = load i32, ptr %5, align 4, !tbaa !5
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 1), i64 0, i64 %325
  store i64 %323, ptr %326, align 8, !tbaa !9
  %327 = load i32, ptr %5, align 4, !tbaa !5
  %328 = sub nsw i32 %327, 1
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 2), i64 0, i64 %329
  %331 = load i64, ptr %330, align 8, !tbaa !9
  %332 = load i32, ptr %5, align 4, !tbaa !5
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 2), i64 0, i64 %333
  store i64 %331, ptr %334, align 8, !tbaa !9
  %335 = load i32, ptr %5, align 4, !tbaa !5
  %336 = sub nsw i32 %335, 1
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 3), i64 0, i64 %337
  %339 = load i64, ptr %338, align 8, !tbaa !9
  %340 = load i32, ptr %5, align 4, !tbaa !5
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 3), i64 0, i64 %341
  store i64 %339, ptr %342, align 8, !tbaa !9
  %343 = load i32, ptr %5, align 4, !tbaa !5
  %344 = sub nsw i32 %343, 1
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 %345
  %347 = load i64, ptr %346, align 8, !tbaa !9
  %348 = load i32, ptr %5, align 4, !tbaa !5
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 %349
  store i64 %347, ptr %350, align 8, !tbaa !9
  %351 = load i32, ptr %5, align 4, !tbaa !5
  %352 = sub nsw i32 %351, 1
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 2), i64 0, i64 %353
  %355 = load i64, ptr %354, align 8, !tbaa !9
  %356 = load i32, ptr %5, align 4, !tbaa !5
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 2), i64 0, i64 %357
  store i64 %355, ptr %358, align 8, !tbaa !9
  %359 = load i32, ptr %5, align 4, !tbaa !5
  %360 = sub nsw i32 %359, 1
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 3), i64 0, i64 %361
  %363 = load i64, ptr %362, align 8, !tbaa !9
  %364 = load i32, ptr %5, align 4, !tbaa !5
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 3), i64 0, i64 %365
  store i64 %363, ptr %366, align 8, !tbaa !9
  %367 = load i32, ptr %5, align 4, !tbaa !5
  %368 = sub nsw i32 %367, 1
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 %369
  %371 = load i64, ptr %370, align 8, !tbaa !9
  %372 = load i32, ptr %5, align 4, !tbaa !5
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 %373
  store i64 %371, ptr %374, align 8, !tbaa !9
  %375 = load i32, ptr %5, align 4, !tbaa !5
  %376 = sub nsw i32 %375, 1
  %377 = sext i32 %376 to i64
  %378 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 1), i64 0, i64 %377
  %379 = load i64, ptr %378, align 8, !tbaa !9
  %380 = load i32, ptr %5, align 4, !tbaa !5
  %381 = sext i32 %380 to i64
  %382 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 1), i64 0, i64 %381
  store i64 %379, ptr %382, align 8, !tbaa !9
  %383 = load i32, ptr %5, align 4, !tbaa !5
  %384 = sub nsw i32 %383, 1
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 2), i64 0, i64 %385
  %387 = load i64, ptr %386, align 8, !tbaa !9
  %388 = load i32, ptr %5, align 4, !tbaa !5
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 2), i64 0, i64 %389
  store i64 %387, ptr %390, align 8, !tbaa !9
  br label %499

391:                                              ; preds = %275
  %392 = load i32, ptr %5, align 4, !tbaa !5
  %393 = sub nsw i32 %392, 1
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 %394
  %396 = load i64, ptr %395, align 8, !tbaa !9
  %397 = load i32, ptr @a, align 4, !tbaa !5
  %398 = sext i32 %397 to i64
  %399 = add nsw i64 %396, %398
  %400 = load i32, ptr %5, align 4, !tbaa !5
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 %401
  store i64 %399, ptr %402, align 8, !tbaa !9
  %403 = load i32, ptr %5, align 4, !tbaa !5
  %404 = sub nsw i32 %403, 1
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 1), i64 0, i64 %405
  %407 = load i64, ptr %406, align 8, !tbaa !9
  %408 = load i32, ptr @b, align 4, !tbaa !5
  %409 = sext i32 %408 to i64
  %410 = add nsw i64 %407, %409
  %411 = load i32, ptr %5, align 4, !tbaa !5
  %412 = sext i32 %411 to i64
  %413 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 1), i64 0, i64 %412
  store i64 %410, ptr %413, align 8, !tbaa !9
  %414 = load i32, ptr %5, align 4, !tbaa !5
  %415 = sub nsw i32 %414, 1
  %416 = sext i32 %415 to i64
  %417 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 2), i64 0, i64 %416
  %418 = load i64, ptr %417, align 8, !tbaa !9
  %419 = load i32, ptr @c, align 4, !tbaa !5
  %420 = sext i32 %419 to i64
  %421 = add nsw i64 %418, %420
  %422 = load i32, ptr %5, align 4, !tbaa !5
  %423 = sext i32 %422 to i64
  %424 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 3), i64 0, i64 2), i64 0, i64 %423
  store i64 %421, ptr %424, align 8, !tbaa !9
  %425 = load i32, ptr @d, align 4, !tbaa !5
  %426 = add nsw i32 %425, 1
  store i32 %426, ptr @d, align 4, !tbaa !5
  %427 = load i32, ptr %5, align 4, !tbaa !5
  %428 = sub nsw i32 %427, 1
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 1), i64 0, i64 %429
  %431 = load i64, ptr %430, align 8, !tbaa !9
  %432 = load i32, ptr %5, align 4, !tbaa !5
  %433 = sext i32 %432 to i64
  %434 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 1), i64 0, i64 %433
  store i64 %431, ptr %434, align 8, !tbaa !9
  %435 = load i32, ptr %5, align 4, !tbaa !5
  %436 = sub nsw i32 %435, 1
  %437 = sext i32 %436 to i64
  %438 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 2), i64 0, i64 %437
  %439 = load i64, ptr %438, align 8, !tbaa !9
  %440 = load i32, ptr %5, align 4, !tbaa !5
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 2), i64 0, i64 %441
  store i64 %439, ptr %442, align 8, !tbaa !9
  %443 = load i32, ptr %5, align 4, !tbaa !5
  %444 = sub nsw i32 %443, 1
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 3), i64 0, i64 %445
  %447 = load i64, ptr %446, align 8, !tbaa !9
  %448 = load i32, ptr %5, align 4, !tbaa !5
  %449 = sext i32 %448 to i64
  %450 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @dp, i64 0, i64 3), i64 0, i64 %449
  store i64 %447, ptr %450, align 8, !tbaa !9
  %451 = load i32, ptr %5, align 4, !tbaa !5
  %452 = sub nsw i32 %451, 1
  %453 = sext i32 %452 to i64
  %454 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 %453
  %455 = load i64, ptr %454, align 8, !tbaa !9
  %456 = load i32, ptr %5, align 4, !tbaa !5
  %457 = sext i32 %456 to i64
  %458 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 %457
  store i64 %455, ptr %458, align 8, !tbaa !9
  %459 = load i32, ptr %5, align 4, !tbaa !5
  %460 = sub nsw i32 %459, 1
  %461 = sext i32 %460 to i64
  %462 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 2), i64 0, i64 %461
  %463 = load i64, ptr %462, align 8, !tbaa !9
  %464 = load i32, ptr %5, align 4, !tbaa !5
  %465 = sext i32 %464 to i64
  %466 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 2), i64 0, i64 %465
  store i64 %463, ptr %466, align 8, !tbaa !9
  %467 = load i32, ptr %5, align 4, !tbaa !5
  %468 = sub nsw i32 %467, 1
  %469 = sext i32 %468 to i64
  %470 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 3), i64 0, i64 %469
  %471 = load i64, ptr %470, align 8, !tbaa !9
  %472 = load i32, ptr %5, align 4, !tbaa !5
  %473 = sext i32 %472 to i64
  %474 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 3), i64 0, i64 %473
  store i64 %471, ptr %474, align 8, !tbaa !9
  %475 = load i32, ptr %5, align 4, !tbaa !5
  %476 = sub nsw i32 %475, 1
  %477 = sext i32 %476 to i64
  %478 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 %477
  %479 = load i64, ptr %478, align 8, !tbaa !9
  %480 = load i32, ptr %5, align 4, !tbaa !5
  %481 = sext i32 %480 to i64
  %482 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 %481
  store i64 %479, ptr %482, align 8, !tbaa !9
  %483 = load i32, ptr %5, align 4, !tbaa !5
  %484 = sub nsw i32 %483, 1
  %485 = sext i32 %484 to i64
  %486 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 1), i64 0, i64 %485
  %487 = load i64, ptr %486, align 8, !tbaa !9
  %488 = load i32, ptr %5, align 4, !tbaa !5
  %489 = sext i32 %488 to i64
  %490 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 1), i64 0, i64 %489
  store i64 %487, ptr %490, align 8, !tbaa !9
  %491 = load i32, ptr %5, align 4, !tbaa !5
  %492 = sub nsw i32 %491, 1
  %493 = sext i32 %492 to i64
  %494 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 3), i64 0, i64 %493
  %495 = load i64, ptr %494, align 8, !tbaa !9
  %496 = load i32, ptr %5, align 4, !tbaa !5
  %497 = sext i32 %496 to i64
  %498 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr getelementptr inbounds ([4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 2), i64 0, i64 3), i64 0, i64 %497
  store i64 %495, ptr %498, align 8, !tbaa !9
  br label %499

499:                                              ; preds = %391, %283
  br label %500

500:                                              ; preds = %499, %167
  br label %501

501:                                              ; preds = %500, %51
  %502 = load i32, ptr @a, align 4, !tbaa !5
  %503 = sext i32 %502 to i64
  %504 = load i32, ptr %5, align 4, !tbaa !5
  %505 = sext i32 %504 to i64
  %506 = getelementptr inbounds [1000001 x i64], ptr @cnt, i64 0, i64 %505
  store i64 %503, ptr %506, align 8, !tbaa !9
  %507 = load i32, ptr @b, align 4, !tbaa !5
  %508 = sext i32 %507 to i64
  %509 = load i32, ptr %5, align 4, !tbaa !5
  %510 = sext i32 %509 to i64
  %511 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @cnt, i64 0, i64 1), i64 0, i64 %510
  store i64 %508, ptr %511, align 8, !tbaa !9
  %512 = load i32, ptr @c, align 4, !tbaa !5
  %513 = sext i32 %512 to i64
  %514 = load i32, ptr %5, align 4, !tbaa !5
  %515 = sext i32 %514 to i64
  %516 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @cnt, i64 0, i64 2), i64 0, i64 %515
  store i64 %513, ptr %516, align 8, !tbaa !9
  %517 = load i32, ptr @d, align 4, !tbaa !5
  %518 = sext i32 %517 to i64
  %519 = load i32, ptr %5, align 4, !tbaa !5
  %520 = sext i32 %519 to i64
  %521 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds ([4 x [1000001 x i64]], ptr @cnt, i64 0, i64 3), i64 0, i64 %520
  store i64 %518, ptr %521, align 8, !tbaa !9
  br label %522

522:                                              ; preds = %501
  %523 = load i32, ptr %5, align 4, !tbaa !5
  %524 = add nsw i32 %523, 1
  store i32 %524, ptr %5, align 4, !tbaa !5
  br label %38, !llvm.loop !15

525:                                              ; preds = %42
  %526 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @q)
  br label %527

527:                                              ; preds = %578, %525
  %528 = load i32, ptr @q, align 4, !tbaa !5
  %529 = add nsw i32 %528, -1
  store i32 %529, ptr @q, align 4, !tbaa !5
  %530 = icmp ne i32 %528, 0
  br i1 %530, label %531, label %626

531:                                              ; preds = %527
  %532 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef @x, ptr noundef @y, ptr noundef @le, ptr noundef @ri)
  %533 = load i8, ptr @x, align 1, !tbaa !14
  %534 = sext i8 %533 to i32
  %535 = icmp eq i32 %534, 99
  br i1 %535, label %536, label %537

536:                                              ; preds = %531
  store i32 0, ptr @a1, align 4, !tbaa !5
  br label %555

537:                                              ; preds = %531
  %538 = load i8, ptr @x, align 1, !tbaa !14
  %539 = sext i8 %538 to i32
  %540 = icmp eq i32 %539, 104
  br i1 %540, label %541, label %542

541:                                              ; preds = %537
  store i32 1, ptr @a1, align 4, !tbaa !5
  br label %554

542:                                              ; preds = %537
  %543 = load i8, ptr @x, align 1, !tbaa !14
  %544 = sext i8 %543 to i32
  %545 = icmp eq i32 %544, 101
  br i1 %545, label %546, label %547

546:                                              ; preds = %542
  store i32 2, ptr @a1, align 4, !tbaa !5
  br label %553

547:                                              ; preds = %542
  %548 = load i8, ptr @x, align 1, !tbaa !14
  %549 = sext i8 %548 to i32
  %550 = icmp eq i32 %549, 102
  br i1 %550, label %551, label %552

551:                                              ; preds = %547
  store i32 3, ptr @a1, align 4, !tbaa !5
  br label %552

552:                                              ; preds = %551, %547
  br label %553

553:                                              ; preds = %552, %546
  br label %554

554:                                              ; preds = %553, %541
  br label %555

555:                                              ; preds = %554, %536
  %556 = load i8, ptr @y, align 1, !tbaa !14
  %557 = sext i8 %556 to i32
  %558 = icmp eq i32 %557, 99
  br i1 %558, label %559, label %560

559:                                              ; preds = %555
  store i32 0, ptr @a2, align 4, !tbaa !5
  br label %578

560:                                              ; preds = %555
  %561 = load i8, ptr @y, align 1, !tbaa !14
  %562 = sext i8 %561 to i32
  %563 = icmp eq i32 %562, 104
  br i1 %563, label %564, label %565

564:                                              ; preds = %560
  store i32 1, ptr @a2, align 4, !tbaa !5
  br label %577

565:                                              ; preds = %560
  %566 = load i8, ptr @y, align 1, !tbaa !14
  %567 = sext i8 %566 to i32
  %568 = icmp eq i32 %567, 101
  br i1 %568, label %569, label %570

569:                                              ; preds = %565
  store i32 2, ptr @a2, align 4, !tbaa !5
  br label %576

570:                                              ; preds = %565
  %571 = load i8, ptr @y, align 1, !tbaa !14
  %572 = sext i8 %571 to i32
  %573 = icmp eq i32 %572, 102
  br i1 %573, label %574, label %575

574:                                              ; preds = %570
  store i32 3, ptr @a2, align 4, !tbaa !5
  br label %575

575:                                              ; preds = %574, %570
  br label %576

576:                                              ; preds = %575, %569
  br label %577

577:                                              ; preds = %576, %564
  br label %578

578:                                              ; preds = %577, %559
  %579 = load i32, ptr @a2, align 4, !tbaa !5
  %580 = sext i32 %579 to i64
  %581 = getelementptr inbounds [4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 %580
  %582 = load i32, ptr @a1, align 4, !tbaa !5
  %583 = sext i32 %582 to i64
  %584 = getelementptr inbounds [4 x [1000001 x i64]], ptr %581, i64 0, i64 %583
  %585 = load i32, ptr @ri, align 4, !tbaa !5
  %586 = sext i32 %585 to i64
  %587 = getelementptr inbounds [1000001 x i64], ptr %584, i64 0, i64 %586
  %588 = load i64, ptr %587, align 8, !tbaa !9
  %589 = load i32, ptr @a2, align 4, !tbaa !5
  %590 = sext i32 %589 to i64
  %591 = getelementptr inbounds [4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 %590
  %592 = load i32, ptr @a1, align 4, !tbaa !5
  %593 = sext i32 %592 to i64
  %594 = getelementptr inbounds [4 x [1000001 x i64]], ptr %591, i64 0, i64 %593
  %595 = load i32, ptr @le, align 4, !tbaa !5
  %596 = sext i32 %595 to i64
  %597 = getelementptr inbounds [1000001 x i64], ptr %594, i64 0, i64 %596
  %598 = load i64, ptr %597, align 8, !tbaa !9
  %599 = sub nsw i64 %588, %598
  %600 = load i32, ptr @a2, align 4, !tbaa !5
  %601 = sext i32 %600 to i64
  %602 = getelementptr inbounds [4 x [1000001 x i64]], ptr @cnt, i64 0, i64 %601
  %603 = load i32, ptr @ri, align 4, !tbaa !5
  %604 = sext i32 %603 to i64
  %605 = getelementptr inbounds [1000001 x i64], ptr %602, i64 0, i64 %604
  %606 = load i64, ptr %605, align 8, !tbaa !9
  %607 = load i32, ptr @a2, align 4, !tbaa !5
  %608 = sext i32 %607 to i64
  %609 = getelementptr inbounds [4 x [1000001 x i64]], ptr @cnt, i64 0, i64 %608
  %610 = load i32, ptr @le, align 4, !tbaa !5
  %611 = sext i32 %610 to i64
  %612 = getelementptr inbounds [1000001 x i64], ptr %609, i64 0, i64 %611
  %613 = load i64, ptr %612, align 8, !tbaa !9
  %614 = sub nsw i64 %606, %613
  %615 = load i32, ptr @a1, align 4, !tbaa !5
  %616 = sext i32 %615 to i64
  %617 = getelementptr inbounds [4 x [1000001 x i64]], ptr @cnt, i64 0, i64 %616
  %618 = load i32, ptr @le, align 4, !tbaa !5
  %619 = sub nsw i32 %618, 1
  %620 = sext i32 %619 to i64
  %621 = getelementptr inbounds [1000001 x i64], ptr %617, i64 0, i64 %620
  %622 = load i64, ptr %621, align 8, !tbaa !9
  %623 = mul nsw i64 %614, %622
  %624 = sub nsw i64 %599, %623
  %625 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %624)
  br label %527, !llvm.loop !16

626:                                              ; preds = %527
  ret i32 0
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 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) #3 align 2

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 #4 = { 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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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

%"class.std::__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 }

@dp = external dso_local local_unnamed_addr global [4 x [4 x [1000001 x i64]]], align 16
@cnt = external dso_local local_unnamed_addr global [4 x [1000001 x i64]], align 16
@a = external dso_local local_unnamed_addr global i32, align 4
@b = external dso_local local_unnamed_addr global i32, align 4
@c = external dso_local local_unnamed_addr global i32, align 4
@d = external dso_local local_unnamed_addr global i32, align 4
@l = external dso_local local_unnamed_addr global i32, align 4
@q = external dso_local global i32, align 4
@le = external dso_local global i32, align 4
@ri = external dso_local global i32, align 4
@a1 = external dso_local local_unnamed_addr global i32, align 4
@a2 = external dso_local local_unnamed_addr global i32, align 4
@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@x = external dso_local global i8, align 1
@y = external dso_local global i8, align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@switch.table.main = private unnamed_addr constant [6 x i32] [i32 0, i32 0, i32 2, i32 3, i32 0, i32 1], align 4

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  store i64 0, ptr @cnt, align 16, !tbaa !5
  store i64 0, ptr @dp, align 16, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 8000008), align 8, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 16000016), align 16, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 24000024), align 8, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @cnt, i64 8000008), align 8, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 32000032), align 16, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 40000040), align 8, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 48000048), align 16, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 56000056), align 8, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @cnt, i64 16000016), align 16, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 64000064), align 16, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 72000072), align 8, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 80000080), align 16, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 88000088), align 8, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @cnt, i64 24000024), align 8, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 96000096), align 16, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 104000104), align 8, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 112000112), align 16, !tbaa !5
  store i64 0, ptr getelementptr inbounds (i8, ptr @dp, i64 120000120), align 8, !tbaa !5
  store i32 0, ptr @d, align 4, !tbaa !9
  store i32 0, ptr @c, align 4, !tbaa !9
  store i32 0, ptr @b, align 4, !tbaa !9
  store i32 0, ptr @a, align 4, !tbaa !9
  %1 = 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) @_Z1sB5cxx11)
  %2 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11) #4
  %3 = trunc i64 %2 to i32
  store i32 %3, ptr @l, align 4, !tbaa !9
  %.not121 = icmp slt i32 %3, 1
  br i1 %.not121, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %209, %0
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @q)
  %5 = load i32, ptr @q, align 4, !tbaa !9
  %6 = add nsw i32 %5, -1
  store i32 %6, ptr @q, align 4, !tbaa !9
  %.not116123 = icmp eq i32 %5, 0
  br i1 %.not116123, label %._crit_edge126, label %.lr.ph125

.lr.ph:                                           ; preds = %0, %209
  %indvars.iv = phi i64 [ %indvars.iv.next, %209 ], [ 1, %0 ]
  %7 = add nsw i64 %indvars.iv, -1
  %8 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %7)
  %9 = load i8, ptr %8, align 1, !tbaa !11
  %10 = icmp eq i8 %9, 99
  br i1 %10, label %11, label %59

11:                                               ; preds = %.lr.ph
  %12 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 8000008), i64 0, i64 %7
  %13 = load i64, ptr %12, align 8, !tbaa !5
  %14 = load i32, ptr @b, align 4, !tbaa !9
  %15 = sext i32 %14 to i64
  %16 = add nsw i64 %13, %15
  %17 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 8000008), i64 0, i64 %indvars.iv
  store i64 %16, ptr %17, align 8, !tbaa !5
  %18 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 16000016), i64 0, i64 %7
  %19 = load i64, ptr %18, align 8, !tbaa !5
  %20 = load i32, ptr @c, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = add nsw i64 %19, %21
  %23 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 16000016), i64 0, i64 %indvars.iv
  store i64 %22, ptr %23, align 8, !tbaa !5
  %24 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 24000024), i64 0, i64 %7
  %25 = load i64, ptr %24, align 8, !tbaa !5
  %26 = load i32, ptr @d, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = add nsw i64 %25, %27
  %29 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 24000024), i64 0, i64 %indvars.iv
  store i64 %28, ptr %29, align 8, !tbaa !5
  %30 = load i32, ptr @a, align 4, !tbaa !9
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr @a, align 4, !tbaa !9
  %32 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 32000032), i64 0, i64 %7
  %33 = load i64, ptr %32, align 8, !tbaa !5
  %34 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 32000032), i64 0, i64 %indvars.iv
  store i64 %33, ptr %34, align 8, !tbaa !5
  %35 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 48000048), i64 0, i64 %7
  %36 = load i64, ptr %35, align 8, !tbaa !5
  %37 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 48000048), i64 0, i64 %indvars.iv
  store i64 %36, ptr %37, align 8, !tbaa !5
  %38 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 56000056), i64 0, i64 %7
  %39 = load i64, ptr %38, align 8, !tbaa !5
  %40 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 56000056), i64 0, i64 %indvars.iv
  store i64 %39, ptr %40, align 8, !tbaa !5
  %41 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 64000064), i64 0, i64 %7
  %42 = load i64, ptr %41, align 8, !tbaa !5
  %43 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 64000064), i64 0, i64 %indvars.iv
  store i64 %42, ptr %43, align 8, !tbaa !5
  %44 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 72000072), i64 0, i64 %7
  %45 = load i64, ptr %44, align 8, !tbaa !5
  %46 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 72000072), i64 0, i64 %indvars.iv
  store i64 %45, ptr %46, align 8, !tbaa !5
  %47 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 88000088), i64 0, i64 %7
  %48 = load i64, ptr %47, align 8, !tbaa !5
  %49 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 88000088), i64 0, i64 %indvars.iv
  store i64 %48, ptr %49, align 8, !tbaa !5
  %50 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 96000096), i64 0, i64 %7
  %51 = load i64, ptr %50, align 8, !tbaa !5
  %52 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 96000096), i64 0, i64 %indvars.iv
  store i64 %51, ptr %52, align 8, !tbaa !5
  %53 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 104000104), i64 0, i64 %7
  %54 = load i64, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 104000104), i64 0, i64 %indvars.iv
  store i64 %54, ptr %55, align 8, !tbaa !5
  %56 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 112000112), i64 0, i64 %7
  %57 = load i64, ptr %56, align 8, !tbaa !5
  %58 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 112000112), i64 0, i64 %indvars.iv
  store i64 %57, ptr %58, align 8, !tbaa !5
  %.pre131 = sext i32 %31 to i64
  br label %209

59:                                               ; preds = %.lr.ph
  %60 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %7)
  %61 = load i8, ptr %60, align 1, !tbaa !11
  %62 = icmp eq i8 %61, 104
  br i1 %62, label %63, label %111

63:                                               ; preds = %59
  %64 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 32000032), i64 0, i64 %7
  %65 = load i64, ptr %64, align 8, !tbaa !5
  %66 = load i32, ptr @a, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = add nsw i64 %65, %67
  %69 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 32000032), i64 0, i64 %indvars.iv
  store i64 %68, ptr %69, align 8, !tbaa !5
  %70 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 48000048), i64 0, i64 %7
  %71 = load i64, ptr %70, align 8, !tbaa !5
  %72 = load i32, ptr @c, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = add nsw i64 %71, %73
  %75 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 48000048), i64 0, i64 %indvars.iv
  store i64 %74, ptr %75, align 8, !tbaa !5
  %76 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 56000056), i64 0, i64 %7
  %77 = load i64, ptr %76, align 8, !tbaa !5
  %78 = load i32, ptr @d, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = add nsw i64 %77, %79
  %81 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 56000056), i64 0, i64 %indvars.iv
  store i64 %80, ptr %81, align 8, !tbaa !5
  %82 = load i32, ptr @b, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr @b, align 4, !tbaa !9
  %84 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 8000008), i64 0, i64 %7
  %85 = load i64, ptr %84, align 8, !tbaa !5
  %86 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 8000008), i64 0, i64 %indvars.iv
  store i64 %85, ptr %86, align 8, !tbaa !5
  %87 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 16000016), i64 0, i64 %7
  %88 = load i64, ptr %87, align 8, !tbaa !5
  %89 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 16000016), i64 0, i64 %indvars.iv
  store i64 %88, ptr %89, align 8, !tbaa !5
  %90 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 24000024), i64 0, i64 %7
  %91 = load i64, ptr %90, align 8, !tbaa !5
  %92 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 24000024), i64 0, i64 %indvars.iv
  store i64 %91, ptr %92, align 8, !tbaa !5
  %93 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 64000064), i64 0, i64 %7
  %94 = load i64, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 64000064), i64 0, i64 %indvars.iv
  store i64 %94, ptr %95, align 8, !tbaa !5
  %96 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 72000072), i64 0, i64 %7
  %97 = load i64, ptr %96, align 8, !tbaa !5
  %98 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 72000072), i64 0, i64 %indvars.iv
  store i64 %97, ptr %98, align 8, !tbaa !5
  %99 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 88000088), i64 0, i64 %7
  %100 = load i64, ptr %99, align 8, !tbaa !5
  %101 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 88000088), i64 0, i64 %indvars.iv
  store i64 %100, ptr %101, align 8, !tbaa !5
  %102 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 96000096), i64 0, i64 %7
  %103 = load i64, ptr %102, align 8, !tbaa !5
  %104 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 96000096), i64 0, i64 %indvars.iv
  store i64 %103, ptr %104, align 8, !tbaa !5
  %105 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 104000104), i64 0, i64 %7
  %106 = load i64, ptr %105, align 8, !tbaa !5
  %107 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 104000104), i64 0, i64 %indvars.iv
  store i64 %106, ptr %107, align 8, !tbaa !5
  %108 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 112000112), i64 0, i64 %7
  %109 = load i64, ptr %108, align 8, !tbaa !5
  %110 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 112000112), i64 0, i64 %indvars.iv
  store i64 %109, ptr %110, align 8, !tbaa !5
  %.pre132 = sext i32 %83 to i64
  br label %209

111:                                              ; preds = %59
  %112 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %7)
  %113 = load i8, ptr %112, align 1, !tbaa !11
  %114 = icmp eq i8 %113, 101
  %115 = load i32, ptr @a, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  br i1 %114, label %117, label %163

117:                                              ; preds = %111
  %118 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 64000064), i64 0, i64 %7
  %119 = load i64, ptr %118, align 8, !tbaa !5
  %120 = add nsw i64 %119, %116
  %121 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 64000064), i64 0, i64 %indvars.iv
  store i64 %120, ptr %121, align 8, !tbaa !5
  %122 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 72000072), i64 0, i64 %7
  %123 = load i64, ptr %122, align 8, !tbaa !5
  %124 = load i32, ptr @b, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = add nsw i64 %123, %125
  %127 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 72000072), i64 0, i64 %indvars.iv
  store i64 %126, ptr %127, align 8, !tbaa !5
  %128 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 88000088), i64 0, i64 %7
  %129 = load i64, ptr %128, align 8, !tbaa !5
  %130 = load i32, ptr @d, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = add nsw i64 %129, %131
  %133 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 88000088), i64 0, i64 %indvars.iv
  store i64 %132, ptr %133, align 8, !tbaa !5
  %134 = load i32, ptr @c, align 4, !tbaa !9
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr @c, align 4, !tbaa !9
  %136 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 8000008), i64 0, i64 %7
  %137 = load i64, ptr %136, align 8, !tbaa !5
  %138 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 8000008), i64 0, i64 %indvars.iv
  store i64 %137, ptr %138, align 8, !tbaa !5
  %139 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 16000016), i64 0, i64 %7
  %140 = load i64, ptr %139, align 8, !tbaa !5
  %141 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 16000016), i64 0, i64 %indvars.iv
  store i64 %140, ptr %141, align 8, !tbaa !5
  %142 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 24000024), i64 0, i64 %7
  %143 = load i64, ptr %142, align 8, !tbaa !5
  %144 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 24000024), i64 0, i64 %indvars.iv
  store i64 %143, ptr %144, align 8, !tbaa !5
  %145 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 32000032), i64 0, i64 %7
  %146 = load i64, ptr %145, align 8, !tbaa !5
  %147 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 32000032), i64 0, i64 %indvars.iv
  store i64 %146, ptr %147, align 8, !tbaa !5
  %148 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 48000048), i64 0, i64 %7
  %149 = load i64, ptr %148, align 8, !tbaa !5
  %150 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 48000048), i64 0, i64 %indvars.iv
  store i64 %149, ptr %150, align 8, !tbaa !5
  %151 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 56000056), i64 0, i64 %7
  %152 = load i64, ptr %151, align 8, !tbaa !5
  %153 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 56000056), i64 0, i64 %indvars.iv
  store i64 %152, ptr %153, align 8, !tbaa !5
  %154 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 96000096), i64 0, i64 %7
  %155 = load i64, ptr %154, align 8, !tbaa !5
  %156 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 96000096), i64 0, i64 %indvars.iv
  store i64 %155, ptr %156, align 8, !tbaa !5
  %157 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 104000104), i64 0, i64 %7
  %158 = load i64, ptr %157, align 8, !tbaa !5
  %159 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 104000104), i64 0, i64 %indvars.iv
  store i64 %158, ptr %159, align 8, !tbaa !5
  %160 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 112000112), i64 0, i64 %7
  %161 = load i64, ptr %160, align 8, !tbaa !5
  %162 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 112000112), i64 0, i64 %indvars.iv
  store i64 %161, ptr %162, align 8, !tbaa !5
  %.pre134 = sext i32 %135 to i64
  br label %209

163:                                              ; preds = %111
  %164 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 96000096), i64 0, i64 %7
  %165 = load i64, ptr %164, align 8, !tbaa !5
  %166 = add nsw i64 %165, %116
  %167 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 96000096), i64 0, i64 %indvars.iv
  store i64 %166, ptr %167, align 8, !tbaa !5
  %168 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 104000104), i64 0, i64 %7
  %169 = load i64, ptr %168, align 8, !tbaa !5
  %170 = load i32, ptr @b, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = add nsw i64 %169, %171
  %173 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 104000104), i64 0, i64 %indvars.iv
  store i64 %172, ptr %173, align 8, !tbaa !5
  %174 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 112000112), i64 0, i64 %7
  %175 = load i64, ptr %174, align 8, !tbaa !5
  %176 = load i32, ptr @c, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = add nsw i64 %175, %177
  %179 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 112000112), i64 0, i64 %indvars.iv
  store i64 %178, ptr %179, align 8, !tbaa !5
  %180 = load i32, ptr @d, align 4, !tbaa !9
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr @d, align 4, !tbaa !9
  %182 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 8000008), i64 0, i64 %7
  %183 = load i64, ptr %182, align 8, !tbaa !5
  %184 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 8000008), i64 0, i64 %indvars.iv
  store i64 %183, ptr %184, align 8, !tbaa !5
  %185 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 16000016), i64 0, i64 %7
  %186 = load i64, ptr %185, align 8, !tbaa !5
  %187 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 16000016), i64 0, i64 %indvars.iv
  store i64 %186, ptr %187, align 8, !tbaa !5
  %188 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 24000024), i64 0, i64 %7
  %189 = load i64, ptr %188, align 8, !tbaa !5
  %190 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 24000024), i64 0, i64 %indvars.iv
  store i64 %189, ptr %190, align 8, !tbaa !5
  %191 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 32000032), i64 0, i64 %7
  %192 = load i64, ptr %191, align 8, !tbaa !5
  %193 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 32000032), i64 0, i64 %indvars.iv
  store i64 %192, ptr %193, align 8, !tbaa !5
  %194 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 48000048), i64 0, i64 %7
  %195 = load i64, ptr %194, align 8, !tbaa !5
  %196 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 48000048), i64 0, i64 %indvars.iv
  store i64 %195, ptr %196, align 8, !tbaa !5
  %197 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 56000056), i64 0, i64 %7
  %198 = load i64, ptr %197, align 8, !tbaa !5
  %199 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 56000056), i64 0, i64 %indvars.iv
  store i64 %198, ptr %199, align 8, !tbaa !5
  %200 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 64000064), i64 0, i64 %7
  %201 = load i64, ptr %200, align 8, !tbaa !5
  %202 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 64000064), i64 0, i64 %indvars.iv
  store i64 %201, ptr %202, align 8, !tbaa !5
  %203 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 72000072), i64 0, i64 %7
  %204 = load i64, ptr %203, align 8, !tbaa !5
  %205 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 72000072), i64 0, i64 %indvars.iv
  store i64 %204, ptr %205, align 8, !tbaa !5
  %206 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 88000088), i64 0, i64 %7
  %207 = load i64, ptr %206, align 8, !tbaa !5
  %208 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @dp, i64 88000088), i64 0, i64 %indvars.iv
  store i64 %207, ptr %208, align 8, !tbaa !5
  %.pre136 = sext i32 %181 to i64
  br label %209

209:                                              ; preds = %63, %163, %117, %11
  %.pre-phi137 = phi i64 [ %79, %63 ], [ %.pre136, %163 ], [ %131, %117 ], [ %27, %11 ]
  %.pre-phi135 = phi i64 [ %73, %63 ], [ %177, %163 ], [ %.pre134, %117 ], [ %21, %11 ]
  %.pre-phi133 = phi i64 [ %.pre132, %63 ], [ %171, %163 ], [ %125, %117 ], [ %15, %11 ]
  %.pre-phi = phi i64 [ %67, %63 ], [ %116, %163 ], [ %116, %117 ], [ %.pre131, %11 ]
  %210 = getelementptr inbounds [1000001 x i64], ptr @cnt, i64 0, i64 %indvars.iv
  store i64 %.pre-phi, ptr %210, align 8, !tbaa !5
  %211 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @cnt, i64 8000008), i64 0, i64 %indvars.iv
  store i64 %.pre-phi133, ptr %211, align 8, !tbaa !5
  %212 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @cnt, i64 16000016), i64 0, i64 %indvars.iv
  store i64 %.pre-phi135, ptr %212, align 8, !tbaa !5
  %213 = getelementptr inbounds [1000001 x i64], ptr getelementptr inbounds (i8, ptr @cnt, i64 24000024), i64 0, i64 %indvars.iv
  store i64 %.pre-phi137, ptr %213, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %214 = load i32, ptr @l, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %.not.not = icmp slt i64 %indvars.iv, %215
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !12

.lr.ph125:                                        ; preds = %._crit_edge, %226
  %216 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @x, ptr noundef nonnull @y, ptr noundef nonnull @le, ptr noundef nonnull @ri)
  %217 = load i8, ptr @x, align 1, !tbaa !11
  %switch.tableidx = add i8 %217, -99
  %218 = icmp ult i8 %switch.tableidx, 6
  br i1 %218, label %switch.hole_check, label %220

switch.hole_check:                                ; preds = %.lr.ph125
  %switch.shifted = lshr i8 45, %switch.tableidx
  %switch.lobit = trunc i8 %switch.shifted to i1
  br i1 %switch.lobit, label %switch.lookup, label %220

switch.lookup:                                    ; preds = %switch.hole_check
  %219 = zext nneg i8 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [6 x i32], ptr @switch.table.main, i64 0, i64 %219
  %switch.load = load i32, ptr %switch.gep, align 4
  store i32 %switch.load, ptr @a1, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %switch.hole_check, %.lr.ph125, %switch.lookup
  %221 = load i8, ptr @y, align 1, !tbaa !11
  switch i8 %221, label %._crit_edge130 [
    i8 99, label %222
    i8 104, label %223
    i8 101, label %224
    i8 102, label %225
  ]

._crit_edge130:                                   ; preds = %220
  %.pre = load i32, ptr @a2, align 4, !tbaa !9
  br label %226

222:                                              ; preds = %220
  store i32 0, ptr @a2, align 4, !tbaa !9
  br label %226

223:                                              ; preds = %220
  store i32 1, ptr @a2, align 4, !tbaa !9
  br label %226

224:                                              ; preds = %220
  store i32 2, ptr @a2, align 4, !tbaa !9
  br label %226

225:                                              ; preds = %220
  store i32 3, ptr @a2, align 4, !tbaa !9
  br label %226

226:                                              ; preds = %._crit_edge130, %223, %225, %224, %222
  %227 = phi i32 [ %.pre, %._crit_edge130 ], [ 1, %223 ], [ 3, %225 ], [ 2, %224 ], [ 0, %222 ]
  %228 = sext i32 %227 to i64
  %229 = load i32, ptr @a1, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = load i32, ptr @ri, align 4, !tbaa !9
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 %228, i64 %230, i64 %232
  %234 = load i64, ptr %233, align 8, !tbaa !5
  %235 = load i32, ptr @le, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [4 x [4 x [1000001 x i64]]], ptr @dp, i64 0, i64 %228, i64 %230, i64 %236
  %238 = load i64, ptr %237, align 8, !tbaa !5
  %239 = sub i64 %234, %238
  %240 = getelementptr inbounds [4 x [1000001 x i64]], ptr @cnt, i64 0, i64 %228, i64 %232
  %241 = load i64, ptr %240, align 8, !tbaa !5
  %242 = getelementptr inbounds [4 x [1000001 x i64]], ptr @cnt, i64 0, i64 %228, i64 %236
  %243 = load i64, ptr %242, align 8, !tbaa !5
  %.neg = sub i64 %243, %241
  %244 = add nsw i32 %235, -1
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [4 x [1000001 x i64]], ptr @cnt, i64 0, i64 %230, i64 %245
  %247 = load i64, ptr %246, align 8, !tbaa !5
  %.neg117 = mul i64 %.neg, %247
  %248 = add i64 %239, %.neg117
  %249 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %248)
  %250 = load i32, ptr @q, align 4, !tbaa !9
  %251 = add nsw i32 %250, -1
  store i32 %251, ptr @q, align 4, !tbaa !9
  %.not116 = icmp eq i32 %250, 0
  br i1 %.not116, label %._crit_edge126, label %.lr.ph125, !llvm.loop !14

._crit_edge126:                                   ; preds = %226, %._crit_edge
  ret i32 0
}

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: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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