; LLVM IR from dafer45/TBTK :: Lib/src/Utilities (PadeApproximator)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<TBTK::Polynomial<>, std::allocator<TBTK::Polynomial<>>>::_Vector_impl" }
%"struct.std::_Vector_base<TBTK::Polynomial<>, std::allocator<TBTK::Polynomial<>>>::_Vector_impl" = type { %"struct.std::_Vector_base<TBTK::Polynomial<>, std::allocator<TBTK::Polynomial<>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TBTK::Polynomial<>, std::allocator<TBTK::Polynomial<>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::complex" = type { { double, double } }
%"class.TBTK::Polynomial" = type { i32, %"class.std::vector.8", %"class.std::vector.13", %"class.std::vector.18" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::tuple<std::complex<double>, std::vector<int>>, std::allocator<std::tuple<std::complex<double>, std::vector<int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<std::complex<double>, std::vector<int>>, std::allocator<std::tuple<std::complex<double>, std::vector<int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<std::complex<double>, std::vector<int>>, std::allocator<std::tuple<std::complex<double>, std::vector<int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<std::complex<double>, std::vector<int>>, std::allocator<std::tuple<std::complex<double>, std::vector<int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::tuple<TBTK::Polynomial<>, int>, std::allocator<std::tuple<TBTK::Polynomial<>, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<TBTK::Polynomial<>, int>, std::allocator<std::tuple<TBTK::Polynomial<>, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<TBTK::Polynomial<>, int>, std::allocator<std::tuple<TBTK::Polynomial<>, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<TBTK::Polynomial<>, int>, std::allocator<std::tuple<TBTK::Polynomial<>, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<std::tuple<TBTK::Polynomial<>, TBTK::Polynomial<>>, std::allocator<std::tuple<TBTK::Polynomial<>, TBTK::Polynomial<>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<TBTK::Polynomial<>, TBTK::Polynomial<>>, std::allocator<std::tuple<TBTK::Polynomial<>, TBTK::Polynomial<>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<TBTK::Polynomial<>, TBTK::Polynomial<>>, std::allocator<std::tuple<TBTK::Polynomial<>, TBTK::Polynomial<>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<TBTK::Polynomial<>, TBTK::Polynomial<>>, std::allocator<std::tuple<TBTK::Polynomial<>, TBTK::Polynomial<>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.TBTK::PadeApproximator" = type { i32, i32 }

@_ZN4TBTK7Streams3errE = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TBTK16PadeApproximator11approximateERKSt6vectorISt7complexIdESaIS3_EES7_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %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::complex", align 8
  %26 = alloca %"class.std::complex", align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::complex", align 8
  %29 = alloca %"class.std::complex", align 8
  %30 = alloca i1, align 1
  %31 = alloca %"class.TBTK::Polynomial", align 8
  %32 = alloca %"class.TBTK::Polynomial", align 8
  %33 = alloca i32, align 4
  %34 = alloca %"class.std::initializer_list", align 8
  %35 = alloca [1 x i32], align 4
  %36 = alloca i32, align 4
  %37 = alloca %"class.std::initializer_list", align 8
  %38 = alloca [1 x i32], align 4
  %39 = alloca %"class.std::complex", align 8
  %40 = alloca %"class.std::initializer_list", align 8
  %41 = alloca [1 x i32], align 4
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %42 = load ptr, ptr %6, align 8
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #12
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #12
  %47 = icmp eq i64 %44, %46
  br i1 %47, label %102, label %48

48:                                               ; preds = %4
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZN4TBTK7Streams3errE, ptr noundef @.str)
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef @.str.1)
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef @.str.2)
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZN4TBTK7Streams3errE, ptr noundef @.str.3)
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @.str.4)
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #12
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %53, i64 noundef %55)
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef @.str.5)
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #12
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %57, i64 noundef %59)
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef @.str.6)
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef @.str.2)
  call void @llvm.lifetime.start.p0(i64 392, ptr %9) #12
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %9)
  %63 = getelementptr inbounds i8, ptr %9, i64 16
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef @.str.7)
          to label %65 unwind label %77

65:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #12
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(128) %9)
          to label %66 unwind label %81

66:                                               ; preds = %65
  %67 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #12
  %68 = call i32 @strcmp(ptr noundef %67, ptr noundef @.str.7) #13
  %69 = icmp ne i32 %68, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #12
  br i1 %69, label %70, label %85

70:                                               ; preds = %66
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZN4TBTK7Streams3errE, ptr noundef @.str.8)
          to label %72 unwind label %77

72:                                               ; preds = %70
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef @.str.7)
          to label %74 unwind label %77

74:                                               ; preds = %72
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef @.str.2)
          to label %76 unwind label %77

76:                                               ; preds = %74
  br label %85

77:                                               ; preds = %98, %95, %93, %91, %89, %87, %85, %74, %72, %70, %48
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %10, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %11, align 4
  br label %101

81:                                               ; preds = %65
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %10, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #12
  br label %101

85:                                               ; preds = %76, %66
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZN4TBTK7Streams3errE, ptr noundef @.str.9)
          to label %87 unwind label %77

87:                                               ; preds = %85
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef @.str.10)
          to label %89 unwind label %77

89:                                               ; preds = %87
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef @.str.11)
          to label %91 unwind label %77

91:                                               ; preds = %89
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %90, i32 noundef 40)
          to label %93 unwind label %77

93:                                               ; preds = %91
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef @.str.2)
          to label %95 unwind label %77

95:                                               ; preds = %93
  %96 = invoke noundef zeroext i1 @_ZN4TBTK7Streams9logIsOpenEv()
          to label %97 unwind label %77

97:                                               ; preds = %95
  br i1 %96, label %98, label %100

98:                                               ; preds = %97
  invoke void @_ZN4TBTK7Streams8closeLogEv()
          to label %99 unwind label %77

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99, %97
  call void @exit(i32 noundef 1) #14
  unreachable

101:                                              ; preds = %81, %77
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %9) #12
  call void @llvm.lifetime.end.p0(i64 392, ptr %9) #12
  br label %495

102:                                              ; preds = %4
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #12
  %105 = getelementptr inbounds %"class.TBTK::PadeApproximator", ptr %42, i32 0, i32 0
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = getelementptr inbounds %"class.TBTK::PadeApproximator", ptr %42, i32 0, i32 1
  %108 = load i32, ptr %107, align 4, !tbaa !12
  %109 = add i32 %106, %108
  %110 = zext i32 %109 to i64
  %111 = icmp ugt i64 %104, %110
  br i1 %111, label %170, label %112

112:                                              ; preds = %102
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZN4TBTK7Streams3errE, ptr noundef @.str)
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef @.str.1)
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef @.str.2)
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZN4TBTK7Streams3errE, ptr noundef @.str.3)
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef @.str.12)
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #12
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %117, i64 noundef %119)
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef @.str.13)
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef @.str.14)
  %123 = getelementptr inbounds %"class.TBTK::PadeApproximator", ptr %42, i32 0, i32 0
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = getelementptr inbounds %"class.TBTK::PadeApproximator", ptr %42, i32 0, i32 1
  %126 = load i32, ptr %125, align 4, !tbaa !12
  %127 = add i32 %124, %126
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %122, i32 noundef %127)
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef @.str.15)
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef @.str.2)
  call void @llvm.lifetime.start.p0(i64 392, ptr %13) #12
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %13)
  %131 = getelementptr inbounds i8, ptr %13, i64 16
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef @.str.7)
          to label %133 unwind label %145

133:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #12
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(128) %13)
          to label %134 unwind label %149

134:                                              ; preds = %133
  %135 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %14) #12
  %136 = call i32 @strcmp(ptr noundef %135, ptr noundef @.str.7) #13
  %137 = icmp ne i32 %136, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #12
  br i1 %137, label %138, label %153

138:                                              ; preds = %134
  %139 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZN4TBTK7Streams3errE, ptr noundef @.str.8)
          to label %140 unwind label %145

140:                                              ; preds = %138
  %141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef @.str.7)
          to label %142 unwind label %145

142:                                              ; preds = %140
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef @.str.2)
          to label %144 unwind label %145

144:                                              ; preds = %142
  br label %153

145:                                              ; preds = %166, %163, %161, %159, %157, %155, %153, %142, %140, %138, %112
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %10, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %11, align 4
  br label %169

149:                                              ; preds = %133
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %10, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #12
  br label %169

153:                                              ; preds = %144, %134
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZN4TBTK7Streams3errE, ptr noundef @.str.9)
          to label %155 unwind label %145

155:                                              ; preds = %153
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef @.str.10)
          to label %157 unwind label %145

157:                                              ; preds = %155
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %156, ptr noundef @.str.11)
          to label %159 unwind label %145

159:                                              ; preds = %157
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %158, i32 noundef 48)
          to label %161 unwind label %145

161:                                              ; preds = %159
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %160, ptr noundef @.str.2)
          to label %163 unwind label %145

163:                                              ; preds = %161
  %164 = invoke noundef zeroext i1 @_ZN4TBTK7Streams9logIsOpenEv()
          to label %165 unwind label %145

165:                                              ; preds = %163
  br i1 %164, label %166, label %168

166:                                              ; preds = %165
  invoke void @_ZN4TBTK7Streams8closeLogEv()
          to label %167 unwind label %145

167:                                              ; preds = %166
  br label %168

168:                                              ; preds = %167, %165
  call void @exit(i32 noundef 1) #14
  unreachable

169:                                              ; preds = %149, %145
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %13) #12
  call void @llvm.lifetime.end.p0(i64 392, ptr %13) #12
  br label %495

170:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #12
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %171) #12
  %173 = trunc i64 %172 to i32
  store i32 %173, ptr %15, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #12
  %174 = getelementptr inbounds %"class.TBTK::PadeApproximator", ptr %42, i32 0, i32 0
  %175 = load i32, ptr %174, align 4, !tbaa !9
  %176 = add i32 1, %175
  %177 = getelementptr inbounds %"class.TBTK::PadeApproximator", ptr %42, i32 0, i32 1
  %178 = load i32, ptr %177, align 4, !tbaa !12
  %179 = add i32 %176, %178
  store i32 %179, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #12
  %180 = load i32, ptr %15, align 4, !tbaa !13
  %181 = load i32, ptr %16, align 4, !tbaa !13
  %182 = mul i32 %180, %181
  %183 = zext i32 %182 to i64
  %184 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %183, i64 16)
  %185 = extractvalue { i64, i1 } %184, 1
  %186 = extractvalue { i64, i1 } %184, 0
  %187 = select i1 %185, i64 -1, i64 %186
  %188 = call noalias noundef nonnull ptr @_Znam(i64 noundef %187) #15
  %189 = icmp eq i64 %183, 0
  br i1 %189, label %197, label %190

190:                                              ; preds = %170
  %191 = getelementptr inbounds %"class.std::complex", ptr %188, i64 %183
  br label %192

192:                                              ; preds = %194, %190
  %193 = phi ptr [ %188, %190 ], [ %195, %194 ]
  invoke void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %193, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %194 unwind label %219

194:                                              ; preds = %192
  %195 = getelementptr inbounds %"class.std::complex", ptr %193, i64 1
  %196 = icmp eq ptr %195, %191
  br i1 %196, label %197, label %192

197:                                              ; preds = %194, %170
  store ptr %188, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #12
  %198 = load i32, ptr %15, align 4, !tbaa !13
  %199 = zext i32 %198 to i64
  %200 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %199, i64 16)
  %201 = extractvalue { i64, i1 } %200, 1
  %202 = extractvalue { i64, i1 } %200, 0
  %203 = select i1 %201, i64 -1, i64 %202
  %204 = call noalias noundef nonnull ptr @_Znam(i64 noundef %203) #15
  %205 = icmp eq i64 %199, 0
  br i1 %205, label %213, label %206

206:                                              ; preds = %197
  %207 = getelementptr inbounds %"class.std::complex", ptr %204, i64 %199
  br label %208

208:                                              ; preds = %210, %206
  %209 = phi ptr [ %204, %206 ], [ %211, %210 ]
  invoke void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %209, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %210 unwind label %223

210:                                              ; preds = %208
  %211 = getelementptr inbounds %"class.std::complex", ptr %209, i64 1
  %212 = icmp eq ptr %211, %207
  br i1 %212, label %213, label %208

213:                                              ; preds = %210, %197
  store ptr %204, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #12
  store i32 0, ptr %19, align 4, !tbaa !13
  br label %214

214:                                              ; preds = %382, %213
  %215 = load i32, ptr %19, align 4, !tbaa !13
  %216 = load i32, ptr %15, align 4, !tbaa !13
  %217 = icmp ult i32 %215, %216
  br i1 %217, label %227, label %218

218:                                              ; preds = %214
  store i32 2, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #12
  br label %385

219:                                              ; preds = %192
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %10, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %11, align 4
  call void @_ZdaPvm(ptr noundef %188, i64 noundef %187) #16
  br label %494

223:                                              ; preds = %208
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %10, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %11, align 4
  call void @_ZdaPvm(ptr noundef %204, i64 noundef %203) #16
  br label %493

227:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #12
  store i32 0, ptr %21, align 4, !tbaa !13
  br label %228

228:                                              ; preds = %339, %227
  %229 = load i32, ptr %21, align 4, !tbaa !13
  %230 = load i32, ptr %16, align 4, !tbaa !13
  %231 = icmp ult i32 %229, %230
  br i1 %231, label %233, label %232

232:                                              ; preds = %228
  store i32 5, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #12
  br label %342

233:                                              ; preds = %228
  %234 = load i32, ptr %21, align 4, !tbaa !13
  %235 = icmp eq i32 %234, 0
  br i1 %235, label %236, label %246

236:                                              ; preds = %233
  %237 = load ptr, ptr %17, align 8, !tbaa !5
  %238 = load i32, ptr %19, align 4, !tbaa !13
  %239 = load i32, ptr %15, align 4, !tbaa !13
  %240 = load i32, ptr %21, align 4, !tbaa !13
  %241 = mul i32 %239, %240
  %242 = add i32 %238, %241
  %243 = zext i32 %242 to i64
  %244 = getelementptr inbounds %"class.std::complex", ptr %237, i64 %243
  %245 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %244, double noundef 1.000000e+00)
  br label %338

246:                                              ; preds = %233
  %247 = load i32, ptr %21, align 4, !tbaa !13
  %248 = getelementptr inbounds %"class.TBTK::PadeApproximator", ptr %42, i32 0, i32 0
  %249 = load i32, ptr %248, align 4, !tbaa !9
  %250 = add i32 %249, 1
  %251 = icmp ult i32 %247, %250
  br i1 %251, label %252, label %271

252:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #12
  %253 = load ptr, ptr %8, align 8, !tbaa !5
  %254 = load i32, ptr %19, align 4, !tbaa !13
  %255 = zext i32 %254 to i64
  %256 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %253, i64 noundef %255) #12
  %257 = call { double, double } @_ZSt3powIdjESt7complexIN9__gnu_cxx9__promoteIDTplcvNS2_IT_Xsr3std12__is_integerIS3_EE7__valueEE6__typeELi0EcvNS2_IT0_Xsr3std12__is_integerIS6_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS9_EE7__valueEE6__typeEERKS0_IS3_ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %256, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %258 = getelementptr inbounds %"class.std::complex", ptr %22, i32 0, i32 0
  %259 = getelementptr inbounds { double, double }, ptr %258, i32 0, i32 0
  %260 = extractvalue { double, double } %257, 0
  store double %260, ptr %259, align 8
  %261 = getelementptr inbounds { double, double }, ptr %258, i32 0, i32 1
  %262 = extractvalue { double, double } %257, 1
  store double %262, ptr %261, align 8
  %263 = load ptr, ptr %17, align 8, !tbaa !5
  %264 = load i32, ptr %19, align 4, !tbaa !13
  %265 = load i32, ptr %15, align 4, !tbaa !13
  %266 = load i32, ptr %21, align 4, !tbaa !13
  %267 = mul i32 %265, %266
  %268 = add i32 %264, %267
  %269 = zext i32 %268 to i64
  %270 = getelementptr inbounds %"class.std::complex", ptr %263, i64 %269
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %270, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #12
  br label %337

