; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/SHORT/COOK65/Problem E/E.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<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 }
%struct.node = type { i64, i64, i64 }

@n = external dso_local global i64, align 8
@q = external dso_local global i64, align 8
@A = external dso_local global i64, align 8
@B = external dso_local global i64, align 8
@P = external dso_local global i64, align 8
@g = external dso_local global [524288 x %"class.std::vector"], align 16
@c = external dso_local global [524288 x i64], align 16
@indx = external dso_local global i64, align 8
@chainHead = external dso_local global [524288 x i64], align 16
@sz = external dso_local global [524288 x i64], align 16
@chain_no = external dso_local global i64, align 8
@p = external dso_local global [19 x [524288 x i64]], align 16
@lvl = external dso_local global [524288 x i64], align 16
@vis = external dso_local global [524288 x i32], align 16
@tree = external dso_local global [1048576 x %struct.node], align 16
@.str.3 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._Z5solvev = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5buildxxx(i64 noundef, i64 noundef, i64 noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z23heavyLightDecompositionxx(i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z10preprocessv() #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6updatexxx(i64 noundef, i64 noundef, i64 noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z5queryxx(i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef @n, ptr noundef @q)
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef @A, ptr noundef @B)
  %19 = load i64, ptr @A, align 8, !tbaa !5
  %20 = icmp eq i64 %19, 0
  br i1 %20, label %21, label %26

21:                                               ; preds = %0
  %22 = load i64, ptr @B, align 8, !tbaa !5
  %23 = icmp sge i64 %22, 0
  %24 = zext i1 %23 to i64
  %25 = select i1 %23, i64 -1099511627776, i64 1099511627776
  store i64 %25, ptr @P, align 8, !tbaa !5
  br label %46

26:                                               ; preds = %0
  %27 = load i64, ptr @B, align 8, !tbaa !5
  %28 = icmp slt i64 %27, 0
  br i1 %28, label %29, label %37

29:                                               ; preds = %26
  %30 = load i64, ptr @B, align 8, !tbaa !5
  %31 = sitofp i64 %30 to double
  %32 = fmul double -1.000000e+00, %31
  %33 = load i64, ptr @A, align 8, !tbaa !5
  %34 = sitofp i64 %33 to double
  %35 = fdiv double %32, %34
  %36 = call double @llvm.ceil.f64(double %35)
  br label %43

37:                                               ; preds = %26
  %38 = load i64, ptr @B, align 8, !tbaa !5
  %39 = sub nsw i64 0, %38
  %40 = load i64, ptr @A, align 8, !tbaa !5
  %41 = sdiv i64 %39, %40
  %42 = sitofp i64 %41 to double
  br label %43

43:                                               ; preds = %37, %29
  %44 = phi double [ %36, %29 ], [ %42, %37 ]
  %45 = fptosi double %44 to i64
  store i64 %45, ptr @P, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %43, %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #9
  store i64 1, ptr %1, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %56, %46
  %48 = load i64, ptr %1, align 8, !tbaa !5
  %49 = load i64, ptr @n, align 8, !tbaa !5
  %50 = icmp sle i64 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #9
  br label %59

52:                                               ; preds = %47
  %53 = load i64, ptr %1, align 8, !tbaa !5
  %54 = getelementptr inbounds [524288 x i64], ptr @c, i64 0, i64 %53
  %55 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.5, ptr noundef %54)
  br label %56

56:                                               ; preds = %52
  %57 = load i64, ptr %1, align 8, !tbaa !5
  %58 = add nsw i64 %57, 1
  store i64 %58, ptr %1, align 8, !tbaa !5
  br label %47, !llvm.loop !9

59:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  store i32 0, ptr %2, align 4, !tbaa !11
  br label %60

60:                                               ; preds = %73, %59
  %61 = load i32, ptr %2, align 4, !tbaa !11
  %62 = sext i32 %61 to i64
  %63 = load i64, ptr @n, align 8, !tbaa !5
  %64 = mul nsw i64 3, %63
  %65 = icmp sle i64 %62, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %80

