; LLVM IR from aspuru-guzik-group/qtorch :: src/tests.ll (Z21testArbitraryTwoQubitRSt14basic_ofstreamIcSt11char_traitsIcEE)

; 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::shared_ptr.178" = type { %"class.std::__shared_ptr.179" }
%"class.std::__shared_ptr.179" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::complex<double>, std::allocator<std::complex<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::complex<double>, std::allocator<std::complex<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::complex<double>, std::allocator<std::complex<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::complex<double>, std::allocator<std::complex<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.qtorch::ContractionTools" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::complex", %"class.std::vector.186", %"class.std::random_device", %"class.std::shared_ptr.178", %"class.std::mersenne_twister_engine", i8, i32 }
%"class.std::complex" = type { { double, double } }
%"class.std::vector.186" = type { %"struct.std::_Vector_base.187" }
%"struct.std::_Vector_base.187" = type { %"struct.std::_Vector_base<std::shared_ptr<std::vector<std::shared_ptr<qtorch::Node>>>, std::allocator<std::shared_ptr<std::vector<std::shared_ptr<qtorch::Node>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<std::vector<std::shared_ptr<qtorch::Node>>>, std::allocator<std::shared_ptr<std::vector<std::shared_ptr<qtorch::Node>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<std::vector<std::shared_ptr<qtorch::Node>>>, std::allocator<std::shared_ptr<std::vector<std::shared_ptr<qtorch::Node>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<std::vector<std::shared_ptr<qtorch::Node>>>, std::allocator<std::shared_ptr<std::vector<std::shared_ptr<qtorch::Node>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::random_device" = type { %union.anon.191 }
%union.anon.191 = type { %"class.std::mersenne_twister_engine" }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }

@.str.127 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.171 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.172 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.173 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.174 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.176 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.179 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.180 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.181 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.182 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.184 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.185 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.186 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.187 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.188 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.192 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.193 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.194 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.195 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [55 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #1

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248)) #2 align 2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.178") align 8, ptr noundef nonnull align 8 dereferenceable(10128), i32 noundef, i32 noundef, i32 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20applySimple2qubitSimRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSt14basic_ofstreamIcS2_E(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(248)) #2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6qtorch16ContractionToolsD2Ev(ptr noundef nonnull align 8 dereferenceable(10128)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z21testArbitraryTwoQubitRSt14basic_ofstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(248) %0) #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.std::basic_ofstream", align 8
  %13 = alloca %"class.std::basic_ofstream", align 8
  %14 = alloca %"class.qtorch::ContractionTools", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca %"class.std::shared_ptr.178", align 8
  %20 = alloca %"class.std::complex", align 8
  %21 = alloca %"class.std::complex", align 8
  %22 = alloca %"class.std::complex", align 8
  %23 = alloca %"class.std::complex", align 8
  %24 = alloca %"class.std::complex", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::allocator", align 1
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator", align 1
  %29 = alloca %"class.std::shared_ptr.178", align 8
  %30 = alloca %"class.std::complex", align 8
  %31 = alloca %"class.std::complex", align 8
  %32 = alloca %"class.std::complex", align 8
  %33 = alloca %"class.std::complex", align 8
  %34 = alloca %"class.std::complex", align 8
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  %36 = alloca %"class.std::allocator", align 1
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::allocator", align 1
  %39 = alloca %"class.std::shared_ptr.178", align 8
  %40 = alloca %"class.std::complex", align 8
  %41 = alloca %"class.std::complex", align 8
  %42 = alloca %"class.std::complex", align 8
  %43 = alloca %"class.std::complex", align 8
  %44 = alloca %"class.std::complex", align 8
  %45 = alloca %"class.std::__cxx11::basic_string", align 8
  %46 = alloca %"class.std::allocator", align 1
  %47 = alloca %"class.std::__cxx11::basic_string", align 8
  %48 = alloca %"class.std::allocator", align 1
  %49 = alloca %"class.std::shared_ptr.178", align 8
  %50 = alloca %"class.std::complex", align 8
  %51 = alloca %"class.std::complex", align 8
  %52 = alloca %"class.std::complex", align 8
  %53 = alloca %"class.std::complex", align 8
  %54 = alloca %"class.std::complex", align 8
  %55 = alloca %"class.std::__cxx11::basic_string", align 8
  %56 = alloca %"class.std::allocator", align 1
  %57 = alloca %"class.std::__cxx11::basic_string", align 8
  %58 = alloca %"class.std::allocator", align 1
  %59 = alloca %"class.std::shared_ptr.178", align 8
  %60 = alloca %"class.std::complex", align 8
  %61 = alloca %"class.std::complex", align 8
  %62 = alloca %"class.std::complex", align 8
  %63 = alloca %"class.std::complex", align 8
  %64 = alloca %"class.std::complex", align 8
  %65 = alloca %"class.std::__cxx11::basic_string", align 8
  %66 = alloca %"class.std::allocator", align 1
  %67 = alloca %"class.std::__cxx11::basic_string", align 8
  %68 = alloca %"class.std::allocator", align 1
  %69 = alloca %"class.std::shared_ptr.178", align 8
  %70 = alloca %"class.std::complex", align 8
  %71 = alloca %"class.std::complex", align 8
  %72 = alloca %"class.std::complex", align 8
  %73 = alloca %"class.std::complex", align 8
  %74 = alloca %"class.std::complex", align 8
  %75 = alloca %"class.std::__cxx11::basic_string", align 8
  %76 = alloca %"class.std::allocator", align 1
  %77 = alloca %"class.std::__cxx11::basic_string", align 8
  %78 = alloca %"class.std::allocator", align 1
  %79 = alloca %"class.std::shared_ptr.178", align 8
  %80 = alloca %"class.std::complex", align 8
  %81 = alloca %"class.std::complex", align 8
  %82 = alloca %"class.std::complex", align 8
  %83 = alloca %"class.std::complex", align 8
  %84 = alloca %"class.std::complex", align 8
  %85 = alloca %"class.std::__cxx11::basic_string", align 8
  %86 = alloca %"class.std::allocator", align 1
  %87 = alloca %"class.std::__cxx11::basic_string", align 8
  %88 = alloca %"class.std::allocator", align 1
  %89 = alloca %"class.std::shared_ptr.178", align 8
  %90 = alloca %"class.std::complex", align 8
  %91 = alloca %"class.std::complex", align 8
  %92 = alloca %"class.std::complex", align 8
  %93 = alloca %"class.std::complex", align 8
  %94 = alloca %"class.std::complex", align 8
  %95 = alloca %"class.std::__cxx11::basic_string", align 8
  %96 = alloca %"class.std::allocator", align 1
  %97 = alloca %"class.std::__cxx11::basic_string", align 8
  %98 = alloca %"class.std::allocator", align 1
  %99 = alloca %"class.std::shared_ptr.178", align 8
  %100 = alloca %"class.std::complex", align 8
  %101 = alloca %"class.std::complex", align 8
  %102 = alloca %"class.std::complex", align 8
  %103 = alloca %"class.std::complex", align 8
  %104 = alloca %"class.std::complex", align 8
  %105 = alloca %"class.std::__cxx11::basic_string", align 8
  %106 = alloca %"class.std::allocator", align 1
  %107 = alloca %"class.std::__cxx11::basic_string", align 8
  %108 = alloca %"class.std::allocator", align 1
  %109 = alloca %"class.std::shared_ptr.178", align 8
  %110 = alloca %"class.std::complex", align 8
  %111 = alloca %"class.std::complex", align 8
  %112 = alloca %"class.std::complex", align 8
  %113 = alloca %"class.std::complex", align 8
  %114 = alloca %"class.std::complex", align 8
  %115 = alloca %"class.std::__cxx11::basic_string", align 8
  %116 = alloca %"class.std::allocator", align 1
  %117 = alloca %"class.std::__cxx11::basic_string", align 8
  %118 = alloca %"class.std::allocator", align 1
  %119 = alloca %"class.std::__cxx11::basic_string", align 8
  %120 = alloca %"class.std::allocator", align 1
  %121 = alloca %"class.std::__cxx11::basic_string", align 8
  %122 = alloca %"class.std::allocator", align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef @.str.171)
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %1306, %1
  %128 = load i32, ptr %4, align 4, !tbaa !9
  %129 = icmp slt i32 %128, 100
  br i1 %129, label %131, label %130

130:                                              ; preds = %127
  store i32 2, ptr %5, align 4
  br label %1318

131:                                              ; preds = %127
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef @.str.172)
  %134 = load i32, ptr %4, align 4, !tbaa !9
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %133, i32 noundef %134)
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %135, ptr noundef @.str.173)
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %137, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef @.str.174, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %139 unwind label %155

139:                                              ; preds = %131
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #6
  %140 = load i32, ptr %4, align 4, !tbaa !9
  call void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %10, i32 noundef %140) #6
  %141 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %142 unwind label %159

142:                                              ; preds = %139
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  %143 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef @.str.173)
          to label %144 unwind label %163

144:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #6
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_Z20applySimple2qubitSimRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSt14basic_ofstreamIcS2_E(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(248) %145)
          to label %146 unwind label %167

146:                                              ; preds = %144
  %147 = call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %148 = icmp eq i64 %147, 0
  br i1 %148, label %149, label %175

149:                                              ; preds = %146
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %150, ptr noundef @.str.175)
          to label %152 unwind label %171

152:                                              ; preds = %149
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %154 unwind label %171

154:                                              ; preds = %152
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %1303

155:                                              ; preds = %131
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %8, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  br label %1317

159:                                              ; preds = %139
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %8, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  br label %1316

163:                                              ; preds = %142
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %8, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %9, align 4
  br label %1316

167:                                              ; preds = %144
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %8, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %9, align 4
  br label %1315

171:                                              ; preds = %152, %149
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %8, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %9, align 4
  br label %1314

175:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 512, ptr %12) #6
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %12, ptr noundef @.str.176, i32 noundef 16)
          to label %176 unwind label %264

176:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 512, ptr %13) #6
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %13, ptr noundef @.str.177, i32 noundef 16)
          to label %177 unwind label %268

177:                                              ; preds = %176
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 2)
          to label %179 unwind label %272

179:                                              ; preds = %177
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %178, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %181 unwind label %272

181:                                              ; preds = %179
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %180, ptr noundef @.str.178)
          to label %183 unwind label %272

183:                                              ; preds = %181
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %182, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %185 unwind label %272

185:                                              ; preds = %183
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %184, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %187 unwind label %272

187:                                              ; preds = %185
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.179)
          to label %189 unwind label %272

189:                                              ; preds = %187
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %191 unwind label %272

191:                                              ; preds = %189
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %12)
          to label %192 unwind label %272

192:                                              ; preds = %191
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @.str.180)
          to label %194 unwind label %272

194:                                              ; preds = %192
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %13)
          to label %195 unwind label %272

195:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 10128, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %196 unwind label %276

196:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %197 unwind label %280

197:                                              ; preds = %196
  invoke void @_ZN6qtorch16ContractionToolsC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_i(ptr noundef nonnull align 8 dereferenceable(10128) %14, ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %17, i32 noundef 8)
          to label %198 unwind label %284

198:                                              ; preds = %197
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.178") align 8 %19, ptr noundef nonnull align 8 dereferenceable(10128) %14, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %199 unwind label %290

199:                                              ; preds = %198
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  %201 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef @.str.181)
          to label %202 unwind label %290

202:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  %203 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %204 = getelementptr inbounds %"class.std::complex", ptr %20, i32 0, i32 0
  %205 = getelementptr inbounds { double, double }, ptr %204, i32 0, i32 0
  %206 = extractvalue { double, double } %203, 0
  store double %206, ptr %205, align 8
  %207 = getelementptr inbounds { double, double }, ptr %204, i32 0, i32 1
  %208 = extractvalue { double, double } %203, 1
  store double %208, ptr %207, align 8
  %209 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %210 unwind label %294

210:                                              ; preds = %202
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %209, ptr noundef @.str.182)
          to label %212 unwind label %294

212:                                              ; preds = %210
  %213 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 0) #6
  %214 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %211, ptr noundef nonnull align 8 dereferenceable(16) %213)
          to label %215 unwind label %294

215:                                              ; preds = %212
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %214, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %217 unwind label %294

217:                                              ; preds = %215
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %218 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %219 = getelementptr inbounds %"class.std::complex", ptr %22, i32 0, i32 0
  %220 = getelementptr inbounds { double, double }, ptr %219, i32 0, i32 0
  %221 = extractvalue { double, double } %218, 0
  store double %221, ptr %220, align 8
  %222 = getelementptr inbounds { double, double }, ptr %219, i32 0, i32 1
  %223 = extractvalue { double, double } %218, 1
  store double %223, ptr %222, align 8
  %224 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 0) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  %225 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %224)
          to label %226 unwind label %298

226:                                              ; preds = %217
  %227 = getelementptr inbounds %"class.std::complex", ptr %21, i32 0, i32 0
  %228 = getelementptr inbounds { double, double }, ptr %227, i32 0, i32 0
  %229 = extractvalue { double, double } %225, 0
  store double %229, ptr %228, align 8
  %230 = getelementptr inbounds { double, double }, ptr %227, i32 0, i32 1
  %231 = extractvalue { double, double } %225, 1
  store double %231, ptr %230, align 8
  %232 = invoke noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %233 unwind label %298

233:                                              ; preds = %226
  %234 = invoke noundef double @_ZSt3absd(double noundef %232)
          to label %235 unwind label %298

235:                                              ; preds = %233
  %236 = fcmp ogt double %234, 1.000000e-05
  br i1 %236, label %257, label %237

237:                                              ; preds = %235
  %238 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %239 = getelementptr inbounds %"class.std::complex", ptr %24, i32 0, i32 0
  %240 = getelementptr inbounds { double, double }, ptr %239, i32 0, i32 0
  %241 = extractvalue { double, double } %238, 0
  store double %241, ptr %240, align 8
  %242 = getelementptr inbounds { double, double }, ptr %239, i32 0, i32 1
  %243 = extractvalue { double, double } %238, 1
  store double %243, ptr %242, align 8
  %244 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 0) #6
  %245 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %244)
          to label %246 unwind label %302

246:                                              ; preds = %237
  %247 = getelementptr inbounds %"class.std::complex", ptr %23, i32 0, i32 0
  %248 = getelementptr inbounds { double, double }, ptr %247, i32 0, i32 0
  %249 = extractvalue { double, double } %245, 0
  store double %249, ptr %248, align 8
  %250 = getelementptr inbounds { double, double }, ptr %247, i32 0, i32 1
  %251 = extractvalue { double, double } %245, 1
  store double %251, ptr %250, align 8
  %252 = invoke noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %253 unwind label %302

253:                                              ; preds = %246
  %254 = invoke noundef double @_ZSt3absd(double noundef %252)
          to label %255 unwind label %302

255:                                              ; preds = %253
  %256 = fcmp ogt double %254, 1.000000e-05
  br label %257

257:                                              ; preds = %255, %235
  %258 = phi i1 [ true, %235 ], [ %256, %255 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  br i1 %258, label %259, label %325

259:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %260 unwind label %307

260:                                              ; preds = %259
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %261 unwind label %311

261:                                              ; preds = %260
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %262 unwind label %316

262:                                              ; preds = %261
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %263 unwind label %320

263:                                              ; preds = %262
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %1302

264:                                              ; preds = %175
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %8, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %9, align 4
  br label %1313

268:                                              ; preds = %176
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %8, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %9, align 4
  br label %1312

272:                                              ; preds = %194, %192, %191, %189, %187, %185, %183, %181, %179, %177
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %8, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %9, align 4
  br label %1311

276:                                              ; preds = %195
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %8, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %9, align 4
  br label %289

280:                                              ; preds = %196
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %8, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %9, align 4
  br label %288

284:                                              ; preds = %197
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %8, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %288

288:                                              ; preds = %284, %280
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %289

289:                                              ; preds = %288, %276
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %1310

290:                                              ; preds = %1298, %1202, %1201, %1200, %1198, %1197, %1101, %1100, %1099, %1097, %1096, %1000, %999, %998, %996, %995, %994, %992, %990, %988, %986, %984, %982, %980, %978, %976, %974, %972, %971, %875, %874, %873, %871, %870, %774, %773, %772, %770, %769, %673, %672, %671, %669, %668, %667, %665, %663, %661, %659, %657, %655, %653, %652, %556, %555, %554, %552, %551, %455, %454, %453, %451, %450, %449, %447, %445, %443, %441, %439, %437, %435, %433, %431, %429, %427, %426, %330, %329, %328, %326, %325, %199, %198
  %291 = landingpad { ptr, i32 }
          cleanup
  %292 = extractvalue { ptr, i32 } %291, 0
  store ptr %292, ptr %8, align 8
  %293 = extractvalue { ptr, i32 } %291, 1
  store i32 %293, ptr %9, align 4
  br label %1309

294:                                              ; preds = %215, %212, %210, %202
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %8, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  br label %1309

298:                                              ; preds = %233, %226, %217
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %8, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %9, align 4
  br label %306

302:                                              ; preds = %253, %246, %237
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %8, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %306

306:                                              ; preds = %302, %298
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  br label %1309

307:                                              ; preds = %259
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %8, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %9, align 4
  br label %315

311:                                              ; preds = %260
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %8, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  br label %315

315:                                              ; preds = %311, %307
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  br label %1309

316:                                              ; preds = %261
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %8, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %9, align 4
  br label %324

320:                                              ; preds = %262
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %8, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  br label %324

324:                                              ; preds = %320, %316
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #6
  br label %1309

325:                                              ; preds = %257
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %13, ptr noundef @.str.177, i32 noundef 16)
          to label %326 unwind label %290

326:                                              ; preds = %325
  %327 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @.str.183)
          to label %328 unwind label %290

328:                                              ; preds = %326
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %13)
          to label %329 unwind label %290

329:                                              ; preds = %328
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %14)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.178") align 8 %29, ptr noundef nonnull align 8 dereferenceable(10128) %14, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %330 unwind label %290

330:                                              ; preds = %329
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  %331 = load ptr, ptr %3, align 8, !tbaa !5
  %332 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %331, ptr noundef @.str.184)
          to label %333 unwind label %290

333:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  %334 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %335 = getelementptr inbounds %"class.std::complex", ptr %30, i32 0, i32 0
  %336 = getelementptr inbounds { double, double }, ptr %335, i32 0, i32 0
  %337 = extractvalue { double, double } %334, 0
  store double %337, ptr %336, align 8
  %338 = getelementptr inbounds { double, double }, ptr %335, i32 0, i32 1
  %339 = extractvalue { double, double } %334, 1
  store double %339, ptr %338, align 8
  %340 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %332, ptr noundef nonnull align 8 dereferenceable(16) %30)
          to label %341 unwind label %395

341:                                              ; preds = %333
  %342 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %340, ptr noundef @.str.182)
          to label %343 unwind label %395

343:                                              ; preds = %341
  %344 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 3) #6
  %345 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %342, ptr noundef nonnull align 8 dereferenceable(16) %344)
          to label %346 unwind label %395

346:                                              ; preds = %343
  %347 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %345, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %348 unwind label %395

348:                                              ; preds = %346
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #6
  %349 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %350 = getelementptr inbounds %"class.std::complex", ptr %32, i32 0, i32 0
  %351 = getelementptr inbounds { double, double }, ptr %350, i32 0, i32 0
  %352 = extractvalue { double, double } %349, 0
  store double %352, ptr %351, align 8
  %353 = getelementptr inbounds { double, double }, ptr %350, i32 0, i32 1
  %354 = extractvalue { double, double } %349, 1
  store double %354, ptr %353, align 8
  %355 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #6
  %356 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %355)
          to label %357 unwind label %399

357:                                              ; preds = %348
  %358 = getelementptr inbounds %"class.std::complex", ptr %31, i32 0, i32 0
  %359 = getelementptr inbounds { double, double }, ptr %358, i32 0, i32 0
  %360 = extractvalue { double, double } %356, 0
  store double %360, ptr %359, align 8
  %361 = getelementptr inbounds { double, double }, ptr %358, i32 0, i32 1
  %362 = extractvalue { double, double } %356, 1
  store double %362, ptr %361, align 8
  %363 = invoke noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %364 unwind label %399

364:                                              ; preds = %357
  %365 = invoke noundef double @_ZSt3absd(double noundef %363)
          to label %366 unwind label %399

366:                                              ; preds = %364
  %367 = fcmp ogt double %365, 1.000000e-05
  br i1 %367, label %388, label %368

368:                                              ; preds = %366
  %369 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %370 = getelementptr inbounds %"class.std::complex", ptr %34, i32 0, i32 0
  %371 = getelementptr inbounds { double, double }, ptr %370, i32 0, i32 0
  %372 = extractvalue { double, double } %369, 0
  store double %372, ptr %371, align 8
  %373 = getelementptr inbounds { double, double }, ptr %370, i32 0, i32 1
  %374 = extractvalue { double, double } %369, 1
  store double %374, ptr %373, align 8
  %375 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 3) #6
  %376 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(16) %375)
          to label %377 unwind label %403

