; LLVM IR from ERGO-Code/HiGHS :: extern/filereaderlp/reader.ll (ZN6Reader13processconsecEv)

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

%"class.std::shared_ptr.66" = type { %"class.std::__shared_ptr.67" }
%"class.std::__shared_ptr.67" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%class.Reader = type { %"class.std::basic_ifstream", %"class.std::__cxx11::basic_string", i64, %"struct.std::array", %"class.std::vector.22", %"class.std::map", %struct.Builder }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.21 }
%union.anon.21 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.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] }
%"struct.std::array" = type { [3 x %struct.RawToken] }
%struct.RawToken = type { i32, %"class.std::__cxx11::basic_string", double }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<ProcessedToken, std::allocator<ProcessedToken>>::_Vector_impl" }
%"struct.std::_Vector_base<ProcessedToken, std::allocator<ProcessedToken>>::_Vector_impl" = type { %"struct.std::_Vector_base<ProcessedToken, std::allocator<ProcessedToken>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ProcessedToken, std::allocator<ProcessedToken>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<LpSectionKeyword, std::pair<const LpSectionKeyword, std::pair<__gnu_cxx::__normal_iterator<ProcessedToken *, std::vector<ProcessedToken>>, __gnu_cxx::__normal_iterator<ProcessedToken *, std::vector<ProcessedToken>>>>, std::_Select1st<std::pair<const LpSectionKeyword, std::pair<__gnu_cxx::__normal_iterator<ProcessedToken *, std::vector<ProcessedToken>>, __gnu_cxx::__normal_iterator<ProcessedToken *, std::vector<ProcessedToken>>>>>, std::less<LpSectionKeyword>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<LpSectionKeyword, std::pair<const LpSectionKeyword, std::pair<__gnu_cxx::__normal_iterator<ProcessedToken *, std::vector<ProcessedToken>>, __gnu_cxx::__normal_iterator<ProcessedToken *, std::vector<ProcessedToken>>>>, std::_Select1st<std::pair<const LpSectionKeyword, std::pair<__gnu_cxx::__normal_iterator<ProcessedToken *, std::vector<ProcessedToken>>, __gnu_cxx::__normal_iterator<ProcessedToken *, std::vector<ProcessedToken>>>>>, std::less<LpSectionKeyword>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%struct.Builder = type { %"class.std::unordered_map.30", %struct.Model }
%"class.std::unordered_map.30" = type { %"class.std::_Hashtable.31" }
%"class.std::_Hashtable.31" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%struct.Model = type { %"class.std::shared_ptr", i32, %"class.std::vector", %"class.std::vector.11", %"class.std::vector.16" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<Constraint>, std::allocator<std::shared_ptr<Constraint>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<Constraint>, std::allocator<std::shared_ptr<Constraint>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<Constraint>, std::allocator<std::shared_ptr<Constraint>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<Constraint>, std::allocator<std::shared_ptr<Constraint>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<std::shared_ptr<Variable>, std::allocator<std::shared_ptr<Variable>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<Variable>, std::allocator<std::shared_ptr<Variable>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<Variable>, std::allocator<std::shared_ptr<Variable>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<Variable>, std::allocator<std::shared_ptr<Variable>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<std::shared_ptr<SOS>, std::allocator<std::shared_ptr<SOS>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<SOS>, std::allocator<std::shared_ptr<SOS>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<SOS>, std::allocator<std::shared_ptr<SOS>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<SOS>, std::allocator<std::shared_ptr<SOS>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.64" = type { %"class.__gnu_cxx::__normal_iterator", %"class.__gnu_cxx::__normal_iterator" }
%struct.Constraint = type { double, double, %"class.std::shared_ptr" }
%struct.ProcessedToken = type { i32, %union.anon.44 }
%union.anon.44 = type { ptr }

; 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: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEE5countERSD_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z8lpassertb(i1 noundef zeroext) #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 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) #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixEOS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Reader13processconsecEv(ptr noundef nonnull align 8 dereferenceable(928) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::shared_ptr.66", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.std::shared_ptr", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %16 = load ptr, ptr %2, align 8
  %17 = getelementptr inbounds %class.Reader, ptr %16, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 3, ptr %3, align 4, !tbaa !9
  %18 = call noundef i64 @_ZNKSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEE5countERSD_(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %19 = icmp ne i64 %18, 0
  %20 = xor i1 %19, true
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br i1 %20, label %21, label %22

21:                                               ; preds = %1
  br label %136

22:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %23 = getelementptr inbounds %class.Reader, ptr %16, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 3, ptr %5, align 4, !tbaa !9
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixEOS0_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %25 = getelementptr inbounds %"struct.std::pair.64", ptr %24, i32 0, i32 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  store ptr %25, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %26 = getelementptr inbounds %class.Reader, ptr %16, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 3, ptr %7, align 4, !tbaa !9
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixEOS0_(ptr noundef nonnull align 8 dereferenceable(48) %26, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %28 = getelementptr inbounds %"struct.std::pair.64", ptr %27, i32 0, i32 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  store ptr %28, ptr %6, align 8, !tbaa !5
  br label %29

29:                                               ; preds = %129, %22
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  br i1 %32, label %33, label %135

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  %34 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #9
  invoke void @_ZN10ConstraintC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %35 unwind label %76

35:                                               ; preds = %33
  call void @_ZNSt10shared_ptrI10ConstraintEC2IS0_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef %34)
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %37, i64 8, i1 false), !tbaa.struct !11
  %38 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10ConstraintLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  %39 = getelementptr inbounds %struct.Constraint, ptr %38, i32 0, i32 2
  call void @_ZNSt10shared_ptrI10ExpressionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %39) #8
  %40 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8
  invoke void @_ZN6Reader15parseexpressionERN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS2_SaIS2_EEEES7_St10shared_ptrI10ExpressionEb(ptr noundef nonnull align 8 dereferenceable(928) %16, ptr noundef nonnull align 8 dereferenceable(8) %36, ptr %41, ptr noundef %12, i1 noundef zeroext false)
          to label %42 unwind label %80

42:                                               ; preds = %35
  call void @_ZNSt12__shared_ptrI10ExpressionLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %class.Reader, ptr %16, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 3, ptr %13, align 4, !tbaa !9
  %45 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixEOS0_(ptr noundef nonnull align 8 dereferenceable(48) %44, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %46 unwind label %84

46:                                               ; preds = %42
  %47 = getelementptr inbounds %"struct.std::pair.64", ptr %45, i32 0, i32 1
  %48 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) %47) #8
  invoke void @_Z8lpassertb(i1 noundef zeroext %48)
          to label %49 unwind label %84

49:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %50) #8
  %52 = getelementptr inbounds %struct.ProcessedToken, ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !12
  %54 = icmp eq i32 %53, 8
  invoke void @_Z8lpassertb(i1 noundef zeroext %54)
          to label %55 unwind label %88

55:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %56) #8
  %58 = getelementptr inbounds %struct.ProcessedToken, ptr %57, i32 0, i32 1
  %59 = load i32, ptr %58, align 8, !tbaa !15
  store i32 %59, ptr %14, align 4, !tbaa !16
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %60) #8
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %class.Reader, ptr %16, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 3, ptr %15, align 4, !tbaa !9
  %64 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixEOS0_(ptr noundef nonnull align 8 dereferenceable(48) %63, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %65 unwind label %92

65:                                               ; preds = %55
  %66 = getelementptr inbounds %"struct.std::pair.64", ptr %64, i32 0, i32 1
  %67 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull align 8 dereferenceable(8) %66) #8
  invoke void @_Z8lpassertb(i1 noundef zeroext %67)
          to label %68 unwind label %92

68:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %69) #8
  %71 = getelementptr inbounds %struct.ProcessedToken, ptr %70, i32 0, i32 0
  %72 = load i32, ptr %71, align 8, !tbaa !12
  %73 = icmp eq i32 %72, 4
  invoke void @_Z8lpassertb(i1 noundef zeroext %73)
          to label %74 unwind label %96

74:                                               ; preds = %68
  %75 = load i32, ptr %14, align 4, !tbaa !16
  switch i32 %75, label %123 [
    i32 2, label %100
    i32 0, label %109
    i32 4, label %116
  ]

76:                                               ; preds = %33
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %9, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %34, i64 noundef 32) #10
  br label %134

80:                                               ; preds = %35
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %9, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %10, align 4
  call void @_ZNSt12__shared_ptrI10ExpressionLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  br label %133

84:                                               ; preds = %46, %42
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %9, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %133

88:                                               ; preds = %49
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %9, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %10, align 4
  br label %133

92:                                               ; preds = %65, %55
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %9, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %132

96:                                               ; preds = %125, %123, %68
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %9, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %10, align 4
  br label %132

100:                                              ; preds = %74
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %101) #8
  %103 = getelementptr inbounds %struct.ProcessedToken, ptr %102, i32 0, i32 1
  %104 = load double, ptr %103, align 8, !tbaa !15
  %105 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10ConstraintLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  %106 = getelementptr inbounds %struct.Constraint, ptr %105, i32 0, i32 1
  store double %104, ptr %106, align 8, !tbaa !18
  %107 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10ConstraintLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  %108 = getelementptr inbounds %struct.Constraint, ptr %107, i32 0, i32 0
  store double %104, ptr %108, align 8, !tbaa !24
  br label %125

109:                                              ; preds = %74
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %110) #8
  %112 = getelementptr inbounds %struct.ProcessedToken, ptr %111, i32 0, i32 1
  %113 = load double, ptr %112, align 8, !tbaa !15
  %114 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10ConstraintLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  %115 = getelementptr inbounds %struct.Constraint, ptr %114, i32 0, i32 1
  store double %113, ptr %115, align 8, !tbaa !18
  br label %125

116:                                              ; preds = %74
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %117) #8
  %119 = getelementptr inbounds %struct.ProcessedToken, ptr %118, i32 0, i32 1
  %120 = load double, ptr %119, align 8, !tbaa !15
  %121 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10ConstraintLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  %122 = getelementptr inbounds %struct.Constraint, ptr %121, i32 0, i32 0
  store double %120, ptr %122, align 8, !tbaa !24
  br label %125

123:                                              ; preds = %74
  invoke void @_Z8lpassertb(i1 noundef zeroext false)
          to label %124 unwind label %96

124:                                              ; preds = %123
  br label %125

125:                                              ; preds = %124, %116, %109, %100
  %126 = getelementptr inbounds %class.Reader, ptr %16, i32 0, i32 6
  %127 = getelementptr inbounds %struct.Builder, ptr %126, i32 0, i32 1
  %128 = getelementptr inbounds %struct.Model, ptr %127, i32 0, i32 2
  invoke void @_ZNSt6vectorISt10shared_ptrI10ConstraintESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %128, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %129 unwind label %96

129:                                              ; preds = %125
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %130) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @_ZNSt12__shared_ptrI10ConstraintLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  br label %29, !llvm.loop !25

132:                                              ; preds = %96, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %133

133:                                              ; preds = %132, %88, %84, %80
  call void @_ZNSt12__shared_ptrI10ConstraintLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  br label %134

134:                                              ; preds = %133, %76
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %137

135:                                              ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %136

136:                                              ; preds = %135, %21
  ret void

137:                                              ; preds = %134
  %138 = load ptr, ptr %9, align 8
  %139 = load i32, ptr %10, align 4
  %140 = insertvalue { ptr, i32 } poison, ptr %138, 0
  %141 = insertvalue { ptr, i32 } %140, i32 %139, 1
  resume { ptr, i32 } %141
}

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

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

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

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

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

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

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


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

%"class.std::shared_ptr.66" = type { %"class.std::__shared_ptr.67" }
%"class.std::__shared_ptr.67" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }

; 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: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEE5countERSD_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z8lpassertb(i1 noundef zeroext) local_unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixEOS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Reader13processconsecEv(ptr noundef nonnull align 8 dereferenceable(928) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::shared_ptr.66", align 8
  %6 = alloca %"class.std::shared_ptr", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = getelementptr inbounds i8, ptr %0, i64 728
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 3, ptr %2, align 4, !tbaa !5
  %10 = call noundef i64 @_ZNKSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEE5countERSD_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %.not = icmp eq i64 %10, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  br i1 %.not, label %.loopexit, label %11

11:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 3, ptr %3, align 4, !tbaa !5
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixEOS0_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 3, ptr %4, align 4, !tbaa !5
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixEOS0_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %15 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br i1 %15, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %11
  %16 = getelementptr inbounds i8, ptr %0, i64 856
  br label %17

17:                                               ; preds = %.lr.ph, %77
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %18 = call noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #8
  invoke void @_ZN10ConstraintC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %19 unwind label %45

19:                                               ; preds = %17
  call void @_ZNSt10shared_ptrI10ConstraintEC2IS0_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull %18)
  %.sroa.0.0.copyload = load ptr, ptr %14, align 8, !tbaa !9
  %20 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10ConstraintLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  call void @_ZNSt10shared_ptrI10ExpressionEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  invoke void @_ZN6Reader15parseexpressionERN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS2_SaIS2_EEEES7_St10shared_ptrI10ExpressionEb(ptr noundef nonnull align 8 dereferenceable(928) %0, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr %.sroa.0.0.copyload, ptr noundef nonnull %6, i1 noundef zeroext false)
          to label %22 unwind label %47

