; LLVM IR from tangjz/acm-icpc :: codeforces/gym/101234D.ll (Z8dfs_treei)

; 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.Complex = type { x86_fp80, x86_fp80 }
%"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.__gnu_cxx::__normal_iterator" = type { ptr }

@f = external dso_local global [2 x [262145 x %struct.Complex]], align 16
@tot = external dso_local global i32, align 4
@ord = external dso_local global [100001 x i32], align 16
@fa = external dso_local global [100001 x i32], align 16
@e = external dso_local global [100001 x %"class.std::vector"], align 16
@ban = external dso_local global [100001 x i8], align 16
@ans = external dso_local global [100001 x i64], align 16
@_ZZ8dfs_treeiE2sz = external hidden global [100001 x i32], align 16
@_ZZ8dfs_treeiE3dis = external hidden global [100001 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #1 align 2

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

; 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 @_Z3FFTiP7Complexi(i32 noundef, ptr noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ComplexmlERKS_(ptr dead_on_unwind noalias writable sret(%struct.Complex) align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8dfs_treei(i32 noundef %0) #3 {
  %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 ptr, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %struct.Complex, align 16
  %18 = alloca ptr, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %struct.Complex, align 16
  %23 = alloca %struct.Complex, align 16
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %struct.Complex, align 16
  %29 = alloca %struct.Complex, align 16
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca %struct.Complex, align 16
  %36 = alloca i32, align 4
  %37 = alloca %struct.Complex, align 16
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca %struct.Complex, align 16
  %45 = alloca i32, align 4
  %46 = alloca %struct.Complex, align 16
  %47 = alloca i32, align 4
  %48 = alloca ptr, align 8
  %49 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %50 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %51 = alloca ptr, align 8
  store i32 %0, ptr %2, align 4, !tbaa !5
  %52 = load i32, ptr %2, align 4, !tbaa !5
  call void @_Z8bfs_treeii(i32 noundef %52, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %53 = load i32, ptr @tot, align 4, !tbaa !5
  store i32 %53, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %54 = load i32, ptr @tot, align 4, !tbaa !5
  %55 = sub nsw i32 %54, 1
  store i32 %55, ptr %4, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %132, %1
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = icmp sge i32 %57, 0
  br i1 %58, label %60, label %59

59:                                               ; preds = %56
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %135

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %61 = load i32, ptr %4, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [100001 x i32], ptr @ord, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !5
  store i32 %64, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  %65 = load i32, ptr %6, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [100001 x i32], ptr @_ZZ8dfs_treeiE2sz, i64 0, i64 %66
  store i32 1, ptr %67, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %69
  store ptr %70, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %71 = load ptr, ptr %8, align 8, !tbaa !9
  %72 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #5
  %73 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %72, ptr %73, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %74 = load ptr, ptr %8, align 8, !tbaa !9
  %75 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #5
  %76 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %75, ptr %76, align 8
  br label %77

77:                                               ; preds = %114, %60
  %78 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %78, label %80, label %79

79:                                               ; preds = %77
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %116

80:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  store ptr %81, ptr %11, align 8, !tbaa !9
  %82 = load ptr, ptr %11, align 8, !tbaa !9
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = load i32, ptr %6, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = icmp ne i32 %83, %87
  br i1 %88, label %89, label %113

89:                                               ; preds = %80
  %90 = load ptr, ptr %11, align 8, !tbaa !9
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %92
  %94 = load i8, ptr %93, align 1, !tbaa !11, !range !13, !noundef !14
  %95 = trunc i8 %94 to i1
  br i1 %95, label %113, label %96

96:                                               ; preds = %89
  %97 = load ptr, ptr %11, align 8, !tbaa !9
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [100001 x i32], ptr @_ZZ8dfs_treeiE2sz, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [100001 x i32], ptr @_ZZ8dfs_treeiE2sz, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = add nsw i32 %105, %101
  store i32 %106, ptr %104, align 4, !tbaa !5
  %107 = load ptr, ptr %11, align 8, !tbaa !9
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [100001 x i32], ptr @_ZZ8dfs_treeiE2sz, i64 0, i64 %109
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %110)
  %112 = load i32, ptr %111, align 4, !tbaa !5
  store i32 %112, ptr %7, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %96, %89, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %114

114:                                              ; preds = %113
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br label %77

116:                                              ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %117 = load i32, ptr @tot, align 4, !tbaa !5
  %118 = load i32, ptr %6, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [100001 x i32], ptr @_ZZ8dfs_treeiE2sz, i64 0, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = sub nsw i32 %117, %121
  store i32 %122, ptr %12, align 4, !tbaa !5
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %124 = load i32, ptr %123, align 4, !tbaa !5
  store i32 %124, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %125 = load i32, ptr %7, align 4, !tbaa !5
  %126 = load i32, ptr %3, align 4, !tbaa !5
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %128, label %131

128:                                              ; preds = %116
  %129 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %129, ptr %2, align 4, !tbaa !5
  %130 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %130, ptr %3, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %128, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %4, align 4, !tbaa !5
  %134 = add nsw i32 %133, -1
  store i32 %134, ptr %4, align 4, !tbaa !5
  br label %56, !llvm.loop !15

135:                                              ; preds = %59
  %136 = load i32, ptr @tot, align 4, !tbaa !5
  store i32 %136, ptr %3, align 4, !tbaa !5
  %137 = load i32, ptr %2, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %138
  store i8 1, ptr %139, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store ptr @f, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store ptr getelementptr inbounds ([2 x [262145 x %struct.Complex]], ptr @f, i64 0, i64 1), ptr %16, align 8, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #5
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %17, x86_fp80 noundef 0xK3FFF8000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  %140 = load ptr, ptr %15, align 8, !tbaa !9
  %141 = getelementptr inbounds %struct.Complex, ptr %140, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %141, ptr align 16 %17, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %142 = load i32, ptr %2, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %143
  store ptr %144, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %145 = load ptr, ptr %18, align 8, !tbaa !9
  %146 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %145) #5
  %147 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %146, ptr %147, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %148 = load ptr, ptr %18, align 8, !tbaa !9
  %149 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %148) #5
  %150 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %149, ptr %150, align 8
  br label %151

151:                                              ; preds = %348, %135
  %152 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  br i1 %152, label %154, label %153

153:                                              ; preds = %151
  store i32 7, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %350

154:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %155 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  store ptr %155, ptr %21, align 8, !tbaa !9
  %156 = load ptr, ptr %21, align 8, !tbaa !9
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %158
  %160 = load i8, ptr %159, align 1, !tbaa !11, !range !13, !noundef !14
  %161 = trunc i8 %160 to i1
  br i1 %161, label %162, label %163

162:                                              ; preds = %154
  store i32 8, ptr %5, align 4
  br label %345

163:                                              ; preds = %154
  %164 = load ptr, ptr %21, align 8, !tbaa !9
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = load i32, ptr %2, align 4, !tbaa !5
  call void @_Z8bfs_treeii(i32 noundef %165, i32 noundef %166)
  store i32 1, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #5
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %22, x86_fp80 noundef 0xK3FFF8000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  %167 = load ptr, ptr %16, align 8, !tbaa !9
  %168 = getelementptr inbounds %struct.Complex, ptr %167, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %168, ptr align 16 %22, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  %169 = load i32, ptr %13, align 4, !tbaa !5
  %170 = icmp sgt i32 %169, 1
  br i1 %170, label %171, label %177

171:                                              ; preds = %163
  %172 = load ptr, ptr %15, align 8, !tbaa !9
  %173 = getelementptr inbounds %struct.Complex, ptr %172, i64 1
  %174 = getelementptr inbounds %struct.Complex, ptr %173, i32 0, i32 0
  %175 = load x86_fp80, ptr %174, align 16, !tbaa !20
  %176 = fadd x86_fp80 %175, 0xK3FFF8000000000000000
  store x86_fp80 %176, ptr %174, align 16, !tbaa !20
  br label %183

177:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #5
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %23, x86_fp80 noundef 0xK3FFF8000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  %178 = load ptr, ptr %15, align 8, !tbaa !9
  %179 = load i32, ptr %13, align 4, !tbaa !5
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %13, align 4, !tbaa !5
  %181 = sext i32 %179 to i64
  %182 = getelementptr inbounds %struct.Complex, ptr %178, i64 %181
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %182, ptr align 16 %23, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #5
  br label %183

183:                                              ; preds = %177, %171
  %184 = load ptr, ptr %21, align 8, !tbaa !9
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [100001 x i32], ptr @_ZZ8dfs_treeiE3dis, i64 0, i64 %186
  store i32 0, ptr %187, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 1, ptr %24, align 4, !tbaa !5
  br label %188

188:                                              ; preds = %248, %183
  %189 = load i32, ptr %24, align 4, !tbaa !5
  %190 = load i32, ptr @tot, align 4, !tbaa !5
  %191 = icmp slt i32 %189, %190
  br i1 %191, label %193, label %192

192:                                              ; preds = %188
  store i32 9, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %251

193:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %194 = load i32, ptr %24, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [100001 x i32], ptr @ord, i64 0, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !5
  store i32 %197, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %198 = load i32, ptr %25, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %199
  %201 = load i32, ptr %200, align 4, !tbaa !5
  store i32 %201, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %202 = load i32, ptr %26, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [100001 x i32], ptr @_ZZ8dfs_treeiE3dis, i64 0, i64 %203
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %206 = add nsw i32 %205, 1
  %207 = load i32, ptr %25, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [100001 x i32], ptr @_ZZ8dfs_treeiE3dis, i64 0, i64 %208
  store i32 %206, ptr %209, align 4, !tbaa !5
  store i32 %206, ptr %27, align 4, !tbaa !5
  %210 = load i32, ptr %27, align 4, !tbaa !5
  %211 = load i32, ptr %14, align 4, !tbaa !5
  %212 = icmp slt i32 %210, %211
  br i1 %212, label %213, label %221

213:                                              ; preds = %193
  %214 = load ptr, ptr %16, align 8, !tbaa !9
  %215 = load i32, ptr %27, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds %struct.Complex, ptr %214, i64 %216
  %218 = getelementptr inbounds %struct.Complex, ptr %217, i32 0, i32 0
  %219 = load x86_fp80, ptr %218, align 16, !tbaa !20
  %220 = fadd x86_fp80 %219, 0xK3FFF8000000000000000
  store x86_fp80 %220, ptr %218, align 16, !tbaa !20
  br label %227

221:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #5
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %28, x86_fp80 noundef 0xK3FFF8000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  %222 = load ptr, ptr %16, align 8, !tbaa !9
  %223 = load i32, ptr %14, align 4, !tbaa !5
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %14, align 4, !tbaa !5
  %225 = sext i32 %223 to i64
  %226 = getelementptr inbounds %struct.Complex, ptr %222, i64 %225
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %226, ptr align 16 %28, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  br label %227

227:                                              ; preds = %221, %213
  %228 = load i32, ptr %27, align 4, !tbaa !5
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %27, align 4, !tbaa !5
  %230 = load i32, ptr %27, align 4, !tbaa !5
  %231 = load i32, ptr %13, align 4, !tbaa !5
  %232 = icmp slt i32 %230, %231
  br i1 %232, label %233, label %241

233:                                              ; preds = %227
  %234 = load ptr, ptr %15, align 8, !tbaa !9
  %235 = load i32, ptr %27, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds %struct.Complex, ptr %234, i64 %236
  %238 = getelementptr inbounds %struct.Complex, ptr %237, i32 0, i32 0
  %239 = load x86_fp80, ptr %238, align 16, !tbaa !20
  %240 = fadd x86_fp80 %239, 0xK3FFF8000000000000000
  store x86_fp80 %240, ptr %238, align 16, !tbaa !20
  br label %247

241:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #5
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %29, x86_fp80 noundef 0xK3FFF8000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  %242 = load ptr, ptr %15, align 8, !tbaa !9
  %243 = load i32, ptr %13, align 4, !tbaa !5
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %13, align 4, !tbaa !5
  %245 = sext i32 %243 to i64
  %246 = getelementptr inbounds %struct.Complex, ptr %242, i64 %245
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %246, ptr align 16 %29, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #5
  br label %247

247:                                              ; preds = %241, %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %248

248:                                              ; preds = %247
  %249 = load i32, ptr %24, align 4, !tbaa !5
  %250 = add nsw i32 %249, 1
  store i32 %250, ptr %24, align 4, !tbaa !5
  br label %188, !llvm.loop !22

251:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  %252 = load i32, ptr %14, align 4, !tbaa !5
  %253 = load i32, ptr %14, align 4, !tbaa !5
  %254 = add nsw i32 %252, %253
  %255 = sub nsw i32 %254, 1
  store i32 %255, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  %256 = load i32, ptr %3, align 4, !tbaa !5
  %257 = sub nsw i32 %256, 2
  store i32 %257, ptr %32, align 4, !tbaa !5
  %258 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) %32)
  %259 = load i32, ptr %258, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  store i32 %259, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  %260 = load i32, ptr %30, align 4, !tbaa !5
  %261 = icmp sle i32 %260, 0
  br i1 %261, label %262, label %263