377:                                              ; preds = %368
  %378 = getelementptr inbounds %"class.std::complex", ptr %33, i32 0, i32 0
  %379 = getelementptr inbounds { double, double }, ptr %378, i32 0, i32 0
  %380 = extractvalue { double, double } %376, 0
  store double %380, ptr %379, align 8
  %381 = getelementptr inbounds { double, double }, ptr %378, i32 0, i32 1
  %382 = extractvalue { double, double } %376, 1
  store double %382, ptr %381, align 8
  %383 = invoke noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %33)
          to label %384 unwind label %403

384:                                              ; preds = %377
  %385 = invoke noundef double @_ZSt3absd(double noundef %383)
          to label %386 unwind label %403

386:                                              ; preds = %384
  %387 = fcmp ogt double %385, 1.000000e-05
  br label %388

388:                                              ; preds = %386, %366
  %389 = phi i1 [ true, %366 ], [ %387, %386 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  br i1 %389, label %390, label %426

390:                                              ; preds = %388
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %391 unwind label %408

391:                                              ; preds = %390
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %392 unwind label %412

392:                                              ; preds = %391
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %38)
          to label %393 unwind label %417

393:                                              ; preds = %392
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %37)
          to label %394 unwind label %421

394:                                              ; preds = %393
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #6
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %1302

395:                                              ; preds = %346, %343, %341, %333
  %396 = landingpad { ptr, i32 }
          cleanup
  %397 = extractvalue { ptr, i32 } %396, 0
  store ptr %397, ptr %8, align 8
  %398 = extractvalue { ptr, i32 } %396, 1
  store i32 %398, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  br label %1309

399:                                              ; preds = %364, %357, %348
  %400 = landingpad { ptr, i32 }
          cleanup
  %401 = extractvalue { ptr, i32 } %400, 0
  store ptr %401, ptr %8, align 8
  %402 = extractvalue { ptr, i32 } %400, 1
  store i32 %402, ptr %9, align 4
  br label %407

403:                                              ; preds = %384, %377, %368
  %404 = landingpad { ptr, i32 }
          cleanup
  %405 = extractvalue { ptr, i32 } %404, 0
  store ptr %405, ptr %8, align 8
  %406 = extractvalue { ptr, i32 } %404, 1
  store i32 %406, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  br label %407

407:                                              ; preds = %403, %399
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  br label %1309

408:                                              ; preds = %390
  %409 = landingpad { ptr, i32 }
          cleanup
  %410 = extractvalue { ptr, i32 } %409, 0
  store ptr %410, ptr %8, align 8
  %411 = extractvalue { ptr, i32 } %409, 1
  store i32 %411, ptr %9, align 4
  br label %416

412:                                              ; preds = %391
  %413 = landingpad { ptr, i32 }
          cleanup
  %414 = extractvalue { ptr, i32 } %413, 0
  store ptr %414, ptr %8, align 8
  %415 = extractvalue { ptr, i32 } %413, 1
  store i32 %415, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  br label %416

416:                                              ; preds = %412, %408
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #6
  br label %1309

417:                                              ; preds = %392
  %418 = landingpad { ptr, i32 }
          cleanup
  %419 = extractvalue { ptr, i32 } %418, 0
  store ptr %419, ptr %8, align 8
  %420 = extractvalue { ptr, i32 } %418, 1
  store i32 %420, ptr %9, align 4
  br label %425

421:                                              ; preds = %393
  %422 = landingpad { ptr, i32 }
          cleanup
  %423 = extractvalue { ptr, i32 } %422, 0
  store ptr %423, ptr %8, align 8
  %424 = extractvalue { ptr, i32 } %422, 1
  store i32 %424, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #6
  br label %425

425:                                              ; preds = %421, %417
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #6
  br label %1309

426:                                              ; preds = %388
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %12, ptr noundef @.str.176, i32 noundef 16)
          to label %427 unwind label %290

427:                                              ; preds = %426
  %428 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 2)
          to label %429 unwind label %290

429:                                              ; preds = %427
  %430 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %428, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %431 unwind label %290

431:                                              ; preds = %429
  %432 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.127)
          to label %433 unwind label %290

433:                                              ; preds = %431
  %434 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %432, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %435 unwind label %290

435:                                              ; preds = %433
  %436 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %434, ptr noundef @.str.185)
          to label %437 unwind label %290

437:                                              ; preds = %435
  %438 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %436, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %439 unwind label %290

439:                                              ; preds = %437
  %440 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.178)
          to label %441 unwind label %290

441:                                              ; preds = %439
  %442 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %440, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %443 unwind label %290

443:                                              ; preds = %441
  %444 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %442, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %445 unwind label %290

445:                                              ; preds = %443
  %446 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.179)
          to label %447 unwind label %290

447:                                              ; preds = %445
  %448 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %446, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %449 unwind label %290

449:                                              ; preds = %447
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %12)
          to label %450 unwind label %290

450:                                              ; preds = %449
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %13, ptr noundef @.str.177, i32 noundef 16)
          to label %451 unwind label %290

451:                                              ; preds = %450
  %452 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @.str.180)
          to label %453 unwind label %290

453:                                              ; preds = %451
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %13)
          to label %454 unwind label %290

454:                                              ; preds = %453
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %14)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.178") align 8 %39, ptr noundef nonnull align 8 dereferenceable(10128) %14, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %455 unwind label %290

455:                                              ; preds = %454
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %39) #6
  %456 = load ptr, ptr %3, align 8, !tbaa !5
  %457 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %456, ptr noundef @.str.186)
          to label %458 unwind label %290

458:                                              ; preds = %455
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #6
  %459 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %460 = getelementptr inbounds %"class.std::complex", ptr %40, i32 0, i32 0
  %461 = getelementptr inbounds { double, double }, ptr %460, i32 0, i32 0
  %462 = extractvalue { double, double } %459, 0
  store double %462, ptr %461, align 8
  %463 = getelementptr inbounds { double, double }, ptr %460, i32 0, i32 1
  %464 = extractvalue { double, double } %459, 1
  store double %464, ptr %463, align 8
  %465 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %457, ptr noundef nonnull align 8 dereferenceable(16) %40)
          to label %466 unwind label %520

466:                                              ; preds = %458
  %467 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %465, ptr noundef @.str.182)
          to label %468 unwind label %520

468:                                              ; preds = %466
  %469 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 4) #6
  %470 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %467, ptr noundef nonnull align 8 dereferenceable(16) %469)
          to label %471 unwind label %520

471:                                              ; preds = %468
  %472 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %470, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %473 unwind label %520

473:                                              ; preds = %471
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #6
  %474 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %475 = getelementptr inbounds %"class.std::complex", ptr %42, i32 0, i32 0
  %476 = getelementptr inbounds { double, double }, ptr %475, i32 0, i32 0
  %477 = extractvalue { double, double } %474, 0
  store double %477, ptr %476, align 8
  %478 = getelementptr inbounds { double, double }, ptr %475, i32 0, i32 1
  %479 = extractvalue { double, double } %474, 1
  store double %479, ptr %478, align 8
  %480 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #6
  %481 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 8 dereferenceable(16) %480)
          to label %482 unwind label %524

482:                                              ; preds = %473
  %483 = getelementptr inbounds %"class.std::complex", ptr %41, i32 0, i32 0
  %484 = getelementptr inbounds { double, double }, ptr %483, i32 0, i32 0
  %485 = extractvalue { double, double } %481, 0
  store double %485, ptr %484, align 8
  %486 = getelementptr inbounds { double, double }, ptr %483, i32 0, i32 1
  %487 = extractvalue { double, double } %481, 1
  store double %487, ptr %486, align 8
  %488 = invoke noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %41)
          to label %489 unwind label %524

489:                                              ; preds = %482
  %490 = invoke noundef double @_ZSt3absd(double noundef %488)
          to label %491 unwind label %524

491:                                              ; preds = %489
  %492 = fcmp ogt double %490, 1.000000e-05
  br i1 %492, label %513, label %493

493:                                              ; preds = %491
  %494 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %495 = getelementptr inbounds %"class.std::complex", ptr %44, i32 0, i32 0
  %496 = getelementptr inbounds { double, double }, ptr %495, i32 0, i32 0
  %497 = extractvalue { double, double } %494, 0
  store double %497, ptr %496, align 8
  %498 = getelementptr inbounds { double, double }, ptr %495, i32 0, i32 1
  %499 = extractvalue { double, double } %494, 1
  store double %499, ptr %498, align 8
  %500 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 4) #6
  %501 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 8 dereferenceable(16) %500)
          to label %502 unwind label %528

502:                                              ; preds = %493
  %503 = getelementptr inbounds %"class.std::complex", ptr %43, i32 0, i32 0
  %504 = getelementptr inbounds { double, double }, ptr %503, i32 0, i32 0
  %505 = extractvalue { double, double } %501, 0
  store double %505, ptr %504, align 8
  %506 = getelementptr inbounds { double, double }, ptr %503, i32 0, i32 1
  %507 = extractvalue { double, double } %501, 1
  store double %507, ptr %506, align 8
  %508 = invoke noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %43)
          to label %509 unwind label %528

509:                                              ; preds = %502
  %510 = invoke noundef double @_ZSt3absd(double noundef %508)
          to label %511 unwind label %528

511:                                              ; preds = %509
  %512 = fcmp ogt double %510, 1.000000e-05
  br label %513

513:                                              ; preds = %511, %491
  %514 = phi i1 [ true, %491 ], [ %512, %511 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #6
  br i1 %514, label %515, label %551

515:                                              ; preds = %513
  call void @llvm.lifetime.start.p0(i64 32, ptr %45) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %46)
          to label %516 unwind label %533

516:                                              ; preds = %515
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %45)
          to label %517 unwind label %537

517:                                              ; preds = %516
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %45) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %47) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %48) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %48)
          to label %518 unwind label %542

518:                                              ; preds = %517
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %47)
          to label %519 unwind label %546

519:                                              ; preds = %518
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #6
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %1302

520:                                              ; preds = %471, %468, %466, %458
  %521 = landingpad { ptr, i32 }
          cleanup
  %522 = extractvalue { ptr, i32 } %521, 0
  store ptr %522, ptr %8, align 8
  %523 = extractvalue { ptr, i32 } %521, 1
  store i32 %523, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  br label %1309

524:                                              ; preds = %489, %482, %473
  %525 = landingpad { ptr, i32 }
          cleanup
  %526 = extractvalue { ptr, i32 } %525, 0
  store ptr %526, ptr %8, align 8
  %527 = extractvalue { ptr, i32 } %525, 1
  store i32 %527, ptr %9, align 4
  br label %532

528:                                              ; preds = %509, %502, %493
  %529 = landingpad { ptr, i32 }
          cleanup
  %530 = extractvalue { ptr, i32 } %529, 0
  store ptr %530, ptr %8, align 8
  %531 = extractvalue { ptr, i32 } %529, 1
  store i32 %531, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #6
  br label %532

532:                                              ; preds = %528, %524
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #6
  br label %1309

533:                                              ; preds = %515
  %534 = landingpad { ptr, i32 }
          cleanup
  %535 = extractvalue { ptr, i32 } %534, 0
  store ptr %535, ptr %8, align 8
  %536 = extractvalue { ptr, i32 } %534, 1
  store i32 %536, ptr %9, align 4
  br label %541

537:                                              ; preds = %516
  %538 = landingpad { ptr, i32 }
          cleanup
  %539 = extractvalue { ptr, i32 } %538, 0
  store ptr %539, ptr %8, align 8
  %540 = extractvalue { ptr, i32 } %538, 1
  store i32 %540, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #6
  br label %541

541:                                              ; preds = %537, %533
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %45) #6
  br label %1309

542:                                              ; preds = %517
  %543 = landingpad { ptr, i32 }
          cleanup
  %544 = extractvalue { ptr, i32 } %543, 0
  store ptr %544, ptr %8, align 8
  %545 = extractvalue { ptr, i32 } %543, 1
  store i32 %545, ptr %9, align 4
  br label %550

546:                                              ; preds = %518
  %547 = landingpad { ptr, i32 }
          cleanup
  %548 = extractvalue { ptr, i32 } %547, 0
  store ptr %548, ptr %8, align 8
  %549 = extractvalue { ptr, i32 } %547, 1
  store i32 %549, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #6
  br label %550

550:                                              ; preds = %546, %542
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #6
  br label %1309

551:                                              ; preds = %513
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %13, ptr noundef @.str.177, i32 noundef 16)
          to label %552 unwind label %290

552:                                              ; preds = %551
  %553 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @.str.183)
          to label %554 unwind label %290

554:                                              ; preds = %552
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %13)
          to label %555 unwind label %290

555:                                              ; preds = %554
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %14)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.178") align 8 %49, ptr noundef nonnull align 8 dereferenceable(10128) %14, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %556 unwind label %290

556:                                              ; preds = %555
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %49) #6
  %557 = load ptr, ptr %3, align 8, !tbaa !5
  %558 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %557, ptr noundef @.str.187)
          to label %559 unwind label %290

559:                                              ; preds = %556
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #6
  %560 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %561 = getelementptr inbounds %"class.std::complex", ptr %50, i32 0, i32 0
  %562 = getelementptr inbounds { double, double }, ptr %561, i32 0, i32 0
  %563 = extractvalue { double, double } %560, 0
  store double %563, ptr %562, align 8
  %564 = getelementptr inbounds { double, double }, ptr %561, i32 0, i32 1
  %565 = extractvalue { double, double } %560, 1
  store double %565, ptr %564, align 8
  %566 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %558, ptr noundef nonnull align 8 dereferenceable(16) %50)
          to label %567 unwind label %621

567:                                              ; preds = %559
  %568 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %566, ptr noundef @.str.182)
          to label %569 unwind label %621

569:                                              ; preds = %567
  %570 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 7) #6
  %571 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %568, ptr noundef nonnull align 8 dereferenceable(16) %570)
          to label %572 unwind label %621

572:                                              ; preds = %569
  %573 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %571, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %574 unwind label %621

574:                                              ; preds = %572
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #6
  %575 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %576 = getelementptr inbounds %"class.std::complex", ptr %52, i32 0, i32 0
  %577 = getelementptr inbounds { double, double }, ptr %576, i32 0, i32 0
  %578 = extractvalue { double, double } %575, 0
  store double %578, ptr %577, align 8
  %579 = getelementptr inbounds { double, double }, ptr %576, i32 0, i32 1
  %580 = extractvalue { double, double } %575, 1
  store double %580, ptr %579, align 8
  %581 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #6
  %582 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(16) %581)
          to label %583 unwind label %625

583:                                              ; preds = %574
  %584 = getelementptr inbounds %"class.std::complex", ptr %51, i32 0, i32 0
  %585 = getelementptr inbounds { double, double }, ptr %584, i32 0, i32 0
  %586 = extractvalue { double, double } %582, 0
  store double %586, ptr %585, align 8
  %587 = getelementptr inbounds { double, double }, ptr %584, i32 0, i32 1
  %588 = extractvalue { double, double } %582, 1
  store double %588, ptr %587, align 8
  %589 = invoke noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %51)
          to label %590 unwind label %625

590:                                              ; preds = %583
  %591 = invoke noundef double @_ZSt3absd(double noundef %589)
          to label %592 unwind label %625

592:                                              ; preds = %590
  %593 = fcmp ogt double %591, 1.000000e-05
  br i1 %593, label %614, label %594

594:                                              ; preds = %592
  %595 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %596 = getelementptr inbounds %"class.std::complex", ptr %54, i32 0, i32 0
  %597 = getelementptr inbounds { double, double }, ptr %596, i32 0, i32 0
  %598 = extractvalue { double, double } %595, 0
  store double %598, ptr %597, align 8
  %599 = getelementptr inbounds { double, double }, ptr %596, i32 0, i32 1
  %600 = extractvalue { double, double } %595, 1
  store double %600, ptr %599, align 8
  %601 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 7) #6
  %602 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 8 dereferenceable(16) %601)
          to label %603 unwind label %629

603:                                              ; preds = %594
  %604 = getelementptr inbounds %"class.std::complex", ptr %53, i32 0, i32 0
  %605 = getelementptr inbounds { double, double }, ptr %604, i32 0, i32 0
  %606 = extractvalue { double, double } %602, 0
  store double %606, ptr %605, align 8
  %607 = getelementptr inbounds { double, double }, ptr %604, i32 0, i32 1
  %608 = extractvalue { double, double } %602, 1
  store double %608, ptr %607, align 8
  %609 = invoke noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %53)
          to label %610 unwind label %629

610:                                              ; preds = %603
  %611 = invoke noundef double @_ZSt3absd(double noundef %609)
          to label %612 unwind label %629

612:                                              ; preds = %610
  %613 = fcmp ogt double %611, 1.000000e-05
  br label %614

614:                                              ; preds = %612, %592
  %615 = phi i1 [ true, %592 ], [ %613, %612 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #6
  br i1 %615, label %616, label %652

616:                                              ; preds = %614
  call void @llvm.lifetime.start.p0(i64 32, ptr %55) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %56) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %56)
          to label %617 unwind label %634

617:                                              ; preds = %616
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %55)
          to label %618 unwind label %638

618:                                              ; preds = %617
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %57) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %58) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %57, ptr noundef @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %58)
          to label %619 unwind label %643

619:                                              ; preds = %618
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %57)
          to label %620 unwind label %647

620:                                              ; preds = %619
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %57) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %57) #6
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %1302

621:                                              ; preds = %572, %569, %567, %559
  %622 = landingpad { ptr, i32 }
          cleanup
  %623 = extractvalue { ptr, i32 } %622, 0
  store ptr %623, ptr %8, align 8
  %624 = extractvalue { ptr, i32 } %622, 1
  store i32 %624, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #6
  br label %1309

625:                                              ; preds = %590, %583, %574
  %626 = landingpad { ptr, i32 }
          cleanup
  %627 = extractvalue { ptr, i32 } %626, 0
  store ptr %627, ptr %8, align 8
  %628 = extractvalue { ptr, i32 } %626, 1
  store i32 %628, ptr %9, align 4
  br label %633

629:                                              ; preds = %610, %603, %594
  %630 = landingpad { ptr, i32 }
          cleanup
  %631 = extractvalue { ptr, i32 } %630, 0
  store ptr %631, ptr %8, align 8
  %632 = extractvalue { ptr, i32 } %630, 1
  store i32 %632, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #6
  br label %633

633:                                              ; preds = %629, %625
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #6
  br label %1309

634:                                              ; preds = %616
  %635 = landingpad { ptr, i32 }
          cleanup
  %636 = extractvalue { ptr, i32 } %635, 0
  store ptr %636, ptr %8, align 8
  %637 = extractvalue { ptr, i32 } %635, 1
  store i32 %637, ptr %9, align 4
  br label %642

638:                                              ; preds = %617
  %639 = landingpad { ptr, i32 }
          cleanup
  %640 = extractvalue { ptr, i32 } %639, 0
  store ptr %640, ptr %8, align 8
  %641 = extractvalue { ptr, i32 } %639, 1
  store i32 %641, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #6
  br label %642

642:                                              ; preds = %638, %634
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #6
  br label %1309

643:                                              ; preds = %618
  %644 = landingpad { ptr, i32 }
          cleanup
  %645 = extractvalue { ptr, i32 } %644, 0
  store ptr %645, ptr %8, align 8
  %646 = extractvalue { ptr, i32 } %644, 1
  store i32 %646, ptr %9, align 4
  br label %651

647:                                              ; preds = %619
  %648 = landingpad { ptr, i32 }
          cleanup
  %649 = extractvalue { ptr, i32 } %648, 0
  store ptr %649, ptr %8, align 8
  %650 = extractvalue { ptr, i32 } %648, 1
  store i32 %650, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %57) #6
  br label %651

651:                                              ; preds = %647, %643
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %57) #6
  br label %1309

652:                                              ; preds = %614
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %12, ptr noundef @.str.176, i32 noundef 16)
          to label %653 unwind label %290

653:                                              ; preds = %652
  %654 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 2)
          to label %655 unwind label %290

655:                                              ; preds = %653
  %656 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %654, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %657 unwind label %290

657:                                              ; preds = %655
  %658 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.178)
          to label %659 unwind label %290

659:                                              ; preds = %657
  %660 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %658, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %661 unwind label %290

661:                                              ; preds = %659
  %662 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %660, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %663 unwind label %290

663:                                              ; preds = %661
  %664 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.179)
          to label %665 unwind label %290

665:                                              ; preds = %663
  %666 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %664, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %667 unwind label %290

667:                                              ; preds = %665
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %12)
          to label %668 unwind label %290

668:                                              ; preds = %667
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %13, ptr noundef @.str.177, i32 noundef 16)
          to label %669 unwind label %290

669:                                              ; preds = %668
  %670 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @.str.188)
          to label %671 unwind label %290

671:                                              ; preds = %669
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %13)
          to label %672 unwind label %290

672:                                              ; preds = %671
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %14)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.178") align 8 %59, ptr noundef nonnull align 8 dereferenceable(10128) %14, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %673 unwind label %290

673:                                              ; preds = %672
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %59) #6
  %674 = load ptr, ptr %3, align 8, !tbaa !5
  %675 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %674, ptr noundef @.str.189)
          to label %676 unwind label %290

676:                                              ; preds = %673
  call void @llvm.lifetime.start.p0(i64 16, ptr %60) #6
  %677 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %678 = getelementptr inbounds %"class.std::complex", ptr %60, i32 0, i32 0
  %679 = getelementptr inbounds { double, double }, ptr %678, i32 0, i32 0
  %680 = extractvalue { double, double } %677, 0
  store double %680, ptr %679, align 8
  %681 = getelementptr inbounds { double, double }, ptr %678, i32 0, i32 1
  %682 = extractvalue { double, double } %677, 1
  store double %682, ptr %681, align 8
  %683 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %675, ptr noundef nonnull align 8 dereferenceable(16) %60)
          to label %684 unwind label %738

684:                                              ; preds = %676
  %685 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %683, ptr noundef @.str.182)
          to label %686 unwind label %738

686:                                              ; preds = %684
  %687 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 8) #6
  %688 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %685, ptr noundef nonnull align 8 dereferenceable(16) %687)
          to label %689 unwind label %738

689:                                              ; preds = %686
  %690 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %688, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %691 unwind label %738

691:                                              ; preds = %689
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %61) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %62) #6
  %692 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %693 = getelementptr inbounds %"class.std::complex", ptr %62, i32 0, i32 0
  %694 = getelementptr inbounds { double, double }, ptr %693, i32 0, i32 0
  %695 = extractvalue { double, double } %692, 0
  store double %695, ptr %694, align 8
  %696 = getelementptr inbounds { double, double }, ptr %693, i32 0, i32 1
  %697 = extractvalue { double, double } %692, 1
  store double %697, ptr %696, align 8
  %698 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %63) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %64) #6
  %699 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %62, ptr noundef nonnull align 8 dereferenceable(16) %698)
          to label %700 unwind label %742

700:                                              ; preds = %691
  %701 = getelementptr inbounds %"class.std::complex", ptr %61, i32 0, i32 0
  %702 = getelementptr inbounds { double, double }, ptr %701, i32 0, i32 0
  %703 = extractvalue { double, double } %699, 0
  store double %703, ptr %702, align 8
  %704 = getelementptr inbounds { double, double }, ptr %701, i32 0, i32 1
  %705 = extractvalue { double, double } %699, 1
  store double %705, ptr %704, align 8
  %706 = invoke noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %61)
          to label %707 unwind label %742

707:                                              ; preds = %700
  %708 = invoke noundef double @_ZSt3absd(double noundef %706)
          to label %709 unwind label %742

709:                                              ; preds = %707
  %710 = fcmp ogt double %708, 1.000000e-05
  br i1 %710, label %731, label %711

711:                                              ; preds = %709
  %712 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %713 = getelementptr inbounds %"class.std::complex", ptr %64, i32 0, i32 0
  %714 = getelementptr inbounds { double, double }, ptr %713, i32 0, i32 0
  %715 = extractvalue { double, double } %712, 0
  store double %715, ptr %714, align 8
  %716 = getelementptr inbounds { double, double }, ptr %713, i32 0, i32 1
  %717 = extractvalue { double, double } %712, 1
  store double %717, ptr %716, align 8
  %718 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 8) #6
  %719 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 8 dereferenceable(16) %718)
          to label %720 unwind label %746

720:                                              ; preds = %711
  %721 = getelementptr inbounds %"class.std::complex", ptr %63, i32 0, i32 0
  %722 = getelementptr inbounds { double, double }, ptr %721, i32 0, i32 0
  %723 = extractvalue { double, double } %719, 0
  store double %723, ptr %722, align 8
  %724 = getelementptr inbounds { double, double }, ptr %721, i32 0, i32 1
  %725 = extractvalue { double, double } %719, 1
  store double %725, ptr %724, align 8
  %726 = invoke noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %63)
          to label %727 unwind label %746

727:                                              ; preds = %720
  %728 = invoke noundef double @_ZSt3absd(double noundef %726)
          to label %729 unwind label %746

729:                                              ; preds = %727
  %730 = fcmp ogt double %728, 1.000000e-05
  br label %731

731:                                              ; preds = %729, %709
  %732 = phi i1 [ true, %709 ], [ %730, %729 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %63) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %62) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #6
  br i1 %732, label %733, label %769

733:                                              ; preds = %731
  call void @llvm.lifetime.start.p0(i64 32, ptr %65) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %66) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %66) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %65, ptr noundef @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %66)
          to label %734 unwind label %751

734:                                              ; preds = %733
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %65)
          to label %735 unwind label %755

735:                                              ; preds = %734
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %65) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %66) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %66) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %65) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %67) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %68) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %68) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %67, ptr noundef @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %68)
          to label %736 unwind label %760

736:                                              ; preds = %735
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %67)
          to label %737 unwind label %764

737:                                              ; preds = %736
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %67) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %68) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %68) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %67) #6
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %1302

738:                                              ; preds = %689, %686, %684, %676
  %739 = landingpad { ptr, i32 }
          cleanup
  %740 = extractvalue { ptr, i32 } %739, 0
  store ptr %740, ptr %8, align 8
  %741 = extractvalue { ptr, i32 } %739, 1
  store i32 %741, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #6
  br label %1309

742:                                              ; preds = %707, %700, %691
  %743 = landingpad { ptr, i32 }
          cleanup
  %744 = extractvalue { ptr, i32 } %743, 0
  store ptr %744, ptr %8, align 8
  %745 = extractvalue { ptr, i32 } %743, 1
  store i32 %745, ptr %9, align 4
  br label %750

746:                                              ; preds = %727, %720, %711
  %747 = landingpad { ptr, i32 }
          cleanup
  %748 = extractvalue { ptr, i32 } %747, 0
  store ptr %748, ptr %8, align 8
  %749 = extractvalue { ptr, i32 } %747, 1
  store i32 %749, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %63) #6
  br label %750

750:                                              ; preds = %746, %742
  call void @llvm.lifetime.end.p0(i64 16, ptr %62) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #6
  br label %1309

751:                                              ; preds = %733
  %752 = landingpad { ptr, i32 }
          cleanup
  %753 = extractvalue { ptr, i32 } %752, 0
  store ptr %753, ptr %8, align 8
  %754 = extractvalue { ptr, i32 } %752, 1
  store i32 %754, ptr %9, align 4
  br label %759

755:                                              ; preds = %734
  %756 = landingpad { ptr, i32 }
          cleanup
  %757 = extractvalue { ptr, i32 } %756, 0
  store ptr %757, ptr %8, align 8
  %758 = extractvalue { ptr, i32 } %756, 1
  store i32 %758, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %65) #6
  br label %759

759:                                              ; preds = %755, %751
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %66) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %66) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %65) #6
  br label %1309

760:                                              ; preds = %735
  %761 = landingpad { ptr, i32 }
          cleanup
  %762 = extractvalue { ptr, i32 } %761, 0
  store ptr %762, ptr %8, align 8
  %763 = extractvalue { ptr, i32 } %761, 1
  store i32 %763, ptr %9, align 4
  br label %768

764:                                              ; preds = %736
  %765 = landingpad { ptr, i32 }
          cleanup
  %766 = extractvalue { ptr, i32 } %765, 0
  store ptr %766, ptr %8, align 8
  %767 = extractvalue { ptr, i32 } %765, 1
  store i32 %767, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %67) #6
  br label %768

768:                                              ; preds = %764, %760
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %68) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %68) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %67) #6
  br label %1309

769:                                              ; preds = %731
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %13, ptr noundef @.str.177, i32 noundef 16)
          to label %770 unwind label %290

770:                                              ; preds = %769
  %771 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @.str.190)
          to label %772 unwind label %290

772:                                              ; preds = %770
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %13)
          to label %773 unwind label %290

773:                                              ; preds = %772
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %14)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.178") align 8 %69, ptr noundef nonnull align 8 dereferenceable(10128) %14, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %774 unwind label %290

774:                                              ; preds = %773
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %69) #6
  %775 = load ptr, ptr %3, align 8, !tbaa !5
  %776 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %775, ptr noundef @.str.191)
          to label %777 unwind label %290

777:                                              ; preds = %774
  call void @llvm.lifetime.start.p0(i64 16, ptr %70) #6
  %778 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %779 = getelementptr inbounds %"class.std::complex", ptr %70, i32 0, i32 0
  %780 = getelementptr inbounds { double, double }, ptr %779, i32 0, i32 0
  %781 = extractvalue { double, double } %778, 0
  store double %781, ptr %780, align 8
  %782 = getelementptr inbounds { double, double }, ptr %779, i32 0, i32 1
  %783 = extractvalue { double, double } %778, 1
  store double %783, ptr %782, align 8
  %784 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %776, ptr noundef nonnull align 8 dereferenceable(16) %70)
          to label %785 unwind label %839

785:                                              ; preds = %777
  %786 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %784, ptr noundef @.str.182)
          to label %787 unwind label %839

787:                                              ; preds = %785
  %788 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 9) #6
  %789 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %786, ptr noundef nonnull align 8 dereferenceable(16) %788)
          to label %790 unwind label %839

790:                                              ; preds = %787
  %791 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %789, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %792 unwind label %839

792:                                              ; preds = %790
  call void @llvm.lifetime.end.p0(i64 16, ptr %70) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %71) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %72) #6
  %793 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %794 = getelementptr inbounds %"class.std::complex", ptr %72, i32 0, i32 0
  %795 = getelementptr inbounds { double, double }, ptr %794, i32 0, i32 0
  %796 = extractvalue { double, double } %793, 0
  store double %796, ptr %795, align 8
  %797 = getelementptr inbounds { double, double }, ptr %794, i32 0, i32 1
  %798 = extractvalue { double, double } %793, 1
  store double %798, ptr %797, align 8
  %799 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %73) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %74) #6
  %800 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %72, ptr noundef nonnull align 8 dereferenceable(16) %799)
          to label %801 unwind label %843

801:                                              ; preds = %792
  %802 = getelementptr inbounds %"class.std::complex", ptr %71, i32 0, i32 0
  %803 = getelementptr inbounds { double, double }, ptr %802, i32 0, i32 0
  %804 = extractvalue { double, double } %800, 0
  store double %804, ptr %803, align 8
  %805 = getelementptr inbounds { double, double }, ptr %802, i32 0, i32 1
  %806 = extractvalue { double, double } %800, 1
  store double %806, ptr %805, align 8
  %807 = invoke noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %71)
          to label %808 unwind label %843

808:                                              ; preds = %801
  %809 = invoke noundef double @_ZSt3absd(double noundef %807)
          to label %810 unwind label %843

810:                                              ; preds = %808
  %811 = fcmp ogt double %809, 1.000000e-05
  br i1 %811, label %832, label %812

812:                                              ; preds = %810
  %813 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %814 = getelementptr inbounds %"class.std::complex", ptr %74, i32 0, i32 0
  %815 = getelementptr inbounds { double, double }, ptr %814, i32 0, i32 0
  %816 = extractvalue { double, double } %813, 0
  store double %816, ptr %815, align 8
  %817 = getelementptr inbounds { double, double }, ptr %814, i32 0, i32 1
  %818 = extractvalue { double, double } %813, 1
  store double %818, ptr %817, align 8
  %819 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 9) #6
  %820 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %74, ptr noundef nonnull align 8 dereferenceable(16) %819)
          to label %821 unwind label %847

821:                                              ; preds = %812
  %822 = getelementptr inbounds %"class.std::complex", ptr %73, i32 0, i32 0
  %823 = getelementptr inbounds { double, double }, ptr %822, i32 0, i32 0
  %824 = extractvalue { double, double } %820, 0
  store double %824, ptr %823, align 8
  %825 = getelementptr inbounds { double, double }, ptr %822, i32 0, i32 1
  %826 = extractvalue { double, double } %820, 1
  store double %826, ptr %825, align 8
  %827 = invoke noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %73)
          to label %828 unwind label %847

828:                                              ; preds = %821
  %829 = invoke noundef double @_ZSt3absd(double noundef %827)
          to label %830 unwind label %847

830:                                              ; preds = %828
  %831 = fcmp ogt double %829, 1.000000e-05
  br label %832

832:                                              ; preds = %830, %810
  %833 = phi i1 [ true, %810 ], [ %831, %830 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %74) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %73) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %72) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %71) #6
  br i1 %833, label %834, label %870

834:                                              ; preds = %832
  call void @llvm.lifetime.start.p0(i64 32, ptr %75) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %76) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %76) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %75, ptr noundef @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %76)
          to label %835 unwind label %852

835:                                              ; preds = %834
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %75)
          to label %836 unwind label %856

836:                                              ; preds = %835
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %75) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %76) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %76) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %75) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %77) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %78) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %78) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %77, ptr noundef @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %78)
          to label %837 unwind label %861

837:                                              ; preds = %836
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %77)
          to label %838 unwind label %865

838:                                              ; preds = %837
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %77) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %78) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %78) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %77) #6
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %1302

839:                                              ; preds = %790, %787, %785, %777
  %840 = landingpad { ptr, i32 }
          cleanup
  %841 = extractvalue { ptr, i32 } %840, 0
  store ptr %841, ptr %8, align 8
  %842 = extractvalue { ptr, i32 } %840, 1
  store i32 %842, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %70) #6
  br label %1309

843:                                              ; preds = %808, %801, %792
  %844 = landingpad { ptr, i32 }
          cleanup
  %845 = extractvalue { ptr, i32 } %844, 0
  store ptr %845, ptr %8, align 8
  %846 = extractvalue { ptr, i32 } %844, 1
  store i32 %846, ptr %9, align 4
  br label %851

847:                                              ; preds = %828, %821, %812
  %848 = landingpad { ptr, i32 }
          cleanup
  %849 = extractvalue { ptr, i32 } %848, 0
  store ptr %849, ptr %8, align 8
  %850 = extractvalue { ptr, i32 } %848, 1
  store i32 %850, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %74) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %73) #6
  br label %851

851:                                              ; preds = %847, %843
  call void @llvm.lifetime.end.p0(i64 16, ptr %72) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %71) #6
  br label %1309

852:                                              ; preds = %834
  %853 = landingpad { ptr, i32 }
          cleanup
  %854 = extractvalue { ptr, i32 } %853, 0
  store ptr %854, ptr %8, align 8
  %855 = extractvalue { ptr, i32 } %853, 1
  store i32 %855, ptr %9, align 4
  br label %860

856:                                              ; preds = %835
  %857 = landingpad { ptr, i32 }
          cleanup
  %858 = extractvalue { ptr, i32 } %857, 0
  store ptr %858, ptr %8, align 8
  %859 = extractvalue { ptr, i32 } %857, 1
  store i32 %859, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %75) #6
  br label %860

860:                                              ; preds = %856, %852
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %76) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %76) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %75) #6
  br label %1309

861:                                              ; preds = %836
  %862 = landingpad { ptr, i32 }
          cleanup
  %863 = extractvalue { ptr, i32 } %862, 0
  store ptr %863, ptr %8, align 8
  %864 = extractvalue { ptr, i32 } %862, 1
  store i32 %864, ptr %9, align 4
  br label %869

865:                                              ; preds = %837
  %866 = landingpad { ptr, i32 }
          cleanup
  %867 = extractvalue { ptr, i32 } %866, 0
  store ptr %867, ptr %8, align 8
  %868 = extractvalue { ptr, i32 } %866, 1
  store i32 %868, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %77) #6
  br label %869

869:                                              ; preds = %865, %861
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %78) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %78) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %77) #6
  br label %1309

870:                                              ; preds = %832
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %13, ptr noundef @.str.177, i32 noundef 16)
          to label %871 unwind label %290

871:                                              ; preds = %870
  %872 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @.str.192)
          to label %873 unwind label %290

873:                                              ; preds = %871
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %13)
          to label %874 unwind label %290

874:                                              ; preds = %873
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %14)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.178") align 8 %79, ptr noundef nonnull align 8 dereferenceable(10128) %14, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %875 unwind label %290

875:                                              ; preds = %874
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %79) #6
  %876 = load ptr, ptr %3, align 8, !tbaa !5
  %877 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %876, ptr noundef @.str.193)
          to label %878 unwind label %290

878:                                              ; preds = %875
  call void @llvm.lifetime.start.p0(i64 16, ptr %80) #6
  %879 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %880 = getelementptr inbounds %"class.std::complex", ptr %80, i32 0, i32 0
  %881 = getelementptr inbounds { double, double }, ptr %880, i32 0, i32 0
  %882 = extractvalue { double, double } %879, 0
  store double %882, ptr %881, align 8
  %883 = getelementptr inbounds { double, double }, ptr %880, i32 0, i32 1
  %884 = extractvalue { double, double } %879, 1
  store double %884, ptr %883, align 8
  %885 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %877, ptr noundef nonnull align 8 dereferenceable(16) %80)
          to label %886 unwind label %940

886:                                              ; preds = %878
  %887 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %885, ptr noundef @.str.182)
          to label %888 unwind label %940

888:                                              ; preds = %886
  %889 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 10) #6
  %890 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %887, ptr noundef nonnull align 8 dereferenceable(16) %889)
          to label %891 unwind label %940

891:                                              ; preds = %888
  %892 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %890, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %893 unwind label %940

893:                                              ; preds = %891
  call void @llvm.lifetime.end.p0(i64 16, ptr %80) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %81) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %82) #6
  %894 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %895 = getelementptr inbounds %"class.std::complex", ptr %82, i32 0, i32 0
  %896 = getelementptr inbounds { double, double }, ptr %895, i32 0, i32 0
  %897 = extractvalue { double, double } %894, 0
  store double %897, ptr %896, align 8
  %898 = getelementptr inbounds { double, double }, ptr %895, i32 0, i32 1
  %899 = extractvalue { double, double } %894, 1
  store double %899, ptr %898, align 8
  %900 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %83) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %84) #6
  %901 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %82, ptr noundef nonnull align 8 dereferenceable(16) %900)
          to label %902 unwind label %944

902:                                              ; preds = %893
  %903 = getelementptr inbounds %"class.std::complex", ptr %81, i32 0, i32 0
  %904 = getelementptr inbounds { double, double }, ptr %903, i32 0, i32 0
  %905 = extractvalue { double, double } %901, 0
  store double %905, ptr %904, align 8
  %906 = getelementptr inbounds { double, double }, ptr %903, i32 0, i32 1
  %907 = extractvalue { double, double } %901, 1
  store double %907, ptr %906, align 8
  %908 = invoke noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %81)
          to label %909 unwind label %944

909:                                              ; preds = %902
  %910 = invoke noundef double @_ZSt3absd(double noundef %908)
          to label %911 unwind label %944

911:                                              ; preds = %909
  %912 = fcmp ogt double %910, 1.000000e-05
  br i1 %912, label %933, label %913

913:                                              ; preds = %911
  %914 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %915 = getelementptr inbounds %"class.std::complex", ptr %84, i32 0, i32 0
  %916 = getelementptr inbounds { double, double }, ptr %915, i32 0, i32 0
  %917 = extractvalue { double, double } %914, 0
  store double %917, ptr %916, align 8
  %918 = getelementptr inbounds { double, double }, ptr %915, i32 0, i32 1
  %919 = extractvalue { double, double } %914, 1
  store double %919, ptr %918, align 8
  %920 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 10) #6
  %921 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %84, ptr noundef nonnull align 8 dereferenceable(16) %920)
          to label %922 unwind label %948

922:                                              ; preds = %913
  %923 = getelementptr inbounds %"class.std::complex", ptr %83, i32 0, i32 0
  %924 = getelementptr inbounds { double, double }, ptr %923, i32 0, i32 0
  %925 = extractvalue { double, double } %921, 0
  store double %925, ptr %924, align 8
  %926 = getelementptr inbounds { double, double }, ptr %923, i32 0, i32 1
  %927 = extractvalue { double, double } %921, 1
  store double %927, ptr %926, align 8
  %928 = invoke noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %83)
          to label %929 unwind label %948

929:                                              ; preds = %922
  %930 = invoke noundef double @_ZSt3absd(double noundef %928)
          to label %931 unwind label %948

931:                                              ; preds = %929
  %932 = fcmp ogt double %930, 1.000000e-05
  br label %933

933:                                              ; preds = %931, %911
  %934 = phi i1 [ true, %911 ], [ %932, %931 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %84) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %83) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %82) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %81) #6
  br i1 %934, label %935, label %971

935:                                              ; preds = %933
  call void @llvm.lifetime.start.p0(i64 32, ptr %85) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %86) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %86) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %85, ptr noundef @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %86)
          to label %936 unwind label %953

936:                                              ; preds = %935
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %85)
          to label %937 unwind label %957

937:                                              ; preds = %936
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %85) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %86) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %86) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %85) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %87) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %88) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %88) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %87, ptr noundef @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %88)
          to label %938 unwind label %962

938:                                              ; preds = %937
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %87)
          to label %939 unwind label %966

939:                                              ; preds = %938
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %87) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %88) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %88) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %87) #6
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %1302

940:                                              ; preds = %891, %888, %886, %878
  %941 = landingpad { ptr, i32 }
          cleanup
  %942 = extractvalue { ptr, i32 } %941, 0
  store ptr %942, ptr %8, align 8
  %943 = extractvalue { ptr, i32 } %941, 1
  store i32 %943, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %80) #6
  br label %1309

944:                                              ; preds = %909, %902, %893
  %945 = landingpad { ptr, i32 }
          cleanup
  %946 = extractvalue { ptr, i32 } %945, 0
  store ptr %946, ptr %8, align 8
  %947 = extractvalue { ptr, i32 } %945, 1
  store i32 %947, ptr %9, align 4
  br label %952

