; LLVM IR from gem5/gem5 :: ext/dsent/model/optical_graph (OpticalWavelength)

; 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.LibUtil::String" = type { %"class.std::__cxx11::basic_string" }
%"struct.std::pair" = type { i32, i32 }
%"class.std::reverse_iterator" = type { %"struct.std::_List_iterator" }
%"struct.std::_List_iterator" = type { ptr }
%"struct.DSENT::OpticalDataPath" = type { ptr, ptr, %"class.std::vector.3", %"class.std::vector.8" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<DSENT::OpticalDetector *, std::allocator<DSENT::OpticalDetector *>>::_Vector_impl" }
%"struct.std::_Vector_base<DSENT::OpticalDetector *, std::allocator<DSENT::OpticalDetector *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DSENT::OpticalDetector *, std::allocator<DSENT::OpticalDetector *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DSENT::OpticalDetector *, std::allocator<DSENT::OpticalDetector *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@_ZTIN7LibUtil9ExceptionE = external constant ptr
@.str.6 = external hidden unnamed_addr constant [42 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #5

declare void @_ZN7LibUtil6String6formatERKS0_z(ptr dead_on_unwind writable sret(%"class.LibUtil::String") align 8, ptr noundef nonnull align 8 dereferenceable(32), ...) #6

declare void @_ZN7LibUtil6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #5

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

declare void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6

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

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: nounwind
declare void @_ZN7LibUtil9ExceptionC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN7LibUtil9ExceptionD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZNK5DSENT17OpticalWavelength13getLaserPowerEj(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %1) #7 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.LibUtil::String", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.LibUtil::String", align 8
  %9 = alloca %"class.LibUtil::String", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.LibUtil::String", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::pair", align 4
  %17 = alloca %"struct.std::pair", align 4
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  %26 = alloca double, align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::reverse_iterator", align 8
  %29 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %30 = load ptr, ptr %3, align 8
  br label %31

31:                                               ; preds = %2
  %32 = load i32, ptr %4, align 4, !tbaa !9
  %33 = icmp ugt i32 %32, 0
  br i1 %33, label %78, label %34

34:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #10
  call void @_ZN7LibUtil6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str)
  invoke void (ptr, ptr, ...) @_ZN7LibUtil6String6formatERKS0_z(ptr dead_on_unwind writable sret(%"class.LibUtil::String") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.1, i32 noundef 103)
          to label %35 unwind label %44

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #10
  %36 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5DSENT17OpticalWavelength15getInstanceNameEv(ptr noundef nonnull align 8 dereferenceable(48) %30)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef @.str.2, ptr noundef nonnull align 8 dereferenceable(32) %36)
          to label %37 unwind label %48

37:                                               ; preds = %35
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef @.str.6)
          to label %38 unwind label %52

38:                                               ; preds = %37
  invoke void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %39 unwind label %56

39:                                               ; preds = %38
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %40 unwind label %60

40:                                               ; preds = %39
  invoke void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %41 unwind label %64

41:                                               ; preds = %40
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #10
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #10
  store ptr %6, ptr %5, align 8, !tbaa !5
  %42 = call ptr @__cxa_allocate_exception(i64 40) #10
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN7LibUtil9ExceptionC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(40) %42, ptr noundef nonnull align 8 dereferenceable(32) %43) #10
  invoke void @__cxa_throw(ptr %42, ptr @_ZTIN7LibUtil9ExceptionE, ptr @_ZN7LibUtil9ExceptionD1Ev) #11
          to label %201 unwind label %73

44:                                               ; preds = %34
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %10, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %11, align 4
  br label %72

48:                                               ; preds = %35
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %10, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %11, align 4
  br label %71

52:                                               ; preds = %37
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %10, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %11, align 4
  br label %70

56:                                               ; preds = %38
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %10, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %11, align 4
  br label %69

60:                                               ; preds = %39
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %10, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %11, align 4
  br label %68

64:                                               ; preds = %40
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %10, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  br label %68

68:                                               ; preds = %64, %60
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  br label %69

69:                                               ; preds = %68, %56
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  br label %70

70:                                               ; preds = %69, %52
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #10
  br label %71

71:                                               ; preds = %70, %48
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #10
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  br label %72

72:                                               ; preds = %71, %44
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #10
  br label %77

73:                                               ; preds = %41
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %10, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %11, align 4
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #10
  br label %77

77:                                               ; preds = %73, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  br label %196

