; LLVM IR from tangjz/acm-icpc :: codeforces/complete/1466F.ll (Z5solvev)

; 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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 = type { ptr }
%class.anon.0 = type { ptr }

@__dso_handle = external hidden global i8
@_ZZ5solvevE1e = external hidden global [500001 x %"class.std::vector"], align 16
@_ZGVZ5solvevE1e = external hidden global i64, align 8
@_ZZ5solvevE3dsu = external hidden global [500001 x i32], align 16
@_ZZ5solvevE3idx = external hidden global [500001 x i32], align 16
@_ZZ5solvevE3vis = external hidden global [500001 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #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 %"class.std::vector", align 8
  %6 = alloca %"class.std::function", align 8
  %7 = alloca %class.anon, align 8
  %8 = alloca %class.anon.0, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #0
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #0
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #0
  store i32 0, ptr %3, align 4, !tbaa !5
  %19 = load atomic i8, ptr @_ZGVZ5solvevE1e acquire, align 8
  %20 = icmp eq i8 %19, 0
  br i1 %20, label %21, label %31, !prof !9

21:                                               ; preds = %0
  %22 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ5solvevE1e) #0
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %31

24:                                               ; preds = %21
  br label %25

25:                                               ; preds = %25, %24
  %26 = phi ptr [ @_ZZ5solvevE1e, %24 ], [ %27, %25 ]
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #0
  %27 = getelementptr inbounds %"class.std::vector", ptr %26, i64 1
  %28 = icmp eq ptr %27, getelementptr inbounds (%"class.std::vector", ptr @_ZZ5solvevE1e, i64 500001)
  br i1 %28, label %29, label %25

29:                                               ; preds = %25
  %30 = call i32 @__cxa_atexit(ptr @__cxx_global_array_dtor, ptr null, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZ5solvevE1e) #0
  br label %31

31:                                               ; preds = %29, %21, %0
  %32 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #0
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %48, %31
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = load i32, ptr %1, align 4, !tbaa !5
  %36 = icmp sle i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #0
  br label %51

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #0
  call void @llvm.memset.p0.i64(ptr align 8 %5, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #0
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @_ZZ5solvevE1e, i64 0, i64 %40
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %41) #0
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #0
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #0
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [500001 x i32], ptr @_ZZ5solvevE3dsu, i64 0, i64 %43
  store i32 -1, ptr %44, align 4, !tbaa !5
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [500001 x i8], ptr @_ZZ5solvevE3vis, i64 0, i64 %46
  store i8 0, ptr %47, align 1, !tbaa !10
  br label %48

48:                                               ; preds = %38
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %4, align 4, !tbaa !5
  br label %33, !llvm.loop !12

51:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #0
  %52 = getelementptr inbounds %class.anon, ptr %7, i32 0, i32 0
  store ptr %6, ptr %52, align 8, !tbaa !14
  call void @"_ZNSt8functionIFiiEEC2IZ5solvevE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #0
  %53 = getelementptr inbounds %class.anon.0, ptr %8, i32 0, i32 0
  store ptr %6, ptr %53, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #0
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %106, %51
  %55 = load i32, ptr %9, align 4, !tbaa !5
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = icmp sle i32 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #0
  br label %110

59:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #0
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #0
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #0
  %60 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %10, ptr noundef %11)
          to label %61 unwind label %82

61:                                               ; preds = %59
  %62 = load i32, ptr %10, align 4, !tbaa !5
  %63 = icmp eq i32 %62, 1
  br i1 %63, label %64, label %91

64:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #0
  %65 = load i32, ptr %11, align 4, !tbaa !5
  %66 = invoke noundef i32 @_ZNKSt8functionIFiiEEclEi(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %65)
          to label %67 unwind label %86

67:                                               ; preds = %64
  store i32 %66, ptr %15, align 4, !tbaa !5
  %68 = load i32, ptr %15, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [500001 x i8], ptr @_ZZ5solvevE3vis, i64 0, i64 %69
  %71 = load i8, ptr %70, align 1, !tbaa !10, !range !16, !noundef !17
  %72 = trunc i8 %71 to i1
  br i1 %72, label %90, label %73

