; LLVM IR from ardiloot/NonlinearTMM :: NonlinearTMM/src/eigen-3.4.0/unsupported/test (cxx11_maxsizevector)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.Eigen::MaxSizeVector" = type { i64, i64, ptr }
%struct.Foo = type { i32, [124 x i8] }

@_ZN5EigenL12g_test_stackB5cxx11E = external hidden global %"class.std::vector", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZN5EigenL8g_repeatE = external hidden global i32, align 4
@_ZN3Foo12object_countE = external dso_local global i64, align 8
@_ZN3Foo12object_limitE = external dso_local global i64, align 8
@.str.30 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZTIN3Foo4FailE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.31 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [125 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [45 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z24test_cxx11_maxsizevectorv() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.Eigen::MaxSizeVector", align 8
  %12 = alloca i32, align 4
  %13 = alloca %struct.Foo, align 128
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"class.Eigen::MaxSizeVector", align 8
  %17 = alloca %struct.Foo, align 128
  %18 = alloca i64, align 8
  store i64 0, ptr @_ZN3Foo12object_countE, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %109, %0
  %20 = load i32, ptr %1, align 4, !tbaa !9
  %21 = load i32, ptr @_ZN5EigenL8g_repeatE, align 4, !tbaa !9
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  br label %122

24:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 3, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 30, ptr %5, align 8, !tbaa !5
  %25 = call noundef i64 @_ZN5Eigen8internal6randomIlEENS0_13random_retvalINS0_36global_math_functions_filtering_baseIT_vE4typeEE4typeERKS4_SA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  store i64 %25, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %26 = load i64, ptr %3, align 8, !tbaa !5
  %27 = sub nsw i64 %26, 2
  store i64 %27, ptr %7, align 8, !tbaa !5
  %28 = call noundef i64 @_ZN5Eigen8internal6randomIlEENS0_13random_retvalINS0_36global_math_functions_filtering_baseIT_vE4typeEE4typeERKS4_SA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  store i64 %28, ptr @_ZN3Foo12object_limitE, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.30)
  %30 = load i64, ptr @_ZN3Foo12object_limitE, align 8, !tbaa !5
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %29, i64 noundef %30)
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  store i8 0, ptr %8, align 1, !tbaa !11
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.31)
          to label %34 unwind label %48

34:                                               ; preds = %24
  %35 = load i64, ptr %3, align 8, !tbaa !5
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %33, i64 noundef %35)
          to label %37 unwind label %48

37:                                               ; preds = %34
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef @.str.32)
          to label %39 unwind label %48

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #6
  %40 = load i64, ptr %3, align 8, !tbaa !5
  invoke void @_ZN5Eigen13MaxSizeVectorI3FooEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %40)
          to label %41 unwind label %52

41:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %59, %41
  %43 = load i32, ptr %12, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = load i64, ptr %3, align 8, !tbaa !5
  %46 = icmp slt i64 %44, %45
  br i1 %46, label %56, label %47

47:                                               ; preds = %42
  store i32 5, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %71

48:                                               ; preds = %37, %34, %24
  %49 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN3Foo4FailE
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %9, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %10, align 4
  br label %81

52:                                               ; preds = %39
  %53 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN3Foo4FailE
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %9, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %10, align 4
  br label %80

56:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 128, ptr %13) #6
  invoke void @_ZN3FooC2Ei(ptr noundef nonnull align 128 dereferenceable(4) %13, i32 noundef 0)
          to label %57 unwind label %62

57:                                               ; preds = %56
  invoke void @_ZN5Eigen13MaxSizeVectorI3FooE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 128 dereferenceable(4) %13)
          to label %58 unwind label %66

58:                                               ; preds = %57
  call void @_ZN3FooD2Ev(ptr noundef nonnull align 128 dereferenceable(4) %13) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %13) #6
  br label %59

59:                                               ; preds = %58
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %12, align 4, !tbaa !9
  br label %42, !llvm.loop !13

62:                                               ; preds = %56
  %63 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN3Foo4FailE
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %9, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %10, align 4
  br label %70

66:                                               ; preds = %57
  %67 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN3Foo4FailE
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %9, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %10, align 4
  call void @_ZN3FooD2Ev(ptr noundef nonnull align 128 dereferenceable(4) %13) #6
  br label %70

70:                                               ; preds = %66, %62
  call void @llvm.lifetime.end.p0(i64 128, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %79

71:                                               ; preds = %47
  %72 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #6
  %73 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %72) #6
  invoke void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext false, ptr noundef %73, ptr noundef @.str.33, i32 noundef 62, ptr noundef @.str.34)
          to label %74 unwind label %75

74:                                               ; preds = %71
  call void @_ZN5Eigen13MaxSizeVectorI3FooED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  br label %88

