; LLVM IR from trabucayre/openFPGALoader :: src/ihexParser.ll (ZN10IhexParser5parseEv)

; 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::__cxx11::basic_istringstream" = type { %"class.std::basic_istream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"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 }
%"struct.IhexParser::data_line_t" = type { i16, i16, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%class.ConfigBitstreamParser = type { ptr, %"class.std::__cxx11::basic_string", i32, i32, i8, %"class.std::vector", %"class.std::__cxx11::basic_string", %"class.std::map" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_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 }
%class.IhexParser = type { %class.ConfigBitstreamParser, i32, i8, %"class.std::vector.6", %"class.std::vector.11" }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_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<IhexParser::data_line_t, std::allocator<IhexParser::data_line_t>>::_Vector_impl" }
%"struct.std::_Vector_base<IhexParser::data_line_t, std::allocator<IhexParser::data_line_t>>::_Vector_impl" = type { %"struct.std::_Vector_base<IhexParser::data_line_t, std::allocator<IhexParser::data_line_t>>::_Vector_impl_data" }
%"struct.std::_Vector_base<IhexParser::data_line_t, std::allocator<IhexParser::data_line_t>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10IhexParser5parseEv(ptr noundef nonnull align 8 dereferenceable(216) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_istringstream", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i16, align 2
  %9 = alloca i8, align 1
  %10 = alloca %"struct.IhexParser::data_line_t", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca i16, align 2
  %14 = alloca i16, align 2
  %15 = alloca i16, align 2
  %16 = alloca i16, align 2
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator", align 1
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::allocator", align 1
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::allocator", align 1
  %27 = alloca i8, align 1
  %28 = alloca [256 x i8], align 16
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator", align 1
  %31 = alloca [256 x i8], align 16
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"class.std::allocator", align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  %34 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.start.p0(i64 384, ptr %5) #6
  %35 = getelementptr inbounds %class.ConfigBitstreamParser, ptr %34, i32 0, i32 6
  invoke void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(120) %5, ptr noundef nonnull align 8 dereferenceable(32) %35, i32 noundef 8)
          to label %36 unwind label %53

36:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 2, ptr %8) #6
  store i16 0, ptr %8, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  store i8 1, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #6
  call void @_ZN10IhexParser11data_line_tC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  %37 = getelementptr inbounds %"struct.IhexParser::data_line_t", ptr %10, i32 0, i32 1
  store i16 0, ptr %37, align 2, !tbaa !13
  br label %38

38:                                               ; preds = %390, %388, %36
  %39 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(32) %4, i8 noundef signext 10)
          to label %40 unwind label %57

40:                                               ; preds = %38
  %41 = load ptr, ptr %39, align 8, !tbaa !19
  %42 = getelementptr i8, ptr %41, i64 -24
  %43 = load i64, ptr %42, align 8
  %44 = getelementptr inbounds i8, ptr %39, i64 %43
  %45 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %44)
          to label %46 unwind label %57

46:                                               ; preds = %40
  br i1 %45, label %47, label %392

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  store i8 0, ptr %12, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %48 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %49 = load i8, ptr %48, align 1, !tbaa !21
  %50 = sext i8 %49 to i32
  %51 = icmp eq i32 %50, 13
  br i1 %51, label %52, label %61

52:                                               ; preds = %47
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br label %61

53:                                               ; preds = %1
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %6, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %7, align 4
  br label %396

57:                                               ; preds = %40, %38
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %6, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %7, align 4
  br label %395

61:                                               ; preds = %52, %47
  %62 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef 0)
          to label %63 unwind label %68

63:                                               ; preds = %61
  %64 = load i8, ptr %62, align 1, !tbaa !21
  %65 = sext i8 %64 to i32
  %66 = icmp eq i32 %65, 35
  br i1 %66, label %67, label %72

67:                                               ; preds = %63
  store i32 2, ptr %19, align 4
  br label %388, !llvm.loop !22

68:                                               ; preds = %308, %268, %245, %158, %147, %138, %98, %95, %92, %90, %72, %61
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %6, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %7, align 4
  br label %391

72:                                               ; preds = %63
  %73 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef 0)
          to label %74 unwind label %68

74:                                               ; preds = %72
  %75 = load i8, ptr %73, align 1, !tbaa !21
  %76 = sext i8 %75 to i32
  %77 = icmp ne i32 %76, 58
  br i1 %77, label %78, label %90

78:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %79 unwind label %81

79:                                               ; preds = %78
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %20, i1 noundef zeroext true)
          to label %80 unwind label %85

80:                                               ; preds = %79
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  store i32 1, ptr %2, align 4
  store i32 1, ptr %19, align 4
  br label %388

81:                                               ; preds = %78
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %6, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %7, align 4
  br label %89

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

89:                                               ; preds = %85, %81
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  br label %391

90:                                               ; preds = %74
  %91 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef 1)
          to label %92 unwind label %68

92:                                               ; preds = %90
  %93 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %91, ptr noundef @.str.1, ptr noundef %14) #6
  %94 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef 3)
          to label %95 unwind label %68

95:                                               ; preds = %92
  %96 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %94, ptr noundef @.str.2, ptr noundef %17) #6
  %97 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef 7)
          to label %98 unwind label %68

98:                                               ; preds = %95
  %99 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %97, ptr noundef @.str.1, ptr noundef %15) #6
  %100 = load i16, ptr %14, align 2, !tbaa !9
  %101 = zext i16 %100 to i32
  %102 = mul nsw i32 %101, 2
  %103 = add nsw i32 9, %102
  %104 = sext i32 %103 to i64
  %105 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %104)
          to label %106 unwind label %68