73:                                               ; preds = %67
  %74 = load i32, ptr %9, align 4, !tbaa !5
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %3, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [500001 x i32], ptr @_ZZ5solvevE3idx, i64 0, i64 %77
  store i32 %74, ptr %78, align 4, !tbaa !5
  %79 = load i32, ptr %15, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [500001 x i8], ptr @_ZZ5solvevE3vis, i64 0, i64 %80
  store i8 1, ptr %81, align 1, !tbaa !10
  br label %90

82:                                               ; preds = %93, %91, %59
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %13, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %14, align 4
  br label %109

86:                                               ; preds = %64
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %13, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #0
  br label %109

90:                                               ; preds = %73, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #0
  br label %105

91:                                               ; preds = %61
  %92 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %12)
          to label %93 unwind label %82

93:                                               ; preds = %91
  %94 = load i32, ptr %11, align 4, !tbaa !5
  %95 = load i32, ptr %12, align 4, !tbaa !5
  %96 = invoke noundef zeroext i1 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef %94, i32 noundef %95)
          to label %97 unwind label %82

97:                                               ; preds = %93
  br i1 %96, label %98, label %104

98:                                               ; preds = %97
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = load i32, ptr %3, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %3, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [500001 x i32], ptr @_ZZ5solvevE3idx, i64 0, i64 %102
  store i32 %99, ptr %103, align 4, !tbaa !5
  br label %104

104:                                              ; preds = %98, %97
  br label %105

105:                                              ; preds = %104, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #0
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %9, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %9, align 4, !tbaa !5
  br label %54, !llvm.loop !18

109:                                              ; preds = %86, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #0
  br label %166

110:                                              ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #0
  store i32 1, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #0
  store i32 1, ptr %17, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %126, %110
  %112 = load i32, ptr %17, align 4, !tbaa !5
  %113 = load i32, ptr %3, align 4, !tbaa !5
  %114 = icmp sle i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #0
  br label %129

116:                                              ; preds = %111
  %117 = load i32, ptr %16, align 4, !tbaa !5
  %118 = shl i32 %117, 1
  store i32 %118, ptr %16, align 4, !tbaa !5
  %119 = icmp sge i32 %118, 1000000007
  br i1 %119, label %120, label %124

120:                                              ; preds = %116
  %121 = load i32, ptr %16, align 4, !tbaa !5
  %122 = sub nsw i32 %121, 1000000007
  store i32 %122, ptr %16, align 4, !tbaa !5
  %123 = icmp ne i32 %122, 0
  br label %124

124:                                              ; preds = %120, %116
  %125 = phi i1 [ false, %116 ], [ %123, %120 ]
  br label %126

126:                                              ; preds = %124
  %127 = load i32, ptr %17, align 4, !tbaa !5
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %17, align 4, !tbaa !5
  br label %111, !llvm.loop !19

129:                                              ; preds = %115
  %130 = load i32, ptr %16, align 4, !tbaa !5
  %131 = load i32, ptr %3, align 4, !tbaa !5
  %132 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %130, i32 noundef %131)
          to label %133 unwind label %139

133:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #0
  store i32 1, ptr %18, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %157, %133
  %135 = load i32, ptr %18, align 4, !tbaa !5
  %136 = load i32, ptr %3, align 4, !tbaa !5
  %137 = icmp sle i32 %135, %136
  br i1 %137, label %143, label %138

138:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #0
  br label %164

139:                                              ; preds = %129
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %13, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %14, align 4
  br label %165

143:                                              ; preds = %134
  %144 = load i32, ptr %18, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [500001 x i32], ptr @_ZZ5solvevE3idx, i64 0, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = load i32, ptr %18, align 4, !tbaa !5
  %149 = load i32, ptr %3, align 4, !tbaa !5
  %150 = icmp eq i32 %148, %149
  %151 = zext i1 %150 to i64
  %152 = getelementptr inbounds [3 x i8], ptr @.str.5, i64 0, i64 %151
  %153 = load i8, ptr %152, align 1, !tbaa !20
  %154 = sext i8 %153 to i32
  %155 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %147, i32 noundef %154)
          to label %156 unwind label %160

156:                                              ; preds = %143
  br label %157

157:                                              ; preds = %156
  %158 = load i32, ptr %18, align 4, !tbaa !5
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %18, align 4, !tbaa !5
  br label %134, !llvm.loop !21