262:                                              ; preds = %251
  store i32 8, ptr %5, align 4
  br label %342

263:                                              ; preds = %251
  store i32 1, ptr %33, align 4, !tbaa !5
  br label %264

264:                                              ; preds = %272, %263
  %265 = load i32, ptr %33, align 4, !tbaa !5
  %266 = load i32, ptr %14, align 4, !tbaa !5
  %267 = load i32, ptr %14, align 4, !tbaa !5
  %268 = add nsw i32 %266, %267
  %269 = sub nsw i32 %268, 1
  %270 = icmp slt i32 %265, %269
  br i1 %270, label %271, label %275

271:                                              ; preds = %264
  br label %272

272:                                              ; preds = %271
  %273 = load i32, ptr %33, align 4, !tbaa !5
  %274 = shl i32 %273, 1
  store i32 %274, ptr %33, align 4, !tbaa !5
  br label %264, !llvm.loop !23

275:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %276 = load i32, ptr %14, align 4, !tbaa !5
  store i32 %276, ptr %34, align 4, !tbaa !5
  br label %277

277:                                              ; preds = %287, %275
  %278 = load i32, ptr %34, align 4, !tbaa !5
  %279 = load i32, ptr %33, align 4, !tbaa !5
  %280 = icmp slt i32 %278, %279
  br i1 %280, label %282, label %281