271:                                              ; preds = %246
  %272 = load i32, ptr %21, align 4, !tbaa !13
  %273 = getelementptr inbounds %"class.TBTK::PadeApproximator", ptr %42, i32 0, i32 0
  %274 = load i32, ptr %273, align 4, !tbaa !9
  %275 = add i32 %274, 1
  %276 = icmp eq i32 %272, %275
  br i1 %276, label %277, label %296

277:                                              ; preds = %271
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #12
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = load i32, ptr %19, align 4, !tbaa !13
  %280 = zext i32 %279 to i64
  %281 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %278, i64 noundef %280) #12
  %282 = call { double, double } @_ZStngIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %281)
  %283 = getelementptr inbounds %"class.std::complex", ptr %23, i32 0, i32 0
  %284 = getelementptr inbounds { double, double }, ptr %283, i32 0, i32 0
  %285 = extractvalue { double, double } %282, 0
  store double %285, ptr %284, align 8
  %286 = getelementptr inbounds { double, double }, ptr %283, i32 0, i32 1
  %287 = extractvalue { double, double } %282, 1
  store double %287, ptr %286, align 8
  %288 = load ptr, ptr %17, align 8, !tbaa !5
  %289 = load i32, ptr %19, align 4, !tbaa !13
  %290 = load i32, ptr %15, align 4, !tbaa !13
  %291 = load i32, ptr %21, align 4, !tbaa !13
  %292 = mul i32 %290, %291
  %293 = add i32 %289, %292
  %294 = zext i32 %293 to i64
  %295 = getelementptr inbounds %"class.std::complex", ptr %288, i64 %294
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %295, ptr align 8 %23, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #12
  br label %336

296:                                              ; preds = %271
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #12
  %297 = load ptr, ptr %7, align 8, !tbaa !5
  %298 = load i32, ptr %19, align 4, !tbaa !13
  %299 = zext i32 %298 to i64
  %300 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %297, i64 noundef %299) #12
  %301 = call { double, double } @_ZStngIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %300)
  %302 = getelementptr inbounds %"class.std::complex", ptr %25, i32 0, i32 0
  %303 = getelementptr inbounds { double, double }, ptr %302, i32 0, i32 0
  %304 = extractvalue { double, double } %301, 0
  store double %304, ptr %303, align 8
  %305 = getelementptr inbounds { double, double }, ptr %302, i32 0, i32 1
  %306 = extractvalue { double, double } %301, 1
  store double %306, ptr %305, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #12
  %307 = load ptr, ptr %8, align 8, !tbaa !5
  %308 = load i32, ptr %19, align 4, !tbaa !13
  %309 = zext i32 %308 to i64
  %310 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %307, i64 noundef %309) #12
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #12
  %311 = load i32, ptr %21, align 4, !tbaa !13
  %312 = getelementptr inbounds %"class.TBTK::PadeApproximator", ptr %42, i32 0, i32 0
  %313 = load i32, ptr %312, align 4, !tbaa !9
  %314 = sub i32 %311, %313
  %315 = sub i32 %314, 1
  store i32 %315, ptr %27, align 4, !tbaa !13
  %316 = call { double, double } @_ZSt3powIdjESt7complexIN9__gnu_cxx9__promoteIDTplcvNS2_IT_Xsr3std12__is_integerIS3_EE7__valueEE6__typeELi0EcvNS2_IT0_Xsr3std12__is_integerIS6_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS9_EE7__valueEE6__typeEERKS0_IS3_ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %310, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %317 = getelementptr inbounds %"class.std::complex", ptr %26, i32 0, i32 0
  %318 = getelementptr inbounds { double, double }, ptr %317, i32 0, i32 0
  %319 = extractvalue { double, double } %316, 0
  store double %319, ptr %318, align 8
  %320 = getelementptr inbounds { double, double }, ptr %317, i32 0, i32 1
  %321 = extractvalue { double, double } %316, 1
  store double %321, ptr %320, align 8
  %322 = call { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %26)
  %323 = getelementptr inbounds %"class.std::complex", ptr %24, i32 0, i32 0
  %324 = getelementptr inbounds { double, double }, ptr %323, i32 0, i32 0
  %325 = extractvalue { double, double } %322, 0
  store double %325, ptr %324, align 8
  %326 = getelementptr inbounds { double, double }, ptr %323, i32 0, i32 1
  %327 = extractvalue { double, double } %322, 1
  store double %327, ptr %326, align 8
  %328 = load ptr, ptr %17, align 8, !tbaa !5
  %329 = load i32, ptr %19, align 4, !tbaa !13
  %330 = load i32, ptr %15, align 4, !tbaa !13
  %331 = load i32, ptr %21, align 4, !tbaa !13
  %332 = mul i32 %330, %331
  %333 = add i32 %329, %332
  %334 = zext i32 %333 to i64
  %335 = getelementptr inbounds %"class.std::complex", ptr %328, i64 %334
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %335, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #12
  br label %336

336:                                              ; preds = %296, %277
  br label %337

337:                                              ; preds = %336, %252
  br label %338

338:                                              ; preds = %337, %236
  br label %339

339:                                              ; preds = %338
  %340 = load i32, ptr %21, align 4, !tbaa !13
  %341 = add i32 %340, 1
  store i32 %341, ptr %21, align 4, !tbaa !13
  br label %228, !llvm.loop !16

342:                                              ; preds = %232
  %343 = getelementptr inbounds %"class.TBTK::PadeApproximator", ptr %42, i32 0, i32 1
  %344 = load i32, ptr %343, align 4, !tbaa !12
  %345 = icmp eq i32 %344, 0
  br i1 %345, label %346, label %355

346:                                              ; preds = %342
  %347 = load ptr, ptr %7, align 8, !tbaa !5
  %348 = load i32, ptr %19, align 4, !tbaa !13
  %349 = zext i32 %348 to i64
  %350 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %347, i64 noundef %349) #12
  %351 = load ptr, ptr %18, align 8, !tbaa !5
  %352 = load i32, ptr %19, align 4, !tbaa !13
  %353 = zext i32 %352 to i64
  %354 = getelementptr inbounds %"class.std::complex", ptr %351, i64 %353
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %354, ptr align 8 %350, i64 16, i1 false), !tbaa.struct !14
  br label %381

355:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #12
  %356 = load ptr, ptr %7, align 8, !tbaa !5
  %357 = load i32, ptr %19, align 4, !tbaa !13
  %358 = zext i32 %357 to i64
  %359 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %356, i64 noundef %358) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #12
  %360 = load ptr, ptr %8, align 8, !tbaa !5
  %361 = load i32, ptr %19, align 4, !tbaa !13
  %362 = zext i32 %361 to i64
  %363 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %360, i64 noundef %362) #12
  %364 = getelementptr inbounds %"class.TBTK::PadeApproximator", ptr %42, i32 0, i32 1
  %365 = call { double, double } @_ZSt3powIdjESt7complexIN9__gnu_cxx9__promoteIDTplcvNS2_IT_Xsr3std12__is_integerIS3_EE7__valueEE6__typeELi0EcvNS2_IT0_Xsr3std12__is_integerIS6_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS9_EE7__valueEE6__typeEERKS0_IS3_ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %363, ptr noundef nonnull align 4 dereferenceable(4) %364)
  %366 = getelementptr inbounds %"class.std::complex", ptr %29, i32 0, i32 0
  %367 = getelementptr inbounds { double, double }, ptr %366, i32 0, i32 0
  %368 = extractvalue { double, double } %365, 0
  store double %368, ptr %367, align 8
  %369 = getelementptr inbounds { double, double }, ptr %366, i32 0, i32 1
  %370 = extractvalue { double, double } %365, 1
  store double %370, ptr %369, align 8
  %371 = call { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %359, ptr noundef nonnull align 8 dereferenceable(16) %29)
  %372 = getelementptr inbounds %"class.std::complex", ptr %28, i32 0, i32 0
  %373 = getelementptr inbounds { double, double }, ptr %372, i32 0, i32 0
  %374 = extractvalue { double, double } %371, 0
  store double %374, ptr %373, align 8
  %375 = getelementptr inbounds { double, double }, ptr %372, i32 0, i32 1
  %376 = extractvalue { double, double } %371, 1
  store double %376, ptr %375, align 8
  %377 = load ptr, ptr %18, align 8, !tbaa !5
  %378 = load i32, ptr %19, align 4, !tbaa !13
  %379 = zext i32 %378 to i64
  %380 = getelementptr inbounds %"class.std::complex", ptr %377, i64 %379
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %380, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #12
  br label %381

381:                                              ; preds = %355, %346
  br label %382

382:                                              ; preds = %381
  %383 = load i32, ptr %19, align 4, !tbaa !13
  %384 = add i32 %383, 1
  store i32 %384, ptr %19, align 4, !tbaa !13
  br label %214, !llvm.loop !18

385:                                              ; preds = %218
  %386 = load ptr, ptr %17, align 8, !tbaa !5
  %387 = load ptr, ptr %18, align 8, !tbaa !5
  %388 = load i32, ptr %15, align 4, !tbaa !13
  %389 = load i32, ptr %16, align 4, !tbaa !13
  call void @_ZN4TBTK16PadeApproximator18executeLeastSquareEPSt7complexIdES3_jj(ptr noundef nonnull align 4 dereferenceable(8) %42, ptr noundef %386, ptr noundef %387, i32 noundef %388, i32 noundef %389)
  store i1 false, ptr %30, align 1
  call void @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #12
  call void @llvm.lifetime.start.p0(i64 80, ptr %31) #12
  invoke void @_ZN4TBTK10PolynomialISt7complexIdES2_iEC2Ej(ptr noundef nonnull align 8 dereferenceable(80) %31, i32 noundef 1)
          to label %390 unwind label %401

390:                                              ; preds = %385
  invoke void @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(80) %31)
          to label %391 unwind label %405

391:                                              ; preds = %390
  call void @_ZN4TBTK10PolynomialISt7complexIdES2_iED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %31) #12
  call void @llvm.lifetime.end.p0(i64 80, ptr %31) #12
  call void @llvm.lifetime.start.p0(i64 80, ptr %32) #12
  invoke void @_ZN4TBTK10PolynomialISt7complexIdES2_iEC2Ej(ptr noundef nonnull align 8 dereferenceable(80) %32, i32 noundef 1)
          to label %392 unwind label %410

392:                                              ; preds = %391
  invoke void @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(80) %32)
          to label %393 unwind label %414

393:                                              ; preds = %392
  call void @_ZN4TBTK10PolynomialISt7complexIdES2_iED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %32) #12
  call void @llvm.lifetime.end.p0(i64 80, ptr %32) #12
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #12
  store i32 0, ptr %33, align 4, !tbaa !13
  br label %394

394:                                              ; preds = %429, %393
  %395 = load i32, ptr %33, align 4, !tbaa !13
  %396 = getelementptr inbounds %"class.TBTK::PadeApproximator", ptr %42, i32 0, i32 0
  %397 = load i32, ptr %396, align 4, !tbaa !9
  %398 = add i32 %397, 1
  %399 = icmp ult i32 %395, %398
  br i1 %399, label %419, label %400

400:                                              ; preds = %394
  store i32 8, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #12
  br label %436

401:                                              ; preds = %385
  %402 = landingpad { ptr, i32 }
          cleanup
  %403 = extractvalue { ptr, i32 } %402, 0
  store ptr %403, ptr %10, align 8
  %404 = extractvalue { ptr, i32 } %402, 1
  store i32 %404, ptr %11, align 4
  br label %409

405:                                              ; preds = %390
  %406 = landingpad { ptr, i32 }
          cleanup
  %407 = extractvalue { ptr, i32 } %406, 0
  store ptr %407, ptr %10, align 8
  %408 = extractvalue { ptr, i32 } %406, 1
  store i32 %408, ptr %11, align 4
  call void @_ZN4TBTK10PolynomialISt7complexIdES2_iED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %31) #12
  br label %409

409:                                              ; preds = %405, %401
  call void @llvm.lifetime.end.p0(i64 80, ptr %31) #12
  br label %492

410:                                              ; preds = %391
  %411 = landingpad { ptr, i32 }
          cleanup
  %412 = extractvalue { ptr, i32 } %411, 0
  store ptr %412, ptr %10, align 8
  %413 = extractvalue { ptr, i32 } %411, 1
  store i32 %413, ptr %11, align 4
  br label %418

414:                                              ; preds = %392
  %415 = landingpad { ptr, i32 }
          cleanup
  %416 = extractvalue { ptr, i32 } %415, 0
  store ptr %416, ptr %10, align 8
  %417 = extractvalue { ptr, i32 } %415, 1
  store i32 %417, ptr %11, align 4
  call void @_ZN4TBTK10PolynomialISt7complexIdES2_iED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %32) #12
  br label %418

418:                                              ; preds = %414, %410
  call void @llvm.lifetime.end.p0(i64 80, ptr %32) #12
  br label %492

419:                                              ; preds = %394
  %420 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #12
  %421 = load ptr, ptr %18, align 8, !tbaa !5
  %422 = load i32, ptr %33, align 4, !tbaa !13
  %423 = zext i32 %422 to i64
  %424 = getelementptr inbounds %"class.std::complex", ptr %421, i64 %423
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #12
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #12
  %425 = load i32, ptr %33, align 4, !tbaa !13
  store i32 %425, ptr %35, align 4, !tbaa !13
  %426 = getelementptr inbounds %"class.std::initializer_list", ptr %34, i32 0, i32 0
  store ptr %35, ptr %426, align 8, !tbaa !19
  %427 = getelementptr inbounds %"class.std::initializer_list", ptr %34, i32 0, i32 1
  store i64 1, ptr %427, align 8, !tbaa !22
  invoke void @_ZN4TBTK10PolynomialISt7complexIdES2_iE7addTermERKS2_RKSt16initializer_listIiE(ptr noundef nonnull align 8 dereferenceable(80) %420, ptr noundef nonnull align 8 dereferenceable(16) %424, ptr noundef nonnull align 8 dereferenceable(16) %34)
          to label %428 unwind label %432

428:                                              ; preds = %419
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #12
  br label %429

429:                                              ; preds = %428
  %430 = load i32, ptr %33, align 4, !tbaa !13
  %431 = add i32 %430, 1
  store i32 %431, ptr %33, align 4, !tbaa !13
  br label %394, !llvm.loop !23

432:                                              ; preds = %419
  %433 = landingpad { ptr, i32 }
          cleanup
  %434 = extractvalue { ptr, i32 } %433, 0
  store ptr %434, ptr %10, align 8
  %435 = extractvalue { ptr, i32 } %433, 1
  store i32 %435, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #12
  br label %492

436:                                              ; preds = %400
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #12
  store i32 0, ptr %36, align 4, !tbaa !13
  br label %437

