; LLVM IR from kylechampley/XrayPhysics :: src/xsec.ll (ZN4xsec17parseMaterialTextEPKc)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.3" = type { ptr }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = 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 }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #1

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN4xsec17parseMaterialTextEPKc(ptr noundef nonnull align 8 dereferenceable(2400) %0, ptr noundef %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.0", align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca i8, align 1
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::vector.4", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::vector.4", align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i8, align 1
  %26 = alloca i32, align 4
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca float, align 4
  %31 = alloca i32, align 4
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca float, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %38 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #8
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef %39, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %40 unwind label %69

40:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %41 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  %42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  %43 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  %44 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %43, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #8
  store i8 32, ptr %13, align 1, !tbaa !9
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8
  %47 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8
  %49 = invoke ptr @_ZSt6removeIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcET_SA_SA_RKT0_(ptr %46, ptr %48, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %50 unwind label %73

50:                                               ; preds = %40
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %49, ptr %51, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IPcvEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %52 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  %53 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %52, ptr %53, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IPcvEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %54 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %14, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8
  %56 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.3", ptr %15, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8
  %58 = invoke ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEN9__gnu_cxx17__normal_iteratorIPKcS4_EES9_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr %55, ptr %57)
          to label %59 unwind label %77

59:                                               ; preds = %50
  %60 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %58, ptr %60, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %61 unwind label %81

61:                                               ; preds = %59
  %62 = invoke noundef i64 @_ZN4xsec16findNextPlusSignENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(2400) %38, ptr noundef %18, i32 noundef 0)
          to label %63 unwind label %85

63:                                               ; preds = %61
  %64 = icmp eq i64 %62, -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  br i1 %64, label %65, label %89

65:                                               ; preds = %63
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = invoke noundef ptr @_ZN4xsec20parseChemicalFormulaEPKc(ptr noundef nonnull align 8 dereferenceable(2400) %38, ptr noundef %66)
          to label %68 unwind label %81

68:                                               ; preds = %65
  store ptr %67, ptr %3, align 8
  store i32 1, ptr %19, align 4
  br label %437

69:                                               ; preds = %2
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %8, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  br label %440

73:                                               ; preds = %40
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %8, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  br label %439

77:                                               ; preds = %50
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %8, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %439

81:                                               ; preds = %65, %59
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %8, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %9, align 4
  br label %439

85:                                               ; preds = %61
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %8, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  br label %439

89:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %90 unwind label %95

90:                                               ; preds = %89
  invoke void @_ZN4xsec18splitIntoMaterialsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::vector.4") align 8 %20, ptr noundef nonnull align 8 dereferenceable(2400) %38, ptr noundef %21)
          to label %91 unwind label %99

91:                                               ; preds = %90
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  %92 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  %93 = icmp eq i64 %92, 0
  br i1 %93, label %94, label %103

94:                                               ; preds = %91
  store ptr null, ptr %3, align 8
  store i32 1, ptr %19, align 4
  br label %435

95:                                               ; preds = %89
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %8, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %9, align 4
  br label %436

99:                                               ; preds = %90
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %8, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  br label %436

103:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %104 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  %105 = trunc i64 %104 to i32
  %106 = sext i32 %105 to i64
  %107 = mul i64 %106, 4
  %108 = call noalias ptr @malloc(i64 noundef %107) #9
  store ptr %108, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 0, ptr %24, align 4, !tbaa !10
  br label %109

109:                                              ; preds = %273, %103
  %110 = load i32, ptr %24, align 4, !tbaa !10
  %111 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  %112 = trunc i64 %111 to i32
  %113 = icmp slt i32 %110, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %109
  store i32 2, ptr %19, align 4
  br label %276

115:                                              ; preds = %109
  %116 = load i32, ptr %24, align 4, !tbaa !10
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %117) #8
  %119 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %118, i64 noundef 0)
          to label %120 unwind label %126

120:                                              ; preds = %115
  %121 = load i8, ptr %119, align 1, !tbaa !9
  %122 = sext i8 %121 to i32
  %123 = icmp eq i32 %122, 42
  br i1 %123, label %124, label %130

124:                                              ; preds = %120
  %125 = load ptr, ptr %23, align 8, !tbaa !5
  call void @free(ptr noundef %125) #8
  store ptr null, ptr %3, align 8
  store i32 1, ptr %19, align 4
  br label %276

126:                                              ; preds = %115
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %8, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %9, align 4
  br label %278

130:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #8
  store i8 0, ptr %25, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !10
  br label %131

131:                                              ; preds = %257, %130
  %132 = load i32, ptr %26, align 4, !tbaa !10
  %133 = load i32, ptr %24, align 4, !tbaa !10
  %134 = sext i32 %133 to i64
  %135 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %134) #8
  %136 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %135) #8
  %137 = trunc i64 %136 to i32
  %138 = icmp slt i32 %132, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %131
  store i32 5, ptr %19, align 4
  br label %260

