; LLVM IR from wichue/nethello :: src/core/raw/RawPressModel.ll (ZN3chw13RawPressModel12prepare_exitEv)

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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.chw::LogContextCapture" = type { %"class.std::shared_ptr.6", ptr }
%"class.std::shared_ptr.6" = type { %"class.std::__shared_ptr.7" }
%"class.std::__shared_ptr.7" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.std::_Setw" = type { i32 }
%"struct.std::_Setprecision" = type { i32 }
%"class.chw::RawPressModel" = type { %"class.chw::workmodel", %"class.std::shared_ptr.0", %"class.std::shared_ptr.3", i8, %"class.chw::Ticker", %"class.chw::Ticker", i64, i64, i64, i32, i32, i64, i64, i64, i64 }
%"class.chw::workmodel" = type { ptr, %"class.std::enable_shared_from_this", %"class.std::shared_ptr" }
%"class.std::enable_shared_from_this" = type { %"class.std::weak_ptr" }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.3" = type { %"class.std::__shared_ptr.4" }
%"class.std::__shared_ptr.4" = type { ptr, %"class.std::__shared_count" }
%"class.chw::Ticker" = type { i64, i64, i64, %"class.chw::LogContextCapture" }

@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [80 x i8], align 1
@__FUNCTION__._ZN3chw13RawPressModel12prepare_exitEv = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [3 x i8], align 1

declare i32 @__gxx_personality_v0(...)

declare void @_ZN3chw17LogContextCaptureC1ERNS_6LoggerENS_8LogLevelEPKcS5_iS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) unnamed_addr #0

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

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

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

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

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

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

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

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

declare void @_ZN3chw13LoggerWrapper8printLogERNS_6LoggerEiPKcS4_iS4_z(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) #0

declare noundef nonnull align 8 dereferenceable(144) ptr @_ZN3chw9getLoggerEv() #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3chw13RawPressModel12prepare_exitEv(ptr noundef nonnull align 8 dereferenceable(240) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca double, align 8
  %5 = alloca i64, align 8
  %6 = alloca double, align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca %"class.chw::LogContextCapture", align 8
  %18 = alloca %"struct.std::_Setw", align 4
  %19 = alloca %"struct.std::_Setprecision", align 4
  %20 = alloca %"struct.std::_Setw", align 4
  %21 = alloca %"struct.std::_Setprecision", align 4
  %22 = alloca %"struct.std::_Setw", align 4
  %23 = alloca %"struct.std::_Setw", align 4
  %24 = alloca %"struct.std::_Setprecision", align 4
  %25 = alloca %"struct.std::_Setw", align 4
  %26 = alloca %"class.chw::LogContextCapture", align 8
  %27 = alloca %"struct.std::_Setprecision", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %28 = load ptr, ptr %2, align 8
  %29 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 3
  store i8 0, ptr %29, align 8, !tbaa !9
  %30 = call i32 @usleep(i32 noundef 100000)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %31 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 5
  %32 = call noundef i64 @_ZNK3chw6Ticker11elapsedTimeEv(ptr noundef nonnull align 8 dereferenceable(48) %31)
  %33 = trunc i64 %32 to i32
  store i32 %33, ptr %3, align 4, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store double 0.000000e+00, ptr %4, align 8, !tbaa !31
  %34 = load i32, ptr %3, align 4, !tbaa !30
  %35 = icmp ugt i32 %34, 0
  br i1 %35, label %36, label %40

36:                                               ; preds = %1
  %37 = load i32, ptr %3, align 4, !tbaa !30
  %38 = uitofp i32 %37 to double
  %39 = fdiv double %38, 1.000000e+03
  store double %39, ptr %4, align 8, !tbaa !31
  br label %41

40:                                               ; preds = %1
  store double 1.000000e+00, ptr %4, align 8, !tbaa !31
  br label %41

41:                                               ; preds = %40, %36
  %42 = load double, ptr %4, align 8, !tbaa !31
  %43 = fcmp oeq double %42, 0.000000e+00
  br i1 %43, label %44, label %45

44:                                               ; preds = %41
  store double 1.000000e+00, ptr %4, align 8, !tbaa !31
  br label %45

45:                                               ; preds = %44, %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store i64 0, ptr %5, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store double 0.000000e+00, ptr %6, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %46 unwind label %107

46:                                               ; preds = %45
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 0, ptr %11, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store double 0.000000e+00, ptr %12, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %47 unwind label %111

47:                                               ; preds = %46
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  %48 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 8
  %49 = load i64, ptr %48, align 8, !tbaa !34
  %50 = uitofp i64 %49 to double
  %51 = load double, ptr %4, align 8, !tbaa !31
  %52 = fdiv double %50, %51
  %53 = fptoui double %52 to i64
  store i64 %53, ptr %5, align 8, !tbaa !33
  %54 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 1
  %55 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3chw14RawPressClientELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %54) #7
  %56 = invoke noundef i64 @_ZN3chw14RawPressClient9GetPktNumEv(ptr noundef nonnull align 8 dereferenceable(176) %55)
          to label %57 unwind label %115

57:                                               ; preds = %47
  %58 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 11
  store i64 %56, ptr %58, align 8, !tbaa !35
  %59 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 1
  %60 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3chw14RawPressClientELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %59) #7
  %61 = invoke noundef i64 @_ZN3chw14RawPressClient6GetSeqEv(ptr noundef nonnull align 8 dereferenceable(176) %60)
          to label %62 unwind label %115

62:                                               ; preds = %57
  %63 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 12
  store i64 %61, ptr %63, align 8, !tbaa !36
  %64 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 1
  %65 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3chw14RawPressClientELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %64) #7
  %66 = invoke noundef i64 @_ZN3chw14RawPressClient9GetRcvLenEv(ptr noundef nonnull align 8 dereferenceable(176) %65)
          to label %67 unwind label %115

67:                                               ; preds = %62
  %68 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 13
  store i64 %66, ptr %68, align 8, !tbaa !37
  %69 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 1
  %70 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3chw14RawPressClientELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %69) #7
  %71 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3chw6Client7getSockEv(ptr noundef nonnull align 8 dereferenceable(120) %70)
          to label %72 unwind label %115

72:                                               ; preds = %67
  %73 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3chw6SocketELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %71) #7
  %74 = invoke noundef i64 @_ZN3chw6Socket12getRecvSpeedEv(ptr noundef nonnull align 8 dereferenceable(1072) %73)
          to label %75 unwind label %115

75:                                               ; preds = %72
  %76 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 14
  store i64 %74, ptr %76, align 8, !tbaa !38
  %77 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 13
  %78 = load i64, ptr %77, align 8, !tbaa !37
  %79 = uitofp i64 %78 to double
  %80 = load double, ptr %4, align 8, !tbaa !31
  %81 = fdiv double %79, %80
  %82 = fptoui double %81 to i64
  store i64 %82, ptr %11, align 8, !tbaa !33
  %83 = load i64, ptr %5, align 8, !tbaa !33
  invoke void @_ZN3chw11speed_humanEmRdRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i64 noundef %83, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %84 unwind label %115

84:                                               ; preds = %75
  %85 = load i64, ptr %11, align 8, !tbaa !33
  invoke void @_ZN3chw11speed_humanEmRdRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i64 noundef %85, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %86 unwind label %115

86:                                               ; preds = %84
  %87 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN3chw9getLoggerEv()
          to label %88 unwind label %115

88:                                               ; preds = %86
  invoke void (ptr, i32, ptr, ptr, i32, ptr, ...) @_ZN3chw13LoggerWrapper8printLogERNS_6LoggerEiPKcS4_iS4_z(ptr noundef nonnull align 8 dereferenceable(144) %87, i32 noundef 1, ptr noundef @.str.4, ptr noundef @__FUNCTION__._ZN3chw13RawPressModel12prepare_exitEv, i32 noundef 129, ptr noundef @.str.6)
          to label %89 unwind label %115

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %90 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 12
  %91 = load i64, ptr %90, align 8, !tbaa !36
  %92 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 11
  %93 = load i64, ptr %92, align 8, !tbaa !35
  %94 = sub i64 %91, %93
  %95 = trunc i64 %94 to i32
  store i32 %95, ptr %15, align 4, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store double 0.000000e+00, ptr %16, align 8, !tbaa !31
  %96 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 12
  %97 = load i64, ptr %96, align 8, !tbaa !36
  %98 = icmp ne i64 %97, 0
  br i1 %98, label %99, label %119

99:                                               ; preds = %89
  %100 = load i32, ptr %15, align 4, !tbaa !30
  %101 = uitofp i32 %100 to double
  %102 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 12
  %103 = load i64, ptr %102, align 8, !tbaa !36
  %104 = uitofp i64 %103 to double
  %105 = fdiv double %101, %104
  %106 = fmul double %105, 1.000000e+02
  store double %106, ptr %16, align 8, !tbaa !31
  br label %119

107:                                              ; preds = %45
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %9, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %10, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  br label %292

111:                                              ; preds = %46
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %9, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %10, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  br label %291

115:                                              ; preds = %88, %86, %84, %75, %72, %67, %62, %57, %47
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %9, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %10, align 4
  br label %290

119:                                              ; preds = %99, %89
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #7
  %120 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN3chw9getLoggerEv()
          to label %121 unwind label %226

121:                                              ; preds = %119
  invoke void @_ZN3chw17LogContextCaptureC1ERNS_6LoggerENS_8LogLevelEPKcS5_iS5_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(144) %120, i32 noundef 2, ptr noundef @.str.4, ptr noundef @__FUNCTION__._ZN3chw13RawPressModel12prepare_exitEv, i32 noundef 145, ptr noundef @.str.1)
          to label %122 unwind label %226

122:                                              ; preds = %121
  %123 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRFRSt8ios_baseS3_EEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull @_ZSt4leftRSt8ios_base)
          to label %124 unwind label %230

124:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %125 = invoke i32 @_ZSt4setwi(i32 noundef 12)
          to label %126 unwind label %234

126:                                              ; preds = %124
  %127 = getelementptr inbounds %"struct.std::_Setw", ptr %18, i32 0, i32 0
  store i32 %125, ptr %127, align 4
  %128 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt5_SetwEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %123, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %129 unwind label %234

129:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %130 = invoke i32 @_ZSt12setprecisioni(i32 noundef 0)
          to label %131 unwind label %238

131:                                              ; preds = %129
  %132 = getelementptr inbounds %"struct.std::_Setprecision", ptr %19, i32 0, i32 0
  store i32 %130, ptr %132, align 4
  %133 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt13_SetprecisionEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %128, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %134 unwind label %238

134:                                              ; preds = %131
  %135 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRFRSt8ios_baseS3_EEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %133, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
          to label %136 unwind label %238

136:                                              ; preds = %134
  %137 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRdEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %135, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %138 unwind label %238

138:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %139 = invoke i32 @_ZSt4setwi(i32 noundef 8)
          to label %140 unwind label %242

140:                                              ; preds = %138
  %141 = getelementptr inbounds %"struct.std::_Setw", ptr %20, i32 0, i32 0
  store i32 %139, ptr %141, align 4
  %142 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt5_SetwEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %137, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %143 unwind label %242

143:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %144 = invoke i32 @_ZSt12setprecisioni(i32 noundef 2)
          to label %145 unwind label %246

145:                                              ; preds = %143
  %146 = getelementptr inbounds %"struct.std::_Setprecision", ptr %21, i32 0, i32 0
  store i32 %144, ptr %146, align 4
  %147 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt13_SetprecisionEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %142, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %148 unwind label %246

148:                                              ; preds = %145
  %149 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRFRSt8ios_baseS3_EEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %147, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
          to label %150 unwind label %246

150:                                              ; preds = %148
  %151 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRdEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %149, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %152 unwind label %246

152:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %153 = invoke i32 @_ZSt4setwi(i32 noundef 12)
          to label %154 unwind label %250

154:                                              ; preds = %152
  %155 = getelementptr inbounds %"struct.std::_Setw", ptr %22, i32 0, i32 0
  store i32 %153, ptr %155, align 4
  %156 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt5_SetwEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %151, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %157 unwind label %250

157:                                              ; preds = %154
  %158 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %156, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %159 unwind label %250

159:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %160 = invoke i32 @_ZSt4setwi(i32 noundef 8)
          to label %161 unwind label %254

161:                                              ; preds = %159
  %162 = getelementptr inbounds %"struct.std::_Setw", ptr %23, i32 0, i32 0
  store i32 %160, ptr %162, align 4
  %163 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt5_SetwEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %158, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %164 unwind label %254

164:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %165 = invoke i32 @_ZSt12setprecisioni(i32 noundef 2)
          to label %166 unwind label %258

166:                                              ; preds = %164
  %167 = getelementptr inbounds %"struct.std::_Setprecision", ptr %24, i32 0, i32 0
  store i32 %165, ptr %167, align 4
  %168 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt13_SetprecisionEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %163, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %169 unwind label %258

169:                                              ; preds = %166
  %170 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRFRSt8ios_baseS3_EEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %168, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
          to label %171 unwind label %258

171:                                              ; preds = %169
  %172 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRdEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %170, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %173 unwind label %258

173:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %174 = invoke i32 @_ZSt4setwi(i32 noundef 12)
          to label %175 unwind label %262

175:                                              ; preds = %173
  %176 = getelementptr inbounds %"struct.std::_Setw", ptr %25, i32 0, i32 0
  store i32 %174, ptr %176, align 4
  %177 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt5_SetwEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %172, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %178 unwind label %262

178:                                              ; preds = %175
  %179 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %177, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %180 unwind label %262

180:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @_ZN3chw17LogContextCaptureD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #7
  %181 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN3chw9getLoggerEv()
          to label %182 unwind label %275

182:                                              ; preds = %180
  invoke void @_ZN3chw17LogContextCaptureC1ERNS_6LoggerENS_8LogLevelEPKcS5_iS5_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(144) %181, i32 noundef 2, ptr noundef @.str.4, ptr noundef @__FUNCTION__._ZN3chw13RawPressModel12prepare_exitEv, i32 noundef 157, ptr noundef @.str.1)
          to label %183 unwind label %275

183:                                              ; preds = %182
  %184 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA14_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 1 dereferenceable(14) @.str.7)
          to label %185 unwind label %279

185:                                              ; preds = %183
  %186 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 6
  %187 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRVmEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %184, ptr noundef nonnull align 8 dereferenceable(8) %186)
          to label %188 unwind label %279

188:                                              ; preds = %185
  %189 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA8_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %187, ptr noundef nonnull align 1 dereferenceable(8) @.str.8)
          to label %190 unwind label %279

190:                                              ; preds = %188
  %191 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 8
  %192 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRmEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %189, ptr noundef nonnull align 8 dereferenceable(8) %191)
          to label %193 unwind label %279

193:                                              ; preds = %190
  %194 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA15_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %192, ptr noundef nonnull align 1 dereferenceable(15) @.str.9)
          to label %195 unwind label %279

195:                                              ; preds = %193
  %196 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 11
  %197 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRmEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %194, ptr noundef nonnull align 8 dereferenceable(8) %196)
          to label %198 unwind label %279

198:                                              ; preds = %195
  %199 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA8_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %197, ptr noundef nonnull align 1 dereferenceable(8) @.str.8)
          to label %200 unwind label %279

200:                                              ; preds = %198
  %201 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 13
  %202 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRmEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %199, ptr noundef nonnull align 8 dereferenceable(8) %201)
          to label %203 unwind label %279

203:                                              ; preds = %200
  %204 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA6_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %202, ptr noundef nonnull align 1 dereferenceable(6) @.str.10)
          to label %205 unwind label %279

205:                                              ; preds = %203
  %206 = getelementptr inbounds %"class.chw::RawPressModel", ptr %28, i32 0, i32 12
  %207 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRmEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %204, ptr noundef nonnull align 8 dereferenceable(8) %206)
          to label %208 unwind label %279

208:                                              ; preds = %205
  %209 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA7_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %207, ptr noundef nonnull align 1 dereferenceable(7) @.str.11)
          to label %210 unwind label %279

210:                                              ; preds = %208
  %211 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRjEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %209, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %212 unwind label %279

212:                                              ; preds = %210
  %213 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA2_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %211, ptr noundef nonnull align 1 dereferenceable(2) @.str.12)
          to label %214 unwind label %279

214:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %215 = invoke i32 @_ZSt12setprecisioni(i32 noundef 2)
          to label %216 unwind label %283

216:                                              ; preds = %214
  %217 = getelementptr inbounds %"struct.std::_Setprecision", ptr %27, i32 0, i32 0
  store i32 %215, ptr %217, align 4
  %218 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt13_SetprecisionEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %213, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %219 unwind label %283

219:                                              ; preds = %216
  %220 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRFRSt8ios_baseS3_EEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %218, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
          to label %221 unwind label %283

221:                                              ; preds = %219
  %222 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRdEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %220, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %223 unwind label %283

223:                                              ; preds = %221
  %224 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA3_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %222, ptr noundef nonnull align 1 dereferenceable(3) @.str.13)
          to label %225 unwind label %283

225:                                              ; preds = %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @_ZN3chw17LogContextCaptureD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  ret void

226:                                              ; preds = %121, %119
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %9, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %10, align 4
  br label %274

230:                                              ; preds = %122
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %9, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %10, align 4
  br label %273

234:                                              ; preds = %126, %124
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %9, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %10, align 4
  br label %272

238:                                              ; preds = %136, %134, %131, %129
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %9, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %10, align 4
  br label %271

242:                                              ; preds = %140, %138
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %9, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %10, align 4
  br label %270

246:                                              ; preds = %150, %148, %145, %143
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %9, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %10, align 4
  br label %269

250:                                              ; preds = %157, %154, %152
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %9, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %10, align 4
  br label %268

254:                                              ; preds = %161, %159
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %9, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %10, align 4
  br label %267

258:                                              ; preds = %171, %169, %166, %164
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %9, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %10, align 4
  br label %266

262:                                              ; preds = %178, %175, %173
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %9, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %266

266:                                              ; preds = %262, %258
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %267

267:                                              ; preds = %266, %254
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %268

268:                                              ; preds = %267, %250
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %269

269:                                              ; preds = %268, %246
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %270

270:                                              ; preds = %269, %242
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %271

271:                                              ; preds = %270, %238
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %272

272:                                              ; preds = %271, %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %273

273:                                              ; preds = %272, %230
  call void @_ZN3chw17LogContextCaptureD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  br label %274

274:                                              ; preds = %273, %226
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  br label %289

275:                                              ; preds = %182, %180
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %9, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %10, align 4
  br label %288

279:                                              ; preds = %212, %210, %208, %205, %203, %200, %198, %195, %193, %190, %188, %185, %183
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %9, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %10, align 4
  br label %287

283:                                              ; preds = %223, %221, %219, %216, %214
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %9, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %287

287:                                              ; preds = %283, %279
  call void @_ZN3chw17LogContextCaptureD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  br label %288

288:                                              ; preds = %287, %275
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #7
  br label %289

289:                                              ; preds = %288, %274
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %290

290:                                              ; preds = %289, %115
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  br label %291

291:                                              ; preds = %290, %111
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %292

292:                                              ; preds = %291, %107
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %293

293:                                              ; preds = %292
  %294 = load ptr, ptr %9, align 8
  %295 = load i32, ptr %10, align 4
  %296 = insertvalue { ptr, i32 } poison, ptr %294, 0
  %297 = insertvalue { ptr, i32 } %296, i32 %295, 1
  resume { ptr, i32 } %297
}

declare i32 @usleep(i32 noundef) #0

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

declare noundef i64 @_ZN3chw14RawPressClient9GetPktNumEv(ptr noundef nonnull align 8 dereferenceable(176)) #0

declare noundef i64 @_ZN3chw14RawPressClient6GetSeqEv(ptr noundef nonnull align 8 dereferenceable(176)) #0

declare noundef i64 @_ZN3chw14RawPressClient9GetRcvLenEv(ptr noundef nonnull align 8 dereferenceable(176)) #0

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3chw6Client7getSockEv(ptr noundef nonnull align 8 dereferenceable(120)) #0

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

declare noundef i64 @_ZN3chw6Socket12getRecvSpeedEv(ptr noundef nonnull align 8 dereferenceable(1072)) #0

declare void @_ZN3chw11speed_humanEmRdRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt4leftRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt4setwi(i32 noundef) #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #5

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

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

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

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

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

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

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

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

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

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

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

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

attributes #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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 #7 = { 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, !23, i64 72}
!10 = !{!"_ZTSN3chw13RawPressModelE", !11, i64 0, !19, i64 40, !21, i64 56, !23, i64 72, !24, i64 80, !24, i64 128, !25, i64 176, !25, i64 184, !25, i64 192, !29, i64 200, !29, i64 204, !25, i64 208, !25, i64 216, !25, i64 224, !25, i64 232}
!11 = !{!"_ZTSN3chw9workmodelE", !12, i64 8, !16, i64 24}
!12 = !{!"_ZTSSt23enable_shared_from_thisIN3chw9workmodelEE", !13, i64 0}
!13 = !{!"_ZTSSt8weak_ptrIN3chw9workmodelEE", !14, i64 0}
!14 = !{!"_ZTSSt10__weak_ptrIN3chw9workmodelELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !15, i64 8}
!15 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!16 = !{!"_ZTSSt10shared_ptrIN3chw9EventLoopEE", !17, i64 0}
!17 = !{!"_ZTSSt12__shared_ptrIN3chw9EventLoopELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !18, i64 8}
!18 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!19 = !{!"_ZTSSt10shared_ptrIN3chw14RawPressClientEE", !20, i64 0}
!20 = !{!"_ZTSSt12__shared_ptrIN3chw14RawPressClientELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !18, i64 8}
!21 = !{!"_ZTSSt10shared_ptrIN3chw5TimerEE", !22, i64 0}
!22 = !{!"_ZTSSt12__shared_ptrIN3chw5TimerELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !18, i64 8}
!23 = !{!"bool", !7, i64 0}
!24 = !{!"_ZTSN3chw6TickerE", !25, i64 0, !25, i64 8, !25, i64 16, !26, i64 24}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSN3chw17LogContextCaptureE", !27, i64 0, !6, i64 16}
!27 = !{!"_ZTSSt10shared_ptrIN3chw10LogContextEE", !28, i64 0}
!28 = !{!"_ZTSSt12__shared_ptrIN3chw10LogContextELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !18, i64 8}
!29 = !{!"int", !7, i64 0}
!30 = !{!29, !29, i64 0}
!31 = !{!32, !32, i64 0}
!32 = !{!"double", !7, i64 0}
!33 = !{!25, !25, i64 0}
!34 = !{!10, !25, i64 192}
!35 = !{!10, !25, i64 208}
!36 = !{!10, !25, i64 216}
!37 = !{!10, !25, i64 224}
!38 = !{!10, !25, i64 232}


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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.chw::LogContextCapture" = type { %"class.std::shared_ptr.6", ptr }
%"class.std::shared_ptr.6" = type { %"class.std::__shared_ptr.7" }
%"class.std::__shared_ptr.7" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.std::_Setw" = type { i32 }
%"struct.std::_Setprecision" = type { i32 }

@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [80 x i8], align 1
@__FUNCTION__._ZN3chw13RawPressModel12prepare_exitEv = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [3 x i8], align 1

declare i32 @__gxx_personality_v0(...)

declare void @_ZN3chw17LogContextCaptureC1ERNS_6LoggerENS_8LogLevelEPKcS5_iS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) unnamed_addr #0

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

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

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

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

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

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

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

declare void @_ZN3chw13LoggerWrapper8printLogERNS_6LoggerEiPKcS4_iS4_z(ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

declare noundef nonnull align 8 dereferenceable(144) ptr @_ZN3chw9getLoggerEv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3chw13RawPressModel12prepare_exitEv(ptr noundef nonnull align 8 dereferenceable(240) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca double, align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca %"class.chw::LogContextCapture", align 8
  %12 = alloca %"struct.std::_Setw", align 4
  %13 = alloca %"struct.std::_Setprecision", align 4
  %14 = alloca %"struct.std::_Setw", align 4
  %15 = alloca %"struct.std::_Setprecision", align 4
  %16 = alloca %"struct.std::_Setw", align 4
  %17 = alloca %"struct.std::_Setw", align 4
  %18 = alloca %"struct.std::_Setprecision", align 4
  %19 = alloca %"struct.std::_Setw", align 4
  %20 = alloca %"class.chw::LogContextCapture", align 8
  %21 = alloca %"struct.std::_Setprecision", align 4
  %22 = getelementptr inbounds i8, ptr %0, i64 72
  store i8 0, ptr %22, align 8, !tbaa !5
  %23 = tail call i32 @usleep(i32 noundef 100000)
  %24 = getelementptr inbounds i8, ptr %0, i64 128
  %25 = tail call noundef i64 @_ZNK3chw6Ticker11elapsedTimeEv(ptr noundef nonnull align 8 dereferenceable(48) %24)
  %26 = trunc i64 %25 to i32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %.not = icmp eq i32 %26, 0
  %27 = uitofp i32 %26 to double
  %28 = fdiv double %27, 1.000000e+03
  %storemerge = select i1 %.not, double 1.000000e+00, double %28
  %29 = fcmp oeq double %storemerge, 0.000000e+00
  %storemerge23 = select i1 %29, double 1.000000e+00, double %storemerge
  store double %storemerge23, ptr %2, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  store double 0.000000e+00, ptr %3, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %30 unwind label %77

30:                                               ; preds = %1
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  store double 0.000000e+00, ptr %6, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %31 unwind label %79

31:                                               ; preds = %30
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  %32 = getelementptr inbounds i8, ptr %0, i64 192
  %33 = load i64, ptr %32, align 8, !tbaa !31
  %34 = uitofp i64 %33 to double
  %35 = load double, ptr %2, align 8, !tbaa !29
  %36 = fdiv double %34, %35
  %37 = fptoui double %36 to i64
  %38 = getelementptr inbounds i8, ptr %0, i64 40
  %39 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3chw14RawPressClientELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %38) #7
  %40 = invoke noundef i64 @_ZN3chw14RawPressClient9GetPktNumEv(ptr noundef nonnull align 8 dereferenceable(176) %39)
          to label %41 unwind label %81

41:                                               ; preds = %31
  %42 = getelementptr inbounds i8, ptr %0, i64 208
  store i64 %40, ptr %42, align 8, !tbaa !32
  %43 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3chw14RawPressClientELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %38) #7
  %44 = invoke noundef i64 @_ZN3chw14RawPressClient6GetSeqEv(ptr noundef nonnull align 8 dereferenceable(176) %43)
          to label %45 unwind label %81

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %0, i64 216
  store i64 %44, ptr %46, align 8, !tbaa !33
  %47 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3chw14RawPressClientELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %38) #7
  %48 = invoke noundef i64 @_ZN3chw14RawPressClient9GetRcvLenEv(ptr noundef nonnull align 8 dereferenceable(176) %47)
          to label %49 unwind label %81

49:                                               ; preds = %45
  %50 = getelementptr inbounds i8, ptr %0, i64 224
  store i64 %48, ptr %50, align 8, !tbaa !34
  %51 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3chw14RawPressClientELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %38) #7
  %52 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3chw6Client7getSockEv(ptr noundef nonnull align 8 dereferenceable(120) %51)
          to label %53 unwind label %81

53:                                               ; preds = %49
  %54 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN3chw6SocketELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %52) #7
  %55 = invoke noundef i64 @_ZN3chw6Socket12getRecvSpeedEv(ptr noundef nonnull align 8 dereferenceable(1072) %54)
          to label %56 unwind label %81

56:                                               ; preds = %53
  %57 = getelementptr inbounds i8, ptr %0, i64 232
  store i64 %55, ptr %57, align 8, !tbaa !35
  %58 = load i64, ptr %50, align 8, !tbaa !34
  %59 = load double, ptr %2, align 8, !tbaa !29
  invoke void @_ZN3chw11speed_humanEmRdRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i64 noundef %37, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %60 unwind label %81

60:                                               ; preds = %56
  %61 = uitofp i64 %58 to double
  %62 = fdiv double %61, %59
  %63 = fptoui double %62 to i64
  invoke void @_ZN3chw11speed_humanEmRdRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i64 noundef %63, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %64 unwind label %81

64:                                               ; preds = %60
  %65 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN3chw9getLoggerEv()
          to label %66 unwind label %81

66:                                               ; preds = %64
  invoke void (ptr, i32, ptr, ptr, i32, ptr, ...) @_ZN3chw13LoggerWrapper8printLogERNS_6LoggerEiPKcS4_iS4_z(ptr noundef nonnull align 8 dereferenceable(144) %65, i32 noundef 1, ptr noundef nonnull @.str.4, ptr noundef nonnull @__FUNCTION__._ZN3chw13RawPressModel12prepare_exitEv, i32 noundef 129, ptr noundef nonnull @.str.6)
          to label %67 unwind label %81

67:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %68 = load i64, ptr %46, align 8, !tbaa !33
  %69 = load i64, ptr %42, align 8, !tbaa !32
  %70 = sub i64 %68, %69
  %71 = trunc i64 %70 to i32
  store i32 %71, ptr %9, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %.not24 = icmp eq i64 %68, 0
  %72 = uitofp i32 %71 to double
  %73 = uitofp i64 %68 to double
  %74 = fdiv double %72, %73
  %75 = fmul double %74, 1.000000e+02
  %storemerge41 = select i1 %.not24, double 0.000000e+00, double %75
  store double %storemerge41, ptr %10, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  %76 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN3chw9getLoggerEv()
          to label %83 unwind label %166

77:                                               ; preds = %1
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  br label %206

79:                                               ; preds = %30
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #7
  br label %205

81:                                               ; preds = %66, %64, %60, %56, %53, %49, %45, %41, %31
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %204

83:                                               ; preds = %67
  invoke void @_ZN3chw17LogContextCaptureC1ERNS_6LoggerENS_8LogLevelEPKcS5_iS5_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(144) %76, i32 noundef 2, ptr noundef nonnull @.str.4, ptr noundef nonnull @__FUNCTION__._ZN3chw13RawPressModel12prepare_exitEv, i32 noundef 145, ptr noundef nonnull @.str.1)
          to label %84 unwind label %166

84:                                               ; preds = %83
  %85 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRFRSt8ios_baseS3_EEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull @_ZSt4leftRSt8ios_base)
          to label %86 unwind label %168

86:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %87 = call i32 @_ZSt4setwi(i32 noundef 12)
  store i32 %87, ptr %12, align 4
  %88 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt5_SetwEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %85, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %89 unwind label %170

89:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  %90 = call i32 @_ZSt12setprecisioni(i32 noundef 0)
  store i32 %90, ptr %13, align 4
  %91 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt13_SetprecisionEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %92 unwind label %172

92:                                               ; preds = %89
  %93 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRFRSt8ios_baseS3_EEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %91, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
          to label %94 unwind label %172

94:                                               ; preds = %92
  %95 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRdEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %93, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %96 unwind label %172

96:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  %97 = call i32 @_ZSt4setwi(i32 noundef 8)
  store i32 %97, ptr %14, align 4
  %98 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt5_SetwEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %95, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %99 unwind label %174

99:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  %100 = call i32 @_ZSt12setprecisioni(i32 noundef 2)
  store i32 %100, ptr %15, align 4
  %101 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt13_SetprecisionEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %98, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %102 unwind label %176

102:                                              ; preds = %99
  %103 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRFRSt8ios_baseS3_EEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %101, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
          to label %104 unwind label %176

104:                                              ; preds = %102
  %105 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRdEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %103, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %106 unwind label %176

106:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  %107 = call i32 @_ZSt4setwi(i32 noundef 12)
  store i32 %107, ptr %16, align 4
  %108 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt5_SetwEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %105, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %109 unwind label %178

109:                                              ; preds = %106
  %110 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %108, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %111 unwind label %178

111:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %112 = call i32 @_ZSt4setwi(i32 noundef 8)
  store i32 %112, ptr %17, align 4
  %113 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt5_SetwEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %110, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %114 unwind label %180

114:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  %115 = call i32 @_ZSt12setprecisioni(i32 noundef 2)
  store i32 %115, ptr %18, align 4
  %116 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt13_SetprecisionEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %113, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %117 unwind label %182

117:                                              ; preds = %114
  %118 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRFRSt8ios_baseS3_EEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %116, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
          to label %119 unwind label %182

119:                                              ; preds = %117
  %120 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRdEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %118, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %121 unwind label %182

121:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #7
  %122 = call i32 @_ZSt4setwi(i32 noundef 12)
  store i32 %122, ptr %19, align 4
  %123 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt5_SetwEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %120, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %124 unwind label %184

124:                                              ; preds = %121
  %125 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %123, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %126 unwind label %184

126:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @_ZN3chw17LogContextCaptureD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #7
  %127 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN3chw9getLoggerEv()
          to label %128 unwind label %195

128:                                              ; preds = %126
  invoke void @_ZN3chw17LogContextCaptureC1ERNS_6LoggerENS_8LogLevelEPKcS5_iS5_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(144) %127, i32 noundef 2, ptr noundef nonnull @.str.4, ptr noundef nonnull @__FUNCTION__._ZN3chw13RawPressModel12prepare_exitEv, i32 noundef 157, ptr noundef nonnull @.str.1)
          to label %129 unwind label %195

129:                                              ; preds = %128
  %130 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA14_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 1 dereferenceable(14) @.str.7)
          to label %131 unwind label %197

131:                                              ; preds = %129
  %132 = getelementptr inbounds i8, ptr %0, i64 176
  %133 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRVmEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %130, ptr noundef nonnull align 8 dereferenceable(8) %132)
          to label %134 unwind label %197

134:                                              ; preds = %131
  %135 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA8_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %133, ptr noundef nonnull align 1 dereferenceable(8) @.str.8)
          to label %136 unwind label %197

136:                                              ; preds = %134
  %137 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRmEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %135, ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %138 unwind label %197

138:                                              ; preds = %136
  %139 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA15_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %137, ptr noundef nonnull align 1 dereferenceable(15) @.str.9)
          to label %140 unwind label %197

140:                                              ; preds = %138
  %141 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRmEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %139, ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %142 unwind label %197

142:                                              ; preds = %140
  %143 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA8_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %141, ptr noundef nonnull align 1 dereferenceable(8) @.str.8)
          to label %144 unwind label %197

144:                                              ; preds = %142
  %145 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRmEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %143, ptr noundef nonnull align 8 dereferenceable(8) %50)
          to label %146 unwind label %197

146:                                              ; preds = %144
  %147 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA6_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %145, ptr noundef nonnull align 1 dereferenceable(6) @.str.10)
          to label %148 unwind label %197

148:                                              ; preds = %146
  %149 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRmEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %147, ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %150 unwind label %197

150:                                              ; preds = %148
  %151 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA7_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %149, ptr noundef nonnull align 1 dereferenceable(7) @.str.11)
          to label %152 unwind label %197

152:                                              ; preds = %150
  %153 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRjEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %151, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %154 unwind label %197

154:                                              ; preds = %152
  %155 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA2_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %153, ptr noundef nonnull align 1 dereferenceable(2) @.str.12)
          to label %156 unwind label %197

156:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #7
  %157 = call i32 @_ZSt12setprecisioni(i32 noundef 2)
  store i32 %157, ptr %21, align 4
  %158 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsISt13_SetprecisionEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %155, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %159 unwind label %199

159:                                              ; preds = %156
  %160 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRFRSt8ios_baseS3_EEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %158, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
          to label %161 unwind label %199

161:                                              ; preds = %159
  %162 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRdEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %160, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %163 unwind label %199

163:                                              ; preds = %161
  %164 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA3_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %162, ptr noundef nonnull align 1 dereferenceable(3) @.str.13)
          to label %165 unwind label %199

165:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  call void @_ZN3chw17LogContextCaptureD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  ret void

166:                                              ; preds = %83, %67
  %167 = landingpad { ptr, i32 }
          cleanup
  br label %194

168:                                              ; preds = %84
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %193

170:                                              ; preds = %86
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %192

172:                                              ; preds = %94, %92, %89
  %173 = landingpad { ptr, i32 }
          cleanup
  br label %191

174:                                              ; preds = %96
  %175 = landingpad { ptr, i32 }
          cleanup
  br label %190

176:                                              ; preds = %104, %102, %99
  %177 = landingpad { ptr, i32 }
          cleanup
  br label %189

178:                                              ; preds = %109, %106
  %179 = landingpad { ptr, i32 }
          cleanup
  br label %188

180:                                              ; preds = %111
  %181 = landingpad { ptr, i32 }
          cleanup
  br label %187

182:                                              ; preds = %119, %117, %114
  %183 = landingpad { ptr, i32 }
          cleanup
  br label %186

184:                                              ; preds = %124, %121
  %185 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  br label %186

186:                                              ; preds = %184, %182
  %.pn = phi { ptr, i32 } [ %185, %184 ], [ %183, %182 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  br label %187

187:                                              ; preds = %186, %180
  %.pn.pn = phi { ptr, i32 } [ %.pn, %186 ], [ %181, %180 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  br label %188

188:                                              ; preds = %187, %178
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %187 ], [ %179, %178 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  br label %189

189:                                              ; preds = %188, %176
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %188 ], [ %177, %176 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  br label %190

190:                                              ; preds = %189, %174
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %189 ], [ %175, %174 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  br label %191

191:                                              ; preds = %190, %172
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %190 ], [ %173, %172 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  br label %192

192:                                              ; preds = %191, %170
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %191 ], [ %171, %170 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  br label %193

193:                                              ; preds = %192, %168
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %192 ], [ %169, %168 ]
  call void @_ZN3chw17LogContextCaptureD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  br label %194

194:                                              ; preds = %193, %166
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %193 ], [ %167, %166 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %203

195:                                              ; preds = %128, %126
  %196 = landingpad { ptr, i32 }
          cleanup
  br label %202

197:                                              ; preds = %154, %152, %150, %148, %146, %144, %142, %140, %138, %136, %134, %131, %129
  %198 = landingpad { ptr, i32 }
          cleanup
  br label %201

199:                                              ; preds = %163, %161, %159, %156
  %200 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  br label %201

201:                                              ; preds = %199, %197
  %.pn34 = phi { ptr, i32 } [ %200, %199 ], [ %198, %197 ]
  call void @_ZN3chw17LogContextCaptureD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  br label %202

202:                                              ; preds = %201, %195
  %.pn34.pn = phi { ptr, i32 } [ %.pn34, %201 ], [ %196, %195 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #7
  br label %203

203:                                              ; preds = %202, %194
  %.pn34.pn.pn = phi { ptr, i32 } [ %.pn34.pn, %202 ], [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn, %194 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  br label %204

204:                                              ; preds = %203, %81
  %.pn34.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn, %203 ], [ %82, %81 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  br label %205

205:                                              ; preds = %204, %79
  %.pn34.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn.pn, %204 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  br label %206

206:                                              ; preds = %205, %77
  %.pn34.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn.pn.pn, %205 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn34.pn.pn.pn.pn.pn
}

declare i32 @usleep(i32 noundef) local_unnamed_addr #0

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

declare noundef i64 @_ZN3chw14RawPressClient9GetPktNumEv(ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #0

declare noundef i64 @_ZN3chw14RawPressClient6GetSeqEv(ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #0

declare noundef i64 @_ZN3chw14RawPressClient9GetRcvLenEv(ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #0

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3chw6Client7getSockEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #0

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

declare noundef i64 @_ZN3chw6Socket12getRecvSpeedEv(ptr noundef nonnull align 8 dereferenceable(1072)) local_unnamed_addr #0

declare void @_ZN3chw11speed_humanEmRdRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt4leftRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt4setwi(i32 noundef) local_unnamed_addr #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #5

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

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

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

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

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

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

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

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

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

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

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

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

attributes #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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 #7 = { 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, !22, i64 72}
!6 = !{!"_ZTSN3chw13RawPressModelE", !7, i64 0, !18, i64 40, !20, i64 56, !22, i64 72, !23, i64 80, !23, i64 128, !24, i64 176, !24, i64 184, !24, i64 192, !28, i64 200, !28, i64 204, !24, i64 208, !24, i64 216, !24, i64 224, !24, i64 232}
!7 = !{!"_ZTSN3chw9workmodelE", !8, i64 8, !15, i64 24}
!8 = !{!"_ZTSSt23enable_shared_from_thisIN3chw9workmodelEE", !9, i64 0}
!9 = !{!"_ZTSSt8weak_ptrIN3chw9workmodelEE", !10, i64 0}
!10 = !{!"_ZTSSt10__weak_ptrIN3chw9workmodelELN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !14, i64 8}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0}
!15 = !{!"_ZTSSt10shared_ptrIN3chw9EventLoopEE", !16, i64 0}
!16 = !{!"_ZTSSt12__shared_ptrIN3chw9EventLoopELN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !17, i64 8}
!17 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0}
!18 = !{!"_ZTSSt10shared_ptrIN3chw14RawPressClientEE", !19, i64 0}
!19 = !{!"_ZTSSt12__shared_ptrIN3chw14RawPressClientELN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !17, i64 8}
!20 = !{!"_ZTSSt10shared_ptrIN3chw5TimerEE", !21, i64 0}
!21 = !{!"_ZTSSt12__shared_ptrIN3chw5TimerELN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !17, i64 8}
!22 = !{!"bool", !12, i64 0}
!23 = !{!"_ZTSN3chw6TickerE", !24, i64 0, !24, i64 8, !24, i64 16, !25, i64 24}
!24 = !{!"long", !12, i64 0}
!25 = !{!"_ZTSN3chw17LogContextCaptureE", !26, i64 0, !11, i64 16}
!26 = !{!"_ZTSSt10shared_ptrIN3chw10LogContextEE", !27, i64 0}
!27 = !{!"_ZTSSt12__shared_ptrIN3chw10LogContextELN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !17, i64 8}
!28 = !{!"int", !12, i64 0}
!29 = !{!30, !30, i64 0}
!30 = !{!"double", !12, i64 0}
!31 = !{!6, !24, i64 192}
!32 = !{!6, !24, i64 208}
!33 = !{!6, !24, i64 216}
!34 = !{!6, !24, i64 224}
!35 = !{!6, !24, i64 232}
!36 = !{!28, !28, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass