; LLVM IR from trabucayre/openFPGALoader :: src/lattice.ll (ZN7Lattice25program_intFlash_MachXO3DER9JedParser)

; 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::vector.86" = type { %"struct.std::_Vector_base.87" }
%"struct.std::_Vector_base.87" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }
%class.Lattice = type { %class.Device.base, %class.SPIInterface, i32, i32 }
%class.Device.base = type <{ ptr, ptr, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i8, i8, i8 }>
%class.SPIInterface = type { ptr, i8, i32, i8, i8, i8, %"class.std::__cxx11::basic_string" }
%class.Device = type <{ ptr, ptr, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i8, i8, i8, i8 }>

@.str.580 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.582 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.584 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.586 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.614 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.616 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.622 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.627 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.631 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.632 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.633 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.639 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.741 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.742 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.743 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.744 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.745 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.746 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.747 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.748 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.749 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.750 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.751 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.752 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.753 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.754 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.755 = external hidden unnamed_addr constant [29 x i8], align 1
@__const._ZN7Lattice25program_intFlash_MachXO3DER9JedParser.tx = external hidden unnamed_addr constant [2 x i8], align 1
@__const._ZN7Lattice25program_intFlash_MachXO3DER9JedParser.tx.756 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

declare i32 @printf(ptr noundef, ...) #4

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

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

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

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

declare void @_ZN4Jtag9set_stateENS_10tapState_tEh(ptr noundef nonnull align 8 dereferenceable(193), i32 noundef, i8 noundef zeroext) #4

declare void @_ZN4Jtag9toggleClkEi(ptr noundef nonnull align 8 dereferenceable(193), i32 noundef) #4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7Lattice25program_intFlash_MachXO3DER9JedParser(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull align 8 dereferenceable(656) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector.86", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator.0", align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator.0", align 1
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator.0", align 1
  %20 = alloca i64, align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::vector.86", align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator.0", align 1
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::allocator.0", align 1
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::allocator.0", align 1
  %30 = alloca [2 x i8], align 1
  %31 = alloca [3 x i8], align 1
  %32 = alloca %"class.std::vector.86", align 8
  %33 = alloca %"class.std::vector.86", align 8
  %34 = alloca [2 x i8], align 1
  %35 = alloca [2 x i8], align 1
  %36 = alloca %"class.std::__cxx11::basic_string", align 8
  %37 = alloca %"class.std::allocator.0", align 1
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca %"class.std::allocator.0", align 1
  %40 = alloca %"class.std::__cxx11::basic_string", align 8
  %41 = alloca %"class.std::allocator.0", align 1
  %42 = alloca %"class.std::__cxx11::basic_string", align 8
  %43 = alloca %"class.std::allocator.0", align 1
  %44 = alloca %"class.std::__cxx11::basic_string", align 8
  %45 = alloca %"class.std::allocator.0", align 1
  %46 = alloca %"class.std::__cxx11::basic_string", align 8
  %47 = alloca %"class.std::allocator.0", align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %48 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %49 = invoke noundef zeroext i1 @_ZN7Lattice5wr_rdEhPhiS0_ib(ptr noundef nonnull align 8 dereferenceable(152) %48, i8 noundef zeroext -1, ptr noundef null, i32 noundef 0, ptr noundef null, i32 noundef 0, i1 noundef zeroext false)
          to label %50 unwind label %61

50:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.622, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %51 unwind label %65

51:                                               ; preds = %50
  invoke void @_Z9printInfoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %13, i1 noundef zeroext false)
          to label %52 unwind label %69

52:                                               ; preds = %51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  %53 = invoke noundef zeroext i1 @_ZN7Lattice9EnableISCEh(ptr noundef nonnull align 8 dereferenceable(152) %48, i8 noundef zeroext 8)
          to label %54 unwind label %61

54:                                               ; preds = %52
  br i1 %53, label %83, label %55

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str.616, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %56 unwind label %74

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

57:                                               ; preds = %56
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  %58 = invoke noundef i64 @_ZN7Lattice13readStatusRegEv(ptr noundef nonnull align 8 dereferenceable(152) %48)
          to label %59 unwind label %61

59:                                               ; preds = %57
  invoke void @_ZN7Lattice14displayReadRegEm(ptr noundef nonnull align 8 dereferenceable(152) %48, i64 noundef %58)
          to label %60 unwind label %61

60:                                               ; preds = %59
  store i1 false, ptr %3, align 1
  store i32 1, ptr %17, align 4
  br label %589

61:                                               ; preds = %552, %548, %510, %505, %502, %95, %59, %57, %52, %2
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %11, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %12, align 4
  br label %591

65:                                               ; preds = %50
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %11, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %12, align 4
  br label %73

69:                                               ; preds = %51
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %11, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %73

73:                                               ; preds = %69, %65
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  br label %591

74:                                               ; preds = %55
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %11, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %12, align 4
  br label %82

78:                                               ; preds = %56
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %11, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %82

82:                                               ; preds = %78, %74
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %591

83:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.614, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %84 unwind label %86

84:                                               ; preds = %83
  invoke void @_Z12printSuccessRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %18, i1 noundef zeroext true)
          to label %85 unwind label %90

85:                                               ; preds = %84
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %95

86:                                               ; preds = %83
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %11, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %12, align 4
  br label %94

90:                                               ; preds = %84
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %11, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %94

94:                                               ; preds = %90, %86
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %591

95:                                               ; preds = %85
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = invoke noundef i32 @_ZN9JedParser14get_fuse_countEv(ptr noundef nonnull align 8 dereferenceable(656) %96)
          to label %98 unwind label %61

98:                                               ; preds = %95
  %99 = sdiv i32 %97, 128
  store i32 %99, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store i64 0, ptr %20, align 8, !tbaa !11
  br label %100

100:                                              ; preds = %468, %98
  %101 = load i64, ptr %20, align 8, !tbaa !11
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = invoke noundef i64 @_ZN9JedParser10nb_sectionEv(ptr noundef nonnull align 8 dereferenceable(656) %102)
          to label %104 unwind label %107

104:                                              ; preds = %100
  %105 = icmp ult i64 %101, %103
  br i1 %105, label %111, label %106

106:                                              ; preds = %104
  store i32 2, ptr %17, align 4
  br label %474

107:                                              ; preds = %100
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %11, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %12, align 4
  br label %476

111:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = load i64, ptr %20, align 8, !tbaa !11
  %114 = trunc i64 %113 to i32
  invoke void @_ZN9JedParser16data_for_sectionB5cxx11Ei(ptr dead_on_unwind writable sret(%"class.std::vector.86") align 8 %22, ptr noundef nonnull align 8 dereferenceable(656) %112, i32 noundef %114)
          to label %115 unwind label %120

115:                                              ; preds = %111
  %116 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEaSEOS7_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  %117 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %118 = icmp ult i64 %117, 1
  br i1 %118, label %119, label %124

119:                                              ; preds = %115
  store i32 4, ptr %17, align 4
  br label %465

120:                                              ; preds = %111
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %11, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  br label %473

124:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #6
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = load i64, ptr %20, align 8, !tbaa !11
  %127 = trunc i64 %126 to i32
  invoke void @_ZN9JedParser14noteForSectionB5cxx11Ei(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull align 8 dereferenceable(656) %125, i32 noundef %127)
          to label %128 unwind label %144

128:                                              ; preds = %124
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = load i64, ptr %20, align 8, !tbaa !11
  %131 = trunc i64 %130 to i32
  %132 = invoke noundef i64 @_ZN9JedParser18offset_for_sectionEi(ptr noundef nonnull align 8 dereferenceable(656) %129, i32 noundef %131)
          to label %133 unwind label %148

133:                                              ; preds = %128
  %134 = udiv i64 %132, 128
  %135 = trunc i64 %134 to i32
  store i32 %135, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %136

136:                                              ; preds = %140, %133
  %137 = load i32, ptr %9, align 4, !tbaa !9
  %138 = load i32, ptr %10, align 4, !tbaa !9
  %139 = icmp sge i32 %137, %138
  br i1 %139, label %140, label %152

140:                                              ; preds = %136
  %141 = load i32, ptr %10, align 4, !tbaa !9
  %142 = load i32, ptr %9, align 4, !tbaa !9
  %143 = sub nsw i32 %142, %141
  store i32 %143, ptr %9, align 4, !tbaa !9
  br label %136, !llvm.loop !13

144:                                              ; preds = %124
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %11, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %12, align 4
  br label %472

148:                                              ; preds = %450, %435, %432, %429, %330, %318, %311, %304, %296, %289, %275, %261, %243, %224, %220, %213, %206, %195, %192, %187, %178, %169, %161, %158, %128
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %11, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %12, align 4
  br label %471

152:                                              ; preds = %136
  %153 = load i32, ptr %9, align 4, !tbaa !9
  %154 = icmp sge i32 %153, 12542
  br i1 %154, label %155, label %158

155:                                              ; preds = %152
  %156 = load i32, ptr %9, align 4, !tbaa !9
  %157 = sub nsw i32 %156, 12542
  store i32 %157, ptr %9, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %155, %152
  %159 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef @.str.631)
          to label %160 unwind label %148

160:                                              ; preds = %158
  br i1 %159, label %161, label %192

