; LLVM IR from eyangch/competitive-programming :: Codeforces/1139 (d)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@MOD = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@X = external dso_local global [100001 x i64], align 16
@I = external dso_local global [100001 x i64], align 16
@F = external dso_local global [100001 x %"class.std::vector"], align 16
@P = external dso_local global [100001 x %"class.std::vector"], align 16
@op = external dso_local global [100001 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3invx(i64 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 norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %29 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %30 = getelementptr i8, ptr %29, i64 -24
  %31 = load i64, ptr %30, align 8
  %32 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %31
  %33 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %32, ptr noundef null)
  %34 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @M)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #8
  store i64 1, ptr %2, align 8, !tbaa !8
  br label %36

36:                                               ; preds = %76, %0
  %37 = load i64, ptr %2, align 8, !tbaa !8
  %38 = load i64, ptr @M, align 8, !tbaa !8
  %39 = icmp sle i64 %37, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  br label %79

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %42 = load i64, ptr %2, align 8, !tbaa !8
  store i64 %42, ptr %4, align 8, !tbaa !8
  br label %43

43:                                               ; preds = %51, %41
  %44 = load i64, ptr %4, align 8, !tbaa !8
  %45 = load i64, ptr @M, align 8, !tbaa !8
  %46 = icmp sle i64 %44, %45
  br i1 %46, label %48, label %47

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

48:                                               ; preds = %43
  %49 = load i64, ptr %4, align 8, !tbaa !8
  %50 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @F, i64 0, i64 %49
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %50, ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %51

51:                                               ; preds = %48
  %52 = load i64, ptr %2, align 8, !tbaa !8
  %53 = load i64, ptr %4, align 8, !tbaa !8
  %54 = add nsw i64 %53, %52
  store i64 %54, ptr %4, align 8, !tbaa !8
  br label %43, !llvm.loop !11

55:                                               ; preds = %47
  %56 = load i64, ptr %2, align 8, !tbaa !8
  %57 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @F, i64 0, i64 %56
  %58 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #8
  %59 = icmp eq i64 %58, 2
  br i1 %59, label %60, label %75

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %61 = load i64, ptr %2, align 8, !tbaa !8
  store i64 %61, ptr %5, align 8, !tbaa !8
  br label %62

62:                                               ; preds = %70, %60
  %63 = load i64, ptr %5, align 8, !tbaa !8
  %64 = load i64, ptr @M, align 8, !tbaa !8
  %65 = icmp sle i64 %63, %64
  br i1 %65, label %67, label %66

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

67:                                               ; preds = %62
  %68 = load i64, ptr %5, align 8, !tbaa !8
  %69 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @P, i64 0, i64 %68
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %70

70:                                               ; preds = %67
  %71 = load i64, ptr %2, align 8, !tbaa !8
  %72 = load i64, ptr %5, align 8, !tbaa !8
  %73 = add nsw i64 %72, %71
  store i64 %73, ptr %5, align 8, !tbaa !8
  br label %62, !llvm.loop !13

74:                                               ; preds = %66
  br label %75

75:                                               ; preds = %74, %55
  br label %76

76:                                               ; preds = %75
  %77 = load i64, ptr %2, align 8, !tbaa !8
  %78 = add nsw i64 %77, 1
  store i64 %78, ptr %2, align 8, !tbaa !8
  br label %36, !llvm.loop !14

79:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  store i64 1, ptr %6, align 8, !tbaa !8
  br label %80

80:                                               ; preds = %90, %79
  %81 = load i64, ptr %6, align 8, !tbaa !8
  %82 = load i64, ptr @M, align 8, !tbaa !8
  %83 = icmp sle i64 %81, %82
  br i1 %83, label %85, label %84

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

85:                                               ; preds = %80
  %86 = load i64, ptr %6, align 8, !tbaa !8
  %87 = call noundef i64 @_Z3invx(i64 noundef %86)
  %88 = load i64, ptr %6, align 8, !tbaa !8
  %89 = getelementptr inbounds [100001 x i64], ptr @I, i64 0, i64 %88
  store i64 %87, ptr %89, align 8, !tbaa !8
  br label %90

90:                                               ; preds = %85
  %91 = load i64, ptr %6, align 8, !tbaa !8
  %92 = add nsw i64 %91, 1
  store i64 %92, ptr %6, align 8, !tbaa !8
  br label %80, !llvm.loop !15

93:                                               ; preds = %84
  store i64 1, ptr getelementptr inbounds ([100001 x i64], ptr @X, i64 0, i64 1), align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  store i64 2, ptr %7, align 8, !tbaa !8
  br label %94

94:                                               ; preds = %260, %93
  %95 = load i64, ptr %7, align 8, !tbaa !8
  %96 = load i64, ptr @M, align 8, !tbaa !8
  %97 = icmp sle i64 %95, %96
  br i1 %97, label %99, label %98

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

99:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %100 = load i64, ptr %7, align 8, !tbaa !8
  %101 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @F, i64 0, i64 %100
  store ptr %101, ptr %8, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %102 = load ptr, ptr %8, align 8, !tbaa !16
  %103 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #8
  %104 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %103, ptr %104, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %105 = load ptr, ptr %8, align 8, !tbaa !16
  %106 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %105) #8
  %107 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %106, ptr %107, align 8
  br label %108

108:                                              ; preds = %116, %99
  %109 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br i1 %109, label %111, label %110

110:                                              ; preds = %108
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %118

111:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %113 = load i64, ptr %112, align 8, !tbaa !8
  store i64 %113, ptr %11, align 8, !tbaa !8
  %114 = load i64, ptr %11, align 8, !tbaa !8
  %115 = getelementptr inbounds [100001 x i64], ptr @op, i64 0, i64 %114
  store i64 0, ptr %115, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %116

116:                                              ; preds = %111
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br label %108

118:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %119 = load i64, ptr %7, align 8, !tbaa !8
  %120 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @F, i64 0, i64 %119
  store ptr %120, ptr %12, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %121 = load ptr, ptr %12, align 8, !tbaa !16
  %122 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #8
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %122, ptr %123, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %124 = load ptr, ptr %12, align 8, !tbaa !16
  %125 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %124) #8
  %126 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %125, ptr %126, align 8
  br label %127

127:                                              ; preds = %198, %118
  %128 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br i1 %128, label %130, label %129

129:                                              ; preds = %127
  store i32 19, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %200

130:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %132 = load i64, ptr %131, align 8, !tbaa !8
  store i64 %132, ptr %15, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %133 = load i64, ptr %7, align 8, !tbaa !8
  %134 = load i64, ptr %15, align 8, !tbaa !8
  %135 = sdiv i64 %133, %134
  store i64 %135, ptr %16, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %136 = load i64, ptr @M, align 8, !tbaa !8
  %137 = load i64, ptr %15, align 8, !tbaa !8
  %138 = sdiv i64 %136, %137
  store i64 %138, ptr %17, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %139 = load i64, ptr %16, align 8, !tbaa !8
  %140 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @P, i64 0, i64 %139
  %141 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %140) #8
  store i64 %141, ptr %18, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  store i64 0, ptr %19, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  store i64 1, ptr %20, align 8, !tbaa !8
  br label %142

142:                                              ; preds = %189, %130
  %143 = load i64, ptr %20, align 8, !tbaa !8
  %144 = load i64, ptr %18, align 8, !tbaa !8
  %145 = trunc i64 %144 to i32
  %146 = shl i32 1, %145
  %147 = sext i32 %146 to i64
  %148 = icmp slt i64 %143, %147
  br i1 %148, label %150, label %149

149:                                              ; preds = %142
  store i32 21, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %192

150:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  store i64 1, ptr %21, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  store i64 0, ptr %22, align 8, !tbaa !8
  br label %151

151:                                              ; preds = %171, %150
  %152 = load i64, ptr %22, align 8, !tbaa !8
  %153 = load i64, ptr %18, align 8, !tbaa !8
  %154 = icmp slt i64 %152, %153
  br i1 %154, label %156, label %155

155:                                              ; preds = %151
  store i32 24, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %174

156:                                              ; preds = %151
  %157 = load i64, ptr %20, align 8, !tbaa !8
  %158 = load i64, ptr %22, align 8, !tbaa !8
  %159 = ashr i64 %157, %158
  %160 = and i64 %159, 1
  %161 = icmp ne i64 %160, 0
  br i1 %161, label %162, label %170

162:                                              ; preds = %156
  %163 = load i64, ptr %16, align 8, !tbaa !8
  %164 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @P, i64 0, i64 %163
  %165 = load i64, ptr %22, align 8, !tbaa !8
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %164, i64 noundef %165) #8
  %167 = load i64, ptr %166, align 8, !tbaa !8
  %168 = load i64, ptr %21, align 8, !tbaa !8
  %169 = mul nsw i64 %168, %167
  store i64 %169, ptr %21, align 8, !tbaa !8
  br label %170

170:                                              ; preds = %162, %156
  br label %171

171:                                              ; preds = %170
  %172 = load i64, ptr %22, align 8, !tbaa !8
  %173 = add nsw i64 %172, 1
  store i64 %173, ptr %22, align 8, !tbaa !8
  br label %151, !llvm.loop !18