106:                                              ; preds = %98
  %107 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %105, ptr noundef @.str.1, ptr noundef %16) #6
  %108 = load i16, ptr %14, align 2, !tbaa !9
  %109 = zext i16 %108 to i32
  %110 = load i16, ptr %15, align 2, !tbaa !9
  %111 = zext i16 %110 to i32
  %112 = add nsw i32 %109, %111
  %113 = load i32, ptr %17, align 4, !tbaa !24
  %114 = and i32 %113, 255
  %115 = add i32 %112, %114
  %116 = load i32, ptr %17, align 4, !tbaa !24
  %117 = lshr i32 %116, 8
  %118 = and i32 %117, 255
  %119 = add i32 %115, %118
  %120 = trunc i32 %119 to i8
  store i8 %120, ptr %12, align 1, !tbaa !21
  %121 = load i16, ptr %15, align 2, !tbaa !9
  %122 = zext i16 %121 to i32
  switch i32 %122, label %334 [
    i32 0, label %123
    i32 1, label %240
    i32 4, label %249
    i32 5, label %289
  ]

123:                                              ; preds = %106
  %124 = getelementptr inbounds %class.IhexParser, ptr %34, i32 0, i32 1
  %125 = load i32, ptr %124, align 8, !tbaa !26
  %126 = load i32, ptr %17, align 4, !tbaa !24
  %127 = add i32 %125, %126
  store i32 %127, ptr %18, align 4, !tbaa !24
  %128 = load i16, ptr %8, align 2, !tbaa !9
  %129 = zext i16 %128 to i32
  %130 = load i32, ptr %17, align 4, !tbaa !24
  %131 = icmp ne i32 %129, %130
  br i1 %131, label %135, label %132

132:                                              ; preds = %123
  %133 = load i8, ptr %9, align 1, !tbaa !11, !range !48, !noundef !49
  %134 = trunc i8 %133 to i1
  br i1 %134, label %135, label %147

135:                                              ; preds = %132, %123
  %136 = load i8, ptr %9, align 1, !tbaa !11, !range !48, !noundef !49
  %137 = trunc i8 %136 to i1
  br i1 %137, label %141, label %138

138:                                              ; preds = %135
  %139 = getelementptr inbounds %class.IhexParser, ptr %34, i32 0, i32 4
  invoke void @_ZNSt6vectorIN10IhexParser11data_line_tESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %139, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %140 unwind label %68

140:                                              ; preds = %138
  br label %141

141:                                              ; preds = %140, %135
  %142 = load i32, ptr %18, align 4, !tbaa !24
  %143 = trunc i32 %142 to i16
  %144 = getelementptr inbounds %"struct.IhexParser::data_line_t", ptr %10, i32 0, i32 0
  store i16 %143, ptr %144, align 8, !tbaa !50
  %145 = getelementptr inbounds %"struct.IhexParser::data_line_t", ptr %10, i32 0, i32 1
  store i16 0, ptr %145, align 2, !tbaa !13
  %146 = getelementptr inbounds %"struct.IhexParser::data_line_t", ptr %10, i32 0, i32 2
  call void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %146) #6
  store i8 0, ptr %9, align 1, !tbaa !11
  br label %147

147:                                              ; preds = %141, %132
  %148 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef 9)
          to label %149 unwind label %68

149:                                              ; preds = %147
  store ptr %148, ptr %11, align 8, !tbaa !5
  %150 = getelementptr inbounds %class.ConfigBitstreamParser, ptr %34, i32 0, i32 5
  %151 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %150) #6
  %152 = load i32, ptr %18, align 4, !tbaa !24
  %153 = load i16, ptr %14, align 2, !tbaa !9
  %154 = zext i16 %153 to i32
  %155 = add i32 %152, %154
  %156 = zext i32 %155 to i64
  %157 = icmp ult i64 %151, %156
  br i1 %157, label %158, label %167

158:                                              ; preds = %149
  %159 = getelementptr inbounds %class.ConfigBitstreamParser, ptr %34, i32 0, i32 5
  %160 = load i32, ptr %18, align 4, !tbaa !24
  %161 = load i16, ptr %14, align 2, !tbaa !9
  %162 = zext i16 %161 to i32
  %163 = add i32 %160, %162
  %164 = mul i32 2, %163
  %165 = zext i32 %164 to i64
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %165)
          to label %166 unwind label %68

166:                                              ; preds = %158
  br label %167

167:                                              ; preds = %166, %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !24
  br label %168

168:                                              ; preds = %212, %167
  %169 = load i32, ptr %22, align 4, !tbaa !24
  %170 = load i16, ptr %14, align 2, !tbaa !9
  %171 = zext i16 %170 to i32
  %172 = icmp slt i32 %169, %171
  br i1 %172, label %174, label %173

173:                                              ; preds = %168
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %221

174:                                              ; preds = %168
  %175 = load ptr, ptr %11, align 8, !tbaa !5
  %176 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %175, ptr noundef @.str.1, ptr noundef %13) #6
  %177 = getelementptr inbounds %class.IhexParser, ptr %34, i32 0, i32 2
  %178 = load i8, ptr %177, align 4, !tbaa !51, !range !48, !noundef !49
  %179 = trunc i8 %178 to i1
  br i1 %179, label %180, label %186

180:                                              ; preds = %174
  %181 = load i16, ptr %13, align 2, !tbaa !9
  %182 = trunc i16 %181 to i8
  %183 = invoke noundef zeroext i8 @_ZN21ConfigBitstreamParser11reverseByteEh(i8 noundef zeroext %182)
          to label %184 unwind label %217

184:                                              ; preds = %180
  %185 = zext i8 %183 to i32
  br label %189

186:                                              ; preds = %174
  %187 = load i16, ptr %13, align 2, !tbaa !9
  %188 = zext i16 %187 to i32
  br label %189