437:                                              ; preds = %457, %436
  %438 = load i32, ptr %36, align 4, !tbaa !13
  %439 = getelementptr inbounds %"class.TBTK::PadeApproximator", ptr %42, i32 0, i32 1
  %440 = load i32, ptr %439, align 4, !tbaa !12
  %441 = icmp ult i32 %438, %440
  br i1 %441, label %443, label %442

442:                                              ; preds = %437
  store i32 11, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #12
  br label %464

443:                                              ; preds = %437
  %444 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #12
  %445 = load ptr, ptr %18, align 8, !tbaa !5
  %446 = load i32, ptr %36, align 4, !tbaa !13
  %447 = getelementptr inbounds %"class.TBTK::PadeApproximator", ptr %42, i32 0, i32 0
  %448 = load i32, ptr %447, align 4, !tbaa !9
  %449 = add i32 %446, %448
  %450 = add i32 %449, 1
  %451 = zext i32 %450 to i64
  %452 = getelementptr inbounds %"class.std::complex", ptr %445, i64 %451
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #12
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #12
  %453 = load i32, ptr %36, align 4, !tbaa !13
  store i32 %453, ptr %38, align 4, !tbaa !13
  %454 = getelementptr inbounds %"class.std::initializer_list", ptr %37, i32 0, i32 0
  store ptr %38, ptr %454, align 8, !tbaa !19
  %455 = getelementptr inbounds %"class.std::initializer_list", ptr %37, i32 0, i32 1
  store i64 1, ptr %455, align 8, !tbaa !22
  invoke void @_ZN4TBTK10PolynomialISt7complexIdES2_iE7addTermERKS2_RKSt16initializer_listIiE(ptr noundef nonnull align 8 dereferenceable(80) %444, ptr noundef nonnull align 8 dereferenceable(16) %452, ptr noundef nonnull align 8 dereferenceable(16) %37)
          to label %456 unwind label %460

456:                                              ; preds = %443
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #12
  br label %457

457:                                              ; preds = %456
  %458 = load i32, ptr %36, align 4, !tbaa !13
  %459 = add i32 %458, 1
  store i32 %459, ptr %36, align 4, !tbaa !13
  br label %437, !llvm.loop !24

460:                                              ; preds = %443
  %461 = landingpad { ptr, i32 }
          cleanup
  %462 = extractvalue { ptr, i32 } %461, 0
  store ptr %462, ptr %10, align 8
  %463 = extractvalue { ptr, i32 } %461, 1
  store i32 %463, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #12
  br label %492

464:                                              ; preds = %442
  %465 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #12
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #12
  invoke void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %39, double noundef 1.000000e+00, double noundef 0.000000e+00)
          to label %466 unwind label %481

466:                                              ; preds = %464
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #12
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #12
  %467 = getelementptr inbounds %"class.TBTK::PadeApproximator", ptr %42, i32 0, i32 1
  %468 = load i32, ptr %467, align 4, !tbaa !12
  store i32 %468, ptr %41, align 4, !tbaa !13
  %469 = getelementptr inbounds %"class.std::initializer_list", ptr %40, i32 0, i32 0
  store ptr %41, ptr %469, align 8, !tbaa !19
  %470 = getelementptr inbounds %"class.std::initializer_list", ptr %40, i32 0, i32 1
  store i64 1, ptr %470, align 8, !tbaa !22
  invoke void @_ZN4TBTK10PolynomialISt7complexIdES2_iE7addTermERKS2_RKSt16initializer_listIiE(ptr noundef nonnull align 8 dereferenceable(80) %465, ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 8 dereferenceable(16) %40)
          to label %471 unwind label %485

471:                                              ; preds = %466
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #12
  %472 = load ptr, ptr %17, align 8, !tbaa !5
  %473 = icmp eq ptr %472, null
  br i1 %473, label %475, label %474

474:                                              ; preds = %471
  call void @_ZdaPv(ptr noundef %472) #16
  br label %475

475:                                              ; preds = %474, %471
  %476 = load ptr, ptr %18, align 8, !tbaa !5
  %477 = icmp eq ptr %476, null
  br i1 %477, label %479, label %478

478:                                              ; preds = %475
  call void @_ZdaPv(ptr noundef %476) #16
  br label %479

479:                                              ; preds = %478, %475
  store i1 true, ptr %30, align 1
  store i32 1, ptr %20, align 4
  %480 = load i1, ptr %30, align 1
  br i1 %480, label %491, label %490

481:                                              ; preds = %464
  %482 = landingpad { ptr, i32 }
          cleanup
  %483 = extractvalue { ptr, i32 } %482, 0
  store ptr %483, ptr %10, align 8
  %484 = extractvalue { ptr, i32 } %482, 1
  store i32 %484, ptr %11, align 4
  br label %489

485:                                              ; preds = %466
  %486 = landingpad { ptr, i32 }
          cleanup
  %487 = extractvalue { ptr, i32 } %486, 0
  store ptr %487, ptr %10, align 8
  %488 = extractvalue { ptr, i32 } %486, 1
  store i32 %488, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #12
  br label %489

489:                                              ; preds = %485, %481
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #12
  br label %492

490:                                              ; preds = %479
  call void @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #12
  br label %491

491:                                              ; preds = %490, %479
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #12
  ret void

492:                                              ; preds = %489, %460, %432, %418, %409
  call void @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #12
  br label %493

493:                                              ; preds = %492, %223
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #12
  br label %494

494:                                              ; preds = %493, %219
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #12
  br label %495

495:                                              ; preds = %494, %169, %101
  %496 = load ptr, ptr %10, align 8
  %497 = load i32, ptr %11, align 4
  %498 = insertvalue { ptr, i32 } poison, ptr %496, 0
  %499 = insertvalue { ptr, i32 } %498, i32 %497, 1
  resume { ptr, i32 } %499
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(128)) #0 align 2

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

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

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

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

declare noundef zeroext i1 @_ZN4TBTK7Streams9logIsOpenEv() #5