948:                                              ; preds = %929, %922, %913
  %949 = landingpad { ptr, i32 }
          cleanup
  %950 = extractvalue { ptr, i32 } %949, 0
  store ptr %950, ptr %8, align 8
  %951 = extractvalue { ptr, i32 } %949, 1
  store i32 %951, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %84) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %83) #6
  br label %952

952:                                              ; preds = %948, %944
  call void @llvm.lifetime.end.p0(i64 16, ptr %82) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %81) #6
  br label %1309

953:                                              ; preds = %935
  %954 = landingpad { ptr, i32 }
          cleanup
  %955 = extractvalue { ptr, i32 } %954, 0
  store ptr %955, ptr %8, align 8
  %956 = extractvalue { ptr, i32 } %954, 1
  store i32 %956, ptr %9, align 4
  br label %961

957:                                              ; preds = %936
  %958 = landingpad { ptr, i32 }
          cleanup
  %959 = extractvalue { ptr, i32 } %958, 0
  store ptr %959, ptr %8, align 8
  %960 = extractvalue { ptr, i32 } %958, 1
  store i32 %960, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %85) #6
  br label %961

961:                                              ; preds = %957, %953
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %86) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %86) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %85) #6
  br label %1309

962:                                              ; preds = %937
  %963 = landingpad { ptr, i32 }
          cleanup
  %964 = extractvalue { ptr, i32 } %963, 0
  store ptr %964, ptr %8, align 8
  %965 = extractvalue { ptr, i32 } %963, 1
  store i32 %965, ptr %9, align 4
  br label %970

966:                                              ; preds = %938
  %967 = landingpad { ptr, i32 }
          cleanup
  %968 = extractvalue { ptr, i32 } %967, 0
  store ptr %968, ptr %8, align 8
  %969 = extractvalue { ptr, i32 } %967, 1
  store i32 %969, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %87) #6
  br label %970

970:                                              ; preds = %966, %962
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %88) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %88) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %87) #6
  br label %1309

971:                                              ; preds = %933
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %12, ptr noundef @.str.176, i32 noundef 16)
          to label %972 unwind label %290

972:                                              ; preds = %971
  %973 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 2)
          to label %974 unwind label %290

974:                                              ; preds = %972
  %975 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %973, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %976 unwind label %290

976:                                              ; preds = %974
  %977 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.127)
          to label %978 unwind label %290

978:                                              ; preds = %976
  %979 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %977, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %980 unwind label %290

980:                                              ; preds = %978
  %981 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %979, ptr noundef @.str.185)
          to label %982 unwind label %290

982:                                              ; preds = %980
  %983 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %981, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %984 unwind label %290

984:                                              ; preds = %982
  %985 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.178)
          to label %986 unwind label %290

986:                                              ; preds = %984
  %987 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %985, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %988 unwind label %290

988:                                              ; preds = %986
  %989 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %987, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %990 unwind label %290

990:                                              ; preds = %988
  %991 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.179)
          to label %992 unwind label %290

992:                                              ; preds = %990
  %993 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %991, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %994 unwind label %290

994:                                              ; preds = %992
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %12)
          to label %995 unwind label %290

995:                                              ; preds = %994
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %13, ptr noundef @.str.177, i32 noundef 16)
          to label %996 unwind label %290

996:                                              ; preds = %995
  %997 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @.str.188)
          to label %998 unwind label %290

998:                                              ; preds = %996
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %13)
          to label %999 unwind label %290

999:                                              ; preds = %998
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %14)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.178") align 8 %89, ptr noundef nonnull align 8 dereferenceable(10128) %14, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %1000 unwind label %290

1000:                                             ; preds = %999
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %89) #6
  %1001 = load ptr, ptr %3, align 8, !tbaa !5
  %1002 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1001, ptr noundef @.str.194)
          to label %1003 unwind label %290

1003:                                             ; preds = %1000
  call void @llvm.lifetime.start.p0(i64 16, ptr %90) #6
  %1004 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %1005 = getelementptr inbounds %"class.std::complex", ptr %90, i32 0, i32 0
  %1006 = getelementptr inbounds { double, double }, ptr %1005, i32 0, i32 0
  %1007 = extractvalue { double, double } %1004, 0
  store double %1007, ptr %1006, align 8
  %1008 = getelementptr inbounds { double, double }, ptr %1005, i32 0, i32 1
  %1009 = extractvalue { double, double } %1004, 1
  store double %1009, ptr %1008, align 8
  %1010 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %1002, ptr noundef nonnull align 8 dereferenceable(16) %90)
          to label %1011 unwind label %1065

1011:                                             ; preds = %1003
  %1012 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1010, ptr noundef @.str.182)
          to label %1013 unwind label %1065

1013:                                             ; preds = %1011
  %1014 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 11) #6
  %1015 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %1012, ptr noundef nonnull align 8 dereferenceable(16) %1014)
          to label %1016 unwind label %1065

1016:                                             ; preds = %1013
  %1017 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %1015, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %1018 unwind label %1065

1018:                                             ; preds = %1016
  call void @llvm.lifetime.end.p0(i64 16, ptr %90) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %91) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %92) #6
  %1019 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %1020 = getelementptr inbounds %"class.std::complex", ptr %92, i32 0, i32 0
  %1021 = getelementptr inbounds { double, double }, ptr %1020, i32 0, i32 0
  %1022 = extractvalue { double, double } %1019, 0
  store double %1022, ptr %1021, align 8
  %1023 = getelementptr inbounds { double, double }, ptr %1020, i32 0, i32 1
  %1024 = extractvalue { double, double } %1019, 1
  store double %1024, ptr %1023, align 8
  %1025 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %93) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %94) #6
  %1026 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %92, ptr noundef nonnull align 8 dereferenceable(16) %1025)
          to label %1027 unwind label %1069

1027:                                             ; preds = %1018
  %1028 = getelementptr inbounds %"class.std::complex", ptr %91, i32 0, i32 0
  %1029 = getelementptr inbounds { double, double }, ptr %1028, i32 0, i32 0
  %1030 = extractvalue { double, double } %1026, 0
  store double %1030, ptr %1029, align 8
  %1031 = getelementptr inbounds { double, double }, ptr %1028, i32 0, i32 1
  %1032 = extractvalue { double, double } %1026, 1
  store double %1032, ptr %1031, align 8
  %1033 = invoke noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %91)
          to label %1034 unwind label %1069

1034:                                             ; preds = %1027
  %1035 = invoke noundef double @_ZSt3absd(double noundef %1033)
          to label %1036 unwind label %1069

1036:                                             ; preds = %1034
  %1037 = fcmp ogt double %1035, 1.000000e-05
  br i1 %1037, label %1058, label %1038

1038:                                             ; preds = %1036
  %1039 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %1040 = getelementptr inbounds %"class.std::complex", ptr %94, i32 0, i32 0
  %1041 = getelementptr inbounds { double, double }, ptr %1040, i32 0, i32 0
  %1042 = extractvalue { double, double } %1039, 0
  store double %1042, ptr %1041, align 8
  %1043 = getelementptr inbounds { double, double }, ptr %1040, i32 0, i32 1
  %1044 = extractvalue { double, double } %1039, 1
  store double %1044, ptr %1043, align 8
  %1045 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 11) #6
  %1046 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %94, ptr noundef nonnull align 8 dereferenceable(16) %1045)
          to label %1047 unwind label %1073

1047:                                             ; preds = %1038
  %1048 = getelementptr inbounds %"class.std::complex", ptr %93, i32 0, i32 0
  %1049 = getelementptr inbounds { double, double }, ptr %1048, i32 0, i32 0
  %1050 = extractvalue { double, double } %1046, 0
  store double %1050, ptr %1049, align 8
  %1051 = getelementptr inbounds { double, double }, ptr %1048, i32 0, i32 1
  %1052 = extractvalue { double, double } %1046, 1
  store double %1052, ptr %1051, align 8
  %1053 = invoke noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %93)
          to label %1054 unwind label %1073

1054:                                             ; preds = %1047
  %1055 = invoke noundef double @_ZSt3absd(double noundef %1053)
          to label %1056 unwind label %1073

1056:                                             ; preds = %1054
  %1057 = fcmp ogt double %1055, 1.000000e-05
  br label %1058

1058:                                             ; preds = %1056, %1036
  %1059 = phi i1 [ true, %1036 ], [ %1057, %1056 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %94) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %93) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %92) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %91) #6
  br i1 %1059, label %1060, label %1096

1060:                                             ; preds = %1058
  call void @llvm.lifetime.start.p0(i64 32, ptr %95) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %96) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %96) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %95, ptr noundef @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %96)
          to label %1061 unwind label %1078

1061:                                             ; preds = %1060
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %95)
          to label %1062 unwind label %1082

1062:                                             ; preds = %1061
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %95) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %96) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %96) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %95) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %97) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %98) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %98) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %97, ptr noundef @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %98)
          to label %1063 unwind label %1087

1063:                                             ; preds = %1062
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %97)
          to label %1064 unwind label %1091

1064:                                             ; preds = %1063
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %97) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %98) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %98) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %97) #6
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %1302

1065:                                             ; preds = %1016, %1013, %1011, %1003
  %1066 = landingpad { ptr, i32 }
          cleanup
  %1067 = extractvalue { ptr, i32 } %1066, 0
  store ptr %1067, ptr %8, align 8
  %1068 = extractvalue { ptr, i32 } %1066, 1
  store i32 %1068, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %90) #6
  br label %1309

1069:                                             ; preds = %1034, %1027, %1018
  %1070 = landingpad { ptr, i32 }
          cleanup
  %1071 = extractvalue { ptr, i32 } %1070, 0
  store ptr %1071, ptr %8, align 8
  %1072 = extractvalue { ptr, i32 } %1070, 1
  store i32 %1072, ptr %9, align 4
  br label %1077

1073:                                             ; preds = %1054, %1047, %1038
  %1074 = landingpad { ptr, i32 }
          cleanup
  %1075 = extractvalue { ptr, i32 } %1074, 0
  store ptr %1075, ptr %8, align 8
  %1076 = extractvalue { ptr, i32 } %1074, 1
  store i32 %1076, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %94) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %93) #6
  br label %1077

1077:                                             ; preds = %1073, %1069
  call void @llvm.lifetime.end.p0(i64 16, ptr %92) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %91) #6
  br label %1309

1078:                                             ; preds = %1060
  %1079 = landingpad { ptr, i32 }
          cleanup
  %1080 = extractvalue { ptr, i32 } %1079, 0
  store ptr %1080, ptr %8, align 8
  %1081 = extractvalue { ptr, i32 } %1079, 1
  store i32 %1081, ptr %9, align 4
  br label %1086

1082:                                             ; preds = %1061
  %1083 = landingpad { ptr, i32 }
          cleanup
  %1084 = extractvalue { ptr, i32 } %1083, 0
  store ptr %1084, ptr %8, align 8
  %1085 = extractvalue { ptr, i32 } %1083, 1
  store i32 %1085, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %95) #6
  br label %1086

1086:                                             ; preds = %1082, %1078
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %96) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %96) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %95) #6
  br label %1309

1087:                                             ; preds = %1062
  %1088 = landingpad { ptr, i32 }
          cleanup
  %1089 = extractvalue { ptr, i32 } %1088, 0
  store ptr %1089, ptr %8, align 8
  %1090 = extractvalue { ptr, i32 } %1088, 1
  store i32 %1090, ptr %9, align 4
  br label %1095

1091:                                             ; preds = %1063
  %1092 = landingpad { ptr, i32 }
          cleanup
  %1093 = extractvalue { ptr, i32 } %1092, 0
  store ptr %1093, ptr %8, align 8
  %1094 = extractvalue { ptr, i32 } %1092, 1
  store i32 %1094, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %97) #6
  br label %1095

1095:                                             ; preds = %1091, %1087
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %98) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %98) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %97) #6
  br label %1309

1096:                                             ; preds = %1058
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %13, ptr noundef @.str.177, i32 noundef 16)
          to label %1097 unwind label %290

1097:                                             ; preds = %1096
  %1098 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @.str.190)
          to label %1099 unwind label %290

1099:                                             ; preds = %1097
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %13)
          to label %1100 unwind label %290

1100:                                             ; preds = %1099
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %14)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.178") align 8 %99, ptr noundef nonnull align 8 dereferenceable(10128) %14, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %1101 unwind label %290

1101:                                             ; preds = %1100
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %99) #6
  %1102 = load ptr, ptr %3, align 8, !tbaa !5
  %1103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1102, ptr noundef @.str.195)
          to label %1104 unwind label %290

1104:                                             ; preds = %1101
  call void @llvm.lifetime.start.p0(i64 16, ptr %100) #6
  %1105 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %1106 = getelementptr inbounds %"class.std::complex", ptr %100, i32 0, i32 0
  %1107 = getelementptr inbounds { double, double }, ptr %1106, i32 0, i32 0
  %1108 = extractvalue { double, double } %1105, 0
  store double %1108, ptr %1107, align 8
  %1109 = getelementptr inbounds { double, double }, ptr %1106, i32 0, i32 1
  %1110 = extractvalue { double, double } %1105, 1
  store double %1110, ptr %1109, align 8
  %1111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %1103, ptr noundef nonnull align 8 dereferenceable(16) %100)
          to label %1112 unwind label %1166

1112:                                             ; preds = %1104
  %1113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1111, ptr noundef @.str.182)
          to label %1114 unwind label %1166

1114:                                             ; preds = %1112
  %1115 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 12) #6
  %1116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %1113, ptr noundef nonnull align 8 dereferenceable(16) %1115)
          to label %1117 unwind label %1166

1117:                                             ; preds = %1114
  %1118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %1116, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %1119 unwind label %1166

1119:                                             ; preds = %1117
  call void @llvm.lifetime.end.p0(i64 16, ptr %100) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %101) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %102) #6
  %1120 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %1121 = getelementptr inbounds %"class.std::complex", ptr %102, i32 0, i32 0
  %1122 = getelementptr inbounds { double, double }, ptr %1121, i32 0, i32 0
  %1123 = extractvalue { double, double } %1120, 0
  store double %1123, ptr %1122, align 8
  %1124 = getelementptr inbounds { double, double }, ptr %1121, i32 0, i32 1
  %1125 = extractvalue { double, double } %1120, 1
  store double %1125, ptr %1124, align 8
  %1126 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %103) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %104) #6
  %1127 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %102, ptr noundef nonnull align 8 dereferenceable(16) %1126)
          to label %1128 unwind label %1170

1128:                                             ; preds = %1119
  %1129 = getelementptr inbounds %"class.std::complex", ptr %101, i32 0, i32 0
  %1130 = getelementptr inbounds { double, double }, ptr %1129, i32 0, i32 0
  %1131 = extractvalue { double, double } %1127, 0
  store double %1131, ptr %1130, align 8
  %1132 = getelementptr inbounds { double, double }, ptr %1129, i32 0, i32 1
  %1133 = extractvalue { double, double } %1127, 1
  store double %1133, ptr %1132, align 8
  %1134 = invoke noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %101)
          to label %1135 unwind label %1170

1135:                                             ; preds = %1128
  %1136 = invoke noundef double @_ZSt3absd(double noundef %1134)
          to label %1137 unwind label %1170

1137:                                             ; preds = %1135
  %1138 = fcmp ogt double %1136, 1.000000e-05
  br i1 %1138, label %1159, label %1139

1139:                                             ; preds = %1137
  %1140 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %1141 = getelementptr inbounds %"class.std::complex", ptr %104, i32 0, i32 0
  %1142 = getelementptr inbounds { double, double }, ptr %1141, i32 0, i32 0
  %1143 = extractvalue { double, double } %1140, 0
  store double %1143, ptr %1142, align 8
  %1144 = getelementptr inbounds { double, double }, ptr %1141, i32 0, i32 1
  %1145 = extractvalue { double, double } %1140, 1
  store double %1145, ptr %1144, align 8
  %1146 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 12) #6
  %1147 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %104, ptr noundef nonnull align 8 dereferenceable(16) %1146)
          to label %1148 unwind label %1174

1148:                                             ; preds = %1139
  %1149 = getelementptr inbounds %"class.std::complex", ptr %103, i32 0, i32 0
  %1150 = getelementptr inbounds { double, double }, ptr %1149, i32 0, i32 0
  %1151 = extractvalue { double, double } %1147, 0
  store double %1151, ptr %1150, align 8
  %1152 = getelementptr inbounds { double, double }, ptr %1149, i32 0, i32 1
  %1153 = extractvalue { double, double } %1147, 1
  store double %1153, ptr %1152, align 8
  %1154 = invoke noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %103)
          to label %1155 unwind label %1174

1155:                                             ; preds = %1148
  %1156 = invoke noundef double @_ZSt3absd(double noundef %1154)
          to label %1157 unwind label %1174

1157:                                             ; preds = %1155
  %1158 = fcmp ogt double %1156, 1.000000e-05
  br label %1159

1159:                                             ; preds = %1157, %1137
  %1160 = phi i1 [ true, %1137 ], [ %1158, %1157 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %104) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %103) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %102) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %101) #6
  br i1 %1160, label %1161, label %1197

1161:                                             ; preds = %1159
  call void @llvm.lifetime.start.p0(i64 32, ptr %105) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %106) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %106) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %105, ptr noundef @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %106)
          to label %1162 unwind label %1179

1162:                                             ; preds = %1161
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %105)
          to label %1163 unwind label %1183

1163:                                             ; preds = %1162
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %105) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %106) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %106) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %105) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %107) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %108) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %108) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %107, ptr noundef @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %108)
          to label %1164 unwind label %1188

1164:                                             ; preds = %1163
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %107)
          to label %1165 unwind label %1192

1165:                                             ; preds = %1164
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %107) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %108) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %108) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %107) #6
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %1302

1166:                                             ; preds = %1117, %1114, %1112, %1104
  %1167 = landingpad { ptr, i32 }
          cleanup
  %1168 = extractvalue { ptr, i32 } %1167, 0
  store ptr %1168, ptr %8, align 8
  %1169 = extractvalue { ptr, i32 } %1167, 1
  store i32 %1169, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %100) #6
  br label %1309

1170:                                             ; preds = %1135, %1128, %1119
  %1171 = landingpad { ptr, i32 }
          cleanup
  %1172 = extractvalue { ptr, i32 } %1171, 0
  store ptr %1172, ptr %8, align 8
  %1173 = extractvalue { ptr, i32 } %1171, 1
  store i32 %1173, ptr %9, align 4
  br label %1178

1174:                                             ; preds = %1155, %1148, %1139
  %1175 = landingpad { ptr, i32 }
          cleanup
  %1176 = extractvalue { ptr, i32 } %1175, 0
  store ptr %1176, ptr %8, align 8
  %1177 = extractvalue { ptr, i32 } %1175, 1
  store i32 %1177, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %104) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %103) #6
  br label %1178

1178:                                             ; preds = %1174, %1170
  call void @llvm.lifetime.end.p0(i64 16, ptr %102) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %101) #6
  br label %1309

1179:                                             ; preds = %1161
  %1180 = landingpad { ptr, i32 }
          cleanup
  %1181 = extractvalue { ptr, i32 } %1180, 0
  store ptr %1181, ptr %8, align 8
  %1182 = extractvalue { ptr, i32 } %1180, 1
  store i32 %1182, ptr %9, align 4
  br label %1187

1183:                                             ; preds = %1162
  %1184 = landingpad { ptr, i32 }
          cleanup
  %1185 = extractvalue { ptr, i32 } %1184, 0
  store ptr %1185, ptr %8, align 8
  %1186 = extractvalue { ptr, i32 } %1184, 1
  store i32 %1186, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %105) #6
  br label %1187

1187:                                             ; preds = %1183, %1179
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %106) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %106) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %105) #6
  br label %1309

1188:                                             ; preds = %1163
  %1189 = landingpad { ptr, i32 }
          cleanup
  %1190 = extractvalue { ptr, i32 } %1189, 0
  store ptr %1190, ptr %8, align 8
  %1191 = extractvalue { ptr, i32 } %1189, 1
  store i32 %1191, ptr %9, align 4
  br label %1196

1192:                                             ; preds = %1164
  %1193 = landingpad { ptr, i32 }
          cleanup
  %1194 = extractvalue { ptr, i32 } %1193, 0
  store ptr %1194, ptr %8, align 8
  %1195 = extractvalue { ptr, i32 } %1193, 1
  store i32 %1195, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %107) #6
  br label %1196

1196:                                             ; preds = %1192, %1188
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %108) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %108) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %107) #6
  br label %1309

1197:                                             ; preds = %1159
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %13, ptr noundef @.str.177, i32 noundef 16)
          to label %1198 unwind label %290

1198:                                             ; preds = %1197
  %1199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @.str.192)
          to label %1200 unwind label %290

1200:                                             ; preds = %1198
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %13)
          to label %1201 unwind label %290

1201:                                             ; preds = %1200
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %14)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.178") align 8 %109, ptr noundef nonnull align 8 dereferenceable(10128) %14, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %1202 unwind label %290

1202:                                             ; preds = %1201
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %109) #6
  %1203 = load ptr, ptr %3, align 8, !tbaa !5
  %1204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1203, ptr noundef @.str.196)
          to label %1205 unwind label %290

