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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; 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 @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #1 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) #2 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) #1

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

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

; 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
declare dso_local void @_Z7poly_ln4polyi(ptr dead_on_unwind noalias writable sret(%struct.poly) align 8, ptr noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8poly_exp4polyi(ptr dead_on_unwind noalias writable sret(%struct.poly) align 8 %0, ptr noundef %1, i32 noundef %2) #1 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
  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
  %23 = getelementptr inbounds [21 x %struct.poly], ptr %11, i32 0, i32 0
  %24 = getelementptr inbounds %struct.poly, ptr %23, i64 21
  br label %25

25:                                               ; preds = %27, %3
  %26 = phi ptr [ %23, %3 ], [ %28, %27 ]
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %26)
          to label %27 unwind label %58

27:                                               ; preds = %25
  %28 = getelementptr inbounds %struct.poly, ptr %26, i64 1
  %29 = icmp eq ptr %28, %24
  br i1 %29, label %30, label %25

30:                                               ; preds = %27
  br label %31

31:                                               ; preds = %38, %30
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = icmp ne i32 %32, 1
  br i1 %33, label %34, label %77

34:                                               ; preds = %31
  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 %35 unwind label %68

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

38:                                               ; preds = %35
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %9, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [21 x %struct.poly], ptr %11, i64 0, i64 %41
  %43 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN4polyaSEOS_(ptr noundef nonnull align 8 dereferenceable(28) %42, 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
  %44 = load i32, ptr %6, align 4, !tbaa !9
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [21 x i32], ptr %8, i64 0, i64 %46
  store i32 %44, ptr %47, align 4, !tbaa !9
  %48 = load i32, ptr %6, align 4, !tbaa !9
  %49 = sdiv i32 %48, 2
  %50 = load i32, ptr %6, align 4, !tbaa !9
  %51 = and i32 %50, 1
  %52 = add nsw i32 %49, %51
  store i32 %52, ptr %6, align 4, !tbaa !9
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [21 x %struct.poly], ptr %11, i64 0, i64 %54
  %56 = getelementptr inbounds %struct.poly, ptr %55, i32 0, i32 0
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef 0) #5
  store i32 1, ptr %57, align 4, !tbaa !9
  br label %31, !llvm.loop !11

58:                                               ; preds = %25
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %12, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %13, align 4
  %62 = icmp eq ptr %23, %26
  br i1 %62, label %67, label %63

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

67:                                               ; preds = %63, %58
  br label %159

68:                                               ; preds = %34
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %12, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %13, align 4
  br label %76

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

76:                                               ; preds = %72, %68
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  br label %151

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

81:                                               ; preds = %105, %77
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = icmp sgt i32 %82, 0
  br i1 %83, label %84, label %142

84:                                               ; preds = %81
  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 %85 unwind label %108

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

89:                                               ; preds = %85
  invoke void @_ZN4polyC2ERKS_(ptr noundef nonnull align 8 dereferenceable(28) %22, ptr noundef nonnull align 8 dereferenceable(28) %0)
          to label %90 unwind label %116

90:                                               ; preds = %89
  %91 = load i32, ptr %7, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [21 x i32], ptr %8, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !9
  invoke void @_Z7poly_ln4polyi(ptr dead_on_unwind writable sret(%struct.poly) align 8 %21, ptr noundef %22, i32 noundef %94)
          to label %95 unwind label %120

95:                                               ; preds = %90
  invoke void @_Z5Minus4polyS_(ptr dead_on_unwind writable sret(%struct.poly) align 8 %19, ptr noundef %20, ptr noundef %21)
          to label %96 unwind label %124

96:                                               ; preds = %95
  invoke void @_Z3mul4polyS_(ptr dead_on_unwind writable sret(%struct.poly) align 8 %17, ptr noundef %18, ptr noundef %19)
          to label %97 unwind label %128

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

103:                                              ; preds = %97
  %104 = 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) %17) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %19) #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) %20) #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 %105

105:                                              ; preds = %103
  %106 = load i32, ptr %7, align 4, !tbaa !9
  %107 = add nsw i32 %106, -1
  store i32 %107, ptr %7, align 4, !tbaa !9
  br label %81, !llvm.loop !13

108:                                              ; preds = %84
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %12, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %13, align 4
  br label %141

112:                                              ; preds = %85
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %12, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %13, align 4
  br label %140

116:                                              ; preds = %89
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %12, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %13, align 4
  br label %139

120:                                              ; preds = %90
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %12, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %13, align 4
  br label %138

124:                                              ; preds = %95
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %12, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %13, align 4
  br label %137

128:                                              ; preds = %96
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %12, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %13, align 4
  br label %136

132:                                              ; preds = %97
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %12, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %13, align 4
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %17) #5
  br label %136

136:                                              ; preds = %132, %128
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %19) #5
  br label %137

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

138:                                              ; preds = %137, %120
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %22) #5
  br label %139

139:                                              ; preds = %138, %116
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %20) #5
  br label %140

140:                                              ; preds = %139, %112
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %18) #5
  br label %141

141:                                              ; preds = %140, %108
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  br label %151

142:                                              ; preds = %81
  store i1 true, ptr %10, align 1
  %143 = getelementptr inbounds [21 x %struct.poly], ptr %11, i32 0, i32 0
  %144 = getelementptr inbounds %struct.poly, ptr %143, i64 21
  br label %145

145:                                              ; preds = %145, %142
  %146 = phi ptr [ %144, %142 ], [ %147, %145 ]
  %147 = getelementptr inbounds %struct.poly, ptr %146, i64 -1
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %147) #5
  %148 = icmp eq ptr %147, %143
  br i1 %148, label %149, label %145

149:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 672, ptr %11) #5
  %150 = load i1, ptr %10, align 1
  br i1 %150, label %161, label %160

151:                                              ; preds = %141, %76
  %152 = getelementptr inbounds [21 x %struct.poly], ptr %11, i32 0, i32 0
  %153 = getelementptr inbounds %struct.poly, ptr %152, i64 21
  br label %154

154:                                              ; preds = %154, %151
  %155 = phi ptr [ %153, %151 ], [ %156, %154 ]
  %156 = getelementptr inbounds %struct.poly, ptr %155, i64 -1
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %156) #5
  %157 = icmp eq ptr %156, %152
  br i1 %157, label %158, label %154

158:                                              ; preds = %154
  br label %159

159:                                              ; preds = %158, %67
  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 %162

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

161:                                              ; preds = %160, %149
  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

162:                                              ; preds = %159
  %163 = load ptr, ptr %12, align 8
  %164 = load i32, ptr %13, align 4
  %165 = insertvalue { ptr, i32 } poison, ptr %163, 0
  %166 = insertvalue { ptr, i32 } %165, i32 %164, 1
  resume { ptr, i32 } %166
}

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 = { 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 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; 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 @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #1 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 #2 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 #1

; 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 #1

; 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 #1

; 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
declare dso_local void @_Z7poly_ln4polyi(ptr dead_on_unwind noalias writable sret(%struct.poly) align 8, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8poly_exp4polyi(ptr dead_on_unwind noalias nonnull writable sret(%struct.poly) align 8 %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #1 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
  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 %15 unwind label %46

15:                                               ; 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 %16 unwind label %.preheader43.preheader

16:                                               ; preds = %15
  %.ptr.2 = getelementptr inbounds i8, ptr %5, i64 64
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.2)
          to label %17 unwind label %.preheader43.preheader

17:                                               ; preds = %16
  %.ptr.3 = getelementptr inbounds i8, ptr %5, i64 96
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.3)
          to label %18 unwind label %.preheader43.preheader

18:                                               ; preds = %17
  %.ptr.4 = getelementptr inbounds i8, ptr %5, i64 128
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.4)
          to label %19 unwind label %.preheader43.preheader

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

34:                                               ; preds = %33
  %.ptr.20 = getelementptr inbounds i8, ptr %5, i64 640
  invoke void @_ZN4polyC2Ev(ptr noundef nonnull align 8 dereferenceable(28) %.ptr.20)
          to label %.preheader42 unwind label %.preheader43.preheader

.preheader42:                                     ; preds = %34
  %.not49 = icmp eq i32 %2, 1
  br i1 %.not49, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %.preheader42
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #5
  store i32 1, ptr %35, align 4, !tbaa !5
  br label %.preheader

.lr.ph:                                           ; preds = %.preheader42, %38
  %indvars.iv = phi i64 [ %indvars.iv.next, %38 ], [ 0, %.preheader42 ]
  %.02750 = phi i32 [ %44, %38 ], [ %2, %.preheader42 ]
  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 %36 unwind label %50

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

38:                                               ; preds = %36
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %39 = getelementptr inbounds [21 x %struct.poly], ptr %5, i64 0, i64 %indvars.iv.next
  %40 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN4polyaSEOS_(ptr noundef nonnull align 8 dereferenceable(28) %39, 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
  %41 = getelementptr inbounds [21 x i32], ptr %4, i64 0, i64 %indvars.iv.next
  store i32 %.02750, ptr %41, align 4, !tbaa !5
  %42 = sdiv i32 %.02750, 2
  %43 = and i32 %.02750, 1
  %44 = add nsw i32 %42, %43
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef 0) #5
  store i32 1, ptr %45, align 4, !tbaa !5
  %.not = icmp eq i32 %44, 1
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

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

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

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

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

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

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

._crit_edge:                                      ; preds = %38
  %55 = trunc nuw i64 %indvars.iv.next to i32
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #5
  store i32 1, ptr %56, align 4, !tbaa !5
  %57 = icmp sgt i32 %55, 0
  br i1 %57, label %.lr.ph54.preheader, label %.preheader

.lr.ph54.preheader:                               ; preds = %._crit_edge
  %58 = and i64 %indvars.iv.next, 2147483647
  br label %.lr.ph54

.preheader:                                       ; preds = %89, %._crit_edge.thread, %._crit_edge
  %59 = getelementptr inbounds i8, ptr %5, i64 640
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %59) #5
  %60 = getelementptr inbounds i8, ptr %5, i64 608
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %60) #5
  %61 = getelementptr inbounds i8, ptr %5, i64 576
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %61) #5
  %62 = getelementptr inbounds i8, ptr %5, i64 544
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %62) #5
  %63 = getelementptr inbounds i8, ptr %5, i64 512
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %63) #5
  %64 = getelementptr inbounds i8, ptr %5, i64 480
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %64) #5
  %65 = getelementptr inbounds i8, ptr %5, i64 448
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %65) #5
  %66 = getelementptr inbounds i8, ptr %5, i64 416
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %66) #5
  %67 = getelementptr inbounds i8, ptr %5, i64 384
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %67) #5
  %68 = getelementptr inbounds i8, ptr %5, i64 352
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %68) #5
  %69 = getelementptr inbounds i8, ptr %5, i64 320
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %69) #5
  %70 = getelementptr inbounds i8, ptr %5, i64 288
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %70) #5
  %71 = getelementptr inbounds i8, ptr %5, i64 256
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %71) #5
  %72 = getelementptr inbounds i8, ptr %5, i64 224
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %72) #5
  %73 = getelementptr inbounds i8, ptr %5, i64 192
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %73) #5
  %74 = getelementptr inbounds i8, ptr %5, i64 160
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %74) #5
  %75 = getelementptr inbounds i8, ptr %5, i64 128
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %75) #5
  %76 = getelementptr inbounds i8, ptr %5, i64 96
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %76) #5
  %77 = getelementptr inbounds i8, ptr %5, i64 64
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %77) #5
  %78 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %78) #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.ph54:                                         ; preds = %.lr.ph54.preheader, %89
  %indvars.iv59 = phi i64 [ %58, %.lr.ph54.preheader ], [ %indvars.iv.next60, %89 ]
  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 %79 unwind label %92

79:                                               ; preds = %.lr.ph54
  %80 = getelementptr inbounds [21 x %struct.poly], ptr %5, i64 0, i64 %indvars.iv59
  invoke void @_ZN4polyC2ERKS_(ptr noundef nonnull align 8 dereferenceable(28) %12, ptr noundef nonnull align 8 dereferenceable(28) %80)
          to label %81 unwind label %94

81:                                               ; preds = %79
  invoke void @_ZN4polyC2ERKS_(ptr noundef nonnull align 8 dereferenceable(28) %14, ptr noundef nonnull align 8 dereferenceable(28) %0)
          to label %82 unwind label %96

82:                                               ; preds = %81
  %83 = getelementptr inbounds [21 x i32], ptr %4, i64 0, i64 %indvars.iv59
  %84 = load i32, ptr %83, align 4, !tbaa !5
  invoke void @_Z7poly_ln4polyi(ptr dead_on_unwind nonnull writable sret(%struct.poly) align 8 %13, ptr noundef nonnull %14, i32 noundef %84)
          to label %85 unwind label %98

85:                                               ; preds = %82
  invoke void @_Z5Minus4polyS_(ptr dead_on_unwind nonnull writable sret(%struct.poly) align 8 %11, ptr noundef nonnull %12, ptr noundef nonnull %13)
          to label %86 unwind label %100

86:                                               ; preds = %85
  invoke void @_Z3mul4polyS_(ptr dead_on_unwind nonnull writable sret(%struct.poly) align 8 %9, ptr noundef nonnull %10, ptr noundef nonnull %11)
          to label %87 unwind label %102

87:                                               ; preds = %86
  %88 = add nsw i32 %84, -1
  invoke void @_Z3ext4polyi(ptr dead_on_unwind nonnull writable sret(%struct.poly) align 8 %8, ptr noundef nonnull %9, i32 noundef %88)
          to label %89 unwind label %104

89:                                               ; preds = %87
  %90 = 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) %9) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %11) #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) %12) #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.next60 = add nsw i64 %indvars.iv59, -1
  %91 = icmp sgt i64 %indvars.iv59, 1
  br i1 %91, label %.lr.ph54, label %.preheader, !llvm.loop !11

92:                                               ; preds = %.lr.ph54
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %111

94:                                               ; preds = %79
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %110

96:                                               ; preds = %81
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %109

98:                                               ; preds = %82
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %108

100:                                              ; preds = %85
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %107

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

104:                                              ; preds = %87
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #5
  br label %106

106:                                              ; preds = %104, %102
  %.pn = phi { ptr, i32 } [ %105, %104 ], [ %103, %102 ]
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %11) #5
  br label %107

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

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

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

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

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

.loopexit.loopexit:                               ; preds = %111, %54
  %.pn38.pn = phi { ptr, i32 } [ %.pn38, %54 ], [ %.pn.pn.pn.pn.pn.pn, %111 ]
  %112 = getelementptr inbounds i8, ptr %5, i64 640
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %112) #5
  %113 = getelementptr inbounds i8, ptr %5, i64 608
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %113) #5
  %114 = getelementptr inbounds i8, ptr %5, i64 576
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %114) #5
  %115 = getelementptr inbounds i8, ptr %5, i64 544
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %115) #5
  %116 = getelementptr inbounds i8, ptr %5, i64 512
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %116) #5
  %117 = getelementptr inbounds i8, ptr %5, i64 480
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %117) #5
  %118 = getelementptr inbounds i8, ptr %5, i64 448
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %118) #5
  %119 = getelementptr inbounds i8, ptr %5, i64 416
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %119) #5
  %120 = getelementptr inbounds i8, ptr %5, i64 384
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %120) #5
  %121 = getelementptr inbounds i8, ptr %5, i64 352
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %121) #5
  %122 = getelementptr inbounds i8, ptr %5, i64 320
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %122) #5
  %123 = getelementptr inbounds i8, ptr %5, i64 288
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %123) #5
  %124 = getelementptr inbounds i8, ptr %5, i64 256
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %124) #5
  %125 = getelementptr inbounds i8, ptr %5, i64 224
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %125) #5
  %126 = getelementptr inbounds i8, ptr %5, i64 192
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %126) #5
  %127 = getelementptr inbounds i8, ptr %5, i64 160
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %127) #5
  %128 = getelementptr inbounds i8, ptr %5, i64 128
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %128) #5
  %129 = getelementptr inbounds i8, ptr %5, i64 96
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %129) #5
  %130 = getelementptr inbounds i8, ptr %5, i64 64
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %130) #5
  %131 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %131) #5
  call void @_ZN4polyD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %5) #5
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader43, %46, %.loopexit.loopexit
  %.pn38.pn.pn = phi { ptr, i32 } [ %lpad.thr_comm.split-lp, %46 ], [ %.pn38.pn, %.loopexit.loopexit ], [ %lpad.thr_comm, %.preheader43 ]
  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 } %.pn38.pn.pn
}

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 = { 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 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