161:                                              ; preds = %160
  %162 = load i32, ptr %9, align 4, !tbaa !9
  %163 = load i32, ptr %9, align 4, !tbaa !9
  %164 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.741, i32 noundef %162, i32 noundef %163)
          to label %165 unwind label %148

165:                                              ; preds = %161
  store i32 0, ptr %6, align 4, !tbaa !9
  %166 = getelementptr inbounds %class.Lattice, ptr %48, i32 0, i32 3
  %167 = load i32, ptr %166, align 4, !tbaa !15
  %168 = icmp eq i32 %167, 1
  br i1 %168, label %169, label %174

169:                                              ; preds = %165
  %170 = load i32, ptr %9, align 4, !tbaa !9
  %171 = or i32 0, %170
  store i32 %171, ptr %7, align 4, !tbaa !9
  %172 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.742)
          to label %173 unwind label %148

173:                                              ; preds = %169
  br label %184

174:                                              ; preds = %165
  %175 = getelementptr inbounds %class.Lattice, ptr %48, i32 0, i32 3
  %176 = load i32, ptr %175, align 4, !tbaa !15
  %177 = icmp eq i32 %176, 2
  br i1 %177, label %178, label %183

178:                                              ; preds = %174
  %179 = load i32, ptr %9, align 4, !tbaa !9
  %180 = or i32 65536, %179
  store i32 %180, ptr %7, align 4, !tbaa !9
  %181 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.743)
          to label %182 unwind label %148

182:                                              ; preds = %178
  br label %183

183:                                              ; preds = %182, %174
  br label %184

184:                                              ; preds = %183, %173
  %185 = load i32, ptr %9, align 4, !tbaa !9
  %186 = icmp eq i32 %185, 0
  br i1 %186, label %187, label %191

187:                                              ; preds = %184
  %188 = load i32, ptr %9, align 4, !tbaa !9
  %189 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.744, i32 noundef %188)
          to label %190 unwind label %148

190:                                              ; preds = %187
  br label %191

191:                                              ; preds = %190, %184
  br label %325

192:                                              ; preds = %160
  %193 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef @.str.632)
          to label %194 unwind label %148

194:                                              ; preds = %192
  br i1 %193, label %195, label %220

195:                                              ; preds = %194
  %196 = load i32, ptr %9, align 4, !tbaa !9
  %197 = load i32, ptr %9, align 4, !tbaa !9
  %198 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.745, i32 noundef %196, i32 noundef %197)
          to label %199 unwind label %148

199:                                              ; preds = %195
  %200 = load i32, ptr %9, align 4, !tbaa !9
  %201 = icmp eq i32 %200, 0
  br i1 %201, label %202, label %218

202:                                              ; preds = %199
  %203 = getelementptr inbounds %class.Lattice, ptr %48, i32 0, i32 3
  %204 = load i32, ptr %203, align 4, !tbaa !15
  %205 = icmp eq i32 %204, 1
  br i1 %205, label %206, label %209

206:                                              ; preds = %202
  store i32 1024, ptr %6, align 4, !tbaa !9
  store i32 1024, ptr %7, align 4, !tbaa !9
  %207 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.746)
          to label %208 unwind label %148

208:                                              ; preds = %206
  br label %217

209:                                              ; preds = %202
  %210 = getelementptr inbounds %class.Lattice, ptr %48, i32 0, i32 3
  %211 = load i32, ptr %210, align 4, !tbaa !15
  %212 = icmp eq i32 %211, 2
  br i1 %212, label %213, label %216

213:                                              ; preds = %209
  store i32 2048, ptr %6, align 4, !tbaa !9
  store i32 2048, ptr %7, align 4, !tbaa !9
  %214 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.747)
          to label %215 unwind label %148

215:                                              ; preds = %213
  br label %216

216:                                              ; preds = %215, %209
  br label %217

217:                                              ; preds = %216, %208
  br label %219

218:                                              ; preds = %199
  store i32 4, ptr %17, align 4
  br label %464

219:                                              ; preds = %217
  br label %324

220:                                              ; preds = %194
  %221 = invoke noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmPKc(ptr noundef nonnull align 8 dereferenceable(32) %23, i64 noundef 0, i64 noundef 16, ptr noundef @.str.748)
          to label %222 unwind label %148

222:                                              ; preds = %220
  %223 = icmp eq i32 %221, 0
  br i1 %223, label %224, label %296

224:                                              ; preds = %222
  %225 = load i32, ptr %9, align 4, !tbaa !9
  %226 = load i32, ptr %9, align 4, !tbaa !9
  %227 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.749, i32 noundef %225, i32 noundef %226)
          to label %228 unwind label %148

228:                                              ; preds = %224
  %229 = getelementptr inbounds %class.Lattice, ptr %48, i32 0, i32 3
  %230 = load i32, ptr %229, align 4, !tbaa !15
  %231 = icmp eq i32 %230, 1
  br i1 %231, label %236, label %232

232:                                              ; preds = %228
  %233 = getelementptr inbounds %class.Lattice, ptr %48, i32 0, i32 3
  %234 = load i32, ptr %233, align 4, !tbaa !15
  %235 = icmp eq i32 %234, 3
  br i1 %235, label %236, label %246

236:                                              ; preds = %232, %228
  %237 = load i32, ptr %9, align 4, !tbaa !9
  %238 = icmp eq i32 %237, 0
  br i1 %238, label %239, label %240

239:                                              ; preds = %236
  store i32 1024, ptr %6, align 4, !tbaa !9
  store i32 1024, ptr %7, align 4, !tbaa !9
  br label %243

240:                                              ; preds = %236
  store i32 0, ptr %6, align 4, !tbaa !9
  %241 = load i32, ptr %9, align 4, !tbaa !9
  %242 = or i32 16384, %241
  store i32 %242, ptr %7, align 4, !tbaa !9
  br label %243

243:                                              ; preds = %240, %239
  %244 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.580)
          to label %245 unwind label %148

245:                                              ; preds = %243
  br label %295

246:                                              ; preds = %232
  %247 = getelementptr inbounds %class.Lattice, ptr %48, i32 0, i32 3
  %248 = load i32, ptr %247, align 4, !tbaa !15
  %249 = icmp eq i32 %248, 2
  br i1 %249, label %254, label %250

250:                                              ; preds = %246
  %251 = getelementptr inbounds %class.Lattice, ptr %48, i32 0, i32 3
  %252 = load i32, ptr %251, align 4, !tbaa !15
  %253 = icmp eq i32 %252, 4
  br i1 %253, label %254, label %264

254:                                              ; preds = %250, %246
  %255 = load i32, ptr %9, align 4, !tbaa !9
  %256 = icmp eq i32 %255, 0
  br i1 %256, label %257, label %258

257:                                              ; preds = %254
  store i32 2048, ptr %6, align 4, !tbaa !9
  store i32 2048, ptr %7, align 4, !tbaa !9
  br label %261

258:                                              ; preds = %254
  store i32 0, ptr %6, align 4, !tbaa !9
  %259 = load i32, ptr %9, align 4, !tbaa !9
  %260 = or i32 81920, %259
  store i32 %260, ptr %7, align 4, !tbaa !9
  br label %261

261:                                              ; preds = %258, %257
  %262 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.582)
          to label %263 unwind label %148

263:                                              ; preds = %261
  br label %294

264:                                              ; preds = %250
  %265 = getelementptr inbounds %class.Lattice, ptr %48, i32 0, i32 3
  %266 = load i32, ptr %265, align 4, !tbaa !15
  %267 = icmp eq i32 %266, 5
  br i1 %267, label %268, label %278

268:                                              ; preds = %264
  %269 = load i32, ptr %9, align 4, !tbaa !9
  %270 = icmp eq i32 %269, 0
  br i1 %270, label %271, label %272

271:                                              ; preds = %268
  store i32 4096, ptr %6, align 4, !tbaa !9
  store i32 4096, ptr %7, align 4, !tbaa !9
  br label %275

272:                                              ; preds = %268
  store i32 0, ptr %6, align 4, !tbaa !9
  %273 = load i32, ptr %9, align 4, !tbaa !9
  %274 = or i32 131072, %273
  store i32 %274, ptr %7, align 4, !tbaa !9
  br label %275

275:                                              ; preds = %272, %271
  %276 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.584)
          to label %277 unwind label %148

277:                                              ; preds = %275
  br label %293

278:                                              ; preds = %264
  %279 = getelementptr inbounds %class.Lattice, ptr %48, i32 0, i32 3
  %280 = load i32, ptr %279, align 4, !tbaa !15
  %281 = icmp eq i32 %280, 6
  br i1 %281, label %282, label %292

282:                                              ; preds = %278
  %283 = load i32, ptr %9, align 4, !tbaa !9
  %284 = icmp eq i32 %283, 0
  br i1 %284, label %285, label %286

285:                                              ; preds = %282
  store i32 8192, ptr %6, align 4, !tbaa !9
  store i32 8192, ptr %7, align 4, !tbaa !9
  br label %289

286:                                              ; preds = %282
  store i32 0, ptr %6, align 4, !tbaa !9
  %287 = load i32, ptr %9, align 4, !tbaa !9
  %288 = or i32 147456, %287
  store i32 %288, ptr %7, align 4, !tbaa !9
  br label %289

289:                                              ; preds = %286, %285
  %290 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.586)
          to label %291 unwind label %148