1205:                                             ; preds = %1202
  call void @llvm.lifetime.start.p0(i64 16, ptr %110) #6
  %1206 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %1207 = getelementptr inbounds %"class.std::complex", ptr %110, i32 0, i32 0
  %1208 = getelementptr inbounds { double, double }, ptr %1207, i32 0, i32 0
  %1209 = extractvalue { double, double } %1206, 0
  store double %1209, ptr %1208, align 8
  %1210 = getelementptr inbounds { double, double }, ptr %1207, i32 0, i32 1
  %1211 = extractvalue { double, double } %1206, 1
  store double %1211, ptr %1210, align 8
  %1212 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %1204, ptr noundef nonnull align 8 dereferenceable(16) %110)
          to label %1213 unwind label %1267

1213:                                             ; preds = %1205
  %1214 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1212, ptr noundef @.str.182)
          to label %1215 unwind label %1267

1215:                                             ; preds = %1213
  %1216 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 13) #6
  %1217 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %1214, ptr noundef nonnull align 8 dereferenceable(16) %1216)
          to label %1218 unwind label %1267

1218:                                             ; preds = %1215
  %1219 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %1217, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %1220 unwind label %1267

1220:                                             ; preds = %1218
  call void @llvm.lifetime.end.p0(i64 16, ptr %110) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %111) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %112) #6
  %1221 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %1222 = getelementptr inbounds %"class.std::complex", ptr %112, i32 0, i32 0
  %1223 = getelementptr inbounds { double, double }, ptr %1222, i32 0, i32 0
  %1224 = extractvalue { double, double } %1221, 0
  store double %1224, ptr %1223, align 8
  %1225 = getelementptr inbounds { double, double }, ptr %1222, i32 0, i32 1
  %1226 = extractvalue { double, double } %1221, 1
  store double %1226, ptr %1225, align 8
  %1227 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %113) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %114) #6
  %1228 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %112, ptr noundef nonnull align 8 dereferenceable(16) %1227)
          to label %1229 unwind label %1271

1229:                                             ; preds = %1220
  %1230 = getelementptr inbounds %"class.std::complex", ptr %111, i32 0, i32 0
  %1231 = getelementptr inbounds { double, double }, ptr %1230, i32 0, i32 0
  %1232 = extractvalue { double, double } %1228, 0
  store double %1232, ptr %1231, align 8
  %1233 = getelementptr inbounds { double, double }, ptr %1230, i32 0, i32 1
  %1234 = extractvalue { double, double } %1228, 1
  store double %1234, ptr %1233, align 8
  %1235 = invoke noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %111)
          to label %1236 unwind label %1271

1236:                                             ; preds = %1229
  %1237 = invoke noundef double @_ZSt3absd(double noundef %1235)
          to label %1238 unwind label %1271

1238:                                             ; preds = %1236
  %1239 = fcmp ogt double %1237, 1.000000e-05
  br i1 %1239, label %1260, label %1240

1240:                                             ; preds = %1238
  %1241 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  %1242 = getelementptr inbounds %"class.std::complex", ptr %114, i32 0, i32 0
  %1243 = getelementptr inbounds { double, double }, ptr %1242, i32 0, i32 0
  %1244 = extractvalue { double, double } %1241, 0
  store double %1244, ptr %1243, align 8
  %1245 = getelementptr inbounds { double, double }, ptr %1242, i32 0, i32 1
  %1246 = extractvalue { double, double } %1241, 1
  store double %1246, ptr %1245, align 8
  %1247 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 13) #6
  %1248 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %114, ptr noundef nonnull align 8 dereferenceable(16) %1247)
          to label %1249 unwind label %1275

1249:                                             ; preds = %1240
  %1250 = getelementptr inbounds %"class.std::complex", ptr %113, i32 0, i32 0
  %1251 = getelementptr inbounds { double, double }, ptr %1250, i32 0, i32 0
  %1252 = extractvalue { double, double } %1248, 0
  store double %1252, ptr %1251, align 8
  %1253 = getelementptr inbounds { double, double }, ptr %1250, i32 0, i32 1
  %1254 = extractvalue { double, double } %1248, 1
  store double %1254, ptr %1253, align 8
  %1255 = invoke noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %113)
          to label %1256 unwind label %1275

1256:                                             ; preds = %1249
  %1257 = invoke noundef double @_ZSt3absd(double noundef %1255)
          to label %1258 unwind label %1275

1258:                                             ; preds = %1256
  %1259 = fcmp ogt double %1257, 1.000000e-05
  br label %1260

1260:                                             ; preds = %1258, %1238
  %1261 = phi i1 [ true, %1238 ], [ %1259, %1258 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %114) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %113) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %112) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %111) #6
  br i1 %1261, label %1262, label %1298

1262:                                             ; preds = %1260
  call void @llvm.lifetime.start.p0(i64 32, ptr %115) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %116) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %116) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %115, ptr noundef @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %116)
          to label %1263 unwind label %1280

1263:                                             ; preds = %1262
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %115)
          to label %1264 unwind label %1284

1264:                                             ; preds = %1263
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %115) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %116) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %116) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %115) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %117) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %118) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %118) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %117, ptr noundef @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %118)
          to label %1265 unwind label %1289

1265:                                             ; preds = %1264
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %117)
          to label %1266 unwind label %1293

1266:                                             ; preds = %1265
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %117) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %118) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %118) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %117) #6
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %1302

1267:                                             ; preds = %1218, %1215, %1213, %1205
  %1268 = landingpad { ptr, i32 }
          cleanup
  %1269 = extractvalue { ptr, i32 } %1268, 0
  store ptr %1269, ptr %8, align 8
  %1270 = extractvalue { ptr, i32 } %1268, 1
  store i32 %1270, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %110) #6
  br label %1309

1271:                                             ; preds = %1236, %1229, %1220
  %1272 = landingpad { ptr, i32 }
          cleanup
  %1273 = extractvalue { ptr, i32 } %1272, 0
  store ptr %1273, ptr %8, align 8
  %1274 = extractvalue { ptr, i32 } %1272, 1
  store i32 %1274, ptr %9, align 4
  br label %1279

1275:                                             ; preds = %1256, %1249, %1240
  %1276 = landingpad { ptr, i32 }
          cleanup
  %1277 = extractvalue { ptr, i32 } %1276, 0
  store ptr %1277, ptr %8, align 8
  %1278 = extractvalue { ptr, i32 } %1276, 1
  store i32 %1278, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %114) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %113) #6
  br label %1279

1279:                                             ; preds = %1275, %1271
  call void @llvm.lifetime.end.p0(i64 16, ptr %112) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %111) #6
  br label %1309

1280:                                             ; preds = %1262
  %1281 = landingpad { ptr, i32 }
          cleanup
  %1282 = extractvalue { ptr, i32 } %1281, 0
  store ptr %1282, ptr %8, align 8
  %1283 = extractvalue { ptr, i32 } %1281, 1
  store i32 %1283, ptr %9, align 4
  br label %1288

1284:                                             ; preds = %1263
  %1285 = landingpad { ptr, i32 }
          cleanup
  %1286 = extractvalue { ptr, i32 } %1285, 0
  store ptr %1286, ptr %8, align 8
  %1287 = extractvalue { ptr, i32 } %1285, 1
  store i32 %1287, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %115) #6
  br label %1288

1288:                                             ; preds = %1284, %1280
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %116) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %116) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %115) #6
  br label %1309

1289:                                             ; preds = %1264
  %1290 = landingpad { ptr, i32 }
          cleanup
  %1291 = extractvalue { ptr, i32 } %1290, 0
  store ptr %1291, ptr %8, align 8
  %1292 = extractvalue { ptr, i32 } %1290, 1
  store i32 %1292, ptr %9, align 4
  br label %1297

1293:                                             ; preds = %1265
  %1294 = landingpad { ptr, i32 }
          cleanup
  %1295 = extractvalue { ptr, i32 } %1294, 0
  store ptr %1295, ptr %8, align 8
  %1296 = extractvalue { ptr, i32 } %1294, 1
  store i32 %1296, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %117) #6
  br label %1297

1297:                                             ; preds = %1293, %1289
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %118) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %118) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %117) #6
  br label %1309

1298:                                             ; preds = %1260
  %1299 = load ptr, ptr %3, align 8, !tbaa !5
  %1300 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %1299, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %1301 unwind label %290

1301:                                             ; preds = %1298
  store i32 0, ptr %5, align 4
  br label %1302

1302:                                             ; preds = %1301, %1266, %1165, %1064, %939, %838, %737, %620, %519, %394, %263
  call void @_ZN6qtorch16ContractionToolsD2Ev(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  call void @llvm.lifetime.end.p0(i64 10128, ptr %14) #6
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %13) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr %13) #6
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %12) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr %12) #6
  br label %1303

1303:                                             ; preds = %1302, %154
  call void @_ZNSt6vectorISt7complexIdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  %1304 = load i32, ptr %5, align 4
  switch i32 %1304, label %1318 [
    i32 0, label %1305
  ]

1305:                                             ; preds = %1303
  br label %1306

1306:                                             ; preds = %1305
  %1307 = load i32, ptr %4, align 4, !tbaa !9
  %1308 = add nsw i32 %1307, 1
  store i32 %1308, ptr %4, align 4, !tbaa !9
  br label %127, !llvm.loop !11

1309:                                             ; preds = %1297, %1288, %1279, %1267, %1196, %1187, %1178, %1166, %1095, %1086, %1077, %1065, %970, %961, %952, %940, %869, %860, %851, %839, %768, %759, %750, %738, %651, %642, %633, %621, %550, %541, %532, %520, %425, %416, %407, %395, %324, %315, %306, %294, %290
  call void @_ZN6qtorch16ContractionToolsD2Ev(ptr noundef nonnull align 8 dereferenceable(10128) %14) #6
  br label %1310

1310:                                             ; preds = %1309, %289
  call void @llvm.lifetime.end.p0(i64 10128, ptr %14) #6
  br label %1311

1311:                                             ; preds = %1310, %272
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %13) #6
  br label %1312

1312:                                             ; preds = %1311, %268
  call void @llvm.lifetime.end.p0(i64 512, ptr %13) #6
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %12) #6
  br label %1313

1313:                                             ; preds = %1312, %264
  call void @llvm.lifetime.end.p0(i64 512, ptr %12) #6
  br label %1314

1314:                                             ; preds = %1313, %171
  call void @_ZNSt6vectorISt7complexIdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  br label %1315

1315:                                             ; preds = %1314, %167
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  br label %1316

1316:                                             ; preds = %1315, %163, %159
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %1317

1317:                                             ; preds = %1316, %155
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %1345

1318:                                             ; preds = %1303, %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  %1319 = load i32, ptr %5, align 4
  switch i32 %1319, label %1350 [
    i32 2, label %1320
    i32 1, label %1343
  ]

1320:                                             ; preds = %1318
  call void @llvm.lifetime.start.p0(i64 32, ptr %119) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %120) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %120) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %119, ptr noundef @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %120)
          to label %1321 unwind label %1325

1321:                                             ; preds = %1320
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %119)
          to label %1322 unwind label %1329

1322:                                             ; preds = %1321
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %119) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %120) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %120) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %119) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %121) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %122) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %122) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %121, ptr noundef @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %122)
          to label %1323 unwind label %1334

1323:                                             ; preds = %1322
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %121)
          to label %1324 unwind label %1338

1324:                                             ; preds = %1323
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %121) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %122) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %122) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %121) #6
  store i1 true, ptr %2, align 1
  br label %1343

1325:                                             ; preds = %1320
  %1326 = landingpad { ptr, i32 }
          cleanup
  %1327 = extractvalue { ptr, i32 } %1326, 0
  store ptr %1327, ptr %8, align 8
  %1328 = extractvalue { ptr, i32 } %1326, 1
  store i32 %1328, ptr %9, align 4
  br label %1333

1329:                                             ; preds = %1321
  %1330 = landingpad { ptr, i32 }
          cleanup
  %1331 = extractvalue { ptr, i32 } %1330, 0
  store ptr %1331, ptr %8, align 8
  %1332 = extractvalue { ptr, i32 } %1330, 1
  store i32 %1332, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %119) #6
  br label %1333

1333:                                             ; preds = %1329, %1325
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %120) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %120) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %119) #6
  br label %1345

1334:                                             ; preds = %1322
  %1335 = landingpad { ptr, i32 }
          cleanup
  %1336 = extractvalue { ptr, i32 } %1335, 0
  store ptr %1336, ptr %8, align 8
  %1337 = extractvalue { ptr, i32 } %1335, 1
  store i32 %1337, ptr %9, align 4
  br label %1342

1338:                                             ; preds = %1323
  %1339 = landingpad { ptr, i32 }
          cleanup
  %1340 = extractvalue { ptr, i32 } %1339, 0
  store ptr %1340, ptr %8, align 8
  %1341 = extractvalue { ptr, i32 } %1339, 1
  store i32 %1341, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %121) #6
  br label %1342

1342:                                             ; preds = %1338, %1334
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %122) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %122) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %121) #6
  br label %1345

1343:                                             ; preds = %1324, %1318
  %1344 = load i1, ptr %2, align 1
  ret i1 %1344

1345:                                             ; preds = %1342, %1333, %1317
  %1346 = load ptr, ptr %8, align 8
  %1347 = load i32, ptr %9, align 4
  %1348 = insertvalue { ptr, i32 } poison, ptr %1346, 0
  %1349 = insertvalue { ptr, i32 } %1348, i32 %1347, 1
  resume { ptr, i32 } %1349

1350:                                             ; preds = %1318
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1

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

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

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


; 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::shared_ptr.178" = type { %"class.std::__shared_ptr.179" }
%"class.std::__shared_ptr.179" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::complex<double>, std::allocator<std::complex<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::complex<double>, std::allocator<std::complex<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::complex<double>, std::allocator<std::complex<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::complex<double>, std::allocator<std::complex<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.qtorch::ContractionTools" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::complex", %"class.std::vector.186", %"class.std::random_device", %"class.std::shared_ptr.178", %"class.std::mersenne_twister_engine", i8, i32 }
%"class.std::complex" = type { { double, double } }
%"class.std::vector.186" = type { %"struct.std::_Vector_base.187" }
%"struct.std::_Vector_base.187" = type { %"struct.std::_Vector_base<std::shared_ptr<std::vector<std::shared_ptr<qtorch::Node>>>, std::allocator<std::shared_ptr<std::vector<std::shared_ptr<qtorch::Node>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<std::vector<std::shared_ptr<qtorch::Node>>>, std::allocator<std::shared_ptr<std::vector<std::shared_ptr<qtorch::Node>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<std::vector<std::shared_ptr<qtorch::Node>>>, std::allocator<std::shared_ptr<std::vector<std::shared_ptr<qtorch::Node>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<std::vector<std::shared_ptr<qtorch::Node>>>, std::allocator<std::shared_ptr<std::vector<std::shared_ptr<qtorch::Node>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::random_device" = type { %union.anon.191 }
%union.anon.191 = type { %"class.std::mersenne_twister_engine" }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }

@.str.127 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.171 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.172 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.173 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.174 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.176 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.179 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.180 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.181 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.182 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.184 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.185 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.186 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.187 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.188 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.189 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.192 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.193 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.194 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.195 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [55 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248)) local_unnamed_addr #2 align 2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.178") align 8, ptr noundef nonnull align 8 dereferenceable(10128), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20applySimple2qubitSimRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSt14basic_ofstreamIcS2_E(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(248)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6qtorch16ContractionToolsD2Ev(ptr noundef nonnull align 8 dereferenceable(10128)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z21testArbitraryTwoQubitRSt14basic_ofstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(248) %0) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::basic_ofstream", align 8
  %7 = alloca %"class.std::basic_ofstream", align 8
  %8 = alloca %"class.qtorch::ContractionTools", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.std::shared_ptr.178", align 8
  %14 = alloca %"class.std::complex", align 8
  %15 = alloca %"class.std::complex", align 8
  %16 = alloca %"class.std::complex", align 8
  %17 = alloca %"class.std::complex", align 8
  %18 = alloca %"class.std::complex", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator", align 1
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::allocator", align 1
  %23 = alloca %"class.std::shared_ptr.178", align 8
  %24 = alloca %"class.std::complex", align 8
  %25 = alloca %"class.std::complex", align 8
  %26 = alloca %"class.std::complex", align 8
  %27 = alloca %"class.std::complex", align 8
  %28 = alloca %"class.std::complex", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator", align 1
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::allocator", align 1
  %33 = alloca %"class.std::shared_ptr.178", align 8
  %34 = alloca %"class.std::complex", align 8
  %35 = alloca %"class.std::complex", align 8
  %36 = alloca %"class.std::complex", align 8
  %37 = alloca %"class.std::complex", align 8
  %38 = alloca %"class.std::complex", align 8
  %39 = alloca %"class.std::__cxx11::basic_string", align 8
  %40 = alloca %"class.std::allocator", align 1
  %41 = alloca %"class.std::__cxx11::basic_string", align 8
  %42 = alloca %"class.std::allocator", align 1
  %43 = alloca %"class.std::shared_ptr.178", align 8
  %44 = alloca %"class.std::complex", align 8
  %45 = alloca %"class.std::complex", align 8
  %46 = alloca %"class.std::complex", align 8
  %47 = alloca %"class.std::complex", align 8
  %48 = alloca %"class.std::complex", align 8
  %49 = alloca %"class.std::__cxx11::basic_string", align 8
  %50 = alloca %"class.std::allocator", align 1
  %51 = alloca %"class.std::__cxx11::basic_string", align 8
  %52 = alloca %"class.std::allocator", align 1
  %53 = alloca %"class.std::shared_ptr.178", align 8
  %54 = alloca %"class.std::complex", align 8
  %55 = alloca %"class.std::complex", align 8
  %56 = alloca %"class.std::complex", align 8
  %57 = alloca %"class.std::complex", align 8
  %58 = alloca %"class.std::complex", align 8
  %59 = alloca %"class.std::__cxx11::basic_string", align 8
  %60 = alloca %"class.std::allocator", align 1
  %61 = alloca %"class.std::__cxx11::basic_string", align 8
  %62 = alloca %"class.std::allocator", align 1
  %63 = alloca %"class.std::shared_ptr.178", align 8
  %64 = alloca %"class.std::complex", align 8
  %65 = alloca %"class.std::complex", align 8
  %66 = alloca %"class.std::complex", align 8
  %67 = alloca %"class.std::complex", align 8
  %68 = alloca %"class.std::complex", align 8
  %69 = alloca %"class.std::__cxx11::basic_string", align 8
  %70 = alloca %"class.std::allocator", align 1
  %71 = alloca %"class.std::__cxx11::basic_string", align 8
  %72 = alloca %"class.std::allocator", align 1
  %73 = alloca %"class.std::shared_ptr.178", align 8
  %74 = alloca %"class.std::complex", align 8
  %75 = alloca %"class.std::complex", align 8
  %76 = alloca %"class.std::complex", align 8
  %77 = alloca %"class.std::complex", align 8
  %78 = alloca %"class.std::complex", align 8
  %79 = alloca %"class.std::__cxx11::basic_string", align 8
  %80 = alloca %"class.std::allocator", align 1
  %81 = alloca %"class.std::__cxx11::basic_string", align 8
  %82 = alloca %"class.std::allocator", align 1
  %83 = alloca %"class.std::shared_ptr.178", align 8
  %84 = alloca %"class.std::complex", align 8
  %85 = alloca %"class.std::complex", align 8
  %86 = alloca %"class.std::complex", align 8
  %87 = alloca %"class.std::complex", align 8
  %88 = alloca %"class.std::complex", align 8
  %89 = alloca %"class.std::__cxx11::basic_string", align 8
  %90 = alloca %"class.std::allocator", align 1
  %91 = alloca %"class.std::__cxx11::basic_string", align 8
  %92 = alloca %"class.std::allocator", align 1
  %93 = alloca %"class.std::shared_ptr.178", align 8
  %94 = alloca %"class.std::complex", align 8
  %95 = alloca %"class.std::complex", align 8
  %96 = alloca %"class.std::complex", align 8
  %97 = alloca %"class.std::complex", align 8
  %98 = alloca %"class.std::complex", align 8
  %99 = alloca %"class.std::__cxx11::basic_string", align 8
  %100 = alloca %"class.std::allocator", align 1
  %101 = alloca %"class.std::__cxx11::basic_string", align 8
  %102 = alloca %"class.std::allocator", align 1
  %103 = alloca %"class.std::shared_ptr.178", align 8
  %104 = alloca %"class.std::complex", align 8
  %105 = alloca %"class.std::complex", align 8
  %106 = alloca %"class.std::complex", align 8
  %107 = alloca %"class.std::complex", align 8
  %108 = alloca %"class.std::complex", align 8
  %109 = alloca %"class.std::__cxx11::basic_string", align 8
  %110 = alloca %"class.std::allocator", align 1
  %111 = alloca %"class.std::__cxx11::basic_string", align 8
  %112 = alloca %"class.std::allocator", align 1
  %113 = alloca %"class.std::__cxx11::basic_string", align 8
  %114 = alloca %"class.std::allocator", align 1
  %115 = alloca %"class.std::__cxx11::basic_string", align 8
  %116 = alloca %"class.std::allocator", align 1
  %117 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.171)
  %118 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %119 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %120 = getelementptr inbounds i8, ptr %14, i64 8
  %121 = getelementptr inbounds i8, ptr %16, i64 8
  %122 = getelementptr inbounds i8, ptr %15, i64 8
  %123 = getelementptr inbounds i8, ptr %18, i64 8
  %124 = getelementptr inbounds i8, ptr %17, i64 8
  %125 = getelementptr inbounds i8, ptr %24, i64 8
  %126 = getelementptr inbounds i8, ptr %26, i64 8
  %127 = getelementptr inbounds i8, ptr %25, i64 8
  %128 = getelementptr inbounds i8, ptr %28, i64 8
  %129 = getelementptr inbounds i8, ptr %27, i64 8
  %130 = getelementptr inbounds i8, ptr %34, i64 8
  %131 = getelementptr inbounds i8, ptr %36, i64 8
  %132 = getelementptr inbounds i8, ptr %35, i64 8
  %133 = getelementptr inbounds i8, ptr %38, i64 8
  %134 = getelementptr inbounds i8, ptr %37, i64 8
  %135 = getelementptr inbounds i8, ptr %44, i64 8
  %136 = getelementptr inbounds i8, ptr %46, i64 8
  %137 = getelementptr inbounds i8, ptr %45, i64 8
  %138 = getelementptr inbounds i8, ptr %48, i64 8
  %139 = getelementptr inbounds i8, ptr %47, i64 8
  %140 = getelementptr inbounds i8, ptr %54, i64 8
  %141 = getelementptr inbounds i8, ptr %56, i64 8
  %142 = getelementptr inbounds i8, ptr %55, i64 8
  %143 = getelementptr inbounds i8, ptr %58, i64 8
  %144 = getelementptr inbounds i8, ptr %57, i64 8
  %145 = getelementptr inbounds i8, ptr %64, i64 8
  %146 = getelementptr inbounds i8, ptr %66, i64 8
  %147 = getelementptr inbounds i8, ptr %65, i64 8
  %148 = getelementptr inbounds i8, ptr %68, i64 8
  %149 = getelementptr inbounds i8, ptr %67, i64 8
  %150 = getelementptr inbounds i8, ptr %74, i64 8
  %151 = getelementptr inbounds i8, ptr %76, i64 8
  %152 = getelementptr inbounds i8, ptr %75, i64 8
  %153 = getelementptr inbounds i8, ptr %78, i64 8
  %154 = getelementptr inbounds i8, ptr %77, i64 8
  %155 = getelementptr inbounds i8, ptr %84, i64 8
  %156 = getelementptr inbounds i8, ptr %86, i64 8
  %157 = getelementptr inbounds i8, ptr %85, i64 8
  %158 = getelementptr inbounds i8, ptr %88, i64 8
  %159 = getelementptr inbounds i8, ptr %87, i64 8
  %160 = getelementptr inbounds i8, ptr %94, i64 8
  %161 = getelementptr inbounds i8, ptr %96, i64 8
  %162 = getelementptr inbounds i8, ptr %95, i64 8
  %163 = getelementptr inbounds i8, ptr %98, i64 8
  %164 = getelementptr inbounds i8, ptr %97, i64 8
  %165 = getelementptr inbounds i8, ptr %104, i64 8
  %166 = getelementptr inbounds i8, ptr %106, i64 8
  %167 = getelementptr inbounds i8, ptr %105, i64 8
  %168 = getelementptr inbounds i8, ptr %108, i64 8
  %169 = getelementptr inbounds i8, ptr %107, i64 8
  br label %173

