; LLVM IR from kazunetakahashi/atcoder :: 2017/0415_AGC013 (E)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%struct.matrix = type { i32, i32, %"class.std::valarray" }
%"class.std::valarray" = type { i64, ptr }
%"class.std::initializer_list" = type { ptr, i64 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@constinit = external hidden constant [9 x i64], align 8
@constinit.2 = external hidden constant [9 x i64], align 8
@constinit.3 = external hidden constant [9 x i64], align 8
@constinit.4 = external hidden constant [3 x i64], align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12mod_multiply6matrixS_(ptr dead_on_unwind noalias writable sret(%struct.matrix) align 8, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6matrixC2Eii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z7mod_pow6matrixx(ptr dead_on_unwind noalias writable sret(%struct.matrix) align 8, ptr noundef, i64 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [100010 x i32], align 16
  %5 = alloca i32, align 4
  %6 = alloca %struct.matrix, align 8
  %7 = alloca %"class.std::initializer_list", align 8
  %8 = alloca [9 x i64], align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.matrix, align 8
  %12 = alloca %"class.std::initializer_list", align 8
  %13 = alloca [9 x i64], align 8
  %14 = alloca %struct.matrix, align 8
  %15 = alloca %"class.std::initializer_list", align 8
  %16 = alloca [9 x i64], align 8
  %17 = alloca %struct.matrix, align 8
  %18 = alloca %"class.std::initializer_list", align 8
  %19 = alloca [3 x i64], align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca %struct.matrix, align 8
  %24 = alloca %struct.matrix, align 8
  %25 = alloca %struct.matrix, align 8
  %26 = alloca %struct.matrix, align 8
  %27 = alloca %struct.matrix, align 8
  %28 = alloca %struct.matrix, align 8
  %29 = alloca %struct.matrix, align 8
  %30 = alloca i32, align 4
  %31 = alloca %struct.matrix, align 8
  %32 = alloca %struct.matrix, align 8
  %33 = alloca %struct.matrix, align 8
  %34 = alloca %struct.matrix, align 8
  %35 = alloca %struct.matrix, align 8
  %36 = alloca %struct.matrix, align 8
  %37 = alloca %struct.matrix, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 400040, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %50, %0
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %53

45:                                               ; preds = %40
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [100010 x i32], ptr %4, i64 0, i64 %47
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %48)
  br label %50

50:                                               ; preds = %45
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %5, align 4, !tbaa !5
  br label %40, !llvm.loop !9

53:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #7
  call void @_ZN6matrixC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 3, i32 noundef 3)
  call void @llvm.lifetime.start.p0(i64 72, ptr %8) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 @constinit, i64 72, i1 false), !tbaa.struct !11
  %54 = getelementptr inbounds %"class.std::initializer_list", ptr %7, i32 0, i32 0
  store ptr %8, ptr %54, align 8, !tbaa !13
  %55 = getelementptr inbounds %"class.std::initializer_list", ptr %7, i32 0, i32 1
  store i64 9, ptr %55, align 8, !tbaa !17
  %56 = getelementptr inbounds %struct.matrix, ptr %6, i32 0, i32 2
  %57 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8
  %59 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 1
  %60 = load i64, ptr %59, align 8
  %61 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIxEaSESt16initializer_listIxE(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr %58, i64 %60)
          to label %62 unwind label %98

62:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 72, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #7
  invoke void @_ZN6matrixC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef 3, i32 noundef 3)
          to label %63 unwind label %102

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 72, ptr %13) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 @constinit.2, i64 72, i1 false), !tbaa.struct !11
  %64 = getelementptr inbounds %"class.std::initializer_list", ptr %12, i32 0, i32 0
  store ptr %13, ptr %64, align 8, !tbaa !13
  %65 = getelementptr inbounds %"class.std::initializer_list", ptr %12, i32 0, i32 1
  store i64 9, ptr %65, align 8, !tbaa !17
  %66 = getelementptr inbounds %struct.matrix, ptr %11, i32 0, i32 2
  %67 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8
  %69 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 1
  %70 = load i64, ptr %69, align 8
  %71 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIxEaSESt16initializer_listIxE(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr %68, i64 %70)
          to label %72 unwind label %106

72:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 72, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  invoke void @_ZN6matrixC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 3, i32 noundef 3)
          to label %73 unwind label %110

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 72, ptr %16) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 @constinit.3, i64 72, i1 false), !tbaa.struct !11
  %74 = getelementptr inbounds %"class.std::initializer_list", ptr %15, i32 0, i32 0
  store ptr %16, ptr %74, align 8, !tbaa !13
  %75 = getelementptr inbounds %"class.std::initializer_list", ptr %15, i32 0, i32 1
  store i64 9, ptr %75, align 8, !tbaa !17
  %76 = getelementptr inbounds %struct.matrix, ptr %14, i32 0, i32 2
  %77 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8
  %79 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %80 = load i64, ptr %79, align 8
  %81 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIxEaSESt16initializer_listIxE(ptr noundef nonnull align 8 dereferenceable(16) %76, ptr %78, i64 %80)
          to label %82 unwind label %114

82:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 72, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #7
  invoke void @_ZN6matrixC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef 3, i32 noundef 1)
          to label %83 unwind label %118

83:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 @constinit.4, i64 24, i1 false), !tbaa.struct !18
  %84 = getelementptr inbounds %"class.std::initializer_list", ptr %18, i32 0, i32 0
  store ptr %19, ptr %84, align 8, !tbaa !13
  %85 = getelementptr inbounds %"class.std::initializer_list", ptr %18, i32 0, i32 1
  store i64 3, ptr %85, align 8, !tbaa !17
  %86 = getelementptr inbounds %struct.matrix, ptr %17, i32 0, i32 2
  %87 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8
  %89 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %90 = load i64, ptr %89, align 8
  %91 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIxEaSESt16initializer_listIxE(ptr noundef nonnull align 8 dereferenceable(16) %86, ptr %88, i64 %90)
          to label %92 unwind label %122

92:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %172, %92
  %94 = load i32, ptr %21, align 4, !tbaa !5
  %95 = load i32, ptr %3, align 4, !tbaa !5
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %126, label %97

97:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %190

98:                                               ; preds = %53
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %9, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 72, ptr %8) #7
  br label %263

102:                                              ; preds = %62
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %9, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %10, align 4
  br label %262

106:                                              ; preds = %63
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %9, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 72, ptr %13) #7
  br label %261

110:                                              ; preds = %72
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %9, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %10, align 4
  br label %260

114:                                              ; preds = %73
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %9, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 72, ptr %16) #7
  br label %259

118:                                              ; preds = %82
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %9, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %10, align 4
  br label %258

122:                                              ; preds = %83
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %9, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #7
  br label %257

126:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %127 = load i32, ptr %21, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [100010 x i32], ptr %4, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = sub nsw i32 %130, 1
  %132 = load i32, ptr %20, align 4, !tbaa !5
  %133 = sub nsw i32 %131, %132
  %134 = sext i32 %133 to i64
  store i64 %134, ptr %22, align 8, !tbaa !19
  %135 = load i64, ptr %22, align 8, !tbaa !19
  %136 = icmp sgt i64 %135, 0
  br i1 %136, label %137, label %163

137:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #7
  invoke void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %138 unwind label %144

138:                                              ; preds = %137
  %139 = load i64, ptr %22, align 8, !tbaa !19
  invoke void @_Z7mod_pow6matrixx(ptr dead_on_unwind writable sret(%struct.matrix) align 8 %24, ptr noundef %25, i64 noundef %139)
          to label %140 unwind label %148

140:                                              ; preds = %138
  invoke void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %141 unwind label %152

141:                                              ; preds = %140
  invoke void @_Z12mod_multiply6matrixS_(ptr dead_on_unwind writable sret(%struct.matrix) align 8 %23, ptr noundef %24, ptr noundef %26)
          to label %142 unwind label %156

142:                                              ; preds = %141
  %143 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6matrixaSEOS_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  br label %163

144:                                              ; preds = %137
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %9, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %10, align 4
  br label %162

148:                                              ; preds = %138
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %9, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %10, align 4
  br label %161

152:                                              ; preds = %140
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %9, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %10, align 4
  br label %160

156:                                              ; preds = %141
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %9, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %10, align 4
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  br label %160

160:                                              ; preds = %156, %152
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  br label %161

161:                                              ; preds = %160, %148
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  br label %162

162:                                              ; preds = %161, %144
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  br label %189

163:                                              ; preds = %142, %126
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #7
  invoke void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %164 unwind label %175

164:                                              ; preds = %163
  invoke void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %165 unwind label %179

165:                                              ; preds = %164
  invoke void @_Z12mod_multiply6matrixS_(ptr dead_on_unwind writable sret(%struct.matrix) align 8 %27, ptr noundef %28, ptr noundef %29)
          to label %166 unwind label %183