75:                                               ; preds = %71
  %76 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN3Foo4FailE
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %9, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %10, align 4
  br label %79

79:                                               ; preds = %75, %70
  call void @_ZN5Eigen13MaxSizeVectorI3FooED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  br label %80

80:                                               ; preds = %79, %52
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  br label %81

81:                                               ; preds = %80, %48
  %82 = load i32, ptr %10, align 4
  %83 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTIN3Foo4FailE) #6
  %84 = icmp eq i32 %82, %83
  br i1 %84, label %85, label %121

85:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %86 = load ptr, ptr %9, align 8
  %87 = call ptr @__cxa_begin_catch(ptr %86) #6
  store ptr %87, ptr %14, align 8
  store i8 1, ptr %8, align 1, !tbaa !11
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %88

88:                                               ; preds = %85, %74
  %89 = load i8, ptr %8, align 1, !tbaa !11, !range !15, !noundef !16
  %90 = trunc i8 %89 to i1
  %91 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #6
  %92 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %91) #6
  call void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext %90, ptr noundef %92, ptr noundef @.str.33, i32 noundef 65, ptr noundef @.str.35)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 0, ptr %15, align 8, !tbaa !5
  %93 = call noundef zeroext i1 @_ZN5Eigen13test_is_equalIllEEbRKT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) @_ZN3Foo12object_countE, i1 noundef zeroext true)
  %94 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #6
  %95 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %94) #6
  call void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext %93, ptr noundef %95, ptr noundef @.str.33, i32 noundef 67, ptr noundef @.str.36)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  %96 = load i64, ptr %3, align 8, !tbaa !5
  %97 = add nsw i64 %96, 1
  store i64 %97, ptr @_ZN3Foo12object_limitE, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  %98 = load i64, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %17) #6
  call void @_ZN3FooC2Ei(ptr noundef nonnull align 128 dereferenceable(4) %17, i32 noundef 0)
  invoke void @_ZN5Eigen13MaxSizeVectorI3FooEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %98, ptr noundef nonnull align 128 dereferenceable(4) %17)
          to label %99 unwind label %112

99:                                               ; preds = %88
  call void @_ZN3FooD2Ev(ptr noundef nonnull align 128 dereferenceable(4) %17) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %17) #6
  %100 = invoke noundef zeroext i1 @_ZN5Eigen13test_is_equalIllEEbRKT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3Foo12object_countE, ptr noundef nonnull align 8 dereferenceable(8) %3, i1 noundef zeroext true)
          to label %101 unwind label %116

101:                                              ; preds = %99
  %102 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #6
  %103 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %102) #6
  invoke void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext %100, ptr noundef %103, ptr noundef @.str.33, i32 noundef 72, ptr noundef @.str.37)
          to label %104 unwind label %116

104:                                              ; preds = %101
  call void @_ZN5Eigen13MaxSizeVectorI3FooED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store i64 0, ptr %18, align 8, !tbaa !5
  %105 = call noundef zeroext i1 @_ZN5Eigen13test_is_equalIllEEbRKT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) @_ZN3Foo12object_countE, i1 noundef zeroext true)
  %106 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #6
  %107 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %106) #6
  call void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext %105, ptr noundef %107, ptr noundef @.str.33, i32 noundef 74, ptr noundef @.str.36)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %109

109:                                              ; preds = %104
  %110 = load i32, ptr %1, align 4, !tbaa !9
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %1, align 4, !tbaa !9
  br label %19, !llvm.loop !17

112:                                              ; preds = %88
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %9, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %10, align 4
  call void @_ZN3FooD2Ev(ptr noundef nonnull align 128 dereferenceable(4) %17) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %17) #6
  br label %120

116:                                              ; preds = %101, %99
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %9, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %10, align 4
  call void @_ZN5Eigen13MaxSizeVectorI3FooED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  br label %120

120:                                              ; preds = %116, %112
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  br label %121

121:                                              ; preds = %120, %81
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  br label %123

122:                                              ; preds = %23
  ret void

123:                                              ; preds = %121
  %124 = load ptr, ptr %9, align 8
  %125 = load i32, ptr %10, align 4
  %126 = insertvalue { ptr, i32 } poison, ptr %124, 0
  %127 = insertvalue { ptr, i32 } %126, i32 %125, 1
  resume { ptr, i32 } %127
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen13MaxSizeVectorI3FooEC2Em(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen13MaxSizeVectorI3FooE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 128 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3FooC2Ei(ptr noundef nonnull align 128 dereferenceable(4), i32 noundef) unnamed_addr #2 align 2

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

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #5

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5Eigen13test_is_equalIllEEbRKT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen13MaxSizeVectorI3FooEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 128 dereferenceable(4)) unnamed_addr #1 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.Eigen::MaxSizeVector" = type { i64, i64, ptr }
%struct.Foo = type { i32, [124 x i8] }