140:                                              ; preds = %131
  %141 = load i32, ptr %24, align 4, !tbaa !10
  %142 = sext i32 %141 to i64
  %143 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %142) #8
  %144 = load i32, ptr %26, align 4, !tbaa !10
  %145 = sext i32 %144 to i64
  %146 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %143, i64 noundef %145)
          to label %147 unwind label %191

147:                                              ; preds = %140
  %148 = load i8, ptr %146, align 1, !tbaa !9
  %149 = sext i8 %148 to i32
  %150 = icmp sge i32 %149, 65
  br i1 %150, label %151, label %256

151:                                              ; preds = %147
  %152 = load i32, ptr %24, align 4, !tbaa !10
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %153) #8
  %155 = load i32, ptr %26, align 4, !tbaa !10
  %156 = sext i32 %155 to i64
  %157 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %154, i64 noundef %156)
          to label %158 unwind label %191

158:                                              ; preds = %151
  %159 = load i8, ptr %157, align 1, !tbaa !9
  %160 = sext i8 %159 to i32
  %161 = icmp sle i32 %160, 90
  br i1 %161, label %162, label %256

162:                                              ; preds = %158
  %163 = load i32, ptr %26, align 4, !tbaa !10
  %164 = icmp sgt i32 %163, 0
  br i1 %164, label %165, label %227

165:                                              ; preds = %162
  %166 = load i32, ptr %24, align 4, !tbaa !10
  %167 = sext i32 %166 to i64
  %168 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %167) #8
  %169 = load i32, ptr %26, align 4, !tbaa !10
  %170 = sub nsw i32 %169, 1
  %171 = sext i32 %170 to i64
  %172 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %168, i64 noundef %171)
          to label %173 unwind label %191

173:                                              ; preds = %165
  %174 = load i8, ptr %172, align 1, !tbaa !9
  %175 = sext i8 %174 to i32
  %176 = icmp eq i32 %175, 42
  br i1 %176, label %177, label %204

177:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #8
  %178 = load i32, ptr %24, align 4, !tbaa !10
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %179) #8
  %181 = load i32, ptr %26, align 4, !tbaa !10
  %182 = sub nsw i32 %181, 1
  %183 = sext i32 %182 to i64
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %27, ptr noundef nonnull align 8 dereferenceable(32) %180, i64 noundef 0, i64 noundef %183)
          to label %184 unwind label %195

184:                                              ; preds = %177
  %185 = invoke noundef float @_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef null)
          to label %186 unwind label %199

186:                                              ; preds = %184
  %187 = load ptr, ptr %23, align 8, !tbaa !5
  %188 = load i32, ptr %24, align 4, !tbaa !10
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds float, ptr %187, i64 %189
  store float %185, ptr %190, align 4, !tbaa !14
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #8
  br label %226

191:                                              ; preds = %165, %151, %140
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %8, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %9, align 4
  br label %261

195:                                              ; preds = %177
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %8, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %9, align 4
  br label %203

199:                                              ; preds = %184
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %8, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #8
  br label %203

203:                                              ; preds = %199, %195
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #8
  br label %261

204:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #8
  %205 = load i32, ptr %24, align 4, !tbaa !10
  %206 = sext i32 %205 to i64
  %207 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %206) #8
  %208 = load i32, ptr %26, align 4, !tbaa !10
  %209 = sext i32 %208 to i64
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %28, ptr noundef nonnull align 8 dereferenceable(32) %207, i64 noundef 0, i64 noundef %209)
          to label %210 unwind label %217

210:                                              ; preds = %204
  %211 = invoke noundef float @_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef null)
          to label %212 unwind label %221

212:                                              ; preds = %210
  %213 = load ptr, ptr %23, align 8, !tbaa !5
  %214 = load i32, ptr %24, align 4, !tbaa !10
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds float, ptr %213, i64 %215
  store float %211, ptr %216, align 4, !tbaa !14
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #8
  br label %226

217:                                              ; preds = %204
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %8, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %9, align 4
  br label %225

221:                                              ; preds = %210
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %8, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  br label %225

225:                                              ; preds = %221, %217
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #8
  br label %261

226:                                              ; preds = %212, %186
  br label %232

227:                                              ; preds = %162
  %228 = load ptr, ptr %23, align 8, !tbaa !5
  %229 = load i32, ptr %24, align 4, !tbaa !10
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds float, ptr %228, i64 %230
  store float 1.000000e+00, ptr %231, align 4, !tbaa !14
  br label %232

232:                                              ; preds = %227, %226
  store i8 1, ptr %25, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #8
  %233 = load i32, ptr %24, align 4, !tbaa !10
  %234 = sext i32 %233 to i64
  %235 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %234) #8
  %236 = load i32, ptr %26, align 4, !tbaa !10
  %237 = sext i32 %236 to i64
  %238 = load i32, ptr %24, align 4, !tbaa !10
  %239 = sext i32 %238 to i64
  %240 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %239) #8
  %241 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %240) #8
  %242 = load i32, ptr %26, align 4, !tbaa !10
  %243 = sext i32 %242 to i64
  %244 = sub i64 %241, %243
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %29, ptr noundef nonnull align 8 dereferenceable(32) %235, i64 noundef %237, i64 noundef %244)
          to label %245 unwind label %247

