; LLVM IR from lzyrapx/Competitive-Programming :: Codeforces/Math/1257G.ll (Z8poly_inv4polyi)

; 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.poly = type <{ %"class.std::vector", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3ext4polyi(ptr dead_on_unwind noalias writable sret(%struct.poly) align 8, ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10scalar_mul4polyi(ptr dead_on_unwind noalias writable sret(%struct.poly) align 8, ptr noundef, i32 noundef) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4polyC2ERKS_(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8poly_inv4polyi(ptr dead_on_unwind noalias writable sret(%struct.poly) align 8 %0, ptr noundef %1, i32 noundef %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca [21 x i32], align 16
  %9 = alloca i32, align 4
  %10 = alloca i1, align 1
  %11 = alloca [21 x %struct.poly], align 16
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.poly, align 8
  %15 = alloca %struct.poly, align 8
  %16 = alloca %struct.poly, align 8
  %17 = alloca %struct.poly, align 8
  %18 = alloca %struct.poly, align 8
  %19 = alloca %struct.poly, align 8
  %20 = alloca %struct.poly, align 8
  %21 = alloca %struct.poly, align 8
  %22 = alloca %struct.poly, align 8
  %23 = alloca %struct.poly, align 8
  %24 = alloca %struct.poly, align 8
  %25 = alloca %struct.poly, align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 84, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  store i1 false, ptr %10, align 1
  call void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %0)
  call void @llvm.lifetime.start.p0(i64 672, ptr %11) #5
  %26 = getelementptr inbounds [21 x %struct.poly], ptr %11, i32 0, i32 0
  %27 = getelementptr inbounds %struct.poly, ptr %26, i64 21
  br label %28

28:                                               ; preds = %30, %3
  %29 = phi ptr [ %26, %3 ], [ %31, %30 ]
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %29)
          to label %30 unwind label %56

30:                                               ; preds = %28
  %31 = getelementptr inbounds %struct.poly, ptr %29, i64 1
  %32 = icmp eq ptr %31, %27
  br i1 %32, label %33, label %28

33:                                               ; preds = %30
  br label %34

34:                                               ; preds = %41, %33
  %35 = load i32, ptr %6, align 4, !tbaa !9
  %36 = icmp ne i32 %35, 1
  br i1 %36, label %37, label %75

37:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #5
  invoke void @_ZN4polyC2ERKS_(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(28) %1)
          to label %38 unwind label %66

38:                                               ; preds = %37
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = sub nsw i32 %39, 1
  invoke void @_Z3ext4polyi(ptr dead_on_unwind writable sret(%struct.poly) align 8 %14, ptr noundef %15, i32 noundef %40)
          to label %41 unwind label %70

41:                                               ; preds = %38
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %9, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [21 x %struct.poly], ptr %11, i64 0, i64 %44
  %46 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN4polyaSEOS_(ptr noundef nonnull align 8 dereferenceable(28) %45, ptr noundef nonnull align 8 dereferenceable(28) %14) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %14) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  %47 = load i32, ptr %6, align 4, !tbaa !9
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [21 x i32], ptr %8, i64 0, i64 %49
  store i32 %47, ptr %50, align 4, !tbaa !9
  %51 = load i32, ptr %6, align 4, !tbaa !9
  %52 = sdiv i32 %51, 2
  %53 = load i32, ptr %6, align 4, !tbaa !9
  %54 = and i32 %53, 1
  %55 = add nsw i32 %52, %54
  store i32 %55, ptr %6, align 4, !tbaa !9
  br label %34, !llvm.loop !11

56:                                               ; preds = %28
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %12, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %13, align 4
  %60 = icmp eq ptr %26, %29
  br i1 %60, label %65, label %61

61:                                               ; preds = %61, %56
  %62 = phi ptr [ %29, %56 ], [ %63, %61 ]
  %63 = getelementptr inbounds %struct.poly, ptr %62, i64 -1
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %63) #5
  %64 = icmp eq ptr %63, %26
  br i1 %64, label %65, label %61

65:                                               ; preds = %61, %56
  br label %180

66:                                               ; preds = %37
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %12, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %13, align 4
  br label %74

70:                                               ; preds = %38
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %12, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %13, align 4
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %15) #5
  br label %74

74:                                               ; preds = %70, %66
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  br label %172