declare void @_ZN4TBTK7Streams8closeLogEv() #5

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #6

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #7

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4TBTK16PadeApproximator18executeLeastSquareEPSt7complexIdES3_jj(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(80)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4TBTK10PolynomialISt7complexIdES2_iEC2Ej(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4TBTK10PolynomialISt7complexIdES2_iED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #11 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4TBTK10PolynomialISt7complexIdES2_iE7addTermERKS2_RKSt16initializer_listIiE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #9

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

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


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<TBTK::Polynomial<>, std::allocator<TBTK::Polynomial<>>>::_Vector_impl" }
%"struct.std::_Vector_base<TBTK::Polynomial<>, std::allocator<TBTK::Polynomial<>>>::_Vector_impl" = type { %"struct.std::_Vector_base<TBTK::Polynomial<>, std::allocator<TBTK::Polynomial<>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TBTK::Polynomial<>, std::allocator<TBTK::Polynomial<>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::complex" = type { { double, double } }
%"class.TBTK::Polynomial" = type { i32, %"class.std::vector.8", %"class.std::vector.13", %"class.std::vector.18" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::tuple<std::complex<double>, std::vector<int>>, std::allocator<std::tuple<std::complex<double>, std::vector<int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<std::complex<double>, std::vector<int>>, std::allocator<std::tuple<std::complex<double>, std::vector<int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<std::complex<double>, std::vector<int>>, std::allocator<std::tuple<std::complex<double>, std::vector<int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<std::complex<double>, std::vector<int>>, std::allocator<std::tuple<std::complex<double>, std::vector<int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::tuple<TBTK::Polynomial<>, int>, std::allocator<std::tuple<TBTK::Polynomial<>, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<TBTK::Polynomial<>, int>, std::allocator<std::tuple<TBTK::Polynomial<>, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<TBTK::Polynomial<>, int>, std::allocator<std::tuple<TBTK::Polynomial<>, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<TBTK::Polynomial<>, int>, std::allocator<std::tuple<TBTK::Polynomial<>, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<std::tuple<TBTK::Polynomial<>, TBTK::Polynomial<>>, std::allocator<std::tuple<TBTK::Polynomial<>, TBTK::Polynomial<>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<TBTK::Polynomial<>, TBTK::Polynomial<>>, std::allocator<std::tuple<TBTK::Polynomial<>, TBTK::Polynomial<>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<TBTK::Polynomial<>, TBTK::Polynomial<>>, std::allocator<std::tuple<TBTK::Polynomial<>, TBTK::Polynomial<>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<TBTK::Polynomial<>, TBTK::Polynomial<>>, std::allocator<std::tuple<TBTK::Polynomial<>, TBTK::Polynomial<>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }

@_ZN4TBTK7Streams3errE = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4TBTK16PadeApproximator11approximateERKSt6vectorISt7complexIdESaIS3_EES7_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::complex", align 8
  %11 = alloca %"class.std::complex", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::complex", align 8
  %14 = alloca %"class.TBTK::Polynomial", align 8
  %15 = alloca %"class.TBTK::Polynomial", align 8
  %16 = alloca %"class.std::initializer_list", align 8
  %17 = alloca [1 x i32], align 4
  %18 = alloca %"class.std::initializer_list", align 8
  %19 = alloca [1 x i32], align 4
  %20 = alloca %"class.std::complex", align 8
  %21 = alloca %"class.std::initializer_list", align 8
  %22 = alloca [1 x i32], align 4
  %23 = tail call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #11
  %24 = tail call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #11
  %25 = icmp eq i64 %23, %24
  br i1 %25, label %71, label %26

26:                                               ; preds = %4
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZN4TBTK7Streams3errE, ptr noundef nonnull @.str)
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @.str.1)
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull @.str.2)
  %30 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZN4TBTK7Streams3errE, ptr noundef nonnull @.str.3)
  %31 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull @.str.4)
  %32 = tail call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #11
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %31, i64 noundef %32)
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull @.str.5)
  %35 = tail call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #11
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %34, i64 noundef %35)
  %37 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull @.str.6)
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull @.str.2)
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %5) #11
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %5)
  %39 = getelementptr inbounds i8, ptr %5, i64 16
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @.str.7)
          to label %41 unwind label %51

41:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #11
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(128) %5)
          to label %42 unwind label %53

42:                                               ; preds = %41
  %43 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #11
  %44 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %43, ptr noundef nonnull dereferenceable(1) @.str.7) #12
  %.not = icmp eq i32 %44, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #11
  br i1 %.not, label %55, label %45

45:                                               ; preds = %42
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZN4TBTK7Streams3errE, ptr noundef nonnull @.str.8)
          to label %47 unwind label %51

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull @.str.7)
          to label %49 unwind label %51

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull @.str.2)
          to label %55 unwind label %51

51:                                               ; preds = %68, %65, %63, %61, %59, %57, %55, %49, %47, %45, %26
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %70

53:                                               ; preds = %41
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #11
  br label %70

55:                                               ; preds = %49, %42
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZN4TBTK7Streams3errE, ptr noundef nonnull @.str.9)
          to label %57 unwind label %51

57:                                               ; preds = %55
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull @.str.10)
          to label %59 unwind label %51

59:                                               ; preds = %57
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull @.str.11)
          to label %61 unwind label %51

61:                                               ; preds = %59
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %60, i32 noundef 40)
          to label %63 unwind label %51

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull @.str.2)
          to label %65 unwind label %51

65:                                               ; preds = %63
  %66 = invoke noundef zeroext i1 @_ZN4TBTK7Streams9logIsOpenEv()
          to label %67 unwind label %51

67:                                               ; preds = %65
  br i1 %66, label %68, label %69

68:                                               ; preds = %67
  invoke void @_ZN4TBTK7Streams8closeLogEv()
          to label %69 unwind label %51

69:                                               ; preds = %68, %67
  call void @exit(i32 noundef 1) #13
  unreachable

70:                                               ; preds = %53, %51
  %.pn = phi { ptr, i32 } [ %52, %51 ], [ %54, %53 ]
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %5) #11
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %5) #11
  br label %273

71:                                               ; preds = %4
  %72 = tail call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #11
  %73 = load i32, ptr %1, align 4, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %1, i64 4
  %75 = load i32, ptr %74, align 4, !tbaa !10
  %76 = add i32 %75, %73
  %77 = zext i32 %76 to i64
  %78 = icmp ugt i64 %72, %77
  br i1 %78, label %127, label %79

79:                                               ; preds = %71
  %80 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZN4TBTK7Streams3errE, ptr noundef nonnull @.str)
  %81 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull @.str.1)
  %82 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull @.str.2)
  %83 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZN4TBTK7Streams3errE, ptr noundef nonnull @.str.3)
  %84 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef nonnull @.str.12)
  %85 = tail call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #11
  %86 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %84, i64 noundef %85)
  %87 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull @.str.13)
  %88 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull @.str.14)
  %89 = load i32, ptr %1, align 4, !tbaa !5
  %90 = load i32, ptr %74, align 4, !tbaa !10
  %91 = add i32 %90, %89
  %92 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %88, i32 noundef %91)
  %93 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull @.str.15)
  %94 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull @.str.2)
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %7) #11
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %7)
  %95 = getelementptr inbounds i8, ptr %7, i64 16
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef nonnull @.str.7)
          to label %97 unwind label %107

97:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #11
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(128) %7)
          to label %98 unwind label %109

98:                                               ; preds = %97
  %99 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  %100 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %99, ptr noundef nonnull dereferenceable(1) @.str.7) #12
  %.not83 = icmp eq i32 %100, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #11
  br i1 %.not83, label %111, label %101

101:                                              ; preds = %98
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZN4TBTK7Streams3errE, ptr noundef nonnull @.str.8)
          to label %103 unwind label %107

103:                                              ; preds = %101
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef nonnull @.str.7)
          to label %105 unwind label %107

105:                                              ; preds = %103
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef nonnull @.str.2)
          to label %111 unwind label %107

107:                                              ; preds = %124, %121, %119, %117, %115, %113, %111, %105, %103, %101, %79
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %126

109:                                              ; preds = %97
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #11
  br label %126

111:                                              ; preds = %105, %98
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZN4TBTK7Streams3errE, ptr noundef nonnull @.str.9)
          to label %113 unwind label %107

113:                                              ; preds = %111
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef nonnull @.str.10)
          to label %115 unwind label %107

115:                                              ; preds = %113
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull @.str.11)
          to label %117 unwind label %107

117:                                              ; preds = %115
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %116, i32 noundef 48)
          to label %119 unwind label %107

119:                                              ; preds = %117
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef nonnull @.str.2)
          to label %121 unwind label %107

121:                                              ; preds = %119
  %122 = invoke noundef zeroext i1 @_ZN4TBTK7Streams9logIsOpenEv()
          to label %123 unwind label %107

123:                                              ; preds = %121
  br i1 %122, label %124, label %125

124:                                              ; preds = %123
  invoke void @_ZN4TBTK7Streams8closeLogEv()
          to label %125 unwind label %107

125:                                              ; preds = %124, %123
  call void @exit(i32 noundef 1) #13
  unreachable

126:                                              ; preds = %109, %107
  %.pn84 = phi { ptr, i32 } [ %108, %107 ], [ %110, %109 ]
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %7) #11
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %7) #11
  br label %273

127:                                              ; preds = %71
  %128 = tail call noundef i64 @_ZNKSt6vectorISt7complexIdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #11
  %129 = trunc i64 %128 to i32
  %130 = load i32, ptr %1, align 4, !tbaa !5
  %131 = add i32 %130, 1
  %132 = load i32, ptr %74, align 4, !tbaa !10
  %133 = add i32 %131, %132
  %134 = mul i32 %133, %129
  %135 = zext i32 %134 to i64
  %136 = shl nuw nsw i64 %135, 4
  %137 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %136) #14
  %138 = icmp eq i32 %134, 0
  br i1 %138, label %.loopexit89, label %139