281:                                              ; preds = %277
  store i32 15, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  br label %290

282:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #5
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %35, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  %283 = load ptr, ptr %16, align 8, !tbaa !9
  %284 = load i32, ptr %34, align 4, !tbaa !5
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds %struct.Complex, ptr %283, i64 %285
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %286, ptr align 16 %35, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #5
  br label %287

287:                                              ; preds = %282
  %288 = load i32, ptr %34, align 4, !tbaa !5
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %34, align 4, !tbaa !5
  br label %277, !llvm.loop !24

290:                                              ; preds = %281
  %291 = load i32, ptr %33, align 4, !tbaa !5
  %292 = load ptr, ptr %16, align 8, !tbaa !9
  call void @_Z3FFTiP7Complexi(i32 noundef %291, ptr noundef %292, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  store i32 0, ptr %36, align 4, !tbaa !5
  br label %293

293:                                              ; preds = %311, %290
  %294 = load i32, ptr %36, align 4, !tbaa !5
  %295 = load i32, ptr %33, align 4, !tbaa !5
  %296 = icmp slt i32 %294, %295
  br i1 %296, label %298, label %297

297:                                              ; preds = %293
  store i32 18, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  br label %314

298:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #5
  %299 = load ptr, ptr %16, align 8, !tbaa !9
  %300 = load i32, ptr %36, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds %struct.Complex, ptr %299, i64 %301
  %303 = load ptr, ptr %16, align 8, !tbaa !9
  %304 = load i32, ptr %36, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds %struct.Complex, ptr %303, i64 %305
  call void @_ZNK7ComplexmlERKS_(ptr dead_on_unwind writable sret(%struct.Complex) align 16 %37, ptr noundef nonnull align 16 dereferenceable(32) %302, ptr noundef nonnull align 16 dereferenceable(32) %306)
  %307 = load ptr, ptr %16, align 8, !tbaa !9
  %308 = load i32, ptr %36, align 4, !tbaa !5
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds %struct.Complex, ptr %307, i64 %309
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %310, ptr align 16 %37, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #5
  br label %311

311:                                              ; preds = %298
  %312 = load i32, ptr %36, align 4, !tbaa !5
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %36, align 4, !tbaa !5
  br label %293, !llvm.loop !25

314:                                              ; preds = %297
  %315 = load i32, ptr %33, align 4, !tbaa !5
  %316 = load ptr, ptr %16, align 8, !tbaa !9
  call void @_Z3FFTiP7Complexi(i32 noundef %315, ptr noundef %316, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #5
  store i32 0, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #5
  store i32 2, ptr %39, align 4, !tbaa !5
  br label %317

317:                                              ; preds = %336, %314
  %318 = load i32, ptr %38, align 4, !tbaa !5
  %319 = load i32, ptr %30, align 4, !tbaa !5
  %320 = icmp slt i32 %318, %319
  br i1 %320, label %322, label %321

321:                                              ; preds = %317
  store i32 21, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #5
  br label %341

322:                                              ; preds = %317
  %323 = load ptr, ptr %16, align 8, !tbaa !9
  %324 = load i32, ptr %38, align 4, !tbaa !5
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds %struct.Complex, ptr %323, i64 %325
  %327 = getelementptr inbounds %struct.Complex, ptr %326, i32 0, i32 0
  %328 = load x86_fp80, ptr %327, align 16, !tbaa !20
  %329 = fadd x86_fp80 %328, 0xK3FFE8000000000000000
  %330 = fptosi x86_fp80 %329 to i64
  %331 = load i32, ptr %39, align 4, !tbaa !5
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %332
  %334 = load i64, ptr %333, align 8, !tbaa !26
  %335 = sub nsw i64 %334, %330
  store i64 %335, ptr %333, align 8, !tbaa !26
  br label %336

336:                                              ; preds = %322
  %337 = load i32, ptr %38, align 4, !tbaa !5
  %338 = add nsw i32 %337, 1
  store i32 %338, ptr %38, align 4, !tbaa !5
  %339 = load i32, ptr %39, align 4, !tbaa !5
  %340 = add nsw i32 %339, 1
  store i32 %340, ptr %39, align 4, !tbaa !5
  br label %317, !llvm.loop !28

341:                                              ; preds = %321
  store i32 0, ptr %5, align 4
  br label %342

342:                                              ; preds = %341, %262
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  %343 = load i32, ptr %5, align 4
  switch i32 %343, label %345 [
    i32 0, label %344
  ]

344:                                              ; preds = %342
  store i32 0, ptr %5, align 4
  br label %345

345:                                              ; preds = %344, %342, %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  %346 = load i32, ptr %5, align 4
  switch i32 %346, label %460 [
    i32 0, label %347
    i32 8, label %348
  ]

347:                                              ; preds = %345
  br label %348

348:                                              ; preds = %347, %345
  %349 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  br label %151

350:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #5
  %351 = load i32, ptr %13, align 4, !tbaa !5
  %352 = load i32, ptr %13, align 4, !tbaa !5
  %353 = add nsw i32 %351, %352
  %354 = sub nsw i32 %353, 1
  store i32 %354, ptr %41, align 4, !tbaa !5
  %355 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %41, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %356 = load i32, ptr %355, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #5
  store i32 %356, ptr %40, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #5
  store i32 1, ptr %42, align 4, !tbaa !5
  br label %357

357:                                              ; preds = %365, %350
  %358 = load i32, ptr %42, align 4, !tbaa !5
  %359 = load i32, ptr %13, align 4, !tbaa !5
  %360 = load i32, ptr %13, align 4, !tbaa !5
  %361 = add nsw i32 %359, %360
  %362 = sub nsw i32 %361, 1
  %363 = icmp slt i32 %358, %362
  br i1 %363, label %364, label %368

364:                                              ; preds = %357
  br label %365

365:                                              ; preds = %364
  %366 = load i32, ptr %42, align 4, !tbaa !5
  %367 = shl i32 %366, 1
  store i32 %367, ptr %42, align 4, !tbaa !5
  br label %357, !llvm.loop !29

368:                                              ; preds = %357
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #5
  %369 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %369, ptr %43, align 4, !tbaa !5
  br label %370

370:                                              ; preds = %380, %368
  %371 = load i32, ptr %43, align 4, !tbaa !5
  %372 = load i32, ptr %42, align 4, !tbaa !5
  %373 = icmp slt i32 %371, %372
  br i1 %373, label %375, label %374

374:                                              ; preds = %370
  store i32 27, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #5
  br label %383

375:                                              ; preds = %370
  call void @llvm.lifetime.start.p0(i64 32, ptr %44) #5
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %44, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  %376 = load ptr, ptr %15, align 8, !tbaa !9
  %377 = load i32, ptr %43, align 4, !tbaa !5
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds %struct.Complex, ptr %376, i64 %378
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %379, ptr align 16 %44, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #5
  br label %380

380:                                              ; preds = %375
  %381 = load i32, ptr %43, align 4, !tbaa !5
  %382 = add nsw i32 %381, 1
  store i32 %382, ptr %43, align 4, !tbaa !5
  br label %370, !llvm.loop !30

383:                                              ; preds = %374
  %384 = load i32, ptr %42, align 4, !tbaa !5
  %385 = load ptr, ptr %15, align 8, !tbaa !9
  call void @_Z3FFTiP7Complexi(i32 noundef %384, ptr noundef %385, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #5
  store i32 0, ptr %45, align 4, !tbaa !5
  br label %386

386:                                              ; preds = %404, %383
  %387 = load i32, ptr %45, align 4, !tbaa !5
  %388 = load i32, ptr %42, align 4, !tbaa !5
  %389 = icmp slt i32 %387, %388
  br i1 %389, label %391, label %390

390:                                              ; preds = %386
  store i32 30, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #5
  br label %407

391:                                              ; preds = %386
  call void @llvm.lifetime.start.p0(i64 32, ptr %46) #5
  %392 = load ptr, ptr %15, align 8, !tbaa !9
  %393 = load i32, ptr %45, align 4, !tbaa !5
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds %struct.Complex, ptr %392, i64 %394
  %396 = load ptr, ptr %15, align 8, !tbaa !9
  %397 = load i32, ptr %45, align 4, !tbaa !5
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds %struct.Complex, ptr %396, i64 %398
  call void @_ZNK7ComplexmlERKS_(ptr dead_on_unwind writable sret(%struct.Complex) align 16 %46, ptr noundef nonnull align 16 dereferenceable(32) %395, ptr noundef nonnull align 16 dereferenceable(32) %399)
  %400 = load ptr, ptr %15, align 8, !tbaa !9
  %401 = load i32, ptr %45, align 4, !tbaa !5
  %402 = sext i32 %401 to i64
  %403 = getelementptr inbounds %struct.Complex, ptr %400, i64 %402
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %403, ptr align 16 %46, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #5
  br label %404

404:                                              ; preds = %391
  %405 = load i32, ptr %45, align 4, !tbaa !5
  %406 = add nsw i32 %405, 1
  store i32 %406, ptr %45, align 4, !tbaa !5
  br label %386, !llvm.loop !31

407:                                              ; preds = %390
  %408 = load i32, ptr %42, align 4, !tbaa !5
  %409 = load ptr, ptr %15, align 8, !tbaa !9
  call void @_Z3FFTiP7Complexi(i32 noundef %408, ptr noundef %409, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #5
  store i32 0, ptr %47, align 4, !tbaa !5
  br label %410

410:                                              ; preds = %429, %407
  %411 = load i32, ptr %47, align 4, !tbaa !5
  %412 = load i32, ptr %40, align 4, !tbaa !5
  %413 = icmp slt i32 %411, %412
  br i1 %413, label %415, label %414

414:                                              ; preds = %410
  store i32 33, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #5
  br label %432

415:                                              ; preds = %410
  %416 = load ptr, ptr %15, align 8, !tbaa !9
  %417 = load i32, ptr %47, align 4, !tbaa !5
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds %struct.Complex, ptr %416, i64 %418
  %420 = getelementptr inbounds %struct.Complex, ptr %419, i32 0, i32 0
  %421 = load x86_fp80, ptr %420, align 16, !tbaa !20
  %422 = fadd x86_fp80 %421, 0xK3FFE8000000000000000
  %423 = fptosi x86_fp80 %422 to i64
  %424 = load i32, ptr %47, align 4, !tbaa !5
  %425 = sext i32 %424 to i64
  %426 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %425
  %427 = load i64, ptr %426, align 8, !tbaa !26
  %428 = add nsw i64 %427, %423
  store i64 %428, ptr %426, align 8, !tbaa !26
  br label %429

429:                                              ; preds = %415
  %430 = load i32, ptr %47, align 4, !tbaa !5
  %431 = add nsw i32 %430, 1
  store i32 %431, ptr %47, align 4, !tbaa !5
  br label %410, !llvm.loop !32

432:                                              ; preds = %414
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #5
  %433 = load i32, ptr %2, align 4, !tbaa !5
  %434 = sext i32 %433 to i64
  %435 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %434
  store ptr %435, ptr %48, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #5
  %436 = load ptr, ptr %48, align 8, !tbaa !9
  %437 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %436) #5
  %438 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %49, i32 0, i32 0
  store ptr %437, ptr %438, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #5
  %439 = load ptr, ptr %48, align 8, !tbaa !9
  %440 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %439) #5
  %441 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %50, i32 0, i32 0
  store ptr %440, ptr %441, align 8
  br label %442

442:                                              ; preds = %457, %432
  %443 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull align 8 dereferenceable(8) %50) #5
  br i1 %443, label %445, label %444

444:                                              ; preds = %442
  store i32 36, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #5
  br label %459

445:                                              ; preds = %442
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #5
  %446 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %49) #5
  store ptr %446, ptr %51, align 8, !tbaa !9
  %447 = load ptr, ptr %51, align 8, !tbaa !9
  %448 = load i32, ptr %447, align 4, !tbaa !5
  %449 = sext i32 %448 to i64
  %450 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %449
  %451 = load i8, ptr %450, align 1, !tbaa !11, !range !13, !noundef !14
  %452 = trunc i8 %451 to i1
  br i1 %452, label %456, label %453