160:                                              ; preds = %143
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %13, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #0
  br label %165

164:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #0
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #0
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #0
  ret void

165:                                              ; preds = %160, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #0
  br label %166

166:                                              ; preds = %165, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #0
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #0
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #0
  br label %167

167:                                              ; preds = %166
  %168 = load ptr, ptr %13, align 8
  %169 = load i32, ptr %14, align 4
  %170 = insertvalue { ptr, i32 } poison, ptr %168, 0
  %171 = insertvalue { ptr, i32 } %170, i32 %169, 1
  resume { ptr, i32 } %171
}

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

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #0

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

; Function Attrs: uwtable
declare hidden void @__cxx_global_array_dtor(ptr noundef) #4 section ".text.startup"

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

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #0

declare i32 @__isoc99_scanf(ptr noundef, ...) #5

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef) #7 align 2

declare i32 @printf(ptr noundef, ...) #5

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

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

!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 = !{!"branch_weights", i32 1, i32 1048575}
!10 = !{!11, !11, i64 0}
!11 = !{!"bool", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !13}


; 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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 = type { ptr }
%class.anon.0 = type { ptr }

@__dso_handle = external hidden global i8
@_ZZ5solvevE1e = external hidden global [500001 x %"class.std::vector"], align 16
@_ZGVZ5solvevE1e = external hidden global i64, align 8
@_ZZ5solvevE3dsu = external hidden local_unnamed_addr global [500001 x i32], align 16
@_ZZ5solvevE3idx = external hidden local_unnamed_addr global [500001 x i32], align 16
@_ZZ5solvevE3vis = external hidden local_unnamed_addr global [500001 x i8], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::function", align 8
  %5 = alloca %class.anon, align 8
  %6 = alloca %class.anon.0, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %10 = load atomic i8, ptr @_ZGVZ5solvevE1e acquire, align 8
  %11 = icmp eq i8 %10, 0
  br i1 %11, label %12, label %17, !prof !5

12:                                               ; preds = %0
  %13 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ5solvevE1e) #8
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %17, label %.preheader43

.preheader43:                                     ; preds = %12, %.preheader43
  %.idx = phi i64 [ %.add, %.preheader43 ], [ 0, %12 ]
  %.ptr = getelementptr inbounds i8, ptr @_ZZ5solvevE1e, i64 %.idx
  tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr) #8
  %.add = add nuw nsw i64 %.idx, 24
  %14 = icmp eq i64 %.add, 12000024
  br i1 %14, label %15, label %.preheader43

15:                                               ; preds = %.preheader43
  %16 = tail call i32 @__cxa_atexit(ptr nonnull @__cxx_global_array_dtor, ptr null, ptr nonnull @__dso_handle) #8
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZ5solvevE1e) #8
  br label %17

17:                                               ; preds = %15, %12, %0
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2, ptr noundef nonnull %1)
  %19 = load i32, ptr %1, align 4, !tbaa !6
  %.not3846 = icmp slt i32 %19, 1
  br i1 %.not3846, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %17
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  store ptr %4, ptr %5, align 8, !tbaa !10
  call void @"_ZNSt8functionIFiiEEC2IZ5solvevE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  store ptr %4, ptr %6, align 8, !tbaa !10
  %20 = load i32, ptr %2, align 4, !tbaa !6
  %.not3948 = icmp slt i32 %20, 1
  br i1 %.not3948, label %._crit_edge57.thread, label %.lr.ph52

.lr.ph:                                           ; preds = %17, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %17 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %21 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @_ZZ5solvevE1e, i64 0, i64 %indvars.iv
  call void @_ZNSt6vectorIiSaIiEE4swapERS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  %22 = getelementptr inbounds [500001 x i32], ptr @_ZZ5solvevE3dsu, i64 0, i64 %indvars.iv
  store i32 -1, ptr %22, align 4, !tbaa !6
  %23 = getelementptr inbounds [500001 x i8], ptr @_ZZ5solvevE3vis, i64 0, i64 %indvars.iv
  store i8 0, ptr %23, align 1, !tbaa !12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %24 = load i32, ptr %1, align 4, !tbaa !6
  %25 = sext i32 %24 to i64
  %.not38.not = icmp slt i64 %indvars.iv, %25
  br i1 %.not38.not, label %.lr.ph, label %._crit_edge, !llvm.loop !14