245:                                              ; preds = %232
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %246 unwind label %251

246:                                              ; preds = %245
  store i32 5, ptr %19, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #8
  br label %260

247:                                              ; preds = %232
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %8, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %9, align 4
  br label %255

251:                                              ; preds = %245
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %8, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %9, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #8
  br label %255

255:                                              ; preds = %251, %247
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #8
  br label %261

256:                                              ; preds = %158, %147
  br label %257

257:                                              ; preds = %256
  %258 = load i32, ptr %26, align 4, !tbaa !10
  %259 = add nsw i32 %258, 1
  store i32 %259, ptr %26, align 4, !tbaa !10
  br label %131, !llvm.loop !16

260:                                              ; preds = %246, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %262

261:                                              ; preds = %255, %225, %203, %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  br label %278

262:                                              ; preds = %260
  %263 = load i8, ptr %25, align 1, !tbaa !12, !range !18, !noundef !19
  %264 = trunc i8 %263 to i1
  %265 = zext i1 %264 to i32
  %266 = icmp eq i32 %265, 0
  br i1 %266, label %267, label %269

267:                                              ; preds = %262
  %268 = load ptr, ptr %23, align 8, !tbaa !5
  call void @free(ptr noundef %268) #8
  store ptr null, ptr %3, align 8
  store i32 1, ptr %19, align 4
  br label %270

269:                                              ; preds = %262
  store i32 0, ptr %19, align 4
  br label %270

270:                                              ; preds = %269, %267
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  %271 = load i32, ptr %19, align 4
  switch i32 %271, label %276 [
    i32 0, label %272
  ]

272:                                              ; preds = %270
  br label %273

273:                                              ; preds = %272
  %274 = load i32, ptr %24, align 4, !tbaa !10
  %275 = add nsw i32 %274, 1
  store i32 %275, ptr %24, align 4, !tbaa !10
  br label %109, !llvm.loop !20

276:                                              ; preds = %270, %124, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  %277 = load i32, ptr %19, align 4
  switch i32 %277, label %433 [
    i32 2, label %279
  ]

278:                                              ; preds = %261, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %434

279:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store float 0.000000e+00, ptr %30, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 0, ptr %31, align 4, !tbaa !10
  br label %280

280:                                              ; preds = %303, %279
  %281 = load i32, ptr %31, align 4, !tbaa !10
  %282 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  %283 = trunc i64 %282 to i32
  %284 = icmp slt i32 %281, %283
  br i1 %284, label %286, label %285

285:                                              ; preds = %280
  store i32 8, ptr %19, align 4
  br label %306

286:                                              ; preds = %280
  %287 = load ptr, ptr %23, align 8, !tbaa !5
  %288 = load i32, ptr %31, align 4, !tbaa !10
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds float, ptr %287, i64 %289
  %291 = load float, ptr %290, align 4, !tbaa !14
  %292 = load float, ptr %30, align 4, !tbaa !14
  %293 = fadd float %292, %291
  store float %293, ptr %30, align 4, !tbaa !14
  %294 = load ptr, ptr %23, align 8, !tbaa !5
  %295 = load i32, ptr %31, align 4, !tbaa !10
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds float, ptr %294, i64 %296
  %298 = load float, ptr %297, align 4, !tbaa !14
  %299 = fpext float %298 to double
  %300 = fcmp ole double %299, 0.000000e+00
  br i1 %300, label %301, label %302

301:                                              ; preds = %286
  store float -1.000000e+00, ptr %30, align 4, !tbaa !14
  store i32 8, ptr %19, align 4
  br label %306

302:                                              ; preds = %286
  br label %303

303:                                              ; preds = %302
  %304 = load i32, ptr %31, align 4, !tbaa !10
  %305 = add nsw i32 %304, 1
  store i32 %305, ptr %31, align 4, !tbaa !10
  br label %280, !llvm.loop !21

306:                                              ; preds = %301, %285
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %307

307:                                              ; preds = %306
  %308 = load float, ptr %30, align 4, !tbaa !14
  %309 = fpext float %308 to double
  %310 = fcmp ole double %309, 0.000000e+00
  br i1 %310, label %311, label %313

311:                                              ; preds = %307
  %312 = load ptr, ptr %23, align 8, !tbaa !5
  call void @free(ptr noundef %312) #8
  store ptr null, ptr %3, align 8
  store i32 1, ptr %19, align 4
  br label %432

313:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %314 = call noalias ptr @calloc(i64 noundef 101, i64 noundef 4) #10
  store ptr %314, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 0, ptr %33, align 4, !tbaa !10
  br label %315

315:                                              ; preds = %422, %313
  %316 = load i32, ptr %33, align 4, !tbaa !10
  %317 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  %318 = trunc i64 %317 to i32
  %319 = icmp slt i32 %316, %318
  br i1 %319, label %321, label %320