139:                                              ; preds = %127
  %140 = getelementptr inbounds %"class.std::complex", ptr %137, i64 %135
  br label %141

141:                                              ; preds = %141, %139
  %142 = phi ptr [ %137, %139 ], [ %143, %141 ]
  tail call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %142, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %143 = getelementptr inbounds i8, ptr %142, i64 16
  %144 = icmp eq ptr %143, %140
  br i1 %144, label %.loopexit89, label %141

.loopexit89:                                      ; preds = %141, %127
  %145 = and i64 %128, 4294967295
  %146 = shl nuw nsw i64 %145, 4
  %147 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %146) #14
  %148 = icmp eq i64 %145, 0
  br i1 %148, label %.loopexit, label %149

149:                                              ; preds = %.loopexit89
  %150 = getelementptr inbounds %"class.std::complex", ptr %147, i64 %145
  br label %151

151:                                              ; preds = %151, %149
  %152 = phi ptr [ %147, %149 ], [ %153, %151 ]
  tail call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %152, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %153 = getelementptr inbounds i8, ptr %152, i64 16
  %154 = icmp eq ptr %153, %150
  br i1 %154, label %.loopexit, label %151

.loopexit:                                        ; preds = %151, %.loopexit89
  %.not101 = icmp eq i32 %129, 0
  br i1 %.not101, label %._crit_edge94, label %.lr.ph93

.lr.ph93:                                         ; preds = %.loopexit
  %.not102 = icmp eq i32 %133, 0
  %155 = getelementptr inbounds i8, ptr %10, i64 8
  %156 = getelementptr inbounds i8, ptr %11, i64 8
  %157 = getelementptr inbounds i8, ptr %13, i64 8
  %wide.trip.count = and i64 %128, 4294967295
  br label %158

._crit_edge94:                                    ; preds = %232, %.loopexit
  call void @_ZN4TBTK16PadeApproximator18executeLeastSquareEPSt7complexIdES3_jj(ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull %137, ptr noundef nonnull %147, i32 noundef %129, i32 noundef %133)
  call void @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #11
  call void @_ZN4TBTK10PolynomialISt7complexIdES2_iEC2Ej(ptr noundef nonnull align 8 dereferenceable(80) %14, i32 noundef 1)
  invoke void @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(80) %14)
          to label %233 unwind label %239

158:                                              ; preds = %.lr.ph93, %232
  %indvars.iv = phi i64 [ 0, %.lr.ph93 ], [ %indvars.iv.next, %232 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #11
  store i32 0, ptr %9, align 4, !tbaa !11
  br i1 %.not102, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %158
  %159 = getelementptr inbounds %"class.std::complex", ptr %137, i64 %indvars.iv
  %160 = trunc nuw i64 %indvars.iv to i32
  %161 = trunc nuw i64 %indvars.iv to i32
  %162 = trunc nuw i64 %indvars.iv to i32
  br label %166

._crit_edge:                                      ; preds = %217, %158
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #11
  %163 = load i32, ptr %74, align 4, !tbaa !10
  %164 = icmp eq i32 %163, 0
  %165 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #11
  br i1 %164, label %221, label %223

166:                                              ; preds = %.lr.ph, %217
  %storemerge90 = phi i32 [ 0, %.lr.ph ], [ %219, %217 ]
  %167 = icmp eq i32 %storemerge90, 0
  br i1 %167, label %168, label %170

168:                                              ; preds = %166
  %169 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt7complexIdEaSEd(ptr noundef nonnull align 8 dereferenceable(16) %159, double noundef 1.000000e+00)
  %.pre = load i32, ptr %9, align 4, !tbaa !11
  br label %217

170:                                              ; preds = %166
  %171 = load i32, ptr %1, align 4, !tbaa !5
  %172 = add i32 %171, 1
  %173 = icmp ult i32 %storemerge90, %172
  br i1 %173, label %174, label %184

174:                                              ; preds = %170
  %175 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #11
  %176 = call { double, double } @_ZSt3powIdjESt7complexIN9__gnu_cxx9__promoteIDTplcvNS2_IT_Xsr3std12__is_integerIS3_EE7__valueEE6__typeELi0EcvNS2_IT0_Xsr3std12__is_integerIS6_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS9_EE7__valueEE6__typeEERKS0_IS3_ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %175, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %177 = extractvalue { double, double } %176, 0
  %178 = extractvalue { double, double } %176, 1
  %179 = load i32, ptr %9, align 4, !tbaa !11
  %180 = mul i32 %179, %129
  %181 = add i32 %180, %162
  %182 = zext i32 %181 to i64
  %183 = getelementptr inbounds %"class.std::complex", ptr %137, i64 %182
  store double %177, ptr %183, align 8
  %.sroa.413.0..sroa_idx = getelementptr inbounds i8, ptr %183, i64 8
  store double %178, ptr %.sroa.413.0..sroa_idx, align 8, !tbaa !12
  br label %217

184:                                              ; preds = %170
  %185 = icmp eq i32 %storemerge90, %172
  br i1 %185, label %186, label %196

186:                                              ; preds = %184
  %187 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #11
  %188 = call { double, double } @_ZStngIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %187)
  %189 = extractvalue { double, double } %188, 0
  %190 = extractvalue { double, double } %188, 1
  %191 = load i32, ptr %9, align 4, !tbaa !11
  %192 = mul i32 %191, %129
  %193 = add i32 %192, %161
  %194 = zext i32 %193 to i64
  %195 = getelementptr inbounds %"class.std::complex", ptr %137, i64 %194
  store double %189, ptr %195, align 8
  %.sroa.411.0..sroa_idx = getelementptr inbounds i8, ptr %195, i64 8
  store double %190, ptr %.sroa.411.0..sroa_idx, align 8, !tbaa !12
  br label %217

196:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #11
  %197 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #11
  %198 = call { double, double } @_ZStngIdESt7complexIT_ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %197)
  %199 = extractvalue { double, double } %198, 0
  store double %199, ptr %10, align 8
  %200 = extractvalue { double, double } %198, 1
  store double %200, ptr %155, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #11
  %201 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #11
  %202 = load i32, ptr %9, align 4, !tbaa !11
  %203 = load i32, ptr %1, align 4, !tbaa !5
  %204 = xor i32 %203, -1
  %205 = add i32 %202, %204
  store i32 %205, ptr %12, align 4, !tbaa !11
  %206 = call { double, double } @_ZSt3powIdjESt7complexIN9__gnu_cxx9__promoteIDTplcvNS2_IT_Xsr3std12__is_integerIS3_EE7__valueEE6__typeELi0EcvNS2_IT0_Xsr3std12__is_integerIS6_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS9_EE7__valueEE6__typeEERKS0_IS3_ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %201, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %207 = extractvalue { double, double } %206, 0
  store double %207, ptr %11, align 8
  %208 = extractvalue { double, double } %206, 1
  store double %208, ptr %156, align 8
  %209 = call { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %210 = extractvalue { double, double } %209, 0
  %211 = extractvalue { double, double } %209, 1
  %212 = load i32, ptr %9, align 4, !tbaa !11
  %213 = mul i32 %212, %129
  %214 = add i32 %213, %160
  %215 = zext i32 %214 to i64
  %216 = getelementptr inbounds %"class.std::complex", ptr %137, i64 %215
  store double %210, ptr %216, align 8
  %.sroa.49.0..sroa_idx = getelementptr inbounds i8, ptr %216, i64 8
  store double %211, ptr %.sroa.49.0..sroa_idx, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #11
  br label %217

217:                                              ; preds = %168, %186, %196, %174
  %218 = phi i32 [ %.pre, %168 ], [ %191, %186 ], [ %212, %196 ], [ %179, %174 ]
  %219 = add i32 %218, 1
  store i32 %219, ptr %9, align 4, !tbaa !11
  %220 = icmp ult i32 %219, %133
  br i1 %220, label %166, label %._crit_edge, !llvm.loop !13

221:                                              ; preds = %._crit_edge
  %222 = getelementptr inbounds %"class.std::complex", ptr %147, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %222, ptr noundef nonnull align 8 dereferenceable(16) %165, i64 16, i1 false), !tbaa.struct !15
  br label %232

223:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #11
  %224 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt7complexIdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #11
  %225 = call { double, double } @_ZSt3powIdjESt7complexIN9__gnu_cxx9__promoteIDTplcvNS2_IT_Xsr3std12__is_integerIS3_EE7__valueEE6__typeELi0EcvNS2_IT0_Xsr3std12__is_integerIS6_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS9_EE7__valueEE6__typeEERKS0_IS3_ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %224, ptr noundef nonnull align 4 dereferenceable(4) %74)
  %226 = extractvalue { double, double } %225, 0
  store double %226, ptr %13, align 8
  %227 = extractvalue { double, double } %225, 1
  store double %227, ptr %157, align 8
  %228 = call { double, double } @_ZStmlIdESt7complexIT_ERKS2_S4_(ptr noundef nonnull align 8 dereferenceable(16) %165, ptr noundef nonnull align 8 dereferenceable(16) %13)
  %229 = extractvalue { double, double } %228, 0
  %230 = extractvalue { double, double } %228, 1
  %231 = getelementptr inbounds %"class.std::complex", ptr %147, i64 %indvars.iv
  store double %229, ptr %231, align 8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %231, i64 8
  store double %230, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #11
  br label %232

232:                                              ; preds = %221, %223
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge94, label %158, !llvm.loop !16

233:                                              ; preds = %._crit_edge94
  call void @_ZN4TBTK10PolynomialISt7complexIdES2_iED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #11
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %15) #11
  call void @_ZN4TBTK10PolynomialISt7complexIdES2_iEC2Ej(ptr noundef nonnull align 8 dereferenceable(80) %15, i32 noundef 1)
  invoke void @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(80) %15)
          to label %234 unwind label %241

234:                                              ; preds = %233
  call void @_ZN4TBTK10PolynomialISt7complexIdES2_iED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #11
  %235 = load i32, ptr %1, align 4, !tbaa !5
  %.not103 = icmp eq i32 %235, -1
  br i1 %.not103, label %.preheader, label %.lr.ph97

.lr.ph97:                                         ; preds = %234
  %236 = getelementptr inbounds i8, ptr %16, i64 8
  br label %243

.preheader:                                       ; preds = %247, %234
  %237 = load i32, ptr %74, align 4, !tbaa !10
  %.not104 = icmp eq i32 %237, 0
  br i1 %.not104, label %._crit_edge100, label %.lr.ph99

.lr.ph99:                                         ; preds = %.preheader
  %238 = getelementptr inbounds i8, ptr %18, i64 8
  br label %257

239:                                              ; preds = %._crit_edge94
  %240 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4TBTK10PolynomialISt7complexIdES2_iED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #11
  br label %272

241:                                              ; preds = %233
  %242 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4TBTK10PolynomialISt7complexIdES2_iED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #11
  br label %272

243:                                              ; preds = %.lr.ph97, %247
  %indvars.iv106 = phi i64 [ 0, %.lr.ph97 ], [ %indvars.iv.next107, %247 ]
  %244 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #11
  %245 = getelementptr inbounds %"class.std::complex", ptr %147, i64 %indvars.iv106
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #11
  %246 = trunc nuw i64 %indvars.iv106 to i32
  store i32 %246, ptr %17, align 4, !tbaa !11
  store ptr %17, ptr %16, align 8, !tbaa !17
  store i64 1, ptr %236, align 8, !tbaa !21
  invoke void @_ZN4TBTK10PolynomialISt7complexIdES2_iE7addTermERKS2_RKSt16initializer_listIiE(ptr noundef nonnull align 8 dereferenceable(80) %244, ptr noundef nonnull align 8 dereferenceable(16) %245, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %247 unwind label %252

247:                                              ; preds = %243
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %248 = load i32, ptr %1, align 4, !tbaa !5
  %249 = add i32 %248, 1
  %250 = zext i32 %249 to i64
  %251 = icmp ult i64 %indvars.iv.next107, %250
  br i1 %251, label %243, label %.preheader, !llvm.loop !22

252:                                              ; preds = %243
  %253 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  br label %272

._crit_edge100:                                   ; preds = %264, %.preheader
  %254 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #11
  call void @_ZNSt7complexIdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %20, double noundef 1.000000e+00, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #11
  %255 = load i32, ptr %74, align 4, !tbaa !10
  store i32 %255, ptr %22, align 4, !tbaa !11
  store ptr %22, ptr %21, align 8, !tbaa !17
  %256 = getelementptr inbounds i8, ptr %21, i64 8
  store i64 1, ptr %256, align 8, !tbaa !21
  invoke void @_ZN4TBTK10PolynomialISt7complexIdES2_iE7addTermERKS2_RKSt16initializer_listIiE(ptr noundef nonnull align 8 dereferenceable(80) %254, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %269 unwind label %270

257:                                              ; preds = %.lr.ph99, %264
  %.098 = phi i32 [ 0, %.lr.ph99 ], [ %260, %264 ]
  %258 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1) #11
  %259 = load i32, ptr %1, align 4, !tbaa !5
  %260 = add nuw i32 %.098, 1
  %261 = add i32 %260, %259
  %262 = zext i32 %261 to i64
  %263 = getelementptr inbounds %"class.std::complex", ptr %147, i64 %262
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #11
  store i32 %.098, ptr %19, align 4, !tbaa !11
  store ptr %19, ptr %18, align 8, !tbaa !17
  store i64 1, ptr %238, align 8, !tbaa !21
  invoke void @_ZN4TBTK10PolynomialISt7complexIdES2_iE7addTermERKS2_RKSt16initializer_listIiE(ptr noundef nonnull align 8 dereferenceable(80) %258, ptr noundef nonnull align 8 dereferenceable(16) %263, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %264 unwind label %267

264:                                              ; preds = %257
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #11
  %265 = load i32, ptr %74, align 4, !tbaa !10
  %266 = icmp ult i32 %260, %265
  br i1 %266, label %257, label %._crit_edge100, !llvm.loop !23

267:                                              ; preds = %257
  %268 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #11
  br label %272

269:                                              ; preds = %._crit_edge100
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #11
  call void @_ZdaPv(ptr noundef nonnull %137) #15
  call void @_ZdaPv(ptr noundef nonnull %147) #15
  ret void

270:                                              ; preds = %._crit_edge100
  %271 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #11
  br label %272

272:                                              ; preds = %270, %267, %252, %241, %239
  %.pn86 = phi { ptr, i32 } [ %253, %252 ], [ %268, %267 ], [ %271, %270 ], [ %242, %241 ], [ %240, %239 ]
  call void @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  br label %273

273:                                              ; preds = %272, %126, %70
  %.pn86.pn = phi { ptr, i32 } [ %.pn86, %272 ], [ %.pn84, %126 ], [ %.pn, %70 ]
  resume { ptr, i32 } %.pn86.pn
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #0 align 2

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

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

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

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

declare noundef zeroext i1 @_ZN4TBTK7Streams9logIsOpenEv() local_unnamed_addr #5

declare void @_ZN4TBTK7Streams8closeLogEv() local_unnamed_addr #5

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #6

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4TBTK16PadeApproximator18executeLeastSquareEPSt7complexIdES3_jj(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN4TBTK10PolynomialISt7complexIdES3_iEESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4TBTK10PolynomialISt7complexIdES2_iEC2Ej(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4TBTK10PolynomialISt7complexIdES2_iED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #9 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4TBTK10PolynomialISt7complexIdES2_iE7addTermERKS2_RKSt16initializer_listIiE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #10

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

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


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