.preheader:                                       ; preds = %56
  %.not4053 = icmp slt i32 %.2, 1
  br i1 %.not4053, label %._crit_edge57.thread, label %.lr.ph56.preheader

.lr.ph56.preheader:                               ; preds = %.preheader
  %xtraiter = and i32 %.2, 3
  %26 = icmp ult i32 %.2, 4
  br i1 %26, label %._crit_edge57.unr-lcssa, label %.lr.ph56.preheader.new

.lr.ph56.preheader.new:                           ; preds = %.lr.ph56.preheader
  %unroll_iter = and i32 %.2, 2147483644
  br label %.lr.ph56

.lr.ph52:                                         ; preds = %._crit_edge, %56
  %.02950 = phi i32 [ %.2, %56 ], [ 0, %._crit_edge ]
  %.03349 = phi i32 [ %57, %56 ], [ 1, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %28 = load i32, ptr %7, align 4, !tbaa !6
  %29 = icmp eq i32 %28, 1
  br i1 %29, label %30, label %46

30:                                               ; preds = %.lr.ph52
  %31 = load i32, ptr %8, align 4, !tbaa !6
  %32 = invoke noundef i32 @_ZNKSt8functionIFiiEEclEi(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %31)
          to label %33 unwind label %44

33:                                               ; preds = %30
  %34 = sext i32 %32 to i64
  %35 = getelementptr inbounds [500001 x i8], ptr @_ZZ5solvevE3vis, i64 0, i64 %34
  %36 = load i8, ptr %35, align 1, !tbaa !12, !range !16, !noundef !17
  %37 = trunc nuw i8 %36 to i1
  br i1 %37, label %56, label %38

38:                                               ; preds = %33
  %39 = add nsw i32 %.02950, 1
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [500001 x i32], ptr @_ZZ5solvevE3idx, i64 0, i64 %40
  store i32 %.03349, ptr %41, align 4, !tbaa !6
  store i8 1, ptr %35, align 1, !tbaa !12
  br label %56

42:                                               ; preds = %46
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %59

44:                                               ; preds = %30
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %59

46:                                               ; preds = %.lr.ph52
  %47 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %9)
  %48 = load i32, ptr %8, align 4, !tbaa !6
  %49 = load i32, ptr %9, align 4, !tbaa !6
  %50 = invoke noundef zeroext i1 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef %48, i32 noundef %49)
          to label %51 unwind label %42

51:                                               ; preds = %46
  br i1 %50, label %52, label %56

52:                                               ; preds = %51
  %53 = add nsw i32 %.02950, 1
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [500001 x i32], ptr @_ZZ5solvevE3idx, i64 0, i64 %54
  store i32 %.03349, ptr %55, align 4, !tbaa !6
  br label %56

56:                                               ; preds = %33, %38, %51, %52
  %.2 = phi i32 [ %53, %52 ], [ %.02950, %51 ], [ %.02950, %33 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  %57 = add nuw nsw i32 %.03349, 1
  %58 = load i32, ptr %2, align 4, !tbaa !6
  %.not39.not = icmp slt i32 %.03349, %58
  br i1 %.not39.not, label %.lr.ph52, label %.preheader, !llvm.loop !18

59:                                               ; preds = %44, %42
  %.pn = phi { ptr, i32 } [ %45, %44 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn

._crit_edge57.thread:                             ; preds = %.preheader, %._crit_edge
  %.029.lcssa71.ph = phi i32 [ %.2, %.preheader ], [ 0, %._crit_edge ]
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 1, i32 noundef %.029.lcssa71.ph)
  br label %._crit_edge63

._crit_edge57.unr-lcssa:                          ; preds = %.lr.ph56, %.lr.ph56.preheader
  %spec.select.lcssa.ph = phi i32 [ poison, %.lr.ph56.preheader ], [ %spec.select.3, %.lr.ph56 ]
  %.02854.unr = phi i32 [ 1, %.lr.ph56.preheader ], [ %spec.select.3, %.lr.ph56 ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge57, label %.lr.ph56.epil

.lr.ph56.epil:                                    ; preds = %._crit_edge57.unr-lcssa, %.lr.ph56.epil
  %.02854.epil = phi i32 [ %spec.select.epil, %.lr.ph56.epil ], [ %.02854.unr, %._crit_edge57.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.lr.ph56.epil ], [ 0, %._crit_edge57.unr-lcssa ]
  %61 = shl i32 %.02854.epil, 1
  %62 = icmp sgt i32 %61, 1000000006
  %63 = add nsw i32 %61, -1000000007
  %spec.select.epil = select i1 %62, i32 %63, i32 %61
  %epil.iter.next = add i32 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i32 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge57, label %.lr.ph56.epil, !llvm.loop !19

._crit_edge57:                                    ; preds = %.lr.ph56.epil, %._crit_edge57.unr-lcssa
  %spec.select.lcssa = phi i32 [ %spec.select.lcssa.ph, %._crit_edge57.unr-lcssa ], [ %spec.select.epil, %.lr.ph56.epil ]
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %spec.select.lcssa, i32 noundef %.2)
  br i1 %.not4053, label %._crit_edge63, label %.lr.ph62.preheader

.lr.ph62.preheader:                               ; preds = %._crit_edge57
  %65 = zext nneg i32 %.2 to i64
  %66 = add nuw i32 %.2, 1
  %wide.trip.count = zext i32 %66 to i64
  br label %.lr.ph62

.lr.ph56:                                         ; preds = %.lr.ph56, %.lr.ph56.preheader.new
  %.02854 = phi i32 [ 1, %.lr.ph56.preheader.new ], [ %spec.select.3, %.lr.ph56 ]
  %niter = phi i32 [ 0, %.lr.ph56.preheader.new ], [ %niter.next.3, %.lr.ph56 ]
  %67 = shl i32 %.02854, 1
  %68 = icmp sgt i32 %67, 1000000006
  %69 = shl i32 %.02854, 2
  %70 = add i32 %69, -2000000014
  %71 = select i1 %68, i32 %70, i32 %69
  %72 = icmp sgt i32 %71, 1000000006
  %73 = shl i32 %71, 1
  %74 = add i32 %73, -2000000014
  %75 = select i1 %72, i32 %74, i32 %73
  %76 = icmp sgt i32 %75, 1000000006
  %77 = shl i32 %75, 1
  %78 = add i32 %77, -2000000014
  %79 = select i1 %76, i32 %78, i32 %77
  %80 = icmp sgt i32 %79, 1000000006
  %81 = add nsw i32 %79, -1000000007
  %spec.select.3 = select i1 %80, i32 %81, i32 %79
  %niter.next.3 = add i32 %niter, 4
  %niter.ncmp.3 = icmp eq i32 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge57.unr-lcssa, label %.lr.ph56, !llvm.loop !21

._crit_edge63:                                    ; preds = %.lr.ph62, %._crit_edge57.thread, %._crit_edge57
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret void

.lr.ph62:                                         ; preds = %.lr.ph62.preheader, %.lr.ph62
  %indvars.iv65 = phi i64 [ 1, %.lr.ph62.preheader ], [ %indvars.iv.next66, %.lr.ph62 ]
  %82 = getelementptr inbounds [500001 x i32], ptr @_ZZ5solvevE3idx, i64 0, i64 %indvars.iv65
  %83 = load i32, ptr %82, align 4, !tbaa !6
  %84 = icmp eq i64 %indvars.iv65, %65
  %85 = zext i1 %84 to i64
  %86 = getelementptr inbounds [3 x i8], ptr @.str.5, i64 0, i64 %85
  %87 = load i8, ptr %86, align 1, !tbaa !22
  %88 = sext i8 %87 to i32
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %83, i32 noundef %88)
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %exitcond68.not = icmp eq i64 %indvars.iv.next66, %wide.trip.count
  br i1 %exitcond68.not, label %._crit_edge63, label %.lr.ph62, !llvm.loop !23
}

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

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #0

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

; Function Attrs: uwtable
declare hidden void @__cxx_global_array_dtor(ptr noundef) #4 section ".text.startup"

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

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #0

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef) local_unnamed_addr #7 align 2

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

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

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


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