453:                                              ; preds = %445
  %454 = load ptr, ptr %51, align 8, !tbaa !9
  %455 = load i32, ptr %454, align 4, !tbaa !5
  call void @_Z8dfs_treei(i32 noundef %455)
  br label %456

456:                                              ; preds = %453, %445
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #5
  br label %457

457:                                              ; preds = %456
  %458 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %49) #5
  br label %442

459:                                              ; preds = %444
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void

460:                                              ; preds = %345
  unreachable
}

; 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)) #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{i64 0, i64 16, !18, i64 16, i64 16, !18}
!18 = !{!19, !19, i64 0}
!19 = !{!"long double", !7, i64 0}
!20 = !{!21, !19, i64 0}
!21 = !{!"_ZTS7Complex", !19, i64 0, !19, i64 16}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}
!26 = !{!27, !27, i64 0}
!27 = !{!"long long", !7, i64 0}
!28 = distinct !{!28, !16}
!29 = distinct !{!29, !16}
!30 = distinct !{!30, !16}
!31 = distinct !{!31, !16}
!32 = distinct !{!32, !16}


; 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.Complex = type { x86_fp80, x86_fp80 }
%"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.__gnu_cxx::__normal_iterator" = type { ptr }

@f = external dso_local global [2 x [262145 x %struct.Complex]], align 16
@tot = external dso_local local_unnamed_addr global i32, align 4
@ord = external dso_local local_unnamed_addr global [100001 x i32], align 16
@fa = external dso_local local_unnamed_addr global [100001 x i32], align 16
@e = external dso_local global [100001 x %"class.std::vector"], align 16
@ban = external dso_local local_unnamed_addr global [100001 x i8], align 16
@ans = external dso_local local_unnamed_addr global [100001 x i64], align 16
@_ZZ8dfs_treeiE2sz = external hidden global [100001 x i32], align 16
@_ZZ8dfs_treeiE3dis = external hidden local_unnamed_addr global [100001 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #1 align 2

; 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) #2