189:                                              ; preds = %186, %184
  %190 = phi i32 [ %185, %184 ], [ %188, %186 ]
  %191 = trunc i32 %190 to i8
  %192 = getelementptr inbounds %class.ConfigBitstreamParser, ptr %34, i32 0, i32 5
  %193 = load i32, ptr %18, align 4, !tbaa !24
  %194 = load i32, ptr %22, align 4, !tbaa !24
  %195 = add i32 %193, %194
  %196 = zext i32 %195 to i64
  %197 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef %196) #6
  store i8 %191, ptr %197, align 1, !tbaa !21
  %198 = load i16, ptr %13, align 2, !tbaa !9
  %199 = zext i16 %198 to i32
  %200 = load i8, ptr %12, align 1, !tbaa !21
  %201 = zext i8 %200 to i32
  %202 = add nsw i32 %201, %199
  %203 = trunc i32 %202 to i8
  store i8 %203, ptr %12, align 1, !tbaa !21
  %204 = getelementptr inbounds %"struct.IhexParser::data_line_t", ptr %10, i32 0, i32 2
  %205 = getelementptr inbounds %class.ConfigBitstreamParser, ptr %34, i32 0, i32 5
  %206 = load i32, ptr %18, align 4, !tbaa !24
  %207 = load i32, ptr %22, align 4, !tbaa !24
  %208 = add i32 %206, %207
  %209 = zext i32 %208 to i64
  %210 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %205, i64 noundef %209) #6
  invoke void @_ZNSt6vectorIhSaIhEE9push_backERKh(ptr noundef nonnull align 8 dereferenceable(24) %204, ptr noundef nonnull align 1 dereferenceable(1) %210)
          to label %211 unwind label %217

211:                                              ; preds = %189
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr %22, align 4, !tbaa !24
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %22, align 4, !tbaa !24
  %215 = load ptr, ptr %11, align 8, !tbaa !5
  %216 = getelementptr inbounds i8, ptr %215, i64 2
  store ptr %216, ptr %11, align 8, !tbaa !5
  br label %168, !llvm.loop !52

217:                                              ; preds = %189, %180
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %6, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %391

221:                                              ; preds = %173
  %222 = load i16, ptr %14, align 2, !tbaa !9
  %223 = zext i16 %222 to i32
  %224 = getelementptr inbounds %"struct.IhexParser::data_line_t", ptr %10, i32 0, i32 1
  %225 = load i16, ptr %224, align 2, !tbaa !13
  %226 = zext i16 %225 to i32
  %227 = add nsw i32 %226, %223
  %228 = trunc i32 %227 to i16
  store i16 %228, ptr %224, align 2, !tbaa !13
  %229 = load i32, ptr %17, align 4, !tbaa !24
  %230 = load i16, ptr %14, align 2, !tbaa !9
  %231 = zext i16 %230 to i32
  %232 = add i32 %229, %231
  %233 = trunc i32 %232 to i16
  store i16 %233, ptr %8, align 2, !tbaa !9
  %234 = load i16, ptr %14, align 2, !tbaa !9
  %235 = zext i16 %234 to i32
  %236 = mul nsw i32 %235, 8
  %237 = getelementptr inbounds %class.ConfigBitstreamParser, ptr %34, i32 0, i32 2
  %238 = load i32, ptr %237, align 8, !tbaa !53
  %239 = add nsw i32 %238, %236
  store i32 %239, ptr %237, align 8, !tbaa !53
  br label %354

240:                                              ; preds = %106
  %241 = getelementptr inbounds %"struct.IhexParser::data_line_t", ptr %10, i32 0, i32 1
  %242 = load i16, ptr %241, align 2, !tbaa !13
  %243 = zext i16 %242 to i32
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %245, label %248

245:                                              ; preds = %240
  %246 = getelementptr inbounds %class.IhexParser, ptr %34, i32 0, i32 4
  invoke void @_ZNSt6vectorIN10IhexParser11data_line_tESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %246, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %247 unwind label %68

247:                                              ; preds = %245
  br label %248

248:                                              ; preds = %247, %240
  store i32 0, ptr %2, align 4
  store i32 1, ptr %19, align 4
  br label %388

249:                                              ; preds = %106
  %250 = load i32, ptr %17, align 4, !tbaa !24
  %251 = icmp ne i32 %250, 0
  br i1 %251, label %256, label %252

252:                                              ; preds = %249
  %253 = load i16, ptr %14, align 2, !tbaa !9
  %254 = zext i16 %253 to i32
  %255 = icmp ne i32 %254, 2
  br i1 %255, label %256, label %268

256:                                              ; preds = %252, %249
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %257 unwind label %259

257:                                              ; preds = %256
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %23, i1 noundef zeroext true)
          to label %258 unwind label %263

258:                                              ; preds = %257
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  store i32 1, ptr %2, align 4
  store i32 1, ptr %19, align 4
  br label %388

259:                                              ; preds = %256
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %6, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %7, align 4
  br label %267

263:                                              ; preds = %257
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %6, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  br label %267

267:                                              ; preds = %263, %259
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  br label %391

268:                                              ; preds = %252
  %269 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef 9)
          to label %270 unwind label %68

270:                                              ; preds = %268
  %271 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %269, ptr noundef @.str.4, ptr noundef %13) #6
  %272 = load i16, ptr %13, align 2, !tbaa !9
  %273 = zext i16 %272 to i32
  %274 = shl i32 %273, 16
  %275 = getelementptr inbounds %class.IhexParser, ptr %34, i32 0, i32 1
  store i32 %274, ptr %275, align 8, !tbaa !26
  %276 = load i16, ptr %13, align 2, !tbaa !9
  %277 = zext i16 %276 to i32
  %278 = ashr i32 %277, 0
  %279 = and i32 %278, 255
  %280 = load i16, ptr %13, align 2, !tbaa !9
  %281 = zext i16 %280 to i32
  %282 = ashr i32 %281, 8
  %283 = and i32 %282, 255
  %284 = add nsw i32 %279, %283
  %285 = load i8, ptr %12, align 1, !tbaa !21
  %286 = zext i8 %285 to i32
  %287 = add nsw i32 %286, %284
  %288 = trunc i32 %287 to i8
  store i8 %288, ptr %12, align 1, !tbaa !21
  br label %354