291:                                              ; preds = %289
  br label %292

292:                                              ; preds = %291, %278
  br label %293

293:                                              ; preds = %292, %277
  br label %294

294:                                              ; preds = %293, %263
  br label %295

295:                                              ; preds = %294, %245
  br label %323

296:                                              ; preds = %222
  %297 = load i32, ptr %9, align 4, !tbaa !9
  %298 = load i32, ptr %9, align 4, !tbaa !9
  %299 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.750, i32 noundef %297, i32 noundef %298)
          to label %300 unwind label %148

300:                                              ; preds = %296
  %301 = getelementptr inbounds %class.Lattice, ptr %48, i32 0, i32 3
  %302 = load i32, ptr %301, align 4, !tbaa !15
  %303 = icmp eq i32 %302, 1
  br i1 %303, label %304, label %307

304:                                              ; preds = %300
  store i32 256, ptr %6, align 4, !tbaa !9
  store i32 256, ptr %7, align 4, !tbaa !9
  %305 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.751)
          to label %306 unwind label %148

306:                                              ; preds = %304
  br label %315

307:                                              ; preds = %300
  %308 = getelementptr inbounds %class.Lattice, ptr %48, i32 0, i32 3
  %309 = load i32, ptr %308, align 4, !tbaa !15
  %310 = icmp eq i32 %309, 2
  br i1 %310, label %311, label %314

311:                                              ; preds = %307
  store i32 512, ptr %6, align 4, !tbaa !9
  store i32 512, ptr %7, align 4, !tbaa !9
  %312 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.752)
          to label %313 unwind label %148

313:                                              ; preds = %311
  br label %314

314:                                              ; preds = %313, %307
  br label %315

315:                                              ; preds = %314, %306
  %316 = load i32, ptr %9, align 4, !tbaa !9
  %317 = icmp ne i32 %316, 0
  br i1 %317, label %318, label %322

318:                                              ; preds = %315
  %319 = load i32, ptr %9, align 4, !tbaa !9
  %320 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.753, i32 noundef %319)
          to label %321 unwind label %148

321:                                              ; preds = %318
  br label %322

322:                                              ; preds = %321, %315
  br label %323

323:                                              ; preds = %322, %295
  br label %324

324:                                              ; preds = %323, %219
  br label %325

325:                                              ; preds = %324, %191
  %326 = load i32, ptr %6, align 4, !tbaa !9
  %327 = icmp ugt i32 %326, 0
  br i1 %327, label %328, label %369

328:                                              ; preds = %325
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef @.str.633, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %329 unwind label %339

329:                                              ; preds = %328
  invoke void @_Z9printInfoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %24, i1 noundef zeroext false)
          to label %330 unwind label %343

330:                                              ; preds = %329
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  %331 = load i32, ptr %6, align 4, !tbaa !9
  %332 = invoke noundef zeroext i1 @_ZN7Lattice10flashEraseEj(ptr noundef nonnull align 8 dereferenceable(152) %48, i32 noundef %331)
          to label %333 unwind label %148

333:                                              ; preds = %330
  %334 = zext i1 %332 to i32
  %335 = icmp eq i32 %334, 0
  br i1 %335, label %336, label %357

336:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef @.str.616, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %337 unwind label %348

337:                                              ; preds = %336
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %26, i1 noundef zeroext true)
          to label %338 unwind label %352

338:                                              ; preds = %337
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  store i1 false, ptr %3, align 1
  store i32 1, ptr %17, align 4
  br label %464

339:                                              ; preds = %328
  %340 = landingpad { ptr, i32 }
          cleanup
  %341 = extractvalue { ptr, i32 } %340, 0
  store ptr %341, ptr %11, align 8
  %342 = extractvalue { ptr, i32 } %340, 1
  store i32 %342, ptr %12, align 4
  br label %347

343:                                              ; preds = %329
  %344 = landingpad { ptr, i32 }
          cleanup
  %345 = extractvalue { ptr, i32 } %344, 0
  store ptr %345, ptr %11, align 8
  %346 = extractvalue { ptr, i32 } %344, 1
  store i32 %346, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  br label %347

347:                                              ; preds = %343, %339
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  br label %471

348:                                              ; preds = %336
  %349 = landingpad { ptr, i32 }
          cleanup
  %350 = extractvalue { ptr, i32 } %349, 0
  store ptr %350, ptr %11, align 8
  %351 = extractvalue { ptr, i32 } %349, 1
  store i32 %351, ptr %12, align 4
  br label %356

352:                                              ; preds = %337
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %11, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br label %356

356:                                              ; preds = %352, %348
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  br label %471

357:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef @.str.614, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %358 unwind label %360

358:                                              ; preds = %357
  invoke void @_Z12printSuccessRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %28, i1 noundef zeroext true)
          to label %359 unwind label %364

359:                                              ; preds = %358
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  br label %369

360:                                              ; preds = %357
  %361 = landingpad { ptr, i32 }
          cleanup
  %362 = extractvalue { ptr, i32 } %361, 0
  store ptr %362, ptr %11, align 8
  %363 = extractvalue { ptr, i32 } %361, 1
  store i32 %363, ptr %12, align 4
  br label %368

364:                                              ; preds = %358
  %365 = landingpad { ptr, i32 }
          cleanup
  %366 = extractvalue { ptr, i32 } %365, 0
  store ptr %366, ptr %11, align 8
  %367 = extractvalue { ptr, i32 } %365, 1
  store i32 %367, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  br label %368

368:                                              ; preds = %364, %360
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  br label %471

369:                                              ; preds = %359, %325
  %370 = load i32, ptr %9, align 4, !tbaa !9
  %371 = icmp eq i32 %370, 0
  br i1 %371, label %372, label %397

372:                                              ; preds = %369
  call void @llvm.lifetime.start.p0(i64 2, ptr %30) #6
  %373 = load i32, ptr %7, align 4, !tbaa !9
  %374 = lshr i32 %373, 8
  %375 = and i32 %374, 255
  %376 = trunc i32 %375 to i8
  store i8 %376, ptr %30, align 1, !tbaa !25
  %377 = getelementptr inbounds i8, ptr %30, i64 1
  %378 = load i32, ptr %7, align 4, !tbaa !9
  %379 = lshr i32 %378, 16
  %380 = and i32 %379, 255
  %381 = trunc i32 %380 to i8
  store i8 %381, ptr %377, align 1, !tbaa !25
  %382 = getelementptr inbounds [2 x i8], ptr %30, i64 0, i64 0
  %383 = load i8, ptr %382, align 1, !tbaa !25
  %384 = zext i8 %383 to i32
  %385 = getelementptr inbounds [2 x i8], ptr %30, i64 0, i64 1
  %386 = load i8, ptr %385, align 1, !tbaa !25
  %387 = zext i8 %386 to i32
  %388 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.754, i32 noundef %384, i32 noundef %387)
          to label %389 unwind label %393

389:                                              ; preds = %372
  %390 = getelementptr inbounds [2 x i8], ptr %30, i64 0, i64 0
  %391 = invoke noundef zeroext i1 @_ZN7Lattice5wr_rdEhPhiS0_ib(ptr noundef nonnull align 8 dereferenceable(152) %48, i8 noundef zeroext 70, ptr noundef %390, i32 noundef 2, ptr noundef null, i32 noundef 0, i1 noundef zeroext false)
          to label %392 unwind label %393

392:                                              ; preds = %389
  call void @llvm.lifetime.end.p0(i64 2, ptr %30) #6
  br label %429

393:                                              ; preds = %389, %372
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %11, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %30) #6
  br label %471

397:                                              ; preds = %369
  call void @llvm.lifetime.start.p0(i64 3, ptr %31) #6
  %398 = load i32, ptr %7, align 4, !tbaa !9
  %399 = and i32 %398, 255
  %400 = trunc i32 %399 to i8
  store i8 %400, ptr %31, align 1, !tbaa !25
  %401 = getelementptr inbounds i8, ptr %31, i64 1
  %402 = load i32, ptr %7, align 4, !tbaa !9
  %403 = lshr i32 %402, 8
  %404 = and i32 %403, 255
  %405 = trunc i32 %404 to i8
  store i8 %405, ptr %401, align 1, !tbaa !25
  %406 = getelementptr inbounds i8, ptr %31, i64 2
  %407 = load i32, ptr %7, align 4, !tbaa !9
  %408 = lshr i32 %407, 16
  %409 = and i32 %408, 3
  %410 = trunc i32 %409 to i8
  store i8 %410, ptr %406, align 1, !tbaa !25
  %411 = getelementptr inbounds [3 x i8], ptr %31, i64 0, i64 0
  %412 = load i8, ptr %411, align 1, !tbaa !25
  %413 = zext i8 %412 to i32
  %414 = getelementptr inbounds [3 x i8], ptr %31, i64 0, i64 1
  %415 = load i8, ptr %414, align 1, !tbaa !25
  %416 = zext i8 %415 to i32
  %417 = getelementptr inbounds [3 x i8], ptr %31, i64 0, i64 2
  %418 = load i8, ptr %417, align 1, !tbaa !25
  %419 = zext i8 %418 to i32
  %420 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.755, i32 noundef %413, i32 noundef %416, i32 noundef %419)
          to label %421 unwind label %425