170:                                              ; preds = %954
  %171 = add nuw nsw i32 %.088257, 1
  %172 = icmp ugt i32 %.088257, 98
  %exitcond = icmp eq i32 %171, 100
  br i1 %exitcond, label %964, label %173, !llvm.loop !5

173:                                              ; preds = %1, %170
  %174 = phi i1 [ false, %1 ], [ %172, %170 ]
  %.088257 = phi i32 [ 0, %1 ], [ %171, %170 ]
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.172)
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %175, i32 noundef %.088257)
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %176, ptr noundef nonnull @.str.173)
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %177, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %178, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str.174, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %180 unwind label %192

180:                                              ; preds = %173
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, i32 noundef %.088257) #6
  %181 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %182 unwind label %194

182:                                              ; preds = %180
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  %183 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str.173)
          to label %184 unwind label %196

184:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  invoke void @_Z20applySimple2qubitSimRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSt14basic_ofstreamIcS2_E(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(248) %0)
          to label %185 unwind label %198

185:                                              ; preds = %184
  %186 = call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %187 = icmp eq i64 %186, 0
  br i1 %187, label %188, label %202

188:                                              ; preds = %185
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.175)
          to label %190 unwind label %200

190:                                              ; preds = %188
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %189, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %954 unwind label %200

192:                                              ; preds = %173
  %193 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  br label %963

194:                                              ; preds = %180
  %195 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  br label %962

196:                                              ; preds = %182
  %197 = landingpad { ptr, i32 }
          cleanup
  br label %962

198:                                              ; preds = %184
  %199 = landingpad { ptr, i32 }
          cleanup
  br label %961

200:                                              ; preds = %190, %188
  %201 = landingpad { ptr, i32 }
          cleanup
  br label %960

202:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %6) #6
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %6, ptr noundef nonnull @.str.176, i32 noundef 16)
          to label %203 unwind label %269

203:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %7) #6
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %7, ptr noundef nonnull @.str.177, i32 noundef 16)
          to label %204 unwind label %271

204:                                              ; preds = %203
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 2)
          to label %206 unwind label %273

206:                                              ; preds = %204
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %205, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %208 unwind label %273

208:                                              ; preds = %206
  %209 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %207, ptr noundef nonnull @.str.178)
          to label %210 unwind label %273

210:                                              ; preds = %208
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %209, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %212 unwind label %273

212:                                              ; preds = %210
  %213 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %211, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %214 unwind label %273

214:                                              ; preds = %212
  %215 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @.str.179)
          to label %216 unwind label %273

216:                                              ; preds = %214
  %217 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %215, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %218 unwind label %273

218:                                              ; preds = %216
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %6)
          to label %219 unwind label %273

219:                                              ; preds = %218
  %220 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.180)
          to label %221 unwind label %273

221:                                              ; preds = %219
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %7)
          to label %222 unwind label %273

222:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 10128, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %223 unwind label %275

223:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %224 unwind label %277

224:                                              ; preds = %223
  invoke void @_ZN6qtorch16ContractionToolsC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_i(ptr noundef nonnull align 8 dereferenceable(10128) %8, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef 8)
          to label %225 unwind label %279

225:                                              ; preds = %224
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.178") align 8 %13, ptr noundef nonnull align 8 dereferenceable(10128) %8, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %226 unwind label %283

226:                                              ; preds = %225
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  %227 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.181)
          to label %228 unwind label %283

228:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %229 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %230 = extractvalue { double, double } %229, 0
  store double %230, ptr %14, align 8
  %231 = extractvalue { double, double } %229, 1
  store double %231, ptr %120, align 8
  %232 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %227, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %233 unwind label %285

233:                                              ; preds = %228
  %234 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %232, ptr noundef nonnull @.str.182)
          to label %235 unwind label %285

235:                                              ; preds = %233
  %236 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
  %237 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %234, ptr noundef nonnull align 8 dereferenceable(16) %236)
          to label %238 unwind label %285

238:                                              ; preds = %235
  %239 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %237, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %240 unwind label %285

240:                                              ; preds = %238
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  %241 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %242 = extractvalue { double, double } %241, 0
  store double %242, ptr %16, align 8
  %243 = extractvalue { double, double } %241, 1
  store double %243, ptr %121, align 8
  %244 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #6
  %245 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %244)
          to label %246 unwind label %287

246:                                              ; preds = %240
  %247 = extractvalue { double, double } %245, 0
  store double %247, ptr %15, align 8
  %248 = extractvalue { double, double } %245, 1
  store double %248, ptr %122, align 8
  %249 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %15)
  %250 = call noundef double @_ZSt3absd(double noundef %249)
  %251 = fcmp ogt double %250, 1.000000e-05
  br i1 %251, label %.critedge, label %252

252:                                              ; preds = %246
  %253 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %254 = extractvalue { double, double } %253, 0
  store double %254, ptr %18, align 8
  %255 = extractvalue { double, double } %253, 1
  store double %255, ptr %123, align 8
  %256 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
  %257 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %256)
          to label %258 unwind label %289

258:                                              ; preds = %252
  %259 = extractvalue { double, double } %257, 0
  store double %259, ptr %17, align 8
  %260 = extractvalue { double, double } %257, 1
  store double %260, ptr %124, align 8
  %261 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %262 = call noundef double @_ZSt3absd(double noundef %261)
  %263 = fcmp ogt double %262, 1.000000e-05
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br i1 %263, label %264, label %302

.critedge:                                        ; preds = %246
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br label %264

264:                                              ; preds = %.critedge, %258
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %265 unwind label %292

265:                                              ; preds = %264
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %266 unwind label %294

266:                                              ; preds = %265
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %267 unwind label %297

267:                                              ; preds = %266
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %268 unwind label %299

268:                                              ; preds = %267
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  br label %953

269:                                              ; preds = %202
  %270 = landingpad { ptr, i32 }
          cleanup
  br label %959

271:                                              ; preds = %203
  %272 = landingpad { ptr, i32 }
          cleanup
  br label %958

273:                                              ; preds = %221, %219, %218, %216, %214, %212, %210, %208, %206, %204
  %274 = landingpad { ptr, i32 }
          cleanup
  br label %957

275:                                              ; preds = %222
  %276 = landingpad { ptr, i32 }
          cleanup
  br label %282

277:                                              ; preds = %223
  %278 = landingpad { ptr, i32 }
          cleanup
  br label %281

279:                                              ; preds = %224
  %280 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %281

281:                                              ; preds = %279, %277
  %.pn = phi { ptr, i32 } [ %280, %279 ], [ %278, %277 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %282

282:                                              ; preds = %281, %275
  %.pn.pn = phi { ptr, i32 } [ %.pn, %281 ], [ %276, %275 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  br label %956

283:                                              ; preds = %951, %891, %890, %889, %887, %886, %826, %825, %824, %822, %821, %761, %760, %759, %757, %756, %755, %753, %751, %749, %747, %745, %743, %741, %739, %737, %735, %733, %732, %672, %671, %670, %668, %667, %607, %606, %605, %603, %602, %542, %541, %540, %538, %537, %536, %534, %532, %530, %528, %526, %524, %522, %521, %461, %460, %459, %457, %456, %396, %395, %394, %392, %391, %390, %388, %386, %384, %382, %380, %378, %376, %374, %372, %370, %368, %367, %307, %306, %305, %303, %302, %226, %225
  %284 = landingpad { ptr, i32 }
          cleanup
  br label %955

285:                                              ; preds = %238, %235, %233, %228
  %286 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %955

287:                                              ; preds = %240
  %288 = landingpad { ptr, i32 }
          cleanup
  br label %291

289:                                              ; preds = %252
  %290 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  br label %291

291:                                              ; preds = %289, %287
  %.pn96 = phi { ptr, i32 } [ %290, %289 ], [ %288, %287 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br label %955

292:                                              ; preds = %264
  %293 = landingpad { ptr, i32 }
          cleanup
  br label %296

294:                                              ; preds = %265
  %295 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %296

296:                                              ; preds = %294, %292
  %.pn152 = phi { ptr, i32 } [ %295, %294 ], [ %293, %292 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #6
  br label %955

297:                                              ; preds = %266
  %298 = landingpad { ptr, i32 }
          cleanup
  br label %301

299:                                              ; preds = %267
  %300 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %301

301:                                              ; preds = %299, %297
  %.pn154 = phi { ptr, i32 } [ %300, %299 ], [ %298, %297 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  br label %955

302:                                              ; preds = %258
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %7, ptr noundef nonnull @.str.177, i32 noundef 16)
          to label %303 unwind label %283

303:                                              ; preds = %302
  %304 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.183)
          to label %305 unwind label %283

305:                                              ; preds = %303
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %7)
          to label %306 unwind label %283

306:                                              ; preds = %305
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %8)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.178") align 8 %23, ptr noundef nonnull align 8 dereferenceable(10128) %8, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %307 unwind label %283

307:                                              ; preds = %306
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #6
  %308 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.184)
          to label %309 unwind label %283

309:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #6
  %310 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %311 = extractvalue { double, double } %310, 0
  store double %311, ptr %24, align 8
  %312 = extractvalue { double, double } %310, 1
  store double %312, ptr %125, align 8
  %313 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %308, ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %314 unwind label %350

314:                                              ; preds = %309
  %315 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %313, ptr noundef nonnull @.str.182)
          to label %316 unwind label %350

316:                                              ; preds = %314
  %317 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 3) #6
  %318 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %315, ptr noundef nonnull align 8 dereferenceable(16) %317)
          to label %319 unwind label %350

319:                                              ; preds = %316
  %320 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %318, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %321 unwind label %350

321:                                              ; preds = %319
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #6
  %322 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %323 = extractvalue { double, double } %322, 0
  store double %323, ptr %26, align 8
  %324 = extractvalue { double, double } %322, 1
  store double %324, ptr %126, align 8
  %325 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #6
  %326 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %325)
          to label %327 unwind label %352

327:                                              ; preds = %321
  %328 = extractvalue { double, double } %326, 0
  store double %328, ptr %25, align 8
  %329 = extractvalue { double, double } %326, 1
  store double %329, ptr %127, align 8
  %330 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %25)
  %331 = call noundef double @_ZSt3absd(double noundef %330)
  %332 = fcmp ogt double %331, 1.000000e-05
  br i1 %332, label %.critedge2, label %333

333:                                              ; preds = %327
  %334 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %335 = extractvalue { double, double } %334, 0
  store double %335, ptr %28, align 8
  %336 = extractvalue { double, double } %334, 1
  store double %336, ptr %128, align 8
  %337 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 3) #6
  %338 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %337)
          to label %339 unwind label %354

339:                                              ; preds = %333
  %340 = extractvalue { double, double } %338, 0
  store double %340, ptr %27, align 8
  %341 = extractvalue { double, double } %338, 1
  store double %341, ptr %129, align 8
  %342 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %27)
  %343 = call noundef double @_ZSt3absd(double noundef %342)
  %344 = fcmp ogt double %343, 1.000000e-05
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #6
  br i1 %344, label %345, label %367

.critedge2:                                       ; preds = %327
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #6
  br label %345

345:                                              ; preds = %.critedge2, %339
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %29) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %30) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %346 unwind label %357

346:                                              ; preds = %345
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %347 unwind label %359

347:                                              ; preds = %346
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %31) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %32) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %348 unwind label %362

348:                                              ; preds = %347
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %349 unwind label %364

349:                                              ; preds = %348
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #6
  br label %953

350:                                              ; preds = %319, %316, %314, %309
  %351 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  br label %955

352:                                              ; preds = %321
  %353 = landingpad { ptr, i32 }
          cleanup
  br label %356

354:                                              ; preds = %333
  %355 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #6
  br label %356

356:                                              ; preds = %354, %352
  %.pn98 = phi { ptr, i32 } [ %355, %354 ], [ %353, %352 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #6
  br label %955

357:                                              ; preds = %345
  %358 = landingpad { ptr, i32 }
          cleanup
  br label %361

359:                                              ; preds = %346
  %360 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  br label %361

361:                                              ; preds = %359, %357
  %.pn148 = phi { ptr, i32 } [ %360, %359 ], [ %358, %357 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #6
  br label %955

362:                                              ; preds = %347
  %363 = landingpad { ptr, i32 }
          cleanup
  br label %366

364:                                              ; preds = %348
  %365 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  br label %366

366:                                              ; preds = %364, %362
  %.pn150 = phi { ptr, i32 } [ %365, %364 ], [ %363, %362 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #6
  br label %955

367:                                              ; preds = %339
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %6, ptr noundef nonnull @.str.176, i32 noundef 16)
          to label %368 unwind label %283

368:                                              ; preds = %367
  %369 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 2)
          to label %370 unwind label %283

370:                                              ; preds = %368
  %371 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %369, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %372 unwind label %283

372:                                              ; preds = %370
  %373 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @.str.127)
          to label %374 unwind label %283

374:                                              ; preds = %372
  %375 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %373, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %376 unwind label %283

376:                                              ; preds = %374
  %377 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %375, ptr noundef nonnull @.str.185)
          to label %378 unwind label %283

378:                                              ; preds = %376
  %379 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %377, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %380 unwind label %283

380:                                              ; preds = %378
  %381 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @.str.178)
          to label %382 unwind label %283

382:                                              ; preds = %380
  %383 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %381, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %384 unwind label %283

384:                                              ; preds = %382
  %385 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %383, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %386 unwind label %283

386:                                              ; preds = %384
  %387 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @.str.179)
          to label %388 unwind label %283

388:                                              ; preds = %386
  %389 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %387, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %390 unwind label %283

390:                                              ; preds = %388
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %6)
          to label %391 unwind label %283

391:                                              ; preds = %390
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %7, ptr noundef nonnull @.str.177, i32 noundef 16)
          to label %392 unwind label %283

392:                                              ; preds = %391
  %393 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.180)
          to label %394 unwind label %283

394:                                              ; preds = %392
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %7)
          to label %395 unwind label %283

395:                                              ; preds = %394
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %8)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.178") align 8 %33, ptr noundef nonnull align 8 dereferenceable(10128) %8, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %396 unwind label %283

396:                                              ; preds = %395
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %33) #6
  %397 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.186)
          to label %398 unwind label %283

398:                                              ; preds = %396
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %34) #6
  %399 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %400 = extractvalue { double, double } %399, 0
  store double %400, ptr %34, align 8
  %401 = extractvalue { double, double } %399, 1
  store double %401, ptr %130, align 8
  %402 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %397, ptr noundef nonnull align 8 dereferenceable(16) %34)
          to label %403 unwind label %439

403:                                              ; preds = %398
  %404 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %402, ptr noundef nonnull @.str.182)
          to label %405 unwind label %439

405:                                              ; preds = %403
  %406 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 4) #6
  %407 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %404, ptr noundef nonnull align 8 dereferenceable(16) %406)
          to label %408 unwind label %439

408:                                              ; preds = %405
  %409 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %407, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %410 unwind label %439

410:                                              ; preds = %408
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %35) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %36) #6
  %411 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %412 = extractvalue { double, double } %411, 0
  store double %412, ptr %36, align 8
  %413 = extractvalue { double, double } %411, 1
  store double %413, ptr %131, align 8
  %414 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %37) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %38) #6
  %415 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(16) %414)
          to label %416 unwind label %441

416:                                              ; preds = %410
  %417 = extractvalue { double, double } %415, 0
  store double %417, ptr %35, align 8
  %418 = extractvalue { double, double } %415, 1
  store double %418, ptr %132, align 8
  %419 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %35)
  %420 = call noundef double @_ZSt3absd(double noundef %419)
  %421 = fcmp ogt double %420, 1.000000e-05
  br i1 %421, label %.critedge4, label %422

422:                                              ; preds = %416
  %423 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %424 = extractvalue { double, double } %423, 0
  store double %424, ptr %38, align 8
  %425 = extractvalue { double, double } %423, 1
  store double %425, ptr %133, align 8
  %426 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 4) #6
  %427 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %426)
          to label %428 unwind label %443

428:                                              ; preds = %422
  %429 = extractvalue { double, double } %427, 0
  store double %429, ptr %37, align 8
  %430 = extractvalue { double, double } %427, 1
  store double %430, ptr %134, align 8
  %431 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %37)
  %432 = call noundef double @_ZSt3absd(double noundef %431)
  %433 = fcmp ogt double %432, 1.000000e-05
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %37) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %35) #6
  br i1 %433, label %434, label %456

.critedge4:                                       ; preds = %416
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %37) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %35) #6
  br label %434

434:                                              ; preds = %.critedge4, %428
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %39) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %40) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %40)
          to label %435 unwind label %446

435:                                              ; preds = %434
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %39)
          to label %436 unwind label %448

436:                                              ; preds = %435
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %40) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %39) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %41) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %42) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef nonnull @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %42)
          to label %437 unwind label %451

437:                                              ; preds = %436
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %41)
          to label %438 unwind label %453

438:                                              ; preds = %437
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %42) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %41) #6
  br label %953

439:                                              ; preds = %408, %405, %403, %398
  %440 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #6
  br label %955

441:                                              ; preds = %410
  %442 = landingpad { ptr, i32 }
          cleanup
  br label %445

443:                                              ; preds = %422
  %444 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %37) #6
  br label %445

445:                                              ; preds = %443, %441
  %.pn100 = phi { ptr, i32 } [ %444, %443 ], [ %442, %441 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %35) #6
  br label %955

446:                                              ; preds = %434
  %447 = landingpad { ptr, i32 }
          cleanup
  br label %450

448:                                              ; preds = %435
  %449 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #6
  br label %450

450:                                              ; preds = %448, %446
  %.pn144 = phi { ptr, i32 } [ %449, %448 ], [ %447, %446 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %40) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %39) #6
  br label %955

451:                                              ; preds = %436
  %452 = landingpad { ptr, i32 }
          cleanup
  br label %455