289:                                              ; preds = %106
  %290 = load i32, ptr %17, align 4, !tbaa !24
  %291 = icmp ne i32 %290, 0
  br i1 %291, label %296, label %292

292:                                              ; preds = %289
  %293 = load i16, ptr %14, align 2, !tbaa !9
  %294 = zext i16 %293 to i32
  %295 = icmp ne i32 %294, 4
  br i1 %295, label %296, label %308

296:                                              ; preds = %292, %289
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %297 unwind label %299

297:                                              ; preds = %296
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %25, i1 noundef zeroext true)
          to label %298 unwind label %303

298:                                              ; preds = %297
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  store i32 1, ptr %2, align 4
  store i32 1, ptr %19, align 4
  br label %388

299:                                              ; preds = %296
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %6, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %7, align 4
  br label %307

303:                                              ; preds = %297
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %6, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  br label %307

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

308:                                              ; preds = %292
  %309 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef 9)
          to label %310 unwind label %68

310:                                              ; preds = %308
  %311 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %309, ptr noundef @.str.2, ptr noundef %17) #6
  %312 = load i32, ptr %17, align 4, !tbaa !24
  %313 = getelementptr inbounds %class.IhexParser, ptr %34, i32 0, i32 1
  store i32 %312, ptr %313, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  store i8 0, ptr %27, align 1, !tbaa !21
  br label %314

314:                                              ; preds = %330, %310
  %315 = load i8, ptr %27, align 1, !tbaa !21
  %316 = zext i8 %315 to i32
  %317 = icmp slt i32 %316, 4
  br i1 %317, label %319, label %318

318:                                              ; preds = %314
  store i32 8, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  br label %333

319:                                              ; preds = %314
  %320 = load i32, ptr %17, align 4, !tbaa !24
  %321 = load i8, ptr %27, align 1, !tbaa !21
  %322 = zext i8 %321 to i32
  %323 = mul nsw i32 %322, 8
  %324 = lshr i32 %320, %323
  %325 = and i32 %324, 255
  %326 = load i8, ptr %12, align 1, !tbaa !21
  %327 = zext i8 %326 to i32
  %328 = add i32 %327, %325
  %329 = trunc i32 %328 to i8
  store i8 %329, ptr %12, align 1, !tbaa !21
  br label %330

330:                                              ; preds = %319
  %331 = load i8, ptr %27, align 1, !tbaa !21
  %332 = add i8 %331, 1
  store i8 %332, ptr %27, align 1, !tbaa !21
  br label %314, !llvm.loop !54

333:                                              ; preds = %318
  br label %354

334:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 256, ptr %28) #6
  %335 = getelementptr inbounds [256 x i8], ptr %28, i64 0, i64 0
  %336 = load i16, ptr %15, align 2, !tbaa !9
  %337 = zext i16 %336 to i32
  %338 = load i16, ptr %14, align 2, !tbaa !9
  %339 = zext i16 %338 to i32
  %340 = load i32, ptr %17, align 4, !tbaa !24
  %341 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %335, i64 noundef 256, ptr noundef @.str.6, i32 noundef %337, i32 noundef %339, i32 noundef %340) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #6
  %342 = getelementptr inbounds [256 x i8], ptr %28, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef %342, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %343 unwind label %345

343:                                              ; preds = %334
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %29, i1 noundef zeroext true)
          to label %344 unwind label %349

344:                                              ; preds = %343
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #6
  store i32 1, ptr %2, align 4
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 256, ptr %28) #6
  br label %388

345:                                              ; preds = %334
  %346 = landingpad { ptr, i32 }
          cleanup
  %347 = extractvalue { ptr, i32 } %346, 0
  store ptr %347, ptr %6, align 8
  %348 = extractvalue { ptr, i32 } %346, 1
  store i32 %348, ptr %7, align 4
  br label %353

349:                                              ; preds = %343
  %350 = landingpad { ptr, i32 }
          cleanup
  %351 = extractvalue { ptr, i32 } %350, 0
  store ptr %351, ptr %6, align 8
  %352 = extractvalue { ptr, i32 } %350, 1
  store i32 %352, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  br label %353

353:                                              ; preds = %349, %345
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %28) #6
  br label %391

354:                                              ; preds = %333, %270, %221
  %355 = load i16, ptr %16, align 2, !tbaa !9
  %356 = zext i16 %355 to i32
  %357 = load i8, ptr %12, align 1, !tbaa !21
  %358 = zext i8 %357 to i32
  %359 = xor i32 %358, -1
  %360 = add nsw i32 %359, 1
  %361 = and i32 255, %360
  %362 = icmp ne i32 %356, %361
  br i1 %362, label %363, label %387

363:                                              ; preds = %354
  call void @llvm.lifetime.start.p0(i64 256, ptr %31) #6
  %364 = getelementptr inbounds [256 x i8], ptr %31, i64 0, i64 0
  %365 = load i16, ptr %16, align 2, !tbaa !9
  %366 = zext i16 %365 to i32
  %367 = load i8, ptr %12, align 1, !tbaa !21
  %368 = zext i8 %367 to i32
  %369 = load i8, ptr %12, align 1, !tbaa !21
  %370 = zext i8 %369 to i32
  %371 = xor i32 %370, -1
  %372 = add nsw i32 %371, 1
  %373 = and i32 255, %372
  %374 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %364, i64 noundef 256, ptr noundef @.str.7, i32 noundef %366, i32 noundef %368, i32 noundef %373) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #6
  %375 = getelementptr inbounds [256 x i8], ptr %31, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef %375, ptr noundef nonnull align 1 dereferenceable(1) %33)
          to label %376 unwind label %378

376:                                              ; preds = %363
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %32, i1 noundef zeroext true)
          to label %377 unwind label %382