174:                                              ; preds = %155
  %175 = load i64, ptr %17, align 8, !tbaa !8
  %176 = load i64, ptr %21, align 8, !tbaa !8
  %177 = sdiv i64 %175, %176
  %178 = load i64, ptr %20, align 8, !tbaa !8
  %179 = trunc i64 %178 to i32
  %180 = call i32 @llvm.ctpop.i32(i32 %179)
  %181 = and i32 %180, 1
  %182 = icmp ne i32 %181, 0
  %183 = zext i1 %182 to i64
  %184 = select i1 %182, i32 1, i32 -1
  %185 = sext i32 %184 to i64
  %186 = mul nsw i64 %177, %185
  %187 = load i64, ptr %19, align 8, !tbaa !8
  %188 = add nsw i64 %187, %186
  store i64 %188, ptr %19, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %189

189:                                              ; preds = %174
  %190 = load i64, ptr %20, align 8, !tbaa !8
  %191 = add nsw i64 %190, 1
  store i64 %191, ptr %20, align 8, !tbaa !8
  br label %142, !llvm.loop !19

192:                                              ; preds = %149
  %193 = load i64, ptr %17, align 8, !tbaa !8
  %194 = load i64, ptr %19, align 8, !tbaa !8
  %195 = sub nsw i64 %193, %194
  %196 = load i64, ptr %15, align 8, !tbaa !8
  %197 = getelementptr inbounds [100001 x i64], ptr @op, i64 0, i64 %196
  store i64 %195, ptr %197, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %198

198:                                              ; preds = %192
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br label %127

200:                                              ; preds = %129
  %201 = load i64, ptr @M, align 8, !tbaa !8
  %202 = load i64, ptr %7, align 8, !tbaa !8
  %203 = getelementptr inbounds [100001 x i64], ptr @X, i64 0, i64 %202
  store i64 %201, ptr %203, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %204 = load i64, ptr %7, align 8, !tbaa !8
  %205 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @F, i64 0, i64 %204
  store ptr %205, ptr %23, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %206 = load ptr, ptr %23, align 8, !tbaa !16
  %207 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %206) #8
  %208 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %207, ptr %208, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %209 = load ptr, ptr %23, align 8, !tbaa !16
  %210 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %209) #8
  %211 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %210, ptr %211, align 8
  br label %212

212:                                              ; preds = %241, %200
  %213 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  br i1 %213, label %215, label %214

214:                                              ; preds = %212
  store i32 27, ptr %3, align 4
  br label %243

215:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  %217 = load i64, ptr %216, align 8, !tbaa !8
  store i64 %217, ptr %26, align 8, !tbaa !8
  %218 = load i64, ptr %7, align 8, !tbaa !8
  %219 = load i64, ptr %26, align 8, !tbaa !8
  %220 = icmp eq i64 %218, %219
  br i1 %220, label %221, label %222

221:                                              ; preds = %215
  store i32 27, ptr %3, align 4
  br label %238

222:                                              ; preds = %215
  %223 = load i64, ptr %7, align 8, !tbaa !8
  %224 = getelementptr inbounds [100001 x i64], ptr @X, i64 0, i64 %223
  %225 = load i64, ptr %224, align 8, !tbaa !8
  %226 = load i64, ptr %26, align 8, !tbaa !8
  %227 = getelementptr inbounds [100001 x i64], ptr @op, i64 0, i64 %226
  %228 = load i64, ptr %227, align 8, !tbaa !8
  %229 = load i64, ptr %26, align 8, !tbaa !8
  %230 = getelementptr inbounds [100001 x i64], ptr @X, i64 0, i64 %229
  %231 = load i64, ptr %230, align 8, !tbaa !8
  %232 = mul nsw i64 %228, %231
  %233 = add nsw i64 %225, %232
  %234 = load i64, ptr @MOD, align 8, !tbaa !8
  %235 = srem i64 %233, %234
  %236 = load i64, ptr %7, align 8, !tbaa !8
  %237 = getelementptr inbounds [100001 x i64], ptr @X, i64 0, i64 %236
  store i64 %235, ptr %237, align 8, !tbaa !8
  store i32 0, ptr %3, align 4
  br label %238

238:                                              ; preds = %222, %221
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  %239 = load i32, ptr %3, align 4
  switch i32 %239, label %243 [
    i32 0, label %240
  ]

240:                                              ; preds = %238
  br label %241

241:                                              ; preds = %240
  %242 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  br label %212

243:                                              ; preds = %238, %214
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %244