75:                                               ; preds = %34
  %76 = getelementptr inbounds %struct.poly, ptr %1, i32 0, i32 0
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef 0) #5
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = call noundef i32 @_Z5mypowii(i32 noundef %78, i32 noundef 998244351)
  %80 = getelementptr inbounds %struct.poly, ptr %0, i32 0, i32 0
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef 0) #5
  store i32 %79, ptr %81, align 4, !tbaa !9
  %82 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %82, ptr %7, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %111, %75
  %84 = load i32, ptr %7, align 4, !tbaa !9
  %85 = icmp sgt i32 %84, 0
  br i1 %85, label %86, label %163

86:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #5
  invoke void @_ZN4polyC2ERKS_(ptr noundef nonnull align 8 dereferenceable(28) %18, ptr noundef nonnull align 8 dereferenceable(28) %0)
          to label %87 unwind label %114

87:                                               ; preds = %86
  invoke void @_Z10scalar_mul4polyi(ptr dead_on_unwind writable sret(%struct.poly) align 8 %17, ptr noundef %18, i32 noundef 2)
          to label %88 unwind label %118

88:                                               ; preds = %87
  %89 = load i32, ptr %7, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [21 x %struct.poly], ptr %11, i64 0, i64 %90
  invoke void @_ZN4polyC2ERKS_(ptr noundef nonnull align 8 dereferenceable(28) %23, ptr noundef nonnull align 8 dereferenceable(28) %91)
          to label %92 unwind label %122

92:                                               ; preds = %88
  invoke void @_ZN4polyC2ERKS_(ptr noundef nonnull align 8 dereferenceable(28) %24, ptr noundef nonnull align 8 dereferenceable(28) %0)
          to label %93 unwind label %126

93:                                               ; preds = %92
  invoke void @_Z3mul4polyS_(ptr dead_on_unwind writable sret(%struct.poly) align 8 %22, ptr noundef %23, ptr noundef %24)
          to label %94 unwind label %130

94:                                               ; preds = %93
  %95 = load i32, ptr %7, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [21 x i32], ptr %8, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = sub nsw i32 %98, 1
  invoke void @_Z3ext4polyi(ptr dead_on_unwind writable sret(%struct.poly) align 8 %21, ptr noundef %22, i32 noundef %99)
          to label %100 unwind label %134

100:                                              ; preds = %94
  invoke void @_ZN4polyC2ERKS_(ptr noundef nonnull align 8 dereferenceable(28) %25, ptr noundef nonnull align 8 dereferenceable(28) %0)
          to label %101 unwind label %138

101:                                              ; preds = %100
  invoke void @_Z3mul4polyS_(ptr dead_on_unwind writable sret(%struct.poly) align 8 %20, ptr noundef %21, ptr noundef %25)
          to label %102 unwind label %142

102:                                              ; preds = %101
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [21 x i32], ptr %8, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = sub nsw i32 %106, 1
  invoke void @_Z3ext4polyi(ptr dead_on_unwind writable sret(%struct.poly) align 8 %19, ptr noundef %20, i32 noundef %107)
          to label %108 unwind label %146

108:                                              ; preds = %102
  invoke void @_Z5Minus4polyS_(ptr dead_on_unwind writable sret(%struct.poly) align 8 %16, ptr noundef %17, ptr noundef %19)
          to label %109 unwind label %150

109:                                              ; preds = %108
  %110 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN4polyaSEOS_(ptr noundef nonnull align 8 dereferenceable(28) %0, ptr noundef nonnull align 8 dereferenceable(28) %16) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %16) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %19) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %20) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %25) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %21) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %22) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %24) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %23) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %17) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  br label %111

111:                                              ; preds = %109
  %112 = load i32, ptr %7, align 4, !tbaa !9
  %113 = add nsw i32 %112, -1
  store i32 %113, ptr %7, align 4, !tbaa !9
  br label %83, !llvm.loop !13

114:                                              ; preds = %86
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %12, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %13, align 4
  br label %162

118:                                              ; preds = %87
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %12, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %13, align 4
  br label %161

122:                                              ; preds = %88
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %12, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %13, align 4
  br label %160

126:                                              ; preds = %92
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %12, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %13, align 4
  br label %159

130:                                              ; preds = %93
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %12, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %13, align 4
  br label %158

