; LLVM IR from EricZinda/InductorHtn :: src/FXPlatform (NanoTrace)

; 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.TraceRecord = type { i32, %"class.std::vector", double, i8, i64, %"class.std::__cxx11::basic_string" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@.str.36 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [84 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN9NanoTrace9TraceImplERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdi11TraceDetailbPdiPKcSB_SB_SB_SB_SB_SB_SB_SB_SB_(ptr noundef nonnull align 8 dereferenceable(12) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, double noundef %2, i32 noundef %3, i32 noundef %4, i1 noundef zeroext %5, ptr noundef %6, i32 noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17) #2 align 2 personality ptr @__gxx_personality_v0 {
  %19 = alloca double, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i8, align 1
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca %class.TraceRecord, align 8
  %39 = alloca ptr, align 8
  %40 = alloca i32, align 4
  %41 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %42 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %20, align 8, !tbaa !5
  store ptr %1, ptr %21, align 8, !tbaa !5
  store double %2, ptr %22, align 8, !tbaa !9
  store i32 %3, ptr %23, align 4, !tbaa !11
  store i32 %4, ptr %24, align 4, !tbaa !13
  %43 = zext i1 %5 to i8
  store i8 %43, ptr %25, align 1, !tbaa !15
  store ptr %6, ptr %26, align 8, !tbaa !5
  store i32 %7, ptr %27, align 4, !tbaa !11
  store ptr %8, ptr %28, align 8, !tbaa !5
  store ptr %9, ptr %29, align 8, !tbaa !5
  store ptr %10, ptr %30, align 8, !tbaa !5
  store ptr %11, ptr %31, align 8, !tbaa !5
  store ptr %12, ptr %32, align 8, !tbaa !5
  store ptr %13, ptr %33, align 8, !tbaa !5
  store ptr %14, ptr %34, align 8, !tbaa !5
  store ptr %15, ptr %35, align 8, !tbaa !5
  store ptr %16, ptr %36, align 8, !tbaa !5
  store ptr %17, ptr %37, align 8, !tbaa !5
  %44 = load ptr, ptr %20, align 8
  %45 = load i32, ptr %23, align 4, !tbaa !11
  %46 = sext i32 %45 to i64
  %47 = call noundef i64 @_ZN9NanoTrace16allowedTraceTypeEv(ptr noundef nonnull align 8 dereferenceable(12) %44)
  %48 = and i64 %46, %47
  %49 = icmp ne i64 %48, 0
  br i1 %49, label %50, label %54

50:                                               ; preds = %18
  %51 = load i32, ptr %24, align 4, !tbaa !13
  %52 = call noundef i32 @_ZN9NanoTrace11detailLevelEv(ptr noundef nonnull align 8 dereferenceable(12) %44)
  %53 = icmp sle i32 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50, %18
  store double 0.000000e+00, ptr %19, align 8
  br label %168

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 88, ptr %38) #6
  call void @_ZN11TraceRecordC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %38)
  %56 = load i32, ptr %27, align 4, !tbaa !11
  invoke void @_ZN11TraceRecord9dataCountEi(ptr noundef nonnull align 8 dereferenceable(88) %38, i32 noundef %56)
          to label %57 unwind label %65

57:                                               ; preds = %55
  invoke void @_ZN11TraceRecord11elapsedTimeEd(ptr noundef nonnull align 8 dereferenceable(88) %38, double noundef 0.000000e+00)
          to label %58 unwind label %65

58:                                               ; preds = %57
  %59 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_ZN11TraceRecord8traceKeyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(88) %38, ptr noundef nonnull align 8 dereferenceable(32) %59)
          to label %60 unwind label %65

60:                                               ; preds = %58
  invoke void @_Z39failfastThis_uncaught_exception_handlerPvbPKcS1_l(ptr noundef %44, i1 noundef zeroext true, ptr noundef @.str.36, ptr noundef @.str.37, i64 noundef 86)
          to label %61 unwind label %65

61:                                               ; preds = %60
  %62 = call i64 @time(ptr noundef null) #6
  invoke void @_ZN11TraceRecord9timestampEm(ptr noundef nonnull align 8 dereferenceable(88) %38, i64 noundef %62)
          to label %63 unwind label %65

63:                                               ; preds = %61
  %64 = load i32, ptr %27, align 4, !tbaa !11
  switch i32 %64, label %139 [
    i32 10, label %69
    i32 9, label %76
    i32 8, label %83
    i32 7, label %90
    i32 6, label %97
    i32 5, label %104
    i32 4, label %111
    i32 3, label %118
    i32 2, label %125
    i32 1, label %132
  ]

65:                                               ; preds = %135, %132, %128, %125, %121, %118, %114, %111, %107, %104, %100, %97, %93, %90, %86, %83, %79, %76, %72, %69, %61, %60, %58, %57, %55
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %39, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %40, align 4
  br label %167

69:                                               ; preds = %63
  %70 = load ptr, ptr %37, align 8, !tbaa !5
  %71 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %38)
          to label %72 unwind label %65

72:                                               ; preds = %69
  %73 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef 9) #6
  %74 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %73, ptr noundef %70)
          to label %75 unwind label %65

75:                                               ; preds = %72
  br label %76

76:                                               ; preds = %75, %63
  %77 = load ptr, ptr %36, align 8, !tbaa !5
  %78 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %38)
          to label %79 unwind label %65

79:                                               ; preds = %76
  %80 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef 8) #6
  %81 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %80, ptr noundef %77)
          to label %82 unwind label %65

82:                                               ; preds = %79
  br label %83

83:                                               ; preds = %82, %63
  %84 = load ptr, ptr %35, align 8, !tbaa !5
  %85 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %38)
          to label %86 unwind label %65

86:                                               ; preds = %83
  %87 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef 7) #6
  %88 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %87, ptr noundef %84)
          to label %89 unwind label %65

89:                                               ; preds = %86
  br label %90

90:                                               ; preds = %89, %63
  %91 = load ptr, ptr %34, align 8, !tbaa !5
  %92 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %38)
          to label %93 unwind label %65

93:                                               ; preds = %90
  %94 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef 6) #6
  %95 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %94, ptr noundef %91)
          to label %96 unwind label %65

96:                                               ; preds = %93
  br label %97

97:                                               ; preds = %96, %63
  %98 = load ptr, ptr %33, align 8, !tbaa !5
  %99 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %38)
          to label %100 unwind label %65

100:                                              ; preds = %97
  %101 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef 5) #6
  %102 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %101, ptr noundef %98)
          to label %103 unwind label %65

103:                                              ; preds = %100
  br label %104

104:                                              ; preds = %103, %63
  %105 = load ptr, ptr %32, align 8, !tbaa !5
  %106 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %38)
          to label %107 unwind label %65

107:                                              ; preds = %104
  %108 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef 4) #6
  %109 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %108, ptr noundef %105)
          to label %110 unwind label %65

110:                                              ; preds = %107
  br label %111

111:                                              ; preds = %110, %63
  %112 = load ptr, ptr %31, align 8, !tbaa !5
  %113 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %38)
          to label %114 unwind label %65

114:                                              ; preds = %111
  %115 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %113, i64 noundef 3) #6
  %116 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %115, ptr noundef %112)
          to label %117 unwind label %65

117:                                              ; preds = %114
  br label %118

118:                                              ; preds = %117, %63
  %119 = load ptr, ptr %30, align 8, !tbaa !5
  %120 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %38)
          to label %121 unwind label %65

121:                                              ; preds = %118
  %122 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef 2) #6
  %123 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %122, ptr noundef %119)
          to label %124 unwind label %65

124:                                              ; preds = %121
  br label %125

125:                                              ; preds = %124, %63
  %126 = load ptr, ptr %29, align 8, !tbaa !5
  %127 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %38)
          to label %128 unwind label %65

128:                                              ; preds = %125
  %129 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef 1) #6
  %130 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %129, ptr noundef %126)
          to label %131 unwind label %65

131:                                              ; preds = %128
  br label %132

132:                                              ; preds = %131, %63
  %133 = load ptr, ptr %28, align 8, !tbaa !5
  %134 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %38)
          to label %135 unwind label %65

135:                                              ; preds = %132
  %136 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef 0) #6
  %137 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %136, ptr noundef %133)
          to label %138 unwind label %65

138:                                              ; preds = %135
  br label %139

139:                                              ; preds = %138, %63
  call void @llvm.lifetime.start.p0(i64 392, ptr %41) #6
  invoke void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %41)
          to label %140 unwind label %148

140:                                              ; preds = %139
  %141 = getelementptr inbounds i8, ptr %41, i64 16
  invoke void @_ZN9NanoTrace11FormatTraceER11TraceRecordRSo(ptr noundef nonnull align 8 dereferenceable(88) %38, ptr noundef nonnull align 8 dereferenceable(8) %141)
          to label %142 unwind label %152

142:                                              ; preds = %140
  %143 = load i32, ptr %23, align 4, !tbaa !11
  %144 = load i32, ptr %24, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 32, ptr %42) #6
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %42, ptr noundef nonnull align 8 dereferenceable(128) %41)
          to label %145 unwind label %156

145:                                              ; preds = %142
  %146 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %42) #6
  invoke void @_Z15DebugLogMessagei11TraceDetailPKc(i32 noundef %143, i32 noundef %144, ptr noundef %146)
          to label %147 unwind label %160

147:                                              ; preds = %145
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #6
  store double 0.000000e+00, ptr %19, align 8
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %41) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr %41) #6
  call void @_ZN11TraceRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %38) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %38) #6
  br label %168

148:                                              ; preds = %139
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %39, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %40, align 4
  br label %166

152:                                              ; preds = %140
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %39, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %40, align 4
  br label %165

156:                                              ; preds = %142
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %39, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %40, align 4
  br label %164

160:                                              ; preds = %145
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %39, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %40, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #6
  br label %164

164:                                              ; preds = %160, %156
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #6
  br label %165

165:                                              ; preds = %164, %152
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %41) #6
  br label %166

166:                                              ; preds = %165, %148
  call void @llvm.lifetime.end.p0(i64 392, ptr %41) #6
  br label %167

167:                                              ; preds = %166, %65
  call void @_ZN11TraceRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %38) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %38) #6
  br label %170

168:                                              ; preds = %147, %54
  %169 = load double, ptr %19, align 8
  ret double %169

170:                                              ; preds = %167
  %171 = load ptr, ptr %39, align 8
  %172 = load i32, ptr %40, align 4
  %173 = insertvalue { ptr, i32 } poison, ptr %171, 0
  %174 = insertvalue { ptr, i32 } %173, i32 %172, 1
  resume { ptr, i32 } %174
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11TraceRecord9dataCountEi(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11TraceRecord11elapsedTimeEd(ptr noundef nonnull align 8 dereferenceable(88), double noundef) #1 align 2

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

declare void @_Z39failfastThis_uncaught_exception_handlerPvbPKcS1_l(ptr noundef, i1 noundef zeroext, ptr noundef, ptr noundef, i64 noundef) #3

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

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #4

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

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

declare void @_Z15DebugLogMessagei11TraceDetailPKc(i32 noundef, i32 noundef, ptr noundef) #3

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS11TraceDetail", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}


; 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.TraceRecord = type { i32, %"class.std::vector", double, i8, i64, %"class.std::__cxx11::basic_string" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@.str.36 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [84 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN9NanoTrace9TraceImplERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdi11TraceDetailbPdiPKcSB_SB_SB_SB_SB_SB_SB_SB_SB_(ptr noundef nonnull align 8 dereferenceable(12) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, double noundef %2, i32 noundef %3, i32 noundef %4, i1 noundef zeroext %5, ptr nocapture noundef readnone %6, i32 noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %19 = alloca %class.TraceRecord, align 8
  %20 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = sext i32 %3 to i64
  %23 = tail call noundef i64 @_ZN9NanoTrace16allowedTraceTypeEv(ptr noundef nonnull align 8 dereferenceable(12) %0)
  %24 = and i64 %23, %22
  %.not = icmp eq i64 %24, 0
  br i1 %.not, label %92, label %25

25:                                               ; preds = %18
  %26 = tail call noundef i32 @_ZN9NanoTrace11detailLevelEv(ptr noundef nonnull align 8 dereferenceable(12) %0)
  %.not26 = icmp slt i32 %26, %4
  br i1 %.not26, label %92, label %27

27:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %19) #6
  call void @_ZN11TraceRecordC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %19)
  call void @_ZN11TraceRecord9dataCountEi(ptr noundef nonnull align 8 dereferenceable(88) %19, i32 noundef %7)
  call void @_ZN11TraceRecord11elapsedTimeEd(ptr noundef nonnull align 8 dereferenceable(88) %19, double noundef 0.000000e+00)
  invoke void @_ZN11TraceRecord8traceKeyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(88) %19, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %28 unwind label %31

28:                                               ; preds = %27
  invoke void @_Z39failfastThis_uncaught_exception_handlerPvbPKcS1_l(ptr noundef nonnull %0, i1 noundef zeroext true, ptr noundef nonnull @.str.36, ptr noundef nonnull @.str.37, i64 noundef 86)
          to label %29 unwind label %31

29:                                               ; preds = %28
  %30 = call i64 @time(ptr noundef null) #6
  call void @_ZN11TraceRecord9timestampEm(ptr noundef nonnull align 8 dereferenceable(88) %19, i64 noundef %30)
  switch i32 %7, label %73 [
    i32 10, label %33
    i32 9, label %37
    i32 8, label %41
    i32 7, label %45
    i32 6, label %49
    i32 5, label %53
    i32 4, label %57
    i32 3, label %61
    i32 2, label %65
    i32 1, label %69
  ]

31:                                               ; preds = %69, %65, %61, %57, %53, %49, %45, %41, %37, %33, %28, %27
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %91

33:                                               ; preds = %29
  %34 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %19)
  %35 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef 9) #6
  %36 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef %17)
          to label %37 unwind label %31

37:                                               ; preds = %33, %29
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %19)
  %39 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef 8) #6
  %40 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef %16)
          to label %41 unwind label %31

41:                                               ; preds = %37, %29
  %42 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %19)
  %43 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef 7) #6
  %44 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef %15)
          to label %45 unwind label %31

45:                                               ; preds = %41, %29
  %46 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %19)
  %47 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef 6) #6
  %48 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef %14)
          to label %49 unwind label %31

49:                                               ; preds = %45, %29
  %50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %19)
  %51 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef 5) #6
  %52 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef %13)
          to label %53 unwind label %31

53:                                               ; preds = %49, %29
  %54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %19)
  %55 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef 4) #6
  %56 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef %12)
          to label %57 unwind label %31

57:                                               ; preds = %53, %29
  %58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %19)
  %59 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef 3) #6
  %60 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %59, ptr noundef %11)
          to label %61 unwind label %31

61:                                               ; preds = %57, %29
  %62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %19)
  %63 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef 2) #6
  %64 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %63, ptr noundef %10)
          to label %65 unwind label %31

65:                                               ; preds = %61, %29
  %66 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %19)
  %67 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef 1) #6
  %68 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %67, ptr noundef %9)
          to label %69 unwind label %31

69:                                               ; preds = %65, %29
  %70 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN11TraceRecord4dataB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(88) %19)
  %71 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef 0) #6
  %72 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %71, ptr noundef %8)
          to label %73 unwind label %31

73:                                               ; preds = %69, %29
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %20) #6
  invoke void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %20)
          to label %74 unwind label %80

74:                                               ; preds = %73
  %75 = getelementptr inbounds i8, ptr %20, i64 16
  invoke void @_ZN9NanoTrace11FormatTraceER11TraceRecordRSo(ptr noundef nonnull align 8 dereferenceable(88) %19, ptr noundef nonnull align 8 dereferenceable(8) %75)
          to label %76 unwind label %82

76:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #6
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef nonnull align 8 dereferenceable(128) %20)
          to label %77 unwind label %84

77:                                               ; preds = %76
  %78 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  invoke void @_Z15DebugLogMessagei11TraceDetailPKc(i32 noundef %3, i32 noundef %4, ptr noundef %78)
          to label %79 unwind label %86

79:                                               ; preds = %77
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %20) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %20) #6
  call void @_ZN11TraceRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %19) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %19) #6
  br label %92

80:                                               ; preds = %73
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %90

82:                                               ; preds = %74
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %89

84:                                               ; preds = %76
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %88

86:                                               ; preds = %77
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %88

88:                                               ; preds = %86, %84
  %.pn = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #6
  br label %89

89:                                               ; preds = %88, %82
  %.pn.pn = phi { ptr, i32 } [ %.pn, %88 ], [ %83, %82 ]
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %20) #6
  br label %90

90:                                               ; preds = %89, %80
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %89 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %20) #6
  br label %91

91:                                               ; preds = %90, %31
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %90 ], [ %32, %31 ]
  call void @_ZN11TraceRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %19) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %19) #6
  resume { ptr, i32 } %.pn.pn.pn.pn

92:                                               ; preds = %18, %25, %79
  ret double 0.000000e+00
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11TraceRecord11elapsedTimeEd(ptr noundef nonnull align 8 dereferenceable(88), double noundef) local_unnamed_addr #1 align 2

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

declare void @_Z39failfastThis_uncaught_exception_handlerPvbPKcS1_l(ptr noundef, i1 noundef zeroext, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #4

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

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

declare void @_Z15DebugLogMessagei11TraceDetailPKc(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


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