377:                                              ; preds = %376
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  store i32 1, ptr %2, align 4
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 256, ptr %31) #6
  br label %388

378:                                              ; preds = %363
  %379 = landingpad { ptr, i32 }
          cleanup
  %380 = extractvalue { ptr, i32 } %379, 0
  store ptr %380, ptr %6, align 8
  %381 = extractvalue { ptr, i32 } %379, 1
  store i32 %381, ptr %7, align 4
  br label %386

382:                                              ; preds = %376
  %383 = landingpad { ptr, i32 }
          cleanup
  %384 = extractvalue { ptr, i32 } %383, 0
  store ptr %384, ptr %6, align 8
  %385 = extractvalue { ptr, i32 } %383, 1
  store i32 %385, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  br label %386

386:                                              ; preds = %382, %378
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %31) #6
  br label %391

387:                                              ; preds = %354
  store i32 0, ptr %19, align 4
  br label %388

388:                                              ; preds = %387, %377, %344, %298, %258, %248, %80, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %389 = load i32, ptr %19, align 4
  switch i32 %389, label %393 [
    i32 0, label %390
    i32 2, label %38
  ]

390:                                              ; preds = %388
  br label %38, !llvm.loop !22

391:                                              ; preds = %386, %353, %307, %267, %217, %89, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %395

392:                                              ; preds = %46
  store i32 0, ptr %2, align 4
  store i32 1, ptr %19, align 4
  br label %393

393:                                              ; preds = %392, %388
  call void @_ZN10IhexParser11data_line_tD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #6
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120) %5) #6
  call void @llvm.lifetime.end.p0(i64 384, ptr %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  %394 = load i32, ptr %2, align 4
  ret i32 %394

395:                                              ; preds = %391, %57
  call void @_ZN10IhexParser11data_line_tD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #6
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120) %5) #6
  br label %396

396:                                              ; preds = %395, %53
  call void @llvm.lifetime.end.p0(i64 384, ptr %5) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  br label %397

397:                                              ; preds = %396
  %398 = load ptr, ptr %6, align 8
  %399 = load i32, ptr %7, align 4
  %400 = insertvalue { ptr, i32 } poison, ptr %398, 0
  %401 = insertvalue { ptr, i32 } %400, i32 %399, 1
  resume { ptr, i32 } %401
}

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #4

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #0 align 2

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

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

declare void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #0 align 2

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

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

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #5

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

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

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

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

declare noundef zeroext i8 @_ZN21ConfigBitstreamParser11reverseByteEh(i8 noundef zeroext) #4

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

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

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #5

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 2}
!14 = !{!"_ZTSN10IhexParser11data_line_tE", !10, i64 0, !10, i64 2, !15, i64 8}
!15 = !{!"_ZTSSt6vectorIhSaIhEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!20, !20, i64 0}
!20 = !{!"vtable pointer", !8, i64 0}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!25, !25, i64 0}
!25 = !{!"int", !7, i64 0}
!26 = !{!27, !25, i64 160}
!27 = !{!"_ZTS10IhexParser", !28, i64 0, !25, i64 160, !12, i64 164, !40, i64 168, !44, i64 192}
!28 = !{!"_ZTS21ConfigBitstreamParser", !29, i64 8, !25, i64 40, !25, i64 44, !12, i64 48, !15, i64 56, !29, i64 80, !32, i64 112}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !30, i64 0, !31, i64 8, !7, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!31 = !{!"long", !7, i64 0}
!32 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEE", !33, i64 0}
!33 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !34, i64 0}
!34 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !35, i64 0, !37, i64 8}
!35 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !36, i64 0}
!36 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!37 = !{!"_ZTSSt15_Rb_tree_header", !38, i64 0, !31, i64 32}
!38 = !{!"_ZTSSt18_Rb_tree_node_base", !39, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!39 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!40 = !{!"_ZTSSt6vectorIjSaIjEE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!44 = !{!"_ZTSSt6vectorIN10IhexParser11data_line_tESaIS1_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseIN10IhexParser11data_line_tESaIS1_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIN10IhexParser11data_line_tESaIS1_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIN10IhexParser11data_line_tESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!48 = !{i8 0, i8 2}
!49 = !{}
!50 = !{!14, !10, i64 0}
!51 = !{!27, !12, i64 164}
!52 = distinct !{!52, !23}
!53 = !{!28, !25, i64 40}
!54 = distinct !{!54, !23}


; 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::__cxx11::basic_istringstream" = type { %"class.std::basic_istream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"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 }
%"struct.IhexParser::data_line_t" = type { i16, i16, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10IhexParser5parseEv(ptr noundef nonnull align 8 dereferenceable(216) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::__cxx11::basic_istringstream", align 8
  %4 = alloca %"struct.IhexParser::data_line_t", align 8
  %5 = alloca i16, align 2
  %6 = alloca i16, align 2
  %7 = alloca i16, align 2
  %8 = alloca i16, align 2
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca [256 x i8], align 16
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca [256 x i8], align 16
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.start.p0(i64 384, ptr nonnull %3) #6
  %22 = getelementptr inbounds i8, ptr %0, i64 80
  invoke void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(120) %3, ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef 8)
          to label %23 unwind label %45

23:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @_ZN10IhexParser11data_line_tC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %24 = getelementptr inbounds i8, ptr %4, i64 2
  store i16 0, ptr %24, align 2, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %0, i64 160
  %26 = getelementptr inbounds i8, ptr %0, i64 192
  %27 = getelementptr inbounds i8, ptr %4, i64 8
  %28 = getelementptr inbounds i8, ptr %0, i64 56
  %29 = getelementptr inbounds i8, ptr %0, i64 164
  %30 = getelementptr inbounds i8, ptr %0, i64 40
  br label %31

31:                                               ; preds = %214, %23
  %.042 = phi i16 [ 0, %23 ], [ %.244, %214 ]
  %.039 = phi i8 [ 1, %23 ], [ %.3, %214 ]
  %32 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(32) %2, i8 noundef signext 10)
          to label %33 unwind label %47

33:                                               ; preds = %31
  %34 = load ptr, ptr %32, align 8, !tbaa !15
  %35 = getelementptr i8, ptr %34, i64 -24
  %36 = load i64, ptr %35, align 8
  %37 = getelementptr inbounds i8, ptr %32, i64 %36
  %38 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %37)
          to label %39 unwind label %47

39:                                               ; preds = %33
  br i1 %38, label %40, label %.loopexit79

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  %41 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %42 = load i8, ptr %41, align 1, !tbaa !17
  %43 = icmp eq i8 %42, 13
  br i1 %43, label %44, label %49

44:                                               ; preds = %40
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  br label %49

45:                                               ; preds = %1
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %217

47:                                               ; preds = %33, %31
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %216

49:                                               ; preds = %44, %40
  %50 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %51 = load i8, ptr %50, align 1, !tbaa !17
  %52 = icmp eq i8 %51, 35
  br i1 %52, label %214, label %53, !llvm.loop !18

.loopexit80:                                      ; preds = %94, %104
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %215

.loopexit.split-lp:                               ; preds = %144
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %215

53:                                               ; preds = %49
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %55 = load i8, ptr %54, align 1, !tbaa !17
  %.not = icmp eq i8 %55, 58
  br i1 %.not, label %64, label %56

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %57 unwind label %59

57:                                               ; preds = %56
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %10, i1 noundef zeroext true)
          to label %58 unwind label %61