166:                                              ; preds = %165
  %167 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6matrixaSEOS_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #7
  %168 = load i32, ptr %21, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [100010 x i32], ptr %4, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  store i32 %171, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %172

172:                                              ; preds = %166
  %173 = load i32, ptr %21, align 4, !tbaa !5
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %21, align 4, !tbaa !5
  br label %93, !llvm.loop !21

175:                                              ; preds = %163
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %9, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %10, align 4
  br label %188

179:                                              ; preds = %164
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %9, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %10, align 4
  br label %187

183:                                              ; preds = %165
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %9, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %10, align 4
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #7
  br label %187

187:                                              ; preds = %183, %179
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  br label %188

188:                                              ; preds = %187, %175
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #7
  br label %189

189:                                              ; preds = %188, %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %256

190:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %191 = load i32, ptr %2, align 4, !tbaa !5
  %192 = load i32, ptr %20, align 4, !tbaa !5
  %193 = sub nsw i32 %191, %192
  %194 = sub nsw i32 %193, 1
  store i32 %194, ptr %30, align 4, !tbaa !5
  %195 = load i32, ptr %30, align 4, !tbaa !5
  %196 = icmp sgt i32 %195, 0
  br i1 %196, label %197, label %224

197:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #7
  invoke void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %198 unwind label %205

198:                                              ; preds = %197
  %199 = load i32, ptr %30, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  invoke void @_Z7mod_pow6matrixx(ptr dead_on_unwind writable sret(%struct.matrix) align 8 %32, ptr noundef %33, i64 noundef %200)
          to label %201 unwind label %209

201:                                              ; preds = %198
  invoke void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %202 unwind label %213

202:                                              ; preds = %201
  invoke void @_Z12mod_multiply6matrixS_(ptr dead_on_unwind writable sret(%struct.matrix) align 8 %31, ptr noundef %32, ptr noundef %34)
          to label %203 unwind label %217

203:                                              ; preds = %202
  %204 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6matrixaSEOS_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %31) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #7
  br label %224

205:                                              ; preds = %197
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %9, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %10, align 4
  br label %223

209:                                              ; preds = %198
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %9, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %10, align 4
  br label %222

213:                                              ; preds = %201
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %9, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %10, align 4
  br label %221

217:                                              ; preds = %202
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %9, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %10, align 4
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  br label %221

221:                                              ; preds = %217, %213
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  br label %222

222:                                              ; preds = %221, %209
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #7
  br label %223

223:                                              ; preds = %222, %205
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #7
  br label %255

224:                                              ; preds = %203, %190
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #7
  invoke void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %225 unwind label %237

225:                                              ; preds = %224
  invoke void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %226 unwind label %241

226:                                              ; preds = %225
  invoke void @_Z12mod_multiply6matrixS_(ptr dead_on_unwind writable sret(%struct.matrix) align 8 %35, ptr noundef %36, ptr noundef %37)
          to label %227 unwind label %245

227:                                              ; preds = %226
  %228 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6matrixaSEOS_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %35) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #7
  %229 = getelementptr inbounds %struct.matrix, ptr %17, i32 0, i32 2
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIxEixEm(ptr noundef nonnull align 8 dereferenceable(16) %229, i64 noundef 0) #7
  %231 = load i64, ptr %230, align 8, !tbaa !19
  %232 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %231)
          to label %233 unwind label %251

233:                                              ; preds = %227
  %234 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %232, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %235 unwind label %251

235:                                              ; preds = %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 400040, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %236 = load i32, ptr %1, align 4
  ret i32 %236

237:                                              ; preds = %224
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %9, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %10, align 4
  br label %250

241:                                              ; preds = %225
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %9, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %10, align 4
  br label %249

245:                                              ; preds = %226
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %9, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %10, align 4
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  br label %249

249:                                              ; preds = %245, %241
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  br label %250

250:                                              ; preds = %249, %237
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #7
  br label %255

251:                                              ; preds = %233, %227
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %9, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %10, align 4
  br label %255

255:                                              ; preds = %251, %250, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %256

256:                                              ; preds = %255, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %257

257:                                              ; preds = %256, %122
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  br label %258

258:                                              ; preds = %257, %118
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  br label %259

259:                                              ; preds = %258, %114
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br label %260

260:                                              ; preds = %259, %110
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  br label %261

261:                                              ; preds = %260, %106
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  br label %262