67:                                               ; preds = %60
  %68 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #10
  invoke void @_ZN4nodeC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %68)
          to label %69 unwind label %76

69:                                               ; preds = %67
  %70 = load i32, ptr %2, align 4, !tbaa !11
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [1048576 x %struct.node], ptr @tree, i64 0, i64 %71
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %72, ptr align 8 %68, i64 24, i1 false), !tbaa.struct !13
  br label %73

73:                                               ; preds = %69
  %74 = load i32, ptr %2, align 4, !tbaa !11
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %2, align 4, !tbaa !11
  br label %60, !llvm.loop !14

76:                                               ; preds = %67
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %3, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %68, i64 noundef 24) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %185

80:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !11
  br label %81

81:                                               ; preds = %116, %80
  %82 = load i32, ptr %5, align 4, !tbaa !11
  %83 = sext i32 %82 to i64
  %84 = load i64, ptr @n, align 8, !tbaa !5
  %85 = icmp sle i64 %83, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %81
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %119

87:                                               ; preds = %81
  %88 = load i32, ptr %5, align 4, !tbaa !11
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [524288 x %"class.std::vector"], ptr @g, i64 0, i64 %89
  call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #9
  %91 = load i32, ptr %5, align 4, !tbaa !11
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [524288 x i64], ptr @sz, i64 0, i64 %92
  store i64 0, ptr %93, align 8, !tbaa !5
  %94 = load i32, ptr %5, align 4, !tbaa !11
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [524288 x i64], ptr @lvl, i64 0, i64 %95
  store i64 0, ptr %96, align 8, !tbaa !5
  %97 = load i32, ptr %5, align 4, !tbaa !11
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [524288 x i32], ptr @vis, i64 0, i64 %98
  store i32 0, ptr %99, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %100

100:                                              ; preds = %112, %87
  %101 = load i32, ptr %7, align 4, !tbaa !11
  %102 = sext i32 %101 to i64
  %103 = icmp slt i64 %102, 19
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  br label %115

105:                                              ; preds = %100
  %106 = load i32, ptr %7, align 4, !tbaa !11
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 %107
  %109 = load i32, ptr %5, align 4, !tbaa !11
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [524288 x i64], ptr %108, i64 0, i64 %110
  store i64 0, ptr %111, align 8, !tbaa !5
  br label %112

112:                                              ; preds = %105
  %113 = load i32, ptr %7, align 4, !tbaa !11
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %7, align 4, !tbaa !11
  br label %100, !llvm.loop !15

115:                                              ; preds = %104
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %5, align 4, !tbaa !11
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %5, align 4, !tbaa !11
  br label %81, !llvm.loop !16

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

120:                                              ; preds = %131, %119
  %121 = load i64, ptr %8, align 8, !tbaa !5
  %122 = load i64, ptr @n, align 8, !tbaa !5
  %123 = icmp slt i64 %121, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %120
  store i32 14, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %134

125:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %126 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %9, ptr noundef %10)
  %127 = load i64, ptr %9, align 8, !tbaa !5
  %128 = getelementptr inbounds [524288 x %"class.std::vector"], ptr @g, i64 0, i64 %127
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %128, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %129 = load i64, ptr %10, align 8, !tbaa !5
  %130 = getelementptr inbounds [524288 x %"class.std::vector"], ptr @g, i64 0, i64 %129
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %130, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %131

131:                                              ; preds = %125
  %132 = load i64, ptr %8, align 8, !tbaa !5
  %133 = add nsw i64 %132, 1
  store i64 %133, ptr %8, align 8, !tbaa !5
  br label %120, !llvm.loop !17

134:                                              ; preds = %124
  store i64 0, ptr getelementptr inbounds ([524288 x i64], ptr @lvl, i64 0, i64 1), align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %135

135:                                              ; preds = %145, %134
  %136 = load i32, ptr %11, align 4, !tbaa !11
  %137 = sext i32 %136 to i64
  %138 = icmp slt i64 %137, 19
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  store i32 17, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %148

140:                                              ; preds = %135
  %141 = load i32, ptr %11, align 4, !tbaa !11
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 %142
  %144 = getelementptr inbounds [524288 x i64], ptr %143, i64 0, i64 1
  store i64 1, ptr %144, align 8, !tbaa !5
  br label %145