22:                                               ; preds = %19
  call void @_ZNSt12__shared_ptrI10ExpressionLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  store i32 3, ptr %7, align 4, !tbaa !5
  %23 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixEOS0_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %24 unwind label %49

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %23, i64 8
  %26 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  invoke void @_Z8lpassertb(i1 noundef zeroext %26)
          to label %27 unwind label %49

27:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  %28 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %29 = load i32, ptr %28, align 8, !tbaa !11
  %30 = icmp eq i32 %29, 8
  invoke void @_Z8lpassertb(i1 noundef zeroext %30)
          to label %31 unwind label %51

31:                                               ; preds = %27
  %32 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %33 = getelementptr inbounds i8, ptr %32, i64 8
  %34 = load i32, ptr %33, align 8, !tbaa !14
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 3, ptr %8, align 4, !tbaa !5
  %36 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt3mapI16LpSectionKeywordSt4pairIN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS4_SaIS4_EEEES9_ESt4lessIS0_ESaIS1_IKS0_SA_EEEixEOS0_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %37 unwind label %53

37:                                               ; preds = %31
  %38 = getelementptr inbounds i8, ptr %36, i64 8
  %39 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %38) #7
  invoke void @_Z8lpassertb(i1 noundef zeroext %39)
          to label %40 unwind label %53

40:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  %41 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %42 = load i32, ptr %41, align 8, !tbaa !11
  %43 = icmp eq i32 %42, 4
  invoke void @_Z8lpassertb(i1 noundef zeroext %43)
          to label %44 unwind label %55

44:                                               ; preds = %40
  switch i32 %34, label %75 [
    i32 2, label %57
    i32 0, label %64
    i32 4, label %70
  ]

45:                                               ; preds = %17
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %18, i64 noundef 32) #9
  br label %81

47:                                               ; preds = %19
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrI10ExpressionLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  br label %80

49:                                               ; preds = %24, %22
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  br label %80

51:                                               ; preds = %27
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %80

53:                                               ; preds = %37, %31
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  br label %80

55:                                               ; preds = %76, %75, %40
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %80

57:                                               ; preds = %44
  %58 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %59 = getelementptr inbounds i8, ptr %58, i64 8
  %60 = load double, ptr %59, align 8, !tbaa !14
  %61 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10ConstraintLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  %62 = getelementptr inbounds i8, ptr %61, i64 8
  store double %60, ptr %62, align 8, !tbaa !15
  %63 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10ConstraintLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  store double %60, ptr %63, align 8, !tbaa !21
  br label %76

64:                                               ; preds = %44
  %65 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %66 = getelementptr inbounds i8, ptr %65, i64 8
  %67 = load double, ptr %66, align 8, !tbaa !14
  %68 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10ConstraintLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  %69 = getelementptr inbounds i8, ptr %68, i64 8
  store double %67, ptr %69, align 8, !tbaa !15
  br label %76

70:                                               ; preds = %44
  %71 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %72 = getelementptr inbounds i8, ptr %71, i64 8
  %73 = load double, ptr %72, align 8, !tbaa !14
  %74 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10ConstraintLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  store double %73, ptr %74, align 8, !tbaa !21
  br label %76

75:                                               ; preds = %44
  invoke void @_Z8lpassertb(i1 noundef zeroext false)
          to label %76 unwind label %55

76:                                               ; preds = %75, %70, %64, %57
  invoke void @_ZNSt6vectorISt10shared_ptrI10ConstraintESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %77 unwind label %55

77:                                               ; preds = %76
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @_ZNSt12__shared_ptrI10ConstraintLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  %79 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP14ProcessedTokenSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br i1 %79, label %17, label %.loopexit, !llvm.loop !22

80:                                               ; preds = %53, %55, %51, %49, %47
  %.pn.pn = phi { ptr, i32 } [ %52, %51 ], [ %50, %49 ], [ %48, %47 ], [ %56, %55 ], [ %54, %53 ]
  call void @_ZNSt12__shared_ptrI10ConstraintLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  br label %81

81:                                               ; preds = %80, %45
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %80 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn.pn.pn

.loopexit:                                        ; preds = %77, %11, %1
  ret void
}

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

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

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

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

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

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

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


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