244:                                              ; preds = %243
  %245 = load i64, ptr %7, align 8, !tbaa !8
  %246 = getelementptr inbounds [100001 x i64], ptr @X, i64 0, i64 %245
  %247 = load i64, ptr %246, align 8, !tbaa !8
  %248 = load i64, ptr @M, align 8, !tbaa !8
  %249 = load i64, ptr %7, align 8, !tbaa !8
  %250 = getelementptr inbounds [100001 x i64], ptr @op, i64 0, i64 %249
  %251 = load i64, ptr %250, align 8, !tbaa !8
  %252 = sub nsw i64 %248, %251
  %253 = getelementptr inbounds [100001 x i64], ptr @I, i64 0, i64 %252
  %254 = load i64, ptr %253, align 8, !tbaa !8
  %255 = mul nsw i64 %247, %254
  %256 = load i64, ptr @MOD, align 8, !tbaa !8
  %257 = srem i64 %255, %256
  %258 = load i64, ptr %7, align 8, !tbaa !8
  %259 = getelementptr inbounds [100001 x i64], ptr @X, i64 0, i64 %258
  store i64 %257, ptr %259, align 8, !tbaa !8
  br label %260

260:                                              ; preds = %244
  %261 = load i64, ptr %7, align 8, !tbaa !8
  %262 = add nsw i64 %261, 1
  store i64 %262, ptr %7, align 8, !tbaa !8
  br label %94, !llvm.loop !20

263:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  store i64 0, ptr %27, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  store i64 0, ptr %28, align 8, !tbaa !8
  br label %264

264:                                              ; preds = %277, %263
  %265 = load i64, ptr %28, align 8, !tbaa !8
  %266 = load i64, ptr @M, align 8, !tbaa !8
  %267 = icmp sle i64 %265, %266
  br i1 %267, label %269, label %268

268:                                              ; preds = %264
  store i32 29, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %280

269:                                              ; preds = %264
  %270 = load i64, ptr %27, align 8, !tbaa !8
  %271 = load i64, ptr %28, align 8, !tbaa !8
  %272 = getelementptr inbounds [100001 x i64], ptr @X, i64 0, i64 %271
  %273 = load i64, ptr %272, align 8, !tbaa !8
  %274 = add nsw i64 %270, %273
  %275 = load i64, ptr @MOD, align 8, !tbaa !8
  %276 = srem i64 %274, %275
  store i64 %276, ptr %27, align 8, !tbaa !8
  br label %277

277:                                              ; preds = %269
  %278 = load i64, ptr %28, align 8, !tbaa !8
  %279 = add nsw i64 %278, 1
  store i64 %279, ptr %28, align 8, !tbaa !8
  br label %264, !llvm.loop !21

280:                                              ; preds = %268
  %281 = load i64, ptr %27, align 8, !tbaa !8
  %282 = load i64, ptr @M, align 8, !tbaa !8
  %283 = getelementptr inbounds [100001 x i64], ptr @I, i64 0, i64 %282
  %284 = load i64, ptr %283, align 8, !tbaa !8
  %285 = mul nsw i64 %281, %284
  %286 = load i64, ptr @MOD, align 8, !tbaa !8
  %287 = srem i64 %285, %286
  store i64 %287, ptr %27, align 8, !tbaa !8
  %288 = load i64, ptr %27, align 8, !tbaa !8
  %289 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %288)
  %290 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %289, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  %291 = load i32, ptr %1, align 4
  ret i32 %291
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #0 align 2

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctpop.i32(i32) #6

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #7

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !10, i64 0}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !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"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@MOD = external dso_local local_unnamed_addr global i64, align 8
@M = external dso_local global i64, align 8
@X = external dso_local local_unnamed_addr global [100001 x i64], align 16
@I = external dso_local local_unnamed_addr global [100001 x i64], align 16
@F = external dso_local global [100001 x %"class.std::vector"], align 16
@P = external dso_local global [100001 x %"class.std::vector"], align 16
@op = external dso_local local_unnamed_addr global [100001 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3invx(i64 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 norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i64, align 8
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %9 = getelementptr i8, ptr %8, i64 -24
  %10 = load i64, ptr %9, align 8
  %11 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %10
  %12 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %11, ptr noundef null)
  %13 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @M)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  store i64 1, ptr %1, align 8, !tbaa !8
  %15 = load i64, ptr @M, align 8, !tbaa !8
  %.not90 = icmp slt i64 %15, 1
  br i1 %.not90, label %._crit_edge92.thread, label %.preheader83

._crit_edge92.thread:                             ; preds = %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  br label %._crit_edge97.thread

.preheader83:                                     ; preds = %0, %.loopexit
  %16 = phi i64 [ %29, %.loopexit ], [ %15, %0 ]
  %storemerge91 = phi i64 [ %31, %.loopexit ], [ 1, %0 ]
  %.not8084 = icmp sgt i64 %storemerge91, %16
  br i1 %.not8084, label %._crit_edge, label %.lr.ph

._crit_edge92:                                    ; preds = %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  %.not7493 = icmp slt i64 %29, 1
  br i1 %.not7493, label %._crit_edge97.thread, label %.lr.ph96