134:                                              ; preds = %94
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %12, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %13, align 4
  br label %157

138:                                              ; preds = %100
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %12, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %13, align 4
  br label %156

142:                                              ; preds = %101
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %12, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %13, align 4
  br label %155

146:                                              ; preds = %102
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %12, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %13, align 4
  br label %154

150:                                              ; preds = %108
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %12, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %13, align 4
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %19) #5
  br label %154

154:                                              ; preds = %150, %146
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %20) #5
  br label %155

155:                                              ; preds = %154, %142
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %25) #5
  br label %156

156:                                              ; preds = %155, %138
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %21) #5
  br label %157

157:                                              ; preds = %156, %134
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %22) #5
  br label %158

158:                                              ; preds = %157, %130
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %24) #5
  br label %159

159:                                              ; preds = %158, %126
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %23) #5
  br label %160

160:                                              ; preds = %159, %122
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %17) #5
  br label %161

161:                                              ; preds = %160, %118
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %18) #5
  br label %162

162:                                              ; preds = %161, %114
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  br label %172

163:                                              ; preds = %83
  store i1 true, ptr %10, align 1
  %164 = getelementptr inbounds [21 x %struct.poly], ptr %11, i32 0, i32 0
  %165 = getelementptr inbounds %struct.poly, ptr %164, i64 21
  br label %166

166:                                              ; preds = %166, %163
  %167 = phi ptr [ %165, %163 ], [ %168, %166 ]
  %168 = getelementptr inbounds %struct.poly, ptr %167, i64 -1
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %168) #5
  %169 = icmp eq ptr %168, %164
  br i1 %169, label %170, label %166

170:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 672, ptr %11) #5
  %171 = load i1, ptr %10, align 1
  br i1 %171, label %182, label %181

172:                                              ; preds = %162, %74
  %173 = getelementptr inbounds [21 x %struct.poly], ptr %11, i32 0, i32 0
  %174 = getelementptr inbounds %struct.poly, ptr %173, i64 21
  br label %175

175:                                              ; preds = %175, %172
  %176 = phi ptr [ %174, %172 ], [ %177, %175 ]
  %177 = getelementptr inbounds %struct.poly, ptr %176, i64 -1
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %177) #5
  %178 = icmp eq ptr %177, %173
  br i1 %178, label %179, label %175

179:                                              ; preds = %175
  br label %180

180:                                              ; preds = %179, %65
  call void @llvm.lifetime.end.p0(i64 672, ptr %11) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %0) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 84, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %183

181:                                              ; preds = %170
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %0) #5
  br label %182

182:                                              ; preds = %181, %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 84, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void

183:                                              ; preds = %180
  %184 = load ptr, ptr %12, align 8
  %185 = load i32, ptr %13, align 4
  %186 = insertvalue { ptr, i32 } poison, ptr %184, 0
  %187 = insertvalue { ptr, i32 } %186, i32 %185, 1
  resume { ptr, i32 } %187
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !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 = distinct !{!13, !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.poly = type <{ %"class.std::vector", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3ext4polyi(ptr dead_on_unwind noalias writable sret(%struct.poly) align 8, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10scalar_mul4polyi(ptr dead_on_unwind noalias writable sret(%struct.poly) align 8, ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4polyC2ERKS_(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8poly_inv4polyi(ptr dead_on_unwind noalias nonnull writable sret(%struct.poly) align 8 %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca [21 x i32], align 16
  %5 = alloca [21 x %struct.poly], align 16
  %6 = alloca %struct.poly, align 8
  %7 = alloca %struct.poly, align 8
  %8 = alloca %struct.poly, align 8
  %9 = alloca %struct.poly, align 8
  %10 = alloca %struct.poly, align 8
  %11 = alloca %struct.poly, align 8
  %12 = alloca %struct.poly, align 8
  %13 = alloca %struct.poly, align 8
  %14 = alloca %struct.poly, align 8
  %15 = alloca %struct.poly, align 8
  %16 = alloca %struct.poly, align 8
  %17 = alloca %struct.poly, align 8
  call void @llvm.lifetime.start.p0(i64 84, ptr nonnull %4) #5
  tail call void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %0)
  call void @llvm.lifetime.start.p0(i64 672, ptr nonnull %5) #5
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %5)
          to label %18 unwind label %47

18:                                               ; preds = %3
  %.ptr.1 = getelementptr inbounds i8, ptr %5, i64 32
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.1)
          to label %19 unwind label %.preheader48.preheader

19:                                               ; preds = %18
  %.ptr.2 = getelementptr inbounds i8, ptr %5, i64 64
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.2)
          to label %20 unwind label %.preheader48.preheader

20:                                               ; preds = %19
  %.ptr.3 = getelementptr inbounds i8, ptr %5, i64 96
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.3)
          to label %21 unwind label %.preheader48.preheader

21:                                               ; preds = %20
  %.ptr.4 = getelementptr inbounds i8, ptr %5, i64 128
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.4)
          to label %22 unwind label %.preheader48.preheader