262:                                              ; preds = %261, %102
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  br label %263

263:                                              ; preds = %262, %98
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 400040, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %264

264:                                              ; preds = %263
  %265 = load ptr, ptr %9, align 8
  %266 = load i32, ptr %10, align 4
  %267 = insertvalue { ptr, i32 } poison, ptr %265, 0
  %268 = insertvalue { ptr, i32 } %267, i32 %266, 1
  resume { ptr, i32 } %268
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIxEaSESt16initializer_listIxE(ptr noundef nonnull align 8 dereferenceable(16), ptr, i64) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN6matrixaSEOS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{i64 0, i64 72, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSSt16initializer_listIxE", !15, i64 0, !16, i64 8}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!14, !16, i64 8}
!18 = !{i64 0, i64 24, !12}
!19 = !{!20, !20, i64 0}
!20 = !{!"long long", !7, i64 0}
!21 = distinct !{!21, !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"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%struct.matrix = type { i32, i32, %"class.std::valarray" }
%"class.std::valarray" = type { i64, ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@constinit = external hidden local_unnamed_addr constant [9 x i64], align 8
@constinit.2 = external hidden local_unnamed_addr constant [9 x i64], align 8
@constinit.3 = external hidden local_unnamed_addr constant [9 x i64], align 8
@constinit.4 = external hidden local_unnamed_addr constant [3 x i64], align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12mod_multiply6matrixS_(ptr dead_on_unwind noalias writable sret(%struct.matrix) align 8, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6matrixC2Eii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIxEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z7mod_pow6matrixx(ptr dead_on_unwind noalias writable sret(%struct.matrix) align 8, ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [100010 x i32], align 16
  %4 = alloca %struct.matrix, align 8
  %5 = alloca [9 x i64], align 8
  %6 = alloca %struct.matrix, align 8
  %7 = alloca [9 x i64], align 8
  %8 = alloca %struct.matrix, align 8
  %9 = alloca [9 x i64], align 8
  %10 = alloca %struct.matrix, align 8
  %11 = alloca [3 x i64], align 8
  %12 = alloca %struct.matrix, align 8
  %13 = alloca %struct.matrix, align 8
  %14 = alloca %struct.matrix, align 8
  %15 = alloca %struct.matrix, align 8
  %16 = alloca %struct.matrix, align 8
  %17 = alloca %struct.matrix, align 8
  %18 = alloca %struct.matrix, align 8
  %19 = alloca %struct.matrix, align 8
  %20 = alloca %struct.matrix, align 8
  %21 = alloca %struct.matrix, align 8
  %22 = alloca %struct.matrix, align 8
  %23 = alloca %struct.matrix, align 8
  %24 = alloca %struct.matrix, align 8
  %25 = alloca %struct.matrix, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 400040, ptr nonnull %3) #7
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @_ZN6matrixC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 3, i32 noundef 3)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(72) @constinit, i64 72, i1 false), !tbaa.struct !9
  %30 = getelementptr inbounds i8, ptr %4, i64 8
  %31 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIxEaSESt16initializer_listIxE(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr nonnull %5, i64 9)
          to label %37 unwind label %56

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %32 = getelementptr inbounds [100010 x i32], ptr %3, i64 0, i64 %indvars.iv
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %32)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = icmp slt i64 %indvars.iv.next, %35
  br i1 %36, label %.lr.ph, label %._crit_edge, !llvm.loop !11

37:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  invoke void @_ZN6matrixC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 3, i32 noundef 3)
          to label %38 unwind label %58

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %7) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %7, ptr noundef nonnull align 8 dereferenceable(72) @constinit.2, i64 72, i1 false), !tbaa.struct !9
  %39 = getelementptr inbounds i8, ptr %6, i64 8
  %40 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIxEaSESt16initializer_listIxE(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr nonnull %7, i64 9)
          to label %41 unwind label %60

41:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  invoke void @_ZN6matrixC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef 3, i32 noundef 3)
          to label %42 unwind label %62

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %9) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %9, ptr noundef nonnull align 8 dereferenceable(72) @constinit.3, i64 72, i1 false), !tbaa.struct !9
  %43 = getelementptr inbounds i8, ptr %8, i64 8
  %44 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIxEaSESt16initializer_listIxE(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr nonnull %9, i64 9)
          to label %45 unwind label %64

45:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  invoke void @_ZN6matrixC2Eii(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 3, i32 noundef 1)
          to label %46 unwind label %66

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) @constinit.4, i64 24, i1 false), !tbaa.struct !13
  %47 = getelementptr inbounds i8, ptr %10, i64 8
  %48 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIxEaSESt16initializer_listIxE(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr nonnull %11, i64 3)
          to label %49 unwind label %68

49:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph81, label %._crit_edge82

._crit_edge82:                                    ; preds = %96, %49
  %.023.lcssa = phi i32 [ 0, %49 ], [ %98, %96 ]
  %52 = load i32, ptr %1, align 4, !tbaa !5
  %53 = xor i32 %.023.lcssa, -1
  %54 = add i32 %52, %53
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %110, label %128

56:                                               ; preds = %._crit_edge
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #7
  br label %155

58:                                               ; preds = %37
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %154

60:                                               ; preds = %38
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #7
  br label %153

62:                                               ; preds = %41
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %152

64:                                               ; preds = %42
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %9) #7
  br label %151

66:                                               ; preds = %45
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %150

68:                                               ; preds = %46
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %149

.lr.ph81:                                         ; preds = %49, %96
  %indvars.iv84 = phi i64 [ %indvars.iv.next85, %96 ], [ 0, %49 ]
  %.02378 = phi i32 [ %98, %96 ], [ 0, %49 ]
  %70 = getelementptr inbounds [100010 x i32], ptr %3, i64 0, i64 %indvars.iv84
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = xor i32 %.02378, -1
  %73 = add i32 %71, %72
  %74 = sext i32 %73 to i64
  %75 = icmp sgt i32 %73, 0
  br i1 %75, label %76, label %93

76:                                               ; preds = %.lr.ph81
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #7
  invoke void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %77 unwind label %82

77:                                               ; preds = %76
  invoke void @_Z7mod_pow6matrixx(ptr dead_on_unwind nonnull writable sret(%struct.matrix) align 8 %13, ptr noundef nonnull %14, i64 noundef %74)
          to label %78 unwind label %84

78:                                               ; preds = %77
  invoke void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %79 unwind label %86

79:                                               ; preds = %78
  invoke void @_Z12mod_multiply6matrixS_(ptr dead_on_unwind nonnull writable sret(%struct.matrix) align 8 %12, ptr noundef nonnull %13, ptr noundef nonnull %15)
          to label %80 unwind label %88

80:                                               ; preds = %79
  %81 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6matrixaSEOS_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  br label %93

82:                                               ; preds = %76
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %92

84:                                               ; preds = %77
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %91

86:                                               ; preds = %78
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %90

88:                                               ; preds = %79
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  br label %90

90:                                               ; preds = %88, %86
  %.pn54 = phi { ptr, i32 } [ %89, %88 ], [ %87, %86 ]
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  br label %91

91:                                               ; preds = %90, %84
  %.pn54.pn = phi { ptr, i32 } [ %.pn54, %90 ], [ %85, %84 ]
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br label %92