421:                                              ; preds = %397
  %422 = getelementptr inbounds [3 x i8], ptr %31, i64 0, i64 0
  %423 = invoke noundef zeroext i1 @_ZN7Lattice5wr_rdEhPhiS0_ib(ptr noundef nonnull align 8 dereferenceable(152) %48, i8 noundef zeroext -76, ptr noundef %422, i32 noundef 3, ptr noundef null, i32 noundef 0, i1 noundef zeroext false)
          to label %424 unwind label %425

424:                                              ; preds = %421
  call void @llvm.lifetime.end.p0(i64 3, ptr %31) #6
  br label %429

425:                                              ; preds = %421, %397
  %426 = landingpad { ptr, i32 }
          cleanup
  %427 = extractvalue { ptr, i32 } %426, 0
  store ptr %427, ptr %11, align 8
  %428 = extractvalue { ptr, i32 } %426, 1
  store i32 %428, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 3, ptr %31) #6
  br label %471

429:                                              ; preds = %424, %392
  %430 = getelementptr inbounds %class.Device, ptr %48, i32 0, i32 1
  %431 = load ptr, ptr %430, align 8, !tbaa !26
  invoke void @_ZN4Jtag9set_stateENS_10tapState_tEh(ptr noundef nonnull align 8 dereferenceable(193) %431, i32 noundef 1, i8 noundef zeroext 1)
          to label %432 unwind label %148

432:                                              ; preds = %429
  %433 = getelementptr inbounds %class.Device, ptr %48, i32 0, i32 1
  %434 = load ptr, ptr %433, align 8, !tbaa !26
  invoke void @_ZN4Jtag9toggleClkEi(ptr noundef nonnull align 8 dereferenceable(193) %434, i32 noundef 1000)
          to label %435 unwind label %148

435:                                              ; preds = %432
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %436 unwind label %148

436:                                              ; preds = %435
  %437 = invoke noundef zeroext i1 @_ZN7Lattice9flashProgEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS5_SaIS5_EE(ptr noundef nonnull align 8 dereferenceable(152) %48, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef %32)
          to label %438 unwind label %442

438:                                              ; preds = %436
  %439 = zext i1 %437 to i32
  %440 = icmp eq i32 0, %439
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  br i1 %440, label %441, label %446

441:                                              ; preds = %438
  store i1 false, ptr %3, align 1
  store i32 1, ptr %17, align 4
  br label %464

442:                                              ; preds = %436
  %443 = landingpad { ptr, i32 }
          cleanup
  %444 = extractvalue { ptr, i32 } %443, 0
  store ptr %444, ptr %11, align 8
  %445 = extractvalue { ptr, i32 } %443, 1
  store i32 %445, ptr %12, align 4
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  br label %471

446:                                              ; preds = %438
  %447 = getelementptr inbounds %class.Device, ptr %48, i32 0, i32 5
  %448 = load i8, ptr %447, align 4, !tbaa !27, !range !28, !noundef !29
  %449 = trunc i8 %448 to i1
  br i1 %449, label %450, label %463

450:                                              ; preds = %446
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %451 unwind label %148

451:                                              ; preds = %450
  %452 = load i32, ptr %7, align 4, !tbaa !9
  %453 = invoke noundef zeroext i1 @_ZN7Lattice6VerifyESt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEbj(ptr noundef nonnull align 8 dereferenceable(152) %48, ptr noundef %33, i1 noundef zeroext false, i32 noundef %452)
          to label %454 unwind label %458

454:                                              ; preds = %451
  %455 = zext i1 %453 to i32
  %456 = icmp eq i32 %455, 0
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  br i1 %456, label %457, label %462

457:                                              ; preds = %454
  store i1 false, ptr %3, align 1
  store i32 1, ptr %17, align 4
  br label %464

458:                                              ; preds = %451
  %459 = landingpad { ptr, i32 }
          cleanup
  %460 = extractvalue { ptr, i32 } %459, 0
  store ptr %460, ptr %11, align 8
  %461 = extractvalue { ptr, i32 } %459, 1
  store i32 %461, ptr %12, align 4
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  br label %471

462:                                              ; preds = %454
  br label %463

463:                                              ; preds = %462, %446
  store i32 0, ptr %17, align 4
  br label %464

464:                                              ; preds = %463, %457, %441, %338, %218
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  br label %465

465:                                              ; preds = %464, %119
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #6
  %466 = load i32, ptr %17, align 4
  switch i32 %466, label %474 [
    i32 0, label %467
    i32 4, label %468
  ]

467:                                              ; preds = %465
  br label %468

468:                                              ; preds = %467, %465
  %469 = load i64, ptr %20, align 8, !tbaa !11
  %470 = add i64 %469, 1
  store i64 %470, ptr %20, align 8, !tbaa !11
  br label %100, !llvm.loop !30

471:                                              ; preds = %458, %442, %425, %393, %368, %356, %347, %148
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #6
  br label %472

472:                                              ; preds = %471, %144
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #6
  br label %473

473:                                              ; preds = %472, %120
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #6
  br label %476

474:                                              ; preds = %465, %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  %475 = load i32, ptr %17, align 4
  switch i32 %475, label %589 [
    i32 2, label %477
  ]

476:                                              ; preds = %473, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %591

477:                                              ; preds = %474
  %478 = getelementptr inbounds %class.Lattice, ptr %48, i32 0, i32 3
  %479 = load i32, ptr %478, align 4, !tbaa !15
  %480 = icmp eq i32 %479, 1
  br i1 %480, label %481, label %489

481:                                              ; preds = %477
  call void @llvm.lifetime.start.p0(i64 2, ptr %34) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %34, ptr align 1 @__const._ZN7Lattice25program_intFlash_MachXO3DER9JedParser.tx, i64 2, i1 false)
  %482 = getelementptr inbounds [2 x i8], ptr %34, i64 0, i64 0
  %483 = invoke noundef zeroext i1 @_ZN7Lattice5wr_rdEhPhiS0_ib(ptr noundef nonnull align 8 dereferenceable(152) %48, i8 noundef zeroext 70, ptr noundef %482, i32 noundef 2, ptr noundef null, i32 noundef 0, i1 noundef zeroext false)
          to label %484 unwind label %485

484:                                              ; preds = %481
  call void @llvm.lifetime.end.p0(i64 2, ptr %34) #6
  br label %502

485:                                              ; preds = %481
  %486 = landingpad { ptr, i32 }
          cleanup
  %487 = extractvalue { ptr, i32 } %486, 0
  store ptr %487, ptr %11, align 8
  %488 = extractvalue { ptr, i32 } %486, 1
  store i32 %488, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %34) #6
  br label %591

489:                                              ; preds = %477
  %490 = getelementptr inbounds %class.Lattice, ptr %48, i32 0, i32 3
  %491 = load i32, ptr %490, align 4, !tbaa !15
  %492 = icmp eq i32 %491, 2
  br i1 %492, label %493, label %501

493:                                              ; preds = %489
  call void @llvm.lifetime.start.p0(i64 2, ptr %35) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %35, ptr align 1 @__const._ZN7Lattice25program_intFlash_MachXO3DER9JedParser.tx.756, i64 2, i1 false)
  %494 = getelementptr inbounds [2 x i8], ptr %35, i64 0, i64 0
  %495 = invoke noundef zeroext i1 @_ZN7Lattice5wr_rdEhPhiS0_ib(ptr noundef nonnull align 8 dereferenceable(152) %48, i8 noundef zeroext 70, ptr noundef %494, i32 noundef 2, ptr noundef null, i32 noundef 0, i1 noundef zeroext false)
          to label %496 unwind label %497

496:                                              ; preds = %493
  call void @llvm.lifetime.end.p0(i64 2, ptr %35) #6
  br label %501

497:                                              ; preds = %493
  %498 = landingpad { ptr, i32 }
          cleanup
  %499 = extractvalue { ptr, i32 } %498, 0
  store ptr %499, ptr %11, align 8
  %500 = extractvalue { ptr, i32 } %498, 1
  store i32 %500, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %35) #6
  br label %591

501:                                              ; preds = %496, %489
  br label %502

502:                                              ; preds = %501, %484
  %503 = getelementptr inbounds %class.Device, ptr %48, i32 0, i32 1
  %504 = load ptr, ptr %503, align 8, !tbaa !26
  invoke void @_ZN4Jtag9set_stateENS_10tapState_tEh(ptr noundef nonnull align 8 dereferenceable(193) %504, i32 noundef 1, i8 noundef zeroext 1)
          to label %505 unwind label %61

505:                                              ; preds = %502
  %506 = getelementptr inbounds %class.Device, ptr %48, i32 0, i32 1
  %507 = load ptr, ptr %506, align 8, !tbaa !26
  invoke void @_ZN4Jtag9toggleClkEi(ptr noundef nonnull align 8 dereferenceable(193) %507, i32 noundef 1000)
          to label %508 unwind label %61

508:                                              ; preds = %505
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef @.str.639, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %509 unwind label %518

509:                                              ; preds = %508
  invoke void @_Z9printInfoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %36, i1 noundef zeroext false)
          to label %510 unwind label %522

510:                                              ; preds = %509
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #6
  %511 = invoke noundef zeroext i1 @_ZN7Lattice16writeProgramDoneEv(ptr noundef nonnull align 8 dereferenceable(152) %48)
          to label %512 unwind label %61