22:                                               ; preds = %21
  %.ptr.5 = getelementptr inbounds i8, ptr %5, i64 160
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.5)
          to label %23 unwind label %.preheader48.preheader

23:                                               ; preds = %22
  %.ptr.6 = getelementptr inbounds i8, ptr %5, i64 192
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.6)
          to label %24 unwind label %.preheader48.preheader

24:                                               ; preds = %23
  %.ptr.7 = getelementptr inbounds i8, ptr %5, i64 224
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.7)
          to label %25 unwind label %.preheader48.preheader

25:                                               ; preds = %24
  %.ptr.8 = getelementptr inbounds i8, ptr %5, i64 256
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.8)
          to label %26 unwind label %.preheader48.preheader

26:                                               ; preds = %25
  %.ptr.9 = getelementptr inbounds i8, ptr %5, i64 288
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.9)
          to label %27 unwind label %.preheader48.preheader

27:                                               ; preds = %26
  %.ptr.10 = getelementptr inbounds i8, ptr %5, i64 320
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.10)
          to label %28 unwind label %.preheader48.preheader

28:                                               ; preds = %27
  %.ptr.11 = getelementptr inbounds i8, ptr %5, i64 352
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.11)
          to label %29 unwind label %.preheader48.preheader

29:                                               ; preds = %28
  %.ptr.12 = getelementptr inbounds i8, ptr %5, i64 384
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.12)
          to label %30 unwind label %.preheader48.preheader

30:                                               ; preds = %29
  %.ptr.13 = getelementptr inbounds i8, ptr %5, i64 416
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.13)
          to label %31 unwind label %.preheader48.preheader

31:                                               ; preds = %30
  %.ptr.14 = getelementptr inbounds i8, ptr %5, i64 448
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.14)
          to label %32 unwind label %.preheader48.preheader

32:                                               ; preds = %31
  %.ptr.15 = getelementptr inbounds i8, ptr %5, i64 480
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.15)
          to label %33 unwind label %.preheader48.preheader

33:                                               ; preds = %32
  %.ptr.16 = getelementptr inbounds i8, ptr %5, i64 512
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.16)
          to label %34 unwind label %.preheader48.preheader

34:                                               ; preds = %33
  %.ptr.17 = getelementptr inbounds i8, ptr %5, i64 544
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.17)
          to label %35 unwind label %.preheader48.preheader

35:                                               ; preds = %34
  %.ptr.18 = getelementptr inbounds i8, ptr %5, i64 576
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.18)
          to label %36 unwind label %.preheader48.preheader

36:                                               ; preds = %35
  %.ptr.19 = getelementptr inbounds i8, ptr %5, i64 608
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.19)
          to label %37 unwind label %.preheader48.preheader

37:                                               ; preds = %36
  %.ptr.20 = getelementptr inbounds i8, ptr %5, i64 640
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.20)
          to label %.preheader47 unwind label %.preheader48.preheader

