; LLVM IR from tangjz/acm-icpc :: hdu (6053)

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

@mu = external dso_local global [100001 x i32], align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@a = external dso_local global [100001 x i32], align 16
@s = external dso_local global [100001 x i32], align 16
@.str = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z7mod_powii(i32 noundef, i32 noundef) #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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  store i32 1, ptr getelementptr inbounds ([100001 x i32], ptr @mu, i64 0, i64 1), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %47, %0
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = icmp slt i32 %21, 100001
  br i1 %22, label %24, label %23

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

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = add nsw i32 %25, %26
  store i32 %27, ptr %4, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %42, %24
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = icmp slt i32 %29, 100001
  br i1 %30, label %32, label %31

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

32:                                               ; preds = %28
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = sub nsw i32 %40, %36
  store i32 %41, ptr %39, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %32
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = add nsw i32 %44, %43
  store i32 %45, ptr %4, align 4, !tbaa !5
  br label %28, !llvm.loop !9

46:                                               ; preds = %31
  br label %47

47:                                               ; preds = %46
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %2, align 4, !tbaa !5
  br label %20, !llvm.loop !11

50:                                               ; preds = %23
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @t)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %229, %50
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = load i32, ptr @t, align 4, !tbaa !5
  %54 = icmp sle i32 %52, %53
  br i1 %54, label %56, label %55

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

56:                                               ; preds = %51
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 100001, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %76, %56
  %58 = load i32, ptr %8, align 4, !tbaa !5
  %59 = load i32, ptr @n, align 4, !tbaa !5
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %79

62:                                               ; preds = %57
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %64
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %65)
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %67
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %68)
  %70 = load i32, ptr %69, align 4, !tbaa !5
  store i32 %70, ptr %6, align 4, !tbaa !5
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %72
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %73)
  %75 = load i32, ptr %74, align 4, !tbaa !5
  store i32 %75, ptr %7, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %62
  %77 = load i32, ptr %8, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %8, align 4, !tbaa !5
  br label %57, !llvm.loop !12

79:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %89, %79
  %81 = load i32, ptr %9, align 4, !tbaa !5
  %82 = load i32, ptr %7, align 4, !tbaa !5
  %83 = icmp sle i32 %81, %82
  br i1 %83, label %85, label %84

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

85:                                               ; preds = %80
  %86 = load i32, ptr %9, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %87
  store i32 0, ptr %88, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %85
  %90 = load i32, ptr %9, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %9, align 4, !tbaa !5
  br label %80, !llvm.loop !13

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

93:                                               ; preds = %107, %92
  %94 = load i32, ptr %10, align 4, !tbaa !5
  %95 = load i32, ptr @n, align 4, !tbaa !5
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %93
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %110

98:                                               ; preds = %93
  %99 = load i32, ptr %10, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %104, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %98
  %108 = load i32, ptr %10, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %10, align 4, !tbaa !5
  br label %93, !llvm.loop !14

110:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %127, %110
  %112 = load i32, ptr %11, align 4, !tbaa !5
  %113 = load i32, ptr %7, align 4, !tbaa !5
  %114 = icmp sle i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %130

116:                                              ; preds = %111
  %117 = load i32, ptr %11, align 4, !tbaa !5
  %118 = sub nsw i32 %117, 1
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = load i32, ptr %11, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = add nsw i32 %125, %121
  store i32 %126, ptr %124, align 4, !tbaa !5
  br label %127

127:                                              ; preds = %116
  %128 = load i32, ptr %11, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %11, align 4, !tbaa !5
  br label %111, !llvm.loop !15

130:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 2, ptr %13, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %222, %130
  %132 = load i32, ptr %13, align 4, !tbaa !5
  %133 = load i32, ptr %6, align 4, !tbaa !5
  %134 = icmp sle i32 %132, %133
  br i1 %134, label %136, label %135

135:                                              ; preds = %131
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %225

136:                                              ; preds = %131
  %137 = load i32, ptr %13, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %143, label %142

142:                                              ; preds = %136
  br label %222

143:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 1, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 1, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %144 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %144, ptr %16, align 4, !tbaa !5
  br label %145

