; LLVM IR from tangjz/acm-icpc :: codeforces/gym (101955B)

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

%struct.Hash = type { [2 x i32] }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@pL = external dso_local global [300001 x i32], align 16
@pR = external dso_local global [300001 x i32], align 16
@p = external dso_local global [300001 x [11 x i32]], align 16
@seq = external dso_local global [2 x [300001 x i32]], align 16
@BASE = external dso_local global %struct.Hash, align 4
@pw = external dso_local global [300001 x %struct.Hash], align 16
@hh = external dso_local global [2 x [300001 x %struct.Hash]], align 16
@sum = external dso_local global [300001 x x86_fp80], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZL3ONE = external hidden constant %struct.Hash, align 4
@_ZL4ZERO = external hidden constant %struct.Hash, align 4
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 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 %struct.Hash, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %struct.Hash, align 4
  %10 = alloca %struct.Hash, align 4
  %11 = alloca %struct.Hash, align 4
  %12 = alloca %struct.Hash, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.Hash, align 4
  %15 = alloca %struct.Hash, align 4
  %16 = alloca %struct.Hash, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca x86_fp80, align 16
  %20 = alloca x86_fp80, align 16
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %struct.Hash, align 4
  %25 = alloca %struct.Hash, align 4
  %26 = alloca %struct.Hash, align 4
  %27 = alloca %struct.Hash, align 4
  store i32 0, ptr %1, align 4
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %379, %0
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = load i32, ptr @t, align 4, !tbaa !5
  %32 = icmp sle i32 %30, %31
  br i1 %32, label %34, label %33

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

34:                                               ; preds = %29
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %36 = getelementptr inbounds %struct.Hash, ptr %4, i32 0, i32 0
  %37 = load i32, ptr @n, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %36, align 4, !tbaa !5
  %39 = getelementptr inbounds i32, ptr %36, i64 1
  %40 = load i32, ptr @n, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %39, align 4, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @BASE, ptr align 4 %4, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @pw, ptr align 4 @_ZL3ONE, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 getelementptr inbounds ([2 x [300001 x %struct.Hash]], ptr @hh, i64 0, i64 1), ptr align 4 @_ZL4ZERO, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @hh, ptr align 4 getelementptr inbounds ([2 x [300001 x %struct.Hash]], ptr @hh, i64 0, i64 1), i64 8, i1 false), !tbaa.struct !9
  store x86_fp80 0xK00000000000000000000, ptr @sum, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %160, %34
  %43 = load i32, ptr %5, align 4, !tbaa !5
  %44 = load i32, ptr @n, align 4, !tbaa !5
  %45 = icmp sle i32 %43, %44
  br i1 %45, label %47, label %46

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

47:                                               ; preds = %42
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i32, ptr @pL, i64 %49
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds i32, ptr @pR, i64 %52
  %54 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %50, ptr noundef %53)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [300001 x i32], ptr @pL, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  store i32 %58, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %59 = load i32, ptr %5, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [300001 x i32], ptr @pL, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  store i32 %62, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [300001 x [11 x i32]], ptr @p, i64 0, i64 %64
  %66 = getelementptr inbounds [11 x i32], ptr %65, i64 0, i64 0
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [300001 x i32], ptr @pL, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = sub i64 0, %71
  %73 = getelementptr inbounds i32, ptr %66, i64 %72
  store ptr %73, ptr %8, align 8, !tbaa !13
  br label %74

74:                                               ; preds = %102, %47
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [300001 x i32], ptr @pR, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = icmp sle i32 %75, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %74
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %105

82:                                               ; preds = %74
  %83 = load ptr, ptr %8, align 8, !tbaa !13
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds i32, ptr %83, i64 %85
  %87 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %86)
  %88 = load ptr, ptr %8, align 8, !tbaa !13
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds i32, ptr %88, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = load ptr, ptr %8, align 8, !tbaa !13
  %94 = load i32, ptr %7, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds i32, ptr %93, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %98 = icmp slt i32 %92, %97
  br i1 %98, label %99, label %101

99:                                               ; preds = %82
  %100 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %100, ptr %6, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %99, %82
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %7, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %7, align 4, !tbaa !5
  br label %74, !llvm.loop !15