.preheader47:                                     ; preds = %37
  %.not54 = icmp eq i32 %2, 1
  br i1 %.not54, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader47, %40
  %indvars.iv = phi i64 [ %indvars.iv.next, %40 ], [ 0, %.preheader47 ]
  %.02955 = phi i32 [ %46, %40 ], [ %2, %.preheader47 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  invoke void @_ZN4polyC2ERKS_(ptr noundef nonnull align 8 dereferenceable(28) %7, ptr noundef nonnull align 8 dereferenceable(28) %1)
          to label %38 unwind label %51

38:                                               ; preds = %.lr.ph
  %39 = add nsw i32 %.02955, -1
  invoke void @_Z3ext4polyi(ptr dead_on_unwind nonnull writable sret(%struct.poly) align 8 %6, ptr noundef nonnull %7, i32 noundef %39)
          to label %40 unwind label %53

40:                                               ; preds = %38
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %41 = getelementptr inbounds [21 x %struct.poly], ptr %5, i64 0, i64 %indvars.iv.next
  %42 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN4polyaSEOS_(ptr noundef nonnull align 8 dereferenceable(28) %41, ptr noundef nonnull align 8 dereferenceable(28) %6) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %6) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  %43 = getelementptr inbounds [21 x i32], ptr %4, i64 0, i64 %indvars.iv.next
  store i32 %.02955, ptr %43, align 4, !tbaa !5
  %44 = sdiv i32 %.02955, 2
  %45 = and i32 %.02955, 1
  %46 = add nsw i32 %44, %45
  %.not = icmp eq i32 %46, 1
  br i1 %.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !9

47:                                               ; preds = %3
  %lpad.thr_comm.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.preheader48.preheader:                           ; preds = %18, %19, %20, %21, %22, %23, %24, %25, %26, %27, %28, %29, %30, %31, %32, %33, %34, %35, %36, %37
  %.ptr.lcssa.ph = phi ptr [ %.ptr.20, %37 ], [ %.ptr.19, %36 ], [ %.ptr.18, %35 ], [ %.ptr.17, %34 ], [ %.ptr.16, %33 ], [ %.ptr.15, %32 ], [ %.ptr.14, %31 ], [ %.ptr.13, %30 ], [ %.ptr.12, %29 ], [ %.ptr.11, %28 ], [ %.ptr.10, %27 ], [ %.ptr.9, %26 ], [ %.ptr.8, %25 ], [ %.ptr.7, %24 ], [ %.ptr.6, %23 ], [ %.ptr.5, %22 ], [ %.ptr.4, %21 ], [ %.ptr.3, %20 ], [ %.ptr.2, %19 ], [ %.ptr.1, %18 ]
  %lpad.thr_comm = landingpad { ptr, i32 }
          cleanup
  br label %.preheader48

.preheader48:                                     ; preds = %.preheader48.preheader, %.preheader48
  %48 = phi ptr [ %49, %.preheader48 ], [ %.ptr.lcssa.ph, %.preheader48.preheader ]
  %49 = getelementptr inbounds i8, ptr %48, i64 -32
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %49) #5
  %50 = icmp eq ptr %49, %5
  br i1 %50, label %.loopexit, label %.preheader48

51:                                               ; preds = %.lr.ph
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %55

53:                                               ; preds = %38
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %7) #5
  br label %55

55:                                               ; preds = %53, %51
  %.pn43 = phi { ptr, i32 } [ %54, %53 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  br label %.loopexit.loopexit

._crit_edge.loopexit:                             ; preds = %40
  %56 = trunc nuw i64 %indvars.iv.next to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader47
  %.027.lcssa = phi i32 [ 0, %.preheader47 ], [ %56, %._crit_edge.loopexit ]
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #5
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = call noundef i32 @_Z5mypowii(i32 noundef %58, i32 noundef 998244351)
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #5
  store i32 %59, ptr %60, align 4, !tbaa !5
  %61 = icmp sgt i32 %.027.lcssa, 0
  br i1 %61, label %.lr.ph59.preheader, label %.preheader

.lr.ph59.preheader:                               ; preds = %._crit_edge
  %62 = zext nneg i32 %.027.lcssa to i64
  br label %.lr.ph59

.preheader:                                       ; preds = %96, %._crit_edge
  %63 = getelementptr inbounds i8, ptr %5, i64 640
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %63) #5
  %64 = getelementptr inbounds i8, ptr %5, i64 608
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %64) #5
  %65 = getelementptr inbounds i8, ptr %5, i64 576
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %65) #5
  %66 = getelementptr inbounds i8, ptr %5, i64 544
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %66) #5
  %67 = getelementptr inbounds i8, ptr %5, i64 512
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %67) #5
  %68 = getelementptr inbounds i8, ptr %5, i64 480
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %68) #5
  %69 = getelementptr inbounds i8, ptr %5, i64 448
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %69) #5
  %70 = getelementptr inbounds i8, ptr %5, i64 416
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %70) #5
  %71 = getelementptr inbounds i8, ptr %5, i64 384
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %71) #5
  %72 = getelementptr inbounds i8, ptr %5, i64 352
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %72) #5
  %73 = getelementptr inbounds i8, ptr %5, i64 320
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %73) #5
  %74 = getelementptr inbounds i8, ptr %5, i64 288
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %74) #5
  %75 = getelementptr inbounds i8, ptr %5, i64 256
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %75) #5
  %76 = getelementptr inbounds i8, ptr %5, i64 224
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %76) #5
  %77 = getelementptr inbounds i8, ptr %5, i64 192
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %77) #5
  %78 = getelementptr inbounds i8, ptr %5, i64 160
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %78) #5
  %79 = getelementptr inbounds i8, ptr %5, i64 128
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %79) #5
  %80 = getelementptr inbounds i8, ptr %5, i64 96
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %80) #5
  %81 = getelementptr inbounds i8, ptr %5, i64 64
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %81) #5
  %82 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %82) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %5) #5
  call void @llvm.lifetime.end.p0(i64 672, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 84, ptr nonnull %4) #5
  ret void