92:                                               ; preds = %91, %82
  %.pn54.pn.pn = phi { ptr, i32 } [ %.pn54.pn, %91 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  br label %149

93:                                               ; preds = %80, %.lr.ph81
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #7
  invoke void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %94 unwind label %102

94:                                               ; preds = %93
  invoke void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %95 unwind label %104

95:                                               ; preds = %94
  invoke void @_Z12mod_multiply6matrixS_(ptr dead_on_unwind nonnull writable sret(%struct.matrix) align 8 %16, ptr noundef nonnull %17, ptr noundef nonnull %18)
          to label %96 unwind label %106

96:                                               ; preds = %95
  %97 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6matrixaSEOS_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #7
  %98 = load i32, ptr %70, align 4, !tbaa !5
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %99 = load i32, ptr %2, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = icmp slt i64 %indvars.iv.next85, %100
  br i1 %101, label %.lr.ph81, label %._crit_edge82, !llvm.loop !14

102:                                              ; preds = %93
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %109

104:                                              ; preds = %94
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %108

106:                                              ; preds = %95
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  br label %108

108:                                              ; preds = %106, %104
  %.pn58 = phi { ptr, i32 } [ %107, %106 ], [ %105, %104 ]
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  br label %109

109:                                              ; preds = %108, %102
  %.pn58.pn = phi { ptr, i32 } [ %.pn58, %108 ], [ %103, %102 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #7
  br label %149

110:                                              ; preds = %._crit_edge82
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #7
  invoke void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %111 unwind label %117

111:                                              ; preds = %110
  %112 = zext nneg i32 %54 to i64
  invoke void @_Z7mod_pow6matrixx(ptr dead_on_unwind nonnull writable sret(%struct.matrix) align 8 %20, ptr noundef nonnull %21, i64 noundef %112)
          to label %113 unwind label %119

113:                                              ; preds = %111
  invoke void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %114 unwind label %121

114:                                              ; preds = %113
  invoke void @_Z12mod_multiply6matrixS_(ptr dead_on_unwind nonnull writable sret(%struct.matrix) align 8 %19, ptr noundef nonnull %20, ptr noundef nonnull %22)
          to label %115 unwind label %123

115:                                              ; preds = %114
  %116 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6matrixaSEOS_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  br label %128

117:                                              ; preds = %110
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %127

119:                                              ; preds = %111
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %126

121:                                              ; preds = %113
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %125

123:                                              ; preds = %114
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  br label %125

125:                                              ; preds = %123, %121
  %.pn = phi { ptr, i32 } [ %124, %123 ], [ %122, %121 ]
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  br label %126

126:                                              ; preds = %125, %119
  %.pn.pn = phi { ptr, i32 } [ %.pn, %125 ], [ %120, %119 ]
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  br label %127

127:                                              ; preds = %126, %117
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %126 ], [ %118, %117 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  br label %149

128:                                              ; preds = %115, %._crit_edge82
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #7
  invoke void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %129 unwind label %139

129:                                              ; preds = %128
  invoke void @_ZN6matrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %130 unwind label %141

130:                                              ; preds = %129
  invoke void @_Z12mod_multiply6matrixS_(ptr dead_on_unwind nonnull writable sret(%struct.matrix) align 8 %23, ptr noundef nonnull %24, ptr noundef nonnull %25)
          to label %131 unwind label %143

131:                                              ; preds = %130
  %132 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6matrixaSEOS_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #7
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIxEixEm(ptr noundef nonnull align 8 dereferenceable(16) %47, i64 noundef 0) #7
  %134 = load i64, ptr %133, align 8, !tbaa !15
  %135 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %134)
          to label %136 unwind label %147

136:                                              ; preds = %131
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %135, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %138 unwind label %147

138:                                              ; preds = %136
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 400040, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

139:                                              ; preds = %128
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %146

141:                                              ; preds = %129
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %145

143:                                              ; preds = %130
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  br label %145

145:                                              ; preds = %143, %141
  %.pn49 = phi { ptr, i32 } [ %144, %143 ], [ %142, %141 ]
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  br label %146

146:                                              ; preds = %145, %139
  %.pn49.pn = phi { ptr, i32 } [ %.pn49, %145 ], [ %140, %139 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #7
  br label %149

147:                                              ; preds = %136, %131
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %149

149:                                              ; preds = %109, %92, %147, %146, %127, %68
  %.pn58.pn.pn.pn.pn = phi { ptr, i32 } [ %69, %68 ], [ %.pn58.pn, %109 ], [ %.pn54.pn.pn, %92 ], [ %148, %147 ], [ %.pn49.pn, %146 ], [ %.pn.pn.pn, %127 ]
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  br label %150

150:                                              ; preds = %149, %66
  %.pn58.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn.pn.pn, %149 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  br label %151

151:                                              ; preds = %150, %64
  %.pn58.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn.pn.pn.pn, %150 ], [ %65, %64 ]
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  br label %152

152:                                              ; preds = %151, %62
  %.pn58.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn.pn.pn.pn.pn, %151 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  br label %153

153:                                              ; preds = %152, %60
  %.pn58.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn.pn.pn.pn.pn.pn, %152 ], [ %61, %60 ]
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  br label %154

154:                                              ; preds = %153, %58
  %.pn58.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn.pn.pn.pn.pn.pn.pn, %153 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  br label %155

155:                                              ; preds = %154, %56
  %.pn58.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn.pn.pn.pn.pn.pn.pn.pn, %154 ], [ %57, %56 ]
  call void @_ZN6matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 400040, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn58.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: mustprogress 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) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIxEaSESt16initializer_listIxE(ptr noundef nonnull align 8 dereferenceable(16), ptr, i64) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN6matrixaSEOS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{i64 0, i64 72, !10}
!10 = !{!7, !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{i64 0, i64 24, !10}
!14 = distinct !{!14, !12}
!15 = !{!16, !16, i64 0}
!16 = !{!"long long", !7, i64 0}


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