@_ZN5EigenL12g_test_stackB5cxx11E = external hidden global %"class.std::vector", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZN5EigenL8g_repeatE = external hidden local_unnamed_addr global i32, align 4
@_ZN3Foo12object_countE = external dso_local global i64, align 8
@_ZN3Foo12object_limitE = external dso_local local_unnamed_addr global i64, align 8
@.str.30 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZTIN3Foo4FailE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.31 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [125 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [45 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z24test_cxx11_maxsizevectorv() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"class.Eigen::MaxSizeVector", align 8
  %7 = alloca %struct.Foo, align 128
  %8 = alloca i64, align 8
  %9 = alloca %"class.Eigen::MaxSizeVector", align 8
  %10 = alloca %struct.Foo, align 128
  %11 = alloca i64, align 8
  store i64 0, ptr @_ZN3Foo12object_countE, align 8, !tbaa !5
  %12 = load i32, ptr @_ZN5EigenL8g_repeatE, align 4, !tbaa !9
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph26, label %._crit_edge27

._crit_edge27:                                    ; preds = %69, %0
  ret void

.lr.ph26:                                         ; preds = %0, %69
  %.024 = phi i32 [ %74, %69 ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  store i64 3, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store i64 30, ptr %3, align 8, !tbaa !5
  %14 = call noundef i64 @_ZN5Eigen8internal6randomIlEENS0_13random_retvalINS0_36global_math_functions_filtering_baseIT_vE4typeEE4typeERKS4_SA_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  store i64 %14, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  store i64 0, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %15 = add nsw i64 %14, -2
  store i64 %15, ptr %5, align 8, !tbaa !5
  %16 = call noundef i64 @_ZN5Eigen8internal6randomIlEENS0_13random_retvalINS0_36global_math_functions_filtering_baseIT_vE4typeEE4typeERKS4_SA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  store i64 %16, ptr @_ZN3Foo12object_limitE, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.30)
  %18 = load i64, ptr @_ZN3Foo12object_limitE, align 8, !tbaa !5
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %17, i64 noundef %18)
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %21 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.31)
          to label %22 unwind label %33

22:                                               ; preds = %.lr.ph26
  %23 = load i64, ptr %1, align 8, !tbaa !5
  %24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %21, i64 noundef %23)
          to label %25 unwind label %33

25:                                               ; preds = %22
  %26 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull @.str.32)
          to label %27 unwind label %33

27:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  %28 = load i64, ptr %1, align 8, !tbaa !5
  invoke void @_ZN5Eigen13MaxSizeVectorI3FooEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %28)
          to label %.preheader unwind label %35

.preheader:                                       ; preds = %27
  %29 = load i64, ptr %1, align 8, !tbaa !5
  %30 = icmp sgt i64 %29, 0
  br i1 %30, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %38, %.preheader
  %31 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #6
  %32 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  invoke void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext false, ptr noundef %32, ptr noundef nonnull @.str.33, i32 noundef 62, ptr noundef nonnull @.str.34)
          to label %46 unwind label %47

33:                                               ; preds = %25, %22, %.lr.ph26
  %34 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN3Foo4FailE
  br label %51

35:                                               ; preds = %27
  %36 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN3Foo4FailE
  br label %50

.lr.ph:                                           ; preds = %.preheader, %38
  %indvars.iv = phi i64 [ %indvars.iv.next, %38 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %7) #6
  invoke void @_ZN3FooC2Ei(ptr noundef nonnull align 128 dereferenceable(4) %7, i32 noundef 0)
          to label %37 unwind label %41

37:                                               ; preds = %.lr.ph
  invoke void @_ZN5Eigen13MaxSizeVectorI3FooE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 128 dereferenceable(4) %7)
          to label %38 unwind label %43

38:                                               ; preds = %37
  call void @_ZN3FooD2Ev(ptr noundef nonnull align 128 dereferenceable(4) %7) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %7) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %39 = load i64, ptr %1, align 8, !tbaa !5
  %40 = icmp sgt i64 %39, %indvars.iv.next
  br i1 %40, label %.lr.ph, label %._crit_edge, !llvm.loop !11

41:                                               ; preds = %.lr.ph
  %42 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN3Foo4FailE
  br label %45

43:                                               ; preds = %37
  %44 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN3Foo4FailE
  call void @_ZN3FooD2Ev(ptr noundef nonnull align 128 dereferenceable(4) %7) #6
  br label %45

45:                                               ; preds = %43, %41
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %7) #6
  br label %49

46:                                               ; preds = %._crit_edge
  call void @_ZN5Eigen13MaxSizeVectorI3FooED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  br label %56