; 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 @_Z3FFTiP7Complexi(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ComplexmlERKS_(ptr dead_on_unwind noalias writable sret(%struct.Complex) align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8dfs_treei(i32 noundef %0) local_unnamed_addr #3 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.Complex, align 16
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %struct.Complex, align 16
  %11 = alloca %struct.Complex, align 16
  %12 = alloca %struct.Complex, align 16
  %13 = alloca %struct.Complex, align 16
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.Complex, align 16
  %17 = alloca %struct.Complex, align 16
  %18 = alloca i32, align 4
  %19 = alloca %struct.Complex, align 16
  %20 = alloca %struct.Complex, align 16
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  tail call void @_Z8bfs_treeii(i32 noundef %0, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %23 = load i32, ptr @tot, align 4, !tbaa !5
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph145.preheader, label %._crit_edge146

.lr.ph145.preheader:                              ; preds = %1
  %25 = zext nneg i32 %23 to i64
  br label %.lr.ph145

._crit_edge146.loopexit:                          ; preds = %._crit_edge
  %.pre = load i32, ptr @tot, align 4, !tbaa !5
  br label %._crit_edge146

._crit_edge146:                                   ; preds = %._crit_edge146.loopexit, %1
  %26 = phi i32 [ %23, %1 ], [ %.pre, %._crit_edge146.loopexit ]
  %.0.lcssa = phi i32 [ %0, %1 ], [ %spec.select220, %._crit_edge146.loopexit ]
  store i32 %26, ptr %2, align 4, !tbaa !5
  %27 = sext i32 %.0.lcssa to i64
  %28 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %27
  store i8 1, ptr %28, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %7, x86_fp80 noundef 0xK3FFF8000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) @f, ptr noundef nonnull align 16 dereferenceable(32) %7, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  %29 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %30 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  store ptr %30, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %31 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  store ptr %31, ptr %9, align 8
  %32 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %32, label %.lr.ph168.preheader, label %._crit_edge169

.lr.ph168.preheader:                              ; preds = %._crit_edge146
  %33 = add nsw i32 %26, -2
  br label %.lr.ph168

.lr.ph145:                                        ; preds = %.lr.ph145.preheader, %._crit_edge
  %34 = phi i32 [ %23, %.lr.ph145.preheader ], [ %spec.select, %._crit_edge ]
  %indvars.iv = phi i64 [ %25, %.lr.ph145.preheader ], [ %indvars.iv.next, %._crit_edge ]
  %.0142 = phi i32 [ %0, %.lr.ph145.preheader ], [ %spec.select220, %._crit_edge ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %35 = getelementptr inbounds [100001 x i32], ptr @ord, i64 0, i64 %indvars.iv.next
  %36 = load i32, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [100001 x i32], ptr @_ZZ8dfs_treeiE2sz, i64 0, i64 %37
  store i32 1, ptr %38, align 4, !tbaa !5
  %39 = getelementptr inbounds [100001 x %"class.std::vector"], ptr @e, i64 0, i64 %37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %40 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  store ptr %40, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %41 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  store ptr %41, ptr %5, align 8
  %42 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %42, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph145
  %43 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %37
  br label %51

._crit_edge:                                      ; preds = %70, %.lr.ph145
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %44 = load i32, ptr @tot, align 4, !tbaa !5
  %45 = load i32, ptr %38, align 4, !tbaa !5
  %46 = sub nsw i32 %44, %45
  store i32 %46, ptr %6, align 4, !tbaa !5
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %48 = load i32, ptr %47, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  %49 = icmp slt i32 %48, %34
  %spec.select = call i32 @llvm.smin.i32(i32 %48, i32 %34)
  %spec.select220 = select i1 %49, i32 %36, i32 %.0142
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  %50 = icmp sgt i64 %indvars.iv, 1
  br i1 %50, label %.lr.ph145, label %._crit_edge146.loopexit, !llvm.loop !14

51:                                               ; preds = %.lr.ph, %70
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = load i32, ptr %43, align 4, !tbaa !5
  %.not = icmp eq i32 %53, %54
  br i1 %.not, label %70, label %55

55:                                               ; preds = %51
  %56 = sext i32 %53 to i64
  %57 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %56
  %58 = load i8, ptr %57, align 1, !tbaa !9, !range !16, !noundef !17
  %59 = trunc nuw i8 %58 to i1
  br i1 %59, label %70, label %60

60:                                               ; preds = %55
  %61 = getelementptr inbounds [100001 x i32], ptr @_ZZ8dfs_treeiE2sz, i64 0, i64 %56
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = load i32, ptr %38, align 4, !tbaa !5
  %64 = add nsw i32 %63, %62
  store i32 %64, ptr %38, align 4, !tbaa !5
  %65 = load i32, ptr %52, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [100001 x i32], ptr @_ZZ8dfs_treeiE2sz, i64 0, i64 %66
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %67)
  %69 = load i32, ptr %68, align 4, !tbaa !5
  store i32 %69, ptr %3, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %60, %55, %51
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %72 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %72, label %51, label %._crit_edge

._crit_edge169:                                   ; preds = %.loopexit, %._crit_edge146
  %.0129.lcssa = phi i32 [ 1, %._crit_edge146 ], [ %.4, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  %73 = shl nsw i32 %.0129.lcssa, 1
  %74 = add nsw i32 %73, -1
  store i32 %74, ptr %18, align 4, !tbaa !5
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %76 = load i32, ptr %75, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  br label %170

.lr.ph168:                                        ; preds = %.lr.ph168.preheader, %.loopexit
  %.0129166 = phi i32 [ %.4, %.loopexit ], [ 1, %.lr.ph168.preheader ]
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %79
  %81 = load i8, ptr %80, align 1, !tbaa !9, !range !16, !noundef !17
  %82 = trunc nuw i8 %81 to i1
  br i1 %82, label %.loopexit, label %83

83:                                               ; preds = %.lr.ph168
  call void @_Z8bfs_treeii(i32 noundef %78, i32 noundef %.0.lcssa)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %10, x86_fp80 noundef 0xK3FFF8000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) getelementptr inbounds (i8, ptr @f, i64 8388640), ptr noundef nonnull align 16 dereferenceable(32) %10, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  %84 = icmp sgt i32 %.0129166, 1
  br i1 %84, label %85, label %88

85:                                               ; preds = %83
  %86 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @f, i64 32), align 16, !tbaa !18
  %87 = fadd x86_fp80 %86, 0xK3FFF8000000000000000
  store x86_fp80 %87, ptr getelementptr inbounds (i8, ptr @f, i64 32), align 16, !tbaa !18
  br label %92

88:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %11, x86_fp80 noundef 0xK3FFF8000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  %89 = add nsw i32 %.0129166, 1
  %90 = sext i32 %.0129166 to i64
  %91 = getelementptr inbounds %struct.Complex, ptr @f, i64 %90
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %91, ptr noundef nonnull align 16 dereferenceable(32) %11, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  br label %92

92:                                               ; preds = %88, %85
  %.1130 = phi i32 [ %.0129166, %85 ], [ %89, %88 ]
  %93 = load i32, ptr %77, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [100001 x i32], ptr @_ZZ8dfs_treeiE3dis, i64 0, i64 %94
  store i32 0, ptr %95, align 4, !tbaa !5
  %96 = load i32, ptr @tot, align 4, !tbaa !5
  %97 = icmp sgt i32 %96, 1
  br i1 %97, label %.lr.ph151, label %._crit_edge152

._crit_edge152:                                   ; preds = %135, %92
  %.0131.lcssa = phi i32 [ 1, %92 ], [ %.1132, %135 ]
  %.2.lcssa = phi i32 [ %.1130, %92 ], [ %.3, %135 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  %98 = shl nsw i32 %.0131.lcssa, 1
  %99 = add nsw i32 %98, -1
  store i32 %99, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  store i32 %33, ptr %15, align 4, !tbaa !5
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %101 = load i32, ptr %100, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  %102 = icmp slt i32 %101, 1
  br i1 %102, label %.loopexit, label %.preheader140

.lr.ph151:                                        ; preds = %92, %135
  %indvars.iv186 = phi i64 [ %indvars.iv.next187, %135 ], [ 1, %92 ]
  %.2149 = phi i32 [ %.3, %135 ], [ %.1130, %92 ]
  %.0131148 = phi i32 [ %.1132, %135 ], [ 1, %92 ]
  %103 = getelementptr inbounds [100001 x i32], ptr @ord, i64 0, i64 %indvars.iv186
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [100001 x i32], ptr @fa, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [100001 x i32], ptr @_ZZ8dfs_treeiE3dis, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  %112 = getelementptr inbounds [100001 x i32], ptr @_ZZ8dfs_treeiE3dis, i64 0, i64 %105
  store i32 %111, ptr %112, align 4, !tbaa !5
  %113 = icmp slt i32 %111, %.0131148
  br i1 %113, label %114, label %119

114:                                              ; preds = %.lr.ph151
  %115 = sext i32 %111 to i64
  %116 = getelementptr inbounds %struct.Complex, ptr getelementptr inbounds (i8, ptr @f, i64 8388640), i64 %115
  %117 = load x86_fp80, ptr %116, align 16, !tbaa !18
  %118 = fadd x86_fp80 %117, 0xK3FFF8000000000000000
  store x86_fp80 %118, ptr %116, align 16, !tbaa !18
  br label %123

119:                                              ; preds = %.lr.ph151
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %12, x86_fp80 noundef 0xK3FFF8000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  %120 = add nsw i32 %.0131148, 1
  %121 = sext i32 %.0131148 to i64
  %122 = getelementptr inbounds %struct.Complex, ptr getelementptr inbounds (i8, ptr @f, i64 8388640), i64 %121
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %122, ptr noundef nonnull align 16 dereferenceable(32) %12, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br label %123

123:                                              ; preds = %119, %114
  %.1132 = phi i32 [ %.0131148, %114 ], [ %120, %119 ]
  %124 = add nsw i32 %110, 2
  %125 = icmp slt i32 %124, %.2149
  br i1 %125, label %126, label %131

126:                                              ; preds = %123
  %127 = sext i32 %124 to i64
  %128 = getelementptr inbounds %struct.Complex, ptr @f, i64 %127
  %129 = load x86_fp80, ptr %128, align 16, !tbaa !18
  %130 = fadd x86_fp80 %129, 0xK3FFF8000000000000000
  store x86_fp80 %130, ptr %128, align 16, !tbaa !18
  br label %135

131:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %13, x86_fp80 noundef 0xK3FFF8000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  %132 = add nsw i32 %.2149, 1
  %133 = sext i32 %.2149 to i64
  %134 = getelementptr inbounds %struct.Complex, ptr @f, i64 %133
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %134, ptr noundef nonnull align 16 dereferenceable(32) %13, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br label %135

135:                                              ; preds = %131, %126
  %.3 = phi i32 [ %.2149, %126 ], [ %132, %131 ]
  %indvars.iv.next187 = add nuw nsw i64 %indvars.iv186, 1
  %136 = load i32, ptr @tot, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = icmp slt i64 %indvars.iv.next187, %137
  br i1 %138, label %.lr.ph151, label %._crit_edge152, !llvm.loop !20

.preheader140:                                    ; preds = %._crit_edge152, %.preheader140
  %.0128 = phi i32 [ %140, %.preheader140 ], [ 1, %._crit_edge152 ]
  %139 = icmp slt i32 %.0128, %99
  %140 = shl i32 %.0128, 1
  br i1 %139, label %.preheader140, label %.preheader139, !llvm.loop !21

.preheader139:                                    ; preds = %.preheader140
  %141 = icmp slt i32 %.0131.lcssa, %.0128
  br i1 %141, label %.lr.ph156.preheader, label %._crit_edge157

.lr.ph156.preheader:                              ; preds = %.preheader139
  %142 = sext i32 %.0131.lcssa to i64
  br label %.lr.ph156

._crit_edge157:                                   ; preds = %.lr.ph156, %.preheader139
  call void @_Z3FFTiP7Complexi(i32 noundef %.0128, ptr noundef nonnull getelementptr inbounds (i8, ptr @f, i64 8388640), i32 noundef 1)
  %143 = icmp sgt i32 %.0128, 0
  br i1 %143, label %.lr.ph160.preheader, label %.lr.ph165.preheader

.lr.ph160.preheader:                              ; preds = %._crit_edge157
  %wide.trip.count = zext nneg i32 %.0128 to i64
  br label %.lr.ph160

.lr.ph156:                                        ; preds = %.lr.ph156.preheader, %.lr.ph156
  %indvars.iv189 = phi i64 [ %142, %.lr.ph156.preheader ], [ %indvars.iv.next190, %.lr.ph156 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #6
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %16, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  %144 = getelementptr inbounds %struct.Complex, ptr getelementptr inbounds (i8, ptr @f, i64 8388640), i64 %indvars.iv189
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %144, ptr noundef nonnull align 16 dereferenceable(32) %16, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  %indvars.iv.next190 = add nsw i64 %indvars.iv189, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next190 to i32
  %exitcond.not = icmp eq i32 %.0128, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge157, label %.lr.ph156, !llvm.loop !22

.lr.ph165.preheader:                              ; preds = %.lr.ph160, %._crit_edge157
  call void @_Z3FFTiP7Complexi(i32 noundef %.0128, ptr noundef nonnull getelementptr inbounds (i8, ptr @f, i64 8388640), i32 noundef -1)
  %smax = call i32 @llvm.smax.i32(i32 %101, i32 1)
  %wide.trip.count203 = zext nneg i32 %smax to i64
  %xtraiter = and i64 %wide.trip.count203, 1
  %145 = icmp eq i32 %101, 1
  br i1 %145, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph165.preheader.new

.lr.ph165.preheader.new:                          ; preds = %.lr.ph165.preheader
  %unroll_iter = and i64 %wide.trip.count203, 2147483646
  br label %.lr.ph165

.lr.ph160:                                        ; preds = %.lr.ph160.preheader, %.lr.ph160
  %indvars.iv192 = phi i64 [ 0, %.lr.ph160.preheader ], [ %indvars.iv.next193, %.lr.ph160 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #6
  %146 = getelementptr inbounds %struct.Complex, ptr getelementptr inbounds (i8, ptr @f, i64 8388640), i64 %indvars.iv192
  call void @_ZNK7ComplexmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Complex) align 16 %17, ptr noundef nonnull align 16 dereferenceable(32) %146, ptr noundef nonnull align 16 dereferenceable(32) %146)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %146, ptr noundef nonnull align 16 dereferenceable(32) %17, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  %indvars.iv.next193 = add nuw nsw i64 %indvars.iv192, 1
  %exitcond195.not = icmp eq i64 %indvars.iv.next193, %wide.trip.count
  br i1 %exitcond195.not, label %.lr.ph165.preheader, label %.lr.ph160, !llvm.loop !23

.lr.ph165:                                        ; preds = %.lr.ph165, %.lr.ph165.preheader.new
  %indvars.iv198 = phi i64 [ 0, %.lr.ph165.preheader.new ], [ %indvars.iv.next199.1, %.lr.ph165 ]
  %indvars.iv196 = phi i64 [ 2, %.lr.ph165.preheader.new ], [ %indvars.iv.next197.1, %.lr.ph165 ]
  %niter = phi i64 [ 0, %.lr.ph165.preheader.new ], [ %niter.next.1, %.lr.ph165 ]
  %147 = getelementptr inbounds %struct.Complex, ptr getelementptr inbounds (i8, ptr @f, i64 8388640), i64 %indvars.iv198
  %148 = load x86_fp80, ptr %147, align 16, !tbaa !18
  %149 = fadd x86_fp80 %148, 0xK3FFE8000000000000000
  %150 = fptosi x86_fp80 %149 to i64
  %151 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %indvars.iv196
  %152 = load i64, ptr %151, align 16, !tbaa !24
  %153 = sub nsw i64 %152, %150
  store i64 %153, ptr %151, align 16, !tbaa !24
  %indvars.iv.next199 = or disjoint i64 %indvars.iv198, 1
  %indvars.iv.next197 = or disjoint i64 %indvars.iv196, 1
  %154 = getelementptr inbounds %struct.Complex, ptr getelementptr inbounds (i8, ptr @f, i64 8388640), i64 %indvars.iv.next199
  %155 = load x86_fp80, ptr %154, align 16, !tbaa !18
  %156 = fadd x86_fp80 %155, 0xK3FFE8000000000000000
  %157 = fptosi x86_fp80 %156 to i64
  %158 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %indvars.iv.next197
  %159 = load i64, ptr %158, align 8, !tbaa !24
  %160 = sub nsw i64 %159, %157
  store i64 %160, ptr %158, align 8, !tbaa !24
  %indvars.iv.next199.1 = add nuw nsw i64 %indvars.iv198, 2
  %indvars.iv.next197.1 = add nuw nsw i64 %indvars.iv196, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph165, !llvm.loop !26

.loopexit.loopexit.unr-lcssa:                     ; preds = %.lr.ph165, %.lr.ph165.preheader
  %indvars.iv198.unr = phi i64 [ 0, %.lr.ph165.preheader ], [ %indvars.iv.next199.1, %.lr.ph165 ]
  %indvars.iv196.unr = phi i64 [ 2, %.lr.ph165.preheader ], [ %indvars.iv.next197.1, %.lr.ph165 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.lr.ph165.epil

.lr.ph165.epil:                                   ; preds = %.loopexit.loopexit.unr-lcssa
  %161 = getelementptr inbounds %struct.Complex, ptr getelementptr inbounds (i8, ptr @f, i64 8388640), i64 %indvars.iv198.unr
  %162 = load x86_fp80, ptr %161, align 16, !tbaa !18
  %163 = fadd x86_fp80 %162, 0xK3FFE8000000000000000
  %164 = fptosi x86_fp80 %163 to i64
  %165 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %indvars.iv196.unr
  %166 = load i64, ptr %165, align 8, !tbaa !24
  %167 = sub nsw i64 %166, %164
  store i64 %167, ptr %165, align 8, !tbaa !24
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph165.epil, %.loopexit.loopexit.unr-lcssa, %._crit_edge152, %.lr.ph168
  %.4 = phi i32 [ %.0129166, %.lr.ph168 ], [ %.2.lcssa, %._crit_edge152 ], [ %.2.lcssa, %.loopexit.loopexit.unr-lcssa ], [ %.2.lcssa, %.lr.ph165.epil ]
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %169 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %169, label %.lr.ph168, label %._crit_edge169

170:                                              ; preds = %170, %._crit_edge169
  %.0122 = phi i32 [ 1, %._crit_edge169 ], [ %172, %170 ]
  %171 = icmp slt i32 %.0122, %74
  %172 = shl i32 %.0122, 1
  br i1 %171, label %170, label %.preheader, !llvm.loop !27

.preheader:                                       ; preds = %170
  %173 = icmp slt i32 %.0129.lcssa, %.0122
  br i1 %173, label %.lr.ph172.preheader, label %._crit_edge173

.lr.ph172.preheader:                              ; preds = %.preheader
  %174 = sext i32 %.0129.lcssa to i64
  br label %.lr.ph172

._crit_edge173:                                   ; preds = %.lr.ph172, %.preheader
  call void @_Z3FFTiP7Complexi(i32 noundef %.0122, ptr noundef nonnull @f, i32 noundef 1)
  %175 = icmp sgt i32 %.0122, 0
  br i1 %175, label %.lr.ph176.preheader, label %._crit_edge177

.lr.ph176.preheader:                              ; preds = %._crit_edge173
  %wide.trip.count213 = zext nneg i32 %.0122 to i64
  br label %.lr.ph176

.lr.ph172:                                        ; preds = %.lr.ph172.preheader, %.lr.ph172
  %indvars.iv205 = phi i64 [ %174, %.lr.ph172.preheader ], [ %indvars.iv.next206, %.lr.ph172 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #6
  call void @_ZN7ComplexC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %19, x86_fp80 noundef 0xK00000000000000000000, x86_fp80 noundef 0xK00000000000000000000)
  %176 = getelementptr inbounds %struct.Complex, ptr @f, i64 %indvars.iv205
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %176, ptr noundef nonnull align 16 dereferenceable(32) %19, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  %indvars.iv.next206 = add nsw i64 %indvars.iv205, 1
  %lftr.wideiv208 = trunc i64 %indvars.iv.next206 to i32
  %exitcond209.not = icmp eq i32 %.0122, %lftr.wideiv208
  br i1 %exitcond209.not, label %._crit_edge173, label %.lr.ph172, !llvm.loop !28

._crit_edge177:                                   ; preds = %.lr.ph176, %._crit_edge173
  call void @_Z3FFTiP7Complexi(i32 noundef %.0122, ptr noundef nonnull @f, i32 noundef -1)
  %177 = icmp sgt i32 %76, 0
  br i1 %177, label %.lr.ph180.preheader, label %._crit_edge181

.lr.ph180.preheader:                              ; preds = %._crit_edge177
  %wide.trip.count218 = zext nneg i32 %76 to i64
  %xtraiter221 = and i64 %wide.trip.count218, 1
  %178 = icmp eq i32 %76, 1
  br i1 %178, label %._crit_edge181.loopexit.unr-lcssa, label %.lr.ph180.preheader.new

.lr.ph180.preheader.new:                          ; preds = %.lr.ph180.preheader
  %unroll_iter223 = and i64 %wide.trip.count218, 2147483646
  br label %.lr.ph180

.lr.ph176:                                        ; preds = %.lr.ph176.preheader, %.lr.ph176
  %indvars.iv210 = phi i64 [ 0, %.lr.ph176.preheader ], [ %indvars.iv.next211, %.lr.ph176 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #6
  %179 = getelementptr inbounds %struct.Complex, ptr @f, i64 %indvars.iv210
  call void @_ZNK7ComplexmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Complex) align 16 %20, ptr noundef nonnull align 16 dereferenceable(32) %179, ptr noundef nonnull align 16 dereferenceable(32) %179)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %179, ptr noundef nonnull align 16 dereferenceable(32) %20, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  %indvars.iv.next211 = add nuw nsw i64 %indvars.iv210, 1
  %exitcond214.not = icmp eq i64 %indvars.iv.next211, %wide.trip.count213
  br i1 %exitcond214.not, label %._crit_edge177, label %.lr.ph176, !llvm.loop !29

._crit_edge181.loopexit.unr-lcssa:                ; preds = %.lr.ph180, %.lr.ph180.preheader
  %indvars.iv215.unr = phi i64 [ 0, %.lr.ph180.preheader ], [ %indvars.iv.next216.1, %.lr.ph180 ]
  %lcmp.mod222.not = icmp eq i64 %xtraiter221, 0
  br i1 %lcmp.mod222.not, label %._crit_edge181, label %.lr.ph180.epil

.lr.ph180.epil:                                   ; preds = %._crit_edge181.loopexit.unr-lcssa
  %180 = getelementptr inbounds %struct.Complex, ptr @f, i64 %indvars.iv215.unr
  %181 = load x86_fp80, ptr %180, align 16, !tbaa !18
  %182 = fadd x86_fp80 %181, 0xK3FFE8000000000000000
  %183 = fptosi x86_fp80 %182 to i64
  %184 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %indvars.iv215.unr
  %185 = load i64, ptr %184, align 8, !tbaa !24
  %186 = add nsw i64 %185, %183
  store i64 %186, ptr %184, align 8, !tbaa !24
  br label %._crit_edge181

._crit_edge181:                                   ; preds = %.lr.ph180.epil, %._crit_edge181.loopexit.unr-lcssa, %._crit_edge177
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  %187 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  store ptr %187, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  %188 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  store ptr %188, ptr %22, align 8
  %189 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br i1 %189, label %.lr.ph183, label %._crit_edge184

.lr.ph180:                                        ; preds = %.lr.ph180, %.lr.ph180.preheader.new
  %indvars.iv215 = phi i64 [ 0, %.lr.ph180.preheader.new ], [ %indvars.iv.next216.1, %.lr.ph180 ]
  %niter224 = phi i64 [ 0, %.lr.ph180.preheader.new ], [ %niter224.next.1, %.lr.ph180 ]
  %190 = getelementptr inbounds %struct.Complex, ptr @f, i64 %indvars.iv215
  %191 = load x86_fp80, ptr %190, align 16, !tbaa !18
  %192 = fadd x86_fp80 %191, 0xK3FFE8000000000000000
  %193 = fptosi x86_fp80 %192 to i64
  %194 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %indvars.iv215
  %195 = load i64, ptr %194, align 16, !tbaa !24
  %196 = add nsw i64 %195, %193
  store i64 %196, ptr %194, align 16, !tbaa !24
  %indvars.iv.next216 = or disjoint i64 %indvars.iv215, 1
  %197 = getelementptr inbounds %struct.Complex, ptr @f, i64 %indvars.iv.next216
  %198 = load x86_fp80, ptr %197, align 16, !tbaa !18
  %199 = fadd x86_fp80 %198, 0xK3FFE8000000000000000
  %200 = fptosi x86_fp80 %199 to i64
  %201 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %indvars.iv.next216
  %202 = load i64, ptr %201, align 8, !tbaa !24
  %203 = add nsw i64 %202, %200
  store i64 %203, ptr %201, align 8, !tbaa !24
  %indvars.iv.next216.1 = add nuw nsw i64 %indvars.iv215, 2
  %niter224.next.1 = add i64 %niter224, 2
  %niter224.ncmp.1 = icmp eq i64 %niter224.next.1, %unroll_iter223
  br i1 %niter224.ncmp.1, label %._crit_edge181.loopexit.unr-lcssa, label %.lr.ph180, !llvm.loop !30

._crit_edge184:                                   ; preds = %211, %._crit_edge181
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  ret void

.lr.ph183:                                        ; preds = %._crit_edge181, %211
  %204 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [100001 x i8], ptr @ban, i64 0, i64 %206
  %208 = load i8, ptr %207, align 1, !tbaa !9, !range !16, !noundef !17
  %209 = trunc nuw i8 %208 to i1
  br i1 %209, label %211, label %210

210:                                              ; preds = %.lr.ph183
  call void @_Z8dfs_treei(i32 noundef %205)
  br label %211

211:                                              ; preds = %210, %.lr.ph183
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %213 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br i1 %213, label %.lr.ph183, label %._crit_edge184
}

; 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 #4

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i64 0, i64 16, !12, i64 16, i64 16, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"long double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !13, i64 0}
!19 = !{!"_ZTS7Complex", !13, i64 0, !13, i64 16}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = !{!25, !25, i64 0}
!25 = !{!"long long", !7, i64 0}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = distinct !{!29, !15}
!30 = distinct !{!30, !15}


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