453:                                              ; preds = %437
  %454 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #6
  br label %455

455:                                              ; preds = %453, %451
  %.pn146 = phi { ptr, i32 } [ %454, %453 ], [ %452, %451 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %42) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %41) #6
  br label %955

456:                                              ; preds = %428
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %7, ptr noundef nonnull @.str.177, i32 noundef 16)
          to label %457 unwind label %283

457:                                              ; preds = %456
  %458 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.183)
          to label %459 unwind label %283

459:                                              ; preds = %457
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %7)
          to label %460 unwind label %283

460:                                              ; preds = %459
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %8)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.178") align 8 %43, ptr noundef nonnull align 8 dereferenceable(10128) %8, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %461 unwind label %283

461:                                              ; preds = %460
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %43) #6
  %462 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.187)
          to label %463 unwind label %283

463:                                              ; preds = %461
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %44) #6
  %464 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %465 = extractvalue { double, double } %464, 0
  store double %465, ptr %44, align 8
  %466 = extractvalue { double, double } %464, 1
  store double %466, ptr %135, align 8
  %467 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %462, ptr noundef nonnull align 8 dereferenceable(16) %44)
          to label %468 unwind label %504

468:                                              ; preds = %463
  %469 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %467, ptr noundef nonnull @.str.182)
          to label %470 unwind label %504

470:                                              ; preds = %468
  %471 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 7) #6
  %472 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %469, ptr noundef nonnull align 8 dereferenceable(16) %471)
          to label %473 unwind label %504

473:                                              ; preds = %470
  %474 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %472, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %475 unwind label %504

475:                                              ; preds = %473
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %44) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %45) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %46) #6
  %476 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %477 = extractvalue { double, double } %476, 0
  store double %477, ptr %46, align 8
  %478 = extractvalue { double, double } %476, 1
  store double %478, ptr %136, align 8
  %479 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %47) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %48) #6
  %480 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull align 8 dereferenceable(16) %479)
          to label %481 unwind label %506

481:                                              ; preds = %475
  %482 = extractvalue { double, double } %480, 0
  store double %482, ptr %45, align 8
  %483 = extractvalue { double, double } %480, 1
  store double %483, ptr %137, align 8
  %484 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %45)
  %485 = call noundef double @_ZSt3absd(double noundef %484)
  %486 = fcmp ogt double %485, 1.000000e-05
  br i1 %486, label %.critedge6, label %487

487:                                              ; preds = %481
  %488 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %489 = extractvalue { double, double } %488, 0
  store double %489, ptr %48, align 8
  %490 = extractvalue { double, double } %488, 1
  store double %490, ptr %138, align 8
  %491 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 7) #6
  %492 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 8 dereferenceable(16) %491)
          to label %493 unwind label %508

493:                                              ; preds = %487
  %494 = extractvalue { double, double } %492, 0
  store double %494, ptr %47, align 8
  %495 = extractvalue { double, double } %492, 1
  store double %495, ptr %139, align 8
  %496 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %47)
  %497 = call noundef double @_ZSt3absd(double noundef %496)
  %498 = fcmp ogt double %497, 1.000000e-05
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %48) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %47) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %46) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %45) #6
  br i1 %498, label %499, label %521

.critedge6:                                       ; preds = %481
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %48) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %47) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %46) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %45) #6
  br label %499

499:                                              ; preds = %.critedge6, %493
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %49) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %50) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %50) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef nonnull @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %50)
          to label %500 unwind label %511

500:                                              ; preds = %499
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %49)
          to label %501 unwind label %513

501:                                              ; preds = %500
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %50) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %50) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %49) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %51) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %52) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %52) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef nonnull @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %52)
          to label %502 unwind label %516

502:                                              ; preds = %501
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %51)
          to label %503 unwind label %518

503:                                              ; preds = %502
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %52) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %52) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %51) #6
  br label %953

504:                                              ; preds = %473, %470, %468, %463
  %505 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %44) #6
  br label %955

506:                                              ; preds = %475
  %507 = landingpad { ptr, i32 }
          cleanup
  br label %510

508:                                              ; preds = %487
  %509 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %48) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %47) #6
  br label %510

510:                                              ; preds = %508, %506
  %.pn102 = phi { ptr, i32 } [ %509, %508 ], [ %507, %506 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %46) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %45) #6
  br label %955

511:                                              ; preds = %499
  %512 = landingpad { ptr, i32 }
          cleanup
  br label %515

513:                                              ; preds = %500
  %514 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #6
  br label %515

515:                                              ; preds = %513, %511
  %.pn140 = phi { ptr, i32 } [ %514, %513 ], [ %512, %511 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %50) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %50) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %49) #6
  br label %955

516:                                              ; preds = %501
  %517 = landingpad { ptr, i32 }
          cleanup
  br label %520

518:                                              ; preds = %502
  %519 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #6
  br label %520

520:                                              ; preds = %518, %516
  %.pn142 = phi { ptr, i32 } [ %519, %518 ], [ %517, %516 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %52) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %52) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %51) #6
  br label %955

521:                                              ; preds = %493
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %6, ptr noundef nonnull @.str.176, i32 noundef 16)
          to label %522 unwind label %283

522:                                              ; preds = %521
  %523 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 2)
          to label %524 unwind label %283

524:                                              ; preds = %522
  %525 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %523, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %526 unwind label %283

526:                                              ; preds = %524
  %527 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @.str.178)
          to label %528 unwind label %283

528:                                              ; preds = %526
  %529 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %527, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %530 unwind label %283

530:                                              ; preds = %528
  %531 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %529, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %532 unwind label %283

532:                                              ; preds = %530
  %533 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @.str.179)
          to label %534 unwind label %283

534:                                              ; preds = %532
  %535 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %533, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %536 unwind label %283

536:                                              ; preds = %534
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %6)
          to label %537 unwind label %283

537:                                              ; preds = %536
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %7, ptr noundef nonnull @.str.177, i32 noundef 16)
          to label %538 unwind label %283

538:                                              ; preds = %537
  %539 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.188)
          to label %540 unwind label %283

540:                                              ; preds = %538
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %7)
          to label %541 unwind label %283

541:                                              ; preds = %540
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %8)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.178") align 8 %53, ptr noundef nonnull align 8 dereferenceable(10128) %8, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %542 unwind label %283

542:                                              ; preds = %541
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %53) #6
  %543 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.189)
          to label %544 unwind label %283

544:                                              ; preds = %542
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %54) #6
  %545 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %546 = extractvalue { double, double } %545, 0
  store double %546, ptr %54, align 8
  %547 = extractvalue { double, double } %545, 1
  store double %547, ptr %140, align 8
  %548 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %543, ptr noundef nonnull align 8 dereferenceable(16) %54)
          to label %549 unwind label %585

549:                                              ; preds = %544
  %550 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %548, ptr noundef nonnull @.str.182)
          to label %551 unwind label %585

551:                                              ; preds = %549
  %552 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 8) #6
  %553 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %550, ptr noundef nonnull align 8 dereferenceable(16) %552)
          to label %554 unwind label %585

554:                                              ; preds = %551
  %555 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %553, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %556 unwind label %585

556:                                              ; preds = %554
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %54) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %55) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %56) #6
  %557 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %558 = extractvalue { double, double } %557, 0
  store double %558, ptr %56, align 8
  %559 = extractvalue { double, double } %557, 1
  store double %559, ptr %141, align 8
  %560 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %57) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %58) #6
  %561 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 8 dereferenceable(16) %560)
          to label %562 unwind label %587

562:                                              ; preds = %556
  %563 = extractvalue { double, double } %561, 0
  store double %563, ptr %55, align 8
  %564 = extractvalue { double, double } %561, 1
  store double %564, ptr %142, align 8
  %565 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %55)
  %566 = call noundef double @_ZSt3absd(double noundef %565)
  %567 = fcmp ogt double %566, 1.000000e-05
  br i1 %567, label %.critedge8, label %568

568:                                              ; preds = %562
  %569 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %570 = extractvalue { double, double } %569, 0
  store double %570, ptr %58, align 8
  %571 = extractvalue { double, double } %569, 1
  store double %571, ptr %143, align 8
  %572 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 8) #6
  %573 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 8 dereferenceable(16) %572)
          to label %574 unwind label %589

574:                                              ; preds = %568
  %575 = extractvalue { double, double } %573, 0
  store double %575, ptr %57, align 8
  %576 = extractvalue { double, double } %573, 1
  store double %576, ptr %144, align 8
  %577 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %57)
  %578 = call noundef double @_ZSt3absd(double noundef %577)
  %579 = fcmp ogt double %578, 1.000000e-05
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %58) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %57) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %56) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %55) #6
  br i1 %579, label %580, label %602

.critedge8:                                       ; preds = %562
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %58) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %57) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %56) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %55) #6
  br label %580

580:                                              ; preds = %.critedge8, %574
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %59) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %60) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %60) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %59, ptr noundef nonnull @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %60)
          to label %581 unwind label %592

581:                                              ; preds = %580
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %59)
          to label %582 unwind label %594

582:                                              ; preds = %581
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %59) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %60) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %60) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %59) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %61) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %62) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %62) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %61, ptr noundef nonnull @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %62)
          to label %583 unwind label %597

583:                                              ; preds = %582
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %61)
          to label %584 unwind label %599

584:                                              ; preds = %583
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %61) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %62) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %62) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %61) #6
  br label %953

585:                                              ; preds = %554, %551, %549, %544
  %586 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %54) #6
  br label %955

587:                                              ; preds = %556
  %588 = landingpad { ptr, i32 }
          cleanup
  br label %591

589:                                              ; preds = %568
  %590 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %58) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %57) #6
  br label %591

591:                                              ; preds = %589, %587
  %.pn104 = phi { ptr, i32 } [ %590, %589 ], [ %588, %587 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %56) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %55) #6
  br label %955

592:                                              ; preds = %580
  %593 = landingpad { ptr, i32 }
          cleanup
  br label %596

594:                                              ; preds = %581
  %595 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %59) #6
  br label %596

596:                                              ; preds = %594, %592
  %.pn136 = phi { ptr, i32 } [ %595, %594 ], [ %593, %592 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %60) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %60) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %59) #6
  br label %955

597:                                              ; preds = %582
  %598 = landingpad { ptr, i32 }
          cleanup
  br label %601

599:                                              ; preds = %583
  %600 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %61) #6
  br label %601

601:                                              ; preds = %599, %597
  %.pn138 = phi { ptr, i32 } [ %600, %599 ], [ %598, %597 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %62) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %62) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %61) #6
  br label %955

602:                                              ; preds = %574
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %7, ptr noundef nonnull @.str.177, i32 noundef 16)
          to label %603 unwind label %283

603:                                              ; preds = %602
  %604 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.190)
          to label %605 unwind label %283

605:                                              ; preds = %603
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %7)
          to label %606 unwind label %283

606:                                              ; preds = %605
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %8)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.178") align 8 %63, ptr noundef nonnull align 8 dereferenceable(10128) %8, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %607 unwind label %283

607:                                              ; preds = %606
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %63) #6
  %608 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.191)
          to label %609 unwind label %283

609:                                              ; preds = %607
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %64) #6
  %610 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %611 = extractvalue { double, double } %610, 0
  store double %611, ptr %64, align 8
  %612 = extractvalue { double, double } %610, 1
  store double %612, ptr %145, align 8
  %613 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %608, ptr noundef nonnull align 8 dereferenceable(16) %64)
          to label %614 unwind label %650

614:                                              ; preds = %609
  %615 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %613, ptr noundef nonnull @.str.182)
          to label %616 unwind label %650

616:                                              ; preds = %614
  %617 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 9) #6
  %618 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %615, ptr noundef nonnull align 8 dereferenceable(16) %617)
          to label %619 unwind label %650

619:                                              ; preds = %616
  %620 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %618, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %621 unwind label %650

621:                                              ; preds = %619
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %64) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %65) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %66) #6
  %622 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %623 = extractvalue { double, double } %622, 0
  store double %623, ptr %66, align 8
  %624 = extractvalue { double, double } %622, 1
  store double %624, ptr %146, align 8
  %625 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %67) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %68) #6
  %626 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 8 dereferenceable(16) %625)
          to label %627 unwind label %652

627:                                              ; preds = %621
  %628 = extractvalue { double, double } %626, 0
  store double %628, ptr %65, align 8
  %629 = extractvalue { double, double } %626, 1
  store double %629, ptr %147, align 8
  %630 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %65)
  %631 = call noundef double @_ZSt3absd(double noundef %630)
  %632 = fcmp ogt double %631, 1.000000e-05
  br i1 %632, label %.critedge10, label %633

633:                                              ; preds = %627
  %634 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %635 = extractvalue { double, double } %634, 0
  store double %635, ptr %68, align 8
  %636 = extractvalue { double, double } %634, 1
  store double %636, ptr %148, align 8
  %637 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 9) #6
  %638 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef nonnull align 8 dereferenceable(16) %637)
          to label %639 unwind label %654

639:                                              ; preds = %633
  %640 = extractvalue { double, double } %638, 0
  store double %640, ptr %67, align 8
  %641 = extractvalue { double, double } %638, 1
  store double %641, ptr %149, align 8
  %642 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %67)
  %643 = call noundef double @_ZSt3absd(double noundef %642)
  %644 = fcmp ogt double %643, 1.000000e-05
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %68) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %67) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %66) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %65) #6
  br i1 %644, label %645, label %667

.critedge10:                                      ; preds = %627
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %68) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %67) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %66) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %65) #6
  br label %645

645:                                              ; preds = %.critedge10, %639
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %69) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %70) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %70) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %69, ptr noundef nonnull @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %70)
          to label %646 unwind label %657

646:                                              ; preds = %645
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %69)
          to label %647 unwind label %659

647:                                              ; preds = %646
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %69) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %70) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %70) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %69) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %71) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %72) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %72) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %71, ptr noundef nonnull @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %72)
          to label %648 unwind label %662

648:                                              ; preds = %647
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %71)
          to label %649 unwind label %664

649:                                              ; preds = %648
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %71) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %72) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %72) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %71) #6
  br label %953

650:                                              ; preds = %619, %616, %614, %609
  %651 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %64) #6
  br label %955

652:                                              ; preds = %621
  %653 = landingpad { ptr, i32 }
          cleanup
  br label %656

654:                                              ; preds = %633
  %655 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %68) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %67) #6
  br label %656

656:                                              ; preds = %654, %652
  %.pn106 = phi { ptr, i32 } [ %655, %654 ], [ %653, %652 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %66) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %65) #6
  br label %955

657:                                              ; preds = %645
  %658 = landingpad { ptr, i32 }
          cleanup
  br label %661

659:                                              ; preds = %646
  %660 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %69) #6
  br label %661

661:                                              ; preds = %659, %657
  %.pn132 = phi { ptr, i32 } [ %660, %659 ], [ %658, %657 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %70) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %70) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %69) #6
  br label %955

662:                                              ; preds = %647
  %663 = landingpad { ptr, i32 }
          cleanup
  br label %666

664:                                              ; preds = %648
  %665 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %71) #6
  br label %666

666:                                              ; preds = %664, %662
  %.pn134 = phi { ptr, i32 } [ %665, %664 ], [ %663, %662 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %72) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %72) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %71) #6
  br label %955

667:                                              ; preds = %639
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %7, ptr noundef nonnull @.str.177, i32 noundef 16)
          to label %668 unwind label %283

668:                                              ; preds = %667
  %669 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.192)
          to label %670 unwind label %283

670:                                              ; preds = %668
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %7)
          to label %671 unwind label %283

671:                                              ; preds = %670
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %8)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.178") align 8 %73, ptr noundef nonnull align 8 dereferenceable(10128) %8, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %672 unwind label %283

672:                                              ; preds = %671
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %73) #6
  %673 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.193)
          to label %674 unwind label %283

674:                                              ; preds = %672
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %74) #6
  %675 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %676 = extractvalue { double, double } %675, 0
  store double %676, ptr %74, align 8
  %677 = extractvalue { double, double } %675, 1
  store double %677, ptr %150, align 8
  %678 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %673, ptr noundef nonnull align 8 dereferenceable(16) %74)
          to label %679 unwind label %715

679:                                              ; preds = %674
  %680 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %678, ptr noundef nonnull @.str.182)
          to label %681 unwind label %715

681:                                              ; preds = %679
  %682 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 10) #6
  %683 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %680, ptr noundef nonnull align 8 dereferenceable(16) %682)
          to label %684 unwind label %715

684:                                              ; preds = %681
  %685 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %683, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %686 unwind label %715

686:                                              ; preds = %684
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %74) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %75) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %76) #6
  %687 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %688 = extractvalue { double, double } %687, 0
  store double %688, ptr %76, align 8
  %689 = extractvalue { double, double } %687, 1
  store double %689, ptr %151, align 8
  %690 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %77) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %78) #6
  %691 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %76, ptr noundef nonnull align 8 dereferenceable(16) %690)
          to label %692 unwind label %717

692:                                              ; preds = %686
  %693 = extractvalue { double, double } %691, 0
  store double %693, ptr %75, align 8
  %694 = extractvalue { double, double } %691, 1
  store double %694, ptr %152, align 8
  %695 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %75)
  %696 = call noundef double @_ZSt3absd(double noundef %695)
  %697 = fcmp ogt double %696, 1.000000e-05
  br i1 %697, label %.critedge12, label %698

698:                                              ; preds = %692
  %699 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %700 = extractvalue { double, double } %699, 0
  store double %700, ptr %78, align 8
  %701 = extractvalue { double, double } %699, 1
  store double %701, ptr %153, align 8
  %702 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 10) #6
  %703 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %78, ptr noundef nonnull align 8 dereferenceable(16) %702)
          to label %704 unwind label %719

704:                                              ; preds = %698
  %705 = extractvalue { double, double } %703, 0
  store double %705, ptr %77, align 8
  %706 = extractvalue { double, double } %703, 1
  store double %706, ptr %154, align 8
  %707 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %77)
  %708 = call noundef double @_ZSt3absd(double noundef %707)
  %709 = fcmp ogt double %708, 1.000000e-05
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %78) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %77) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %76) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %75) #6
  br i1 %709, label %710, label %732

.critedge12:                                      ; preds = %692
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %78) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %77) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %76) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %75) #6
  br label %710

710:                                              ; preds = %.critedge12, %704
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %79) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %80) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %80) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %79, ptr noundef nonnull @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %80)
          to label %711 unwind label %722

711:                                              ; preds = %710
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %79)
          to label %712 unwind label %724

712:                                              ; preds = %711
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %79) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %80) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %80) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %79) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %81) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %82) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %82) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %81, ptr noundef nonnull @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %82)
          to label %713 unwind label %727

713:                                              ; preds = %712
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %81)
          to label %714 unwind label %729

714:                                              ; preds = %713
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %81) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %82) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %82) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %81) #6
  br label %953

715:                                              ; preds = %684, %681, %679, %674
  %716 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %74) #6
  br label %955

717:                                              ; preds = %686
  %718 = landingpad { ptr, i32 }
          cleanup
  br label %721

719:                                              ; preds = %698
  %720 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %78) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %77) #6
  br label %721

721:                                              ; preds = %719, %717
  %.pn108 = phi { ptr, i32 } [ %720, %719 ], [ %718, %717 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %76) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %75) #6
  br label %955

722:                                              ; preds = %710
  %723 = landingpad { ptr, i32 }
          cleanup
  br label %726

724:                                              ; preds = %711
  %725 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %79) #6
  br label %726

726:                                              ; preds = %724, %722
  %.pn128 = phi { ptr, i32 } [ %725, %724 ], [ %723, %722 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %80) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %80) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %79) #6
  br label %955

727:                                              ; preds = %712
  %728 = landingpad { ptr, i32 }
          cleanup
  br label %731

729:                                              ; preds = %713
  %730 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %81) #6
  br label %731

731:                                              ; preds = %729, %727
  %.pn130 = phi { ptr, i32 } [ %730, %729 ], [ %728, %727 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %82) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %82) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %81) #6
  br label %955

732:                                              ; preds = %704
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %6, ptr noundef nonnull @.str.176, i32 noundef 16)
          to label %733 unwind label %283

733:                                              ; preds = %732
  %734 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 2)
          to label %735 unwind label %283

735:                                              ; preds = %733
  %736 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %734, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %737 unwind label %283

737:                                              ; preds = %735
  %738 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @.str.127)
          to label %739 unwind label %283

739:                                              ; preds = %737
  %740 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %738, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %741 unwind label %283

741:                                              ; preds = %739
  %742 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %740, ptr noundef nonnull @.str.185)
          to label %743 unwind label %283

743:                                              ; preds = %741
  %744 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %742, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %745 unwind label %283

745:                                              ; preds = %743
  %746 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @.str.178)
          to label %747 unwind label %283

747:                                              ; preds = %745
  %748 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %746, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %749 unwind label %283

749:                                              ; preds = %747
  %750 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %748, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %751 unwind label %283

751:                                              ; preds = %749
  %752 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @.str.179)
          to label %753 unwind label %283

753:                                              ; preds = %751
  %754 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %752, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %755 unwind label %283

755:                                              ; preds = %753
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %6)
          to label %756 unwind label %283

