; LLVM IR from upupming/algorithm :: acwing/日常刷题/数位DP/1086. 恨7不成妻.ll (Z4initv)

; 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.F = type { i32, i32, i32 }

@f = external dso_local global [20 x [10 x [7 x [7 x %struct.F]]]], align 16
@pow7 = external dso_local global [20 x i32], align 16
@powP = external dso_local global [20 x i64], align 16

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z4initv() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %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 ptr, align 8
  %11 = alloca %struct.F, align 4
  store i64 1, ptr @powP, align 16, !tbaa !5
  store i32 1, ptr @pow7, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #3
  store i32 1, ptr %1, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %39, %0
  %13 = load i32, ptr %1, align 4, !tbaa !9
  %14 = icmp slt i32 %13, 20
  br i1 %14, label %16, label %15

15:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #3
  br label %42

16:                                               ; preds = %12
  %17 = load i32, ptr %1, align 4, !tbaa !9
  %18 = sub nsw i32 %17, 1
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [20 x i32], ptr @pow7, i64 0, i64 %19
  %21 = load i32, ptr %20, align 4, !tbaa !9
  %22 = sext i32 %21 to i64
  %23 = mul nsw i64 %22, 10
  %24 = srem i64 %23, 7
  %25 = trunc i64 %24 to i32
  %26 = load i32, ptr %1, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [20 x i32], ptr @pow7, i64 0, i64 %27
  store i32 %25, ptr %28, align 4, !tbaa !9
  %29 = load i32, ptr %1, align 4, !tbaa !9
  %30 = sub nsw i32 %29, 1
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [20 x i64], ptr @powP, i64 0, i64 %31
  %33 = load i64, ptr %32, align 8, !tbaa !5
  %34 = mul nsw i64 %33, 10
  %35 = srem i64 %34, 1000000007
  %36 = load i32, ptr %1, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [20 x i64], ptr @powP, i64 0, i64 %37
  store i64 %35, ptr %38, align 8, !tbaa !5
  br label %39

39:                                               ; preds = %16
  %40 = load i32, ptr %1, align 4, !tbaa !9
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %1, align 4, !tbaa !9
  br label %12, !llvm.loop !11

42:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %73, %42
  %44 = load i32, ptr %2, align 4, !tbaa !9
  %45 = icmp sle i32 %44, 9
  br i1 %45, label %47, label %46

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

47:                                               ; preds = %43
  %48 = load i32, ptr %2, align 4, !tbaa !9
  %49 = icmp eq i32 %48, 7
  br i1 %49, label %50, label %51

50:                                               ; preds = %47
  br label %73

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %52 = load i32, ptr %2, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [10 x [7 x [7 x %struct.F]]], ptr getelementptr inbounds ([20 x [10 x [7 x [7 x %struct.F]]]], ptr @f, i64 0, i64 1), i64 0, i64 %53
  %55 = load i32, ptr %2, align 4, !tbaa !9
  %56 = srem i32 %55, 7
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [7 x [7 x %struct.F]], ptr %54, i64 0, i64 %57
  %59 = load i32, ptr %2, align 4, !tbaa !9
  %60 = srem i32 %59, 7
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [7 x %struct.F], ptr %58, i64 0, i64 %61
  store ptr %62, ptr %3, align 8, !tbaa !13
  %63 = load ptr, ptr %3, align 8, !tbaa !13
  %64 = getelementptr inbounds %struct.F, ptr %63, i32 0, i32 0
  store i32 1, ptr %64, align 4, !tbaa !15
  %65 = load i32, ptr %2, align 4, !tbaa !9
  %66 = load ptr, ptr %3, align 8, !tbaa !13
  %67 = getelementptr inbounds %struct.F, ptr %66, i32 0, i32 1
  store i32 %65, ptr %67, align 4, !tbaa !17
  %68 = load i32, ptr %2, align 4, !tbaa !9
  %69 = load i32, ptr %2, align 4, !tbaa !9
  %70 = mul nsw i32 %68, %69
  %71 = load ptr, ptr %3, align 8, !tbaa !13
  %72 = getelementptr inbounds %struct.F, ptr %71, i32 0, i32 2
  store i32 %70, ptr %72, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  br label %73