.lr.ph59:                                         ; preds = %.lr.ph59.preheader, %96
  %indvars.iv64 = phi i64 [ %62, %.lr.ph59.preheader ], [ %indvars.iv.next65, %96 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  invoke void @_ZN4polyC2ERKS_(ptr noundef nonnull align 8 dereferenceable(28) %10, ptr noundef nonnull align 8 dereferenceable(28) %0)
          to label %83 unwind label %99

83:                                               ; preds = %.lr.ph59
  invoke void @_Z10scalar_mul4polyi(ptr dead_on_unwind nonnull writable sret(%struct.poly) align 8 %9, ptr noundef nonnull %10, i32 noundef 2)
          to label %84 unwind label %101

84:                                               ; preds = %83
  %85 = getelementptr inbounds [21 x %struct.poly], ptr %5, i64 0, i64 %indvars.iv64
  invoke void @_ZN4polyC2ERKS_(ptr noundef nonnull align 8 dereferenceable(28) %15, ptr noundef nonnull align 8 dereferenceable(28) %85)
          to label %86 unwind label %103

86:                                               ; preds = %84
  invoke void @_ZN4polyC2ERKS_(ptr noundef nonnull align 8 dereferenceable(28) %16, ptr noundef nonnull align 8 dereferenceable(28) %0)
          to label %87 unwind label %105

87:                                               ; preds = %86
  invoke void @_Z3mul4polyS_(ptr dead_on_unwind nonnull writable sret(%struct.poly) align 8 %14, ptr noundef nonnull %15, ptr noundef nonnull %16)
          to label %88 unwind label %107

88:                                               ; preds = %87
  %89 = getelementptr inbounds [21 x i32], ptr %4, i64 0, i64 %indvars.iv64
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = add nsw i32 %90, -1
  invoke void @_Z3ext4polyi(ptr dead_on_unwind nonnull writable sret(%struct.poly) align 8 %13, ptr noundef nonnull %14, i32 noundef %91)
          to label %92 unwind label %109

92:                                               ; preds = %88
  invoke void @_ZN4polyC2ERKS_(ptr noundef nonnull align 8 dereferenceable(28) %17, ptr noundef nonnull align 8 dereferenceable(28) %0)
          to label %93 unwind label %111

93:                                               ; preds = %92
  invoke void @_Z3mul4polyS_(ptr dead_on_unwind nonnull writable sret(%struct.poly) align 8 %12, ptr noundef nonnull %13, ptr noundef nonnull %17)
          to label %94 unwind label %113

94:                                               ; preds = %93
  invoke void @_Z3ext4polyi(ptr dead_on_unwind nonnull writable sret(%struct.poly) align 8 %11, ptr noundef nonnull %12, i32 noundef %91)
          to label %95 unwind label %115

95:                                               ; preds = %94
  invoke void @_Z5Minus4polyS_(ptr dead_on_unwind nonnull writable sret(%struct.poly) align 8 %8, ptr noundef nonnull %9, ptr noundef nonnull %11)
          to label %96 unwind label %117

96:                                               ; preds = %95
  %97 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN4polyaSEOS_(ptr noundef nonnull align 8 dereferenceable(28) %0, ptr noundef nonnull align 8 dereferenceable(28) %8) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %8) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %11) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %12) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %17) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %13) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %14) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %16) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %15) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  %indvars.iv.next65 = add nsw i64 %indvars.iv64, -1
  %98 = icmp sgt i64 %indvars.iv64, 1
  br i1 %98, label %.lr.ph59, label %.preheader, !llvm.loop !11

99:                                               ; preds = %.lr.ph59
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %127

101:                                              ; preds = %83
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %126

103:                                              ; preds = %84
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %125

105:                                              ; preds = %86
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %124

107:                                              ; preds = %87
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %123

109:                                              ; preds = %88
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %122

111:                                              ; preds = %92
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %121

113:                                              ; preds = %93
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %120

115:                                              ; preds = %94
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %119

117:                                              ; preds = %95
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %11) #5
  br label %119

119:                                              ; preds = %117, %115
  %.pn = phi { ptr, i32 } [ %118, %117 ], [ %116, %115 ]
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %12) #5
  br label %120

120:                                              ; preds = %119, %113
  %.pn.pn = phi { ptr, i32 } [ %.pn, %119 ], [ %114, %113 ]
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %17) #5
  br label %121

121:                                              ; preds = %120, %111
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %120 ], [ %112, %111 ]
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %13) #5
  br label %122

122:                                              ; preds = %121, %109
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %121 ], [ %110, %109 ]
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %14) #5
  br label %123

123:                                              ; preds = %122, %107
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %122 ], [ %108, %107 ]
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %16) #5
  br label %124

124:                                              ; preds = %123, %105
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %123 ], [ %106, %105 ]
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %15) #5
  br label %125

125:                                              ; preds = %124, %103
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %124 ], [ %104, %103 ]
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #5
  br label %126

126:                                              ; preds = %125, %101
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %125 ], [ %102, %101 ]
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %10) #5
  br label %127

127:                                              ; preds = %126, %99
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %126 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %127, %55
  %.pn43.pn = phi { ptr, i32 } [ %.pn43, %55 ], [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn, %127 ]
  %128 = getelementptr inbounds i8, ptr %5, i64 640
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %128) #5
  %129 = getelementptr inbounds i8, ptr %5, i64 608
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %129) #5
  %130 = getelementptr inbounds i8, ptr %5, i64 576
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %130) #5
  %131 = getelementptr inbounds i8, ptr %5, i64 544
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %131) #5
  %132 = getelementptr inbounds i8, ptr %5, i64 512
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %132) #5
  %133 = getelementptr inbounds i8, ptr %5, i64 480
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %133) #5
  %134 = getelementptr inbounds i8, ptr %5, i64 448
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %134) #5
  %135 = getelementptr inbounds i8, ptr %5, i64 416
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %135) #5
  %136 = getelementptr inbounds i8, ptr %5, i64 384
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %136) #5
  %137 = getelementptr inbounds i8, ptr %5, i64 352
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %137) #5
  %138 = getelementptr inbounds i8, ptr %5, i64 320
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %138) #5
  %139 = getelementptr inbounds i8, ptr %5, i64 288
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %139) #5
  %140 = getelementptr inbounds i8, ptr %5, i64 256
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %140) #5
  %141 = getelementptr inbounds i8, ptr %5, i64 224
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %141) #5
  %142 = getelementptr inbounds i8, ptr %5, i64 192
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %142) #5
  %143 = getelementptr inbounds i8, ptr %5, i64 160
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %143) #5
  %144 = getelementptr inbounds i8, ptr %5, i64 128
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %144) #5
  %145 = getelementptr inbounds i8, ptr %5, i64 96
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %145) #5
  %146 = getelementptr inbounds i8, ptr %5, i64 64
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %146) #5
  %147 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %147) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %5) #5
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader48, %47, %.loopexit.loopexit
  %.pn43.pn.pn = phi { ptr, i32 } [ %lpad.thr_comm.split-lp, %47 ], [ %.pn43.pn, %.loopexit.loopexit ], [ %lpad.thr_comm, %.preheader48 ]
  call void @llvm.lifetime.end.p0(i64 672, ptr nonnull %5) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %0) #5
  call void @llvm.lifetime.end.p0(i64 84, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn43.pn.pn
}

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

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

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


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