58:                                               ; preds = %57
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %.thread

59:                                               ; preds = %56
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %63

61:                                               ; preds = %57
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %63

63:                                               ; preds = %61, %59
  %.pn70 = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %215

64:                                               ; preds = %53
  %65 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 1)
  %66 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %65, ptr noundef nonnull @.str.1, ptr noundef nonnull %6) #6
  %67 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 3)
  %68 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %67, ptr noundef nonnull @.str.2, ptr noundef nonnull %9) #6
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 7)
  %70 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %69, ptr noundef nonnull @.str.1, ptr noundef nonnull %7) #6
  %71 = load i16, ptr %6, align 2, !tbaa !20
  %72 = zext i16 %71 to i64
  %73 = shl nuw nsw i64 %72, 1
  %74 = add nuw nsw i64 %73, 9
  %75 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %74)
  %76 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %75, ptr noundef nonnull @.str.1, ptr noundef nonnull %8) #6
  %77 = load i16, ptr %6, align 2
  %78 = zext i16 %77 to i32
  %79 = load i16, ptr %7, align 2, !tbaa !20
  %80 = zext i16 %79 to i32
  %81 = add nuw nsw i32 %80, %78
  %82 = load i32, ptr %9, align 4, !tbaa !21
  %83 = add i32 %81, %82
  %84 = lshr i32 %82, 8
  %85 = add i32 %83, %84
  %86 = trunc i32 %85 to i8
  switch i16 %79, label %191 [
    i16 0, label %87
    i16 1, label %142
    i16 4, label %145
    i16 5, label %166
  ]

87:                                               ; preds = %64
  %88 = load i32, ptr %25, align 8, !tbaa !23
  %89 = add i32 %88, %82
  %90 = zext i16 %.042 to i32
  %.not64 = icmp eq i32 %82, %90
  %91 = trunc nuw i8 %.039 to i1
  br i1 %.not64, label %92, label %93

92:                                               ; preds = %87
  br i1 %91, label %.thread151, label %96

93:                                               ; preds = %87
  br i1 %91, label %.thread151, label %94

94:                                               ; preds = %93
  invoke void @_ZNSt6vectorIN10IhexParser11data_line_tESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %.thread151 unwind label %.loopexit80

.thread151:                                       ; preds = %92, %94, %93
  %95 = trunc i32 %89 to i16
  store i16 %95, ptr %4, align 8, !tbaa !46
  store i16 0, ptr %24, align 2, !tbaa !5
  call void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  br label %96

96:                                               ; preds = %.thread151, %92
  %.140 = phi i8 [ 0, %.thread151 ], [ %.039, %92 ]
  %97 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 9)
  %98 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  %99 = load i16, ptr %6, align 2, !tbaa !20
  %100 = zext i16 %99 to i32
  %101 = add i32 %89, %100
  %102 = zext i32 %101 to i64
  %103 = icmp ult i64 %98, %102
  br i1 %103, label %104, label %107

104:                                              ; preds = %96
  %105 = shl i32 %101, 1
  %106 = zext i32 %105 to i64
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %106)
          to label %._crit_edge146 unwind label %.loopexit80

._crit_edge146:                                   ; preds = %104
  %.pre = load i16, ptr %6, align 2, !tbaa !20
  %.pre147 = zext i16 %.pre to i32
  br label %107

107:                                              ; preds = %._crit_edge146, %96
  %.pre-phi = phi i32 [ %.pre147, %._crit_edge146 ], [ %100, %96 ]
  %108 = phi i16 [ %.pre, %._crit_edge146 ], [ %99, %96 ]
  %.not116 = icmp eq i16 %108, 0
  br i1 %.not116, label %._crit_edge, label %.lr.ph

._crit_edge.loopexit:                             ; preds = %133
  %109 = zext i16 %137 to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %107
  %.035.lcssa = phi i8 [ %86, %107 ], [ %135, %._crit_edge.loopexit ]
  %.lcssa82 = phi i16 [ 0, %107 ], [ %137, %._crit_edge.loopexit ]
  %.lcssa = phi i32 [ %.pre-phi, %107 ], [ %109, %._crit_edge.loopexit ]
  %110 = load i16, ptr %24, align 2, !tbaa !5
  %111 = add i16 %110, %.lcssa82
  store i16 %111, ptr %24, align 2, !tbaa !5
  %112 = load i32, ptr %9, align 4, !tbaa !21
  %113 = trunc i32 %112 to i16
  %114 = add i16 %.lcssa82, %113
  %115 = shl nuw nsw i32 %.lcssa, 3
  %116 = load i32, ptr %30, align 8, !tbaa !47
  %117 = add nsw i32 %116, %115
  store i32 %117, ptr %30, align 8, !tbaa !47
  br label %.loopexit