73:                                               ; preds = %51, %50
  %74 = load i32, ptr %2, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %2, align 4, !tbaa !9
  br label %43, !llvm.loop !19

76:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 2, ptr %4, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %245, %76
  %78 = load i32, ptr %4, align 4, !tbaa !9
  %79 = icmp slt i32 %78, 20
  br i1 %79, label %81, label %80

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

81:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %241, %81
  %83 = load i32, ptr %6, align 4, !tbaa !9
  %84 = icmp sle i32 %83, 9
  br i1 %84, label %86, label %85

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

86:                                               ; preds = %82
  %87 = load i32, ptr %6, align 4, !tbaa !9
  %88 = icmp eq i32 %87, 7
  br i1 %88, label %89, label %90

89:                                               ; preds = %86
  br label %241

90:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %237, %90
  %92 = load i32, ptr %7, align 4, !tbaa !9
  %93 = icmp slt i32 %92, 7
  br i1 %93, label %95, label %94

94:                                               ; preds = %91
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %240

95:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %233, %95
  %97 = load i32, ptr %8, align 4, !tbaa !9
  %98 = icmp slt i32 %97, 7
  br i1 %98, label %100, label %99

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

100:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %229, %100
  %102 = load i32, ptr %9, align 4, !tbaa !9
  %103 = icmp sle i32 %102, 9
  br i1 %103, label %105, label %104

104:                                              ; preds = %101
  store i32 20, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %232

105:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %106 = load i32, ptr %4, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [20 x [10 x [7 x [7 x %struct.F]]]], ptr @f, i64 0, i64 %107
  %109 = load i32, ptr %6, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [10 x [7 x [7 x %struct.F]]], ptr %108, i64 0, i64 %110
  %112 = load i32, ptr %7, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [7 x [7 x %struct.F]], ptr %111, i64 0, i64 %113
  %115 = load i32, ptr %8, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [7 x %struct.F], ptr %114, i64 0, i64 %116
  store ptr %117, ptr %10, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #3
  %118 = load i32, ptr %4, align 4, !tbaa !9
  %119 = sub nsw i32 %118, 1
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [20 x [10 x [7 x [7 x %struct.F]]]], ptr @f, i64 0, i64 %120
  %122 = load i32, ptr %9, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [10 x [7 x [7 x %struct.F]]], ptr %121, i64 0, i64 %123
  %125 = load i32, ptr %7, align 4, !tbaa !9
  %126 = load i32, ptr %6, align 4, !tbaa !9
  %127 = load i32, ptr %4, align 4, !tbaa !9
  %128 = sub nsw i32 %127, 1
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [20 x i32], ptr @pow7, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !9
  %132 = mul nsw i32 %126, %131
  %133 = sub nsw i32 %125, %132
  %134 = sext i32 %133 to i64
  %135 = call noundef i32 @_Z3modxx(i64 noundef %134, i64 noundef 7)
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [7 x [7 x %struct.F]], ptr %124, i64 0, i64 %136
  %138 = load i32, ptr %8, align 4, !tbaa !9
  %139 = load i32, ptr %6, align 4, !tbaa !9
  %140 = sub nsw i32 %138, %139
  %141 = sext i32 %140 to i64
  %142 = call noundef i32 @_Z3modxx(i64 noundef %141, i64 noundef 7)
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [7 x %struct.F], ptr %137, i64 0, i64 %143
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %144, i64 12, i1 false), !tbaa.struct !20
  %145 = load ptr, ptr %10, align 8, !tbaa !13
  %146 = getelementptr inbounds %struct.F, ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 4, !tbaa !15
  %148 = getelementptr inbounds %struct.F, ptr %11, i32 0, i32 0
  %149 = load i32, ptr %148, align 4, !tbaa !15
  %150 = add nsw i32 %147, %149
  %151 = sext i32 %150 to i64
  %152 = call noundef i32 @_Z3modxx(i64 noundef %151, i64 noundef 1000000007)
  %153 = load ptr, ptr %10, align 8, !tbaa !13
  %154 = getelementptr inbounds %struct.F, ptr %153, i32 0, i32 0
  store i32 %152, ptr %154, align 4, !tbaa !15
  %155 = load ptr, ptr %10, align 8, !tbaa !13
  %156 = getelementptr inbounds %struct.F, ptr %155, i32 0, i32 1
  %157 = load i32, ptr %156, align 4, !tbaa !17
  %158 = getelementptr inbounds %struct.F, ptr %11, i32 0, i32 1
  %159 = load i32, ptr %158, align 4, !tbaa !17
  %160 = add nsw i32 %157, %159
  %161 = sext i32 %160 to i64
  %162 = load i32, ptr %4, align 4, !tbaa !9
  %163 = sub nsw i32 %162, 1
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [20 x i64], ptr @powP, i64 0, i64 %164
  %166 = load i64, ptr %165, align 8, !tbaa !5
  %167 = load i32, ptr %6, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = mul nsw i64 %166, %168
  %170 = srem i64 %169, 1000000007
  %171 = getelementptr inbounds %struct.F, ptr %11, i32 0, i32 0
  %172 = load i32, ptr %171, align 4, !tbaa !15
  %173 = sext i32 %172 to i64
  %174 = mul nsw i64 %170, %173
  %175 = add nsw i64 %161, %174
  %176 = call noundef i32 @_Z3modxx(i64 noundef %175, i64 noundef 1000000007)
  %177 = load ptr, ptr %10, align 8, !tbaa !13
  %178 = getelementptr inbounds %struct.F, ptr %177, i32 0, i32 1
  store i32 %176, ptr %178, align 4, !tbaa !17
  %179 = load ptr, ptr %10, align 8, !tbaa !13
  %180 = getelementptr inbounds %struct.F, ptr %179, i32 0, i32 2
  %181 = load i32, ptr %180, align 4, !tbaa !18
  %182 = sext i32 %181 to i64
  %183 = load i32, ptr %4, align 4, !tbaa !9
  %184 = sub nsw i32 %183, 1
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [20 x i64], ptr @powP, i64 0, i64 %185
  %187 = load i64, ptr %186, align 8, !tbaa !5
  %188 = load i32, ptr %4, align 4, !tbaa !9
  %189 = sub nsw i32 %188, 1
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [20 x i64], ptr @powP, i64 0, i64 %190
  %192 = load i64, ptr %191, align 8, !tbaa !5
  %193 = mul nsw i64 %187, %192
  %194 = srem i64 %193, 1000000007
  %195 = load i32, ptr %6, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = mul nsw i64 %194, %196
  %198 = load i32, ptr %6, align 4, !tbaa !9
  %199 = sext i32 %198 to i64
  %200 = mul nsw i64 %197, %199
  %201 = srem i64 %200, 1000000007
  %202 = getelementptr inbounds %struct.F, ptr %11, i32 0, i32 0
  %203 = load i32, ptr %202, align 4, !tbaa !15
  %204 = sext i32 %203 to i64
  %205 = mul nsw i64 %201, %204
  %206 = add nsw i64 %182, %205
  %207 = load i32, ptr %6, align 4, !tbaa !9
  %208 = mul nsw i32 2, %207
  %209 = sext i32 %208 to i64
  %210 = load i32, ptr %4, align 4, !tbaa !9
  %211 = sub nsw i32 %210, 1
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [20 x i64], ptr @powP, i64 0, i64 %212
  %214 = load i64, ptr %213, align 8, !tbaa !5
  %215 = mul nsw i64 %209, %214
  %216 = srem i64 %215, 1000000007
  %217 = getelementptr inbounds %struct.F, ptr %11, i32 0, i32 1
  %218 = load i32, ptr %217, align 4, !tbaa !17
  %219 = sext i32 %218 to i64
  %220 = mul nsw i64 %216, %219
  %221 = add nsw i64 %206, %220
  %222 = getelementptr inbounds %struct.F, ptr %11, i32 0, i32 2
  %223 = load i32, ptr %222, align 4, !tbaa !18
  %224 = sext i32 %223 to i64
  %225 = add nsw i64 %221, %224
  %226 = call noundef i32 @_Z3modxx(i64 noundef %225, i64 noundef 1000000007)
  %227 = load ptr, ptr %10, align 8, !tbaa !13
  %228 = getelementptr inbounds %struct.F, ptr %227, i32 0, i32 2
  store i32 %226, ptr %228, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %229