512:                                              ; preds = %510
  %513 = zext i1 %511 to i32
  %514 = icmp eq i32 %513, 0
  br i1 %514, label %515, label %536

515:                                              ; preds = %512
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef @.str.616, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %516 unwind label %527

516:                                              ; preds = %515
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %38, i1 noundef zeroext true)
          to label %517 unwind label %531

517:                                              ; preds = %516
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #6
  store i1 false, ptr %3, align 1
  store i32 1, ptr %17, align 4
  br label %589

518:                                              ; preds = %508
  %519 = landingpad { ptr, i32 }
          cleanup
  %520 = extractvalue { ptr, i32 } %519, 0
  store ptr %520, ptr %11, align 8
  %521 = extractvalue { ptr, i32 } %519, 1
  store i32 %521, ptr %12, align 4
  br label %526

522:                                              ; preds = %509
  %523 = landingpad { ptr, i32 }
          cleanup
  %524 = extractvalue { ptr, i32 } %523, 0
  store ptr %524, ptr %11, align 8
  %525 = extractvalue { ptr, i32 } %523, 1
  store i32 %525, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #6
  br label %526

526:                                              ; preds = %522, %518
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #6
  br label %591

527:                                              ; preds = %515
  %528 = landingpad { ptr, i32 }
          cleanup
  %529 = extractvalue { ptr, i32 } %528, 0
  store ptr %529, ptr %11, align 8
  %530 = extractvalue { ptr, i32 } %528, 1
  store i32 %530, ptr %12, align 4
  br label %535

531:                                              ; preds = %516
  %532 = landingpad { ptr, i32 }
          cleanup
  %533 = extractvalue { ptr, i32 } %532, 0
  store ptr %533, ptr %11, align 8
  %534 = extractvalue { ptr, i32 } %532, 1
  store i32 %534, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #6
  br label %535

535:                                              ; preds = %531, %527
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #6
  br label %591

536:                                              ; preds = %512
  call void @llvm.lifetime.start.p0(i64 32, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %41) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef @.str.614, ptr noundef nonnull align 1 dereferenceable(1) %41)
          to label %537 unwind label %539

537:                                              ; preds = %536
  invoke void @_Z12printSuccessRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %40, i1 noundef zeroext true)
          to label %538 unwind label %543

538:                                              ; preds = %537
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #6
  br label %548

539:                                              ; preds = %536
  %540 = landingpad { ptr, i32 }
          cleanup
  %541 = extractvalue { ptr, i32 } %540, 0
  store ptr %541, ptr %11, align 8
  %542 = extractvalue { ptr, i32 } %540, 1
  store i32 %542, ptr %12, align 4
  br label %547

543:                                              ; preds = %537
  %544 = landingpad { ptr, i32 }
          cleanup
  %545 = extractvalue { ptr, i32 } %544, 0
  store ptr %545, ptr %11, align 8
  %546 = extractvalue { ptr, i32 } %544, 1
  store i32 %546, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #6
  br label %547

547:                                              ; preds = %543, %539
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #6
  br label %591

548:                                              ; preds = %538
  %549 = invoke noundef zeroext i1 @_ZN7Lattice5wr_rdEhPhiS0_ib(ptr noundef nonnull align 8 dereferenceable(152) %48, i8 noundef zeroext -1, ptr noundef null, i32 noundef 0, ptr noundef null, i32 noundef 0, i1 noundef zeroext false)
          to label %550 unwind label %61

550:                                              ; preds = %548
  call void @llvm.lifetime.start.p0(i64 32, ptr %42) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %43) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %43) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef @.str.627, ptr noundef nonnull align 1 dereferenceable(1) %43)
          to label %551 unwind label %558

551:                                              ; preds = %550
  invoke void @_Z9printInfoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %42, i1 noundef zeroext false)
          to label %552 unwind label %562

552:                                              ; preds = %551
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %43) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #6
  %553 = invoke noundef zeroext i1 @_ZN7Lattice10DisableISCEv(ptr noundef nonnull align 8 dereferenceable(152) %48)
          to label %554 unwind label %61

554:                                              ; preds = %552
  br i1 %553, label %576, label %555

555:                                              ; preds = %554
  call void @llvm.lifetime.start.p0(i64 32, ptr %44) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %45) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef @.str.616, ptr noundef nonnull align 1 dereferenceable(1) %45)
          to label %556 unwind label %567

556:                                              ; preds = %555
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %44, i1 noundef zeroext true)
          to label %557 unwind label %571

557:                                              ; preds = %556
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #6
  store i1 false, ptr %3, align 1
  store i32 1, ptr %17, align 4
  br label %589

558:                                              ; preds = %550
  %559 = landingpad { ptr, i32 }
          cleanup
  %560 = extractvalue { ptr, i32 } %559, 0
  store ptr %560, ptr %11, align 8
  %561 = extractvalue { ptr, i32 } %559, 1
  store i32 %561, ptr %12, align 4
  br label %566

562:                                              ; preds = %551
  %563 = landingpad { ptr, i32 }
          cleanup
  %564 = extractvalue { ptr, i32 } %563, 0
  store ptr %564, ptr %11, align 8
  %565 = extractvalue { ptr, i32 } %563, 1
  store i32 %565, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #6
  br label %566

566:                                              ; preds = %562, %558
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %43) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #6
  br label %591

567:                                              ; preds = %555
  %568 = landingpad { ptr, i32 }
          cleanup
  %569 = extractvalue { ptr, i32 } %568, 0
  store ptr %569, ptr %11, align 8
  %570 = extractvalue { ptr, i32 } %568, 1
  store i32 %570, ptr %12, align 4
  br label %575

571:                                              ; preds = %556
  %572 = landingpad { ptr, i32 }
          cleanup
  %573 = extractvalue { ptr, i32 } %572, 0
  store ptr %573, ptr %11, align 8
  %574 = extractvalue { ptr, i32 } %572, 1
  store i32 %574, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #6
  br label %575

575:                                              ; preds = %571, %567
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #6
  br label %591

576:                                              ; preds = %554
  call void @llvm.lifetime.start.p0(i64 32, ptr %46) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %47) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef @.str.614, ptr noundef nonnull align 1 dereferenceable(1) %47)
          to label %577 unwind label %579

577:                                              ; preds = %576
  invoke void @_Z12printSuccessRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %46, i1 noundef zeroext true)
          to label %578 unwind label %583

578:                                              ; preds = %577
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #6
  br label %588

579:                                              ; preds = %576
  %580 = landingpad { ptr, i32 }
          cleanup
  %581 = extractvalue { ptr, i32 } %580, 0
  store ptr %581, ptr %11, align 8
  %582 = extractvalue { ptr, i32 } %580, 1
  store i32 %582, ptr %12, align 4
  br label %587

583:                                              ; preds = %577
  %584 = landingpad { ptr, i32 }
          cleanup
  %585 = extractvalue { ptr, i32 } %584, 0
  store ptr %585, ptr %11, align 8
  %586 = extractvalue { ptr, i32 } %584, 1
  store i32 %586, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #6
  br label %587

587:                                              ; preds = %583, %579
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #6
  br label %591

588:                                              ; preds = %578
  store i1 true, ptr %3, align 1
  store i32 1, ptr %17, align 4
  br label %589

589:                                              ; preds = %588, %557, %517, %474, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %590 = load i1, ptr %3, align 1
  ret i1 %590

591:                                              ; preds = %587, %575, %566, %547, %535, %526, %497, %485, %476, %94, %82, %73, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %592

592:                                              ; preds = %591
  %593 = load ptr, ptr %11, align 8
  %594 = load i32, ptr %12, align 4
  %595 = insertvalue { ptr, i32 } poison, ptr %593, 0
  %596 = insertvalue { ptr, i32 } %595, i32 %594, 1
  resume { ptr, i32 } %596
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN9JedParser14get_fuse_countEv(ptr noundef nonnull align 8 dereferenceable(656)) #1 align 2

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

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

declare noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmPKc(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef, ptr noundef) #4

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !24, i64 148}
!16 = !{!"_ZTS7Lattice", !17, i64 0, !22, i64 88, !23, i64 144, !24, i64 148}
!17 = !{!"_ZTS6Device", !6, i64 8, !18, i64 16, !18, i64 48, !20, i64 80, !21, i64 84, !21, i64 85, !21, i64 86}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !12, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"_ZTSN6Device9prog_modeE", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTS12SPIInterface", !7, i64 8, !10, i64 12, !21, i64 16, !21, i64 17, !21, i64 18, !18, i64 24}
!23 = !{!"_ZTSN7Lattice16lattice_family_tE", !7, i64 0}
!24 = !{!"_ZTSN7Lattice22lattice_flash_sector_tE", !7, i64 0}
!25 = !{!7, !7, i64 0}
!26 = !{!17, !6, i64 8}
!27 = !{!17, !21, i64 84}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = distinct !{!30, !14}


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

%"class.std::__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::vector.86" = type { %"struct.std::_Vector_base.87" }
%"struct.std::_Vector_base.87" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.0" = type { i8 }

@.str.580 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.582 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.584 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.586 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.614 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.616 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.622 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.627 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.631 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.632 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.633 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.639 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.741 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.742 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.743 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.744 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.745 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.746 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.747 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.748 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.749 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.750 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.751 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.752 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.753 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.754 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.755 = external hidden unnamed_addr constant [29 x i8], align 1
@__const._ZN7Lattice25program_intFlash_MachXO3DER9JedParser.tx = external hidden unnamed_addr constant [2 x i8], align 1
@__const._ZN7Lattice25program_intFlash_MachXO3DER9JedParser.tx.756 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

declare void @_ZN4Jtag9set_stateENS_10tapState_tEh(ptr noundef nonnull align 8 dereferenceable(193), i32 noundef, i8 noundef zeroext) local_unnamed_addr #4

declare void @_ZN4Jtag9toggleClkEi(ptr noundef nonnull align 8 dereferenceable(193), i32 noundef) local_unnamed_addr #4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7Lattice25program_intFlash_MachXO3DER9JedParser(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull align 8 dereferenceable(656) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.86", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator.0", align 1
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.0", align 1
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator.0", align 1
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::vector.86", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator.0", align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator.0", align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator.0", align 1
  %19 = alloca [2 x i8], align 1
  %20 = alloca [3 x i8], align 1
  %21 = alloca %"class.std::vector.86", align 8
  %22 = alloca %"class.std::vector.86", align 8
  %23 = alloca [2 x i8], align 2
  %24 = alloca [2 x i8], align 2
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::allocator.0", align 1
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator.0", align 1
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator.0", align 1
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::allocator.0", align 1
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::allocator.0", align 1
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  %36 = alloca %"class.std::allocator.0", align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %37 = invoke noundef zeroext i1 @_ZN7Lattice5wr_rdEhPhiS0_ib(ptr noundef nonnull align 8 dereferenceable(152) %0, i8 noundef zeroext -1, ptr noundef null, i32 noundef 0, ptr noundef null, i32 noundef 0, i1 noundef zeroext false)
          to label %38 unwind label %48

38:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.622, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %39 unwind label %50

39:                                               ; preds = %38
  invoke void @_Z9printInfoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %4, i1 noundef zeroext false)
          to label %40 unwind label %52

40:                                               ; preds = %39
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  %41 = invoke noundef zeroext i1 @_ZN7Lattice9EnableISCEh(ptr noundef nonnull align 8 dereferenceable(152) %0, i8 noundef zeroext 8)
          to label %42 unwind label %48

42:                                               ; preds = %40
  br i1 %41, label %60, label %43

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.616, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %44 unwind label %55

44:                                               ; preds = %43
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %6, i1 noundef zeroext true)
          to label %45 unwind label %57

45:                                               ; preds = %44
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  %46 = invoke noundef i64 @_ZN7Lattice13readStatusRegEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
          to label %47 unwind label %48

47:                                               ; preds = %45
  invoke void @_ZN7Lattice14displayReadRegEm(ptr noundef nonnull align 8 dereferenceable(152) %0, i64 noundef %46)
          to label %307 unwind label %48

48:                                               ; preds = %283, %274, %256, %252, %249, %47, %45, %40, %2
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %308

50:                                               ; preds = %38
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %54

52:                                               ; preds = %39
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br label %54

54:                                               ; preds = %52, %50
  %.pn = phi { ptr, i32 } [ %53, %52 ], [ %51, %50 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  br label %308

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

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

59:                                               ; preds = %57, %55
  %.pn100 = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %308

60:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.614, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %61 unwind label %72

61:                                               ; preds = %60
  invoke void @_Z12printSuccessRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %8, i1 noundef zeroext true)
          to label %62 unwind label %74

62:                                               ; preds = %61
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  %63 = call noundef i32 @_ZN9JedParser14get_fuse_countEv(ptr noundef nonnull align 8 dereferenceable(656) %1)
  %64 = sdiv i32 %63, 128
  %65 = call noundef i64 @_ZN9JedParser10nb_sectionEv(ptr noundef nonnull align 8 dereferenceable(656) %1)
  %.not115149.not = icmp eq i64 %65, 0
  br i1 %.not115149.not, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %62
  %66 = getelementptr inbounds i8, ptr %0, i64 148
  %67 = getelementptr inbounds i8, ptr %20, i64 1
  %68 = getelementptr inbounds i8, ptr %20, i64 2
  %69 = getelementptr inbounds i8, ptr %19, i64 1
  %70 = getelementptr inbounds i8, ptr %0, i64 8
  %71 = getelementptr inbounds i8, ptr %0, i64 84
  br label %77

72:                                               ; preds = %60
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

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

76:                                               ; preds = %74, %72
  %.pn102 = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  br label %308

77:                                               ; preds = %.lr.ph, %229
  %.0150 = phi i64 [ 0, %.lr.ph ], [ %230, %229 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  %78 = trunc i64 %.0150 to i32
  invoke void @_ZN9JedParser16data_for_sectionB5cxx11Ei(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.86") align 8 %11, ptr noundef nonnull align 8 dereferenceable(656) %1, i32 noundef %78)
          to label %79 unwind label %83

79:                                               ; preds = %77
  %80 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEaSEOS7_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  %81 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %82 = icmp eq i64 %81, 0
  br i1 %82, label %.thread141, label %85

.thread141:                                       ; preds = %79
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %229

83:                                               ; preds = %77
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  br label %234

85:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  invoke void @_ZN9JedParser14noteForSectionB5cxx11Ei(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(656) %1, i32 noundef %78)
          to label %86 unwind label %92

86:                                               ; preds = %85
  %87 = call noundef i64 @_ZN9JedParser18offset_for_sectionEi(ptr noundef nonnull align 8 dereferenceable(656) %1, i32 noundef %78)
  %88 = lshr i64 %87, 7
  %89 = trunc i64 %88 to i32
  br label %90

90:                                               ; preds = %90, %86
  %.078 = phi i32 [ %89, %86 ], [ %91, %90 ]
  %.not = icmp slt i32 %.078, %64
  %91 = sub nsw i32 %.078, %64
  br i1 %.not, label %96, label %90, !llvm.loop !5

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

94:                                               ; preds = %222, %213, %211, %209, %158, %151, %149, %142, %138, %134, %130, %123, %121, %119, %105, %103
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %232

96:                                               ; preds = %90
  %97 = icmp sgt i32 %.078, 12541
  %98 = add nsw i32 %.078, -12542
  %spec.select = select i1 %97, i32 %98, i32 %.078
  %99 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str.631)
  br i1 %99, label %100, label %112

100:                                              ; preds = %96
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.741, i32 noundef %spec.select, i32 noundef %spec.select)
  %102 = load i32, ptr %66, align 4, !tbaa !7
  switch i32 %102, label %108 [
    i32 1, label %103
    i32 2, label %105
  ]

103:                                              ; preds = %100
  %104 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.742)
          to label %108 unwind label %94

105:                                              ; preds = %100
  %106 = or i32 %spec.select, 65536
  %107 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.743)
          to label %108 unwind label %94

108:                                              ; preds = %100, %105, %103
  %.080 = phi i32 [ %spec.select, %103 ], [ %106, %105 ], [ 0, %100 ]
  %109 = icmp eq i32 %spec.select, 0
  br i1 %109, label %110, label %.thread

110:                                              ; preds = %108
  %111 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.744, i32 noundef 0)
  br label %.thread.thread

112:                                              ; preds = %96
  %113 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str.632)
  br i1 %113, label %114, label %123

114:                                              ; preds = %112
  %115 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.745, i32 noundef %spec.select, i32 noundef %spec.select)
  %116 = icmp eq i32 %spec.select, 0
  br i1 %116, label %117, label %228

117:                                              ; preds = %114
  %118 = load i32, ptr %66, align 4, !tbaa !7
  switch i32 %118, label %.thread.thread [
    i32 1, label %119
    i32 2, label %121
  ]

119:                                              ; preds = %117
  %120 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.746)
          to label %.thread135 unwind label %94

121:                                              ; preds = %117
  %122 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.747)
          to label %.thread135 unwind label %94

123:                                              ; preds = %112
  %124 = invoke noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmPKc(ptr noundef nonnull align 8 dereferenceable(32) %12, i64 noundef 0, i64 noundef 16, ptr noundef nonnull @.str.748)
          to label %125 unwind label %94

125:                                              ; preds = %123
  %126 = icmp eq i32 %124, 0
  br i1 %126, label %127, label %146

127:                                              ; preds = %125
  %128 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.749, i32 noundef %spec.select, i32 noundef %spec.select)
  %129 = load i32, ptr %66, align 4, !tbaa !7
  switch i32 %129, label %.thread [
    i32 1, label %130
    i32 3, label %130
    i32 2, label %134
    i32 4, label %134
    i32 5, label %138
    i32 6, label %142
  ]

130:                                              ; preds = %127, %127
  %131 = icmp eq i32 %spec.select, 0
  %132 = or i32 %spec.select, 16384
  %.087 = select i1 %131, i32 1024, i32 0
  %.181 = select i1 %131, i32 1024, i32 %132
  %133 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.580)
          to label %156 unwind label %94

134:                                              ; preds = %127, %127
  %135 = icmp eq i32 %spec.select, 0
  %136 = or i32 %spec.select, 81920
  %.188 = select i1 %135, i32 2048, i32 0
  %.282 = select i1 %135, i32 2048, i32 %136
  %137 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.582)
          to label %156 unwind label %94

138:                                              ; preds = %127
  %139 = icmp eq i32 %spec.select, 0
  %140 = or i32 %spec.select, 131072
  %.289 = select i1 %139, i32 4096, i32 0
  %.383 = select i1 %139, i32 4096, i32 %140
  %141 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.584)
          to label %156 unwind label %94

142:                                              ; preds = %127
  %143 = icmp eq i32 %spec.select, 0
  %144 = or i32 %spec.select, 147456
  %.390 = select i1 %143, i32 8192, i32 0
  %.484 = select i1 %143, i32 8192, i32 %144
  %145 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.586)
          to label %156 unwind label %94

146:                                              ; preds = %125
  %147 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.750, i32 noundef %spec.select, i32 noundef %spec.select)
  %148 = load i32, ptr %66, align 4, !tbaa !7
  switch i32 %148, label %153 [
    i32 1, label %149
    i32 2, label %151
  ]

149:                                              ; preds = %146
  %150 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.751)
          to label %153 unwind label %94

151:                                              ; preds = %146
  %152 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.752)
          to label %153 unwind label %94

153:                                              ; preds = %146, %151, %149
  %.585 = phi i32 [ 256, %149 ], [ 512, %151 ], [ 0, %146 ]
  %.not104 = icmp eq i32 %spec.select, 0
  br i1 %.not104, label %156, label %154

154:                                              ; preds = %153
  %155 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.753, i32 noundef %spec.select)
  br label %156

156:                                              ; preds = %153, %154, %130, %138, %142, %134
  %.592 = phi i32 [ %.087, %130 ], [ %.188, %134 ], [ %.289, %138 ], [ %.390, %142 ], [ %.585, %154 ], [ %.585, %153 ]
  %.686 = phi i32 [ %.181, %130 ], [ %.282, %134 ], [ %.383, %138 ], [ %.484, %142 ], [ %.585, %154 ], [ %.585, %153 ]
  %.not105 = icmp eq i32 %.592, 0
  br i1 %.not105, label %.thread, label %.thread135

.thread135:                                       ; preds = %121, %119, %156
  %.686140 = phi i32 [ %.686, %156 ], [ 2048, %121 ], [ 1024, %119 ]
  %.592139 = phi i32 [ %.592, %156 ], [ 2048, %121 ], [ 1024, %119 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.633, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %157 unwind label %164

157:                                              ; preds = %.thread135
  invoke void @_Z9printInfoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %13, i1 noundef zeroext false)
          to label %158 unwind label %166

158:                                              ; preds = %157
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  %159 = invoke noundef zeroext i1 @_ZN7Lattice10flashEraseEj(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef %.592139)
          to label %160 unwind label %94

160:                                              ; preds = %158
  br i1 %159, label %174, label %161

161:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull @.str.616, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %162 unwind label %169

162:                                              ; preds = %161
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %15, i1 noundef zeroext true)
          to label %163 unwind label %171

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

164:                                              ; preds = %.thread135
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %168

166:                                              ; preds = %157
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %168

168:                                              ; preds = %166, %164
  %.pn106 = phi { ptr, i32 } [ %167, %166 ], [ %165, %164 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br label %232

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

171:                                              ; preds = %162
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %173

173:                                              ; preds = %171, %169
  %.pn110 = phi { ptr, i32 } [ %172, %171 ], [ %170, %169 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  br label %232

174:                                              ; preds = %160
  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 @.str.614, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %175 unwind label %177

175:                                              ; preds = %174
  invoke void @_Z12printSuccessRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %17, i1 noundef zeroext true)
          to label %176 unwind label %179

176:                                              ; preds = %175
  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
  br label %.thread

177:                                              ; preds = %174
  %178 = landingpad { ptr, i32 }
          cleanup
  br label %181

179:                                              ; preds = %175
  %180 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #6
  br label %181

181:                                              ; preds = %179, %177
  %.pn108 = phi { ptr, i32 } [ %180, %179 ], [ %178, %177 ]
  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
  br label %232

.thread:                                          ; preds = %127, %108, %176, %156
  %.686132 = phi i32 [ %.686140, %176 ], [ %.686, %156 ], [ 0, %127 ], [ %.080, %108 ]
  %182 = icmp eq i32 %spec.select, 0
  br i1 %182, label %.thread.thread, label %194

.thread.thread:                                   ; preds = %110, %117, %.thread
  %.686132147 = phi i32 [ %.686132, %.thread ], [ %.080, %110 ], [ 0, %117 ]
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %19) #6
  %183 = lshr i32 %.686132147, 8
  %184 = trunc i32 %183 to i8
  store i8 %184, ptr %19, align 1, !tbaa !22
  %185 = lshr i32 %.686132147, 16
  %186 = trunc i32 %185 to i8
  store i8 %186, ptr %69, align 1, !tbaa !22
  %187 = and i32 %183, 255
  %188 = and i32 %185, 255
  %189 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.754, i32 noundef %187, i32 noundef %188)
  %190 = invoke noundef zeroext i1 @_ZN7Lattice5wr_rdEhPhiS0_ib(ptr noundef nonnull align 8 dereferenceable(152) %0, i8 noundef zeroext 70, ptr noundef nonnull %19, i32 noundef 2, ptr noundef null, i32 noundef 0, i1 noundef zeroext false)
          to label %191 unwind label %192

191:                                              ; preds = %.thread.thread
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %19) #6
  br label %209

192:                                              ; preds = %.thread.thread
  %193 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %19) #6
  br label %232

194:                                              ; preds = %.thread
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %20) #6
  %195 = trunc i32 %.686132 to i8
  store i8 %195, ptr %20, align 1, !tbaa !22
  %196 = lshr i32 %.686132, 8
  %197 = trunc i32 %196 to i8
  store i8 %197, ptr %67, align 1, !tbaa !22
  %198 = lshr i32 %.686132, 16
  %199 = trunc i32 %198 to i8
  %200 = and i8 %199, 3
  store i8 %200, ptr %68, align 1, !tbaa !22
  %201 = and i32 %.686132, 255
  %202 = and i32 %196, 255
  %203 = and i32 %198, 3
  %204 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.755, i32 noundef %201, i32 noundef %202, i32 noundef %203)
  %205 = invoke noundef zeroext i1 @_ZN7Lattice5wr_rdEhPhiS0_ib(ptr noundef nonnull align 8 dereferenceable(152) %0, i8 noundef zeroext -76, ptr noundef nonnull %20, i32 noundef 3, ptr noundef null, i32 noundef 0, i1 noundef zeroext false)
          to label %206 unwind label %207

206:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %20) #6
  br label %209

207:                                              ; preds = %194
  %208 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %20) #6
  br label %232

209:                                              ; preds = %206, %191
  %.686132148 = phi i32 [ %.686132, %206 ], [ %.686132147, %191 ]
  %210 = load ptr, ptr %70, align 8, !tbaa !23
  invoke void @_ZN4Jtag9set_stateENS_10tapState_tEh(ptr noundef nonnull align 8 dereferenceable(193) %210, i32 noundef 1, i8 noundef zeroext 1)
          to label %211 unwind label %94

211:                                              ; preds = %209
  %212 = load ptr, ptr %70, align 8, !tbaa !23
  invoke void @_ZN4Jtag9toggleClkEi(ptr noundef nonnull align 8 dereferenceable(193) %212, i32 noundef 1000)
          to label %213 unwind label %94

213:                                              ; preds = %211
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %214 unwind label %94

214:                                              ; preds = %213
  %215 = invoke noundef zeroext i1 @_ZN7Lattice9flashProgEjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS5_SaIS5_EE(ptr noundef nonnull align 8 dereferenceable(152) %0, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull %21)
          to label %216 unwind label %217

216:                                              ; preds = %214
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br i1 %215, label %219, label %.loopexit

217:                                              ; preds = %214
  %218 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br label %232

219:                                              ; preds = %216
  %220 = load i8, ptr %71, align 4, !tbaa !24, !range !25, !noundef !26
  %221 = trunc nuw i8 %220 to i1
  br i1 %221, label %222, label %228

222:                                              ; preds = %219
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %223 unwind label %94

223:                                              ; preds = %222
  %224 = invoke noundef zeroext i1 @_ZN7Lattice6VerifyESt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEbj(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull %22, i1 noundef zeroext false, i32 noundef %.686132148)
          to label %225 unwind label %226

225:                                              ; preds = %223
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  br i1 %224, label %228, label %.loopexit

226:                                              ; preds = %223
  %227 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  br label %232

228:                                              ; preds = %219, %225, %114
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %229

229:                                              ; preds = %228, %.thread141
  %230 = add nuw i64 %.0150, 1
  %231 = call noundef i64 @_ZN9JedParser10nb_sectionEv(ptr noundef nonnull align 8 dereferenceable(656) %1)
  %.not115 = icmp ult i64 %230, %231
  br i1 %.not115, label %77, label %.critedge, !llvm.loop !27

232:                                              ; preds = %226, %217, %207, %192, %181, %173, %168, %94
  %.pn110.pn = phi { ptr, i32 } [ %.pn110, %173 ], [ %227, %226 ], [ %95, %94 ], [ %218, %217 ], [ %193, %192 ], [ %208, %207 ], [ %.pn108, %181 ], [ %.pn106, %168 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %233

233:                                              ; preds = %232, %92
  %.pn110.pn.pn = phi { ptr, i32 } [ %.pn110.pn, %232 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br label %234

234:                                              ; preds = %233, %83
  %.pn110.pn.pn.pn = phi { ptr, i32 } [ %.pn110.pn.pn, %233 ], [ %84, %83 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %308

.loopexit:                                        ; preds = %216, %225, %163
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %307

.critedge:                                        ; preds = %229, %62
  %235 = getelementptr inbounds i8, ptr %0, i64 148
  %236 = load i32, ptr %235, align 4, !tbaa !7
  switch i32 %236, label %249 [
    i32 1, label %237
    i32 2, label %243
  ]

237:                                              ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %23) #6
  %238 = load i16, ptr @__const._ZN7Lattice25program_intFlash_MachXO3DER9JedParser.tx, align 1
  store i16 %238, ptr %23, align 2
  %239 = invoke noundef zeroext i1 @_ZN7Lattice5wr_rdEhPhiS0_ib(ptr noundef nonnull align 8 dereferenceable(152) %0, i8 noundef zeroext 70, ptr noundef nonnull %23, i32 noundef 2, ptr noundef null, i32 noundef 0, i1 noundef zeroext false)
          to label %240 unwind label %241

240:                                              ; preds = %237
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %23) #6
  br label %249

241:                                              ; preds = %237
  %242 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %23) #6
  br label %308

243:                                              ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %24) #6
  %244 = load i16, ptr @__const._ZN7Lattice25program_intFlash_MachXO3DER9JedParser.tx.756, align 1
  store i16 %244, ptr %24, align 2
  %245 = invoke noundef zeroext i1 @_ZN7Lattice5wr_rdEhPhiS0_ib(ptr noundef nonnull align 8 dereferenceable(152) %0, i8 noundef zeroext 70, ptr noundef nonnull %24, i32 noundef 2, ptr noundef null, i32 noundef 0, i1 noundef zeroext false)
          to label %246 unwind label %247

246:                                              ; preds = %243
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %24) #6
  br label %249

247:                                              ; preds = %243
  %248 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %24) #6
  br label %308

249:                                              ; preds = %.critedge, %246, %240
  %250 = getelementptr inbounds i8, ptr %0, i64 8
  %251 = load ptr, ptr %250, align 8, !tbaa !23
  invoke void @_ZN4Jtag9set_stateENS_10tapState_tEh(ptr noundef nonnull align 8 dereferenceable(193) %251, i32 noundef 1, i8 noundef zeroext 1)
          to label %252 unwind label %48

252:                                              ; preds = %249
  %253 = load ptr, ptr %250, align 8, !tbaa !23
  invoke void @_ZN4Jtag9toggleClkEi(ptr noundef nonnull align 8 dereferenceable(193) %253, i32 noundef 1000)
          to label %254 unwind label %48

254:                                              ; preds = %252
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %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 nonnull @.str.639, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %255 unwind label %262

255:                                              ; preds = %254
  invoke void @_Z9printInfoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %25, i1 noundef zeroext false)
          to label %256 unwind label %264

256:                                              ; preds = %255
  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 nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  %257 = invoke noundef zeroext i1 @_ZN7Lattice16writeProgramDoneEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
          to label %258 unwind label %48

258:                                              ; preds = %256
  br i1 %257, label %272, label %259

259:                                              ; preds = %258
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %27) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %28) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull @.str.616, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %260 unwind label %267

260:                                              ; preds = %259
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %27, i1 noundef zeroext true)
          to label %261 unwind label %269

261:                                              ; preds = %260
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #6
  br label %307

262:                                              ; preds = %254
  %263 = landingpad { ptr, i32 }
          cleanup
  br label %266

264:                                              ; preds = %255
  %265 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  br label %266

266:                                              ; preds = %264, %262
  %.pn116 = phi { ptr, i32 } [ %265, %264 ], [ %263, %262 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #6
  br label %308

267:                                              ; preds = %259
  %268 = landingpad { ptr, i32 }
          cleanup
  br label %271

269:                                              ; preds = %260
  %270 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  br label %271

271:                                              ; preds = %269, %267
  %.pn126 = phi { ptr, i32 } [ %270, %269 ], [ %268, %267 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #6
  br label %308

272:                                              ; preds = %258
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %29) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %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 nonnull @.str.614, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %273 unwind label %276

273:                                              ; preds = %272
  invoke void @_Z12printSuccessRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %29, i1 noundef zeroext true)
          to label %274 unwind label %278

274:                                              ; preds = %273
  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 nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #6
  %275 = invoke noundef zeroext i1 @_ZN7Lattice5wr_rdEhPhiS0_ib(ptr noundef nonnull align 8 dereferenceable(152) %0, i8 noundef zeroext -1, ptr noundef null, i32 noundef 0, ptr noundef null, i32 noundef 0, i1 noundef zeroext false)
          to label %281 unwind label %48

276:                                              ; preds = %272
  %277 = landingpad { ptr, i32 }
          cleanup
  br label %280

278:                                              ; preds = %273
  %279 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  br label %280

280:                                              ; preds = %278, %276
  %.pn118 = phi { ptr, i32 } [ %279, %278 ], [ %277, %276 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #6
  br label %308

281:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %31) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %32) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull @.str.627, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %282 unwind label %289

282:                                              ; preds = %281
  invoke void @_Z9printInfoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %31, i1 noundef zeroext false)
          to label %283 unwind label %291

283:                                              ; preds = %282
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #6
  %284 = invoke noundef zeroext i1 @_ZN7Lattice10DisableISCEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
          to label %285 unwind label %48

285:                                              ; preds = %283
  br i1 %284, label %299, label %286

286:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %33) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %34) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull @.str.616, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %287 unwind label %294

287:                                              ; preds = %286
  invoke void @_Z10printErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %33, i1 noundef zeroext true)
          to label %288 unwind label %296

288:                                              ; preds = %287
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #6
  br label %307

289:                                              ; preds = %281
  %290 = landingpad { ptr, i32 }
          cleanup
  br label %293

291:                                              ; preds = %282
  %292 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  br label %293

293:                                              ; preds = %291, %289
  %.pn120 = phi { ptr, i32 } [ %292, %291 ], [ %290, %289 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #6
  br label %308

294:                                              ; preds = %286
  %295 = landingpad { ptr, i32 }
          cleanup
  br label %298

296:                                              ; preds = %287
  %297 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  br label %298

298:                                              ; preds = %296, %294
  %.pn122 = phi { ptr, i32 } [ %297, %296 ], [ %295, %294 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %34) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #6
  br label %308

299:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %35) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %36) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull @.str.614, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %300 unwind label %302

300:                                              ; preds = %299
  invoke void @_Z12printSuccessRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb(ptr noundef nonnull align 8 dereferenceable(32) %35, i1 noundef zeroext true)
          to label %301 unwind label %304

301:                                              ; preds = %300
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #6
  br label %307

302:                                              ; preds = %299
  %303 = landingpad { ptr, i32 }
          cleanup
  br label %306

304:                                              ; preds = %300
  %305 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #6
  br label %306

306:                                              ; preds = %304, %302
  %.pn124 = phi { ptr, i32 } [ %305, %304 ], [ %303, %302 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #6
  br label %308

307:                                              ; preds = %.loopexit, %47, %301, %288, %261
  %.477 = phi i1 [ false, %261 ], [ true, %301 ], [ false, %288 ], [ false, %.loopexit ], [ false, %47 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  ret i1 %.477

308:                                              ; preds = %306, %298, %293, %280, %271, %266, %247, %241, %234, %76, %59, %54, %48
  %.pn126.pn = phi { ptr, i32 } [ %.pn126, %271 ], [ %.pn124, %306 ], [ %.pn122, %298 ], [ %49, %48 ], [ %.pn120, %293 ], [ %.pn118, %280 ], [ %.pn116, %266 ], [ %242, %241 ], [ %248, %247 ], [ %.pn110.pn.pn.pn, %234 ], [ %.pn102, %76 ], [ %.pn100, %59 ], [ %.pn, %54 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn126.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN9JedParser14get_fuse_countEv(ptr noundef nonnull align 8 dereferenceable(656)) local_unnamed_addr #1 align 2

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

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

declare noundef i32 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmPKc(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !21, i64 148}
!8 = !{!"_ZTS7Lattice", !9, i64 0, !18, i64 88, !20, i64 144, !21, i64 148}
!9 = !{!"_ZTS6Device", !10, i64 8, !13, i64 16, !13, i64 48, !16, i64 80, !17, i64 84, !17, i64 85, !17, i64 86}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !11, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!15 = !{!"long", !11, i64 0}
!16 = !{!"_ZTSN6Device9prog_modeE", !11, i64 0}
!17 = !{!"bool", !11, i64 0}
!18 = !{!"_ZTS12SPIInterface", !11, i64 8, !19, i64 12, !17, i64 16, !17, i64 17, !17, i64 18, !13, i64 24}
!19 = !{!"int", !11, i64 0}
!20 = !{!"_ZTSN7Lattice16lattice_family_tE", !11, i64 0}
!21 = !{!"_ZTSN7Lattice22lattice_flash_sector_tE", !11, i64 0}
!22 = !{!11, !11, i64 0}
!23 = !{!9, !10, i64 8}
!24 = !{!9, !17, i64 84}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = distinct !{!27, !6}


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