756:                                              ; preds = %755
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %7, ptr noundef nonnull @.str.177, i32 noundef 16)
          to label %757 unwind label %283

757:                                              ; preds = %756
  %758 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.188)
          to label %759 unwind label %283

759:                                              ; preds = %757
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %7)
          to label %760 unwind label %283

760:                                              ; preds = %759
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %8)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.178") align 8 %83, ptr noundef nonnull align 8 dereferenceable(10128) %8, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %761 unwind label %283

761:                                              ; preds = %760
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %83) #6
  %762 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.194)
          to label %763 unwind label %283

763:                                              ; preds = %761
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %84) #6
  %764 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %765 = extractvalue { double, double } %764, 0
  store double %765, ptr %84, align 8
  %766 = extractvalue { double, double } %764, 1
  store double %766, ptr %155, align 8
  %767 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %762, ptr noundef nonnull align 8 dereferenceable(16) %84)
          to label %768 unwind label %804

768:                                              ; preds = %763
  %769 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %767, ptr noundef nonnull @.str.182)
          to label %770 unwind label %804

770:                                              ; preds = %768
  %771 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 11) #6
  %772 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %769, ptr noundef nonnull align 8 dereferenceable(16) %771)
          to label %773 unwind label %804

773:                                              ; preds = %770
  %774 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %772, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %775 unwind label %804

775:                                              ; preds = %773
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %84) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %85) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %86) #6
  %776 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %777 = extractvalue { double, double } %776, 0
  store double %777, ptr %86, align 8
  %778 = extractvalue { double, double } %776, 1
  store double %778, ptr %156, align 8
  %779 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %87) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %88) #6
  %780 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %86, ptr noundef nonnull align 8 dereferenceable(16) %779)
          to label %781 unwind label %806

781:                                              ; preds = %775
  %782 = extractvalue { double, double } %780, 0
  store double %782, ptr %85, align 8
  %783 = extractvalue { double, double } %780, 1
  store double %783, ptr %157, align 8
  %784 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %85)
  %785 = call noundef double @_ZSt3absd(double noundef %784)
  %786 = fcmp ogt double %785, 1.000000e-05
  br i1 %786, label %.critedge14, label %787

787:                                              ; preds = %781
  %788 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %789 = extractvalue { double, double } %788, 0
  store double %789, ptr %88, align 8
  %790 = extractvalue { double, double } %788, 1
  store double %790, ptr %158, align 8
  %791 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 11) #6
  %792 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %88, ptr noundef nonnull align 8 dereferenceable(16) %791)
          to label %793 unwind label %808

793:                                              ; preds = %787
  %794 = extractvalue { double, double } %792, 0
  store double %794, ptr %87, align 8
  %795 = extractvalue { double, double } %792, 1
  store double %795, ptr %159, align 8
  %796 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %87)
  %797 = call noundef double @_ZSt3absd(double noundef %796)
  %798 = fcmp ogt double %797, 1.000000e-05
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %88) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %87) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %86) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %85) #6
  br i1 %798, label %799, label %821

.critedge14:                                      ; preds = %781
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %88) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %87) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %86) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %85) #6
  br label %799

799:                                              ; preds = %.critedge14, %793
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %89) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %90) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %90) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %89, ptr noundef nonnull @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %90)
          to label %800 unwind label %811

800:                                              ; preds = %799
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %89)
          to label %801 unwind label %813

801:                                              ; preds = %800
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %89) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %90) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %90) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %89) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %91) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %92) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %92) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %91, ptr noundef nonnull @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %92)
          to label %802 unwind label %816

802:                                              ; preds = %801
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %91)
          to label %803 unwind label %818

803:                                              ; preds = %802
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %91) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %92) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %92) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %91) #6
  br label %953

804:                                              ; preds = %773, %770, %768, %763
  %805 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %84) #6
  br label %955

806:                                              ; preds = %775
  %807 = landingpad { ptr, i32 }
          cleanup
  br label %810

808:                                              ; preds = %787
  %809 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %88) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %87) #6
  br label %810

810:                                              ; preds = %808, %806
  %.pn110 = phi { ptr, i32 } [ %809, %808 ], [ %807, %806 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %86) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %85) #6
  br label %955

811:                                              ; preds = %799
  %812 = landingpad { ptr, i32 }
          cleanup
  br label %815

813:                                              ; preds = %800
  %814 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %89) #6
  br label %815

815:                                              ; preds = %813, %811
  %.pn124 = phi { ptr, i32 } [ %814, %813 ], [ %812, %811 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %90) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %90) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %89) #6
  br label %955

816:                                              ; preds = %801
  %817 = landingpad { ptr, i32 }
          cleanup
  br label %820

818:                                              ; preds = %802
  %819 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %91) #6
  br label %820

820:                                              ; preds = %818, %816
  %.pn126 = phi { ptr, i32 } [ %819, %818 ], [ %817, %816 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %92) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %92) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %91) #6
  br label %955

821:                                              ; preds = %793
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %7, ptr noundef nonnull @.str.177, i32 noundef 16)
          to label %822 unwind label %283

822:                                              ; preds = %821
  %823 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.190)
          to label %824 unwind label %283

824:                                              ; preds = %822
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %7)
          to label %825 unwind label %283

825:                                              ; preds = %824
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %8)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.178") align 8 %93, ptr noundef nonnull align 8 dereferenceable(10128) %8, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %826 unwind label %283

826:                                              ; preds = %825
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %93) #6
  %827 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.195)
          to label %828 unwind label %283

828:                                              ; preds = %826
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %94) #6
  %829 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %830 = extractvalue { double, double } %829, 0
  store double %830, ptr %94, align 8
  %831 = extractvalue { double, double } %829, 1
  store double %831, ptr %160, align 8
  %832 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %827, ptr noundef nonnull align 8 dereferenceable(16) %94)
          to label %833 unwind label %869

833:                                              ; preds = %828
  %834 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %832, ptr noundef nonnull @.str.182)
          to label %835 unwind label %869

835:                                              ; preds = %833
  %836 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 12) #6
  %837 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %834, ptr noundef nonnull align 8 dereferenceable(16) %836)
          to label %838 unwind label %869

838:                                              ; preds = %835
  %839 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %837, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %840 unwind label %869

840:                                              ; preds = %838
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %94) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %95) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %96) #6
  %841 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %842 = extractvalue { double, double } %841, 0
  store double %842, ptr %96, align 8
  %843 = extractvalue { double, double } %841, 1
  store double %843, ptr %161, align 8
  %844 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %97) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %98) #6
  %845 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %96, ptr noundef nonnull align 8 dereferenceable(16) %844)
          to label %846 unwind label %871

846:                                              ; preds = %840
  %847 = extractvalue { double, double } %845, 0
  store double %847, ptr %95, align 8
  %848 = extractvalue { double, double } %845, 1
  store double %848, ptr %162, align 8
  %849 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %95)
  %850 = call noundef double @_ZSt3absd(double noundef %849)
  %851 = fcmp ogt double %850, 1.000000e-05
  br i1 %851, label %.critedge16, label %852

852:                                              ; preds = %846
  %853 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %854 = extractvalue { double, double } %853, 0
  store double %854, ptr %98, align 8
  %855 = extractvalue { double, double } %853, 1
  store double %855, ptr %163, align 8
  %856 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 12) #6
  %857 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %98, ptr noundef nonnull align 8 dereferenceable(16) %856)
          to label %858 unwind label %873

858:                                              ; preds = %852
  %859 = extractvalue { double, double } %857, 0
  store double %859, ptr %97, align 8
  %860 = extractvalue { double, double } %857, 1
  store double %860, ptr %164, align 8
  %861 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %97)
  %862 = call noundef double @_ZSt3absd(double noundef %861)
  %863 = fcmp ogt double %862, 1.000000e-05
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %98) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %97) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %96) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %95) #6
  br i1 %863, label %864, label %886

.critedge16:                                      ; preds = %846
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %98) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %97) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %96) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %95) #6
  br label %864

864:                                              ; preds = %.critedge16, %858
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %99) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %100) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %100) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %99, ptr noundef nonnull @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %100)
          to label %865 unwind label %876

865:                                              ; preds = %864
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %99)
          to label %866 unwind label %878

866:                                              ; preds = %865
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %99) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %100) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %100) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %99) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %101) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %102) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %102) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %101, ptr noundef nonnull @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %102)
          to label %867 unwind label %881

867:                                              ; preds = %866
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %101)
          to label %868 unwind label %883

868:                                              ; preds = %867
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %101) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %102) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %102) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %101) #6
  br label %953

869:                                              ; preds = %838, %835, %833, %828
  %870 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %94) #6
  br label %955

871:                                              ; preds = %840
  %872 = landingpad { ptr, i32 }
          cleanup
  br label %875

873:                                              ; preds = %852
  %874 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %98) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %97) #6
  br label %875

875:                                              ; preds = %873, %871
  %.pn112 = phi { ptr, i32 } [ %874, %873 ], [ %872, %871 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %96) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %95) #6
  br label %955

876:                                              ; preds = %864
  %877 = landingpad { ptr, i32 }
          cleanup
  br label %880

878:                                              ; preds = %865
  %879 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %99) #6
  br label %880

880:                                              ; preds = %878, %876
  %.pn120 = phi { ptr, i32 } [ %879, %878 ], [ %877, %876 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %100) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %100) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %99) #6
  br label %955

881:                                              ; preds = %866
  %882 = landingpad { ptr, i32 }
          cleanup
  br label %885

883:                                              ; preds = %867
  %884 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %101) #6
  br label %885

885:                                              ; preds = %883, %881
  %.pn122 = phi { ptr, i32 } [ %884, %883 ], [ %882, %881 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %102) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %102) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %101) #6
  br label %955

886:                                              ; preds = %858
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %7, ptr noundef nonnull @.str.177, i32 noundef 16)
          to label %887 unwind label %283

887:                                              ; preds = %886
  %888 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.192)
          to label %889 unwind label %283

889:                                              ; preds = %887
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %7)
          to label %890 unwind label %283

890:                                              ; preds = %889
  call void @_ZN6qtorch16ContractionTools5ResetEv(ptr noundef nonnull align 8 dereferenceable(10128) %8)
  invoke void @_ZN6qtorch16ContractionTools8ContractENS_15ContractionTypeEii(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.178") align 8 %103, ptr noundef nonnull align 8 dereferenceable(10128) %8, i32 noundef 0, i32 noundef 1, i32 noundef 1)
          to label %891 unwind label %283

891:                                              ; preds = %890
  call void @_ZNSt12__shared_ptrIN6qtorch7NetworkELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %103) #6
  %892 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.196)
          to label %893 unwind label %283

893:                                              ; preds = %891
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %104) #6
  %894 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %895 = extractvalue { double, double } %894, 0
  store double %895, ptr %104, align 8
  %896 = extractvalue { double, double } %894, 1
  store double %896, ptr %165, align 8
  %897 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %892, ptr noundef nonnull align 8 dereferenceable(16) %104)
          to label %898 unwind label %934

898:                                              ; preds = %893
  %899 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %897, ptr noundef nonnull @.str.182)
          to label %900 unwind label %934

900:                                              ; preds = %898
  %901 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 13) #6
  %902 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E(ptr noundef nonnull align 8 dereferenceable(8) %899, ptr noundef nonnull align 8 dereferenceable(16) %901)
          to label %903 unwind label %934

903:                                              ; preds = %900
  %904 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %902, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %905 unwind label %934

905:                                              ; preds = %903
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %104) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %105) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %106) #6
  %906 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %907 = extractvalue { double, double } %906, 0
  store double %907, ptr %106, align 8
  %908 = extractvalue { double, double } %906, 1
  store double %908, ptr %166, align 8
  %909 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %107) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %108) #6
  %910 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %106, ptr noundef nonnull align 8 dereferenceable(16) %909)
          to label %911 unwind label %936

911:                                              ; preds = %905
  %912 = extractvalue { double, double } %910, 0
  store double %912, ptr %105, align 8
  %913 = extractvalue { double, double } %910, 1
  store double %913, ptr %167, align 8
  %914 = call noundef double @_ZNKSt7complexIdE4realB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %105)
  %915 = call noundef double @_ZSt3absd(double noundef %914)
  %916 = fcmp ogt double %915, 1.000000e-05
  br i1 %916, label %.critedge18, label %917

917:                                              ; preds = %911
  %918 = call { double, double } @_ZN6qtorch16ContractionTools11GetFinalValEv(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  %919 = extractvalue { double, double } %918, 0
  store double %919, ptr %108, align 8
  %920 = extractvalue { double, double } %918, 1
  store double %920, ptr %168, align 8
  %921 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 13) #6
  %922 = invoke { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %108, ptr noundef nonnull align 8 dereferenceable(16) %921)
          to label %923 unwind label %938

923:                                              ; preds = %917
  %924 = extractvalue { double, double } %922, 0
  store double %924, ptr %107, align 8
  %925 = extractvalue { double, double } %922, 1
  store double %925, ptr %169, align 8
  %926 = call noundef double @_ZNKSt7complexIdE4imagB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(16) %107)
  %927 = call noundef double @_ZSt3absd(double noundef %926)
  %928 = fcmp ogt double %927, 1.000000e-05
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %108) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %107) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %106) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %105) #6
  br i1 %928, label %929, label %951

.critedge18:                                      ; preds = %911
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %108) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %107) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %106) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %105) #6
  br label %929

929:                                              ; preds = %.critedge18, %923
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %109) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %110) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %110) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %109, ptr noundef nonnull @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %110)
          to label %930 unwind label %941

930:                                              ; preds = %929
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %109)
          to label %931 unwind label %943

931:                                              ; preds = %930
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %109) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %110) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %110) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %109) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %111) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %112) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %112) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %111, ptr noundef nonnull @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %112)
          to label %932 unwind label %946

932:                                              ; preds = %931
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %111)
          to label %933 unwind label %948

933:                                              ; preds = %932
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %111) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %112) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %112) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %111) #6
  br label %953

934:                                              ; preds = %903, %900, %898, %893
  %935 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %104) #6
  br label %955

936:                                              ; preds = %905
  %937 = landingpad { ptr, i32 }
          cleanup
  br label %940

938:                                              ; preds = %917
  %939 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %108) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %107) #6
  br label %940

940:                                              ; preds = %938, %936
  %.pn114 = phi { ptr, i32 } [ %939, %938 ], [ %937, %936 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %106) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %105) #6
  br label %955

941:                                              ; preds = %929
  %942 = landingpad { ptr, i32 }
          cleanup
  br label %945

943:                                              ; preds = %930
  %944 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %109) #6
  br label %945

945:                                              ; preds = %943, %941
  %.pn116 = phi { ptr, i32 } [ %944, %943 ], [ %942, %941 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %110) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %110) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %109) #6
  br label %955

946:                                              ; preds = %931
  %947 = landingpad { ptr, i32 }
          cleanup
  br label %950

948:                                              ; preds = %932
  %949 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %111) #6
  br label %950

950:                                              ; preds = %948, %946
  %.pn118 = phi { ptr, i32 } [ %949, %948 ], [ %947, %946 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %112) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %112) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %111) #6
  br label %955

951:                                              ; preds = %923
  %952 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %953 unwind label %283

953:                                              ; preds = %951, %933, %868, %803, %714, %649, %584, %503, %438, %349, %268
  %.085 = phi i32 [ 1, %268 ], [ 1, %349 ], [ 1, %438 ], [ 1, %503 ], [ 1, %584 ], [ 1, %649 ], [ 1, %714 ], [ 1, %803 ], [ 1, %868 ], [ 1, %933 ], [ 0, %951 ]
  call void @_ZN6qtorch16ContractionToolsD2Ev(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  call void @llvm.lifetime.end.p0(i64 10128, ptr nonnull %8) #6
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %7) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %7) #6
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %6) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %6) #6
  br label %954

954:                                              ; preds = %190, %953
  %.186 = phi i32 [ %.085, %953 ], [ 1, %190 ]
  call void @_ZNSt6vectorISt7complexIdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  %cond = icmp eq i32 %.186, 0
  br i1 %cond, label %170, label %.loopexit

955:                                              ; preds = %950, %945, %940, %934, %885, %880, %875, %869, %820, %815, %810, %804, %731, %726, %721, %715, %666, %661, %656, %650, %601, %596, %591, %585, %520, %515, %510, %504, %455, %450, %445, %439, %366, %361, %356, %350, %301, %296, %291, %285, %283
  %.pn154.pn = phi { ptr, i32 } [ %.pn154, %301 ], [ %.pn152, %296 ], [ %.pn150, %366 ], [ %.pn148, %361 ], [ %.pn146, %455 ], [ %.pn144, %450 ], [ %.pn142, %520 ], [ %.pn140, %515 ], [ %.pn138, %601 ], [ %.pn136, %596 ], [ %.pn134, %666 ], [ %.pn132, %661 ], [ %.pn130, %731 ], [ %.pn128, %726 ], [ %.pn126, %820 ], [ %.pn124, %815 ], [ %.pn122, %885 ], [ %.pn120, %880 ], [ %.pn118, %950 ], [ %.pn116, %945 ], [ %284, %283 ], [ %.pn114, %940 ], [ %935, %934 ], [ %.pn112, %875 ], [ %870, %869 ], [ %.pn110, %810 ], [ %805, %804 ], [ %.pn108, %721 ], [ %716, %715 ], [ %.pn106, %656 ], [ %651, %650 ], [ %.pn104, %591 ], [ %586, %585 ], [ %.pn102, %510 ], [ %505, %504 ], [ %.pn100, %445 ], [ %440, %439 ], [ %.pn98, %356 ], [ %351, %350 ], [ %.pn96, %291 ], [ %286, %285 ]
  call void @_ZN6qtorch16ContractionToolsD2Ev(ptr noundef nonnull align 8 dereferenceable(10128) %8) #6
  br label %956

956:                                              ; preds = %955, %282
  %.pn154.pn.pn = phi { ptr, i32 } [ %.pn154.pn, %955 ], [ %.pn.pn, %282 ]
  call void @llvm.lifetime.end.p0(i64 10128, ptr nonnull %8) #6
  br label %957

957:                                              ; preds = %956, %273
  %.pn154.pn.pn.pn = phi { ptr, i32 } [ %.pn154.pn.pn, %956 ], [ %274, %273 ]
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %7) #6
  br label %958

958:                                              ; preds = %957, %271
  %.pn154.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn154.pn.pn.pn, %957 ], [ %272, %271 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %7) #6
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %6) #6
  br label %959

959:                                              ; preds = %958, %269
  %.pn154.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn154.pn.pn.pn.pn, %958 ], [ %270, %269 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %6) #6
  br label %960

960:                                              ; preds = %959, %200
  %.pn161 = phi { ptr, i32 } [ %201, %200 ], [ %.pn154.pn.pn.pn.pn.pn, %959 ]
  call void @_ZNSt6vectorISt7complexIdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %961

961:                                              ; preds = %960, %198
  %.pn161.pn = phi { ptr, i32 } [ %.pn161, %960 ], [ %199, %198 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %962

962:                                              ; preds = %961, %196, %194
  %.pn161.pn.pn = phi { ptr, i32 } [ %.pn161.pn, %961 ], [ %197, %196 ], [ %195, %194 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  br label %963

963:                                              ; preds = %962, %192
  %.pn161.pn.pn.pn = phi { ptr, i32 } [ %.pn161.pn.pn, %962 ], [ %193, %192 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  br label %980

964:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %113) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %114) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %114) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %113, ptr noundef nonnull @.str.176, ptr noundef nonnull align 1 dereferenceable(1) %114)
          to label %965 unwind label %969

965:                                              ; preds = %964
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %113)
          to label %966 unwind label %971

966:                                              ; preds = %965
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %113) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %114) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %114) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %113) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %115) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %116) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %116) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %115, ptr noundef nonnull @.str.177, ptr noundef nonnull align 1 dereferenceable(1) %116)
          to label %967 unwind label %974

967:                                              ; preds = %966
  invoke void @_Z10removeFileRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %115)
          to label %968 unwind label %976

968:                                              ; preds = %967
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %115) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %116) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %116) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %115) #6
  br label %.loopexit

969:                                              ; preds = %964
  %970 = landingpad { ptr, i32 }
          cleanup
  br label %973

971:                                              ; preds = %965
  %972 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %113) #6
  br label %973

973:                                              ; preds = %971, %969
  %.pn166 = phi { ptr, i32 } [ %972, %971 ], [ %970, %969 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %114) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %114) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %113) #6
  br label %980

974:                                              ; preds = %966
  %975 = landingpad { ptr, i32 }
          cleanup
  br label %978

976:                                              ; preds = %967
  %977 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %115) #6
  br label %978

978:                                              ; preds = %976, %974
  %.pn168 = phi { ptr, i32 } [ %977, %976 ], [ %975, %974 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %116) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %116) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %115) #6
  br label %980

.loopexit:                                        ; preds = %954, %968
  %979 = phi i1 [ %172, %968 ], [ %174, %954 ]
  ret i1 %979

980:                                              ; preds = %978, %973, %963
  %.pn168.pn = phi { ptr, i32 } [ %.pn168, %978 ], [ %.pn166, %973 ], [ %.pn161.pn.pn.pn, %963 ]
  resume { ptr, i32 } %.pn168.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) local_unnamed_addr #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZStmiIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

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

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

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


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