320:                                              ; preds = %315
  store i32 11, ptr %19, align 4
  br label %426

321:                                              ; preds = %315
  %322 = load ptr, ptr %23, align 8, !tbaa !5
  %323 = load i32, ptr %33, align 4, !tbaa !10
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds float, ptr %322, i64 %324
  %326 = load float, ptr %325, align 4, !tbaa !14
  %327 = load float, ptr %30, align 4, !tbaa !14
  %328 = fdiv float %326, %327
  %329 = load ptr, ptr %23, align 8, !tbaa !5
  %330 = load i32, ptr %33, align 4, !tbaa !10
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds float, ptr %329, i64 %331
  store float %328, ptr %332, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %333 = load i32, ptr %33, align 4, !tbaa !10
  %334 = sext i32 %333 to i64
  %335 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %334) #8
  %336 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %335) #8
  %337 = invoke noundef ptr @_ZN4xsec20parseChemicalFormulaEPKc(ptr noundef nonnull align 8 dereferenceable(2400) %38, ptr noundef %336)
          to label %338 unwind label %344

338:                                              ; preds = %321
  store ptr %337, ptr %34, align 8, !tbaa !5
  %339 = load ptr, ptr %34, align 8, !tbaa !5
  %340 = icmp eq ptr %339, null
  br i1 %340, label %341, label %348

341:                                              ; preds = %338
  %342 = load ptr, ptr %23, align 8, !tbaa !5
  call void @free(ptr noundef %342) #8
  %343 = load ptr, ptr %32, align 8, !tbaa !5
  call void @free(ptr noundef %343) #8
  store ptr null, ptr %3, align 8
  store i32 1, ptr %19, align 4
  br label %419

344:                                              ; preds = %321
  %345 = landingpad { ptr, i32 }
          cleanup
  %346 = extractvalue { ptr, i32 } %345, 0
  store ptr %346, ptr %8, align 8
  %347 = extractvalue { ptr, i32 } %345, 1
  store i32 %347, ptr %9, align 4
  br label %425

348:                                              ; preds = %338
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store float 0.000000e+00, ptr %35, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  store i32 1, ptr %36, align 4, !tbaa !10
  br label %349

349:                                              ; preds = %377, %348
  %350 = load i32, ptr %36, align 4, !tbaa !10
  %351 = icmp sle i32 %350, 100
  br i1 %351, label %353, label %352

352:                                              ; preds = %349
  store i32 14, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %380

353:                                              ; preds = %349
  %354 = load ptr, ptr %34, align 8, !tbaa !5
  %355 = load i32, ptr %36, align 4, !tbaa !10
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds float, ptr %354, i64 %356
  %358 = load float, ptr %357, align 4, !tbaa !14
  %359 = fpext float %358 to double
  %360 = fcmp ogt double %359, 0.000000e+00
  br i1 %360, label %361, label %376

361:                                              ; preds = %353
  %362 = load i32, ptr %36, align 4, !tbaa !10
  %363 = invoke noundef float @_ZN4xsec13getAtomicMassEi(ptr noundef nonnull align 8 dereferenceable(2400) %38, i32 noundef %362)
          to label %364 unwind label %372

364:                                              ; preds = %361
  %365 = load ptr, ptr %34, align 8, !tbaa !5
  %366 = load i32, ptr %36, align 4, !tbaa !10
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds float, ptr %365, i64 %367
  %369 = load float, ptr %368, align 4, !tbaa !14
  %370 = load float, ptr %35, align 4, !tbaa !14
  %371 = call float @llvm.fmuladd.f32(float %363, float %369, float %370)
  store float %371, ptr %35, align 4, !tbaa !14
  br label %376

372:                                              ; preds = %361
  %373 = landingpad { ptr, i32 }
          cleanup
  %374 = extractvalue { ptr, i32 } %373, 0
  store ptr %374, ptr %8, align 8
  %375 = extractvalue { ptr, i32 } %373, 1
  store i32 %375, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %425

376:                                              ; preds = %364, %353
  br label %377

377:                                              ; preds = %376
  %378 = load i32, ptr %36, align 4, !tbaa !10
  %379 = add nsw i32 %378, 1
  store i32 %379, ptr %36, align 4, !tbaa !10
  br label %349, !llvm.loop !22

380:                                              ; preds = %352
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  store i32 1, ptr %37, align 4, !tbaa !10
  br label %381

381:                                              ; preds = %413, %380
  %382 = load i32, ptr %37, align 4, !tbaa !10
  %383 = icmp sle i32 %382, 100
  br i1 %383, label %385, label %384

384:                                              ; preds = %381
  store i32 17, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %416

385:                                              ; preds = %381
  %386 = load ptr, ptr %34, align 8, !tbaa !5
  %387 = load i32, ptr %37, align 4, !tbaa !10
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds float, ptr %386, i64 %388
  %390 = load float, ptr %389, align 4, !tbaa !14
  %391 = fpext float %390 to double
  %392 = fcmp ogt double %391, 0.000000e+00
  br i1 %392, label %393, label %412