145:                                              ; preds = %140
  %146 = load i32, ptr %11, align 4, !tbaa !11
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %11, align 4, !tbaa !11
  br label %135, !llvm.loop !18

148:                                              ; preds = %139
  call void @_Z3dfsxx(i64 noundef 1, i64 noundef -1)
  store i64 1, ptr @chain_no, align 8, !tbaa !5
  store i64 -1, ptr @indx, align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds ([524288 x i64], ptr @chainHead, i64 0, i64 1), align 8, !tbaa !5
  call void @_Z23heavyLightDecompositionxx(i64 noundef 1, i64 noundef -1)
  call void @_Z10preprocessv()
  %149 = load i64, ptr @n, align 8, !tbaa !5
  call void @_Z5buildxxx(i64 noundef 1, i64 noundef 0, i64 noundef %149)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  br label %150

150:                                              ; preds = %183, %148
  %151 = load i64, ptr @q, align 8, !tbaa !5
  %152 = add nsw i64 %151, -1
  store i64 %152, ptr @q, align 8, !tbaa !5
  %153 = icmp ne i64 %151, 0
  br i1 %153, label %154, label %184

154:                                              ; preds = %150
  %155 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.6, ptr noundef %12, ptr noundef %13, ptr noundef %14)
  %156 = load i64, ptr %12, align 8, !tbaa !5
  %157 = icmp eq i64 %156, 1
  br i1 %157, label %158, label %163

158:                                              ; preds = %154
  %159 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.5, ptr noundef %15)
  %160 = load i64, ptr %13, align 8, !tbaa !5
  %161 = load i64, ptr %14, align 8, !tbaa !5
  %162 = load i64, ptr %15, align 8, !tbaa !5
  call void @_Z6updatexxx(i64 noundef %160, i64 noundef %161, i64 noundef %162)
  br label %183

163:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  %164 = load i64, ptr %13, align 8, !tbaa !5
  %165 = load i64, ptr %14, align 8, !tbaa !5
  %166 = call noundef i64 @_Z5queryxx(i64 noundef %164, i64 noundef %165)
  %167 = trunc i64 %166 to i32
  store i32 %167, ptr %16, align 4, !tbaa !11
  %168 = load i32, ptr %16, align 4, !tbaa !11
  %169 = icmp sge i32 %168, 0
  br i1 %169, label %170, label %175

170:                                              ; preds = %163
  %171 = load i32, ptr %16, align 4, !tbaa !11
  %172 = sext i32 %171 to i64
  %173 = load i64, ptr @n, align 8, !tbaa !5
  %174 = icmp sle i64 %172, %173
  br label %175

175:                                              ; preds = %170, %163
  %176 = phi i1 [ false, %163 ], [ %174, %170 ]
  br i1 %176, label %177, label %178

177:                                              ; preds = %175
  br label %180

178:                                              ; preds = %175
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.3, i32 noundef 290, ptr noundef @__PRETTY_FUNCTION__._Z5solvev) #12
  unreachable

179:                                              ; No predecessors!
  br label %180

180:                                              ; preds = %179, %177
  %181 = load i32, ptr %16, align 4, !tbaa !11
  %182 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %181)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %183

183:                                              ; preds = %180, %158
  br label %150, !llvm.loop !19

184:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  ret void

185:                                              ; preds = %76
  %186 = load ptr, ptr %3, align 8
  %187 = load i32, ptr %4, align 4
  %188 = insertvalue { ptr, i32 } poison, ptr %186, 0
  %189 = insertvalue { ptr, i32 } %188, i32 %187, 1
  resume { ptr, i32 } %189
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.ceil.f64(double) #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #6

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 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)) #1 align 2

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

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 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 = { 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 #4 = { "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 nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nobuiltin allocsize(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 = { nobuiltin 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin nounwind }
attributes #12 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


; 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 }
%struct.node = type { i64, i64, i64 }