47:                                               ; preds = %._crit_edge
  %48 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTIN3Foo4FailE
  br label %49

49:                                               ; preds = %47, %45
  %.pn.pn = phi { ptr, i32 } [ %.pn, %45 ], [ %48, %47 ]
  call void @_ZN5Eigen13MaxSizeVectorI3FooED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br label %50

50:                                               ; preds = %49, %35
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %49 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  br label %51

51:                                               ; preds = %50, %33
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %50 ], [ %34, %33 ]
  %.3 = extractvalue { ptr, i32 } %.pn.pn.pn.pn, 1
  %52 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTIN3Foo4FailE) #6
  %53 = icmp eq i32 %.3, %52
  br i1 %53, label %54, label %.loopexit

54:                                               ; preds = %51
  %.313 = extractvalue { ptr, i32 } %.pn.pn.pn.pn, 0
  %55 = call ptr @__cxa_begin_catch(ptr %.313) #6
  call void @__cxa_end_catch()
  br label %56

56:                                               ; preds = %54, %46
  %.016 = phi i1 [ true, %54 ], [ false, %46 ]
  %57 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #6
  %58 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %57) #6
  call void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext %.016, ptr noundef %58, ptr noundef nonnull @.str.33, i32 noundef 65, ptr noundef nonnull @.str.35)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  store i64 0, ptr %8, align 8, !tbaa !5
  %59 = call noundef zeroext i1 @_ZN5Eigen13test_is_equalIllEEbRKT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) @_ZN3Foo12object_countE, i1 noundef zeroext true)
  %60 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #6
  %61 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %60) #6
  call void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext %59, ptr noundef %61, ptr noundef nonnull @.str.33, i32 noundef 67, ptr noundef nonnull @.str.36)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %62 = load i64, ptr %1, align 8, !tbaa !5
  %63 = add nsw i64 %62, 1
  store i64 %63, ptr @_ZN3Foo12object_limitE, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %10) #6
  call void @_ZN3FooC2Ei(ptr noundef nonnull align 128 dereferenceable(4) %10, i32 noundef 0)
  invoke void @_ZN5Eigen13MaxSizeVectorI3FooEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %62, ptr noundef nonnull align 128 dereferenceable(4) %10)
          to label %64 unwind label %77

64:                                               ; preds = %56
  call void @_ZN3FooD2Ev(ptr noundef nonnull align 128 dereferenceable(4) %10) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %10) #6
  %65 = invoke noundef zeroext i1 @_ZN5Eigen13test_is_equalIllEEbRKT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(8) @_ZN3Foo12object_countE, ptr noundef nonnull align 8 dereferenceable(8) %1, i1 noundef zeroext true)
          to label %66 unwind label %79

66:                                               ; preds = %64
  %67 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #6
  %68 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %67) #6
  invoke void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext %65, ptr noundef %68, ptr noundef nonnull @.str.33, i32 noundef 72, ptr noundef nonnull @.str.37)
          to label %69 unwind label %79

69:                                               ; preds = %66
  call void @_ZN5Eigen13MaxSizeVectorI3FooED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  store i64 0, ptr %11, align 8, !tbaa !5
  %70 = call noundef zeroext i1 @_ZN5Eigen13test_is_equalIllEEbRKT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) @_ZN3Foo12object_countE, i1 noundef zeroext true)
  %71 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #6
  %72 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %71) #6
  call void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext %70, ptr noundef %72, ptr noundef nonnull @.str.33, i32 noundef 74, ptr noundef nonnull @.str.36)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  %74 = add nuw nsw i32 %.024, 1
  %75 = load i32, ptr @_ZN5EigenL8g_repeatE, align 4, !tbaa !9
  %76 = icmp slt i32 %74, %75
  br i1 %76, label %.lr.ph26, label %._crit_edge27, !llvm.loop !13

77:                                               ; preds = %56
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3FooD2Ev(ptr noundef nonnull align 128 dereferenceable(4) %10) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %10) #6
  br label %81

79:                                               ; preds = %66, %64
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5Eigen13MaxSizeVectorI3FooED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  br label %81

81:                                               ; preds = %79, %77
  %.pn21 = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %.loopexit

.loopexit:                                        ; preds = %51, %81
  %.merged = phi { ptr, i32 } [ %.pn21, %81 ], [ %.pn.pn.pn.pn, %51 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.merged
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen13MaxSizeVectorI3FooEC2Em(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen13MaxSizeVectorI3FooE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 128 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3FooC2Ei(ptr noundef nonnull align 128 dereferenceable(4), i32 noundef) unnamed_addr #2 align 2

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

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

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #5

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Eigen13MaxSizeVectorI3FooEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 128 dereferenceable(4)) unnamed_addr #1 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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