; LLVM IR from kazunetakahashi/atcoder :: 2019/0714_AGC035/E.ll (Z10solve_evenxx)

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

%class.Mint = type { i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Mint, std::allocator<Mint>>::_Vector_impl" }
%"struct.std::_Vector_base<Mint, std::allocator<Mint>>::_Vector_impl" = type { %"struct.std::_Vector_base<Mint, std::allocator<Mint>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Mint, std::allocator<Mint>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

; Function Attrs: mustprogress uwtable
define dso_local i64 @_Z10solve_evenxx(i64 noundef %0, i64 noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.Mint, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca %class.Mint, align 8
  %16 = alloca i64, align 8
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca %class.Mint, align 8
  %22 = alloca %class.Mint, align 8
  %23 = alloca i64, align 8
  store i64 %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !5
  call void @_ZN4MintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 0, ptr %6, align 8, !tbaa !5
  br label %24

24:                                               ; preds = %145, %2
  %25 = load i64, ptr %6, align 8, !tbaa !5
  %26 = icmp slt i64 %25, 2
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %152

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %29 = load i64, ptr %4, align 8, !tbaa !5
  %30 = load i64, ptr %6, align 8, !tbaa !5
  %31 = sub nsw i64 %29, %30
  %32 = add nsw i64 %31, 1
  %33 = sdiv i64 %32, 2
  store i64 %33, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #5
  %34 = load i64, ptr %8, align 8, !tbaa !5
  %35 = add nsw i64 %34, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  call void @_ZNSaI4MintEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  invoke void @_ZNSt6vectorI4MintSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %35, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %36 unwind label %47

36:                                               ; preds = %28
  call void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  %37 = load i64, ptr %8, align 8, !tbaa !5
  %38 = add nsw i64 %37, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  call void @_ZNSaI4MintEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  invoke void @_ZNSt6vectorI4MintSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %38, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %39 unwind label %51

39:                                               ; preds = %36
  call void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  invoke void @_ZN4MintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %15, i64 noundef 1)
          to label %40 unwind label %55

40:                                               ; preds = %39
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %15, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i64 0, ptr %16, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %115, %40
  %43 = load i64, ptr %16, align 8, !tbaa !5
  %44 = load i64, ptr %8, align 8, !tbaa !5
  %45 = icmp slt i64 %43, %44
  br i1 %45, label %59, label %46

46:                                               ; preds = %42
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %119

47:                                               ; preds = %28
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %11, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %12, align 4
  call void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  br label %151

51:                                               ; preds = %36
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %11, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %12, align 4
  call void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  br label %150

55:                                               ; preds = %39
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %11, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %149

59:                                               ; preds = %42
  call void @_ZSt4swapI4MintSaIS0_EEvRSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #5
  %60 = load i64, ptr %8, align 8, !tbaa !5
  %61 = add nsw i64 %60, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  call void @_ZNSaI4MintEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  invoke void @_ZNSt6vectorI4MintSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %61, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %62 unwind label %69

62:                                               ; preds = %59
  %63 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4MintSaIS0_EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @_ZNSt6vectorI4MintSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store i64 0, ptr %19, align 8, !tbaa !5
  br label %64

64:                                               ; preds = %86, %62
  %65 = load i64, ptr %19, align 8, !tbaa !5
  %66 = load i64, ptr %16, align 8, !tbaa !5
  %67 = icmp sle i64 %65, %66
  br i1 %67, label %73, label %68

68:                                               ; preds = %64
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %93

69:                                               ; preds = %59
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %11, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %12, align 4
  call void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  br label %118

73:                                               ; preds = %64
  %74 = load i64, ptr %19, align 8, !tbaa !5
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %74) #5
  %76 = load i64, ptr %19, align 8, !tbaa !5
  %77 = add nsw i64 %76, 1
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %77) #5
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull align 8 dereferenceable(8) %75)
          to label %80 unwind label %89

80:                                               ; preds = %73
  %81 = load i64, ptr %19, align 8, !tbaa !5
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %81) #5
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0) #5
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef nonnull align 8 dereferenceable(8) %82)
          to label %85 unwind label %89

85:                                               ; preds = %80
  br label %86

86:                                               ; preds = %85
  %87 = load i64, ptr %19, align 8, !tbaa !5
  %88 = add nsw i64 %87, 1
  store i64 %88, ptr %19, align 8, !tbaa !5
  br label %64, !llvm.loop !10

89:                                               ; preds = %80, %73
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %11, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %118

93:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %94 = load i64, ptr %5, align 8, !tbaa !5
  %95 = sdiv i64 %94, 2
  %96 = add nsw i64 %95, 1
  store i64 %96, ptr %20, align 8, !tbaa !5
  br label %97

97:                                               ; preds = %107, %93
  %98 = load i64, ptr %20, align 8, !tbaa !5
  %99 = load i64, ptr %16, align 8, !tbaa !5
  %100 = add nsw i64 %99, 1
  %101 = icmp sle i64 %98, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %97
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %114

103:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  invoke void @_ZN4MintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %21, i64 noundef 0)
          to label %104 unwind label %110

104:                                              ; preds = %103
  %105 = load i64, ptr %20, align 8, !tbaa !5
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %105) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %106, ptr align 8 %21, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %107

107:                                              ; preds = %104
  %108 = load i64, ptr %20, align 8, !tbaa !5
  %109 = add nsw i64 %108, 1
  store i64 %109, ptr %20, align 8, !tbaa !5
  br label %97, !llvm.loop !12

110:                                              ; preds = %103
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %11, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %118

114:                                              ; preds = %102
  br label %115

115:                                              ; preds = %114
  %116 = load i64, ptr %16, align 8, !tbaa !5
  %117 = add nsw i64 %116, 1
  store i64 %117, ptr %16, align 8, !tbaa !5
  br label %42, !llvm.loop !13

118:                                              ; preds = %110, %89, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %149

119:                                              ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  invoke void @_ZN4MintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %22, i64 noundef 0)
          to label %120 unwind label %126

120:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  store i64 0, ptr %23, align 8, !tbaa !5
  br label %121

121:                                              ; preds = %135, %120
  %122 = load i64, ptr %23, align 8, !tbaa !5
  %123 = load i64, ptr %8, align 8, !tbaa !5
  %124 = icmp sle i64 %122, %123
  br i1 %124, label %130, label %125

125:                                              ; preds = %121
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %142

126:                                              ; preds = %142, %119
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %11, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %12, align 4
  br label %148

130:                                              ; preds = %121
  %131 = load i64, ptr %23, align 8, !tbaa !5
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %131) #5
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %132)
          to label %134 unwind label %138

134:                                              ; preds = %130
  br label %135

135:                                              ; preds = %134
  %136 = load i64, ptr %23, align 8, !tbaa !5
  %137 = add nsw i64 %136, 1
  store i64 %137, ptr %23, align 8, !tbaa !5
  br label %121, !llvm.loop !14

138:                                              ; preds = %130
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %11, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %148

142:                                              ; preds = %125
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintmLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %144 unwind label %126

144:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @_ZNSt6vectorI4MintSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @_ZNSt6vectorI4MintSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %145

145:                                              ; preds = %144
  %146 = load i64, ptr %6, align 8, !tbaa !5
  %147 = add nsw i64 %146, 1
  store i64 %147, ptr %6, align 8, !tbaa !5
  br label %24, !llvm.loop !15

148:                                              ; preds = %138, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %149

149:                                              ; preds = %148, %118, %55
  call void @_ZNSt6vectorI4MintSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  br label %150

150:                                              ; preds = %149, %51
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @_ZNSt6vectorI4MintSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  br label %151

151:                                              ; preds = %150, %47
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %155

152:                                              ; preds = %27
  %153 = getelementptr inbounds %class.Mint, ptr %3, i32 0, i32 0
  %154 = load i64, ptr %153, align 8
  ret i64 %154

155:                                              ; preds = %151
  %156 = load ptr, ptr %11, align 8
  %157 = load i32, ptr %12, align 4
  %158 = insertvalue { ptr, i32 } poison, ptr %156, 0
  %159 = insertvalue { ptr, i32 } %158, i32 %157, 1
  resume { ptr, i32 } %159
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4MintC2Ex(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaI4MintEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

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


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

%class.Mint = type { i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Mint, std::allocator<Mint>>::_Vector_impl" }
%"struct.std::_Vector_base<Mint, std::allocator<Mint>>::_Vector_impl" = type { %"struct.std::_Vector_base<Mint, std::allocator<Mint>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Mint, std::allocator<Mint>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

; Function Attrs: mustprogress uwtable
define dso_local i64 @_Z10solve_evenxx(i64 noundef %0, i64 noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.Mint, align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca %class.Mint, align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %class.Mint, align 8
  %12 = alloca %class.Mint, align 8
  call void @_ZN4MintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef 1)
  %13 = add i64 %0, 1
  %14 = sdiv i64 %1, 2
  %15 = sdiv i64 %13, 2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  %16 = add nsw i64 %15, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #4
  call void @_ZNSaI4MintEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  invoke void @_ZNSt6vectorI4MintSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %16, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %17 unwind label %22

17:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #4
  call void @_ZNSaI4MintEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  invoke void @_ZNSt6vectorI4MintSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %16, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %18 unwind label %24

18:                                               ; preds = %17
  call void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @_ZN4MintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef 1)
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #4
  %20 = load i64, ptr %8, align 8, !tbaa !5
  store i64 %20, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  %21 = icmp sgt i64 %13, 1
  br i1 %21, label %.lr.ph44, label %._crit_edge45

._crit_edge45:                                    ; preds = %._crit_edge, %18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @_ZN4MintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef 0)
  %.not46 = icmp slt i64 %13, -1
  br i1 %.not46, label %._crit_edge50, label %.lr.ph49

22:                                               ; preds = %._crit_edge50, %2
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  br label %72

24:                                               ; preds = %44, %17
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  br label %71

.lr.ph44:                                         ; preds = %18, %._crit_edge
  %indvars.iv = phi i64 [ %indvars.iv.next, %._crit_edge ], [ 1, %18 ]
  %.02842 = phi i64 [ %38, %._crit_edge ], [ 0, %18 ]
  call void @_ZSt4swapI4MintSaIS0_EEvRSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #4
  call void @_ZNSaI4MintEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  invoke void @_ZNSt6vectorI4MintSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %16, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %26 unwind label %.loopexit

26:                                               ; preds = %.lr.ph44
  %27 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4MintSaIS0_EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @_ZNSt6vectorI4MintSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  br label %30

28:                                               ; preds = %30
  %.not3840 = icmp sgt i64 %14, %.02842
  br i1 %.not3840, label %._crit_edge, label %.lr.ph

.loopexit:                                        ; preds = %.lr.ph44
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %29

.loopexit.split-lp:                               ; preds = %.lr.ph44.1
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %29

29:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  call void @_ZNSt6vectorI4MintSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  br label %71

30:                                               ; preds = %26, %30
  %.02739 = phi i64 [ 0, %26 ], [ %32, %30 ]
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.02739) #4
  %32 = add nuw nsw i64 %.02739, 1
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %32) #4
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %31)
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.02739) #4
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #4
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %35)
  %exitcond.not = icmp eq i64 %32, %indvars.iv
  br i1 %exitcond.not, label %28, label %30, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %28
  %38 = add nuw nsw i64 %.02842, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond52.not = icmp eq i64 %38, %15
  br i1 %exitcond52.not, label %._crit_edge45, label %.lr.ph44, !llvm.loop !11

.lr.ph:                                           ; preds = %28, %.lr.ph
  %.026.in41 = phi i64 [ %.026, %.lr.ph ], [ %14, %28 ]
  %.026 = add nsw i64 %.026.in41, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @_ZN4MintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %11, i64 noundef 0)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.026) #4
  %40 = load i64, ptr %11, align 8, !tbaa !5
  store i64 %40, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  %.not38.not = icmp slt i64 %.026.in41, %.02842
  br i1 %.not38.not, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge50:                                    ; preds = %.lr.ph49, %._crit_edge45
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintmLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @_ZNSt6vectorI4MintSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @_ZNSt6vectorI4MintSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  %42 = sdiv i64 %0, 2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  %43 = add nsw i64 %42, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #4
  call void @_ZNSaI4MintEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  invoke void @_ZNSt6vectorI4MintSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %43, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %44 unwind label %22

44:                                               ; preds = %._crit_edge50
  call void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #4
  call void @_ZNSaI4MintEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  invoke void @_ZNSt6vectorI4MintSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %43, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %45 unwind label %24

45:                                               ; preds = %44
  call void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @_ZN4MintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef 1)
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #4
  %47 = load i64, ptr %8, align 8, !tbaa !5
  store i64 %47, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  %48 = icmp sgt i64 %0, 1
  br i1 %48, label %.lr.ph44.1, label %._crit_edge45.1

.lr.ph44.1:                                       ; preds = %45, %._crit_edge.1
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %._crit_edge.1 ], [ 1, %45 ]
  %.02842.1 = phi i64 [ %62, %._crit_edge.1 ], [ 0, %45 ]
  call void @_ZSt4swapI4MintSaIS0_EEvRSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #4
  call void @_ZNSaI4MintEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  invoke void @_ZNSt6vectorI4MintSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %43, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %49 unwind label %.loopexit.split-lp

49:                                               ; preds = %.lr.ph44.1
  %50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4MintSaIS0_EEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @_ZNSt6vectorI4MintSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  br label %51

51:                                               ; preds = %51, %49
  %.02739.1 = phi i64 [ 0, %49 ], [ %53, %51 ]
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.02739.1) #4
  %53 = add nuw nsw i64 %.02739.1, 1
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %53) #4
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull align 8 dereferenceable(8) %52)
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.02739.1) #4
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #4
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(8) %56)
  %exitcond.1.not = icmp eq i64 %53, %indvars.iv.1
  br i1 %exitcond.1.not, label %59, label %51, !llvm.loop !9

59:                                               ; preds = %51
  %.not3840.1 = icmp sgt i64 %14, %.02842.1
  br i1 %.not3840.1, label %._crit_edge.1, label %.lr.ph.1

.lr.ph.1:                                         ; preds = %59, %.lr.ph.1
  %.026.in41.1 = phi i64 [ %.026.1, %.lr.ph.1 ], [ %14, %59 ]
  %.026.1 = add nsw i64 %.026.in41.1, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @_ZN4MintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %11, i64 noundef 0)
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.026.1) #4
  %61 = load i64, ptr %11, align 8, !tbaa !5
  store i64 %61, ptr %60, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  %.not38.not.1 = icmp slt i64 %.026.in41.1, %.02842.1
  br i1 %.not38.not.1, label %.lr.ph.1, label %._crit_edge.1, !llvm.loop !12

._crit_edge.1:                                    ; preds = %.lr.ph.1, %59
  %62 = add nuw nsw i64 %.02842.1, 1
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond52.1.not = icmp eq i64 %62, %42
  br i1 %exitcond52.1.not, label %._crit_edge45.1, label %.lr.ph44.1, !llvm.loop !11

._crit_edge45.1:                                  ; preds = %._crit_edge.1, %45
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @_ZN4MintC2Ex(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef 0)
  %.not46.1 = icmp slt i64 %0, -1
  br i1 %.not46.1, label %._crit_edge50.1, label %.lr.ph49.1

.lr.ph49.1:                                       ; preds = %._crit_edge45.1, %.lr.ph49.1
  %.047.1 = phi i64 [ %65, %.lr.ph49.1 ], [ 0, %._crit_edge45.1 ]
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.047.1) #4
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %63)
  %65 = add nuw nsw i64 %.047.1, 1
  %exitcond53.1.not = icmp eq i64 %.047.1, %42
  br i1 %exitcond53.1.not, label %._crit_edge50.1, label %.lr.ph49.1, !llvm.loop !13

._crit_edge50.1:                                  ; preds = %.lr.ph49.1, %._crit_edge45.1
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintmLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @_ZNSt6vectorI4MintSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @_ZNSt6vectorI4MintSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  %67 = load i64, ptr %3, align 8
  ret i64 %67

.lr.ph49:                                         ; preds = %._crit_edge45, %.lr.ph49
  %.047 = phi i64 [ %70, %.lr.ph49 ], [ 0, %._crit_edge45 ]
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorI4MintSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.047) #4
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4MintpLERKS_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %68)
  %70 = add nuw nsw i64 %.047, 1
  %exitcond53.not = icmp eq i64 %.047, %15
  br i1 %exitcond53.not, label %._crit_edge50, label %.lr.ph49, !llvm.loop !13

71:                                               ; preds = %29, %24
  %.pn = phi { ptr, i32 } [ %lpad.phi, %29 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @_ZNSt6vectorI4MintSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br label %72

72:                                               ; preds = %71, %22
  %.pn.pn = phi { ptr, i32 } [ %.pn, %71 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4MintC2Ex(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaI4MintEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI4MintED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }

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

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


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