393:                                              ; preds = %385
  %394 = load ptr, ptr %23, align 8, !tbaa !5
  %395 = load i32, ptr %33, align 4, !tbaa !10
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds float, ptr %394, i64 %396
  %398 = load float, ptr %397, align 4, !tbaa !14
  %399 = load float, ptr %35, align 4, !tbaa !14
  %400 = fdiv float %398, %399
  %401 = load ptr, ptr %34, align 8, !tbaa !5
  %402 = load i32, ptr %37, align 4, !tbaa !10
  %403 = sext i32 %402 to i64
  %404 = getelementptr inbounds float, ptr %401, i64 %403
  %405 = load float, ptr %404, align 4, !tbaa !14
  %406 = load ptr, ptr %32, align 8, !tbaa !5
  %407 = load i32, ptr %37, align 4, !tbaa !10
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds float, ptr %406, i64 %408
  %410 = load float, ptr %409, align 4, !tbaa !14
  %411 = call float @llvm.fmuladd.f32(float %400, float %405, float %410)
  store float %411, ptr %409, align 4, !tbaa !14
  br label %412

412:                                              ; preds = %393, %385
  br label %413

413:                                              ; preds = %412
  %414 = load i32, ptr %37, align 4, !tbaa !10
  %415 = add nsw i32 %414, 1
  store i32 %415, ptr %37, align 4, !tbaa !10
  br label %381, !llvm.loop !23

416:                                              ; preds = %384
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %417

417:                                              ; preds = %416
  %418 = load ptr, ptr %34, align 8, !tbaa !5
  call void @free(ptr noundef %418) #8
  store i32 0, ptr %19, align 4
  br label %419

419:                                              ; preds = %417, %341
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  %420 = load i32, ptr %19, align 4
  switch i32 %420, label %426 [
    i32 0, label %421
  ]

421:                                              ; preds = %419
  br label %422

422:                                              ; preds = %421
  %423 = load i32, ptr %33, align 4, !tbaa !10
  %424 = add nsw i32 %423, 1
  store i32 %424, ptr %33, align 4, !tbaa !10
  br label %315, !llvm.loop !24

425:                                              ; preds = %372, %344
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %434

426:                                              ; preds = %419, %320
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  %427 = load i32, ptr %19, align 4
  switch i32 %427, label %431 [
    i32 11, label %428
  ]

428:                                              ; preds = %426
  %429 = load ptr, ptr %23, align 8, !tbaa !5
  call void @free(ptr noundef %429) #8
  %430 = load ptr, ptr %32, align 8, !tbaa !5
  store ptr %430, ptr %3, align 8
  store i32 1, ptr %19, align 4
  br label %431

431:                                              ; preds = %428, %426
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %432

432:                                              ; preds = %431, %311
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %433

433:                                              ; preds = %432, %276
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  br label %435

434:                                              ; preds = %425, %278
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  br label %436

435:                                              ; preds = %433, %94
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #8
  br label %437

436:                                              ; preds = %434, %99, %95
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #8
  br label %439

437:                                              ; preds = %435, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #8
  %438 = load ptr, ptr %3, align 8
  ret ptr %438

439:                                              ; preds = %436, %85, %81, %77, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  br label %440

440:                                              ; preds = %439, %69
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #8
  br label %441

441:                                              ; preds = %440
  %442 = load ptr, ptr %8, align 8
  %443 = load i32, ptr %9, align 4
  %444 = insertvalue { ptr, i32 } poison, ptr %442, 0
  %445 = insertvalue { ptr, i32 } %444, i32 %443, 1
  resume { ptr, i32 } %445
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN4xsec16findNextPlusSignENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(2400), ptr noundef, i32 noundef) #4 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #5 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #6

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4xsec13getAtomicMassEi(ptr noundef nonnull align 8 dereferenceable(2400), i32 noundef) #5 align 2

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

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

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

!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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}


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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.3" = type { ptr }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = 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 }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN4xsec17parseMaterialTextEPKc(ptr noundef nonnull align 8 dereferenceable(2400) %0, ptr noundef %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator.0", align 1
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca i8, align 1
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.3", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::vector.4", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::vector.4", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %17 unwind label %33

17:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %18 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  %19 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 32, ptr %6, align 1, !tbaa !5
  %20 = invoke ptr @_ZSt6removeIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcET_SA_SA_RKT0_(ptr %18, ptr %19, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %21 unwind label %35

21:                                               ; preds = %17
  store ptr %20, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IPcvEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %22 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  store ptr %22, ptr %9, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IPcvEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %23 = load ptr, ptr %7, align 8
  %24 = load ptr, ptr %8, align 8
  %25 = invoke ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEN9__gnu_cxx17__normal_iteratorIPKcS4_EES9_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr %23, ptr %24)
          to label %26 unwind label %37

26:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %27 unwind label %39

27:                                               ; preds = %26
  %28 = invoke noundef i64 @_ZN4xsec16findNextPlusSignENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(2400) %0, ptr noundef nonnull %10, i32 noundef 0)
          to label %29 unwind label %41

29:                                               ; preds = %27
  %30 = icmp eq i64 %28, -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  br i1 %30, label %31, label %43

31:                                               ; preds = %29
  %32 = invoke noundef ptr @_ZN4xsec20parseChemicalFormulaEPKc(ptr noundef nonnull align 8 dereferenceable(2400) %0, ptr noundef %1)
          to label %181 unwind label %39

33:                                               ; preds = %2
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  br label %183

35:                                               ; preds = %17
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  br label %182

37:                                               ; preds = %21
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %182

39:                                               ; preds = %31, %26
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %182

41:                                               ; preds = %27
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  br label %182

43:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %44 unwind label %48

44:                                               ; preds = %43
  invoke void @_ZN4xsec18splitIntoMaterialsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.4") align 8 %11, ptr noundef nonnull align 8 dereferenceable(2400) %0, ptr noundef nonnull %12)
          to label %45 unwind label %50

45:                                               ; preds = %44
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  %46 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %47 = icmp eq i64 %46, 0
  br i1 %47, label %179, label %52

48:                                               ; preds = %43
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %180

50:                                               ; preds = %44
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  br label %180

52:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #8
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %53 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %sext = shl i64 %53, 32
  %54 = ashr exact i64 %sext, 30
  %55 = call noalias ptr @malloc(i64 noundef %54) #9
  %56 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %57 = trunc i64 %56 to i32
  %.not125149 = icmp sgt i32 %57, 0
  br i1 %.not125149, label %.lr.ph151, label %.critedge137.preheader

.critedge137.preheader:                           ; preds = %.critedge135, %52
  %58 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %59 = trunc i64 %58 to i32
  %60 = icmp sgt i32 %59, 0
  br i1 %60, label %.lr.ph154, label %.critedge140

.lr.ph151:                                        ; preds = %52, %.critedge135
  %indvars.iv166 = phi i64 [ %indvars.iv.next167, %.critedge135 ], [ 0, %52 ]
  %61 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv166) #8
  %62 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %61, i64 noundef 0)
  %63 = load i8, ptr %62, align 1, !tbaa !5
  %64 = icmp eq i8 %63, 42
  br i1 %64, label %.critedge140, label %.preheader144

.preheader144:                                    ; preds = %.lr.ph151
  %65 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv166) #8
  %66 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %65) #8
  %67 = trunc i64 %66 to i32
  %.not124147 = icmp sgt i32 %67, 0
  br i1 %.not124147, label %.lr.ph, label %.critedge140

.lr.ph:                                           ; preds = %.preheader144, %120
  %indvars.iv = phi i64 [ %indvars.iv.next, %120 ], [ 0, %.preheader144 ]
  %68 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv166) #8
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %68, i64 noundef %indvars.iv)
  %70 = load i8, ptr %69, align 1, !tbaa !5
  %71 = icmp sgt i8 %70, 64
  br i1 %71, label %72, label %120

72:                                               ; preds = %.lr.ph
  %73 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv166) #8
  %74 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %73, i64 noundef %indvars.iv)
  %75 = load i8, ptr %74, align 1, !tbaa !5
  %76 = icmp slt i8 %75, 91
  br i1 %76, label %77, label %120

77:                                               ; preds = %72
  %.not = icmp eq i64 %indvars.iv, 0
  br i1 %.not, label %107, label %78

78:                                               ; preds = %77
  %79 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv166) #8
  %80 = add nuw nsw i64 %indvars.iv, 4294967295
  %81 = and i64 %80, 4294967295
  %82 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %79, i64 noundef %81)
  %83 = load i8, ptr %82, align 1, !tbaa !5
  %84 = icmp eq i8 %83, 42
  br i1 %84, label %85, label %96

85:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #8
  %86 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv166) #8
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %86, i64 noundef 0, i64 noundef %81)
          to label %87 unwind label %91

87:                                               ; preds = %85
  %88 = invoke noundef float @_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef null)
          to label %89 unwind label %93

89:                                               ; preds = %87
  %90 = getelementptr inbounds float, ptr %55, i64 %indvars.iv166
  store float %88, ptr %90, align 4, !tbaa !8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  br label %109

91:                                               ; preds = %85
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %95

93:                                               ; preds = %87
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  br label %95

95:                                               ; preds = %93, %91
  %.pn119 = phi { ptr, i32 } [ %94, %93 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  br label %178

96:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #8
  %97 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv166) #8
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef nonnull align 8 dereferenceable(32) %97, i64 noundef 0, i64 noundef %indvars.iv)
          to label %98 unwind label %102

98:                                               ; preds = %96
  %99 = invoke noundef float @_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef null)
          to label %100 unwind label %104

100:                                              ; preds = %98
  %101 = getelementptr inbounds float, ptr %55, i64 %indvars.iv166
  store float %99, ptr %101, align 4, !tbaa !8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #8
  br label %109

102:                                              ; preds = %96
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %106

104:                                              ; preds = %98
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  br label %106

106:                                              ; preds = %104, %102
  %.pn = phi { ptr, i32 } [ %105, %104 ], [ %103, %102 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #8
  br label %178

107:                                              ; preds = %77
  %108 = getelementptr inbounds float, ptr %55, i64 %indvars.iv166
  store float 1.000000e+00, ptr %108, align 4, !tbaa !8
  br label %109

109:                                              ; preds = %89, %100, %107
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #8
  %110 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv166) #8
  %111 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv166) #8
  %112 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %111) #8
  %113 = sub i64 %112, %indvars.iv
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %110, i64 noundef %indvars.iv, i64 noundef %113)
          to label %114 unwind label %115

114:                                              ; preds = %109
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %.critedge135 unwind label %117

115:                                              ; preds = %109
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %119

117:                                              ; preds = %114
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  br label %119

119:                                              ; preds = %117, %115
  %.pn121 = phi { ptr, i32 } [ %118, %117 ], [ %116, %115 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #8
  br label %178

120:                                              ; preds = %.lr.ph, %72
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %121 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv166) #8
  %122 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %121) #8
  %sext182 = shl i64 %122, 32
  %123 = ashr exact i64 %sext182, 32
  %.not124 = icmp slt i64 %indvars.iv.next, %123
  br i1 %.not124, label %.lr.ph, label %.critedge140, !llvm.loop !10

.critedge135:                                     ; preds = %114
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #8
  %indvars.iv.next167 = add nuw nsw i64 %indvars.iv166, 1
  %124 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %sext183 = shl i64 %124, 32
  %125 = ashr exact i64 %sext183, 32
  %.not125 = icmp slt i64 %indvars.iv.next167, %125
  br i1 %.not125, label %.lr.ph151, label %.critedge137.preheader, !llvm.loop !12

.lr.ph154:                                        ; preds = %.critedge137.preheader, %.critedge137
  %indvars.iv169 = phi i64 [ %indvars.iv.next170, %.critedge137 ], [ 0, %.critedge137.preheader ]
  %.0100152 = phi float [ %129, %.critedge137 ], [ 0.000000e+00, %.critedge137.preheader ]
  %126 = getelementptr inbounds float, ptr %55, i64 %indvars.iv169
  %127 = load float, ptr %126, align 4, !tbaa !8
  %128 = fcmp ugt float %127, 0.000000e+00
  br i1 %128, label %.critedge137, label %.critedge140

.critedge137:                                     ; preds = %.lr.ph154
  %129 = fadd float %.0100152, %127
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %130 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %sext184 = shl i64 %130, 32
  %131 = ashr exact i64 %sext184, 32
  %132 = icmp slt i64 %indvars.iv.next170, %131
  br i1 %132, label %.lr.ph154, label %.critedge137._crit_edge, !llvm.loop !13

.critedge137._crit_edge:                          ; preds = %.critedge137
  %133 = fcmp ugt float %129, 0.000000e+00
  br i1 %133, label %134, label %.critedge140

134:                                              ; preds = %.critedge137._crit_edge
  %135 = call noalias dereferenceable_or_null(404) ptr @calloc(i64 noundef 101, i64 noundef 4) #10
  %136 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %137 = trunc i64 %136 to i32
  %.not130158 = icmp sgt i32 %137, 0
  br i1 %.not130158, label %.lr.ph160, label %.critedge140

.lr.ph160:                                        ; preds = %134, %174
  %indvars.iv179 = phi i64 [ %indvars.iv.next180, %174 ], [ 0, %134 ]
  %138 = getelementptr inbounds float, ptr %55, i64 %indvars.iv179
  %139 = load float, ptr %138, align 4, !tbaa !8
  %140 = fdiv float %139, %129
  store float %140, ptr %138, align 4, !tbaa !8
  %141 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv179) #8
  %142 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %141) #8
  %143 = invoke noundef ptr @_ZN4xsec20parseChemicalFormulaEPKc(ptr noundef nonnull align 8 dereferenceable(2400) %0, ptr noundef %142)
          to label %144 unwind label %145

144:                                              ; preds = %.lr.ph160
  %.not129 = icmp eq ptr %143, null
  br i1 %.not129, label %177, label %.preheader143

145:                                              ; preds = %.lr.ph160
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %178

.preheader:                                       ; preds = %156
  %147 = fdiv float %140, %.1
  br label %157

.preheader143:                                    ; preds = %144, %156
  %indvars.iv172 = phi i64 [ %indvars.iv.next173, %156 ], [ 1, %144 ]
  %.087155 = phi float [ %.1, %156 ], [ 0.000000e+00, %144 ]
  %148 = getelementptr inbounds float, ptr %143, i64 %indvars.iv172
  %149 = load float, ptr %148, align 4, !tbaa !8
  %150 = fcmp ogt float %149, 0.000000e+00
  br i1 %150, label %151, label %156

151:                                              ; preds = %.preheader143
  %152 = trunc nuw nsw i64 %indvars.iv172 to i32
  %153 = call noundef float @_ZN4xsec13getAtomicMassEi(ptr noundef nonnull align 8 dereferenceable(2400) %0, i32 noundef %152)
  %154 = load float, ptr %148, align 4, !tbaa !8
  %155 = call float @llvm.fmuladd.f32(float %153, float %154, float %.087155)
  br label %156

156:                                              ; preds = %.preheader143, %151
  %.1 = phi float [ %155, %151 ], [ %.087155, %.preheader143 ]
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next173, 101
  br i1 %exitcond.not, label %.preheader, label %.preheader143, !llvm.loop !14

157:                                              ; preds = %173, %.preheader
  %indvars.iv175 = phi i64 [ 1, %.preheader ], [ %indvars.iv.next176.1, %173 ]
  %158 = getelementptr inbounds float, ptr %143, i64 %indvars.iv175
  %159 = load float, ptr %158, align 4, !tbaa !8
  %160 = fcmp ogt float %159, 0.000000e+00
  br i1 %160, label %161, label %165

161:                                              ; preds = %157
  %162 = getelementptr inbounds float, ptr %135, i64 %indvars.iv175
  %163 = load float, ptr %162, align 4, !tbaa !8
  %164 = call float @llvm.fmuladd.f32(float %147, float %159, float %163)
  store float %164, ptr %162, align 4, !tbaa !8
  br label %165

165:                                              ; preds = %157, %161
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %166 = getelementptr inbounds float, ptr %143, i64 %indvars.iv.next176
  %167 = load float, ptr %166, align 4, !tbaa !8
  %168 = fcmp ogt float %167, 0.000000e+00
  br i1 %168, label %169, label %173

169:                                              ; preds = %165
  %170 = getelementptr inbounds float, ptr %135, i64 %indvars.iv.next176
  %171 = load float, ptr %170, align 4, !tbaa !8
  %172 = call float @llvm.fmuladd.f32(float %147, float %167, float %171)
  store float %172, ptr %170, align 4, !tbaa !8
  br label %173

173:                                              ; preds = %169, %165
  %indvars.iv.next176.1 = add nuw nsw i64 %indvars.iv175, 2
  %exitcond178.not.1 = icmp eq i64 %indvars.iv.next176.1, 101
  br i1 %exitcond178.not.1, label %174, label %157, !llvm.loop !15

174:                                              ; preds = %173
  call void @free(ptr noundef nonnull %143) #8
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %175 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %sext185 = shl i64 %175, 32
  %176 = ashr exact i64 %sext185, 32
  %.not130 = icmp slt i64 %indvars.iv.next180, %176
  br i1 %.not130, label %.lr.ph160, label %.critedge140, !llvm.loop !16

177:                                              ; preds = %144
  call void @free(ptr noundef nonnull %55) #8
  br label %.critedge140

.critedge140:                                     ; preds = %.preheader144, %.lr.ph151, %120, %.lr.ph154, %174, %134, %.critedge137._crit_edge, %.critedge137.preheader, %177
  %.sink = phi ptr [ %135, %177 ], [ %55, %.critedge137.preheader ], [ %55, %.critedge137._crit_edge ], [ %55, %134 ], [ %55, %174 ], [ %55, %.lr.ph154 ], [ %55, %120 ], [ %55, %.lr.ph151 ], [ %55, %.preheader144 ]
  %.8 = phi ptr [ null, %177 ], [ null, %.critedge137.preheader ], [ null, %.critedge137._crit_edge ], [ %135, %134 ], [ %135, %174 ], [ null, %.lr.ph154 ], [ null, %120 ], [ null, %.lr.ph151 ], [ null, %.preheader144 ]
  call void @free(ptr noundef %.sink) #8
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  br label %179

178:                                              ; preds = %95, %106, %119, %145
  %.pn126 = phi { ptr, i32 } [ %146, %145 ], [ %.pn121, %119 ], [ %.pn119, %95 ], [ %.pn, %106 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  br label %180

179:                                              ; preds = %45, %.critedge140
  %.9 = phi ptr [ %.8, %.critedge140 ], [ null, %45 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  br label %181

180:                                              ; preds = %178, %50, %48
  %.pn126.pn = phi { ptr, i32 } [ %.pn126, %178 ], [ %51, %50 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  br label %182

181:                                              ; preds = %31, %179
  %.10 = phi ptr [ %.9, %179 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  ret ptr %.10

182:                                              ; preds = %180, %41, %39, %37, %35
  %.pn131 = phi { ptr, i32 } [ %40, %39 ], [ %.pn126.pn, %180 ], [ %42, %41 ], [ %38, %37 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  br label %183

183:                                              ; preds = %182, %33
  %.pn131.pn = phi { ptr, i32 } [ %.pn131, %182 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn131.pn
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN4xsec16findNextPlusSignENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(2400), ptr noundef, i32 noundef) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4xsec13getAtomicMassEi(ptr noundef nonnull align 8 dereferenceable(2400), i32 noundef) local_unnamed_addr #5 align 2

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

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

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

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"float", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}


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