.lr.ph:                                           ; preds = %107, %133
  %indvars.iv = phi i64 [ %indvars.iv.next, %133 ], [ 0, %107 ]
  %.035112 = phi i8 [ %135, %133 ], [ %86, %107 ]
  %.038111 = phi ptr [ %136, %133 ], [ %97, %107 ]
  %118 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.038111, ptr noundef nonnull @.str.1, ptr noundef nonnull %5) #6
  %119 = load i8, ptr %29, align 4, !tbaa !48, !range !49, !noundef !50
  %120 = trunc nuw i8 %119 to i1
  %121 = load i16, ptr %5, align 2, !tbaa !20
  %122 = trunc i16 %121 to i8
  br i1 %120, label %123, label %125

123:                                              ; preds = %.lr.ph
  %124 = invoke noundef zeroext i8 @_ZN21ConfigBitstreamParser11reverseByteEh(i8 noundef zeroext %122)
          to label %125 unwind label %140

125:                                              ; preds = %.lr.ph, %123
  %126 = phi i8 [ %124, %123 ], [ %122, %.lr.ph ]
  %127 = trunc nuw nsw i64 %indvars.iv to i32
  %128 = add i32 %89, %127
  %129 = zext i32 %128 to i64
  %130 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %129) #6
  store i8 %126, ptr %130, align 1, !tbaa !17
  %131 = load i16, ptr %5, align 2, !tbaa !20
  %132 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %129) #6
  invoke void @_ZNSt6vectorIhSaIhEE9push_backERKh(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 1 dereferenceable(1) %132)
          to label %133 unwind label %140

133:                                              ; preds = %125
  %134 = trunc i16 %131 to i8
  %135 = add i8 %.035112, %134
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %136 = getelementptr inbounds i8, ptr %.038111, i64 2
  %137 = load i16, ptr %6, align 2, !tbaa !20
  %138 = zext i16 %137 to i64
  %139 = icmp ult i64 %indvars.iv.next, %138
  br i1 %139, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !51

140:                                              ; preds = %125, %123
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %215

142:                                              ; preds = %64
  %143 = load i16, ptr %24, align 2, !tbaa !5
  %.not63 = icmp eq i16 %143, 0
  br i1 %.not63, label %.thread, label %144

144:                                              ; preds = %142
  invoke void @_ZNSt6vectorIN10IhexParser11data_line_tESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %.thread unwind label %.loopexit.split-lp

145:                                              ; preds = %64
  %146 = icmp ne i32 %82, 0
  %147 = icmp ne i16 %77, 2
  %or.cond = select i1 %146, i1 true, i1 %147
  br i1 %or.cond, label %148, label %156

148:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %149 unwind label %151

149:                                              ; preds = %148
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %12, i1 noundef zeroext true)
          to label %150 unwind label %153

150:                                              ; preds = %149
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br label %.thread

151:                                              ; preds = %148
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %155

153:                                              ; preds = %149
  %154 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %155

155:                                              ; preds = %153, %151
  %.pn61 = phi { ptr, i32 } [ %154, %153 ], [ %152, %151 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br label %215

156:                                              ; preds = %145
  %157 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 9)
  %158 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %157, ptr noundef nonnull @.str.4, ptr noundef nonnull %5) #6
  %159 = load i16, ptr %5, align 2, !tbaa !20
  %160 = zext i16 %159 to i32
  %161 = shl nuw i32 %160, 16
  store i32 %161, ptr %25, align 8, !tbaa !23
  %162 = lshr i32 %160, 8
  %163 = add nuw nsw i32 %81, %160
  %164 = add nuw nsw i32 %163, %162
  %165 = trunc i32 %164 to i8
  br label %.loopexit

166:                                              ; preds = %64
  %167 = icmp ne i32 %82, 0
  %168 = icmp ne i16 %77, 4
  %or.cond5 = select i1 %167, i1 true, i1 %168
  br i1 %or.cond5, label %169, label %.loopexit.loopexit

169:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %170 unwind label %172

170:                                              ; preds = %169
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %14, i1 noundef zeroext true)
          to label %171 unwind label %174

171:                                              ; preds = %170
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  br label %.thread

172:                                              ; preds = %169
  %173 = landingpad { ptr, i32 }
          cleanup
  br label %176

174:                                              ; preds = %170
  %175 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %176

176:                                              ; preds = %174, %172
  %.pn = phi { ptr, i32 } [ %175, %174 ], [ %173, %172 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  br label %215

.loopexit.loopexit:                               ; preds = %166
  %177 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 9)
  %178 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %177, ptr noundef nonnull @.str.2, ptr noundef nonnull %9) #6
  %179 = load i32, ptr %9, align 4, !tbaa !21
  store i32 %179, ptr %25, align 8, !tbaa !23
  %180 = trunc i32 %179 to i8
  %181 = add i8 %86, %180
  %182 = lshr i32 %179, 8
  %183 = trunc i32 %182 to i8
  %184 = add i8 %181, %183
  %185 = lshr i32 %179, 16
  %186 = trunc i32 %185 to i8
  %187 = add i8 %184, %186
  %188 = lshr i32 %179, 24
  %189 = trunc nuw i32 %188 to i8
  %190 = add i8 %187, %189
  br label %.loopexit

191:                                              ; preds = %64
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %16) #6
  %192 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %16, i64 noundef 256, ptr noundef nonnull @.str.6, i32 noundef %80, i32 noundef %78, i32 noundef %82) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull %16, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %193 unwind label %195

193:                                              ; preds = %191
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %17, i1 noundef zeroext true)
          to label %194 unwind label %197

194:                                              ; preds = %193
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %16) #6
  br label %.thread

195:                                              ; preds = %191
  %196 = landingpad { ptr, i32 }
          cleanup
  br label %199

197:                                              ; preds = %193
  %198 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %199

199:                                              ; preds = %197, %195
  %.pn68 = phi { ptr, i32 } [ %198, %197 ], [ %196, %195 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %16) #6
  br label %215

.loopexit:                                        ; preds = %.loopexit.loopexit, %156, %._crit_edge
  %.143 = phi i16 [ %.042, %156 ], [ %114, %._crit_edge ], [ %.042, %.loopexit.loopexit ]
  %.241 = phi i8 [ %.039, %156 ], [ %.140, %._crit_edge ], [ %.039, %.loopexit.loopexit ]
  %.237 = phi i8 [ %165, %156 ], [ %.035.lcssa, %._crit_edge ], [ %190, %.loopexit.loopexit ]
  %200 = load i16, ptr %8, align 2, !tbaa !20
  %201 = zext i16 %200 to i32
  %202 = zext i8 %.237 to i32
  %203 = sub nsw i32 0, %202
  %204 = and i32 %203, 255
  %.not65 = icmp eq i32 %204, %201
  br i1 %.not65, label %214, label %205

205:                                              ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %19) #6
  %206 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %19, i64 noundef 256, ptr noundef nonnull @.str.7, i32 noundef %201, i32 noundef %202, i32 noundef %204) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull %19, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %207 unwind label %209

207:                                              ; preds = %205
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %20, i1 noundef zeroext true)
          to label %208 unwind label %211

208:                                              ; preds = %207
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %19) #6
  br label %.thread

209:                                              ; preds = %205
  %210 = landingpad { ptr, i32 }
          cleanup
  br label %213

211:                                              ; preds = %207
  %212 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %213

213:                                              ; preds = %211, %209
  %.pn66 = phi { ptr, i32 } [ %212, %211 ], [ %210, %209 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %19) #6
  br label %215

.thread:                                          ; preds = %58, %194, %171, %208, %150, %144, %142
  %.1.ph = phi i32 [ 0, %142 ], [ 0, %144 ], [ 1, %150 ], [ 1, %208 ], [ 1, %171 ], [ 1, %194 ], [ 1, %58 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %5) #6
  br label %.loopexit79

214:                                              ; preds = %.loopexit, %49
  %.244 = phi i16 [ %.042, %49 ], [ %.143, %.loopexit ]
  %.3 = phi i8 [ %.039, %49 ], [ %.241, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %5) #6
  br label %31

215:                                              ; preds = %.loopexit80, %.loopexit.split-lp, %213, %199, %176, %155, %140, %63
  %.pn70.pn = phi { ptr, i32 } [ %.pn70, %63 ], [ %.pn68, %199 ], [ %.pn, %176 ], [ %.pn66, %213 ], [ %.pn61, %155 ], [ %141, %140 ], [ %lpad.loopexit, %.loopexit80 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %5) #6
  br label %216

.loopexit79:                                      ; preds = %39, %.thread
  %.2 = phi i32 [ %.1.ph, %.thread ], [ 0, %39 ]
  call void @_ZN10IhexParser11data_line_tD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120) %3) #6
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %3) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  ret i32 %.2

216:                                              ; preds = %215, %47
  %.pn70.pn.pn = phi { ptr, i32 } [ %.pn70.pn, %215 ], [ %48, %47 ]
  call void @_ZN10IhexParser11data_line_tD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120) %3) #6
  br label %217

217:                                              ; preds = %216, %45
  %.pn70.pn.pn.pn = phi { ptr, i32 } [ %.pn70.pn.pn, %216 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %3) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn70.pn.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #0 align 2

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

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

declare void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 #0 align 2

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_sscanf(ptr nocapture noundef readonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

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

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

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

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

declare noundef zeroext i8 @_ZN21ConfigBitstreamParser11reverseByteEh(i8 noundef zeroext) local_unnamed_addr #4

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 2}
!6 = !{!"_ZTSN10IhexParser11data_line_tE", !7, i64 0, !7, i64 2, !10, i64 8}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIhSaIhEE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !9, i64 0}
!17 = !{!8, !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !8, i64 0}
!23 = !{!24, !22, i64 160}
!24 = !{!"_ZTS10IhexParser", !25, i64 0, !22, i64 160, !29, i64 164, !38, i64 168, !42, i64 192}
!25 = !{!"_ZTS21ConfigBitstreamParser", !26, i64 8, !22, i64 40, !22, i64 44, !29, i64 48, !10, i64 56, !26, i64 80, !30, i64 112}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !28, i64 8, !8, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!28 = !{!"long", !8, i64 0}
!29 = !{!"bool", !8, i64 0}
!30 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEE", !31, i64 0}
!31 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !32, i64 0}
!32 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !33, i64 0, !35, i64 8}
!33 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !34, i64 0}
!34 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!35 = !{!"_ZTSSt15_Rb_tree_header", !36, i64 0, !28, i64 32}
!36 = !{!"_ZTSSt18_Rb_tree_node_base", !37, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!37 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!38 = !{!"_ZTSSt6vectorIjSaIjEE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!42 = !{!"_ZTSSt6vectorIN10IhexParser11data_line_tESaIS1_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIN10IhexParser11data_line_tESaIS1_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIN10IhexParser11data_line_tESaIS1_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIN10IhexParser11data_line_tESaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!46 = !{!6, !7, i64 0}
!47 = !{!25, !22, i64 40}
!48 = !{!24, !29, i64 164}
!49 = !{i8 0, i8 2}
!50 = !{}
!51 = distinct !{!51, !19}


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