229:                                              ; preds = %105
  %230 = load i32, ptr %9, align 4, !tbaa !9
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %9, align 4, !tbaa !9
  br label %101, !llvm.loop !21

232:                                              ; preds = %104
  br label %233

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

236:                                              ; preds = %99
  br label %237

237:                                              ; preds = %236
  %238 = load i32, ptr %7, align 4, !tbaa !9
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %7, align 4, !tbaa !9
  br label %91, !llvm.loop !23

240:                                              ; preds = %94
  br label %241

241:                                              ; preds = %240, %89
  %242 = load i32, ptr %6, align 4, !tbaa !9
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %6, align 4, !tbaa !9
  br label %82, !llvm.loop !24

244:                                              ; preds = %85
  br label %245

245:                                              ; preds = %244
  %246 = load i32, ptr %4, align 4, !tbaa !9
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %4, align 4, !tbaa !9
  br label %77, !llvm.loop !25

248:                                              ; preds = %80
  ret void
}

; 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: 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) #2

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }

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

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


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

%struct.F = type { i32, i32, i32 }

@f = external dso_local local_unnamed_addr global [20 x [10 x [7 x [7 x %struct.F]]]], align 16
@pow7 = external dso_local local_unnamed_addr global [20 x i32], align 16
@powP = external dso_local local_unnamed_addr global [20 x i64], align 16

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z4initv() local_unnamed_addr #0 {
.preheader64.preheader:
  store i64 1, ptr @powP, align 16, !tbaa !5
  store i32 1, ptr @pow7, align 16, !tbaa !9
  store i32 3, ptr getelementptr inbounds (i8, ptr @pow7, i64 4), align 4, !tbaa !9
  store i64 10, ptr getelementptr inbounds (i8, ptr @powP, i64 8), align 8, !tbaa !5
  store i32 2, ptr getelementptr inbounds (i8, ptr @pow7, i64 8), align 8, !tbaa !9
  store i64 100, ptr getelementptr inbounds (i8, ptr @powP, i64 16), align 16, !tbaa !5
  store i32 6, ptr getelementptr inbounds (i8, ptr @pow7, i64 12), align 4, !tbaa !9
  store i64 1000, ptr getelementptr inbounds (i8, ptr @powP, i64 24), align 8, !tbaa !5
  store i32 4, ptr getelementptr inbounds (i8, ptr @pow7, i64 16), align 16, !tbaa !9
  store i64 10000, ptr getelementptr inbounds (i8, ptr @powP, i64 32), align 16, !tbaa !5
  store i32 5, ptr getelementptr inbounds (i8, ptr @pow7, i64 20), align 4, !tbaa !9
  store i64 100000, ptr getelementptr inbounds (i8, ptr @powP, i64 40), align 8, !tbaa !5
  store i32 1, ptr getelementptr inbounds (i8, ptr @pow7, i64 24), align 8, !tbaa !9
  store i64 1000000, ptr getelementptr inbounds (i8, ptr @powP, i64 48), align 16, !tbaa !5
  store i32 3, ptr getelementptr inbounds (i8, ptr @pow7, i64 28), align 4, !tbaa !9
  store i64 10000000, ptr getelementptr inbounds (i8, ptr @powP, i64 56), align 8, !tbaa !5
  store i32 2, ptr getelementptr inbounds (i8, ptr @pow7, i64 32), align 16, !tbaa !9
  store i64 100000000, ptr getelementptr inbounds (i8, ptr @powP, i64 64), align 16, !tbaa !5
  store i32 6, ptr getelementptr inbounds (i8, ptr @pow7, i64 36), align 4, !tbaa !9
  store i64 1000000000, ptr getelementptr inbounds (i8, ptr @powP, i64 72), align 8, !tbaa !5
  store i32 4, ptr getelementptr inbounds (i8, ptr @pow7, i64 40), align 8, !tbaa !9
  store i64 999999937, ptr getelementptr inbounds (i8, ptr @powP, i64 80), align 16, !tbaa !5
  store i32 5, ptr getelementptr inbounds (i8, ptr @pow7, i64 44), align 4, !tbaa !9
  store i64 999999307, ptr getelementptr inbounds (i8, ptr @powP, i64 88), align 8, !tbaa !5
  store i32 1, ptr getelementptr inbounds (i8, ptr @pow7, i64 48), align 16, !tbaa !9
  store i64 999993007, ptr getelementptr inbounds (i8, ptr @powP, i64 96), align 16, !tbaa !5
  store i32 3, ptr getelementptr inbounds (i8, ptr @pow7, i64 52), align 4, !tbaa !9
  store i64 999930007, ptr getelementptr inbounds (i8, ptr @powP, i64 104), align 8, !tbaa !5
  store i32 2, ptr getelementptr inbounds (i8, ptr @pow7, i64 56), align 8, !tbaa !9
  store i64 999300007, ptr getelementptr inbounds (i8, ptr @powP, i64 112), align 16, !tbaa !5
  store i32 6, ptr getelementptr inbounds (i8, ptr @pow7, i64 60), align 4, !tbaa !9
  store i64 993000007, ptr getelementptr inbounds (i8, ptr @powP, i64 120), align 8, !tbaa !5
  store i32 4, ptr getelementptr inbounds (i8, ptr @pow7, i64 64), align 16, !tbaa !9
  store i64 930000007, ptr getelementptr inbounds (i8, ptr @powP, i64 128), align 16, !tbaa !5
  store i32 5, ptr getelementptr inbounds (i8, ptr @pow7, i64 68), align 4, !tbaa !9
  store i64 300000007, ptr getelementptr inbounds (i8, ptr @powP, i64 136), align 8, !tbaa !5
  store i32 1, ptr getelementptr inbounds (i8, ptr @pow7, i64 72), align 8, !tbaa !9
  store i64 49, ptr getelementptr inbounds (i8, ptr @powP, i64 144), align 16, !tbaa !5
  store i32 3, ptr getelementptr inbounds (i8, ptr @pow7, i64 76), align 4, !tbaa !9
  store i64 490, ptr getelementptr inbounds (i8, ptr @powP, i64 152), align 8, !tbaa !5
  store i32 1, ptr getelementptr inbounds (i8, ptr @f, i64 5880), align 8, !tbaa !11
  store i32 0, ptr getelementptr inbounds (i8, ptr @f, i64 5884), align 4, !tbaa !13
  store i32 0, ptr getelementptr inbounds (i8, ptr @f, i64 5888), align 16, !tbaa !14
  store i32 1, ptr getelementptr inbounds (i8, ptr @f, i64 6564), align 4, !tbaa !11
  store i32 1, ptr getelementptr inbounds (i8, ptr @f, i64 6568), align 8, !tbaa !13
  store i32 1, ptr getelementptr inbounds (i8, ptr @f, i64 6572), align 4, !tbaa !14
  store i32 1, ptr getelementptr inbounds (i8, ptr @f, i64 7248), align 16, !tbaa !11
  store i32 2, ptr getelementptr inbounds (i8, ptr @f, i64 7252), align 4, !tbaa !13
  store i32 4, ptr getelementptr inbounds (i8, ptr @f, i64 7256), align 8, !tbaa !14
  store i32 1, ptr getelementptr inbounds (i8, ptr @f, i64 7932), align 4, !tbaa !11
  store i32 3, ptr getelementptr inbounds (i8, ptr @f, i64 7936), align 16, !tbaa !13
  store i32 9, ptr getelementptr inbounds (i8, ptr @f, i64 7940), align 4, !tbaa !14
  store i32 1, ptr getelementptr inbounds (i8, ptr @f, i64 8616), align 8, !tbaa !11
  store i32 4, ptr getelementptr inbounds (i8, ptr @f, i64 8620), align 4, !tbaa !13
  store i32 16, ptr getelementptr inbounds (i8, ptr @f, i64 8624), align 16, !tbaa !14
  store i32 1, ptr getelementptr inbounds (i8, ptr @f, i64 9300), align 4, !tbaa !11
  store i32 5, ptr getelementptr inbounds (i8, ptr @f, i64 9304), align 8, !tbaa !13
  store i32 25, ptr getelementptr inbounds (i8, ptr @f, i64 9308), align 4, !tbaa !14
  store i32 1, ptr getelementptr inbounds (i8, ptr @f, i64 9984), align 16, !tbaa !11
  store i32 6, ptr getelementptr inbounds (i8, ptr @f, i64 9988), align 4, !tbaa !13
  store i32 36, ptr getelementptr inbounds (i8, ptr @f, i64 9992), align 8, !tbaa !14
  store i32 1, ptr getelementptr inbounds (i8, ptr @f, i64 10680), align 8, !tbaa !11
  store i32 8, ptr getelementptr inbounds (i8, ptr @f, i64 10684), align 4, !tbaa !13
  store i32 64, ptr getelementptr inbounds (i8, ptr @f, i64 10688), align 16, !tbaa !14
  store i32 1, ptr getelementptr inbounds (i8, ptr @f, i64 11364), align 4, !tbaa !11
  store i32 9, ptr getelementptr inbounds (i8, ptr @f, i64 11368), align 8, !tbaa !13
  store i32 81, ptr getelementptr inbounds (i8, ptr @f, i64 11372), align 4, !tbaa !14
  br label %.preheader64