145:                                              ; preds = %180, %143
  %146 = load i32, ptr %16, align 4, !tbaa !5
  %147 = load i32, ptr %7, align 4, !tbaa !5
  %148 = icmp sle i32 %146, %147
  br i1 %148, label %150, label %149

149:                                              ; preds = %145
  store i32 26, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %186

150:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %151 = load i32, ptr %16, align 4, !tbaa !5
  %152 = load i32, ptr %13, align 4, !tbaa !5
  %153 = add nsw i32 %151, %152
  %154 = sub nsw i32 %153, 1
  store i32 %154, ptr %18, align 4, !tbaa !5
  %155 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %156 = load i32, ptr %155, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  store i32 %156, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %157 = load i32, ptr %17, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %158
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = load i32, ptr %16, align 4, !tbaa !5
  %162 = sub nsw i32 %161, 1
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = sub nsw i32 %160, %165
  store i32 %166, ptr %19, align 4, !tbaa !5
  %167 = load i32, ptr %19, align 4, !tbaa !5
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %179

169:                                              ; preds = %150
  %170 = load i32, ptr %14, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = load i32, ptr %15, align 4, !tbaa !5
  %173 = load i32, ptr %19, align 4, !tbaa !5
  %174 = call noundef i32 @_Z7mod_powii(i32 noundef %172, i32 noundef %173)
  %175 = sext i32 %174 to i64
  %176 = mul nsw i64 %171, %175
  %177 = srem i64 %176, 1000000007
  %178 = trunc i64 %177 to i32
  store i32 %178, ptr %14, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %169, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %180

180:                                              ; preds = %179
  %181 = load i32, ptr %15, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %15, align 4, !tbaa !5
  %183 = load i32, ptr %13, align 4, !tbaa !5
  %184 = load i32, ptr %16, align 4, !tbaa !5
  %185 = add nsw i32 %184, %183
  store i32 %185, ptr %16, align 4, !tbaa !5
  br label %145, !llvm.loop !16

186:                                              ; preds = %149
  %187 = load i32, ptr %13, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %188
  %190 = load i32, ptr %189, align 4, !tbaa !5
  %191 = icmp sgt i32 %190, 0
  br i1 %191, label %192, label %203

192:                                              ; preds = %186
  %193 = load i32, ptr %14, align 4, !tbaa !5
  %194 = load i32, ptr %12, align 4, !tbaa !5
  %195 = sub nsw i32 %194, %193
  store i32 %195, ptr %12, align 4, !tbaa !5
  %196 = icmp slt i32 %195, 0
  br i1 %196, label %197, label %201

197:                                              ; preds = %192
  %198 = load i32, ptr %12, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1000000007
  store i32 %199, ptr %12, align 4, !tbaa !5
  %200 = icmp ne i32 %199, 0
  br label %201

201:                                              ; preds = %197, %192
  %202 = phi i1 [ false, %192 ], [ %200, %197 ]
  br label %221

203:                                              ; preds = %186
  %204 = load i32, ptr %13, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = icmp slt i32 %207, 0
  br i1 %208, label %209, label %220

209:                                              ; preds = %203
  %210 = load i32, ptr %14, align 4, !tbaa !5
  %211 = load i32, ptr %12, align 4, !tbaa !5
  %212 = add nsw i32 %211, %210
  store i32 %212, ptr %12, align 4, !tbaa !5
  %213 = icmp sge i32 %212, 1000000007
  br i1 %213, label %214, label %218

214:                                              ; preds = %209
  %215 = load i32, ptr %12, align 4, !tbaa !5
  %216 = sub nsw i32 %215, 1000000007
  store i32 %216, ptr %12, align 4, !tbaa !5
  %217 = icmp ne i32 %216, 0
  br label %218

218:                                              ; preds = %214, %209
  %219 = phi i1 [ false, %209 ], [ %217, %214 ]
  br label %220

220:                                              ; preds = %218, %203
  br label %221

221:                                              ; preds = %220, %201
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %222

222:                                              ; preds = %221, %142
  %223 = load i32, ptr %13, align 4, !tbaa !5
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %13, align 4, !tbaa !5
  br label %131, !llvm.loop !17

225:                                              ; preds = %135
  %226 = load i32, ptr %5, align 4, !tbaa !5
  %227 = load i32, ptr %12, align 4, !tbaa !5
  %228 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %226, i32 noundef %227)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %229

229:                                              ; preds = %225
  %230 = load i32, ptr %5, align 4, !tbaa !5
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %5, align 4, !tbaa !5
  br label %51, !llvm.loop !18

232:                                              ; preds = %55
  ret i32 0
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4)) #3

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

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

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

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


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

@mu = external dso_local local_unnamed_addr global [100001 x i32], align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@a = external dso_local global [100001 x i32], align 16
@s = external dso_local local_unnamed_addr global [100001 x i32], align 16
@.str = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z7mod_powii(i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  store i32 1, ptr getelementptr inbounds (i8, ptr @mu, i64 4), align 4, !tbaa !5
  br label %6

4:                                                ; preds = %._crit_edge
  tail call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @t)
  %5 = load i32, ptr @t, align 4, !tbaa !5
  %.not110 = icmp slt i32 %5, 1
  br i1 %.not110, label %._crit_edge114, label %.lr.ph113

6:                                                ; preds = %0, %._crit_edge
  %indvars.iv116 = phi i64 [ 1, %0 ], [ %indvars.iv.next117, %._crit_edge ]
  %indvars.iv = phi i64 [ 2, %0 ], [ %indvars.iv.next, %._crit_edge ]
  %7 = icmp ult i64 %indvars.iv116, 50001
  br i1 %7, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %6
  %8 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %indvars.iv116
  br label %9

._crit_edge:                                      ; preds = %9, %6
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not = icmp eq i64 %indvars.iv.next117, 100001
  br i1 %exitcond.not, label %4, label %6, !llvm.loop !9

9:                                                ; preds = %.lr.ph, %9
  %indvars.iv118 = phi i64 [ %indvars.iv, %.lr.ph ], [ %indvars.iv.next119, %9 ]
  %10 = load i32, ptr %8, align 4, !tbaa !5
  %11 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %indvars.iv118
  %12 = load i32, ptr %11, align 4, !tbaa !5
  %13 = sub nsw i32 %12, %10
  store i32 %13, ptr %11, align 4, !tbaa !5
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, %indvars.iv116
  %14 = icmp ult i64 %indvars.iv.next119, 100001
  br i1 %14, label %9, label %._crit_edge, !llvm.loop !11

._crit_edge114:                                   ; preds = %._crit_edge108, %4
  ret i32 0

.lr.ph113:                                        ; preds = %4, %._crit_edge108
  %.062111 = phi i32 [ %79, %._crit_edge108 ], [ 1, %4 ]
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  store i32 100001, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph86, label %.lr.ph107.preheader

.preheader80:                                     ; preds = %.lr.ph86
  %.not7087 = icmp slt i32 %23, 1
  br i1 %.not7087, label %.preheader79, label %.lr.ph89.preheader

.lr.ph89.preheader:                               ; preds = %.preheader80
  %17 = zext nneg i32 %23 to i64
  %18 = shl nuw nsw i64 %17, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 4 getelementptr inbounds (i8, ptr @s, i64 4), i8 0, i64 %18, i1 false), !tbaa !5
  br label %.preheader79

.lr.ph86:                                         ; preds = %.lr.ph113, %.lr.ph86
  %indvars.iv122 = phi i64 [ %indvars.iv.next123, %.lr.ph86 ], [ 0, %.lr.ph113 ]
  %19 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %indvars.iv122
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %19)
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %21 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %21, ptr %1, align 4, !tbaa !5
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %23 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %23, ptr %2, align 4, !tbaa !5
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %24 = load i32, ptr @n, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = icmp slt i64 %indvars.iv.next123, %25
  br i1 %26, label %.lr.ph86, label %.preheader80, !llvm.loop !12

.preheader79:                                     ; preds = %.lr.ph89.preheader, %.preheader80
  %27 = icmp sgt i32 %24, 0
  br i1 %27, label %.lr.ph92.preheader, label %.preheader78

.lr.ph92.preheader:                               ; preds = %.preheader79
  %wide.trip.count = zext nneg i32 %24 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %28 = icmp ult i32 %24, 4
  br i1 %28, label %.preheader78.loopexit.unr-lcssa, label %.lr.ph92.preheader.new

.lr.ph92.preheader.new:                           ; preds = %.lr.ph92.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph92

.preheader78.loopexit.unr-lcssa:                  ; preds = %.lr.ph92, %.lr.ph92.preheader
  %indvars.iv128.unr = phi i64 [ 0, %.lr.ph92.preheader ], [ %indvars.iv.next129.3, %.lr.ph92 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader78, label %.lr.ph92.epil

.lr.ph92.epil:                                    ; preds = %.preheader78.loopexit.unr-lcssa, %.lr.ph92.epil
  %indvars.iv128.epil = phi i64 [ %indvars.iv.next129.epil, %.lr.ph92.epil ], [ %indvars.iv128.unr, %.preheader78.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph92.epil ], [ 0, %.preheader78.loopexit.unr-lcssa ]
  %29 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %indvars.iv128.epil
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %32, align 4, !tbaa !5
  %indvars.iv.next129.epil = add nuw nsw i64 %indvars.iv128.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader78, label %.lr.ph92.epil, !llvm.loop !13

.preheader78:                                     ; preds = %.preheader78.loopexit.unr-lcssa, %.lr.ph92.epil, %.preheader79
  br i1 %.not7087, label %.preheader77, label %.lr.ph95.preheader

.lr.ph95.preheader:                               ; preds = %.preheader78
  %.pre = load i32, ptr @s, align 16, !tbaa !5
  %35 = zext nneg i32 %23 to i64
  %xtraiter159 = and i64 %35, 3
  %36 = icmp ult i32 %23, 4
  br i1 %36, label %.preheader77.loopexit.unr-lcssa, label %.lr.ph95.preheader.new

.lr.ph95.preheader.new:                           ; preds = %.lr.ph95.preheader
  %unroll_iter162 = and i64 %35, 2147483644
  br label %.lr.ph95

.lr.ph92:                                         ; preds = %.lr.ph92, %.lr.ph92.preheader.new
  %indvars.iv128 = phi i64 [ 0, %.lr.ph92.preheader.new ], [ %indvars.iv.next129.3, %.lr.ph92 ]
  %niter = phi i64 [ 0, %.lr.ph92.preheader.new ], [ %niter.next.3, %.lr.ph92 ]
  %37 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %indvars.iv128
  %38 = load i32, ptr %37, align 16, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %40, align 4, !tbaa !5
  %indvars.iv.next129 = or disjoint i64 %indvars.iv128, 1
  %43 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %indvars.iv.next129
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %46, align 4, !tbaa !5
  %indvars.iv.next129.1 = or disjoint i64 %indvars.iv128, 2
  %49 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %indvars.iv.next129.1
  %50 = load i32, ptr %49, align 8, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %52, align 4, !tbaa !5
  %indvars.iv.next129.2 = or disjoint i64 %indvars.iv128, 3
  %55 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %indvars.iv.next129.2
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %58, align 4, !tbaa !5
  %indvars.iv.next129.3 = add nuw nsw i64 %indvars.iv128, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader78.loopexit.unr-lcssa, label %.lr.ph92, !llvm.loop !15

.preheader77.loopexit.unr-lcssa:                  ; preds = %.lr.ph95, %.lr.ph95.preheader
  %.unr = phi i32 [ %.pre, %.lr.ph95.preheader ], [ %77, %.lr.ph95 ]
  %indvars.iv132.unr = phi i64 [ 1, %.lr.ph95.preheader ], [ %indvars.iv.next133.3, %.lr.ph95 ]
  %lcmp.mod161.not = icmp eq i64 %xtraiter159, 0
  br i1 %lcmp.mod161.not, label %.preheader77, label %.lr.ph95.epil

.lr.ph95.epil:                                    ; preds = %.preheader77.loopexit.unr-lcssa, %.lr.ph95.epil
  %61 = phi i32 [ %64, %.lr.ph95.epil ], [ %.unr, %.preheader77.loopexit.unr-lcssa ]
  %indvars.iv132.epil = phi i64 [ %indvars.iv.next133.epil, %.lr.ph95.epil ], [ %indvars.iv132.unr, %.preheader77.loopexit.unr-lcssa ]
  %epil.iter160 = phi i64 [ %epil.iter160.next, %.lr.ph95.epil ], [ 0, %.preheader77.loopexit.unr-lcssa ]
  %62 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %indvars.iv132.epil
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = add nsw i32 %63, %61
  store i32 %64, ptr %62, align 4, !tbaa !5
  %indvars.iv.next133.epil = add nuw nsw i64 %indvars.iv132.epil, 1
  %epil.iter160.next = add i64 %epil.iter160, 1
  %epil.iter160.cmp.not = icmp eq i64 %epil.iter160.next, %xtraiter159
  br i1 %epil.iter160.cmp.not, label %.preheader77, label %.lr.ph95.epil, !llvm.loop !16

.preheader77:                                     ; preds = %.preheader77.loopexit.unr-lcssa, %.lr.ph95.epil, %.preheader78
  %.pr = load i32, ptr %1, align 4, !tbaa !5
  %.not72103 = icmp slt i32 %.pr, 2
  br i1 %.not72103, label %._crit_edge108, label %.lr.ph107.preheader

.lr.ph107.preheader:                              ; preds = %.lr.ph113, %.preheader77
  %.ph = phi i32 [ 0, %.lr.ph113 ], [ %23, %.preheader77 ]
  br label %.lr.ph107

.lr.ph95:                                         ; preds = %.lr.ph95, %.lr.ph95.preheader.new
  %65 = phi i32 [ %.pre, %.lr.ph95.preheader.new ], [ %77, %.lr.ph95 ]
  %indvars.iv132 = phi i64 [ 1, %.lr.ph95.preheader.new ], [ %indvars.iv.next133.3, %.lr.ph95 ]
  %niter163 = phi i64 [ 0, %.lr.ph95.preheader.new ], [ %niter163.next.3, %.lr.ph95 ]
  %66 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %indvars.iv132
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = add nsw i32 %67, %65
  store i32 %68, ptr %66, align 4, !tbaa !5
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %69 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %indvars.iv.next133
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = add nsw i32 %70, %68
  store i32 %71, ptr %69, align 4, !tbaa !5
  %indvars.iv.next133.1 = add nuw nsw i64 %indvars.iv132, 2
  %72 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %indvars.iv.next133.1
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = add nsw i32 %73, %71
  store i32 %74, ptr %72, align 4, !tbaa !5
  %indvars.iv.next133.2 = add nuw nsw i64 %indvars.iv132, 3
  %75 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %indvars.iv.next133.2
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = add nsw i32 %76, %74
  store i32 %77, ptr %75, align 4, !tbaa !5
  %indvars.iv.next133.3 = add nuw nsw i64 %indvars.iv132, 4
  %niter163.next.3 = add i64 %niter163, 4
  %niter163.ncmp.3 = icmp eq i64 %niter163.next.3, %unroll_iter162
  br i1 %niter163.ncmp.3, label %.preheader77.loopexit.unr-lcssa, label %.lr.ph95, !llvm.loop !17

._crit_edge108:                                   ; preds = %120, %.preheader77
  %.056.lcssa = phi i32 [ 0, %.preheader77 ], [ %.2, %120 ]
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %.062111, i32 noundef %.056.lcssa)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %79 = add nuw nsw i32 %.062111, 1
  %80 = load i32, ptr @t, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.062111, %80
  br i1 %.not.not, label %.lr.ph113, label %._crit_edge114, !llvm.loop !18

.lr.ph107:                                        ; preds = %.lr.ph107.preheader, %120
  %81 = phi i32 [ %121, %120 ], [ %.ph, %.lr.ph107.preheader ]
  %indvars.iv137 = phi i64 [ %indvars.iv.next138, %120 ], [ 2, %.lr.ph107.preheader ]
  %.056104 = phi i32 [ %.2, %120 ], [ 0, %.lr.ph107.preheader ]
  %82 = getelementptr inbounds [100001 x i32], ptr @mu, i64 0, i64 %indvars.iv137
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %.not73 = icmp eq i32 %83, 0
  br i1 %.not73, label %120, label %.preheader

.preheader:                                       ; preds = %.lr.ph107
  %84 = sext i32 %81 to i64
  %.not7496 = icmp sgt i64 %indvars.iv137, %84
  br i1 %.not7496, label %._crit_edge101, label %.lr.ph100

._crit_edge101.loopexit:                          ; preds = %106
  %.pre143 = load i32, ptr %82, align 4, !tbaa !5
  br label %._crit_edge101

._crit_edge101:                                   ; preds = %._crit_edge101.loopexit, %.preheader
  %85 = phi i32 [ %83, %.preheader ], [ %.pre143, %._crit_edge101.loopexit ]
  %86 = phi i32 [ %81, %.preheader ], [ %108, %._crit_edge101.loopexit ]
  %.054.lcssa = phi i32 [ 1, %.preheader ], [ %.1, %._crit_edge101.loopexit ]
  %87 = icmp sgt i32 %85, 0
  br i1 %87, label %110, label %114

.lr.ph100:                                        ; preds = %.preheader, %106
  %indvars.iv139 = phi i64 [ %indvars.iv.next140, %106 ], [ %indvars.iv137, %.preheader ]
  %.05398 = phi i32 [ %107, %106 ], [ 1, %.preheader ]
  %.05497 = phi i32 [ %.1, %106 ], [ 1, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %indvars.iv.next140 = add nuw nsw i64 %indvars.iv139, %indvars.iv137
  %88 = trunc i64 %indvars.iv.next140 to i32
  %89 = add i32 %88, -1
  store i32 %89, ptr %3, align 4, !tbaa !5
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %91 = load i32, ptr %90, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = add nsw i64 %indvars.iv139, -1
  %96 = getelementptr inbounds [100001 x i32], ptr @s, i64 0, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %.not75 = icmp eq i32 %94, %97
  br i1 %.not75, label %106, label %98

98:                                               ; preds = %.lr.ph100
  %99 = sub nsw i32 %94, %97
  %100 = sext i32 %.05497 to i64
  %101 = call noundef i32 @_Z7mod_powii(i32 noundef %.05398, i32 noundef %99)
  %102 = sext i32 %101 to i64
  %103 = mul nsw i64 %102, %100
  %104 = srem i64 %103, 1000000007
  %105 = trunc nsw i64 %104 to i32
  br label %106

106:                                              ; preds = %98, %.lr.ph100
  %.1 = phi i32 [ %105, %98 ], [ %.05497, %.lr.ph100 ]
  %107 = add nuw nsw i32 %.05398, 1
  %108 = load i32, ptr %2, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %.not74 = icmp sgt i64 %indvars.iv.next140, %109
  br i1 %.not74, label %._crit_edge101.loopexit, label %.lr.ph100, !llvm.loop !19

110:                                              ; preds = %._crit_edge101
  %111 = sub nsw i32 %.056104, %.054.lcssa
  %112 = icmp slt i32 %111, 0
  %113 = add nsw i32 %111, 1000000007
  %spec.select = select i1 %112, i32 %113, i32 %111
  br label %120

114:                                              ; preds = %._crit_edge101
  %115 = icmp slt i32 %85, 0
  br i1 %115, label %116, label %120

116:                                              ; preds = %114
  %117 = add nsw i32 %.054.lcssa, %.056104
  %118 = icmp sgt i32 %117, 1000000006
  %119 = add nsw i32 %117, -1000000007
  %spec.select76 = select i1 %118, i32 %119, i32 %117
  br label %120

120:                                              ; preds = %116, %110, %114, %.lr.ph107
  %121 = phi i32 [ %81, %.lr.ph107 ], [ %86, %114 ], [ %86, %110 ], [ %86, %116 ]
  %.2 = phi i32 [ %.056104, %.lr.ph107 ], [ %.056104, %114 ], [ %spec.select, %110 ], [ %spec.select76, %116 ]
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %122 = load i32, ptr %1, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %.not72.not = icmp slt i64 %indvars.iv137, %123
  br i1 %.not72.not, label %.lr.ph107, label %._crit_edge108, !llvm.loop !20
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

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

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

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


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