105:                                              ; preds = %81
  %106 = load i32, ptr %6, align 4, !tbaa !5
  %107 = load i32, ptr %5, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [300001 x i32], ptr @seq, i64 0, i64 %108
  store i32 %106, ptr %109, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = sub nsw i32 %110, 1
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [300001 x %struct.Hash], ptr @pw, i64 0, i64 %112
  %114 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %113, ptr noundef nonnull align 4 dereferenceable(8) @BASE)
  %115 = getelementptr inbounds %struct.Hash, ptr %9, i32 0, i32 0
  store i64 %114, ptr %115, align 4
  %116 = load i32, ptr %5, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [300001 x %struct.Hash], ptr @pw, i64 0, i64 %117
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %118, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %119 = load i32, ptr %5, align 4, !tbaa !5
  %120 = sub nsw i32 %119, 1
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [300001 x %struct.Hash], ptr @hh, i64 0, i64 %121
  %123 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %122, ptr noundef nonnull align 4 dereferenceable(8) @BASE)
  %124 = getelementptr inbounds %struct.Hash, ptr %11, i32 0, i32 0
  store i64 %123, ptr %124, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %125 = getelementptr inbounds %struct.Hash, ptr %12, i32 0, i32 0
  %126 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %126, ptr %125, align 4, !tbaa !5
  %127 = getelementptr inbounds i32, ptr %125, i64 1
  %128 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %128, ptr %127, align 4, !tbaa !5
  %129 = call i64 @_ZNK4HashplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %12)
  %130 = getelementptr inbounds %struct.Hash, ptr %10, i32 0, i32 0
  store i64 %129, ptr %130, align 4
  %131 = load i32, ptr %5, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [300001 x %struct.Hash], ptr @hh, i64 0, i64 %132
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %133, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %134 = load i32, ptr %5, align 4, !tbaa !5
  %135 = sub nsw i32 %134, 1
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [300001 x x86_fp80], ptr @sum, i64 0, i64 %136
  %138 = load x86_fp80, ptr %137, align 16, !tbaa !11
  %139 = load i32, ptr %5, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [300001 x [11 x i32]], ptr @p, i64 0, i64 %140
  %142 = load i32, ptr %6, align 4, !tbaa !5
  %143 = load i32, ptr %5, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [300001 x i32], ptr @pL, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = sub nsw i32 %142, %146
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [11 x i32], ptr %141, i64 0, i64 %148
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = call noundef double @_ZSt3logIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %150)
  %152 = fpext double %151 to x86_fp80
  %153 = fadd x86_fp80 %138, %152
  %154 = call noundef double @_ZSt3logIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef 1000000000)
  %155 = fpext double %154 to x86_fp80
  %156 = fsub x86_fp80 %153, %155
  %157 = load i32, ptr %5, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [300001 x x86_fp80], ptr @sum, i64 0, i64 %158
  store x86_fp80 %156, ptr %159, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %160

160:                                              ; preds = %105
  %161 = load i32, ptr %5, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %5, align 4, !tbaa !5
  br label %42, !llvm.loop !17

163:                                              ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %164

164:                                              ; preds = %195, %163
  %165 = load i32, ptr %13, align 4, !tbaa !5
  %166 = load i32, ptr @m, align 4, !tbaa !5
  %167 = icmp sle i32 %165, %166
  br i1 %167, label %169, label %168

168:                                              ; preds = %164
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %198

169:                                              ; preds = %164
  %170 = load i32, ptr %13, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds i32, ptr getelementptr inbounds ([2 x [300001 x i32]], ptr @seq, i64 0, i64 1), i64 %171
  %173 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %172)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %174 = load i32, ptr %13, align 4, !tbaa !5
  %175 = sub nsw i32 %174, 1
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [300001 x %struct.Hash], ptr getelementptr inbounds ([2 x [300001 x %struct.Hash]], ptr @hh, i64 0, i64 1), i64 0, i64 %176
  %178 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %177, ptr noundef nonnull align 4 dereferenceable(8) @BASE)
  %179 = getelementptr inbounds %struct.Hash, ptr %15, i32 0, i32 0
  store i64 %178, ptr %179, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %180 = getelementptr inbounds %struct.Hash, ptr %16, i32 0, i32 0
  %181 = load i32, ptr %13, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [300001 x i32], ptr getelementptr inbounds ([2 x [300001 x i32]], ptr @seq, i64 0, i64 1), i64 0, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !5
  store i32 %184, ptr %180, align 4, !tbaa !5
  %185 = getelementptr inbounds i32, ptr %180, i64 1
  %186 = load i32, ptr %13, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [300001 x i32], ptr getelementptr inbounds ([2 x [300001 x i32]], ptr @seq, i64 0, i64 1), i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !5
  store i32 %189, ptr %185, align 4, !tbaa !5
  %190 = call i64 @_ZNK4HashplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %16)
  %191 = getelementptr inbounds %struct.Hash, ptr %14, i32 0, i32 0
  store i64 %190, ptr %191, align 4
  %192 = load i32, ptr %13, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [300001 x %struct.Hash], ptr getelementptr inbounds ([2 x [300001 x %struct.Hash]], ptr @hh, i64 0, i64 1), i64 0, i64 %193
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %194, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %195

195:                                              ; preds = %169
  %196 = load i32, ptr %13, align 4, !tbaa !5
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %13, align 4, !tbaa !5
  br label %164, !llvm.loop !18

198:                                              ; preds = %168
  %199 = load i32, ptr %2, align 4, !tbaa !5
  %200 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %199)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 1, ptr %17, align 4, !tbaa !5
  br label %201

201:                                              ; preds = %375, %198
  %202 = load i32, ptr %17, align 4, !tbaa !5
  %203 = load i32, ptr @n, align 4, !tbaa !5
  %204 = load i32, ptr @m, align 4, !tbaa !5
  %205 = sub nsw i32 %203, %204
  %206 = add nsw i32 %205, 1
  %207 = icmp sle i32 %202, %206
  br i1 %207, label %209, label %208

208:                                              ; preds = %201
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %378

209:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  store x86_fp80 0xK3FFF8000000000000000, ptr %19, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  store x86_fp80 0xK00000000000000000000, ptr %20, align 16, !tbaa !11
  br label %210

210:                                              ; preds = %367, %209
  %211 = load i32, ptr %18, align 4, !tbaa !5
  %212 = load i32, ptr @m, align 4, !tbaa !5
  %213 = icmp slt i32 %211, %212
  br i1 %213, label %214, label %217

214:                                              ; preds = %210
  %215 = load x86_fp80, ptr %19, align 16, !tbaa !11
  %216 = fcmp oge x86_fp80 %215, 0xK3FE189705F4136B4A800
  br label %217

217:                                              ; preds = %214, %210
  %218 = phi i1 [ false, %210 ], [ %216, %214 ]
  br i1 %218, label %219, label %368

219:                                              ; preds = %217
  %220 = load i32, ptr %17, align 4, !tbaa !5
  %221 = load i32, ptr %18, align 4, !tbaa !5
  %222 = add nsw i32 %220, %221
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [300001 x i32], ptr @seq, i64 0, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = load i32, ptr %18, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [300001 x i32], ptr getelementptr inbounds ([2 x [300001 x i32]], ptr @seq, i64 0, i64 1), i64 0, i64 %228
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %231 = icmp eq i32 %225, %230
  br i1 %231, label %232, label %312

232:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 1, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %233 = load i32, ptr @m, align 4, !tbaa !5
  %234 = load i32, ptr %18, align 4, !tbaa !5
  %235 = sub nsw i32 %233, %234
  store i32 %235, ptr %22, align 4, !tbaa !5
  br label %236

236:                                              ; preds = %288, %232
  %237 = load i32, ptr %21, align 4, !tbaa !5
  %238 = load i32, ptr %22, align 4, !tbaa !5
  %239 = icmp slt i32 %237, %238
  br i1 %239, label %240, label %289

240:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %241 = load i32, ptr %21, align 4, !tbaa !5
  %242 = load i32, ptr %22, align 4, !tbaa !5
  %243 = add nsw i32 %241, %242
  %244 = add nsw i32 %243, 1
  %245 = ashr i32 %244, 1
  store i32 %245, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %246 = load i32, ptr %17, align 4, !tbaa !5
  %247 = load i32, ptr %18, align 4, !tbaa !5
  %248 = add nsw i32 %246, %247
  %249 = load i32, ptr %23, align 4, !tbaa !5
  %250 = add nsw i32 %248, %249
  %251 = sub nsw i32 %250, 1
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [300001 x %struct.Hash], ptr @hh, i64 0, i64 %252
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %254 = load i32, ptr %17, align 4, !tbaa !5
  %255 = load i32, ptr %18, align 4, !tbaa !5
  %256 = add nsw i32 %254, %255
  %257 = sub nsw i32 %256, 1
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [300001 x %struct.Hash], ptr @hh, i64 0, i64 %258
  %260 = load i32, ptr %23, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [300001 x %struct.Hash], ptr @pw, i64 0, i64 %261
  %263 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %259, ptr noundef nonnull align 4 dereferenceable(8) %262)
  %264 = getelementptr inbounds %struct.Hash, ptr %25, i32 0, i32 0
  store i64 %263, ptr %264, align 4
  %265 = call i64 @_ZNK4HashmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %253, ptr noundef nonnull align 4 dereferenceable(8) %25)
  %266 = getelementptr inbounds %struct.Hash, ptr %24, i32 0, i32 0
  store i64 %265, ptr %266, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %267 = load i32, ptr %18, align 4, !tbaa !5
  %268 = load i32, ptr %23, align 4, !tbaa !5
  %269 = add nsw i32 %267, %268
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [300001 x %struct.Hash], ptr getelementptr inbounds ([2 x [300001 x %struct.Hash]], ptr @hh, i64 0, i64 1), i64 0, i64 %270
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %272 = load i32, ptr %18, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [300001 x %struct.Hash], ptr getelementptr inbounds ([2 x [300001 x %struct.Hash]], ptr @hh, i64 0, i64 1), i64 0, i64 %273
  %275 = load i32, ptr %23, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [300001 x %struct.Hash], ptr @pw, i64 0, i64 %276
  %278 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %274, ptr noundef nonnull align 4 dereferenceable(8) %277)
  %279 = getelementptr inbounds %struct.Hash, ptr %27, i32 0, i32 0
  store i64 %278, ptr %279, align 4
  %280 = call i64 @_ZNK4HashmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %271, ptr noundef nonnull align 4 dereferenceable(8) %27)
  %281 = getelementptr inbounds %struct.Hash, ptr %26, i32 0, i32 0
  store i64 %280, ptr %281, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  %282 = call noundef zeroext i1 @_ZNK4HasheqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %26)
  br i1 %282, label %283, label %285

283:                                              ; preds = %240
  %284 = load i32, ptr %23, align 4, !tbaa !5
  store i32 %284, ptr %21, align 4, !tbaa !5
  br label %288

285:                                              ; preds = %240
  %286 = load i32, ptr %23, align 4, !tbaa !5
  %287 = sub nsw i32 %286, 1
  store i32 %287, ptr %22, align 4, !tbaa !5
  br label %288

288:                                              ; preds = %285, %283
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %236, !llvm.loop !19

289:                                              ; preds = %236
  %290 = load i32, ptr %17, align 4, !tbaa !5
  %291 = load i32, ptr %18, align 4, !tbaa !5
  %292 = add nsw i32 %290, %291
  %293 = load i32, ptr %21, align 4, !tbaa !5
  %294 = add nsw i32 %292, %293
  %295 = sub nsw i32 %294, 1
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [300001 x x86_fp80], ptr @sum, i64 0, i64 %296
  %298 = load x86_fp80, ptr %297, align 16, !tbaa !11
  %299 = load i32, ptr %17, align 4, !tbaa !5
  %300 = load i32, ptr %18, align 4, !tbaa !5
  %301 = add nsw i32 %299, %300
  %302 = sub nsw i32 %301, 1
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [300001 x x86_fp80], ptr @sum, i64 0, i64 %303
  %305 = load x86_fp80, ptr %304, align 16, !tbaa !11
  %306 = fsub x86_fp80 %298, %305
  %307 = load x86_fp80, ptr %20, align 16, !tbaa !11
  %308 = fadd x86_fp80 %307, %306
  store x86_fp80 %308, ptr %20, align 16, !tbaa !11
  %309 = load i32, ptr %21, align 4, !tbaa !5
  %310 = load i32, ptr %18, align 4, !tbaa !5
  %311 = add nsw i32 %310, %309
  store i32 %311, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %367

312:                                              ; preds = %219
  %313 = load i32, ptr %17, align 4, !tbaa !5
  %314 = load i32, ptr %18, align 4, !tbaa !5
  %315 = add nsw i32 %313, %314
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [300001 x i32], ptr @pL, i64 0, i64 %316
  %318 = load i32, ptr %317, align 4, !tbaa !5
  %319 = load i32, ptr %18, align 4, !tbaa !5
  %320 = add nsw i32 %319, 1
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds [300001 x i32], ptr getelementptr inbounds ([2 x [300001 x i32]], ptr @seq, i64 0, i64 1), i64 0, i64 %321
  %323 = load i32, ptr %322, align 4, !tbaa !5
  %324 = icmp sle i32 %318, %323
  br i1 %324, label %325, label %363

325:                                              ; preds = %312
  %326 = load i32, ptr %18, align 4, !tbaa !5
  %327 = add nsw i32 %326, 1
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [300001 x i32], ptr getelementptr inbounds ([2 x [300001 x i32]], ptr @seq, i64 0, i64 1), i64 0, i64 %328
  %330 = load i32, ptr %329, align 4, !tbaa !5
  %331 = load i32, ptr %17, align 4, !tbaa !5
  %332 = load i32, ptr %18, align 4, !tbaa !5
  %333 = add nsw i32 %331, %332
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [300001 x i32], ptr @pR, i64 0, i64 %334
  %336 = load i32, ptr %335, align 4, !tbaa !5
  %337 = icmp sle i32 %330, %336
  br i1 %337, label %338, label %363

338:                                              ; preds = %325
  %339 = load i32, ptr %17, align 4, !tbaa !5
  %340 = load i32, ptr %18, align 4, !tbaa !5
  %341 = add nsw i32 %339, %340
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [300001 x [11 x i32]], ptr @p, i64 0, i64 %342
  %344 = load i32, ptr %18, align 4, !tbaa !5
  %345 = add nsw i32 %344, 1
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds [300001 x i32], ptr getelementptr inbounds ([2 x [300001 x i32]], ptr @seq, i64 0, i64 1), i64 0, i64 %346
  %348 = load i32, ptr %347, align 4, !tbaa !5
  %349 = load i32, ptr %17, align 4, !tbaa !5
  %350 = load i32, ptr %18, align 4, !tbaa !5
  %351 = add nsw i32 %349, %350
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [300001 x i32], ptr @pL, i64 0, i64 %352
  %354 = load i32, ptr %353, align 4, !tbaa !5
  %355 = sub nsw i32 %348, %354
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [11 x i32], ptr %343, i64 0, i64 %356
  %358 = load i32, ptr %357, align 4, !tbaa !5
  %359 = sitofp i32 %358 to x86_fp80
  %360 = fdiv x86_fp80 %359, 0xK401CEE6B280000000000
  %361 = load x86_fp80, ptr %19, align 16, !tbaa !11
  %362 = fmul x86_fp80 %361, %360
  store x86_fp80 %362, ptr %19, align 16, !tbaa !11
  br label %364

363:                                              ; preds = %325, %312
  store x86_fp80 0xK00000000000000000000, ptr %19, align 16, !tbaa !11
  br label %364

364:                                              ; preds = %363, %338
  %365 = load i32, ptr %18, align 4, !tbaa !5
  %366 = add nsw i32 %365, 1
  store i32 %366, ptr %18, align 4, !tbaa !5
  br label %367

367:                                              ; preds = %364, %289
  br label %210, !llvm.loop !20

368:                                              ; preds = %217
  %369 = load x86_fp80, ptr %19, align 16, !tbaa !11
  %370 = load x86_fp80, ptr %20, align 16, !tbaa !11
  %371 = call noundef x86_fp80 @_ZSt3expe(x86_fp80 noundef %370)
  %372 = fmul x86_fp80 %369, %371
  %373 = fptrunc x86_fp80 %372 to double
  %374 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %373)
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %375

375:                                              ; preds = %368
  %376 = load i32, ptr %17, align 4, !tbaa !5
  %377 = add nsw i32 %376, 1
  store i32 %377, ptr %17, align 4, !tbaa !5
  br label %201, !llvm.loop !21

378:                                              ; preds = %208
  br label %379

379:                                              ; preds = %378
  %380 = load i32, ptr %2, align 4, !tbaa !5
  %381 = add nsw i32 %380, 1
  store i32 %381, ptr %2, align 4, !tbaa !5
  br label %29, !llvm.loop !22

382:                                              ; preds = %33
  ret i32 0
}

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3logIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) #5

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZSt3expe(x86_fp80 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{i64 0, i64 8, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}


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

%struct.Hash = type { [2 x i32] }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@pL = external dso_local global [300001 x i32], align 16
@pR = external dso_local global [300001 x i32], align 16
@p = external dso_local global [300001 x [11 x i32]], align 16
@seq = external dso_local global [2 x [300001 x i32]], align 16
@BASE = external dso_local global %struct.Hash, align 4
@pw = external dso_local global [300001 x %struct.Hash], align 16
@hh = external dso_local global [2 x [300001 x %struct.Hash]], align 16
@sum = external dso_local local_unnamed_addr global [300001 x x86_fp80], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZL3ONE = external hidden local_unnamed_addr constant %struct.Hash, align 4
@_ZL4ZERO = external hidden local_unnamed_addr constant %struct.Hash, align 4
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.Hash, align 8
  %2 = alloca %struct.Hash, align 4
  %3 = alloca %struct.Hash, align 8
  %4 = alloca %struct.Hash, align 4
  %5 = alloca %struct.Hash, align 8
  %6 = alloca %struct.Hash, align 8
  %7 = alloca %struct.Hash, align 8
  %8 = alloca %struct.Hash, align 8
  %9 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %10 = load i32, ptr @t, align 4, !tbaa !5
  %.not143 = icmp slt i32 %10, 1
  br i1 %.not143, label %._crit_edge147, label %.lr.ph146

.lr.ph146:                                        ; preds = %0
  %11 = load i64, ptr @_ZL3ONE, align 4
  %12 = load i64, ptr @_ZL4ZERO, align 4
  %13 = getelementptr inbounds i8, ptr %2, i64 4
  %14 = getelementptr inbounds i8, ptr %4, i64 4
  br label %15

._crit_edge147:                                   ; preds = %._crit_edge142, %0
  ret i32 0

15:                                               ; preds = %.lr.ph146, %._crit_edge142
  %.0144 = phi i32 [ 1, %.lr.ph146 ], [ %81, %._crit_edge142 ]
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %17 = load i32, ptr @n, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr @BASE, align 4
  store i32 %18, ptr getelementptr inbounds (i8, ptr @BASE, i64 4), align 4, !tbaa !9
  store i64 %11, ptr @pw, align 16, !tbaa !9
  store i64 %12, ptr getelementptr inbounds (i8, ptr @hh, i64 2400008), align 8, !tbaa !9
  store i64 %12, ptr @hh, align 16, !tbaa !9
  store x86_fp80 0xK00000000000000000000, ptr @sum, align 16, !tbaa !10
  %.not108118 = icmp slt i32 %17, 1
  br i1 %.not108118, label %.preheader114, label %.lr.ph121

.preheader114:                                    ; preds = %._crit_edge, %15
  %19 = load i32, ptr @m, align 4, !tbaa !5
  %.not109122 = icmp slt i32 %19, 1
  br i1 %.not109122, label %._crit_edge125, label %.lr.ph124

.lr.ph121:                                        ; preds = %15, %._crit_edge
  %indvars.iv149 = phi i64 [ %indvars.iv.next150, %._crit_edge ], [ 1, %15 ]
  %20 = getelementptr inbounds i32, ptr @pL, i64 %indvars.iv149
  %21 = getelementptr inbounds i32, ptr @pR, i64 %indvars.iv149
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %20, ptr noundef nonnull %21)
  %23 = load i32, ptr %20, align 4, !tbaa !5
  %24 = getelementptr inbounds [300001 x [11 x i32]], ptr @p, i64 0, i64 %indvars.iv149
  %25 = sext i32 %23 to i64
  %26 = sub nsw i64 0, %25
  %27 = getelementptr inbounds i32, ptr %24, i64 %26
  %28 = load i32, ptr %21, align 4, !tbaa !5
  %.not113115 = icmp sgt i32 %23, %28
  br i1 %.not113115, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph121
  %.0101.lcssa = phi i32 [ %23, %.lr.ph121 ], [ %spec.select, %.lr.ph ]
  %29 = getelementptr inbounds [300001 x i32], ptr @seq, i64 0, i64 %indvars.iv149
  store i32 %.0101.lcssa, ptr %29, align 4, !tbaa !5
  %30 = add nsw i64 %indvars.iv149, -1
  %31 = getelementptr inbounds [300001 x %struct.Hash], ptr @pw, i64 0, i64 %30
  %32 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) @BASE)
  %33 = getelementptr inbounds [300001 x %struct.Hash], ptr @pw, i64 0, i64 %indvars.iv149
  store i64 %32, ptr %33, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  %34 = getelementptr inbounds [300001 x %struct.Hash], ptr @hh, i64 0, i64 %30
  %35 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(8) @BASE)
  store i64 %35, ptr %1, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  store i32 %.0101.lcssa, ptr %2, align 4, !tbaa !5
  store i32 %.0101.lcssa, ptr %13, align 4, !tbaa !5
  %36 = call i64 @_ZNK4HashplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %2)
  %37 = getelementptr inbounds [300001 x %struct.Hash], ptr @hh, i64 0, i64 %indvars.iv149
  store i64 %36, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  %38 = getelementptr inbounds [300001 x x86_fp80], ptr @sum, i64 0, i64 %30
  %39 = load x86_fp80, ptr %38, align 16, !tbaa !10
  %40 = load i32, ptr %20, align 4, !tbaa !5
  %41 = sub nsw i32 %.0101.lcssa, %40
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [300001 x [11 x i32]], ptr @p, i64 0, i64 %indvars.iv149, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = call noundef double @_ZSt3logIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %44)
  %46 = fpext double %45 to x86_fp80
  %47 = fadd x86_fp80 %39, %46
  %48 = call noundef double @_ZSt3logIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef 1000000000)
  %49 = fpext double %48 to x86_fp80
  %50 = fsub x86_fp80 %47, %49
  %51 = getelementptr inbounds [300001 x x86_fp80], ptr @sum, i64 0, i64 %indvars.iv149
  store x86_fp80 %50, ptr %51, align 16, !tbaa !10
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %52 = load i32, ptr @n, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %.not108.not = icmp slt i64 %indvars.iv149, %53
  br i1 %.not108.not, label %.lr.ph121, label %.preheader114, !llvm.loop !12

.lr.ph:                                           ; preds = %.lr.ph121, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %25, %.lr.ph121 ]
  %.0101117 = phi i32 [ %spec.select, %.lr.ph ], [ %23, %.lr.ph121 ]
  %54 = getelementptr inbounds i32, ptr %27, i64 %indvars.iv
  %55 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %54)
  %56 = sext i32 %.0101117 to i64
  %57 = getelementptr inbounds i32, ptr %27, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = load i32, ptr %54, align 4, !tbaa !5
  %60 = icmp slt i32 %58, %59
  %61 = trunc nsw i64 %indvars.iv to i32
  %spec.select = select i1 %60, i32 %61, i32 %.0101117
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %62 = load i32, ptr %21, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %.not113.not = icmp slt i64 %indvars.iv, %63
  br i1 %.not113.not, label %.lr.ph, label %._crit_edge, !llvm.loop !14

._crit_edge125:                                   ; preds = %.lr.ph124, %.preheader114
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.0144)
  %65 = load i32, ptr @n, align 4, !tbaa !5
  %66 = load i32, ptr @m, align 4, !tbaa !5
  %67 = add i32 %65, 1
  %68 = sub i32 %67, %66
  %.not110140 = icmp slt i32 %68, 1
  br i1 %.not110140, label %._crit_edge142, label %.preheader

.lr.ph124:                                        ; preds = %.preheader114, %.lr.ph124
  %indvars.iv152 = phi i64 [ %indvars.iv.next153, %.lr.ph124 ], [ 1, %.preheader114 ]
  %69 = getelementptr inbounds i32, ptr getelementptr inbounds (i8, ptr @seq, i64 1200004), i64 %indvars.iv152
  %70 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %69)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %71 = add nsw i64 %indvars.iv152, -1
  %72 = getelementptr inbounds [300001 x %struct.Hash], ptr getelementptr inbounds (i8, ptr @hh, i64 2400008), i64 0, i64 %71
  %73 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %72, ptr noundef nonnull align 4 dereferenceable(8) @BASE)
  store i64 %73, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %74 = load i32, ptr %69, align 4, !tbaa !5
  store i32 %74, ptr %4, align 4, !tbaa !5
  store i32 %74, ptr %14, align 4, !tbaa !5
  %75 = call i64 @_ZNK4HashplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4)
  %76 = getelementptr inbounds [300001 x %struct.Hash], ptr getelementptr inbounds (i8, ptr @hh, i64 2400008), i64 0, i64 %indvars.iv152
  store i64 %75, ptr %76, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %77 = load i32, ptr @m, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %.not109.not = icmp slt i64 %indvars.iv152, %78
  br i1 %.not109.not, label %.lr.ph124, label %._crit_edge125, !llvm.loop !15

.preheader:                                       ; preds = %._crit_edge125, %._crit_edge136
  %79 = phi i32 [ %153, %._crit_edge136 ], [ %66, %._crit_edge125 ]
  %.0100141 = phi i32 [ %151, %._crit_edge136 ], [ 1, %._crit_edge125 ]
  %80 = icmp sgt i32 %79, 0
  br i1 %80, label %.lr.ph135, label %._crit_edge136

._crit_edge142:                                   ; preds = %._crit_edge136, %._crit_edge125
  %81 = add nuw nsw i32 %.0144, 1
  %82 = load i32, ptr @t, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.0144, %82
  br i1 %.not.not, label %15, label %._crit_edge147, !llvm.loop !16

.lr.ph135:                                        ; preds = %.preheader, %142
  %.pre155 = phi i32 [ %.pre156, %142 ], [ %79, %.preheader ]
  %83 = phi i32 [ %143, %142 ], [ %79, %.preheader ]
  %.093134 = phi x86_fp80 [ %.194, %142 ], [ 0xK00000000000000000000, %.preheader ]
  %.095133 = phi x86_fp80 [ %.2, %142 ], [ 0xK3FFF8000000000000000, %.preheader ]
  %.098132 = phi i32 [ %.199, %142 ], [ 0, %.preheader ]
  %84 = add nsw i32 %.098132, %.0100141
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [300001 x i32], ptr @seq, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = add nuw nsw i32 %.098132, 1
  %89 = zext nneg i32 %88 to i64
  %90 = getelementptr inbounds [300001 x i32], ptr getelementptr inbounds (i8, ptr @seq, i64 1200004), i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = icmp eq i32 %87, %91
  br i1 %92, label %93, label %128

93:                                               ; preds = %.lr.ph135
  %94 = sub nsw i32 %83, %.098132
  %95 = icmp sgt i32 %94, 1
  %96 = add i32 %84, -1
  %97 = sext i32 %96 to i64
  br i1 %95, label %.lr.ph129, label %._crit_edge130

.lr.ph129:                                        ; preds = %93
  %98 = getelementptr inbounds [300001 x %struct.Hash], ptr @hh, i64 0, i64 %97
  %99 = zext nneg i32 %.098132 to i64
  %100 = getelementptr inbounds [300001 x %struct.Hash], ptr getelementptr inbounds (i8, ptr @hh, i64 2400008), i64 0, i64 %99
  br label %101

101:                                              ; preds = %.lr.ph129, %101
  %.090127 = phi i32 [ %94, %.lr.ph129 ], [ %.1, %101 ]
  %.091126 = phi i32 [ 1, %.lr.ph129 ], [ %.192, %101 ]
  %102 = add nuw nsw i32 %.091126, 1
  %103 = add nuw nsw i32 %102, %.090127
  %104 = lshr i32 %103, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %105 = add i32 %96, %104
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [300001 x %struct.Hash], ptr @hh, i64 0, i64 %106
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %108 = zext nneg i32 %104 to i64
  %109 = getelementptr inbounds [300001 x %struct.Hash], ptr @pw, i64 0, i64 %108
  %110 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %98, ptr noundef nonnull align 4 dereferenceable(8) %109)
  store i64 %110, ptr %6, align 8
  %111 = call i64 @_ZNK4HashmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %107, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store i64 %111, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %112 = add nuw nsw i32 %104, %.098132
  %113 = zext nneg i32 %112 to i64
  %114 = getelementptr inbounds [300001 x %struct.Hash], ptr getelementptr inbounds (i8, ptr @hh, i64 2400008), i64 0, i64 %113
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %115 = call i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %100, ptr noundef nonnull align 4 dereferenceable(8) %109)
  store i64 %115, ptr %8, align 8
  %116 = call i64 @_ZNK4HashmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %114, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store i64 %116, ptr %7, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %117 = call noundef zeroext i1 @_ZNK4HasheqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %118 = add nsw i32 %104, -1
  %.192 = select i1 %117, i32 %104, i32 %.091126
  %.1 = select i1 %117, i32 %.090127, i32 %118
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %119 = icmp slt i32 %.192, %.1
  br i1 %119, label %101, label %._crit_edge130.loopexit, !llvm.loop !17

._crit_edge130.loopexit:                          ; preds = %101
  %.pre.pre = load i32, ptr @m, align 4, !tbaa !5
  %.pre158 = add nuw nsw i32 %.192, %.098132
  br label %._crit_edge130

._crit_edge130:                                   ; preds = %93, %._crit_edge130.loopexit
  %.pre-phi = phi i32 [ %.pre158, %._crit_edge130.loopexit ], [ %88, %93 ]
  %.pre = phi i32 [ %.pre.pre, %._crit_edge130.loopexit ], [ %.pre155, %93 ]
  %.091.lcssa = phi i32 [ %.192, %._crit_edge130.loopexit ], [ 1, %93 ]
  %120 = add i32 %96, %.091.lcssa
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [300001 x x86_fp80], ptr @sum, i64 0, i64 %121
  %123 = load x86_fp80, ptr %122, align 16, !tbaa !10
  %124 = getelementptr inbounds [300001 x x86_fp80], ptr @sum, i64 0, i64 %97
  %125 = load x86_fp80, ptr %124, align 16, !tbaa !10
  %126 = fsub x86_fp80 %123, %125
  %127 = fadd x86_fp80 %.093134, %126
  br label %142

128:                                              ; preds = %.lr.ph135
  %129 = getelementptr inbounds [300001 x i32], ptr @pL, i64 0, i64 %85
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %.not111 = icmp sgt i32 %130, %91
  br i1 %.not111, label %._crit_edge136, label %131

131:                                              ; preds = %128
  %132 = getelementptr inbounds [300001 x i32], ptr @pR, i64 0, i64 %85
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %.not112 = icmp sgt i32 %91, %133
  br i1 %.not112, label %._crit_edge136, label %134

134:                                              ; preds = %131
  %135 = sub nsw i32 %91, %130
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [300001 x [11 x i32]], ptr @p, i64 0, i64 %85, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = sitofp i32 %138 to x86_fp80
  %140 = fdiv x86_fp80 %139, 0xK401CEE6B280000000000
  %141 = fmul x86_fp80 %.095133, %140
  br label %142

142:                                              ; preds = %134, %._crit_edge130
  %.pre156 = phi i32 [ %.pre, %._crit_edge130 ], [ %.pre155, %134 ]
  %143 = phi i32 [ %.pre, %._crit_edge130 ], [ %83, %134 ]
  %.199 = phi i32 [ %.pre-phi, %._crit_edge130 ], [ %88, %134 ]
  %.2 = phi x86_fp80 [ %.095133, %._crit_edge130 ], [ %141, %134 ]
  %.194 = phi x86_fp80 [ %127, %._crit_edge130 ], [ %.093134, %134 ]
  %144 = icmp slt i32 %.199, %143
  %145 = fcmp oge x86_fp80 %.2, 0xK3FE189705F4136B4A800
  %146 = select i1 %144, i1 %145, i1 false
  br i1 %146, label %.lr.ph135, label %._crit_edge136, !llvm.loop !18

._crit_edge136:                                   ; preds = %131, %128, %142, %.preheader
  %.095.lcssa = phi x86_fp80 [ 0xK3FFF8000000000000000, %.preheader ], [ 0xK00000000000000000000, %131 ], [ 0xK00000000000000000000, %128 ], [ %.2, %142 ]
  %.093.lcssa = phi x86_fp80 [ 0xK00000000000000000000, %.preheader ], [ %.093134, %131 ], [ %.093134, %128 ], [ %.194, %142 ]
  %147 = call noundef x86_fp80 @_ZSt3expe(x86_fp80 noundef %.093.lcssa)
  %148 = fmul x86_fp80 %.095.lcssa, %147
  %149 = fptrunc x86_fp80 %148 to double
  %150 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %149)
  %151 = add nuw nsw i32 %.0100141, 1
  %152 = load i32, ptr @n, align 4, !tbaa !5
  %153 = load i32, ptr @m, align 4, !tbaa !5
  %154 = add i32 %152, 1
  %155 = sub i32 %154, %153
  %.not110.not = icmp slt i32 %.0100141, %155
  br i1 %.not110.not, label %.preheader, label %._crit_edge142, !llvm.loop !19
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK4HashmlERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK4HashplERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3logIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK4HashmiERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZSt3expe(x86_fp80 noundef) local_unnamed_addr #4

attributes #0 = { mustprogress norecurse 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long double", !7, 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}


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