78:                                               ; preds = %31
  br label %79

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %80 = call i64 @_ZNK5DSENT17OpticalWavelength14getWavelengthsEv(ptr noundef nonnull align 8 dereferenceable(48) %30)
  store i64 %80, ptr %16, align 4
  %81 = getelementptr inbounds %"struct.std::pair", ptr %16, i32 0, i32 1
  %82 = load i32, ptr %81, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %83 = call i64 @_ZNK5DSENT17OpticalWavelength14getWavelengthsEv(ptr noundef nonnull align 8 dereferenceable(48) %30)
  store i64 %83, ptr %17, align 4
  %84 = getelementptr inbounds %"struct.std::pair", ptr %17, i32 0, i32 0
  %85 = load i32, ptr %84, align 4, !tbaa !13
  %86 = sub nsw i32 %82, %85
  %87 = add nsw i32 %86, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  store i32 %87, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  store double 0.000000e+00, ptr %18, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %188, %79
  %89 = load i32, ptr %19, align 4, !tbaa !9
  %90 = zext i32 %89 to i64
  %91 = call noundef ptr @_ZNK5DSENT17OpticalWavelength12getDataPathsEv(ptr noundef nonnull align 8 dereferenceable(48) %30)
  %92 = call noundef i64 @_ZNKSt6vectorIN5DSENT15OpticalDataPathESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #10
  %93 = icmp ult i64 %90, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %88
  store i32 4, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  br label %191

95:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  %96 = call noundef ptr @_ZNK5DSENT17OpticalWavelength12getDataPathsEv(ptr noundef nonnull align 8 dereferenceable(48) %30)
  %97 = load i32, ptr %19, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN5DSENT15OpticalDataPathESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %98)
  store ptr %99, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  %100 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #12
  call void @llvm.memset.p0.i64(ptr align 16 %100, i8 0, i64 24, i1 false)
  call void @_ZNSt7__cxx114listIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %100) #10
  store ptr %100, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  %101 = load ptr, ptr %21, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.DSENT::OpticalDataPath", ptr %101, i32 0, i32 1
  %103 = load ptr, ptr %102, align 8, !tbaa !16
  %104 = call noundef double @_ZNK5DSENT16OpticalModulator18getExtinctionRatioEv(ptr noundef nonnull align 8 dereferenceable(105) %103)
  store double %104, ptr %23, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  %105 = load ptr, ptr %21, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.DSENT::OpticalDataPath", ptr %105, i32 0, i32 1
  %107 = load ptr, ptr %106, align 8, !tbaa !16
  %108 = call noundef double @_ZNK5DSENT16OpticalModulator16getInsertionLossEv(ptr noundef nonnull align 8 dereferenceable(105) %107)
  store double %108, ptr %24, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #10
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %145, %95
  %110 = load i32, ptr %25, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = load ptr, ptr %21, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.DSENT::OpticalDataPath", ptr %112, i32 0, i32 2
  %114 = call noundef i64 @_ZNKSt6vectorIPN5DSENT15OpticalDetectorESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %113) #10
  %115 = icmp ult i64 %111, %114
  br i1 %115, label %117, label %116

116:                                              ; preds = %109
  store i32 7, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #10
  br label %148

117:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  %118 = load ptr, ptr %21, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.DSENT::OpticalDataPath", ptr %118, i32 0, i32 2
  %120 = load i32, ptr %25, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPN5DSENT15OpticalDetectorESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %121) #10
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = load double, ptr %23, align 8, !tbaa !14
  %125 = call noundef double @_ZNK5DSENT15OpticalDetector14getSensitivityEd(ptr noundef nonnull align 8 dereferenceable(104) %123, double noundef %124)
  %126 = load ptr, ptr %21, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.DSENT::OpticalDataPath", ptr %126, i32 0, i32 3
  %128 = load i32, ptr %25, align 4, !tbaa !9
  %129 = zext i32 %128 to i64
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %129) #10
  %131 = load double, ptr %130, align 8, !tbaa !14
  %132 = load double, ptr %24, align 8, !tbaa !14
  %133 = fadd double %131, %132
  %134 = fdiv double %133, 1.000000e+01
  %135 = call double @pow(double noundef 1.000000e+01, double noundef %134) #10
  %136 = fmul double %125, %135
  %137 = fmul double %136, 1.000000e+00
  %138 = load double, ptr %23, align 8, !tbaa !14
  %139 = fneg double %138
  %140 = fdiv double %139, 1.000000e+01
  %141 = call double @pow(double noundef 1.000000e+01, double noundef %140) #10
  %142 = fsub double 1.000000e+00, %141
  %143 = fdiv double %137, %142
  store double %143, ptr %26, align 8, !tbaa !14
  %144 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZNSt7__cxx114listIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %144, ptr noundef nonnull align 8 dereferenceable(8) %26)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  br label %145

145:                                              ; preds = %117
  %146 = load i32, ptr %25, align 4, !tbaa !9
  %147 = add i32 %146, 1
  store i32 %147, ptr %25, align 4, !tbaa !9
  br label %109, !llvm.loop !26

148:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #10
  %149 = load ptr, ptr %21, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.DSENT::OpticalDataPath", ptr %149, i32 0, i32 2
  %151 = call noundef i64 @_ZNKSt6vectorIPN5DSENT15OpticalDetectorESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %150) #10
  %152 = trunc i64 %151 to i32
  store i32 %152, ptr %27, align 4, !tbaa !9
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %154 = load i32, ptr %153, align 4, !tbaa !9
  store i32 %154, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #10
  %155 = load i32, ptr %4, align 4, !tbaa !9
  %156 = zext i32 %155 to i64
  %157 = load ptr, ptr %22, align 8, !tbaa !5
  %158 = call noundef i64 @_ZNKSt7__cxx114listIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %157) #10
  %159 = icmp ult i64 %156, %158
  br i1 %159, label %160, label %162

160:                                              ; preds = %148
  %161 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZNSt7__cxx114listIdSaIdEE4sortEv(ptr noundef nonnull align 8 dereferenceable(24) %161)
  br label %162

162:                                              ; preds = %160, %148
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  %163 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZNSt7__cxx114listIdSaIdEE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %163) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #10
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %180, %162
  %165 = load i32, ptr %29, align 4, !tbaa !9
  %166 = load i32, ptr %4, align 4, !tbaa !9
  %167 = icmp ult i32 %165, %166
  br i1 %167, label %169, label %168

168:                                              ; preds = %164
  store i32 10, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  br label %183

169:                                              ; preds = %164
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt14_List_iteratorIdEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
  %171 = load double, ptr %170, align 8, !tbaa !14
  %172 = load ptr, ptr %21, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.DSENT::OpticalDataPath", ptr %172, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8, !tbaa !28
  %175 = call noundef double @_ZNK5DSENT12OpticalLaser13getEfficiencyEv(ptr noundef nonnull align 8 dereferenceable(88) %174)
  %176 = fdiv double %171, %175
  %177 = load double, ptr %18, align 8, !tbaa !14
  %178 = fadd double %177, %176
  store double %178, ptr %18, align 8, !tbaa !14
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt16reverse_iteratorISt14_List_iteratorIdEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28)
  br label %180

180:                                              ; preds = %169
  %181 = load i32, ptr %29, align 4, !tbaa !9
  %182 = add i32 %181, 1
  store i32 %182, ptr %29, align 4, !tbaa !9
  br label %164, !llvm.loop !29

183:                                              ; preds = %168
  %184 = load ptr, ptr %22, align 8, !tbaa !5
  %185 = icmp eq ptr %184, null
  br i1 %185, label %187, label %186

186:                                              ; preds = %183
  call void @_ZNSt7__cxx1110_List_baseIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %184) #10
  call void @_ZdlPvm(ptr noundef %184, i64 noundef 24) #13
  br label %187

187:                                              ; preds = %186, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  br label %188

188:                                              ; preds = %187
  %189 = load i32, ptr %19, align 4, !tbaa !9
  %190 = add i32 %189, 1
  store i32 %190, ptr %19, align 4, !tbaa !9
  br label %88, !llvm.loop !30

191:                                              ; preds = %94
  %192 = load i32, ptr %15, align 4, !tbaa !9
  %193 = sitofp i32 %192 to double
  %194 = load double, ptr %18, align 8, !tbaa !14
  %195 = fmul double %193, %194
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  ret double %195

196:                                              ; preds = %77
  %197 = load ptr, ptr %10, align 8
  %198 = load i32, ptr %11, align 4
  %199 = insertvalue { ptr, i32 } poison, ptr %197, 0
  %200 = insertvalue { ptr, i32 } %199, i32 %198, 1
  resume { ptr, i32 } %200

201:                                              ; preds = %41
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN5DSENT15OpticalDataPathESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #7 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

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

declare noundef double @_ZNK5DSENT16OpticalModulator18getExtinctionRatioEv(ptr noundef nonnull align 8 dereferenceable(105)) #6

declare noundef double @_ZNK5DSENT16OpticalModulator16getInsertionLossEv(ptr noundef nonnull align 8 dereferenceable(105)) #6

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

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

declare noundef double @_ZNK5DSENT15OpticalDetector14getSensitivityEd(ptr noundef nonnull align 8 dereferenceable(104), double noundef) #6

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #9

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx114listIdSaIdEE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

declare noundef double @_ZNK5DSENT12OpticalLaser13getEfficiencyEv(ptr noundef nonnull align 8 dereferenceable(88)) #6

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!17, !6, i64 8}
!17 = !{!"_ZTSN5DSENT15OpticalDataPathE", !6, i64 0, !6, i64 8, !18, i64 16, !22, i64 40}
!18 = !{!"_ZTSSt6vectorIPN5DSENT15OpticalDetectorESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIPN5DSENT15OpticalDetectorESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN5DSENT15OpticalDetectorESaIS2_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN5DSENT15OpticalDetectorESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSSt6vectorIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!17, !6, i64 0}
!29 = distinct !{!29, !27}
!30 = distinct !{!30, !27}


; 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.LibUtil::String" = type { %"class.std::__cxx11::basic_string" }
%"class.std::reverse_iterator" = type { %"struct.std::_List_iterator" }
%"struct.std::_List_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@_ZTIN7LibUtil9ExceptionE = external constant ptr
@.str.6 = external hidden unnamed_addr constant [42 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

declare void @_ZN7LibUtil6String6formatERKS0_z(ptr dead_on_unwind writable sret(%"class.LibUtil::String") align 8, ptr noundef nonnull align 8 dereferenceable(32), ...) local_unnamed_addr #6

declare void @_ZN7LibUtil6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) unnamed_addr #6

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

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

declare void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZN7LibUtil9ExceptionC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN7LibUtil9ExceptionD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZNK5DSENT17OpticalWavelength13getLaserPowerEj(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %1) local_unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca %"class.LibUtil::String", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.LibUtil::String", align 8
  %7 = alloca %"class.LibUtil::String", align 8
  %8 = alloca %"class.LibUtil::String", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::reverse_iterator", align 8
  store i32 %1, ptr %3, align 4, !tbaa !5
  %.not = icmp eq i32 %1, 0
  br i1 %.not, label %14, label %43

14:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #11
  call void @_ZN7LibUtil6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str)
  invoke void (ptr, ptr, ...) @_ZN7LibUtil6String6formatERKS0_z(ptr dead_on_unwind nonnull writable sret(%"class.LibUtil::String") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.1, i32 noundef 103)
          to label %15 unwind label %23

15:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #11
  %16 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK5DSENT17OpticalWavelength15getInstanceNameEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull @.str.2, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %17 unwind label %25

17:                                               ; preds = %15
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.6)
          to label %18 unwind label %27

18:                                               ; preds = %17
  invoke void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %19 unwind label %29

19:                                               ; preds = %18
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %20 unwind label %31

20:                                               ; preds = %19
  invoke void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %21 unwind label %33

21:                                               ; preds = %20
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #11
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #11
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #11
  %22 = call ptr @__cxa_allocate_exception(i64 40) #11
  call void @_ZN7LibUtil9ExceptionC1ERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef nonnull align 8 dereferenceable(32) %4) #11
  invoke void @__cxa_throw(ptr nonnull %22, ptr nonnull @_ZTIN7LibUtil9ExceptionE, ptr nonnull @_ZN7LibUtil9ExceptionD1Ev) #12
          to label %107 unwind label %40

23:                                               ; preds = %14
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %39

25:                                               ; preds = %15
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %38

27:                                               ; preds = %17
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %37

29:                                               ; preds = %18
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %36

31:                                               ; preds = %19
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %35

33:                                               ; preds = %20
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #11
  br label %35

35:                                               ; preds = %33, %31
  %.pn = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #11
  br label %36

36:                                               ; preds = %35, %29
  %.pn.pn = phi { ptr, i32 } [ %.pn, %35 ], [ %30, %29 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #11
  br label %37

37:                                               ; preds = %36, %27
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %36 ], [ %28, %27 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #11
  br label %38

38:                                               ; preds = %37, %25
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %37 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #11
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #11
  br label %39

39:                                               ; preds = %38, %23
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %38 ], [ %24, %23 ]
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #11
  br label %42

40:                                               ; preds = %21
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #11
  br label %42

42:                                               ; preds = %40, %39
  %.pn49 = phi { ptr, i32 } [ %41, %40 ], [ %.pn.pn.pn.pn.pn, %39 ]
  resume { ptr, i32 } %.pn49

43:                                               ; preds = %2
  %44 = tail call i64 @_ZNK5DSENT17OpticalWavelength14getWavelengthsEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %45 = tail call i64 @_ZNK5DSENT17OpticalWavelength14getWavelengthsEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %46 = tail call noundef ptr @_ZNK5DSENT17OpticalWavelength12getDataPathsEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %47 = tail call noundef i64 @_ZNKSt6vectorIN5DSENT15OpticalDataPathESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #11
  %.not63 = icmp eq i64 %47, 0
  br i1 %.not63, label %._crit_edge62, label %.lr.ph61

._crit_edge62:                                    ; preds = %._crit_edge56, %43
  %.039.lcssa = phi double [ 0.000000e+00, %43 ], [ %.140.lcssa, %._crit_edge56 ]
  %.sroa.3.0.extract.shift = lshr i64 %44, 32
  %.sroa.3.0.extract.trunc = trunc nuw i64 %.sroa.3.0.extract.shift to i32
  %.sroa.0.0.extract.trunc = trunc i64 %45 to i32
  %reass.sub = sub i32 %.sroa.3.0.extract.trunc, %.sroa.0.0.extract.trunc
  %48 = add i32 %reass.sub, 1
  %49 = sitofp i32 %48 to double
  %50 = fmul double %.039.lcssa, %49
  ret double %50

.lr.ph61:                                         ; preds = %43, %._crit_edge56
  %51 = phi i64 [ %103, %._crit_edge56 ], [ 0, %43 ]
  %.03959 = phi double [ %.140.lcssa, %._crit_edge56 ], [ 0.000000e+00, %43 ]
  %.04158 = phi i32 [ %102, %._crit_edge56 ], [ 0, %43 ]
  %52 = call noundef ptr @_ZNK5DSENT17OpticalWavelength12getDataPathsEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %53 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN5DSENT15OpticalDataPathESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %51)
  %54 = call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #13
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %54, i8 0, i64 24, i1 false)
  call void @_ZNSt7__cxx114listIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %54) #11
  %55 = getelementptr inbounds i8, ptr %53, i64 8
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = call noundef double @_ZNK5DSENT16OpticalModulator18getExtinctionRatioEv(ptr noundef nonnull align 8 dereferenceable(105) %56)
  %58 = load ptr, ptr %55, align 8, !tbaa !9
  %59 = call noundef double @_ZNK5DSENT16OpticalModulator16getInsertionLossEv(ptr noundef nonnull align 8 dereferenceable(105) %58)
  %60 = getelementptr inbounds i8, ptr %53, i64 16
  %61 = call noundef i64 @_ZNKSt6vectorIPN5DSENT15OpticalDetectorESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #11
  %.not64 = icmp eq i64 %61, 0
  br i1 %.not64, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph61
  %62 = getelementptr inbounds i8, ptr %53, i64 40
  %63 = fdiv double %57, -1.000000e+01
  br label %71

._crit_edge:                                      ; preds = %71, %.lr.ph61
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #11
  %64 = call noundef i64 @_ZNKSt6vectorIPN5DSENT15OpticalDetectorESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #11
  %65 = trunc i64 %64 to i32
  store i32 %65, ptr %12, align 4, !tbaa !5
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %67 = load i32, ptr %66, align 4, !tbaa !5
  store i32 %67, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #11
  %68 = zext i32 %67 to i64
  %69 = call noundef i64 @_ZNKSt7__cxx114listIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #11
  %70 = icmp ugt i64 %69, %68
  br i1 %70, label %89, label %90

71:                                               ; preds = %.lr.ph, %71
  %72 = phi i64 [ 0, %.lr.ph ], [ %86, %71 ]
  %.03151 = phi i32 [ 0, %.lr.ph ], [ %85, %71 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #11
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPN5DSENT15OpticalDetectorESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %72) #11
  %74 = load ptr, ptr %73, align 8, !tbaa !20
  %75 = call noundef double @_ZNK5DSENT15OpticalDetector14getSensitivityEd(ptr noundef nonnull align 8 dereferenceable(104) %74, double noundef %57)
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %72) #11
  %77 = load double, ptr %76, align 8, !tbaa !21
  %78 = fadd double %59, %77
  %79 = fdiv double %78, 1.000000e+01
  %80 = call double @pow(double noundef 1.000000e+01, double noundef %79) #11
  %81 = fmul double %75, %80
  %82 = call double @pow(double noundef 1.000000e+01, double noundef %63) #11
  %83 = fsub double 1.000000e+00, %82
  %84 = fdiv double %81, %83
  store double %84, ptr %11, align 8, !tbaa !21
  call void @_ZNSt7__cxx114listIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #11
  %85 = add i32 %.03151, 1
  %86 = zext i32 %85 to i64
  %87 = call noundef i64 @_ZNKSt6vectorIPN5DSENT15OpticalDetectorESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #11
  %88 = icmp ugt i64 %87, %86
  br i1 %88, label %71, label %._crit_edge, !llvm.loop !23

89:                                               ; preds = %._crit_edge
  call void @_ZNSt7__cxx114listIdSaIdEE4sortEv(ptr noundef nonnull align 8 dereferenceable(24) %54)
  br label %90

90:                                               ; preds = %89, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #11
  call void @_ZNSt7__cxx114listIdSaIdEE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %54) #11
  %91 = load i32, ptr %3, align 4, !tbaa !5
  %.not65 = icmp eq i32 %91, 0
  br i1 %.not65, label %._crit_edge56, label %.lr.ph55

.lr.ph55:                                         ; preds = %90, %.lr.ph55
  %.053 = phi i32 [ %99, %.lr.ph55 ], [ 0, %90 ]
  %.14052 = phi double [ %97, %.lr.ph55 ], [ %.03959, %90 ]
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt16reverse_iteratorISt14_List_iteratorIdEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
  %93 = load double, ptr %92, align 8, !tbaa !21
  %94 = load ptr, ptr %53, align 8, !tbaa !25
  %95 = call noundef double @_ZNK5DSENT12OpticalLaser13getEfficiencyEv(ptr noundef nonnull align 8 dereferenceable(88) %94)
  %96 = fdiv double %93, %95
  %97 = fadd double %.14052, %96
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt16reverse_iteratorISt14_List_iteratorIdEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
  %99 = add nuw i32 %.053, 1
  %100 = load i32, ptr %3, align 4, !tbaa !5
  %101 = icmp ult i32 %99, %100
  br i1 %101, label %.lr.ph55, label %._crit_edge56, !llvm.loop !26

._crit_edge56:                                    ; preds = %.lr.ph55, %90
  %.140.lcssa = phi double [ %.03959, %90 ], [ %97, %.lr.ph55 ]
  call void @_ZNSt7__cxx1110_List_baseIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %54) #11
  call void @_ZdlPvm(ptr noundef nonnull %54, i64 noundef 24) #14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #11
  %102 = add i32 %.04158, 1
  %103 = zext i32 %102 to i64
  %104 = call noundef ptr @_ZNK5DSENT17OpticalWavelength12getDataPathsEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %105 = call noundef i64 @_ZNKSt6vectorIN5DSENT15OpticalDataPathESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %104) #11
  %106 = icmp ugt i64 %105, %103
  br i1 %106, label %.lr.ph61, label %._crit_edge62, !llvm.loop !27

107:                                              ; preds = %21
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorIN5DSENT15OpticalDataPathESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

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

declare noundef double @_ZNK5DSENT16OpticalModulator18getExtinctionRatioEv(ptr noundef nonnull align 8 dereferenceable(105)) local_unnamed_addr #6

declare noundef double @_ZNK5DSENT16OpticalModulator16getInsertionLossEv(ptr noundef nonnull align 8 dereferenceable(105)) local_unnamed_addr #6

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

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

declare noundef double @_ZNK5DSENT15OpticalDetector14getSensitivityEd(ptr noundef nonnull align 8 dereferenceable(104), double noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #9

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #10

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx114listIdSaIdEE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

declare noundef double @_ZNK5DSENT12OpticalLaser13getEfficiencyEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #6

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTSN5DSENT15OpticalDataPathE", !11, i64 0, !11, i64 8, !12, i64 16, !16, i64 40}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIPN5DSENT15OpticalDetectorESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIPN5DSENT15OpticalDetectorESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN5DSENT15OpticalDetectorESaIS2_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN5DSENT15OpticalDetectorESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!16 = !{!"_ZTSSt6vectorIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!20 = !{!11, !11, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!10, !11, i64 0}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !24}


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