@n = external dso_local global i64, align 8
@q = external dso_local global i64, align 8
@A = external dso_local global i64, align 8
@B = external dso_local global i64, align 8
@P = external dso_local local_unnamed_addr global i64, align 8
@g = external dso_local global [524288 x %"class.std::vector"], align 16
@c = external dso_local global [524288 x i64], align 16
@indx = external dso_local local_unnamed_addr global i64, align 8
@chainHead = external dso_local local_unnamed_addr global [524288 x i64], align 16
@sz = external dso_local local_unnamed_addr global [524288 x i64], align 16
@chain_no = external dso_local local_unnamed_addr global i64, align 8
@p = external dso_local local_unnamed_addr global [19 x [524288 x i64]], align 16
@lvl = external dso_local local_unnamed_addr global [524288 x i64], align 16
@vis = external dso_local local_unnamed_addr global [524288 x i32], align 16
@tree = external dso_local local_unnamed_addr global [1048576 x %struct.node], align 16
@.str.3 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._Z5solvev = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5buildxxx(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3dfsxx(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z23heavyLightDecompositionxx(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z10preprocessv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6updatexxx(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z5queryxx(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull @n, ptr noundef nonnull @q)
  %8 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull @A, ptr noundef nonnull @B)
  %9 = load i64, ptr @A, align 8, !tbaa !5
  %10 = icmp eq i64 %9, 0
  %11 = load i64, ptr @B, align 8, !tbaa !5
  br i1 %10, label %12, label %15

12:                                               ; preds = %0
  %13 = icmp sgt i64 %11, -1
  %14 = select i1 %13, i64 -1099511627776, i64 1099511627776
  br label %30

15:                                               ; preds = %0
  %16 = icmp slt i64 %11, 0
  br i1 %16, label %17, label %23

17:                                               ; preds = %15
  %18 = sitofp i64 %11 to double
  %19 = fneg double %18
  %20 = sitofp i64 %9 to double
  %21 = fdiv double %19, %20
  %22 = tail call double @llvm.ceil.f64(double %21)
  br label %27

23:                                               ; preds = %15
  %24 = sdiv i64 %11, %9
  %25 = sub nsw i64 0, %24
  %26 = sitofp i64 %25 to double
  br label %27

27:                                               ; preds = %23, %17
  %28 = phi double [ %22, %17 ], [ %26, %23 ]
  %29 = fptosi double %28 to i64
  br label %30

30:                                               ; preds = %27, %12
  %storemerge = phi i64 [ %29, %27 ], [ %14, %12 ]
  store i64 %storemerge, ptr @P, align 8, !tbaa !5
  %31 = load i64, ptr @n, align 8, !tbaa !5
  %.not41 = icmp slt i64 %31, 1
  br i1 %.not41, label %.preheader40, label %.lr.ph

.preheader40:                                     ; preds = %.lr.ph, %30
  %32 = phi i64 [ %31, %30 ], [ %36, %.lr.ph ]
  %.not3643 = icmp slt i64 %32, 0
  br i1 %.not3643, label %._crit_edge, label %.lr.ph45

.lr.ph:                                           ; preds = %30, %.lr.ph
  %.042 = phi i64 [ %35, %.lr.ph ], [ 1, %30 ]
  %33 = getelementptr inbounds [524288 x i64], ptr @c, i64 0, i64 %.042
  %34 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.5, ptr noundef nonnull %33)
  %35 = add nuw nsw i64 %.042, 1
  %36 = load i64, ptr @n, align 8, !tbaa !5
  %.not.not = icmp slt i64 %.042, %36
  br i1 %.not.not, label %.lr.ph, label %.preheader40, !llvm.loop !9

.preheader39:                                     ; preds = %.lr.ph45
  %37 = icmp slt i64 %40, 0
  br i1 %37, label %._crit_edge, label %.lr.ph49

.lr.ph45:                                         ; preds = %.preheader40, %.lr.ph45
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph45 ], [ 0, %.preheader40 ]
  %38 = tail call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #8
  tail call void @_ZN4nodeC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38)
  %39 = getelementptr inbounds [1048576 x %struct.node], ptr @tree, i64 0, i64 %indvars.iv
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 8 dereferenceable(24) %38, i64 24, i1 false), !tbaa.struct !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %40 = load i64, ptr @n, align 8, !tbaa !5
  %41 = mul nsw i64 %40, 3
  %.not36.not = icmp sgt i64 %41, %indvars.iv
  br i1 %.not36.not, label %.lr.ph45, label %.preheader39, !llvm.loop !12

.preheader:                                       ; preds = %.lr.ph49
  %42 = icmp sgt i64 %66, 1
  br i1 %42, label %.lr.ph51, label %._crit_edge

.lr.ph49:                                         ; preds = %.preheader39, %.lr.ph49
  %indvars.iv61 = phi i64 [ %indvars.iv.next62, %.lr.ph49 ], [ 0, %.preheader39 ]
  %43 = getelementptr inbounds [524288 x %"class.std::vector"], ptr @g, i64 0, i64 %indvars.iv61
  tail call void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #9
  %44 = getelementptr inbounds [524288 x i64], ptr @sz, i64 0, i64 %indvars.iv61
  store i64 0, ptr %44, align 8, !tbaa !5
  %45 = getelementptr inbounds [524288 x i64], ptr @lvl, i64 0, i64 %indvars.iv61
  store i64 0, ptr %45, align 8, !tbaa !5
  %46 = getelementptr inbounds [524288 x i32], ptr @vis, i64 0, i64 %indvars.iv61
  store i32 0, ptr %46, align 4, !tbaa !13
  %47 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 0, i64 %indvars.iv61
  store i64 0, ptr %47, align 8, !tbaa !5
  %48 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 1, i64 %indvars.iv61
  store i64 0, ptr %48, align 8, !tbaa !5
  %49 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 2, i64 %indvars.iv61
  store i64 0, ptr %49, align 8, !tbaa !5
  %50 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 3, i64 %indvars.iv61
  store i64 0, ptr %50, align 8, !tbaa !5
  %51 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 4, i64 %indvars.iv61
  store i64 0, ptr %51, align 8, !tbaa !5
  %52 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 5, i64 %indvars.iv61
  store i64 0, ptr %52, align 8, !tbaa !5
  %53 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 6, i64 %indvars.iv61
  store i64 0, ptr %53, align 8, !tbaa !5
  %54 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 7, i64 %indvars.iv61
  store i64 0, ptr %54, align 8, !tbaa !5
  %55 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 8, i64 %indvars.iv61
  store i64 0, ptr %55, align 8, !tbaa !5
  %56 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 9, i64 %indvars.iv61
  store i64 0, ptr %56, align 8, !tbaa !5
  %57 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 10, i64 %indvars.iv61
  store i64 0, ptr %57, align 8, !tbaa !5
  %58 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 11, i64 %indvars.iv61
  store i64 0, ptr %58, align 8, !tbaa !5
  %59 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 12, i64 %indvars.iv61
  store i64 0, ptr %59, align 8, !tbaa !5
  %60 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 13, i64 %indvars.iv61
  store i64 0, ptr %60, align 8, !tbaa !5
  %61 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 14, i64 %indvars.iv61
  store i64 0, ptr %61, align 8, !tbaa !5
  %62 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 15, i64 %indvars.iv61
  store i64 0, ptr %62, align 8, !tbaa !5
  %63 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 16, i64 %indvars.iv61
  store i64 0, ptr %63, align 8, !tbaa !5
  %64 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 17, i64 %indvars.iv61
  store i64 0, ptr %64, align 8, !tbaa !5
  %65 = getelementptr inbounds [19 x [524288 x i64]], ptr @p, i64 0, i64 18, i64 %indvars.iv61
  store i64 0, ptr %65, align 8, !tbaa !5
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %66 = load i64, ptr @n, align 8, !tbaa !5
  %.not37.not = icmp sgt i64 %66, %indvars.iv61
  br i1 %.not37.not, label %.lr.ph49, label %.preheader, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph51, %.preheader40, %.preheader39, %.preheader
  store i64 0, ptr getelementptr inbounds (i8, ptr @lvl, i64 8), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 8), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 4194312), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 8388616), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 12582920), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 16777224), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 20971528), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 25165832), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 29360136), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 33554440), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 37748744), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 41943048), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 46137352), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 50331656), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 54525960), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 58720264), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 62914568), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 67108872), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 71303176), align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @p, i64 75497480), align 8, !tbaa !5
  call void @_Z3dfsxx(i64 noundef 1, i64 noundef -1)
  store i64 1, ptr @chain_no, align 8, !tbaa !5
  store i64 -1, ptr @indx, align 8, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @chainHead, i64 8), align 8, !tbaa !5
  call void @_Z23heavyLightDecompositionxx(i64 noundef 1, i64 noundef -1)
  call void @_Z10preprocessv()
  %67 = load i64, ptr @n, align 8, !tbaa !5
  call void @_Z5buildxxx(i64 noundef 1, i64 noundef 0, i64 noundef %67)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %68 = load i64, ptr @q, align 8, !tbaa !5
  %69 = add nsw i64 %68, -1
  store i64 %69, ptr @q, align 8, !tbaa !5
  %.not3853 = icmp eq i64 %68, 0
  br i1 %.not3853, label %._crit_edge56, label %.lr.ph55

.lr.ph51:                                         ; preds = %.preheader, %.lr.ph51
  %.02550 = phi i64 [ %75, %.lr.ph51 ], [ 1, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  %70 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %71 = load i64, ptr %1, align 8, !tbaa !5
  %72 = getelementptr inbounds [524288 x %"class.std::vector"], ptr @g, i64 0, i64 %71
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %73 = load i64, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds [524288 x %"class.std::vector"], ptr @g, i64 0, i64 %73
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  %75 = add nuw nsw i64 %.02550, 1
  %76 = load i64, ptr @n, align 8, !tbaa !5
  %77 = icmp slt i64 %75, %76
  br i1 %77, label %.lr.ph51, label %._crit_edge, !llvm.loop !16

.lr.ph55:                                         ; preds = %._crit_edge, %99
  %78 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.6, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %79 = load i64, ptr %3, align 8, !tbaa !5
  %80 = icmp eq i64 %79, 1
  br i1 %80, label %81, label %86

81:                                               ; preds = %.lr.ph55
  %82 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.5, ptr noundef nonnull %6)
  %83 = load i64, ptr %4, align 8, !tbaa !5
  %84 = load i64, ptr %5, align 8, !tbaa !5
  %85 = load i64, ptr %6, align 8, !tbaa !5
  call void @_Z6updatexxx(i64 noundef %83, i64 noundef %84, i64 noundef %85)
  br label %99

86:                                               ; preds = %.lr.ph55
  %87 = load i64, ptr %4, align 8, !tbaa !5
  %88 = load i64, ptr %5, align 8, !tbaa !5
  %89 = call noundef i64 @_Z5queryxx(i64 noundef %87, i64 noundef %88)
  %90 = trunc i64 %89 to i32
  %91 = icmp sgt i32 %90, -1
  %sext = shl i64 %89, 32
  %92 = ashr exact i64 %sext, 32
  %93 = load i64, ptr @n, align 8
  %94 = icmp sle i64 %92, %93
  %95 = select i1 %91, i1 %94, i1 false
  br i1 %95, label %97, label %96

96:                                               ; preds = %86
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.3, i32 noundef 290, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5solvev) #10
  unreachable

97:                                               ; preds = %86
  %98 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %90)
  br label %99

99:                                               ; preds = %97, %81
  %100 = load i64, ptr @q, align 8, !tbaa !5
  %101 = add nsw i64 %100, -1
  store i64 %101, ptr @q, align 8, !tbaa !5
  %.not38 = icmp eq i64 %100, 0
  br i1 %.not38, label %._crit_edge56, label %.lr.ph55, !llvm.loop !17

._crit_edge56:                                    ; preds = %99, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  ret void
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.ceil.f64(double) #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #6

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIxSaIxEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 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 #1 align 2

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

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 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 = { 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 #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 nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nobuiltin allocsize(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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { nounwind }
attributes #10 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


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