; LLVM IR from tangjz/acm-icpc :: uoj/200.ll (Z6solve4v)

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

%struct.Edge = type { i32, i32, i32 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.2 = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@ans = external dso_local global [100001 x i32], align 16
@e = external dso_local global [150001 x %struct.Edge], align 16
@que = external dso_local global [100001 x %struct.Edge], align 16
@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@stderr = external global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__._Z6solve4v = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZZ6solve4vE4ways = external hidden global [5 x [5 x [50001 x i32]]], align 16
@_ZZ6solve4vE4sols = external hidden global [5 x [5 x [50001 x i32]]], align 16

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8NTT_initi(i32 noundef) #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6solve4v() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::function", align 8
  %12 = alloca %class.anon.2, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #7
  store i32 5, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 50001, ptr %2, align 4, !tbaa !5
  call void @_Z8NTT_initi(i32 noundef 16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %41, %0
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = load i32, ptr @m, align 4, !tbaa !5
  %19 = icmp slt i32 %17, %18
  br i1 %19, label %21, label %20

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

21:                                               ; preds = %16
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [150001 x %struct.Edge], ptr @e, i64 0, i64 %23
  %25 = getelementptr inbounds %struct.Edge, ptr %24, i32 0, i32 2
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = icmp sle i32 1, %26
  br i1 %27, label %28, label %35

28:                                               ; preds = %21
  %29 = load i32, ptr %3, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [150001 x %struct.Edge], ptr @e, i64 0, i64 %30
  %32 = getelementptr inbounds %struct.Edge, ptr %31, i32 0, i32 2
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = icmp slt i32 %33, 50001
  br label %35

35:                                               ; preds = %28, %21
  %36 = phi i1 [ false, %21 ], [ %34, %28 ]
  br i1 %36, label %37, label %38

37:                                               ; preds = %35
  br label %40

38:                                               ; preds = %35
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 245, ptr noundef @__PRETTY_FUNCTION__._Z6solve4v) #8
  unreachable

39:                                               ; No predecessors!
  br label %40

40:                                               ; preds = %39, %37
  br label %41

41:                                               ; preds = %40
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %3, align 4, !tbaa !5
  br label %16, !llvm.loop !11

44:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %67, %44
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = load i32, ptr @q, align 4, !tbaa !5
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %50, label %49

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

50:                                               ; preds = %45
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [100001 x %struct.Edge], ptr @que, i64 0, i64 %52
  %54 = getelementptr inbounds %struct.Edge, ptr %53, i32 0, i32 2
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = icmp slt i32 %55, 50001
  br i1 %56, label %57, label %58

57:                                               ; preds = %50
  br label %60

58:                                               ; preds = %50
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 248, ptr noundef @__PRETTY_FUNCTION__._Z6solve4v) #8
  unreachable

59:                                               ; No predecessors!
  br label %60

60:                                               ; preds = %59, %57
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [100001 x %struct.Edge], ptr @que, i64 0, i64 %62
  %64 = getelementptr inbounds %struct.Edge, ptr %63, i32 0, i32 2
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %64)
  %66 = load i32, ptr %65, align 4, !tbaa !5
  store i32 %66, ptr %4, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %60
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %5, align 4, !tbaa !5
  br label %45, !llvm.loop !13

70:                                               ; preds = %49
  %71 = load ptr, ptr @stderr, align 8, !tbaa !14
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.12, i32 noundef %72) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %119, %70
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = load i32, ptr @n, align 4, !tbaa !5
  %77 = icmp slt i32 %75, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %122

79:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %108, %79
  %81 = load i32, ptr %8, align 4, !tbaa !5
  %82 = load i32, ptr @n, align 4, !tbaa !5
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %85, label %84

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

85:                                               ; preds = %80
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4ways, i64 0, i64 %87
  %89 = load i32, ptr %8, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [5 x [50001 x i32]], ptr %88, i64 0, i64 %90
  %92 = getelementptr inbounds [50001 x i32], ptr %91, i64 0, i64 0
  %93 = load i32, ptr %4, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  %96 = mul i64 %95, 4
  call void @llvm.memset.p0.i64(ptr align 4 %92, i8 0, i64 %96, i1 false)
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4sols, i64 0, i64 %98
  %100 = load i32, ptr %8, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [5 x [50001 x i32]], ptr %99, i64 0, i64 %101
  %103 = getelementptr inbounds [50001 x i32], ptr %102, i64 0, i64 0
  %104 = load i32, ptr %4, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  %106 = sext i32 %105 to i64
  %107 = mul i64 %106, 4
  call void @llvm.memset.p0.i64(ptr align 4 %103, i8 0, i64 %107, i1 false)
  br label %108

108:                                              ; preds = %85
  %109 = load i32, ptr %8, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %8, align 4, !tbaa !5
  br label %80, !llvm.loop !16

111:                                              ; preds = %84
  %112 = load i32, ptr %6, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4sols, i64 0, i64 %113
  %115 = load i32, ptr %6, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [5 x [50001 x i32]], ptr %114, i64 0, i64 %116
  %118 = getelementptr inbounds [50001 x i32], ptr %117, i64 0, i64 0
  store i32 1, ptr %118, align 4, !tbaa !5
  br label %119

119:                                              ; preds = %111
  %120 = load i32, ptr %6, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %6, align 4, !tbaa !5
  br label %74, !llvm.loop !17

122:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %154, %122
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = load i32, ptr @m, align 4, !tbaa !5
  %126 = icmp slt i32 %124, %125
  br i1 %126, label %128, label %127

127:                                              ; preds = %123
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %157

128:                                              ; preds = %123
  %129 = load i32, ptr %9, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [150001 x %struct.Edge], ptr @e, i64 0, i64 %130
  %132 = getelementptr inbounds %struct.Edge, ptr %131, i32 0, i32 0
  %133 = load i32, ptr %132, align 4, !tbaa !18
  %134 = sub nsw i32 %133, 1
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4ways, i64 0, i64 %135
  %137 = load i32, ptr %9, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [150001 x %struct.Edge], ptr @e, i64 0, i64 %138
  %140 = getelementptr inbounds %struct.Edge, ptr %139, i32 0, i32 1
  %141 = load i32, ptr %140, align 4, !tbaa !19
  %142 = sub nsw i32 %141, 1
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [5 x [50001 x i32]], ptr %136, i64 0, i64 %143
  %145 = load i32, ptr %9, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [150001 x %struct.Edge], ptr @e, i64 0, i64 %146
  %148 = getelementptr inbounds %struct.Edge, ptr %147, i32 0, i32 2
  %149 = load i32, ptr %148, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [50001 x i32], ptr %144, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %151, align 4, !tbaa !5
  br label %154

154:                                              ; preds = %128
  %155 = load i32, ptr %9, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %9, align 4, !tbaa !5
  br label %123, !llvm.loop !20

157:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 65537, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %158 = getelementptr inbounds %class.anon.2, ptr %12, i32 0, i32 0
  store ptr %11, ptr %158, align 8, !tbaa !14
  call void @"_ZNSt8functionIFviiEEC2IZ6solve4vE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  %159 = load i32, ptr %4, align 4, !tbaa !5
  invoke void @_ZNKSt8functionIFviiEEclEii(ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef 0, i32 noundef %159)
          to label %160 unwind label %166

160:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %198, %160
  %162 = load i32, ptr %15, align 4, !tbaa !5
  %163 = load i32, ptr @q, align 4, !tbaa !5
  %164 = icmp slt i32 %162, %163
  br i1 %164, label %170, label %165

165:                                              ; preds = %161
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %201

166:                                              ; preds = %157
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %13, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %14, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
  br label %202

170:                                              ; preds = %161
  %171 = load i32, ptr %15, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [100001 x %struct.Edge], ptr @que, i64 0, i64 %172
  %174 = getelementptr inbounds %struct.Edge, ptr %173, i32 0, i32 0
  %175 = load i32, ptr %174, align 4, !tbaa !18
  %176 = sub nsw i32 %175, 1
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4sols, i64 0, i64 %177
  %179 = load i32, ptr %15, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [100001 x %struct.Edge], ptr @que, i64 0, i64 %180
  %182 = getelementptr inbounds %struct.Edge, ptr %181, i32 0, i32 1
  %183 = load i32, ptr %182, align 4, !tbaa !19
  %184 = sub nsw i32 %183, 1
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [5 x [50001 x i32]], ptr %178, i64 0, i64 %185
  %187 = load i32, ptr %15, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [100001 x %struct.Edge], ptr @que, i64 0, i64 %188
  %190 = getelementptr inbounds %struct.Edge, ptr %189, i32 0, i32 2
  %191 = load i32, ptr %190, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [50001 x i32], ptr %186, i64 0, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = load i32, ptr %15, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [100001 x i32], ptr @ans, i64 0, i64 %196
  store i32 %194, ptr %197, align 4, !tbaa !5
  br label %198

198:                                              ; preds = %170
  %199 = load i32, ptr %15, align 4, !tbaa !5
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %15, align 4, !tbaa !5
  br label %161, !llvm.loop !21

201:                                              ; preds = %165
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
  ret void

202:                                              ; preds = %166
  %203 = load ptr, ptr %13, align 8
  %204 = load i32, ptr %14, align 4
  %205 = insertvalue { ptr, i32 } poison, ptr %203, 0
  %206 = insertvalue { ptr, i32 } %205, i32 %204, 1
  resume { ptr, i32 } %206
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFviiEEC2IZ6solve4vE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTS4Edge", !6, i64 0, !6, i64 4, !6, i64 8}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = !{!10, !6, i64 0}
!19 = !{!10, !6, i64 4}
!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"

%struct.Edge = type { i32, i32, i32 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.2 = type { ptr }

@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@q = external dso_local local_unnamed_addr global i32, align 4
@ans = external dso_local local_unnamed_addr global [100001 x i32], align 16
@e = external dso_local local_unnamed_addr global [150001 x %struct.Edge], align 16
@que = external dso_local global [100001 x %struct.Edge], align 16
@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__._Z6solve4v = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZZ6solve4vE4ways = external hidden local_unnamed_addr global [5 x [5 x [50001 x i32]]], align 16
@_ZZ6solve4vE4sols = external hidden local_unnamed_addr global [5 x [5 x [50001 x i32]]], align 16

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8NTT_initi(i32 noundef) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6solve4v() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::function", align 8
  %3 = alloca %class.anon.2, align 8
  tail call void @_Z8NTT_initi(i32 noundef 16)
  %4 = load i32, ptr @m, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %0
  %wide.trip.count = zext nneg i32 %4 to i64
  br label %.lr.ph

6:                                                ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %6, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  store i32 0, ptr %1, align 4, !tbaa !5
  %7 = load i32, ptr @q, align 4, !tbaa !5
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph41, label %._crit_edge42

.lr.ph:                                           ; preds = %.lr.ph.preheader, %6
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %6 ]
  %9 = getelementptr inbounds [150001 x %struct.Edge], ptr @e, i64 0, i64 %indvars.iv, i32 2
  %10 = load i32, ptr %9, align 4, !tbaa !11
  %11 = add i32 %10, -1
  %or.cond = icmp ult i32 %11, 50000
  br i1 %or.cond, label %6, label %.critedge

.critedge:                                        ; preds = %.lr.ph
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 245, ptr noundef nonnull @__PRETTY_FUNCTION__._Z6solve4v) #8
  unreachable

._crit_edge42:                                    ; preds = %37, %._crit_edge
  %12 = phi i32 [ 0, %._crit_edge ], [ %39, %37 ]
  %13 = load ptr, ptr @stderr, align 8, !tbaa !13
  %14 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.12, i32 noundef %12) #9
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.preheader37.lr.ph, label %.preheader36

.preheader37.lr.ph:                               ; preds = %._crit_edge42
  %17 = load i32, ptr %1, align 4
  %18 = add nsw i32 %17, 1
  %19 = sext i32 %18 to i64
  %20 = shl nsw i64 %19, 2
  %wide.trip.count65 = zext nneg i32 %15 to i64
  %xtraiter = and i64 %wide.trip.count65, 3
  %21 = icmp ult i32 %15, 4
  %unroll_iter = and i64 %wide.trip.count65, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader37.us

.preheader37.us:                                  ; preds = %._crit_edge45.us, %.preheader37.lr.ph
  %indvars.iv62 = phi i64 [ %indvars.iv.next63, %._crit_edge45.us ], [ 0, %.preheader37.lr.ph ]
  br i1 %21, label %._crit_edge45.us.unr-lcssa, label %.preheader37.us.new

.preheader37.us.new:                              ; preds = %.preheader37.us, %.preheader37.us.new
  %indvars.iv57 = phi i64 [ %indvars.iv.next58.3, %.preheader37.us.new ], [ 0, %.preheader37.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader37.us.new ], [ 0, %.preheader37.us ]
  %22 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4ways, i64 0, i64 %indvars.iv62, i64 %indvars.iv57
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %22, i8 0, i64 %20, i1 false)
  %23 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4sols, i64 0, i64 %indvars.iv62, i64 %indvars.iv57
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %23, i8 0, i64 %20, i1 false)
  %indvars.iv.next58 = or disjoint i64 %indvars.iv57, 1
  %24 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4ways, i64 0, i64 %indvars.iv62, i64 %indvars.iv.next58
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %24, i8 0, i64 %20, i1 false)
  %25 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4sols, i64 0, i64 %indvars.iv62, i64 %indvars.iv.next58
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %25, i8 0, i64 %20, i1 false)
  %indvars.iv.next58.1 = or disjoint i64 %indvars.iv57, 2
  %26 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4ways, i64 0, i64 %indvars.iv62, i64 %indvars.iv.next58.1
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %26, i8 0, i64 %20, i1 false)
  %27 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4sols, i64 0, i64 %indvars.iv62, i64 %indvars.iv.next58.1
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %27, i8 0, i64 %20, i1 false)
  %indvars.iv.next58.2 = or disjoint i64 %indvars.iv57, 3
  %28 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4ways, i64 0, i64 %indvars.iv62, i64 %indvars.iv.next58.2
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %28, i8 0, i64 %20, i1 false)
  %29 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4sols, i64 0, i64 %indvars.iv62, i64 %indvars.iv.next58.2
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %29, i8 0, i64 %20, i1 false)
  %indvars.iv.next58.3 = add nuw nsw i64 %indvars.iv57, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge45.us.unr-lcssa, label %.preheader37.us.new, !llvm.loop !15

._crit_edge45.us.unr-lcssa:                       ; preds = %.preheader37.us.new, %.preheader37.us
  %indvars.iv57.unr = phi i64 [ 0, %.preheader37.us ], [ %indvars.iv.next58.3, %.preheader37.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge45.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge45.us.unr-lcssa, %.epil.preheader
  %indvars.iv57.epil = phi i64 [ %indvars.iv.next58.epil, %.epil.preheader ], [ %indvars.iv57.unr, %._crit_edge45.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge45.us.unr-lcssa ]
  %30 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4ways, i64 0, i64 %indvars.iv62, i64 %indvars.iv57.epil
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %30, i8 0, i64 %20, i1 false)
  %31 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4sols, i64 0, i64 %indvars.iv62, i64 %indvars.iv57.epil
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %31, i8 0, i64 %20, i1 false)
  %indvars.iv.next58.epil = add nuw nsw i64 %indvars.iv57.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge45.us, label %.epil.preheader, !llvm.loop !16

._crit_edge45.us:                                 ; preds = %.epil.preheader, %._crit_edge45.us.unr-lcssa
  %32 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4sols, i64 0, i64 %indvars.iv62, i64 %indvars.iv62
  store i32 1, ptr %32, align 4, !tbaa !5
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  %exitcond66.not = icmp eq i64 %indvars.iv.next63, %wide.trip.count65
  br i1 %exitcond66.not, label %.preheader36, label %.preheader37.us, !llvm.loop !18

.lr.ph41:                                         ; preds = %._crit_edge, %37
  %indvars.iv54 = phi i64 [ %indvars.iv.next55, %37 ], [ 0, %._crit_edge ]
  %33 = getelementptr inbounds [100001 x %struct.Edge], ptr @que, i64 0, i64 %indvars.iv54, i32 2
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = icmp slt i32 %34, 50001
  br i1 %35, label %37, label %36

36:                                               ; preds = %.lr.ph41
  call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.1, i32 noundef 248, ptr noundef nonnull @__PRETTY_FUNCTION__._Z6solve4v) #8
  unreachable

37:                                               ; preds = %.lr.ph41
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %33)
  %39 = load i32, ptr %38, align 4, !tbaa !5
  store i32 %39, ptr %1, align 4, !tbaa !5
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %40 = load i32, ptr @q, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = icmp slt i64 %indvars.iv.next55, %41
  br i1 %42, label %.lr.ph41, label %._crit_edge42, !llvm.loop !19

.preheader36:                                     ; preds = %._crit_edge45.us, %._crit_edge42
  %43 = load i32, ptr @m, align 4, !tbaa !5
  %44 = icmp sgt i32 %43, 0
  br i1 %44, label %.lr.ph48.preheader, label %._crit_edge49

.lr.ph48.preheader:                               ; preds = %.preheader36
  %wide.trip.count70 = zext nneg i32 %43 to i64
  br label %.lr.ph48

._crit_edge49:                                    ; preds = %.lr.ph48, %.preheader36
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  store ptr %2, ptr %3, align 8, !tbaa !13
  call void @"_ZNSt8functionIFviiEEC2IZ6solve4vE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %45 = load i32, ptr %1, align 4, !tbaa !5
  invoke void @_ZNKSt8functionIFviiEEclEii(ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef 0, i32 noundef %45)
          to label %.preheader unwind label %77

.preheader:                                       ; preds = %._crit_edge49
  %46 = load i32, ptr @q, align 4, !tbaa !5
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %.lr.ph51.preheader, label %._crit_edge52

.lr.ph51.preheader:                               ; preds = %.preheader
  %wide.trip.count75 = zext nneg i32 %46 to i64
  %xtraiter77 = and i64 %wide.trip.count75, 1
  %48 = icmp eq i32 %46, 1
  br i1 %48, label %._crit_edge52.loopexit.unr-lcssa, label %.lr.ph51.preheader.new

.lr.ph51.preheader.new:                           ; preds = %.lr.ph51.preheader
  %unroll_iter80 = and i64 %wide.trip.count75, 2147483646
  br label %.lr.ph51

.lr.ph48:                                         ; preds = %.lr.ph48.preheader, %.lr.ph48
  %indvars.iv67 = phi i64 [ 0, %.lr.ph48.preheader ], [ %indvars.iv.next68, %.lr.ph48 ]
  %49 = getelementptr inbounds [150001 x %struct.Edge], ptr @e, i64 0, i64 %indvars.iv67
  %50 = load i32, ptr %49, align 4, !tbaa !20
  %51 = add nsw i32 %50, -1
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds i8, ptr %49, i64 4
  %54 = load i32, ptr %53, align 4, !tbaa !21
  %55 = add nsw i32 %54, -1
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds i8, ptr %49, i64 8
  %58 = load i32, ptr %57, align 4, !tbaa !11
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4ways, i64 0, i64 %52, i64 %56, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %60, align 4, !tbaa !5
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %exitcond71.not = icmp eq i64 %indvars.iv.next68, %wide.trip.count70
  br i1 %exitcond71.not, label %._crit_edge49, label %.lr.ph48, !llvm.loop !22

._crit_edge52.loopexit.unr-lcssa:                 ; preds = %.lr.ph51, %.lr.ph51.preheader
  %indvars.iv72.unr = phi i64 [ 0, %.lr.ph51.preheader ], [ %indvars.iv.next73.1, %.lr.ph51 ]
  %lcmp.mod79.not = icmp eq i64 %xtraiter77, 0
  br i1 %lcmp.mod79.not, label %._crit_edge52, label %.lr.ph51.epil

.lr.ph51.epil:                                    ; preds = %._crit_edge52.loopexit.unr-lcssa
  %63 = getelementptr inbounds [100001 x %struct.Edge], ptr @que, i64 0, i64 %indvars.iv72.unr
  %64 = load i32, ptr %63, align 4, !tbaa !20
  %65 = add nsw i32 %64, -1
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds i8, ptr %63, i64 4
  %68 = load i32, ptr %67, align 4, !tbaa !21
  %69 = add nsw i32 %68, -1
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds i8, ptr %63, i64 8
  %72 = load i32, ptr %71, align 4, !tbaa !11
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4sols, i64 0, i64 %66, i64 %70, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = getelementptr inbounds [100001 x i32], ptr @ans, i64 0, i64 %indvars.iv72.unr
  store i32 %75, ptr %76, align 4, !tbaa !5
  br label %._crit_edge52

._crit_edge52:                                    ; preds = %.lr.ph51.epil, %._crit_edge52.loopexit.unr-lcssa, %.preheader
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret void

77:                                               ; preds = %._crit_edge49
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %78

.lr.ph51:                                         ; preds = %.lr.ph51, %.lr.ph51.preheader.new
  %indvars.iv72 = phi i64 [ 0, %.lr.ph51.preheader.new ], [ %indvars.iv.next73.1, %.lr.ph51 ]
  %niter81 = phi i64 [ 0, %.lr.ph51.preheader.new ], [ %niter81.next.1, %.lr.ph51 ]
  %79 = getelementptr inbounds [100001 x %struct.Edge], ptr @que, i64 0, i64 %indvars.iv72
  %80 = load i32, ptr %79, align 8, !tbaa !20
  %81 = add nsw i32 %80, -1
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds i8, ptr %79, i64 4
  %84 = load i32, ptr %83, align 4, !tbaa !21
  %85 = add nsw i32 %84, -1
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i8, ptr %79, i64 8
  %88 = load i32, ptr %87, align 8, !tbaa !11
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4sols, i64 0, i64 %82, i64 %86, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = getelementptr inbounds [100001 x i32], ptr @ans, i64 0, i64 %indvars.iv72
  store i32 %91, ptr %92, align 8, !tbaa !5
  %indvars.iv.next73 = or disjoint i64 %indvars.iv72, 1
  %93 = getelementptr inbounds [100001 x %struct.Edge], ptr @que, i64 0, i64 %indvars.iv.next73
  %94 = load i32, ptr %93, align 4, !tbaa !20
  %95 = add nsw i32 %94, -1
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds i8, ptr %93, i64 4
  %98 = load i32, ptr %97, align 8, !tbaa !21
  %99 = add nsw i32 %98, -1
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds i8, ptr %93, i64 8
  %102 = load i32, ptr %101, align 4, !tbaa !11
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [5 x [5 x [50001 x i32]]], ptr @_ZZ6solve4vE4sols, i64 0, i64 %96, i64 %100, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = getelementptr inbounds [100001 x i32], ptr @ans, i64 0, i64 %indvars.iv.next73
  store i32 %105, ptr %106, align 4, !tbaa !5
  %indvars.iv.next73.1 = add nuw nsw i64 %indvars.iv72, 2
  %niter81.next.1 = add i64 %niter81, 2
  %niter81.ncmp.1 = icmp eq i64 %niter81.next.1, %unroll_iter80
  br i1 %niter81.ncmp.1, label %._crit_edge52.loopexit.unr-lcssa, label %.lr.ph51, !llvm.loop !23
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFviiEEC2IZ6solve4vE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFviiEEclEii(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTS4Edge", !6, i64 0, !6, i64 4, !6, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = !{!12, !6, i64 0}
!21 = !{!12, !6, i64 4}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}


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