.preheader64:                                     ; preds = %.preheader64.preheader, %4
  %indvars.iv96 = phi i64 [ 2, %.preheader64.preheader ], [ %indvars.iv.next97, %4 ]
  %0 = add nsw i64 %indvars.iv96, -1
  %1 = getelementptr inbounds [20 x i32], ptr @pow7, i64 0, i64 %0
  %2 = getelementptr inbounds [20 x i64], ptr @powP, i64 0, i64 %0
  br label %5

3:                                                ; preds = %4
  ret void

4:                                                ; preds = %.loopexit
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %exitcond99.not = icmp eq i64 %indvars.iv.next97, 20
  br i1 %exitcond99.not, label %3, label %.preheader64, !llvm.loop !15

5:                                                ; preds = %.preheader64, %.loopexit
  %indvars.iv92 = phi i64 [ 0, %.preheader64 ], [ %indvars.iv.next93, %.loopexit ]
  %6 = icmp eq i64 %indvars.iv92, 7
  br i1 %6, label %.loopexit, label %.preheader63

.preheader63:                                     ; preds = %5
  %7 = mul nuw nsw i64 %indvars.iv92, %indvars.iv92
  %8 = shl nuw nsw i64 %indvars.iv92, 1
  %9 = trunc nuw nsw i64 %indvars.iv92 to i32
  br label %.preheader62

.preheader62:                                     ; preds = %.preheader63, %15
  %indvars.iv88 = phi i64 [ 0, %.preheader63 ], [ %indvars.iv.next89, %15 ]
  %10 = trunc nuw nsw i64 %indvars.iv88 to i32
  br label %.preheader

.preheader:                                       ; preds = %.preheader62, %16
  %indvars.iv84 = phi i64 [ 0, %.preheader62 ], [ %indvars.iv.next85, %16 ]
  %11 = getelementptr inbounds [20 x [10 x [7 x [7 x %struct.F]]]], ptr @f, i64 0, i64 %indvars.iv96, i64 %indvars.iv92, i64 %indvars.iv88, i64 %indvars.iv84
  %12 = sub nsw i64 %indvars.iv84, %indvars.iv92
  %13 = getelementptr inbounds i8, ptr %11, i64 4
  %14 = getelementptr inbounds i8, ptr %11, i64 8
  br label %17

15:                                               ; preds = %16
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %exitcond91.not = icmp eq i64 %indvars.iv.next89, 7
  br i1 %exitcond91.not, label %.loopexit, label %.preheader62, !llvm.loop !17

16:                                               ; preds = %17
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %exitcond87.not = icmp eq i64 %indvars.iv.next85, 7
  br i1 %exitcond87.not, label %15, label %.preheader, !llvm.loop !18

17:                                               ; preds = %.preheader, %17
  %indvars.iv80 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next81, %17 ]
  %18 = load i32, ptr %1, align 4, !tbaa !9
  %19 = mul nsw i32 %18, %9
  %20 = sub nsw i32 %10, %19
  %21 = sext i32 %20 to i64
  %22 = tail call noundef i32 @_Z3modxx(i64 noundef %21, i64 noundef 7)
  %23 = sext i32 %22 to i64
  %24 = tail call noundef i32 @_Z3modxx(i64 noundef %12, i64 noundef 7)
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [20 x [10 x [7 x [7 x %struct.F]]]], ptr @f, i64 0, i64 %0, i64 %indvars.iv80, i64 %23, i64 %25
  %.sroa.0.0.copyload = load i32, ptr %26, align 4, !tbaa !9
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %26, i64 4
  %.sroa.6.0.copyload = load i32, ptr %.sroa.6.0..sroa_idx, align 4, !tbaa !9
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %26, i64 8
  %.sroa.8.0.copyload = load i32, ptr %.sroa.8.0..sroa_idx, align 4, !tbaa !9
  %27 = load i32, ptr %11, align 4, !tbaa !11
  %28 = add nsw i32 %27, %.sroa.0.0.copyload
  %29 = sext i32 %28 to i64
  %30 = tail call noundef i32 @_Z3modxx(i64 noundef %29, i64 noundef 1000000007)
  store i32 %30, ptr %11, align 4, !tbaa !11
  %31 = load i32, ptr %13, align 4, !tbaa !13
  %32 = add nsw i32 %31, %.sroa.6.0.copyload
  %33 = sext i32 %32 to i64
  %34 = load i64, ptr %2, align 8, !tbaa !5
  %35 = mul nsw i64 %34, %indvars.iv92
  %36 = srem i64 %35, 1000000007
  %37 = sext i32 %.sroa.0.0.copyload to i64
  %38 = mul nsw i64 %36, %37
  %39 = add nsw i64 %38, %33
  %40 = tail call noundef i32 @_Z3modxx(i64 noundef %39, i64 noundef 1000000007)
  store i32 %40, ptr %13, align 4, !tbaa !13
  %41 = load i32, ptr %14, align 4, !tbaa !14
  %42 = sext i32 %41 to i64
  %43 = load i64, ptr %2, align 8, !tbaa !5
  %44 = mul nsw i64 %43, %43
  %45 = urem i64 %44, 1000000007
  %46 = mul i64 %7, %45
  %47 = urem i64 %46, 1000000007
  %48 = mul nsw i64 %47, %37
  %49 = mul nsw i64 %43, %8
  %50 = srem i64 %49, 1000000007
  %51 = sext i32 %.sroa.6.0.copyload to i64
  %52 = mul nsw i64 %50, %51
  %53 = sext i32 %.sroa.8.0.copyload to i64
  %54 = add nsw i64 %42, %53
  %55 = add nsw i64 %54, %52
  %56 = add nsw i64 %55, %48
  %57 = tail call noundef i32 @_Z3modxx(i64 noundef %56, i64 noundef 1000000007)
  store i32 %57, ptr %14, align 4, !tbaa !14
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %exitcond83.not = icmp eq i64 %indvars.iv.next81, 10
  br i1 %exitcond83.not, label %16, label %17, !llvm.loop !19

.loopexit:                                        ; preds = %15, %5
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %exitcond95.not = icmp eq i64 %indvars.iv.next93, 10
  br i1 %exitcond95.not, label %4, label %5, !llvm.loop !20
}

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

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

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


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