._crit_edge:                                      ; preds = %.lr.ph, %.preheader83
  %17 = phi i64 [ %storemerge91, %.preheader83 ], [ %22, %.lr.ph ]
  %18 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @F, i64 0, i64 %17
  %19 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  %20 = icmp ne i64 %19, 2
  %.pre = load i64, ptr %1, align 8, !tbaa !8
  %.pre133 = load i64, ptr @M, align 8, !tbaa !8
  %.not8186 = icmp sgt i64 %.pre, %.pre133
  %or.cond = select i1 %20, i1 true, i1 %.not8186
  br i1 %or.cond, label %.loopexit, label %.lr.ph89

.lr.ph:                                           ; preds = %.preheader83, %.lr.ph
  %.06385 = phi i64 [ %23, %.lr.ph ], [ %storemerge91, %.preheader83 ]
  %21 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @F, i64 0, i64 %.06385
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %22 = load i64, ptr %1, align 8, !tbaa !8
  %23 = add nsw i64 %22, %.06385
  %24 = load i64, ptr @M, align 8, !tbaa !8
  %.not80 = icmp sgt i64 %23, %24
  br i1 %.not80, label %._crit_edge, label %.lr.ph, !llvm.loop !11

.lr.ph89:                                         ; preds = %._crit_edge, %.lr.ph89
  %.06887 = phi i64 [ %27, %.lr.ph89 ], [ %.pre, %._crit_edge ]
  %25 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @P, i64 0, i64 %.06887
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %26 = load i64, ptr %1, align 8, !tbaa !8
  %27 = add nsw i64 %26, %.06887
  %28 = load i64, ptr @M, align 8, !tbaa !8
  %.not81 = icmp sgt i64 %27, %28
  br i1 %.not81, label %.loopexit, label %.lr.ph89, !llvm.loop !13

.loopexit:                                        ; preds = %.lr.ph89, %._crit_edge
  %29 = phi i64 [ %.pre133, %._crit_edge ], [ %28, %.lr.ph89 ]
  %30 = phi i64 [ %.pre, %._crit_edge ], [ %26, %.lr.ph89 ]
  %31 = add nsw i64 %30, 1
  store i64 %31, ptr %1, align 8, !tbaa !8
  %.not.not = icmp slt i64 %30, %29
  br i1 %.not.not, label %.preheader83, label %._crit_edge92, !llvm.loop !14

._crit_edge97.thread:                             ; preds = %._crit_edge92, %._crit_edge92.thread
  %.ph = phi i64 [ %15, %._crit_edge92.thread ], [ %29, %._crit_edge92 ]
  store i64 1, ptr getelementptr inbounds (i8, ptr @X, i64 8), align 8, !tbaa !8
  br label %._crit_edge97..preheader_crit_edge

._crit_edge97:                                    ; preds = %.lr.ph96
  store i64 1, ptr getelementptr inbounds (i8, ptr @X, i64 8), align 8, !tbaa !8
  %.not75115 = icmp slt i64 %36, 2
  br i1 %.not75115, label %._crit_edge97..preheader_crit_edge, label %.lr.ph118

._crit_edge97..preheader_crit_edge:               ; preds = %._crit_edge97.thread, %._crit_edge97
  %32 = phi i64 [ %.ph, %._crit_edge97.thread ], [ %36, %._crit_edge97 ]
  %.pre134.pre = load i64, ptr @MOD, align 8, !tbaa !8
  br label %.preheader

.lr.ph96:                                         ; preds = %._crit_edge92, %.lr.ph96
  %.06994 = phi i64 [ %35, %.lr.ph96 ], [ 1, %._crit_edge92 ]
  %33 = call noundef i64 @_Z3invx(i64 noundef %.06994)
  %34 = getelementptr inbounds [100001 x i64], ptr @I, i64 0, i64 %.06994
  store i64 %33, ptr %34, align 8, !tbaa !8
  %35 = add nuw nsw i64 %.06994, 1
  %36 = load i64, ptr @M, align 8, !tbaa !8
  %.not74.not = icmp slt i64 %.06994, %36
  br i1 %.not74.not, label %.lr.ph96, label %._crit_edge97, !llvm.loop !15

.preheader:                                       ; preds = %.critedge, %._crit_edge97..preheader_crit_edge
  %.pre134 = phi i64 [ %.pre134.pre, %._crit_edge97..preheader_crit_edge ], [ %131, %.critedge ]
  %.lcssa = phi i64 [ %32, %._crit_edge97..preheader_crit_edge ], [ %124, %.critedge ]
  %.not76119 = icmp slt i64 %.lcssa, 0
  br i1 %.not76119, label %._crit_edge123, label %.lr.ph122.preheader

.lr.ph122.preheader:                              ; preds = %.preheader
  %37 = icmp eq i64 %.lcssa, 0
  br i1 %37, label %._crit_edge123.loopexit.unr-lcssa, label %.lr.ph122.preheader.new

.lr.ph122.preheader.new:                          ; preds = %.lr.ph122.preheader
  %38 = add nuw i64 %.lcssa, 1
  %unroll_iter = and i64 %38, -2
  br label %.lr.ph122

.lr.ph118:                                        ; preds = %._crit_edge97, %.critedge
  %.070116 = phi i64 [ %133, %.critedge ], [ 2, %._crit_edge97 ]
  %39 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @F, i64 0, i64 %.070116
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  %40 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  store ptr %40, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  %41 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  store ptr %41, ptr %3, align 8
  %42 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #9
  br i1 %42, label %.lr.ph99, label %._crit_edge100

._crit_edge100:                                   ; preds = %.lr.ph99, %.lr.ph118
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %43 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  store ptr %43, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %44 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  store ptr %44, ptr %5, align 8
  %45 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  br i1 %45, label %.lr.ph110, label %._crit_edge111

.lr.ph99:                                         ; preds = %.lr.ph118, %.lr.ph99
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #9
  %47 = load i64, ptr %46, align 8, !tbaa !8
  %48 = getelementptr inbounds [100001 x i64], ptr @op, i64 0, i64 %47
  store i64 0, ptr %48, align 8, !tbaa !8
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #9
  %50 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #9
  br i1 %50, label %.lr.ph99, label %._crit_edge100

._crit_edge111:                                   ; preds = %._crit_edge107, %._crit_edge100
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  %51 = load i64, ptr @M, align 8, !tbaa !8
  %52 = getelementptr inbounds [100001 x i64], ptr @X, i64 0, i64 %.070116
  store i64 %51, ptr %52, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %53 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  store ptr %53, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %54 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  store ptr %54, ptr %7, align 8
  %55 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %55, label %.lr.ph113, label %.critedge

.lr.ph110:                                        ; preds = %._crit_edge100, %._crit_edge107
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %57 = load i64, ptr %56, align 8, !tbaa !8
  %58 = sdiv i64 %.070116, %57
  %59 = load i64, ptr @M, align 8, !tbaa !8
  %60 = sdiv i64 %59, %57
  %61 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @P, i64 0, i64 %58
  %62 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #9
  %63 = trunc i64 %62 to i32
  %64 = shl nuw i32 1, %63
  %65 = sext i32 %64 to i64
  %66 = icmp sgt i32 %64, 1
  br i1 %66, label %.preheader82.lr.ph, label %._crit_edge107

.preheader82.lr.ph:                               ; preds = %.lr.ph110
  %67 = icmp sgt i64 %62, 0
  br i1 %67, label %.preheader82.us, label %.preheader82.lr.ph.split

.preheader82.us:                                  ; preds = %.preheader82.lr.ph, %._crit_edge104.us
  %.066106.us = phi i64 [ %84, %._crit_edge104.us ], [ 1, %.preheader82.lr.ph ]
  %.067105.us = phi i64 [ %83, %._crit_edge104.us ], [ 0, %.preheader82.lr.ph ]
  br label %68

68:                                               ; preds = %.preheader82.us, %75
  %.064102.us = phi i64 [ 0, %.preheader82.us ], [ %76, %75 ]
  %.065101.us = phi i64 [ 1, %.preheader82.us ], [ %.1.us, %75 ]
  %69 = shl nuw i64 1, %.064102.us
  %70 = and i64 %69, %.066106.us
  %.not79.us = icmp eq i64 %70, 0
  br i1 %.not79.us, label %75, label %71

71:                                               ; preds = %68
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %.064102.us) #9
  %73 = load i64, ptr %72, align 8, !tbaa !8
  %74 = mul nsw i64 %73, %.065101.us
  br label %75

75:                                               ; preds = %71, %68
  %.1.us = phi i64 [ %74, %71 ], [ %.065101.us, %68 ]
  %76 = add nuw nsw i64 %.064102.us, 1
  %exitcond130.not = icmp eq i64 %76, %62
  br i1 %exitcond130.not, label %._crit_edge104.us, label %68, !llvm.loop !16

._crit_edge104.us:                                ; preds = %75
  %77 = sdiv i64 %60, %.1.us
  %78 = trunc i64 %.066106.us to i32
  %79 = call range(i32 0, 33) i32 @llvm.ctpop.i32(i32 %78)
  %80 = and i32 %79, 1
  %.not78.us = icmp eq i32 %80, 0
  %81 = sub nsw i64 0, %77
  %82 = select i1 %.not78.us, i64 %81, i64 %77
  %83 = add nsw i64 %82, %.067105.us
  %84 = add nuw nsw i64 %.066106.us, 1
  %exitcond131.not = icmp eq i64 %84, %65
  br i1 %exitcond131.not, label %._crit_edge107, label %.preheader82.us, !llvm.loop !17

.preheader82.lr.ph.split:                         ; preds = %.preheader82.lr.ph
  %85 = sub nsw i64 0, %60
  %86 = add nsw i64 %65, -1
  %min.iters.check = icmp ult i32 %63, 3
  br i1 %min.iters.check, label %.preheader82.preheader, label %vector.ph

vector.ph:                                        ; preds = %.preheader82.lr.ph.split
  %n.vec = and i64 %86, -4
  %ind.end = or disjoint i64 %n.vec, 1
  %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %85, i64 0
  %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert162 = insertelement <2 x i64> poison, i64 %60, i64 0
  %broadcast.splat163 = shufflevector <2 x i64> %broadcast.splatinsert162, <2 x i64> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %95, %vector.body ]
  %vec.phi160 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %96, %vector.body ]
  %vec.ind = phi <2 x i32> [ <i32 1, i32 2>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <2 x i32> %vec.ind, <i32 2, i32 2>
  %87 = call range(i32 0, 33) <2 x i32> @llvm.ctpop.v2i32(<2 x i32> %vec.ind)
  %88 = call range(i32 0, 33) <2 x i32> @llvm.ctpop.v2i32(<2 x i32> %step.add)
  %89 = and <2 x i32> %87, <i32 1, i32 1>
  %90 = and <2 x i32> %88, <i32 1, i32 1>
  %91 = icmp eq <2 x i32> %89, zeroinitializer
  %92 = icmp eq <2 x i32> %90, zeroinitializer
  %93 = select <2 x i1> %91, <2 x i64> %broadcast.splat, <2 x i64> %broadcast.splat163
  %94 = select <2 x i1> %92, <2 x i64> %broadcast.splat, <2 x i64> %broadcast.splat163
  %95 = add <2 x i64> %93, %vec.phi
  %96 = add <2 x i64> %94, %vec.phi160
  %index.next = add nuw i64 %index, 4
  %vec.ind.next = add <2 x i32> %vec.ind, <i32 4, i32 4>
  %97 = icmp eq i64 %index.next, %n.vec
  br i1 %97, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %96, %95
  %98 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %86, %n.vec
  br i1 %cmp.n, label %._crit_edge107, label %.preheader82.preheader

.preheader82.preheader:                           ; preds = %middle.block, %.preheader82.lr.ph.split
  %.066106.ph = phi i64 [ 1, %.preheader82.lr.ph.split ], [ %ind.end, %middle.block ]
  %.067105.ph = phi i64 [ 0, %.preheader82.lr.ph.split ], [ %98, %middle.block ]
  br label %.preheader82

.preheader82:                                     ; preds = %.preheader82.preheader, %.preheader82
  %.066106 = phi i64 [ %104, %.preheader82 ], [ %.066106.ph, %.preheader82.preheader ]
  %.067105 = phi i64 [ %103, %.preheader82 ], [ %.067105.ph, %.preheader82.preheader ]
  %99 = trunc i64 %.066106 to i32
  %100 = call range(i32 0, 33) i32 @llvm.ctpop.i32(i32 %99)
  %101 = and i32 %100, 1
  %.not78 = icmp eq i32 %101, 0
  %102 = select i1 %.not78, i64 %85, i64 %60
  %103 = add nsw i64 %102, %.067105
  %104 = add nuw nsw i64 %.066106, 1
  %exitcond.not = icmp eq i64 %104, %65
  br i1 %exitcond.not, label %._crit_edge107, label %.preheader82, !llvm.loop !21

._crit_edge107:                                   ; preds = %.preheader82, %._crit_edge104.us, %middle.block, %.lr.ph110
  %.067.lcssa = phi i64 [ 0, %.lr.ph110 ], [ %98, %middle.block ], [ %83, %._crit_edge104.us ], [ %103, %.preheader82 ]
  %105 = sub nsw i64 %60, %.067.lcssa
  %106 = getelementptr inbounds [100001 x i64], ptr @op, i64 0, i64 %57
  store i64 %105, ptr %106, align 8, !tbaa !8
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %108 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  br i1 %108, label %.lr.ph110, label %._crit_edge111

.lr.ph113:                                        ; preds = %._crit_edge111, %111
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %110 = load i64, ptr %109, align 8, !tbaa !8
  %.not77 = icmp eq i64 %.070116, %110
  br i1 %.not77, label %.critedge, label %111

111:                                              ; preds = %.lr.ph113
  %112 = load i64, ptr %52, align 8, !tbaa !8
  %113 = getelementptr inbounds [100001 x i64], ptr @op, i64 0, i64 %110
  %114 = load i64, ptr %113, align 8, !tbaa !8
  %115 = getelementptr inbounds [100001 x i64], ptr @X, i64 0, i64 %110
  %116 = load i64, ptr %115, align 8, !tbaa !8
  %117 = mul nsw i64 %116, %114
  %118 = add nsw i64 %117, %112
  %119 = load i64, ptr @MOD, align 8, !tbaa !8
  %120 = srem i64 %118, %119
  store i64 %120, ptr %52, align 8, !tbaa !8
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %122 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %122, label %.lr.ph113, label %.critedge

.critedge:                                        ; preds = %111, %.lr.ph113, %._crit_edge111
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  %123 = load i64, ptr %52, align 8, !tbaa !8
  %124 = load i64, ptr @M, align 8, !tbaa !8
  %125 = getelementptr inbounds [100001 x i64], ptr @op, i64 0, i64 %.070116
  %126 = load i64, ptr %125, align 8, !tbaa !8
  %127 = sub nsw i64 %124, %126
  %128 = getelementptr inbounds [100001 x i64], ptr @I, i64 0, i64 %127
  %129 = load i64, ptr %128, align 8, !tbaa !8
  %130 = mul nsw i64 %129, %123
  %131 = load i64, ptr @MOD, align 8, !tbaa !8
  %132 = srem i64 %130, %131
  store i64 %132, ptr %52, align 8, !tbaa !8
  %133 = add nuw nsw i64 %.070116, 1
  %.not75.not = icmp slt i64 %.070116, %124
  br i1 %.not75.not, label %.lr.ph118, label %.preheader, !llvm.loop !22

._crit_edge123.loopexit.unr-lcssa:                ; preds = %.lr.ph122, %.lr.ph122.preheader
  %.lcssa164.ph = phi i64 [ poison, %.lr.ph122.preheader ], [ %153, %.lr.ph122 ]
  %.0121.unr = phi i64 [ 0, %.lr.ph122.preheader ], [ %154, %.lr.ph122 ]
  %.061120.unr = phi i64 [ 0, %.lr.ph122.preheader ], [ %153, %.lr.ph122 ]
  %134 = and i64 %.lcssa, 1
  %lcmp.mod.not.not = icmp eq i64 %134, 0
  br i1 %lcmp.mod.not.not, label %.lr.ph122.epil, label %._crit_edge123

.lr.ph122.epil:                                   ; preds = %._crit_edge123.loopexit.unr-lcssa
  %135 = getelementptr inbounds [100001 x i64], ptr @X, i64 0, i64 %.0121.unr
  %136 = load i64, ptr %135, align 8, !tbaa !8
  %137 = add nsw i64 %136, %.061120.unr
  %138 = srem i64 %137, %.pre134
  br label %._crit_edge123

._crit_edge123:                                   ; preds = %.lr.ph122.epil, %._crit_edge123.loopexit.unr-lcssa, %.preheader
  %.061.lcssa = phi i64 [ 0, %.preheader ], [ %.lcssa164.ph, %._crit_edge123.loopexit.unr-lcssa ], [ %138, %.lr.ph122.epil ]
  %139 = getelementptr inbounds [100001 x i64], ptr @I, i64 0, i64 %.lcssa
  %140 = load i64, ptr %139, align 8, !tbaa !8
  %141 = mul nsw i64 %140, %.061.lcssa
  %142 = srem i64 %141, %.pre134
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %142)
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %143, i8 noundef signext 10)
  ret i32 0

.lr.ph122:                                        ; preds = %.lr.ph122, %.lr.ph122.preheader.new
  %.0121 = phi i64 [ 0, %.lr.ph122.preheader.new ], [ %154, %.lr.ph122 ]
  %.061120 = phi i64 [ 0, %.lr.ph122.preheader.new ], [ %153, %.lr.ph122 ]
  %niter = phi i64 [ 0, %.lr.ph122.preheader.new ], [ %niter.next.1, %.lr.ph122 ]
  %145 = getelementptr inbounds [100001 x i64], ptr @X, i64 0, i64 %.0121
  %146 = load i64, ptr %145, align 16, !tbaa !8
  %147 = add nsw i64 %146, %.061120
  %148 = srem i64 %147, %.pre134
  %149 = or disjoint i64 %.0121, 1
  %150 = getelementptr inbounds [100001 x i64], ptr @X, i64 0, i64 %149
  %151 = load i64, ptr %150, align 8, !tbaa !8
  %152 = add nsw i64 %151, %148
  %153 = srem i64 %152, %.pre134
  %154 = add nuw i64 %.0121, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge123.loopexit.unr-lcssa, label %.lr.ph122, !llvm.loop !23
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #0 align 2

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctpop.i32(i32) #6

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #7

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i32> @llvm.ctpop.v2i32(<2 x i32>) #8

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #8

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 norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12, !19, !20}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !12, !20, !19}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass